:root {
    --green: #0e3e44;
    --green-dark: #082e33;
    --lime: #f1ffb2;
    --mint: #f1ffb2;
    --ink: #16393c;
    --muted: #53696a;
    --paper: #f6f8f6;
    --line: #d9e3e1;
}
.topbar { background: white; }
.brand img { display: block; width: 92px; height: auto; }
.topbar nav a.selected, .badge.green { background: var(--lime); color: var(--green); }
.btn.primary { border-color: var(--green); background: var(--green); }
.btn.primary:hover { background: var(--green-dark); }
.stats article:first-child { background: var(--green); color: white; }
.stats article:first-child :is(span,small,em) { color: #d2e7e6; }
.stats article:first-child strong { color: var(--lime); }
.table-card.occupied { border-color: #9eb5b6; background: #eff6f4; }
.category-nav a { color: var(--green); font-weight: 600; }
.hero-stamp { background: var(--lime); color: var(--green); }
.menu-hero { border-bottom-color: var(--green); }
.quick-option input:checked + span { color: var(--green); background: var(--lime); border-color: var(--green); }
.login-screen { background: #f6f8f6; }
.login-screen .topbar { min-height: 78px; }
.login-context { margin-left: auto; color: var(--muted); font-size: 13px; }
.login-screen .page { display: grid; align-content: center; padding-block: 36px; }
.login-screen .auth-shell {
    display: grid; grid-template-columns: 1.12fr 1fr; width: min(1090px, 100%); margin: 0 auto;
    min-height: 540px; overflow: hidden; background: white; border: 1px solid var(--line);
    border-radius: 24px; box-shadow: 0 20px 60px #0e3e440b;
}
.brand-stage { position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; background: var(--lime); }
.stage-wordmark { position: relative; width: 57%; max-width: 324px; height: auto; }
.brand-orbits, .brand-orbits::before, .brand-orbits::after {
    position: absolute; border: 1px solid #0e3e4433; border-radius: 50%; pointer-events: none;
}
.brand-orbits { width: 135%; aspect-ratio: 1; left: -77%; top: 53%; }
.brand-orbits::before, .brand-orbits::after { content: ''; inset: -11%; }
.brand-orbits::after { inset: -22%; }
.replay-intro { position: absolute; left: 28px; bottom: 26px; display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 30px; background: var(--green); color: white; font-size: 13px; }
.replay-intro span { color: var(--lime); }
.login-screen .auth-form { align-self: center; padding: clamp(28px,4vw,64px); border: 0; box-shadow: none; border-radius: 0; }
.login-screen .auth-form h1 { font-size: clamp(32px,3vw,46px); }
.login-screen .auth-form .btn.primary { justify-content: space-between; padding-inline: 20px; min-height: 48px; }
.login-screen .auth-note { margin-top: 23px; }
.login-screen .auth-note p { margin-top: 0; }
#brand-intro {
    position: fixed; inset: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none;
    padding: 0; border: 0; border-radius: 0; background: var(--green); color: white;
}
#brand-intro::backdrop { background: var(--green); }
#brand-intro video { width: 100%; height: 100%; display: block; object-fit: contain; }
.intro-controls { position: absolute; right: max(20px,env(safe-area-inset-right)); bottom: max(22px,env(safe-area-inset-bottom)); display: flex; gap: 10px; }
.intro-controls button { min-height: 44px; padding: 9px 18px; border-radius: 30px; background: var(--green); color: white; border: 1px solid #abcdef70; }
.intro-controls button:last-child { background: var(--lime); color: var(--green); }
@media (max-width: 720px) {
    .login-screen .auth-shell { grid-template-columns: 1fr; max-width: 490px; min-height: 0; border-radius: 18px; }
    .login-screen .page { padding: 20px 16px 30px; min-height: auto; }
    .login-screen .auth-form { padding: 27px 23px; }
    .brand-stage { min-height: 142px; justify-items: start; padding-left: 25px; }
    .stage-wordmark { width: 44%; max-width: 170px; }
    .replay-intro { left: auto; right: 16px; bottom: 18px; padding: 9px 12px; }
    .brand img { width: 76px; }
}

.revenue article { border-top: 3px solid var(--green); }
.revenue article:first-child { border-top-color: var(--lime); }
.period-nav { display: inline-flex; flex-wrap: wrap; padding: 4px; background: #e5ece9; border-radius: 10px; }
.period-nav a { padding: 7px 12px; border-radius: 7px; font-size: 13px; }
.period-nav a[aria-current] { background: var(--green); color: white; }
.report-heading { flex-wrap: wrap; }
.report-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.ranking .helper { margin: 5px 0 18px; }
.report-table { max-height: 380px; overflow: auto; }
.report-table th { position: sticky; top: 0; z-index: 1; }
.report-table :is(td,th):not(:first-child) { text-align: right; }
.report-table td { font-variant-numeric: tabular-nums; }
.report-table td:last-child { white-space: nowrap; }
.report-table meter { display: block; width: 90%; height: 9px; margin-top: 4px; }
.report-table meter::-webkit-meter-bar { background: #eaf0ed; border: none; }
.report-table meter::-webkit-meter-optimum-value { background: var(--green); }
.report-empty { padding: 22px 0; color: var(--muted); }
.operations-strip { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; margin: 24px 0; }
.copy-link { display: block; margin-top: 8px; }
.copy-buffer { position: fixed; left: -10000px; }
#ExtraPrice:disabled { background: #edf0ee; color: #647772; cursor: not-allowed; }
@media(max-width:800px) { .report-grid { grid-template-columns: minmax(0,1fr); } }

.waiter-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    margin-bottom: 16px;
}
.waiter-categories button {
    flex: none;
    min-height: 44px;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    color: var(--green);
    background: var(--white);
    font-weight: 600;
}
.waiter-categories button[aria-pressed="true"] {
    background: var(--green);
    color: var(--lime);
    border-color: var(--green);
}
.change-options { margin: 0; padding: 0; border: 0; }
.change-options legend { font-weight: 600; }
.change-options .quick-options { margin-top: 6px; }

.draft-cart { margin-bottom: 20px; scroll-margin-top: 24px; }
.draft-cart .section-heading { margin-bottom: 10px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-lines small { display: block; }
.cart-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 12px; }
.cart-shortcut { position: fixed; bottom: 18px; left: 20px; z-index: 11; box-shadow: 0 4px 16px #0e3e4433; }
.cart-announcement { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
@media(max-width:540px) {
    .cart-lines li { gap: 8px; font-size: 13px; }
    .cart-actions { flex-wrap: wrap; }
}

.table-settings, .waiter-calls, .public-call { margin-bottom: 1.25rem; }
.table-settings .helper { margin: .7rem 0 0; }
.table-qr .qr-controls, .call-row { display: flex; align-items: center; gap: 1rem; }
.table-qr .qr-controls { margin: .75rem 0; }
.table-qr .qr-controls img { width: 110px; height: 110px; }
.table-qr .actions { display: flex; flex-wrap: wrap; }
.call-row { justify-content: space-between; flex-wrap: wrap; }
.waiter-calls .call-row { padding-top: .75rem; }
.public-call { border-color: var(--green); }
