/* Coast Guard Mess - one stylesheet, mobile first, no inline styles (strict CSP). */

:root {
  --navy-950: #08182c;
  --navy-900: #0b2340;
  --navy-800: #0d2a4a;
  --navy-700: #16406b;
  --navy-600: #1f5689;
  --navy-100: #e3ebf4;
  --navy-50: #f1f5fa;
  --stripe: #e8590c;
  --bg: #f3f5f8;
  --surface: #ffffff;
  --text: #17212e;
  --muted: #586577;
  --border: #d5dce5;
  --border-strong: #b7c2cf;
  --green: #17703a;
  --green-bg: #e6f4ea;
  --red: #b42318;
  --red-bg: #fdecea;
  --amber: #8a5300;
  --amber-bg: #fff3d6;
  --blue: #1f5689;
  --blue-bg: #e7f0fb;
  --veg: #1e8a3c;
  --nonveg: #a3361f;
  --egg: #c98a00;
  --radius: 10px;
  --radius-sm: 7px;
  --tap: 44px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
img, svg { max-width: 100%; }
a { color: var(--navy-600); text-underline-offset: 2px; }
a:hover { color: var(--navy-800); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; color: var(--navy-900); }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); font-weight: normal; }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid #f59f00; outline-offset: 2px; }
.print-only { display: none; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-800); color: #fff; border-bottom: 3px solid var(--stripe); }
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; min-width: 0; }
.brand:hover { color: #fff; }
.brand-mark { width: 28px; height: 28px; fill: #fff; flex: none; }
.brand-text { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who { display: flex; align-items: center; gap: 10px; font-size: .875rem; min-width: 0; }
.who-name { opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.nav { background: var(--navy-900); }
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 8px;
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav a {
  color: #dbe6f2; text-decoration: none; padding: 11px 12px; white-space: nowrap; font-size: .94rem;
  border-bottom: 3px solid transparent; min-height: var(--tap); display: flex; align-items: center;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--stripe); font-weight: 600; }

/* ---------- Page ---------- */
.page { width: 100%; max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; flex: 1; }
.page.narrow { max-width: 600px; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 16px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.page-head h1, .page-head h2 { margin-bottom: .25em; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { font-size: .9rem; margin-bottom: 10px; }
.crumbs a { text-decoration: none; }
.day-title { font-weight: 600; color: var(--navy-800); margin: 8px 0 14px; }
.stack > * + * { margin-top: 12px; }

/* ---------- Cards and grids ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 16px;
}
.card > :last-child { margin-bottom: 0; }
.card-alert { border-color: #f0b35c; background: #fffaf0; }
.auth-card { margin-top: 24px; }
.auth-alt { margin-top: 16px; text-align: center; }
.grid { display: grid; gap: 16px; }
.grid > .card { margin-bottom: 0; }
.grid.meals { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 16px; }
.grid.two { grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 800px) { .grid.two { grid-template-columns: 1fr 1fr; } }
.big-icon { font-size: 2.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tap); padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--navy-700); background: #fff; color: var(--navy-800);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2;
  touch-action: manipulation;
}
.btn:hover { background: var(--navy-50); color: var(--navy-900); }
.btn-primary { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.btn-block { display: flex; width: 100%; }
.btn-danger-outline { border-color: var(--red); color: var(--red); }
.btn-danger-outline:hover { background: var(--red-bg); color: var(--red); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-link { background: none; border: 0; padding: 6px; font: inherit; color: var(--navy-600); text-decoration: underline; cursor: pointer; }
.btn-link.light { color: #fff; }
.inline { display: inline; }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.actions-row.center { justify-content: center; }
.meal-card .btn-block { margin-top: auto; }

/* ---------- Forms ---------- */
fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
legend { font-weight: 700; color: var(--navy-800); padding: 0; margin-bottom: 8px; }
.card fieldset + fieldset { border-top: 1px solid var(--border); padding-top: 14px; }
.field { margin-bottom: 14px; min-width: 0; }
.field > label, .field .label, .field > legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 5px; color: var(--text); }
.optional { font-weight: normal; color: var(--muted); }
input[type="text"], input[type="password"], input[type="search"], input[type="number"], input[type="date"],
input[type="month"], input[type="time"], input:not([type]), select, textarea {
  width: 100%; min-height: var(--tap); padding: 9px 11px; font: inherit; font-size: 16px; color: var(--text);
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
input:focus, select:focus, textarea:focus { border-color: var(--navy-600); outline: 3px solid var(--navy-100); outline-offset: 0; }
.has-error input, .has-error select, input[aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-size: .875rem; margin: 5px 0 0; font-weight: 600; }
.hint { color: var(--muted); font-size: .85rem; margin: 5px 0 0; }
.field.check { display: flex; align-items: center; gap: 10px; }
.field.check label { margin: 0; font-weight: 500; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; accent-color: var(--navy-800); flex: none; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.radios label { display: flex; align-items: center; gap: 8px; min-height: var(--tap); font-weight: 500; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.input-narrow { max-width: 90px; }
.input-price { max-width: 110px; text-align: right; }
.form-row { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-end; }
.form-row .field { flex: 1 1 160px; }
.form-row .field.grow { flex: 3 1 220px; }
.form-row .field-submit { flex: 0 0 auto; }
.form-row.compact { gap: 8px; align-items: center; margin-bottom: 8px; }
.form-row.compact input:not([type="checkbox"]) { flex: 1 1 180px; width: auto; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .field-submit { grid-column: 1 / -1; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.copy-forms { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.filter-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.filter-row h2 { margin: 0; }
.filter-row input { max-width: 260px; }
.search-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.search-bar input { flex: 1; }
.date-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.date-nav input, .date-nav select { width: auto; }

/* ---------- Flash messages and badges ---------- */
.flash { border-radius: var(--radius-sm); padding: 11px 14px; margin: 0 0 16px; border-left: 4px solid; font-weight: 500; }
.flash-info { background: var(--blue-bg); border-color: var(--blue); }
.flash-success { background: var(--green-bg); border-color: var(--green); }
.flash-error { background: var(--red-bg); border-color: var(--red); color: #7a1a12; }
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  vertical-align: middle; white-space: nowrap; background: var(--navy-50); color: var(--navy-700); border: 1px solid var(--navy-100);
}
.badge-active { background: var(--green-bg); color: var(--green); border-color: #bfe3ca; }
.badge-pending { background: var(--amber-bg); color: var(--amber); border-color: #f3d79b; }
.badge-inactive, .badge-disabled { background: #eef0f3; color: #5d6673; border-color: #dde1e6; }
.badge-rejected { background: var(--red-bg); color: var(--red); border-color: #f5c6c0; }
.badge-role { text-transform: capitalize; }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--navy-100); font-size: .75rem; text-align: center; }

/* Indian food marks: square with a dot (green veg, brown-red non-veg, yellow egg). */
.mark {
  display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 2px;
  position: relative; margin-right: 8px; vertical-align: -2px; flex: none;
}
.mark::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: currentColor; }
.mark-veg { color: var(--veg); }
.mark-nonveg { color: var(--nonveg); }
.mark-egg { color: var(--egg); }

/* ---------- Menu ---------- */
.day-block + .day-block { margin-top: 8px; }
.day-heading { font-size: 1.25rem; margin: 4px 0 12px; }
.meal-card { display: flex; flex-direction: column; gap: 8px; }
.meal-card.is-closed { background: #fafbfc; }
.meal-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.meal-head h2, .meal-head h3 { margin: 0; }
.dish-list { list-style: none; margin: 0 0 6px; padding: 0; }
.dish-list li { display: flex; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--border); gap: 4px; }
.dish-list li:last-child { border-bottom: 0; }
.dish-name { flex: 1; }
.price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

/* ---------- Ordering ---------- */
.order-form { position: relative; }
.order-lines { list-style: none; margin: 0 0 12px; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.order-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.order-line:last-child { border-bottom: 0; }
.order-line.is-soldout { opacity: .6; }
.ol-dish { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; min-width: 0; flex: 1; }
.ol-name { font-weight: 600; }
.ol-price { width: 100%; padding-left: 22px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; flex: none; }
.stepper .step {
  width: var(--tap); height: var(--tap); border: 1px solid var(--navy-700); background: #fff; color: var(--navy-800);
  font-size: 1.35rem; font-weight: 700; line-height: 1; cursor: pointer; touch-action: manipulation;
}
.stepper .step:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.stepper .step:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.stepper .step:active { background: var(--navy-100); }
.stepper .qty {
  width: 52px; min-height: var(--tap); text-align: center; border-radius: 0; border-left: 0; border-right: 0;
  border-color: var(--navy-700); font-weight: 700; -moz-appearance: textfield; appearance: textfield;
}
.stepper .qty::-webkit-outer-spin-button, .stepper .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.has-qty { background: var(--navy-50); }
.basket {
  position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--navy-800); color: #fff; padding: 10px 12px 10px 16px; border-radius: var(--radius);
  box-shadow: 0 -2px 12px rgba(8, 24, 44, .25); margin-bottom: max(8px, env(safe-area-inset-bottom));
}
.basket-sum { display: flex; flex-direction: column; line-height: 1.2; }
.basket-sum span { font-size: .85rem; opacity: .85; }
.basket-sum strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.basket .btn-primary { background: #fff; color: var(--navy-900); border-color: #fff; }
.basket .btn-primary:hover { background: var(--navy-100); }
.picker { margin-bottom: 4px; }

/* ---------- Order cards and bills ---------- */
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.order-card.is-cancelled { background: #fafafa; }
.order-card.is-cancelled .lines { text-decoration: line-through; color: var(--muted); }
.oc-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; margin-bottom: 6px; }
.oc-meal { font-weight: 700; color: var(--navy-800); }
.oc-foot { margin-top: 6px; }
.cancel-row { margin: -4px 0 0; text-align: right; }
.lines { width: 100%; border-collapse: collapse; font-size: .95rem; }
.lines td, .lines th { padding: 4px 0; text-align: left; }
.lines .num { text-align: right; white-space: nowrap; padding-left: 10px; }
.lines tfoot th, .lines tfoot td { border-top: 1px solid var(--border); padding-top: 6px; }
.bill-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.bill-head h1, .bill-head h2 { margin: 0; }
.amount-due { font-size: 1.4rem; color: var(--navy-900); }
.amount { font-variant-numeric: tabular-nums; }
.bill-table tr.adj td { color: var(--amber); }
.receipt-meta, .credentials { display: grid; grid-template-columns: 1fr; gap: 6px 16px; margin: 0 0 14px; }
@media (min-width: 560px) { .receipt-meta { grid-template-columns: 1fr 1fr; } }
.receipt-meta div, .credentials div { display: flex; flex-direction: column; }
.receipt-meta dt, .credentials dt { font-size: .8rem; color: var(--muted); }
.receipt-meta dd, .credentials dd { margin: 0; font-weight: 600; }
.credentials { background: var(--navy-50); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.credentials dd { font-size: 1.3rem; }

/* ---------- Tables ---------- */
/* position: relative keeps absolutely-positioned screen-reader labels inside the scroll box. */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: var(--navy-50); border-bottom-color: var(--border-strong); white-space: nowrap; }
.table tfoot th, .table tfoot td { border-top: 2px solid var(--border-strong); border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table.compact th, .table.compact td { padding: 6px 8px; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions form { margin-left: 4px; }
.menu-table td { vertical-align: middle; }
.menu-table label { display: flex; align-items: center; font-weight: 500; }
.audit .details { font-size: .82rem; color: var(--muted); word-break: break-word; min-width: 220px; }
.pnl-table th { font-weight: 500; }
.pnl-table .indent th { padding-left: 26px; color: var(--muted); }
.pnl-table .subtotal th, .pnl-table .subtotal td { font-weight: 700; background: var(--navy-50); }
.pnl-table .total th, .pnl-table .total td { font-weight: 800; font-size: 1.05rem; color: var(--green); border-bottom: 0; }
.pnl-table .total.neg th, .pnl-table .total.neg td { color: var(--red); }

/* ---------- Lists, tabs, chips ---------- */
.people, .plain, .link-list { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.people li:last-child { border-bottom: 0; }
.people a { text-decoration: none; color: var(--text); }
.people a:hover strong { text-decoration: underline; }
.plain li { padding: 6px 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.link-list li { border-bottom: 1px solid var(--border); }
.link-list a { display: block; padding: 11px 0; text-decoration: none; font-weight: 500; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 14px; padding-bottom: 2px; scrollbar-width: thin; }
.tabs a {
  white-space: nowrap; text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: #fff; color: var(--navy-800); font-weight: 600; font-size: .92rem; min-height: 40px; display: inline-flex; align-items: center; gap: 6px;
}
.tabs a[aria-current="page"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.tabs a[aria-current="page"] .count { background: rgba(255, 255, 255, .25); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--navy-50);
  border: 1px solid var(--navy-100); text-decoration: none; color: var(--navy-800); font-weight: 600; min-height: 40px;
}
.steps { padding-left: 20px; }
.steps li { margin-bottom: 6px; }
.cat-list li { padding: 0; }

/* ---------- KPIs and stats ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi {
  display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--text);
}
a.kpi:hover { border-color: var(--navy-600); }
.kpi-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.kpi-value { font-size: 1.45rem; font-weight: 800; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: .85rem; color: var(--muted); }
.kpi-alert { border-color: #f0b35c; background: #fffaf0; }
.kpi-pos .kpi-value { color: var(--green); }
.kpi-neg .kpi-value { color: var(--red); }
.stats, .pnl { margin: 0 0 12px; display: grid; gap: 8px; }
.stats div, .pnl div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.stats dt, .pnl dt { color: var(--muted); }
.stats dd, .pnl dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.pnl-net dd { color: var(--green); font-size: 1.15rem; }
.pnl-net.neg dd { color: var(--red); }
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px; margin: 8px 0 14px; }
.report-head h2 { font-size: 1.35rem; margin: 0; }

/* ---------- Share / QR ---------- */
.qr { width: min(280px, 80vw); margin: 0 auto 10px; }
.qr svg { width: 100%; height: auto; display: block; }
.share-url { word-break: break-all; font-size: 1rem; }

.poster { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; text-align: center; max-width: 640px; margin: 0 auto; }
.poster h1 { font-size: 2rem; margin-bottom: 4px; }
.poster-address { color: var(--muted); }
.poster-lead { font-size: 1.4rem; font-weight: 700; color: var(--navy-700); margin: 16px 0; }
.poster-qr { width: min(360px, 80vw); margin: 0 auto; }
.poster-qr svg { width: 100%; height: auto; display: block; }
.poster-url { font-family: var(--mono); font-size: 1.1rem; word-break: break-all; margin-top: 10px; }
.poster-steps { text-align: left; max-width: 420px; margin: 20px auto 0; font-size: 1.1rem; }
.poster-steps li { margin-bottom: 8px; }

@media (max-width: 520px) {
  h1 { font-size: 1.3rem; }
  .who-name { display: none; }
  .card { padding: 14px; }
  .search-bar .btn { padding: 9px 12px; }
}

/* ---------- Print ---------- */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; font-size: 11pt; }
  .topbar, .nav, .foot, .no-print, .btn, .skip, .flash, form.cancel-row, .basket { display: none !important; }
  .print-only { display: block; }
  .page { max-width: none; padding: 0; }
  .card, .order-card, .kpi { border: 1px solid #999; break-inside: avoid; }
  .table thead th { background: #eee; }
  a { color: inherit; text-decoration: none; }
  .poster-page .poster { border: 0; max-width: none; }
  .poster-page .crumbs { display: none; }
}

/* Day jump links keep a little space under the sticky-less header when jumping. */
.day-block { scroll-margin-top: 12px; }
.tabs a .muted { color: inherit; opacity: .75; }
.tabs a[aria-current="true"] { border-color: var(--navy-700); }

/* ---------- Pending orders and Served (19 Nov 2026) ---------- */
.badge-waiting { background: var(--blue-bg); color: var(--navy-800); border-color: #c5d6ef; }
.badge-served { background: var(--green-bg); color: var(--green); border-color: #bfe3ca; }
.badge-not-collected { background: #eef0f3; color: #5d6673; border-color: #dde1e6; }
.badge-cancelled { background: var(--red-bg); color: var(--red); border-color: #f5c6c0; }
.oc-badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; align-items: center; }
.order-no { font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.order-card.is-cancelled { background: #fafafa; }
.order-card.is-cancelled .lines { text-decoration: line-through; color: var(--muted); }
.order-card.is-not-collected { background: #fafafa; }
.order-card.is-waiting { border-left: 4px solid var(--navy-700); }
.order-card.is-served { border-left: 4px solid var(--green); }
.pending-item { display: grid; gap: 8px; }
.serve-form { display: flex; justify-content: flex-end; margin: 0; }
.btn-serve { min-height: 52px; min-width: 160px; font-size: 1.1rem; }
@media (max-width: 600px) { .serve-form .btn { width: 100%; } }
.stats-inline { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 16px; }
.stats-inline div { display: flex; gap: 6px; align-items: baseline; }
.stats-inline dt { color: var(--muted); }
.stats-inline dd { margin: 0; font-weight: 700; }
.meal-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.meal-count { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; min-height: 44px; }
.meal-count:hover { border-color: var(--navy-700); }
.meal-count.has-waiting { border-left: 4px solid var(--navy-700); }
.mc-name { font-weight: 700; color: var(--navy-800); }
.mc-nums { font-size: .92rem; color: var(--muted); }
.mc-nums strong { color: var(--text); }
.order-number-callout { text-align: center; border: 2px dashed var(--navy-700); border-radius: var(--radius); padding: 14px; margin: 0 0 14px; background: var(--surface); }
.onc-label { margin: 0; color: var(--muted); }
.onc-number { margin: 2px 0; font-size: 2.6rem; font-weight: 800; letter-spacing: .04em; color: var(--navy-900); line-height: 1.1; }
.onc-help { margin: 0; }
.served-now { margin: 12px 0; }
