:root {
    --font-main: Calibri, 'Segoe UI', sans-serif;
    --bg-cream: #f3f4f6;
    --bg-sand: #eceef1;
    --bg-mint: #e8ebef;
    --ink: #161a1f;
    --ink-soft: #5e6772;
    --brand-deep: #1e2936;
    --brand-warm: #2d3744;
    --brand-danger: #b73932;
    --line: rgba(22, 26, 31, 0.1);
    --panel: rgba(255, 255, 255, 0.86);
    --shadow: 0 12px 30px rgba(16, 22, 30, 0.11);
    --shadow-soft: 0 6px 18px rgba(16, 22, 30, 0.08);
    --radius-xl: 24px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --btn-primary-base: #c91333;
    --btn-primary-hover: #a90f2a;
    --btn-secondary-base: #1f1e25;
    --btn-secondary-hover: #34323c;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main) !important;
}

body {
    color: var(--ink);
}

body * {
    font-family: var(--font-main) !important;
}

h1,
h2,
h3 {
    letter-spacing: 0;
    margin: 0;
    font-weight: 700;
}

p {
    margin: 0;
    color: var(--ink-soft);
}

a {
    color: var(--brand-deep);
}

/* iOS/Safari varsayilan mavi buton stilini kapatir. */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
select {
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    color: inherit;
    touch-action: manipulation;
}

input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(22, 26, 31, 0.16);
    border-radius: 8px;
    padding: 0.46rem 0.72rem;
    margin-right: 0.6rem;
    background: #f7f8fa;
    color: #1d2532;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

.eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(30, 35, 32, 0.6);
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.05rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn,
.btn:link,
.btn:visited,
.btn:hover,
.btn:active {
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--btn-primary-base), var(--btn-primary-hover));
    color: #f6f8fb;
    box-shadow: var(--shadow-soft);
}

.btn-primary:visited {
    color: #f6f8fb;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--btn-secondary-base), var(--btn-secondary-hover));
    color: #eef3fa;
    box-shadow: var(--shadow-soft);
}

.btn-secondary:visited {
    color: #eef3fa;
}

.btn-danger {
    background: #fff;
    color: var(--brand-danger);
    border: 1px solid rgba(198, 54, 43, 0.25);
}

.btn-danger:visited {
    color: var(--brand-danger);
}

.alert {
    border-radius: var(--radius-sm);
    padding: 0.85rem 0.95rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert.success {
    background: rgba(4, 120, 87, 0.13);
    border-color: rgba(4, 120, 87, 0.25);
}

.alert.warning {
    background: rgba(54, 72, 95, 0.11);
    border-color: rgba(54, 72, 95, 0.24);
}

.alert.error {
    background: rgba(198, 54, 43, 0.11);
    border-color: rgba(198, 54, 43, 0.24);
}

.stacked-form {
    display: grid;
    gap: 0.85rem;
}

.stacked-form.compact {
    gap: 0.55rem;
}

label {
    display: grid;
    gap: 0.45rem;
    font-size: 0.86rem;
    color: var(--ink);
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.75rem;
    font: inherit;
    background: rgba(255, 255, 255, 0.92);
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(201, 19, 51, 0.2);
    border-color: rgba(169, 15, 42, 0.4);
}

.toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.toggle-label input {
    width: auto;
}

.auth-shell {
    min-height: 100vh;
    padding: 2rem 1.2rem;
    background:
        radial-gradient(circle at 12% 6%, rgba(18, 24, 33, 0.09), transparent 35%),
        radial-gradient(circle at 88% 14%, rgba(44, 55, 71, 0.08), transparent 34%),
        linear-gradient(160deg, var(--bg-cream), #f8f9fb 55%, #f0f2f5);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.3rem;
    align-items: stretch;
}

.inline-link {
    font-weight: 600;
}

.install-shell {
    grid-template-columns: 1fr 1.15fr;
}

.brand-panel {
    border-radius: var(--radius-xl);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.8), rgba(247, 249, 252, 0.72));
    box-shadow: var(--shadow);
    padding: 2rem;
    border: 1px solid rgba(22, 26, 31, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.brand-panel h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.feature-list {
    margin: 0;
    padding-left: 1rem;
    color: var(--ink-soft);
    display: grid;
    gap: 0.5rem;
}

.glass-note {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(22, 26, 31, 0.1);
    padding: 0.85rem;
    border-radius: var(--radius-sm);
}

.auth-card {
    border-radius: var(--radius-xl);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 1.4rem;
    border: 1px solid rgba(22, 26, 31, 0.08);
}

.system-badge-logo {
    width: 86px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.system-badge-logo.sidebar {
    width: 74px;
    margin-bottom: 0.45rem;
}

.install-logo {
    width: clamp(52px, 7vw, 70px) !important;
    max-width: 70px;
    height: auto;
    align-self: flex-start;
    object-fit: contain;
}

.auth-card h2 {
    margin-bottom: 0.9rem;
}

.system-checks {
    margin-bottom: 1rem;
}

.system-checks h3 {
    font-size: 1.05rem;
    margin-bottom: 0.55rem;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.check-item {
    font-size: 0.82rem;
    padding: 0.65rem;
    border-radius: var(--radius-sm);
}

.check-item.ok {
    background: rgba(4, 120, 87, 0.14);
    color: #0b5e49;
}

.check-item.fail {
    background: rgba(198, 54, 43, 0.12);
    color: #7c221b;
}

.admin-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 88% -5%, rgba(18, 24, 33, 0.1), transparent 33%),
        radial-gradient(circle at 10% 98%, rgba(35, 44, 55, 0.08), transparent 31%),
        linear-gradient(165deg, #f4f6f8, #fafbfd 56%, #eef1f4);
}

.wp-login-body {
    min-height: 100vh;
    margin: 0;
    background: #f0f2f4;
    display: flex;
    flex-direction: column;
}

.wp-login-shell {
    width: 100%;
    max-width: 360px;
    margin: 6.4rem auto 2rem;
    padding: 0 1rem;
}

.wp-login-brand {
    text-align: center;
    margin-bottom: 1rem;
}

.wp-login-logo {
    width: 58px;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.7rem;
}

.wp-login-brand h1 {
    font-size: 1.16rem;
    color: #1d2327;
    margin-bottom: 0.2rem;
}

.wp-login-brand p {
    font-size: 0.84rem;
    color: #50575e;
}

.wp-login-card {
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 2px;
    padding: 1.1rem 1rem;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.wp-login-form {
    display: grid;
    gap: 0.8rem;
}

.wp-login-form label {
    font-size: 0.86rem;
    color: #3c434a;
}

.wp-login-form input {
    border-radius: 3px;
    border: 1px solid #8c8f94;
    background: #fff;
}

.wp-login-form input:focus {
    outline: 2px solid rgba(201, 19, 51, 0.2);
    border-color: var(--btn-primary-base);
}

.wp-login-btn {
    width: 100%;
    border-radius: 3px;
    padding: 0.62rem 0.9rem;
    background: var(--btn-primary-base);
    color: #fff;
    box-shadow: none;
}

.wp-login-btn:hover {
    background: var(--btn-primary-hover);
    transform: none;
}

.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
    gap: 1.2rem;
    padding: 1.2rem;
}

.admin-sidebar {
    border-radius: var(--radius-xl);
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    border: 1px solid rgba(22, 26, 31, 0.08);
}

.sidebar-brand {
    margin-bottom: 1.2rem;
}

.sidebar-brand h2 {
    font-size: 1.22rem;
    margin-top: 0.4rem;
}

.admin-sidebar nav {
    display: grid;
    gap: 0.4rem;
}

.admin-sidebar a {
    text-decoration: none;
    color: var(--ink);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.75rem;
    font-weight: 700;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.11), rgba(67, 84, 105, 0.09));
}

.admin-sidebar a.logout-link {
    color: var(--brand-danger);
}

.admin-main {
    padding: 0.3rem 0 1rem;
}

.admin-header {
    margin-bottom: 1rem;
}

.admin-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
}

.admin-header-copy {
    min-width: 0;
}

.admin-header h1 {
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

.admin-header-brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.1rem 0;
}

.admin-header-logo {
    width: auto;
    max-width: min(124px, 28vw);
    max-height: 30px;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 0.95;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.metric-card {
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    padding: 1rem;
    border: 1px solid rgba(22, 26, 31, 0.08);
}

.metric-card h3 {
    font-size: 1.05rem;
}

.metric-card p {
    margin-top: 0.5rem;
    font-size: 1.9rem;
    color: var(--ink);
    font-weight: 700;
}

.content-card {
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    border: 1px solid rgba(22, 26, 31, 0.08);
    padding: 1rem;
    margin-bottom: 0.9rem;
}

.content-card h2,
.content-card h3 {
    margin-bottom: 0.6rem;
}

.ops-shell {
    max-width: 1220px;
    margin: 0 auto;
    padding: 1.1rem 1rem 0.6rem;
}

.ops-shell-wide {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding-top: 5.4rem;
}

.ops-topbar {
    position: sticky;
    top: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.65rem 1rem;
    background: rgba(250, 251, 253, 0.94);
    border-bottom: 1px solid rgba(22, 26, 31, 0.1);
    backdrop-filter: blur(8px);
}

.ops-topbar-left {
    min-width: 0;
}

.ops-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
}

.ops-brand-text {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1b2230;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ops-topbar-logo {
    width: auto;
    max-width: min(116px, 28vw);
    max-height: 30px;
    height: auto;
    object-fit: contain;
}

.ops-tab-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ops-tab-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(22, 26, 31, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: #1f2834;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ops-tab-link:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 26, 31, 0.22);
}

.ops-tab-link.is-active {
    border-color: rgba(28, 36, 48, 0.4);
    background: linear-gradient(135deg, rgba(31, 30, 37, 0.96), rgba(52, 50, 60, 0.96));
    color: #f4f7fb;
    box-shadow: var(--shadow-soft);
}

.ops-topbar-right {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.ops-inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.35rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(22, 26, 31, 0.16);
    background: rgba(255, 255, 255, 0.92);
    color: #1f2834;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
}

.ops-user-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.35rem 0.68rem;
    border-radius: 10px;
    border: 1px solid rgba(22, 26, 31, 0.12);
    background: rgba(248, 250, 252, 0.96);
    color: #253041;
    font-size: 0.82rem;
    font-weight: 700;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(183, 57, 50, 0.26);
    background: #fff;
    color: #a3332d;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
}

.ops-logout-link:hover {
    background: rgba(183, 57, 50, 0.08);
}

.okc-helper-config {
    display: none !important;
}

.ops-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.ops-logo {
    width: auto;
    max-width: min(150px, 34vw);
    max-height: 42px;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
}

.ops-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.35rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(22, 26, 31, 0.15);
    background: rgba(248, 250, 252, 0.92);
    color: #1f2530;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.ops-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.9rem;
}

.system-module-nav .ops-actions {
    margin-top: 0.55rem;
}

.ops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.9rem;
}

.ops-product-group + .ops-product-group {
    margin-top: 0.9rem;
}

.ops-product-group h3 {
    margin-bottom: 0.55rem;
}

.ops-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.75rem;
}

.waiter-toolbar {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.waiter-toolbar .muted {
    margin-bottom: 0;
}

.waiter-search {
    width: 100%;
}

.waiter-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    gap: 0.55rem;
}

.waiter-table-option {
    position: relative;
}

.waiter-table-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.waiter-table-chip {
    min-height: 48px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(22, 26, 31, 0.16);
    background: rgba(255, 255, 255, 0.96);
    font-weight: 700;
    font-size: 0.96rem;
    cursor: pointer;
    user-select: none;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.waiter-table-option input:checked + .waiter-table-chip {
    border-color: rgba(31, 41, 55, 0.4);
    background: linear-gradient(135deg, rgba(225, 230, 238, 0.96), rgba(243, 246, 251, 0.96));
    box-shadow: 0 10px 20px rgba(16, 22, 30, 0.12);
}

.waiter-table-chip:hover {
    transform: translateY(-1px);
}

.ops-product-card {
    border: 1px solid rgba(22, 26, 31, 0.08);
    border-radius: var(--radius-sm);
    background: rgba(250, 251, 253, 0.92);
    padding: 0.75rem;
    display: grid;
    gap: 0.4rem;
}

.ops-product-card h4 {
    margin: 0;
    font-size: 1.03rem;
}

.ops-product-card .qty-control {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    gap: 0.45rem;
    align-items: center;
}

.ops-product-card .qty-btn {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(22, 26, 31, 0.16);
    background: rgba(249, 251, 253, 0.98);
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
}

.ops-product-card .qty-input {
    text-align: center;
    font-weight: 700;
    min-height: 42px;
}

.ops-order-item {
    border: 1px solid rgba(22, 26, 31, 0.08);
    border-radius: 10px;
    padding: 0.7rem;
    background: rgba(250, 251, 253, 0.94);
}

.ops-order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.95rem;
}

.cashier-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.cashier-column {
    display: grid;
    gap: 0.7rem;
}

.cashier-column .content-card {
    margin-bottom: 0;
}

.cashier-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.cashier-count-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.14rem 0.62rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(20, 28, 40, 0.09);
    color: #1f2834;
}

.cashier-live-status {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.waiter-view-cards {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 0;
}

.waiter-view-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    min-width: 142px;
    padding: 0.5rem 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(22, 26, 31, 0.14);
    background: rgba(255, 255, 255, 0.94);
    color: #1e2936;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: center;
}

.waiter-view-card.is-active {
    border-color: rgba(30, 41, 54, 0.42);
    background: linear-gradient(135deg, rgba(31, 30, 37, 0.96), rgba(52, 50, 60, 0.96));
    color: #f4f7fb;
    box-shadow: var(--shadow-soft);
}

.ops-order-card {
    margin-bottom: 0;
}

.ops-order-card .btn {
    min-height: 46px;
    font-size: 0.95rem;
}

.ops-order-card .btn + .btn,
.ops-order-card form + form {
    margin-top: 0.45rem;
}

.ops-order-card[data-order-status="pending"] {
    border-color: rgba(198, 54, 43, 0.24);
    box-shadow: 0 10px 20px rgba(198, 54, 43, 0.08);
}

.ops-order-card[data-order-status="approved"] {
    border-color: rgba(4, 120, 87, 0.24);
    box-shadow: 0 10px 20px rgba(4, 120, 87, 0.08);
}

.ops-payment-totals {
    display: grid;
    gap: 0.35rem;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(22, 26, 31, 0.1);
    background: rgba(248, 250, 252, 0.92);
}

.ops-payment-totals p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.84rem;
}

.ops-payment-totals strong {
    color: var(--ink);
    font-weight: 700;
}

.ops-payment-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.ops-payment-split .full {
    grid-column: 1 / -1;
}

.ops-payment-split[hidden] {
    display: none !important;
}

.okc-helper-panel {
    border: 1px solid rgba(22, 26, 31, 0.1);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    background: rgba(248, 250, 252, 0.9);
    margin-bottom: 0.7rem;
}

.okc-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.12rem 0.58rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.okc-status-badge.pending {
    color: #1c3f6e;
    background: rgba(66, 153, 225, 0.14);
}

.okc-status-badge.online {
    color: #0b5e49;
    background: rgba(4, 120, 87, 0.14);
}

.okc-status-badge.offline {
    color: #7c221b;
    background: rgba(198, 54, 43, 0.14);
}

.okc-status-badge.disabled {
    color: #36485f;
    background: rgba(54, 72, 95, 0.14);
}

.grid-form > form {
    display: grid;
    gap: 0.7rem;
    align-content: start;
}

.audit-item {
    border: 1px solid rgba(22, 26, 31, 0.08);
    border-radius: 10px;
    background: rgba(250, 251, 253, 0.9);
    padding: 0.65rem;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(22, 26, 31, 0.08);
    border-radius: 12px;
    margin-top: 0.9rem;
    background: rgba(255, 255, 255, 0.9);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 0.62rem 0.68rem;
    border-bottom: 1px solid rgba(22, 26, 31, 0.07);
    font-size: 0.85rem;
}

.data-table th {
    background: rgba(246, 248, 251, 0.96);
    color: #202b38;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.muted-inline {
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.qr-download-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.qr-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 27, 0.44);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 120;
}

.qr-modal.is-open {
    display: flex;
}

.qr-modal-card {
    width: min(450px, 100%);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    border: 1px solid rgba(22, 26, 31, 0.08);
    padding: 1rem;
}

.qr-modal-card h3 {
    margin-bottom: 0.5rem;
}

.qr-preview {
    min-height: 170px;
    margin: 0.8rem 0;
    border-radius: var(--radius-sm);
    background: linear-gradient(140deg, #fafbfd, #f2f4f7);
    border: 1px solid rgba(30, 35, 32, 0.1);
    display: grid;
    place-items: center;
}

.qr-preview svg,
.qr-preview canvas,
.qr-preview img {
    max-width: 170px;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.qr-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: start;
}

.install-table-range-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.grid-form .full {
    grid-column: 1 / -1;
}

.stock-inline-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 0.7rem;
    border: 1px solid rgba(22, 26, 31, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(250, 252, 255, 0.85);
}

.stock-inline-fields label {
    margin: 0;
}

.stock-row-negative td strong {
    color: #b73932;
}

.stock-row-zero td strong {
    color: #966d00;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
    align-items: start;
}

.card-grid .content-card {
    margin-bottom: 0;
    align-self: start;
}

.card-grid .content-card > form + form {
    margin-top: 0.22rem;
}

.admin-thumb {
    width: 100%;
    max-height: 170px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    margin-bottom: 0.7rem;
    border: 1px solid rgba(30, 35, 32, 0.08);
}

.admin-logo-preview {
    margin-top: 0.8rem;
    width: min(140px, 100%);
    border-radius: 0;
    border: none;
    background: transparent;
    padding: 0;
    object-fit: contain;
}

.muted {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

.menu-body {
    min-height: 100vh;
    background: var(--bg-cream);
    overflow-x: hidden;
}

.menu-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 14% 6%, rgba(17, 23, 32, 0.08), transparent 35%),
        radial-gradient(circle at 92% 12%, rgba(45, 56, 71, 0.08), transparent 33%),
        radial-gradient(circle at 40% 95%, rgba(17, 23, 32, 0.06), transparent 29%),
        linear-gradient(160deg, #f5f6f8, #fbfcfd 55%, #eef1f5);
}

.menu-theme-classic_warm .menu-background {
    background:
        radial-gradient(circle at 14% 6%, rgba(150, 97, 60, 0.22), transparent 35%),
        radial-gradient(circle at 92% 12%, rgba(192, 131, 83, 0.16), transparent 33%),
        radial-gradient(circle at 40% 95%, rgba(120, 77, 44, 0.12), transparent 29%),
        linear-gradient(160deg, #faf3ea, #fff9f2 55%, #f7ede2);
}

.menu-theme-ocean .menu-background {
    background:
        radial-gradient(circle at 14% 6%, rgba(37, 83, 126, 0.2), transparent 35%),
        radial-gradient(circle at 92% 12%, rgba(53, 124, 164, 0.16), transparent 33%),
        radial-gradient(circle at 40% 95%, rgba(31, 72, 108, 0.12), transparent 29%),
        linear-gradient(160deg, #eff6fb, #f8fcff 55%, #eaf3fa);
}

.menu-theme-stone .menu-background {
    background:
        radial-gradient(circle at 14% 6%, rgba(89, 87, 82, 0.18), transparent 35%),
        radial-gradient(circle at 92% 12%, rgba(117, 112, 103, 0.12), transparent 33%),
        radial-gradient(circle at 40% 95%, rgba(82, 78, 72, 0.12), transparent 29%),
        linear-gradient(160deg, #f5f4f2, #fbfaf8 55%, #efede9);
}

.menu-theme-mist .menu-background {
    background:
        radial-gradient(circle at 14% 6%, rgba(56, 70, 90, 0.14), transparent 35%),
        radial-gradient(circle at 92% 12%, rgba(84, 106, 132, 0.1), transparent 33%),
        radial-gradient(circle at 40% 95%, rgba(48, 62, 82, 0.09), transparent 29%),
        linear-gradient(160deg, #f1f4f8, #f9fbfd 55%, #e9eef4);
}

.menu-hero {
    padding: 2.4rem 1.2rem 1.3rem;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
    animation: fadeUp 480ms ease both;
}

.restaurant-logo {
    width: 72px;
    height: 72px;
    border-radius: 0;
    object-fit: contain;
    padding: 0;
    background: transparent;
    box-shadow: none;
    margin-bottom: 1rem;
}

.menu-hero h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
    margin-top: 0.35rem;
}

.hero-description {
    max-width: 600px;
    margin: 0.7rem auto 0;
}

.menu-container {
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

body.menu-controls-open {
    overflow: hidden;
}

.menu-filter-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 44;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.56rem 0.9rem 0.56rem 0.78rem;
    border: 1px solid rgba(22, 26, 31, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #1b2532;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 22px rgba(14, 20, 31, 0.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.menu-filter-toggle::before {
    content: '';
    width: 1.32rem;
    height: 1.32rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(201, 19, 51, 0.16), rgba(169, 15, 42, 0.09));
    box-shadow: inset 0 0 0 3px rgba(126, 18, 40, 0.16);
}

.menu-filter-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(14, 20, 31, 0.22);
}

.menu-filter-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 26px rgba(14, 20, 31, 0.24);
}

.menu-controls-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(12, 18, 26, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.menu-controls-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.menu-controls {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 45;
    width: min(340px, 90vw);
    height: 100vh;
    padding: 0.95rem;
    background: rgba(255, 255, 255, 0.98);
    border-right: 1px solid rgba(22, 26, 31, 0.1);
    box-shadow: 0 18px 34px rgba(16, 22, 30, 0.2);
    transform: translateX(-104%);
    transition: transform 0.24s ease;
    overflow-y: auto;
}

.menu-controls.is-open {
    transform: translateX(0);
}

.menu-controls-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.menu-controls-head h2 {
    font-size: 1.03rem;
}

.menu-controls-close {
    padding: 0.46rem 0.72rem;
}

.menu-controls input[type="search"] {
    margin-bottom: 0.45rem;
}

.menu-search-wrap {
    display: grid;
    gap: 0.4rem;
    margin: 0.05rem 0 0.45rem;
}

.menu-search-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(28, 37, 50, 0.62);
}

.menu-search-input {
    border-radius: 12px;
    border: 1px solid rgba(22, 26, 31, 0.12);
    background: linear-gradient(180deg, #ffffff, #f7f9fc);
    padding: 0.7rem 0.8rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.chip-row {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.65rem;
}

.chip {
    border: 1px solid rgba(30, 35, 32, 0.12);
    background: #fff;
    border-radius: 999px;
    padding: 0.45rem 0.82rem;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
}

.chip.active {
    color: #1b2430;
    border-color: rgba(31, 41, 55, 0.28);
    background: linear-gradient(135deg, rgba(229, 233, 240, 0.95), rgba(243, 246, 251, 0.96));
}

.menu-section {
    margin-bottom: 1.35rem;
    animation: fadeUp 480ms ease both;
}

.section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.55rem;
    margin-bottom: 0.95rem;
    padding: 0.35rem 0.25rem;
}

.section-heading img {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(30, 35, 32, 0.1);
    box-shadow: 0 8px 16px rgba(20, 28, 40, 0.12);
}

.section-heading h2 {
    font-size: clamp(1.35rem, 3.5vw, 2rem);
}

.section-heading p {
    max-width: 640px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.product-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    align-items: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(22, 26, 31, 0.08);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0.8rem;
}

.product-card.has-image {
    grid-template-columns: 96px 1fr;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(19, 25, 35, 0.14);
}

.product-media {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    border: 1px solid rgba(22, 26, 31, 0.1);
    background: #ffffff;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-content {
    padding: 0.2rem 0.2rem 0.2rem 0;
}

.product-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.product-content p {
    min-height: 2.4em;
}

.product-content strong {
    display: inline-block;
    margin-top: 0.65rem;
    font-size: 1.03rem;
    color: #202b38;
}

.empty-state {
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    padding: 1.2rem;
    text-align: center;
}

.system-footer {
    padding: 0.7rem 1rem 1.2rem;
}

.system-footer.standalone {
    padding-top: 0.2rem;
}

.menu-footer {
    padding-top: 0;
}

.system-footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    border-top: 1px solid rgba(30, 35, 32, 0.09);
    padding-top: 0.65rem;
    text-align: center;
}

.system-brand-soft {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(30, 35, 32, 0.45);
    font-weight: 700;
}

.system-contact-line {
    margin-top: 0.4rem;
    font-size: 0.72rem;
    color: rgba(30, 35, 32, 0.62);
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
}

.system-contact-line a {
    color: var(--btn-primary-base);
    text-decoration: none;
    font-weight: 600;
}

.campaign-preview-wrap {
    margin-top: 0.9rem;
}

.campaign-preview {
    width: min(440px, 100%);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(22, 26, 31, 0.12);
    display: block;
}

.campaign-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 21, 30, 0.58);
}

.campaign-modal.is-open {
    display: flex;
}

.campaign-modal-card {
    width: min(520px, 100%);
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-md);
    border: 1px solid rgba(22, 26, 31, 0.12);
    box-shadow: var(--shadow);
    padding: 0.8rem;
    text-align: center;
}

.campaign-modal-image {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.error-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.2rem;
    background:
        radial-gradient(circle at 8% 6%, rgba(17, 23, 32, 0.09), transparent 34%),
        radial-gradient(circle at 88% 100%, rgba(45, 56, 71, 0.08), transparent 33%),
        linear-gradient(165deg, #f5f6f8, #fbfcfd);
}

.error-shell {
    max-width: 680px;
    width: 100%;
    margin: 0 auto 0.8rem;
    border-radius: var(--radius-xl);
    padding: 2rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    text-align: center;
}

.error-shell h1 {
    font-size: clamp(2.4rem, 8vw, 4.5rem);
}

.error-shell h2 {
    margin-top: 0.3rem;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
}

.error-shell p {
    margin-top: 0.65rem;
}

.error-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: sticky;
        top: 0.6rem;
        z-index: 20;
    }
}

@media (max-width: 900px) {
    .auth-shell,
    .install-shell {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .grid-form {
        grid-template-columns: 1fr;
    }

    .stock-inline-fields {
        grid-template-columns: 1fr;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .admin-header-row {
        align-items: center;
    }

    .admin-header-logo {
        width: clamp(86px, 28vw, 124px);
        max-height: 30px;
    }

    .qr-modal-actions {
        flex-direction: column;
    }

    .qr-modal-actions .btn {
        width: 100%;
    }

    .ops-shell {
        padding: 0.8rem 0.75rem 0.5rem;
    }

    .ops-shell-wide {
        padding-top: 6.9rem;
    }

    .ops-topbar {
        grid-template-columns: 1fr;
        justify-items: stretch;
        gap: 0.55rem;
        padding: 0.58rem 0.75rem;
    }

    .ops-topbar-left,
    .ops-topbar-right {
        width: 100%;
    }

    .ops-topbar-right {
        justify-content: space-between;
    }

    .ops-tab-nav,
    .waiter-view-cards {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.15rem;
    }

    .ops-tab-link,
    .waiter-view-card {
        white-space: nowrap;
    }

    .ops-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ops-logo {
        max-height: 34px;
    }
}

@media (max-width: 640px) {
    .product-media {
        width: 82px;
        height: 82px;
    }

    .product-card {
        gap: 0.65rem;
        padding: 0.65rem;
    }

    .product-card.has-image {
        grid-template-columns: 82px 1fr;
    }

    .admin-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-header-brand {
        align-self: flex-end;
    }

    .menu-hero {
        padding-top: 1.7rem;
    }

    .menu-filter-toggle {
        top: 0.7rem;
        left: 0.7rem;
        padding: 0.52rem 0.78rem 0.52rem 0.7rem;
        font-size: 0.8rem;
    }

    .menu-controls {
        width: min(300px, 88vw);
        padding: 0.75rem;
    }

    .ops-order-grid {
        grid-template-columns: 1fr;
    }

    .ops-product-grid {
        grid-template-columns: 1fr;
    }

    .ops-shell-wide {
        padding-top: 7.4rem;
    }

    .ops-brand-text {
        font-size: 0.8rem;
    }

    .ops-user-chip {
        max-width: 140px;
    }

    .waiter-view-card {
        min-width: 132px;
        min-height: 40px;
        font-size: 0.82rem;
    }

    .cashier-columns {
        grid-template-columns: 1fr;
    }

    .ops-payment-split {
        grid-template-columns: 1fr;
    }
}
