:root {
  --bg: #141414; --panel: #1d1d1d; --panel-2: #262626; --ink: #f4f1ea; --dim: #b9b5ab;
  --line: rgba(244, 241, 234, .18); --accent: #e8542f; --ok: #5fbf77; --warn: #ffd23f; --bad: #ff8a70;
  color-scheme: dark; /* phone date/time pickers match the dark page */
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.45; }
a { color: inherit; }
/* Header stays pinned at the top; app.js sets --top-h so the page starts below it. */
body { padding-top: var(--top-h, 64px); }
/* z-index 7: above New order's footer (.no-foot, 6) so the open ☰ Menu isn't covered by it (John, Nov 15, 2026). */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 7; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  padding: 10px 16px; background: #101010; border-bottom: 1px solid var(--line); }
.brand { font-size: 18px; letter-spacing: .02em; }
.current { flex: 1; min-width: 0; color: var(--dim); font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-wrap { position: relative; z-index: 1; }
/* Behind the open ☰ Menu: dims and blurs the page. A tap on it closes the menu without pressing what's underneath. */
.menu-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); touch-action: none; }
.menu-scrim[hidden] { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); color: var(--ink);
  font-family: inherit; font-size: 16px; font-weight: 700; height: 44px; padding: 0 14px; border-radius: 10px; cursor: pointer; }
.lock[hidden] { display: none; }
.menu-btn .bars { font-size: 20px; line-height: 1; }
.menu-btn[aria-expanded="true"] { background: var(--panel); }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 260px; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.menu nav { display: grid; }
.menu nav button { display: flex; align-items: center; gap: 14px; background: none; border: 0; color: var(--ink); font-family: inherit; font-size: 19px; font-weight: 600; text-align: left; padding: 15px 16px; min-height: 54px; border-radius: 8px; cursor: pointer; }
.nav-icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-line { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu nav button:hover { background: #333; }
/* The page you're on: same green as a picked choice on a dish's sheet. Inset shadow, so the border adds no height. */
.menu nav button[aria-current="true"] { background: rgba(47, 143, 78, .25); box-shadow: inset 0 0 0 1px #2f8f4e; }
.menu-install { display: flex; width: 100%; align-items: center; gap: 10px; background: none; border: 0; border-top: 1px solid var(--line); color: var(--ink);
  font-family: inherit; font-size: 19px; font-weight: 600; text-align: left; padding: 15px 16px; margin-top: 6px; cursor: pointer; }
.menu-install[hidden] { display: none; }
.menu-install img { border-radius: 6px; }
.who { color: var(--dim); font-size: 15px; padding: 12px 16px 8px; border-top: 1px solid var(--line); margin-top: 6px; overflow-wrap: anywhere; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
.banner { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--warn); color: var(--warn); }
.banner.error { border-color: var(--bad); color: var(--bad); }
.banner.ok { border-color: var(--ok); color: var(--ok); }
/* Requests waiting (Nov 16, 2026, John; alerts.js): a manager's banner, tap to open Alerts, ✕ hides it until a new request. */
.req-banner { display: flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 10px; border-color: #b8740b; background: rgba(184, 116, 11, .15); }
.req-banner[hidden] { display: none; }
.req-banner-go { flex: 1; background: none; border: 0; color: #f0a43a; font: inherit; font-weight: 700; text-align: left; padding: 10px 14px; cursor: pointer; min-height: 44px; }
.req-banner-x { background: none; border: 0; color: var(--dim); font: inherit; font-size: 18px; padding: 8px 14px; cursor: pointer; min-height: 44px; }
.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
input, select, textarea { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-family: inherit; font-size: 16px; min-height: 40px; }
label { color: var(--dim); }
label.check { display: inline-flex; gap: 6px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; border: 1px solid var(--accent);
  border-radius: 999px; padding: 8px 16px; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; min-height: 40px; }
.btn.ghost { background: none; color: var(--ink); border-color: var(--dim); }
.btn.small { min-height: 34px; padding: 5px 12px; font-size: 14px; }
.btn.danger { background: none; color: var(--bad); border-color: var(--bad); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.muted { color: var(--dim); }
.small { font-size: 14px; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; font-size: 20px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.badge { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.st-paid, .st-printed { color: var(--warn); } .st-completed { color: var(--ok); } .st-voided, .st-expired { color: var(--bad); } .st-pending_payment { color: var(--dim); }
.items { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.items li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.items .mods { color: var(--dim); font-size: 14px; display: block; }
.row { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.void-form { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.seg { display: inline-flex; border: 1px solid var(--dim); border-radius: 999px; overflow: hidden; }
.seg button { background: none; border: 0; color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 600; padding: 8px 14px; min-height: 40px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--dim); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.ready { font-size: 22px; font-weight: 700; }
.ready.late { color: var(--bad); }
/* Compact: small cards so more orders fit on the screen. */
.cards.compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.cards.compact .card { padding: 8px 10px; gap: 4px; }
.cards.compact .card h3 { font-size: 16px; }
.cards.compact .ready { font-size: 17px; display: flex; justify-content: space-between; gap: 8px; }
.cards.compact .ready .total { font-size: 15px; font-weight: 600; color: var(--dim); }
.cards.compact .due { padding: 6px 8px; gap: 6px; font-size: 14px; }
.cards.compact .actions { margin-top: 2px; gap: 6px; }
.cards.compact .linkbtn { padding: 0; }
.linkbtn { background: none; border: 0; color: var(--dim); text-decoration: underline; cursor: pointer; font-family: inherit; font-size: 14px; padding: 4px 0; align-self: flex-start; }
.removed { text-decoration: line-through; color: var(--dim); }
.added-tag { color: var(--ok); font-size: 12px; font-weight: 700; margin-left: 6px; }
.due { border: 1px solid var(--warn); color: var(--warn); border-radius: 10px; padding: 8px 10px; display: grid; gap: 8px; }
.adj-list { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--dim); }
.adj-list li { padding: 3px 0; }
/* Payments on the order card (Nov 15, 2026): a voided or given-back payment struck through; Void in red text. */
.pay-lines .adj-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.pay-lines .struck { text-decoration: line-through; }
.btn.danger-text { color: var(--bad); }
.card-ref { width: 8em; text-transform: uppercase; }
.adjust { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 10px; }
.adjust h4 { margin: 0; font-size: 15px; }
.adjust .mods, .tk-label .mods { color: var(--dim); font-size: 14px; display: block; } /* options under the dish, not run into its name (Adjust; Add to check's sent dishes) (Nov 17, 2026, John) */
.adj-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--dim); background: none; color: var(--ink); font-size: 18px; cursor: pointer; }
.picker { display: grid; gap: 8px; background: var(--panel-2); border-radius: 10px; padding: 10px; }
.picker select, .picker input { width: 100%; }
.opts { display: grid; gap: 6px; }
.opts[hidden] { display: none; } /* display:grid beat [hidden], so Add to check showed 'Collect at the register' (Nov 17, 2026, John) */
.opts label { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 15px; }
.preview { font-size: 17px; font-weight: 700; }
.preview.refund { color: var(--ok); } .preview.owe { color: var(--warn); }
.qr { background: #fff; padding: 10px; border-radius: 10px; width: fit-content; }
.qr svg { display: block; width: 220px; height: 220px; }
.cart-total { display: grid; gap: 2px; font-size: 15px; }
.cart-total b { font-size: 18px; }
/* Tip: No tip / 10% / 15% / 20% / Other, and the dollar box for Other (New order, pickup popup). */
.tip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tip-row .seg button { padding: 8px 11px; }
.tip-amount { width: 6.5em; }
.tip-amount[hidden] { display: none; }
.shift-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.shift-row input[type=text] { width: 9em; }
.summary { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; color: var(--dim); }
.summary b { color: var(--ink); }
.summary { align-items: center; }
.summary .sort button { min-height: 32px; padding: 2px 12px; font-size: 17px; }
.field { display: grid; gap: 4px; }
.field[hidden] { display: none; } /* e.g. New order's pickup date, shown only for Other time */
.grid2 { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.switch { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; }
.switch input { width: 22px; height: 22px; accent-color: var(--accent); min-height: 0; }
.err { color: var(--bad); font-size: 14px; min-height: 1em; }
/* An error shown under the field that caused it (fieldError in app.js). Full width in flex and grid rows. */
.field-err { color: var(--bad); font-size: 14px; flex-basis: 100%; grid-column: 1 / -1; }
[aria-invalid="true"] { border-color: var(--bad) !important; outline: 1px solid var(--bad); }
/* A row (search box + Add) with an error: outline the box, not the whole row. */
.actions[aria-invalid="true"] { outline: 0; }
.actions[aria-invalid="true"] input { border-color: var(--bad) !important; outline: 1px solid var(--bad); }
.okmsg { color: var(--ok); font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 20px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 700; }
h2 { font-size: 18px; margin: 18px 0 6px; }
.lock { display: inline-flex; gap: 8px; align-items: center; color: var(--dim); font-size: 15px; }
.lock.open { color: var(--ok); font-weight: 700; }
.pad-overlay { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .7); display: grid; place-items: center; padding: 16px;
  overflow-y: auto; overscroll-behavior: contain; }
/* While a popup is open the page behind it stays put (and the ☰ menu's own scrolling stays in the menu). */
html:has(.pad-overlay) { overflow: hidden; }
.menu { overscroll-behavior: contain; }
.pad { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; width: min(340px, 100%); display: grid; gap: 12px; text-align: center; }
.pad h3 { margin: 0; font-size: 20px; }
.pad p { margin: 0; }
.pad-dots { display: flex; gap: 14px; justify-content: center; padding: 6px 0; }
.pad-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--dim); }
.pad-dots span.on { background: var(--ink); border-color: var(--ink); }
.pad-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pad-key { min-height: 64px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font-family: inherit; font-size: 24px; font-weight: 700; cursor: pointer; }
.pad-key.ghost { font-size: 15px; background: none; }
.pad-key:active { background: var(--ink); color: var(--bg); }
/* Who are you? (name first, then code) */
.pad.pad-who { width: min(520px, 100%); }
.pad-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; }
.pad-name { min-height: 60px; padding: 8px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font-family: inherit; font-size: 18px; font-weight: 700; cursor: pointer; overflow-wrap: anywhere; }
.pad-name:active { background: var(--ink); color: var(--bg); }
.pad-other { justify-self: center; }

.emp { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.emp-form { display: grid; gap: 10px; width: 100%; }
.stack { display: grid; gap: 12px; max-width: 720px; }
.print-title { display: none; }
@media print {
  body { background: #fff; color: #000; padding-top: 0; }
  .top, .no-print, .banner { display: none !important; }
  .print-title { display: block; }
  th, td { border-color: #bbb; }
  .muted { color: #555; }
}
/* Green "Picked up" badge opens the picked-up popup. */
.badge-btn { background: none; font-family: inherit; cursor: pointer; min-height: 0; }
.dialog { text-align: left; width: min(380px, 100%); }
/* AI Phone Orders: More phone settings popup (Nov 14, 2026, John). One part after another, each with its own heading. */
.dialog.phone-dialog { width: min(560px, 100%); }
.phone-more { display: flex; flex-direction: column; }
.phone-part { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.phone-part:first-child { border-top: 0; padding-top: 0; }
.phone-part h4.sub { margin: 0; font-size: 16px; display: flex; gap: 8px; align-items: baseline; }
.phone-part h4.sub span { font-size: 14px; font-weight: 400; color: var(--dim); }
.phone-part h4.sub span.state-off { color: var(--bad); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.dialog-actions .btn { min-height: 50px; min-width: 110px; padding: 0 22px; font-size: 18px; } /* easy to hit on a tablet */
/* New order outside regular hours */
.hours-warn { color: var(--bad); border: 1px solid var(--bad); border-radius: 10px; padding: 8px 10px; font-weight: 700; }
/* Opening hours editor */
.hours { display: grid; gap: 6px; }
.hours-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.hours-times { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.hours .range { display: inline-flex; align-items: center; gap: 4px; }
/* Phone: no clock icon in the time boxes (a tap on the box opens the picker), so a day's two times and its ✕ fit on one\n   line inside the fold. */
@media (max-width: 440px) { .hours input[type="time"]::-webkit-calendar-picker-indicator { display: none; } }
.hours input[type="time"] { padding: 6px; min-height: 36px; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
/* Store settings groups: tap the title to open or close */
.group { border-top: 1px solid var(--line); }
.group summary { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 12px 0; cursor: pointer; list-style: none; min-height: 44px; }
.group summary::-webkit-details-marker { display: none; }
.group-title { font-weight: 700; font-size: 17px; }
.group > summary > :first-child::before { content: "▸"; display: inline-block; width: 1.1em; color: var(--dim); transition: transform .15s; }
.group[open] > summary > :first-child::before { transform: rotate(90deg); }
.group-body { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
/* Inside an open fold (every <details class="group"> on every screen: Stores, Employees, order Details, Items, Food Menu):
   a slightly darker, rounded panel so what's in it reads as inside the fold. A fold inside a fold goes a touch lighter
   again, so the two levels stay apart. --fold-bg is per theme (the white export sheet sets its own). */
:root { --fold-bg: rgba(0, 0, 0, .24); --fold-bg-2: rgba(255, 255, 255, .04); }
.group > .group-body { background: var(--fold-bg); border-radius: 10px; padding: 10px 12px 12px; margin: 2px 0 12px; }
.group-body .group > .group-body { background: var(--fold-bg-2); }
@media (max-width: 440px) { .group > .group-body { padding: 10px; border-radius: 8px; } }
.group-body h4.sub { margin: 10px 0 0; font-size: 15px; }
/* Tablet: Stores greyed out until a manager taps their code */
.menu nav button.locked { color: var(--dim); opacity: .6; }
.menu nav button.locked::after { content: " 🔒"; }
.card > .group:first-child { border-top: 0; }
.card > .group > summary { padding: 2px 0; min-height: 36px; align-items: center; }
.emp-list li { padding: 0; }
.emp-list .group { border-top: 0; }
.emp-list .group summary { padding: 8px 0; min-height: 44px; align-items: center; }
.card h3 select { font-size: 15px; min-height: 36px; padding: 4px 8px; }
/* Wide report tables scroll sideways; the page stays phone-width */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 20px; }
.table-wrap table { margin: 0; }
.table-wrap th, .table-wrap td { white-space: nowrap; }
html, body { overflow-x: clip; } /* clip, not hidden: hidden would stop New order's ticket from staying in view (sticky) */
main { min-width: 0; }
@media print { .table-wrap { overflow: visible; } .table-wrap th, .table-wrap td { white-space: normal; } }
/* Food Menu */
.fm-items li { padding: 0; }
.fm-items .group { border-top: 0; }
.fm-items .group summary { padding: 8px 0; min-height: 44px; align-items: center; }
.fm-items .group-title { font-weight: 600; font-size: 16px; }
.fm-price { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--dim); font-size: 15px; }
.fm-price .badge { margin-right: 4px; }
.fm-warn { color: var(--bad); }
.fm-soldout { display: grid; gap: 4px; background: var(--panel-2); border-radius: 10px; padding: 6px 10px; }
.fm-size { display: grid; grid-template-columns: 1fr 96px auto; gap: 6px; align-items: center; }
input.money { width: 96px; }
/* A number box just wide enough for 3 digits, no spinner arrows (so it's the same on a computer and a phone). */
input.ib-num3 { width: calc(3ch + 20px); padding: 8px; -moz-appearance: textfield; appearance: textfield; }
input.ib-num3::-webkit-inner-spin-button, input.ib-num3::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* Item name box with ▾, which opens the item list in a popup. */
.ib-combo { position: relative; flex: 1; min-width: 0; display: flex; }
.ib-combo > input { flex: 1; min-width: 0; padding-right: 40px; }
/* Chrome adds its own datalist arrow once there's text; ours (▾) is the one that browses. Typing suggestions stay. */
.ib-combo > input::-webkit-calendar-picker-indicator { display: none !important; }
.ib-combo-arrow { position: absolute; top: 1px; right: 1px; bottom: 1px; width: 38px; background: none; border: 0; color: var(--dim); font-size: 18px; cursor: pointer; border-radius: 0 8px 8px 0; }
/* The pick-items popup: nearly full screen, the list scrolls inside it, header and Done stay put. */
.dialog.ib-pick { width: min(900px, 100%); height: min(90vh, 900px); display: flex; flex-direction: column; gap: 8px; }
.ib-pick .ib-finder { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.ib-pick .ib-finder-list { flex: 1; min-height: 0; overflow-y: auto; }
/* A heavy line between the search controls and the list. */
.ib-finder-list { border-top: 2px solid rgba(244, 241, 234, .45); margin-top: 3px; } /* 8px gap + 3 = the space under it to the first item's text (11px) */
textarea { width: 100%; resize: vertical; font-family: inherit; font-size: 16px; font-family: inherit; }
.group-body .group summary .group-title, .group-body .group summary .muted { font-size: 15px; }
/* Narrow phones: drop "Admin" from the header so the page name fits */
@media (max-width: 440px) { .brand-x { display: none; } }

/* Food Menu: sections inside the master / store folds, and the menu-mode choice. */
/* Levels: a section is a tinted bar with a yellow edge, its items sit indented under that edge,
   and an open item's details sit indented again under a blue edge, so where each one starts and ends is plain. */
.fm-section { margin-top: 8px; }
.fm-section > .group { border-top: 0; }
.fm-section > .group > summary { padding: 8px 10px 8px 8px; align-items: center; background: rgba(255, 210, 63, .13); border-left: 4px solid #ffd23f; border-radius: 0 8px 8px 0; }
.fm-section > .group > summary .group-title { font-size: 17px; }
.fm-section > .group > .group-body { margin-top: 4px; padding: 6px 8px 8px 12px; border-left: 4px solid #ffd23f; border-radius: 0 8px 8px 0; }
.fm-section > .group > .group-body > .group { border-top: 0; }
.fm-sections { padding: 0; gap: 0; }
.fm-items li[data-drag] > .group > summary > .group-title { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.fm-link { padding: 0; text-align: left; justify-content: flex-start; align-self: flex-start; min-height: 0; }
.fm-price input.money { font-size: 16px; }
.fm-items > li > .group[open] > summary .group-title { color: #6fc3ff; }
.fm-items > li > .group > .group-body { margin: 0 0 10px; padding: 6px 8px 8px 12px; border-left: 4px solid #6fc3ff; border-radius: 0 8px 8px 0; }
.fm-mode { align-items: flex-start; gap: 8px; text-align: left; }
.dialog .opts { text-align: left; }
/* Default choices for an item's option group: label, then one dropdown per pick. */
.fm-defaults { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fm-defaults > span { min-width: 5.5em; }
.fm-defaults select { flex: 1 1 140px; }
/* Item builder */
/* Item list: one line per item. Name first, type last (right); more columns as the screen widens. */
.ib-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: left; padding: 10px 0; cursor: pointer; }
.ib-row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-row .ib-c-type { text-align: right; max-width: 11rem; }
.ib-row .ib-c-price, .ib-row .ib-c-subs, .ib-row .ib-c-used, .ib-row .ib-c-menu { display: none; text-align: right; }
.ib-head { display: none; }
.ib-head .ib-row { cursor: default; padding: 4px 0; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); }
@container itemlist (min-width: 480px) {
  .ib-head { display: block; }
  .ib-row { grid-template-columns: minmax(0, 1fr) 5rem 11rem; }
  .ib-row .ib-c-price { display: block; }
}
@container itemlist (min-width: 720px) {
  .ib-row { grid-template-columns: minmax(0, 1fr) 5rem 5.5rem 5rem 11rem; }
  .ib-row .ib-c-subs, .ib-row .ib-c-used { display: block; }
}
@container itemlist (min-width: 900px) {
  .ib-row { grid-template-columns: minmax(0, 1fr) 5rem 5.5rem 5rem 5.5rem 11rem; }
  .ib-row .ib-c-menu { display: block; }
}
.ib-rules { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; container-type: inline-size; }
/* "Up to [3] items" then "Same item up to [2] ×" on its own line; one sentence when there's room. */
.ib-limits { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; }
.ib-limits .ib-each { flex-basis: 100%; }
.ib-limits .ib-wide { display: none; }
@container (min-width: 440px) {
  .ib-limits .ib-each { flex-basis: auto; }
  .ib-limits .ib-wide { display: inline; }
  .ib-limits .ib-narrow { display: none; }
}
.ib-entries li { padding: 6px 0; }
/* The same heavy line as the item search, between How it works and the first item. */
.ib-entries:not(:empty) { border-top: 2px solid rgba(244, 241, 234, .45); margin-top: 4px; } /* about 10px above and below */
.ib-entry { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; }
.ib-entry > .ib-entry-type { justify-self: end; text-align: right; }
/* Bottom row: default (or how many) on the left, move and take-out buttons on the right. */
.ib-how { background: var(--panel-2); border-radius: 10px; padding: 0 12px; }
.ib-how > .group { border-top: 0; }
/* AI Voice Hint: label, a full-width box, then what blank means. */
.ib-voice { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 4px; }
.ib-voice input { width: 100%; box-sizing: border-box; }
/* Same lighter panel for "Add item to this list". */
/* Sort toggle in the item finder: plain text with up/down arrows, at the right of its row. */
.ib-sort { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: #8a867e; font: inherit; font-size: 14px; padding: 8px 2px; cursor: pointer; }
/* Brighter only under a mouse or keyboard focus: a phone keeps :hover after a tap, which left it bright. */
@media (hover: hover) { .ib-sort:hover { color: var(--ink); } }
.ib-sort:focus-visible { color: var(--ink); }
.ib-sort-arrows { display: inline-flex; }
/* Used in: no line under the last one. */
.ib-usedin li:last-child { border-bottom: 0; }
.ib-panel { background: var(--panel-2); border-radius: 10px; padding: 12px; }
/* + New item / + New list side by side; the open one gets the whole row. */
.ib-newrow { display: flex; flex-wrap: wrap; gap: 8px; }
.ib-newrow > .ib-panel { flex: 1 1 0; min-width: 0; padding: 0 12px; }
.ib-newrow > .ib-panel:has(details[open]) { flex-basis: 100%; }
.ib-newrow .group { border-top: 0; }
.ib-entry-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ib-entry-foot > label { display: flex; gap: 6px; align-items: center; }
.ib-entry .ib-move { display: flex; gap: 4px; margin-left: auto; }
.ib-tree { list-style: none; margin: 2px 0 2px 14px; padding-left: 10px; border-left: 1px solid var(--line); }
.ib-tree-list { color: var(--dim); }
/* Item builder breadcrumb and clickable preview items */
.ib-crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 15px; }
/* Links and the current item on one baseline, same size (.linkbtn on its own is 14px, top-aligned, padded). */
.ib-crumbs > * { align-self: baseline; font-size: 15px; line-height: 1.4; }
.ib-crumbs .linkbtn { padding: 0; font: inherit; }
.ib-tree-item { font-weight: 700; color: inherit; }
/* A group's name in the tree opens its own page; same look as the text around it, underlined. */
.ib-tree-listlink { padding: 0; font: inherit; color: inherit; }
/* Links inside a sentence (a shared list's "on Hamburger, Cheeseburger"); "· shared list" after a name in the search. */
.ib-inline-link { padding: 0; font: inherit; align-self: auto; }
.ib-list-tag { font-weight: 400; }
/* An item in the tree: name (and its note) on the left, type on the right. */
.ib-tree-line { display: flex; align-items: baseline; gap: 4px 12px; }
.ib-tree-line > :first-child { min-width: 0; }
.ib-tree-type { margin-left: auto; text-align: right; white-space: nowrap; }
.ib-entry .ib-special { grid-column: 1 / -1; }
.ib-entry .ib-special .group { border-top: 0; }
.ib-entry .ib-special .group summary { padding: 2px 0; min-height: 28px; }
.ib-entry > .linkbtn { justify-self: start; text-align: left; font-size: 16px; }
/* The item list card can use the full page width; columns follow the card's width, not the window's. */
#i-root { max-width: none; }
#i-root > :not(.ib-list-card) { max-width: 720px; width: 100%; }
.ib-finder { container: itemlist / inline-size; display: flex; flex-direction: column; gap: 8px; }
/* Item page top card: the item as it reads. Tap the name, type, price or description to change it in place. */
.ib-top { gap: 6px; min-width: 0; }
.ib-name { margin: 0; font-size: 1.4em; line-height: 1.25; }
.ib-tap { cursor: text; border-radius: 6px; }
.ib-tap:hover, .ib-tap:focus-visible { text-decoration: underline dotted; text-underline-offset: 4px; }
.ib-tap-edit { width: 100%; }
input.ib-name-edit { font-size: 1.4em; font-weight: 700; }
.ib-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ib-meta > .field-err { flex-basis: 100%; }
.ib-meta > :first-child { flex: 1; min-width: 0; }
.ib-meta > .ib-tap-edit:last-child { width: 8em; flex: none; }
.ib-meta > .ib-tap-edit:only-child { width: 100%; flex: 1; } /* a list's type, alone on its line */
.ib-type { color: var(--dim); }
.ib-plural { margin: 0; color: var(--dim); font-size: 14px; }
.ib-pricetag { margin-left: auto; font-weight: 700; white-space: nowrap; }
.ib-desc { margin: 0; min-width: 0; max-width: 100%; color: var(--dim); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-top .ib-tree-root { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.ib-tree-root > .ib-tree { margin-left: 0; padding-left: 0; border-left: 0; }
/* Long press to drag (treeDrag): no text selection or phone menu on a hold; the picked-up row is lifted. */
.ib-tree-root li[data-drag] > .ib-tree-list, .ib-tree-root li[data-drag] > .ib-tree-line,
.ib-entries li[data-drag] > .ib-entry > .linkbtn, .ib-entries li[data-drag] > .ib-entry > .ib-entry-type { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
li.ib-dragging { background: var(--panel-2); outline: 2px solid var(--accent); border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); position: relative; z-index: 1; }
.ib-drag-on { touch-action: none; }

/* The dish picking sheet (vendor/dish-picker.js, the website order page's sheet) in New order and order changes. */
.dish-sheet { display: grid; gap: 8px; }
.dish-sheet:empty { display: none; }
.dish-sheet .opt-group { border: 0; padding: 0; margin: 4px 0 0; display: grid; gap: 2px; }
.dish-sheet .opt-group legend { font-weight: 700; margin-bottom: 4px; padding: 0; }
.dish-sheet .opt { color: var(--dim); font-weight: 400; font-size: 13px; }
.dish-sheet .opt-row { display: flex; align-items: center; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--line, #333); cursor: pointer; }
.dish-sheet .opt-row > span:first-of-type { flex: 1; }
.dish-sheet .opt-row input { width: 18px; height: 18px; margin: 0; }
.dish-sheet .opt-price { color: var(--dim); font-size: 14px; }
.dish-sheet .opt-sub { margin: 2px 0 6px 26px; padding-left: 10px; border-left: 2px solid var(--line, #333); display: grid; gap: 2px; }
.dish-sheet .opt-sub[hidden] { display: none; }
.dish-sheet .opt-sub-title { margin: 0; font-weight: 700; }
.dish-sheet .opt-comes { margin: 0; color: var(--dim); font-size: 14px; }
.dish-sheet .opt-single { margin: 0 0 4px; color: var(--dim); font-size: 13px; font-style: italic; }
.dish-sheet .qty { display: inline-flex; align-items: center; border: 1px solid var(--dim); border-radius: 999px; flex-shrink: 0; }
.dish-sheet .qty button { background: none; border: 0; color: inherit; font-size: 18px; width: 36px; height: 36px; cursor: pointer; }
.dish-sheet .qty button:disabled { opacity: .35; cursor: default; }
.dish-sheet .qty span { min-width: 22px; text-align: center; font-weight: 700; }
.dish-sheet .opt-name { display: grid; }
.dish-sheet .opt-extra { font-size: 12px; font-style: italic; color: var(--dim); }
.dish-sheet .opt-error { margin: 0 0 4px; color: var(--bad); font-weight: 700; }
.dish-sheet .opt-error:empty { display: none; }
.dish-sheet .opt-missing legend { color: var(--bad); }

/* ---------- AI Assistant (looks like the Claude app: messages, composer pinned at the bottom) ---------- */
#panel-assistant { max-width: 760px; margin: 0 auto; }
.ai { display: flex; flex-direction: column; min-height: calc(100dvh - var(--top-h, 64px) - 32px); }
.ai-top { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.ai-top select { flex: 1; min-width: 0; }
.ai-log { flex: 1; display: flex; flex-direction: column; gap: 14px; padding-bottom: 16px; }
.ai-msg { max-width: 100%; overflow-wrap: anywhere; }
.ai-user { align-self: flex-end; max-width: 85%; display: grid; gap: 6px; justify-items: end; }
.ai-bubble { background: var(--panel-2); border-radius: 18px; padding: 10px 14px; white-space: pre-wrap; }
.ai-bot { line-height: 1.55; }
.ai-md p { margin: 0 0 8px; }
.ai-md p:last-child { margin-bottom: 0; }
.ai-md ul, .ai-md ol { margin: 0 0 8px; padding-left: 22px; }
.ai-md li { margin: 2px 0; }
.ai-md .ai-h { font-weight: 700; }
.ai-md code { background: var(--panel-2); border-radius: 4px; padding: 0 4px; font-size: 14px; }
.ai-act { color: var(--dim); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.ai-act::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); flex: none; }
.ai-act.err { color: var(--bad); }
.ai-act.err::before { background: var(--bad); }
.ai-working::before { background: var(--accent); animation: ai-pulse 1s ease-in-out infinite; }
@keyframes ai-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .ai-working::before { animation: none; } }
.ai-prop { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.ai-prop-title { font-weight: 700; }
.ai-steps { margin: 0; padding-left: 22px; display: grid; gap: 4px; font-size: 15px; }
.ai-steps li.ok::marker { color: var(--ok); }
.ai-steps li.bad { color: var(--bad); }
.ai-prop-btns { display: flex; gap: 8px; justify-content: flex-end; }
.ai-prop-status { font-weight: 700; }
.ai-prop-status.s2 { color: var(--ok); }
.ai-prop-status.s3 { color: var(--dim); }
.ai-prop-status.s4 { color: var(--bad); }
.ai-empty { margin: auto 0; text-align: center; display: grid; gap: 8px; padding: 24px 8px; }
.ai-hello { font-size: 22px; font-weight: 600; margin: 0; }
.ai-empty .muted { margin: 0 auto; max-width: 480px; }
.ai-ex { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.ai-composer { position: sticky; bottom: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 10px 10px 8px 14px;
  display: grid; gap: 6px; box-shadow: 0 -12px 24px var(--bg); }
.ai-composer textarea { background: none; border: 0; padding: 4px 0; min-height: 28px; max-height: 200px; resize: none; outline: none; line-height: 1.4; }
.ai-row { display: flex; align-items: center; gap: 8px; }
.ai-space { flex: 1; }
.ai-icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink); font-size: 22px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ai-icon.on { background: var(--bad); border-color: var(--bad); color: #fff; }
.ai-send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-family: inherit; font-size: 20px; font-weight: 700; cursor: pointer; }
.ai-send:disabled { opacity: .45; cursor: default; }
.ai-files { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-files:empty { display: none; }
.ai-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
  font-size: 14px; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-chip button { background: none; border: 0; color: var(--dim); font-size: 16px; cursor: pointer; padding: 0 0 0 4px; }
.ai-ex-btn { cursor: pointer; white-space: normal; text-align: left; }
.ai-cost { color: var(--dim); font-size: 13px; text-align: right; }
.ai-cost:empty { display: none; }
/* Item page: the dish's photo (worker/lib/photos.ts). */
.ib-photo { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ib-photo img { display: block; width: 96px; height: 96px; border-radius: 10px; object-fit: cover; background: var(--panel-2); }
.ib-photo-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ib-photo-open { flex: 0 0 auto; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.dialog.ib-photo-full { width: min(900px, 100%); display: flex; flex-direction: column; gap: 12px; }
.ib-photo-full > img { display: block; width: 100%; max-height: calc(100vh - 150px); border-radius: 10px; object-fit: contain; background: var(--panel-2); }
.ib-photos { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; width: 100%; min-width: 0; }
.ib-photo-row { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ib-photo-thumb { flex: 0 0 auto; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.ib-photo-thumb img { display: block; width: 88px; height: 88px; border-radius: 10px; object-fit: cover; background: var(--panel-2); }
.ib-photo-edit { display: flex; flex-direction: column; gap: 12px; }
.ib-photo-edit > img { display: block; width: 100%; max-height: 40vh; border-radius: 10px; object-fit: contain; background: var(--panel-2); }
.ib-photo-edit .field { display: flex; flex-direction: column; gap: 4px; }
.ib-photo-move { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* New order, laid out like a counter POS (Oct 30, 2026): the tile picker (also in order changes) and the ticket.
   Colors carry meaning: each menu section has its own color (its tiles and its dishes' stripe), green adds and places,
   red removes and clears. */
body:has(#panel-new:not([hidden])) main { max-width: 1400px; }
.btn.go { background: var(--btn-ok); border-color: var(--btn-ok); color: #fff; font-weight: 700; }
.no-head { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.no-store { display: flex; align-items: center; gap: 8px; }
.no-ticket, .pos { scroll-margin-top: calc(var(--top-h, 64px) + 8px); }
.no-cols { display: grid; gap: 12px; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .no-cols { grid-template-columns: minmax(0, 1fr) 380px; }
  .no-ticket { position: sticky; top: calc(var(--top-h, 64px) + 8px); max-height: calc(100vh - var(--top-h, 64px) - 16px); overflow-y: auto; }
}
/* Phone footer (ticket under the picker): Menu (back to the sections, top of the page) on the left, the order with its
   total on the right. Fixed to the bottom; the page gets room under it so nothing stays covered. */
.no-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .5); }
.no-foot button { min-height: 52px; border: 0; border-radius: 12px; font: inherit; font-size: 17px; font-weight: 700; color: #fff; cursor: pointer; }
.no-home { flex: none; padding: 0 18px; background: var(--panel-2) !important; border: 1px solid var(--line) !important; }
.no-order { flex: 1; background: #2f8f4e; }
.no-order.empty { background: var(--panel-2); color: var(--dim); }
body:has(#panel-new:not([hidden])) { padding-bottom: 84px; }
@media (max-width: 899.98px) {
  /* Phone: the menu and the order take turns (the footer switches). */
  #n-root:not(.show-order) .no-ticket, #n-root.show-order .no-menu { display: none; }
  /* The order side's send button takes the order button's place in the footer (footSend in new-order.js), so it stays put
     at the bottom however long the order is; the ticket's own copy of it is hidden (John, Nov 15, 2026). */
  #n-root:not(.show-order) .no-send, #n-root.show-order .no-order:not(.no-send), #n-root.show-order .foot-dup { display: none; }
}
.no-send:disabled { background: var(--panel-2); color: var(--dim); cursor: default; }
@media (min-width: 900px) {
  .no-foot { display: none; }
  body:has(#panel-new:not([hidden])) { padding-bottom: 0; }
}
/* New order: a field the order can't go without, left empty or wrong. */
.no-ticket .field.bad input { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.no-ticket .field.bad { color: var(--bad); }
.field-msg { color: var(--bad); font-size: 13px; font-weight: 600; }
.field-msg:empty { display: none; }
.tk-line { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.tk-price { font-weight: 700; }
.tk-x { background: none; border: 1px solid var(--bad); color: var(--bad); border-radius: 8px; width: 36px; height: 36px; font-size: 15px; cursor: pointer; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--dim); border-radius: 999px; flex-shrink: 0; }
.qty button { background: none; border: 0; color: inherit; font-size: 20px; width: 44px; height: 44px; cursor: pointer; }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }
.qty.qty-sm button { width: 34px; height: 34px; font-size: 17px; }
.no-ticket .grid2 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.no-ticket input:not([type=radio]):not([type=checkbox]), .no-ticket select { width: 100%; min-width: 0; box-sizing: border-box; }
.no-ticket .opts label { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.no-ticket .opts label:has(input:checked) { border-color: #2f8f4e; background: rgba(47, 143, 78, .18); }

.pos { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.pos-view { display: grid; gap: 10px; min-width: 0; }
.pos-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pos-top[hidden] { display: none; }
.pos-top input { flex: 1 1 220px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; font-size: 16px; }
.pos-status { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 20; max-width: calc(100vw - 32px); padding: 10px 18px;
  border-radius: 999px; background: #2f8f4e; color: #fff; font-weight: 700; pointer-events: none; opacity: 0; box-shadow: 0 4px 16px rgba(0, 0, 0, .5); }
.pos-status:empty { display: none; }
.pos-status.show { animation: pos-fade 2.4s ease forwards; }
@keyframes pos-fade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.pos-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.pos-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; text-align: left; min-height: 74px; padding: 10px 12px;
  border-radius: 10px; border: 0; font: inherit; color: var(--ink); cursor: pointer; touch-action: manipulation; }
.pos-tile:active { transform: scale(.97); }
.pos-name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.pos-cats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pos-cat { background: var(--c); color: #fff; min-height: 90px; }
.pos-cat { position: relative; }
.pos-cat .pos-name { font-size: 18px; padding-right: 34px; }
.pos-icon { position: absolute; top: 8px; right: 10px; font-size: 26px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.pos-count { font-size: 13px; opacity: .85; }
.pos-dish { background: var(--panel-2); border-left: 6px solid var(--c); }
.pos-dish.hit { background: #2f8f4e; }
/* A dish with a photo: a small square thumbnail at the left, its name, sizes and price beside it. */
.pos-grid:has(.has-photo) { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.pos-dish.has-photo { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-auto-rows: min-content; column-gap: 10px; align-content: center; }
.pos-dish.has-photo > :not(.pos-photo) { grid-column: 2; }
.pos-photo { grid-column: 1; grid-row: 1 / span 3; align-self: center; width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--panel); }
.pos-dish.off { opacity: .45; cursor: not-allowed; transform: none; }
/* Holding a tile (to mark it sold out) mustn't select its text or open the phone's menu. */
.pos-dish, .pos .dish-sheet .opt-row { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pos-tip { margin: 0; }
.so-now { margin: 0; font-weight: 700; color: var(--ok); }
.so-list { display: grid; }
.so-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.so-row b { font-size: 17px; }
.so-now.off { color: var(--bad); }
.dialog .opts label { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.dialog .opts label:has(input:checked) { border-color: #2f8f4e; background: rgba(47, 143, 78, .18); }
.pos-sizes { font-size: 13px; color: var(--dim); }
.pos-price { font-size: 15px; color: var(--dim); font-weight: 700; }
.pos-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.pos-chips::-webkit-scrollbar { display: none; }
.pos-chip { flex: none; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--c, var(--dim)); background: none;
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.pos-chip.on { background: var(--c); color: #fff; }
.pos-sheet { display: grid; gap: 10px; border-top: 6px solid var(--c); padding-top: 8px; }
.pos-sheet-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pos-sheet-head b { font-size: 19px; }
.pos-sheet-foot { display: flex; gap: 10px; align-items: center; }
.pos-add { flex: 1; min-height: 52px; font-size: 17px; }
/* Instructions and who it's for, side by side (stacked on a narrow screen). */
.pos-notes { display: grid; gap: 8px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 520px) { .pos-notes { grid-template-columns: minmax(0, 1fr); } }
.for-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #2f6db5; color: #fff; font-size: 13px; font-weight: 700; }
/* The sheet's choices: full-width boxes like the website's order page; what's picked turns green. */
.pos .dish-sheet .opt-group { gap: 6px; }
.pos .dish-sheet .opt-row { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-height: 48px; }
.pos .dish-sheet .opt-row input { width: 20px; height: 20px; accent-color: #2f8f4e; }
.pos .dish-sheet .opt-row:has(input:checked), .pos .dish-sheet div.opt-row.picked { border-color: #2f8f4e; background: rgba(47, 143, 78, .25); }
.pos .dish-sheet .opt-row:has(input:disabled), .pos .dish-sheet .opt-row.off { opacity: .45; cursor: not-allowed; }
.pos .dish-sheet .opt-row.off .opt-off { font-weight: 700; color: var(--dim); }
.pos .dish-sheet .opt-row.off input { visibility: hidden; } /* nothing to pick; holding it still turns it back on */
.pos .dish-sheet .opt-missing .opt-row { border-color: var(--bad); }
.pos .dish-sheet .opt-sub { margin: 0 0 4px 16px; }
/* Full screen or the installed app (html.compact, set in app.js): a tighter header and New order so the section
   tiles fit on one phone screen. */
html.compact .top { padding: 4px 12px; gap: 6px 12px; }
html.compact .brand { font-size: 16px; }
html.compact .current { font-size: 15px; }
html.compact .menu-btn { height: 36px; padding: 0 10px; }
html.compact body:has(#panel-new:not([hidden])) main { padding: 8px; }
html.compact .no-menu, html.compact .no-ticket { padding: 8px; }
html.compact .no-head { margin-bottom: 6px; }
html.compact .pos, html.compact .pos-view { gap: 8px; }
html.compact .pos-top input { min-height: 36px; font-size: 15px; }
html.compact .pos-cat { min-height: 70px; padding: 8px 10px; }
html.compact .pos-cat .pos-name { font-size: 17px; }
html.compact .pos-icon { top: 6px; right: 8px; font-size: 23px; }
html.compact .pos-dish { min-height: 64px; padding: 8px 10px; }
html.compact .no-foot { padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
html.compact .no-foot button { min-height: 46px; }
@media (max-width: 899.98px) { html.compact body:has(#panel-new:not([hidden])) { padding-bottom: 72px; } }
/* The ☰ Menu's own links (Use as store tablet, Turn off tablet mode): big enough to tap. */
.who .linkbtn { font-size: 17px; padding: 8px 0; }
.menu { max-height: calc(100dvh - var(--top-h, 64px) - 12px); overflow-y: auto; } /* a long menu (admins) scrolls on a phone */
/* Holding a tile or choice to mark it sold out: it darkens and a bar fills along the bottom over the second. */
.pos-dish, .pos .dish-sheet .opt-row { position: relative; overflow: hidden; }
.holding { filter: brightness(.8); }
.holding::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--warn); animation: hold-fill 1s linear forwards; }
@keyframes hold-fill { to { width: 100%; } }
/* Reports: the item filter and the Charts view (report-charts.js). Series colors checked on our dark panel. */
:root { --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500; --series-5: #d55181; --series-6: #008300; --series-7: #9085e9; --series-8: #e66767; }
.r-charts-btn { display: inline-flex; align-items: center; gap: 8px; }
.r-charts-btn .nav-icon { width: 18px; height: 18px; }
#r-qb-note[hidden] { display: none; }
.r-filter { margin: 6px 0 10px; }
.r-filter summary { display: inline-flex; list-style: none; cursor: pointer; }
.r-filter summary::-webkit-details-marker { display: none; }
.r-filter-box { display: grid; gap: 8px; margin-top: 8px; padding: 10px; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.r-filter-box .btn { justify-self: start; }
.r-pick-list { display: grid; max-height: 260px; overflow-y: auto; }
.r-pick { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 2px; cursor: pointer; }
.r-pick.off { opacity: .5; cursor: not-allowed; }
.r-pick input { width: 20px; height: 20px; min-height: 0; flex: none; margin: 0; accent-color: #2f8f4e; }
.chart { margin: 0 0 16px; padding: 14px 14px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.chart-title { font-size: 18px; font-weight: 700; }
.chart-sub { color: var(--dim); font-size: 14px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 14px; }
.chart-key { display: inline-flex; align-items: center; gap: 7px; }
.chart-swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.chart-plot { position: relative; margin-top: 8px; min-width: 0; }
.chart-plot svg { display: block; touch-action: pan-y; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--dim); font-size: 12px; }
.chart-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-line-partial { stroke-dasharray: 2 6; }
.trend-empty { margin: 14px 0 6px; }
.chart-trend .r-filter { margin: 10px 0 0; }
.chart-trend .chart { margin: 8px 0 0; padding: 0; background: none; border: 0; }
.chart-dot { stroke: var(--panel); stroke-width: 2; }
.chart-cross { stroke: var(--dim); stroke-width: 1; }
.chart-hit { fill: transparent; cursor: crosshair; }
.chart-tip { position: absolute; top: 8px; z-index: 2; min-width: 130px; padding: 8px 10px; background: #333; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; pointer-events: none; }
.chart-tip[hidden] { display: none; }
.chart-tip-head { font-weight: 700; margin-bottom: 4px; }
.chart-tip-row { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.chart-tip-row b { margin-left: auto; padding-left: 12px; }
.chart-tip-total { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.chart-bars { display: grid; gap: 10px; margin: 12px 0 8px; }
.chart-bar-head { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.chart-bar-head span { min-width: 0; overflow-wrap: anywhere; }
.chart-bar-head b { flex: none; font-weight: 600; }
.chart-bar-track { margin-top: 3px; }
.chart-bar-fill { height: 12px; border-radius: 0 4px 4px 0; }
@media print {
  .chart { background: #fff; color: #000; border-color: #bbb; break-inside: avoid; }
  .chart-sub, .chart-axis { color: #555; fill: #555; }
  .chart-grid { stroke: #ccc; }
  .chart-dot { stroke: #fff; }
  .chart-bar-fill, .chart-swatch { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Charts and Print wrap as a pair, so they stay on one row at any width. */
.r-actions { display: inline-flex; gap: 10px; }
/* Export sheet (export-sheet.js): centered on the screen. */
.xp { width: min(460px, calc(100% - 32px)); max-width: 100%; margin: auto; padding: 16px; background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; }
.xp::backdrop { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.xp:focus { outline: none; }
.xp-head { display: flex; justify-content: space-between; align-items: center; }
.xp-head h2 { margin: 0; font-size: 20px; }
.xp-close { background: none; border: 0; color: var(--ink); font-size: 28px; line-height: 1; min-width: 44px; min-height: 44px; cursor: pointer; }
.xp-field { display: grid; gap: 6px; margin-top: 12px; font-weight: 600; }
.xp-field select { width: 100%; }
.xp-types { display: flex; }
.xp-types button { flex: 1; cursor: pointer; }
.xp-types button:disabled { opacity: .4; cursor: not-allowed; }
.xp-status { min-height: 42px; margin: 12px 0; color: var(--dim); font-size: 14px; overflow-wrap: anywhere; }
.xp-actions { display: flex; gap: 10px; }
.xp-actions .btn { flex: 1; }
.xp-actions .btn[hidden] { display: none; }
.xp-actions .btn:disabled { opacity: .5; }
.xp-print { position: fixed; right: 0; bottom: 0; width: 0; height: 0; border: 0; }
/* What an image or PDF is drawn from: on white, out of sight. */
.xp-host { position: fixed; left: -20000px; top: 0; }
.xp-sheet { --fold-bg: rgba(0, 0, 0, .04); --fold-bg-2: rgba(0, 0, 0, .03); --bg: #fff; --panel: #fff; --panel-2: #f2f1ed; --ink: #141414; --dim: #55534e; --line: #d4d2cc;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100; --series-5: #e87ba4; --series-6: #008300; --series-7: #6250d6; --series-8: #e34948;
  background: #fff; color: var(--ink); padding: 8px; font-size: 14px; }
.xp-heading { margin: 0 0 6px; font-size: 18px; }
.xp-sheet h2 { margin: 12px 0 4px; }
.xp-sheet th, .xp-sheet td { color: var(--ink); border-color: var(--line); padding: 3px 6px; font-size: 12px; }
.xp-sheet .chart-bars { gap: 6px; margin: 8px 0 4px; }
.xp-sheet .chart { padding: 10px 14px 8px; }
.xp-sheet .table-wrap { overflow: visible; }
.xp-sheet .table-wrap th, .xp-sheet .table-wrap td { white-space: normal; }
.xp-sheet .chart-dot { stroke: #fff; }
.xp-sheet .muted { color: var(--dim); }

.state-on { color: var(--ok); }
.state-off { color: var(--bad); }

/* Phone test mode (Stores page) and the TEST badge on a test call's order card (Nov 12, 2026) */
.voice-test-subs { margin-left: 1.5rem; }
.test-badge { color: #fff; background: var(--bad); border-color: var(--bad); margin-right: 6px; }

/* Printers on the Stores page */
.printer-row { border-top: 1px solid var(--line, #333); padding: 10px 0; }
.printer-open { display: flex; flex-direction: column; gap: 2px; width: 100%; min-height: 48px; padding: 4px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pad h3.printer-name { display: flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
input.printer-name-edit { font-size: 20px; font-weight: 700; height: 44px; box-sizing: border-box; }
/* Print log in a printer's popup, and a ticket drawn as it printed: 576 dots across 80 mm paper, scaled to fit (1 dot = 100cqw / 576). */
.print-log-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.print-log-dates label { display: grid; gap: 2px; min-width: 0; }
.print-log-dates input { width: 100%; box-sizing: border-box; }
.print-log { display: grid; margin-top: 8px; }
.print-log-job { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 10px 0; border: 0; border-top: 1px solid var(--line, #333); background: none; color: inherit; font: inherit; text-align: left; }
button.print-log-job { cursor: pointer; min-height: 48px; }
.print-log-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.print-log-more { margin-top: 8px; justify-self: start; }
.ticket-paper { background: #fff; color: #000; padding: 14px 10px; border-radius: 4px; margin: 10px 0; max-width: 420px; }
.ticket-lines { container-type: inline-size; font-family: "Courier New", Courier, monospace; }
.ticket-line { height: calc(24 * var(--h) * 100cqw / 576); white-space: pre; overflow: visible; }
.ticket-line.center { text-align: center; }
.ticket-line span { display: inline-block; font-size: calc(var(--f) * var(--w) * 100cqw / 576); line-height: calc(24 * var(--w) * 100cqw / 576); transform: scaleY(calc(var(--h) / var(--w))); transform-origin: top left; }
.ticket-line span.b { font-weight: 700; }
.ticket-line span.inv { background: #000; color: #fff; }
.printer-test { margin: 0 0 8px; }
.printer-paused { margin: 0 0 8px; }
.printer-no-roles { margin: 4px 0 0; }
.printer-no-roles[hidden] { display: none; }
.print-role-default { margin-left: 8px; }
.print-role-list { display: flex; flex-direction: column; margin: 8px 0; }
.print-role-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; width: 100%; padding: 0 4px; background: none; border: 0; border-bottom: 1px solid var(--line, #333); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.print-role-row:disabled { cursor: default; }
.printer-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.printer-head { display: flex; width: 100%; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.printer-role { display: flex; align-items: center; gap: 10px; min-height: 44px; }
/* Who Handles popup (Stores -> To Go Settings): the people chosen, each with ×, and Add employee's searchable list. */
.togo-chosen { list-style: none; margin: 8px 0; padding: 0; }
.togo-person { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--line); }
.togo-person span { overflow-wrap: anywhere; }
.togo-remove { min-width: 44px; min-height: 40px; font-size: 1.2rem; line-height: 1; }
.togo-empty { padding: 6px 0; }
.togo-picker { margin: 6px 0 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.togo-picker[hidden], .actions .btn[data-togo-add][hidden] { display: none; }
.togo-picker input[type="search"] { width: 100%; box-sizing: border-box; }
.togo-choices { list-style: none; margin: 8px 0; padding: 0; max-height: 280px; overflow-y: auto; }
.togo-choice { display: block; width: 100%; text-align: left; min-height: 44px; padding: 8px 10px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font: inherit; cursor: pointer; }
.togo-choice:hover, .togo-choice:focus-visible { background: var(--panel-2); }
.togo-pool { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.printer-setup { margin: 8px 0; padding: 10px; border: 1px solid var(--line, #333); border-radius: 8px; }
.printer-setup-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin-top: 8px; align-items: center; }
.printer-setup-row .muted { grid-column: 1 / -1; }
.printer-setup-row code { overflow-wrap: anywhere; font-size: .85rem; }
.printer-problems { grid-column: 1 / -1; margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }

/* Food Menu (test): the menu as a tree */
.ib-changed { color: #5aa7e8; }
.menu-tree > li { margin-top: 10px; }
.menu-tree > li:first-child { margin-top: 0; }
.menu-sec-line .ib-tree-listlink { font-weight: 700; color: #e8c33a; }
.menu-tree .ib-tree-type { color: inherit; }
.menu-tree .linkbtn, .menu-sec-items .linkbtn { padding: 0; text-align: left; justify-content: flex-start; min-height: 0; }
.menu-tree .fm-items:empty { min-height: 14px; }
.menu-sec-items { margin-left: 0; padding-left: 0; border-left: 0; }
.ib-photo > img { display: block; }
.ib-no-tap { pointer-events: none; }
.ib-desc-full { white-space: normal; }
.ticket-qr { width: 45%; margin: 6px auto; }
.ticket-qr svg { display: block; width: 100%; height: auto; }

/* Food Menu: Delete menu / Copy changes sit apart from Printer roles so they aren't tapped by mistake. */
.fm-menu-actions { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line, rgba(127,127,127,.25)); }
.fm-menu-actions .actions { margin: 0; }
/* A section's printer roles popup (migration 0069): one role per line, easy to tap. */
.print-role-picks { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.print-role-pick { padding: 10px 4px; gap: 10px; }
.print-role-pick input { width: 20px; height: 20px; }

/* Kitchen status per dish and Add to order (Nov 12, 2026, John): Sent / Printed in grey, Not sent / New in orange. */
.kitchen-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.kitchen-tag.sent { background: var(--line); color: inherit; opacity: .8; }
.kitchen-tag.new { background: #b8740b; color: #fff; }
.tk-sent { grid-template-columns: auto 1fr auto; opacity: .85; }
.new-order[hidden] { display: none; }

/* Void requests (Nov 12, 2026, John): the order's badge, a dish's tag, the waiting request and the request form's dish list. */
.void-req-badge { color: #fff; background: var(--bad); border-color: var(--bad); margin-right: 6px; }
.kitchen-tag.void-req { background: var(--bad); color: #fff; }
.void-req-box { border-left: 4px solid var(--bad); }
.vr-lines { display: grid; gap: 6px; }
.vr-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Stores page: tablets that are on */
.tablet-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
/* Stores -> Tablets (migration 0104): name · device, then set up / last used; Rename and Turn off side by side. */
/* The buttons drop under the text when the row is too narrow for both (a phone, or a store card in two columns). */
.tablet-row:has(.tablet-info) { flex-wrap: wrap; row-gap: 8px; }
.tablet-info { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.tablet-btns { display: flex; gap: 6px; flex: none; margin-left: auto; }
/* The tablet's name, small, under "Fish House" in the header (on a store tablet). */
.brand .tablet-tag { display: block; font-size: 12px; font-weight: 600; color: var(--dim); letter-spacing: 0; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.who-tablet { color: var(--ink); }
.tablet-off { max-width: 520px; margin: 15vh auto; padding: 24px; text-align: center; }

/* Tax exempt (migration 0083) */
.tax-exempt { color: var(--warn, #e0a030); font-weight: 600; }
.discount-line { color: var(--warn, #e0a030); }
.exempt-form { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 6px; }

/* Cash page (migration 0086) */
.cash-card { max-width: 520px; }
.cash-lines { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 8px 0; }
.cash-lines dt, .cash-lines dd { margin: 0; }
.cash-lines dd { text-align: right; font-variant-numeric: tabular-nums; }
.cash-lines .grand { font-weight: 700; font-size: 1.1em; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; }

.slip { font: 12px/1.35 ui-monospace, Consolas, monospace; background: #fff; color: #111; padding: 12px; border-radius: 8px; overflow-x: auto; white-space: pre; margin: 0; }
.change-due { font-size: 44px; font-weight: 800; margin: 4px 0; color: var(--ok, #3fb37f); }
/* The print popup (ticketPopup with print): Cancel at the top, Print across the bottom */
.print-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.print-head h3 { margin: 0; }
.print-foot { display: grid; gap: 10px; }
.print-on { display: flex; align-items: center; gap: 8px; margin: 0; }
.print-on select { flex: 1; min-height: 44px; }
.btn.print-go { width: 100%; min-height: 68px; font-size: 24px; }
.print-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.print-more .btn { min-height: 50px; font-size: 17px; }
.ticket-fit { overflow-y: auto; }
.ticket-fit .ticket-paper { margin: 0 auto; box-sizing: border-box; }
/* Tables: dine-in checks (admin/app/tables.js). A tile per table: free (outline), another server's (grey), yours (green), paid (gold). */
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin: 10px 0 18px; }
.table-tile { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; min-height: 88px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: none; color: var(--ink); font-family: inherit; font-size: 15px; cursor: pointer; overflow: hidden; }
.table-tile:active { transform: scale(.97); }
.table-tile .table-name { font-size: 24px; line-height: 1.1; overflow-wrap: anywhere; }
.table-tile.tab .table-name { font-size: 18px; }
.table-tile .table-who { color: var(--dim); font-size: 14px; overflow-wrap: anywhere; }
.table-tile .table-meta { font-size: 13px; font-weight: 600; margin-top: auto; }
.table-tile.busy { background: var(--panel-2); border-color: var(--dim); }
.table-tile.mine { background: #1f4a2c; border-color: var(--ok); }
.table-tile.paid { background: #5a4a10; border-color: var(--warn); }
.table-tile.mine .table-who, .table-tile.paid .table-who { color: var(--ink); }
/* A discount or void request waiting on one of the table's checks (Nov 16, 2026, John). */
.table-tile.asked { border-color: #b8740b; box-shadow: inset 0 0 0 1px #b8740b; }
.table-flags { display: flex; flex-wrap: wrap; gap: 4px; }
.req-flag { color: #fff; background: #b8740b; border-color: #b8740b; padding: 2px 6px; letter-spacing: .03em; }
.table-title { margin: 0; font-size: 22px; }
.table-group { margin: 6px 0 0; font-size: 17px; color: var(--dim); }
.table-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.table-chip { min-width: 48px; min-height: 40px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--dim); background: none; color: var(--ink); font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.table-run { align-items: center; }
input.table-num { width: 78px; }
/* infoTip (admin/app/dialogs.js): a small (i) button and the bubble of help it opens. */
.with-tip { display: inline-flex; align-items: center; gap: 8px; }
.info-tip { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--dim); background: none; color: var(--ink); font: italic 700 15px/1 Georgia, "Times New Roman", serif; cursor: pointer; }
.info-tip::after { content: ""; position: absolute; inset: -10px; } /* a finger-sized target */
.info-tip[aria-expanded="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.info-bubble { position: fixed; z-index: 60; width: max-content; max-width: min(320px, calc(100vw - 20px)); padding: 12px 14px; border-radius: 12px; background: var(--panel-2);
  border: 1px solid var(--dim); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); color: var(--ink); font-size: 15px; line-height: 1.4; text-align: left; }
.info-bubble p { margin: 0 0 8px; }
.info-bubble p:last-child { margin-bottom: 0; }
.group-title .info-tip, h4 .info-tip, .printer-role .info-tip { margin-left: 8px; vertical-align: middle; }
.togo-who { margin-bottom: 6px; }
.info-bubble .tip-who { color: var(--dim); font-size: 14px; border-top: 1px solid var(--line); padding-top: 8px; }
.info-bubble .tip-who[hidden] { display: none; }
/* An order card's buttons centered, Pick Up last on its own line the card's width (John, Nov 15, 2026). */
.order-actions { justify-content: center; }
.order-actions .pickup-wide { order: 99; flex: 1 1 100%; min-height: 44px; font-size: 16px; }
/* Popup buttons, set once for the whole admin (John, Nov 15, 2026): the OK / accept button is green (--btn-ok) and
   Cancel is a red outline (--btn-cancel). Change the colors here. Cancel buttons carry the class "cancel"; the accept
   button is any plain .btn in a popup, or beside a Cancel in an inline form (Adjust, Void, Add to order). */
:root { --btn-ok: #2f8f4e; --btn-cancel: var(--bad); }
.btn.cancel, .pad-key.cancel { background: none; color: var(--btn-cancel); border-color: var(--btn-cancel); }
.pad-overlay .btn:not(.ghost):not(.danger):not(.cancel),
.actions:has(> .btn.cancel) > .btn:not(.ghost):not(.danger):not(.cancel),
.dialog-actions:has(> .btn.cancel) > .btn:not(.ghost):not(.danger):not(.cancel) { background: var(--btn-ok); border-color: var(--btn-ok); color: #fff; }

/* Store tablet lock screen (Nov 15, 2026, John): covers the whole app while nobody is signed in. Above the header (7) and
   New order's footer (6); popups (.pad-overlay, 20) such as the number pad open on top of it. */
.lockscreen { position: fixed; inset: 0; z-index: 15; background: var(--bg); overflow-y: auto; display: grid; place-items: start center; padding: 6vh 16px 24px; }
.lock-card { width: min(1000px, 100%); display: grid; gap: 12px; }
.lock-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lock-head h2 { margin: 0; }
.lock-card h3 { margin: 8px 0 0; font-size: 22px; }
.lock-card .pad-names { max-height: none; }
.lock-card .pad-other { justify-self: start; }
html.tablet-locked { overflow: hidden; }
html.tablet-locked main, html.tablet-locked .top { visibility: hidden; }
.lock .lock-secs { color: var(--dim); font-weight: 400; font-variant-numeric: tabular-nums; }
/* Store tablet, signed in, on a phone-width screen: the strip with who's signed in, their seconds and Sign out gets its own
   row under "Fish House" and the Menu button, so the Menu button stays at the top right instead of wrapping to the left
   under it (John, Nov 15, 2026). A long name is cut short with an ellipsis. Sign out sits on the left and the name and
   seconds on the right, so Sign out isn't right under the Menu button where it gets tapped by accident. */
@media (max-width: 640px) {
  .top > .lock { order: 10; flex: 1 0 100%; min-width: 0; }
  .lock .lock-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: auto; }
  .lock .lock-secs { flex: none; }
  .lock [data-sign-out] { flex: none; order: -1; margin-left: 0; }
}

/* Close-check / pickup popup money (Nov 16, 2026, John): one row each, label left, amount on the right edge, edit boxes the
   same width with their numbers on the right; read-only amounts padded to line up with the numbers typed in the boxes. */
.money-rows { display: flex; flex-direction: column; gap: 6px; margin: 4px 0; }
.money-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.money-val { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 4px; text-align: right; font-variant-numeric: tabular-nums; padding-right: 11px; }
.money-val:has(input) { padding-right: 0; }
input.money-in { width: 7.5em; box-sizing: border-box; text-align: right; font-variant-numeric: tabular-nums; }
.money-due { border-top: 1px solid var(--line); padding-top: 6px; font-size: 18px; }
/* Reports -> Servers by shift: an Over / short with changes after the close-out opens to its breakdown (migration 0113). */
.r-changes summary { cursor: pointer; }
.r-changes ul { text-align: left; white-space: normal; min-width: 18em; margin: .3em 0 0; padding-left: 1.1em; }
/* An employee's own phone (admin/app/phone.js): the full-page Unlock / Set up this phone screen, above every popup. */
.phone-gate { position: fixed; inset: 0; z-index: 80; background: var(--bg); overflow-y: auto; display: grid; place-items: start center; padding: 12vh 16px 24px; }
.phone-card { width: min(420px, 100%); display: grid; gap: 14px; text-align: center; }
.phone-card h2 { margin: 0; font-size: 28px; }
.phone-card p { margin: 0; }
.phone-card .phone-who { font-size: 20px; color: var(--dim); }
.phone-card .btn.big { font-size: 22px; padding: 18px; width: 100%; }
.phone-card .err:empty { display: none; }
.phone-card input { font-size: 20px; padding: 14px; text-align: center; width: 100%; }
.phone-card .phone-foot { flex-wrap: wrap; }
.phone-foot { display: flex; justify-content: center; gap: 24px; margin-top: 12px; }
html.phone-gated { overflow: hidden; }
html.phone-gated main, html.phone-gated .top { visibility: hidden; }
.emp-phones { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.phone-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; }
.shift-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0 2px; border-top: 1px dashed var(--line); }
.shift-row[hidden] { display: none; }
.lock-renew { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--warn); border-radius: 12px; background: rgba(255, 210, 63, .1); }
.lock-head-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.shift-qr { min-height: 180px; display: grid; place-items: center; }
.add-phone .qr { margin: 0 auto; }
.add-phone .steps { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; text-align: left; }
.add-phone .steps li, .add-phone p { overflow-wrap: anywhere; min-width: 0; }
.pad.add-phone { max-width: 100%; }
