/* ==========================================================================
   Order Your Lunch — app.css
   Theme: deep indigo #200155 on plain white. Poppins throughout.
   To re-theme, change the colour tokens in :root — nothing else hard-codes them.
   ========================================================================== */

:root {
    --primary: #200155;
    --primary-hover: #33107a;
    --primary-soft: #f5f2fb;      /* faint tint for hover / active backgrounds */
    --primary-line: #e2d9f2;      /* tinted borders */

    --ink: #150a2b;               /* headings */
    --text: #2b2542;              /* body text */
    --muted: #6d6883;             /* secondary text */
    --line: #e8e5f0;              /* hairlines */
    --line-strong: #d5d0e3;       /* input borders */
    --surface-alt: #faf9fc;       /* table headers, subtle panels */

    --ok: #147a45;      --ok-bg: #e5f6ec;
    --warn: #9a5a00;    --warn-bg: #fff1d6;
    --danger: #c1262d;  --danger-bg: #fdeced;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(32, 1, 85, .05), 0 6px 20px rgba(32, 1, 85, .05);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.25; letter-spacing: -0.015em; }
h1 { font-size: 1.65rem; font-weight: 700; }
h2 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 12px; }
a { color: var(--primary); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inline-form { display: inline; margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Wordmark ---------- */
.wordmark {
    font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em;
    color: var(--primary); text-decoration: none; white-space: nowrap;
}
.role-tag {
    font-size: .64rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--primary); background: var(--primary-soft); border: 1px solid var(--primary-line);
    padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle;
}

/* ---------- App header ---------- */
.app-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.app-header-inner { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.app-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.app-nav a {
    padding: 8px 14px; border-radius: 9px; color: var(--muted); font-weight: 500; font-size: .92rem;
    text-decoration: none; white-space: nowrap; transition: background .15s, color .15s;
}
.app-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.app-nav a.active { background: var(--primary); color: #fff; }
.header-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.user-chip { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 500; color: var(--ink); }
.avatar {
    width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-soft); color: var(--primary); border: 1px solid var(--primary-line);
    font-size: .74rem; font-weight: 700; letter-spacing: .02em; flex: none;
}

.app-main { padding: 32px 0 72px; }

@media (max-width: 760px) {
    .container { padding: 0 16px; }
    .app-header-inner { flex-wrap: wrap; gap: 6px 12px; padding: 10px 0 8px; min-height: 0; }
    .app-nav { order: 3; flex: 0 0 100%; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
    .app-nav::-webkit-scrollbar { display: none; }
    .user-name { display: none; }
    .app-main { padding: 22px 0 56px; }
    h1 { font-size: 1.4rem; }
}

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-sub { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
    font-family: inherit; font-size: .92rem; font-weight: 600; line-height: 1;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: #fff; color: var(--primary); border-color: var(--primary-line); }
.btn-secondary:hover { background: var(--primary-soft); border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f1c5c8; }
.btn-danger:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn-sm { height: 34px; padding: 0 14px; font-size: .82rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

.linkbtn {
    background: none; border: 0; padding: 0; font: inherit; font-size: .8rem; font-weight: 600;
    color: var(--primary); cursor: pointer;
}
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: var(--danger); }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
label, .label { display: block; margin: 0 0 6px; font-size: .82rem; font-weight: 600; color: var(--ink); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="date"], select, textarea {
    width: 100%; height: 46px; padding: 0 14px;
    border: 1px solid var(--line-strong); border-radius: 10px;
    font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
select {
    appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236d6883' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(32, 1, 85, .1); }
input::placeholder, textarea::placeholder { color: #a6a2b8; }
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; vertical-align: middle; }
.field-error { margin: 6px 0 0; color: var(--danger); font-size: .82rem; }
.hint { margin: 6px 0 0; color: var(--muted); font-size: .8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; font-weight: 500; }
.input-prefix > input { padding-left: 44px; }

/* Toggle switch (Published) */
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; margin: 0; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #cdc7dd; transition: background .2s; flex: none; }
.switch-track::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s;
}
.switch input:checked + .switch-track { background: var(--primary); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 10px; font-size: .9rem; margin-bottom: 20px; border: 1px solid; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: #bfe6cf; }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: #f4c3c6; }
.alert-info { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-line); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-body { padding: 20px; }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px;
    font-size: .74rem; font-weight: 600; white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-pending { background: var(--warn-bg); color: var(--warn); }
.badge-completed { background: var(--ok-bg); color: var(--ok); }
.badge-cancelled { background: var(--danger-bg); color: var(--danger); }
.badge-muted { background: #efedf5; color: var(--muted); }
.badge-brand { background: var(--primary-soft); color: var(--primary); }

/* ---------- Stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-label { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat-value { margin-top: 6px; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-foot { margin-top: 6px; font-size: .78rem; color: var(--muted); min-height: 1.2em; }
.stat-brand { background: var(--primary); border-color: var(--primary); }
.stat-brand .stat-label { color: rgba(255, 255, 255, .7); }
.stat-brand .stat-value { color: #fff; }
.stat-brand .stat-foot { color: rgba(255, 255, 255, .7); }
.delta { font-weight: 600; }
.delta-up { color: var(--ok); }
.delta-down { color: var(--danger); }
.stat-brand .delta-up, .stat-brand .delta-down { color: #fff; }

/* ---------- Filters, segmented control, tabs ---------- */
.filter-card { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 20px; padding: 16px 20px; margin-bottom: 20px; }
.filter-card .field { margin: 0; min-width: 150px; }
.filter-card label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.filter-card input, .filter-card select { height: 42px; }
.segmented { display: inline-flex; padding: 4px; gap: 2px; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.segmented a, .segmented button {
    padding: 8px 16px; border-radius: 9px; border: 0; background: transparent; color: var(--muted);
    font-family: inherit; font-size: .86rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.segmented a:hover, .segmented button:hover { color: var(--primary); }
.segmented .active { background: var(--primary); color: #fff; box-shadow: 0 2px 6px rgba(32, 1, 85, .25); }

.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab { padding: 12px 2px; margin-bottom: -1px; color: var(--muted); font-weight: 600; font-size: .92rem; text-decoration: none; border-bottom: 2px solid transparent; }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.bulk-bar select { width: 230px; height: 40px; }
.bulk-bar .btn { height: 40px; }

.live-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .88rem;
}
.live-banner button { background: #fff; color: var(--primary); border: 0; border-radius: 8px; padding: 6px 14px; font: inherit; font-weight: 600; font-size: .82rem; cursor: pointer; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #28c76f; margin-right: 8px; box-shadow: 0 0 0 0 rgba(40, 199, 111, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(40, 199, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(40, 199, 111, 0); } }

/* ---------- Tables ---------- */
.table-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th {
    text-align: left; padding: 12px 16px; background: var(--surface-alt); border-bottom: 1px solid var(--line);
    font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
table.data th.num { text-align: right; }
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr:hover td { background: #fcfbff; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tfoot td { background: var(--primary-soft); font-weight: 700; color: var(--primary); border-top: 1px solid var(--primary-line); border-bottom: 0; }
table.data .cell-main { font-weight: 600; color: var(--ink); }
table.data .cell-sub { font-size: .78rem; color: var(--muted); }
table.data tr.is-cancelled td { color: var(--muted); }
table.data tr.is-cancelled .cell-main { color: var(--muted); text-decoration: line-through; }
table.data td.col-check, table.data th.col-check { width: 44px; padding-right: 0; }

.status-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mini-actions { display: flex; gap: 12px; }

details.assign > summary { list-style: none; cursor: pointer; display: inline-flex; }
details.assign > summary::-webkit-details-marker { display: none; }
details.assign[open] > summary { background: var(--primary-soft); border-color: var(--primary); }
.assign-form { display: flex; gap: 6px; margin-top: 8px; min-width: 210px; }
.assign-form select { height: 34px; font-size: .82rem; padding: 0 30px 0 10px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); }
.pager-info { font-size: .84rem; color: var(--muted); }
.pager-links { display: flex; gap: 6px; align-items: center; }
.pager-links a, .pager-links span {
    min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-strong); border-radius: 9px; font-size: .84rem; font-weight: 500; color: var(--text); text-decoration: none;
}
.pager-links a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.pager-links .current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pager-links .disabled { opacity: .4; }
.pager-links .gap { border: 0; min-width: 20px; padding: 0; }

.meter { height: 8px; min-width: 90px; background: var(--primary-soft); border-radius: 999px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }

.empty { padding: 56px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 1.02rem; margin: 8px 0 4px; }
.empty-icon { font-size: 2rem; }

@media (max-width: 820px) {
    table.data thead { display: none; }
    table.data, table.data tbody, table.data tfoot, table.data tr { display: block; width: 100%; }
    table.data tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
    table.data tbody tr:last-child { border-bottom: 0; }
    table.data td { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 5px 0; border: 0; text-align: right; }
    table.data td::before { content: attr(data-label); flex: none; font-size: .68rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); text-align: left; }
    table.data td.col-check { width: auto; padding: 0 0 6px; justify-content: flex-start; }
    table.data td.col-check::before { content: 'Select'; }
    table.data td.num { text-align: right; }
    table.data tfoot tr { display: flex; flex-wrap: wrap; justify-content: space-between; padding: 14px 16px; }
    table.data tfoot td { display: block; padding: 0; }
    table.data tfoot td::before { display: none; }
    table.data tfoot td.hide-sm { display: none; }
    .status-cell { align-items: flex-end; }
    .assign-form { min-width: 0; }
}

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 980px) { .grid-2, .grid-side { grid-template-columns: minmax(0, 1fr); } }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Auth pages ---------- */
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-brand {
    position: relative; overflow: hidden; background: var(--primary); color: #fff;
    display: flex; flex-direction: column; justify-content: space-between; padding: 48px 56px;
}
.auth-brand::before, .auth-brand::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.auth-brand::before { width: 420px; height: 420px; right: -140px; bottom: -120px; }
.auth-brand::after { width: 220px; height: 220px; right: 120px; bottom: 140px; background: rgba(255, 255, 255, .04); }
.auth-brand .wordmark { color: #fff; font-size: 1.35rem; position: relative; z-index: 1; }
.auth-brand-copy { position: relative; z-index: 1; max-width: 420px; }
.auth-brand-copy h2 { color: #fff; font-size: 2.1rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 18px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 12px; color: rgba(255, 255, 255, .82); font-size: .95rem; }
.auth-points li::before {
    content: '✓'; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .14);
    display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; color: #fff; margin-top: 2px;
}
.auth-brand-foot { position: relative; z-index: 1; font-size: .8rem; color: rgba(255, 255, 255, .55); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 28px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.75rem; margin-bottom: 6px; }
.auth-subtitle { color: var(--muted); margin-bottom: 26px; }
.auth-footer { margin: 22px 0 0; text-align: center; font-size: .9rem; color: var(--muted); }
.auth-footer a { font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.resend-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.resend-block summary { cursor: pointer; font-weight: 500; }
.resend-block form { margin-top: 14px; }
.result-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 18px; }
.result-ok { background: var(--ok-bg); color: var(--ok); }
.result-bad { background: var(--danger-bg); color: var(--danger); }

@media (max-width: 900px) {
    .auth-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .auth-brand { padding: 22px 24px; }
    .auth-brand-copy, .auth-brand-foot { display: none; }
    .auth-brand::before, .auth-brand::after { display: none; }
    .auth-panel { align-items: flex-start; padding: 32px 20px 48px; }
}

/* ---------- Employee: order screen ---------- */
.order-wrap { max-width: 560px; margin: 0 auto; }
.order-card { overflow: hidden; }
.order-top { padding: 22px 26px; background: var(--primary); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-top .tag { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.order-top .date { font-size: 1.05rem; font-weight: 600; }
.countdown { background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.order-body { padding: 26px; }
.dish-name { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 8px; }
.dish-desc { color: var(--muted); margin-bottom: 16px; }
.price-pill { display: inline-block; background: var(--primary-soft); color: var(--primary); border: 1px solid var(--primary-line); border-radius: 999px; padding: 5px 14px; font-weight: 600; font-size: .9rem; }
.order-divider { border: 0; border-top: 1px dashed var(--line-strong); margin: 24px 0; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.stepper button { width: 48px; border: 0; background: var(--surface-alt); color: var(--primary); font-size: 1.3rem; font-weight: 600; cursor: pointer; }
.stepper button:hover { background: var(--primary-soft); }
.stepper input { width: 64px; height: 48px; border: 0; border-radius: 0; text-align: center; font-size: 1.1rem; font-weight: 600; padding: 0; -moz-appearance: textfield; }
.stepper input:focus { box-shadow: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0; }
.total-row .label { margin: 0; color: var(--muted); font-weight: 500; }
.total-amount { font-size: 1.9rem; font-weight: 700; color: var(--primary); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.order-empty { padding: 48px 26px; text-align: center; }

/* ---------- Admin: weekly menu board ---------- */
.week-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.day-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-height: 190px; }
.day-card.is-today { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(32, 1, 85, .08), var(--shadow); }
.day-card.is-past { background: var(--surface-alt); box-shadow: none; }
.day-card.is-empty { border-style: dashed; box-shadow: none; background: #fff; }
.day-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.day-name { font-weight: 700; color: var(--ink); }
.day-date { font-size: .8rem; color: var(--muted); }
.day-dish { font-weight: 600; color: var(--ink); font-size: 1rem; line-height: 1.35; }
.day-desc { font-size: .82rem; color: var(--muted); }
.day-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.day-price { font-weight: 700; color: var(--primary); }
.day-empty-text { color: var(--muted); font-size: .88rem; margin: auto 0 0; }

/* ---------- Admin: reports ---------- */
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 240px; padding: 22px 20px 14px; }
.chart-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.chart-bar-wrap { position: relative; flex: 1; width: 100%; min-height: 0; }
.chart-bar { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 40px; min-height: 3px; background: var(--primary); border-radius: 6px 6px 0 0; transition: height .3s ease, background .15s; }
.chart-bar.zero { background: var(--line); }
.chart-col:hover .chart-bar:not(.zero) { background: var(--primary-hover); }
.chart-label { height: 18px; margin-top: 8px; font-size: .68rem; color: var(--muted); white-space: nowrap; }
.chart-empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.rank { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); font-size: .72rem; font-weight: 700; margin-right: 10px; flex: none; }
.name-cell { display: flex; align-items: center; }
table.compact td, table.compact th { padding: 11px 16px; }
.report-note { font-size: .8rem; color: var(--muted); margin-top: 20px; }
