/* ================================================================
   hangar.vip station — the Hangar cockpit standard (screens-proposal).
   Not just the tokens: the SHELL. One raised container wraps the work
   surface, the header pills sit ABOVE it, the sidebar links share the
   container surface and tuck BEHIND its left edge (fold-tabs), a title
   ribbon straddles the container's top edge, and the page wears the
   faint diagonal hatch. Four-role type system:
     --font-brand   Share Tech Mono — the HANGAR.VIP lockup ONLY
     --font-mono    IBM Plex Mono   — money, codes, timestamps, readouts
     --font-display Rajdhani        — tabs, section titles, action labels
     --font-body    IBM Plex Sans   — content text (product names)
   All fonts SELF-HOSTED (a till never depends on a CDN — offline-first).
   ================================================================ */

@font-face { font-family:'IBM Plex Sans'; src:url('/signage/fonts/cockpit/plexsans-var.woff2') format('woff2'); font-weight:100 700; font-display:swap; }
@font-face { font-family:'IBM Plex Mono'; src:url('/signage/fonts/cockpit/plexmono-400.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'IBM Plex Mono'; src:url('/signage/fonts/cockpit/plexmono-600.woff2') format('woff2'); font-weight:600; font-display:swap; }
@font-face { font-family:'IBM Plex Mono'; src:url('/signage/fonts/cockpit/plexmono-700.woff2') format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'Rajdhani'; src:url('/signage/fonts/cockpit/rajdhani-500.woff2') format('woff2'); font-weight:500; font-display:swap; }
@font-face { font-family:'Rajdhani'; src:url('/signage/fonts/cockpit/rajdhani-600.woff2') format('woff2'); font-weight:600; font-display:swap; }
@font-face { font-family:'Rajdhani'; src:url('/signage/fonts/cockpit/rajdhani-700.woff2') format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'Share Tech Mono'; src:url('/signage/fonts/cockpit/sharetech-400.woff2') format('woff2'); font-weight:400; font-display:swap; }
/* pairing.css (ported verbatim from the .media player) asks for JetBrains
   Mono / Inter by name — alias those names onto the cockpit files so the
   pairing screen speaks the standard without forking the shared stylesheet. */
@font-face { font-family:'JetBrains Mono'; src:url('/signage/fonts/cockpit/plexmono-400.woff2') format('woff2'); font-weight:100 500; font-display:swap; }
@font-face { font-family:'JetBrains Mono'; src:url('/signage/fonts/cockpit/plexmono-700.woff2') format('woff2'); font-weight:600 900; font-display:swap; }
@font-face { font-family:'Inter'; src:url('/signage/fonts/cockpit/plexsans-var.woff2') format('woff2'); font-weight:100 900; font-display:swap; }

/* ================================================================
   DESIGN SYSTEM — ported verbatim from Desktop/hangar-homepage/pos.html
   (owner's POS mockup, 7 design passes). Offline-first: NO Tailwind CDN,
   NO Google Fonts — the self-hosted cockpit @font-face block above supplies
   every family the --font-* tokens name. Two grammars: the Sale-screen till
   (.till/.tile/.ticket/.tk-overlay) + the instrument console (ps-*).
   ================================================================ */

/* ============================================================
   TOKENS — Hangar.Vip cockpit. DARK = blue-slate. LIGHT = warm copper.
   ============================================================ */
:root{
  color-scheme:dark;
  --bg:#0c0f14; --page-glow:none;
  --surface:#191f29; --surface-rec:#141923; --surface-well:#0f141c;
  --line:rgba(255,255,255,0.06); --card-line:rgba(255,255,255,0.08);
  --copper:#d99033; --copper-light:#e8a45a; --copper-dark:#a0622e; --copper-rgb:217 144 51;
  --text:#dde2ea; --text-dim:#93a0b0; --text-faint:#5d6a78;
  --green:#54c98a; --green-rgb:84 201 138; --red:#e0685f; --red-rgb:224 104 95;
  --amber:#e0a24e; --amber-rgb:224 162 78; --cyan:#57b6c6; --cyan-rgb:87 182 198;
  --pill-bg:rgba(255,255,255,0.02); --edge-sheen:rgba(255,255,255,0.04); --focus-ring:rgba(217,144,51,.75);
  --ribbon-top:#1c2129; --ribbon-bot:#14181f; --tab-top:#20262f; --tab-bot:#14181f;
  --shadow-near:rgba(0,0,0,0.6); --shadow-far:rgba(0,0,0,0.6); --hatch:rgba(255,255,255,0.015);
  --font-brand:'Share Tech Mono', ui-monospace, monospace;
  --font-mono:'IBM Plex Mono', ui-monospace, monospace;
  --font-display:'Rajdhani','Segoe UI',sans-serif;
  --font-body:'IBM Plex Sans','Segoe UI',sans-serif;
  --rail-w:92px; --gap:16px; --tuck:22px; --ear:8px; --panel-radius:14px;
}
[data-theme="light"]{
  color-scheme:light;
  --bg:#f4eee3; --surface:#fdfcf8; --surface-rec:#eae2d2; --surface-well:#efe7d8;
  --line:rgba(82,60,24,0.13); --card-line:rgba(82,60,24,0.12);
  --copper:#c9750a; --copper-light:#b45309; --copper-dark:#8f4a06; --copper-rgb:201 117 10;
  --text:#282115; --text-dim:#60553f; --text-faint:#7b7057;
  --green:#3f9d67; --green-rgb:63 157 103; --red:#c2483f; --red-rgb:194 72 63;
  --amber:#b9791f; --amber-rgb:185 121 31; --cyan:#2f8ea0; --cyan-rgb:47 142 160;
  --pill-bg:rgba(255,255,252,0.9); --edge-sheen:rgba(255,255,255,1); --focus-ring:rgba(201,117,10,.85);
  --ribbon-top:#fffefa; --ribbon-bot:#f6f1e7; --tab-top:#d8cdb8; --tab-bot:#c2b69d;
  --shadow-near:rgba(84,62,28,0.16); --shadow-far:rgba(84,62,28,0.10); --hatch:rgba(90,64,24,0.025);
  --page-glow:radial-gradient(90rem 32rem at 50% -14rem, rgba(255,253,246,.95), transparent 70%);
}

*,*::before,*::after{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0; background:var(--bg);
  background-image:var(--page-glow),
    repeating-linear-gradient(45deg, transparent 0, transparent 9px, var(--hatch) 9px, var(--hatch) 10px, transparent 10px, transparent 11px);
  font-family:var(--font-body); color:var(--text); -webkit-font-smoothing:antialiased; overflow:hidden;
}
[data-theme="light"] body{ background-attachment:fixed, scroll; }
a{ color:inherit; text-decoration:none; }
:where(a,button,input,select,textarea,[tabindex]):focus-visible{ outline:2px solid var(--focus-ring); outline-offset:2px; }
::selection{ background:rgb(var(--copper-rgb) / .35); }
button{ font-family:inherit; }

.scy{ overflow-y:auto; scrollbar-width:thin; scrollbar-color:rgb(var(--copper-rgb)/.35) transparent; }
.scy::-webkit-scrollbar{ width:10px; }
.scy::-webkit-scrollbar-thumb{ background:rgb(var(--copper-rgb)/.28); border-radius:20px; border:3px solid transparent; background-clip:content-box; }
.scy::-webkit-scrollbar-thumb:hover{ background:rgb(var(--copper-rgb)/.5); background-clip:content-box; }
.scx{ overflow-x:auto; scrollbar-width:none; }
.scx::-webkit-scrollbar{ height:0; }

/* ---- frame ---- */
.app{ display:grid; grid-template-columns:var(--rail-w) 1fr; height:100vh; align-items:stretch; }

/* ---- ICON RAIL ---- */
.rail{ position:relative; display:flex; flex-direction:column; padding:24px 0 14px; }
.rail-brand{ height:44px; display:grid; place-items:center; flex-shrink:0; margin-bottom:26px; }
.rail-mark{ font-family:var(--font-brand); font-size:23px; letter-spacing:.02em; color:var(--text); line-height:1; }
.rail-mark .dot{ color:var(--copper); }
.rail-nav{ display:flex; flex-direction:column; gap:5px; padding-left:12px; }
.rail-sp{ flex:1; }
.rail-item{
  position:relative; z-index:1; -webkit-appearance:none; appearance:none; cursor:pointer;
  display:flex; flex-direction:column; align-items:center; gap:5px;
  padding:11px 8px 10px; margin-right:calc(var(--tuck) * -1); padding-right:calc(8px + var(--tuck));
  border-radius:10px 0 0 10px; border:0; background:var(--surface-rec); color:var(--text-dim);
  transition:color .15s, background .15s;
}
.rail-item svg{ width:22px; height:22px; opacity:.9; }
.rail-lbl{ font-family:var(--font-mono); font-size:8.5px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; }
.rail-item:hover{ color:var(--text); background:var(--surface-well); }
.rail-item.is-active{ z-index:3; background:var(--surface); color:var(--copper-light); }
.rail-item.is-active svg{ opacity:1; }
.rail-item.is-active::before,.rail-item.is-active::after{ content:''; position:absolute; right:var(--tuck); width:var(--ear); height:var(--ear); pointer-events:none; }
.rail-item.is-active::before{ top:calc(var(--ear) * -1); background:radial-gradient(circle at top left, transparent var(--ear), var(--surface) calc(var(--ear) + .5px)); }
.rail-item.is-active::after{ bottom:calc(var(--ear) * -1); background:radial-gradient(circle at bottom left, transparent var(--ear), var(--surface) calc(var(--ear) + .5px)); }
.rail-badge{ position:absolute; top:6px; right:calc(var(--tuck) + 12px); min-width:17px; height:17px; padding:0 4px; display:grid; place-items:center; border-radius:9px; background:var(--copper); color:#1a0f06; font-family:var(--font-mono); font-size:9px; font-weight:700; }
/* A class-level `display` outranks the UA stylesheet's `[hidden]{display:none}`, so
   without this rule the `hidden` attribute is inert and both counters sit on the rail
   reading "0" forever — which teaches the eye to ignore the badge that matters. The JS
   (refreshHeldBadge / the incoming counter) has always set the attribute correctly. */
.rail-badge[hidden]{ display:none; }

/* rail bottom cluster — clock / lang / theme / cashier (relocated from the old top bar) */
.rail-foot{ flex-shrink:0; margin:12px 12px 0; padding-top:14px; border-top:1px solid var(--line); display:flex; flex-direction:column; align-items:center; gap:10px; }
.rail-clock{ font-family:var(--font-mono); font-size:11px; font-variant-numeric:tabular-nums; letter-spacing:.05em; color:var(--text-dim); }
.rail-minis{ display:flex; gap:7px; }
.rail-mini{ width:32px; height:32px; display:grid; place-items:center; border-radius:8px; cursor:pointer; background:var(--pill-bg); border:1px solid var(--line); color:var(--text-dim); font-family:var(--font-mono); font-size:10px; transition:.15s; }
.rail-mini svg{ width:15px; height:15px; }
.rail-mini:hover{ border-color:var(--copper); color:var(--text); }
.rail-cashier{ width:36px; height:36px; border-radius:50%; display:grid; place-items:center; cursor:pointer; border:0;
  background:linear-gradient(150deg,var(--copper-light),#a8631f); color:#1a0f06; font-family:var(--font-display); font-weight:700; font-size:15px; }
.ico-sun{ display:none; } .ico-moon{ display:block; }
[data-theme="light"] .ico-sun{ display:block; } [data-theme="light"] .ico-moon{ display:none; }

/* ---- RIGHT COLUMN + PANEL ---- */
.right{ position:relative; display:flex; padding:24px var(--gap) var(--gap) 0; min-width:0; height:100vh; }
.panel{
  position:relative; z-index:2; flex:1; min-height:0;
  background:var(--surface); border-radius:var(--panel-radius);
  box-shadow:-12px 0 26px -10px var(--shadow-near), 0 26px 60px -16px var(--shadow-far), inset 0 1px 0 var(--edge-sheen);
  padding:72px 54px 26px; display:flex; flex-direction:column; overflow:visible;
}
/* ribbon straddles the panel top; content edges align to left/right:30px */
.ribbon{ position:absolute; z-index:6; top:-17px; left:30px; right:30px; height:66px; filter:drop-shadow(0 8px 14px var(--shadow-far)); }
.ribbon-inner{
  position:relative; width:100%; height:100%; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 40px;
  background:linear-gradient(180deg, var(--ribbon-top) 0%, var(--ribbon-bot) 100%);
  border-top:1px solid rgb(var(--copper-rgb)/.65); box-shadow:inset 0 -1px 0 rgb(var(--copper-rgb)/.65);
  clip-path:polygon(0 0, 100% 0, calc(100% - 24px) 100%, 24px 100%);
}
.crumbs{ display:flex; align-items:center; gap:7px; font-family:var(--font-mono); font-size:10px; letter-spacing:.16em; text-transform:uppercase; color:var(--text-faint); white-space:nowrap; }
.crumbs .sep{ color:var(--copper); opacity:.7; }
.crumbs .cur{ color:var(--copper-light); }
.ribbon-title{ font-family:var(--font-display); font-weight:700; font-size:21px; letter-spacing:.02em; line-height:1; color:var(--text); margin-top:3px; }
.ribbon-r{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.shiftchip{ display:flex; align-items:center; gap:8px; font-family:var(--font-mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--text-dim); white-space:nowrap; }
.shiftchip .dotlive{ width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 0 3px rgb(var(--green-rgb)/.16); }
/* Epic E — the paired venue, as a read-only LABEL. Same mono/uppercase register as the shift
   chip so the two read as one cluster rather than a control.
   This replaces `.venuebtn`, which was ported from the mockup's venue PICKER and then sat
   dead in this stylesheet — five rules, zero usages, for a control deliberately never built
   (a till is bound to its location by pairing; switching it at the counter would attribute
   takings to the wrong venue). Removed rather than left to imply a feature. */
.venuechip{ display:inline-flex; align-items:center; gap:6px; height:26px; padding:0 10px; border-radius:8px; background:var(--surface-rec); border:1px solid var(--card-line); font-family:var(--font-mono); font-size:10px; letter-spacing:.08em; text-transform:uppercase; color:var(--text-dim); white-space:nowrap; }
.venuechip svg{ width:13px; height:13px; color:var(--copper-light); opacity:.9; }
/* Declaring `display` above would otherwise defeat the `hidden` attribute — the same trap
   `.lic-panel[hidden]` / `.rail-badge[hidden]` already guard against in this file. */
.venuechip[hidden]{ display:none; }
/* popover menu (venue) */
.menu{ position:fixed; z-index:50; min-width:236px; padding:7px; border-radius:12px; background:var(--surface); border:1px solid var(--card-line); box-shadow:0 24px 60px -18px rgba(0,0,0,.7); opacity:0; visibility:hidden; transform:translateY(-6px); transition:.16s; }
.menu.is-open{ opacity:1; visibility:visible; transform:none; }
.menu-item{ display:flex; align-items:center; gap:11px; width:100%; padding:9px 11px; border-radius:8px; cursor:pointer; background:transparent; border:0; text-align:left; transition:.12s; }
.menu-item .mi-ic{ width:32px; height:32px; border-radius:8px; display:grid; place-items:center; background:var(--surface-well); color:var(--copper-light); flex-shrink:0; }
.menu-item .mi-ic svg{ width:16px; height:16px; }
.menu-item .mi-main{ flex:1; min-width:0; display:flex; flex-direction:column; }
.menu-item .mi-name{ font-family:var(--font-body); font-weight:600; font-size:13.5px; color:var(--text); }
.menu-item .mi-sub{ font-family:var(--font-mono); font-size:10px; color:var(--text-faint); margin-top:1px; }
.menu-item:hover{ background:var(--surface-rec); }
.menu-item.is-on{ background:rgb(var(--copper-rgb)/.08); }
.menu-item.is-on .mi-name{ color:var(--copper-light); }
/* loyalty redeem pill */
.loypill{ -webkit-appearance:none; appearance:none; cursor:pointer; width:100%; display:flex; align-items:center; gap:9px; padding:10px 12px; border-radius:9px; margin-bottom:12px; background:rgb(var(--copper-rgb)/.08); border:1px solid rgb(var(--copper-rgb)/.35); color:var(--copper-light); transition:.14s; text-align:left; }
.loypill svg{ width:16px; height:16px; flex-shrink:0; }
.loypill .lp-main{ flex:1; font-family:var(--font-mono); font-size:11px; letter-spacing:.02em; }
.loypill .lp-main b{ font-weight:600; }
.loypill .lp-tog{ font-family:var(--font-mono); font-size:9px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; border:1px solid currentColor; border-radius:5px; padding:3px 7px; }
.loypill.on{ background:rgb(var(--green-rgb)/.1); border-color:rgb(var(--green-rgb)/.4); color:var(--green); }
/* Tier badge (M7c) — a member's status chip; --tc is the tier's colour. Mirrors .mchip. */
.tier-badge{ display:inline-flex; align-items:center; font-family:var(--font-mono); font-size:9px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; line-height:1.5; padding:1px 7px; margin-right:5px; border-radius:6px; color:var(--tc,var(--copper)); border:1px solid color-mix(in srgb, var(--tc,var(--copper)) 42%, transparent); background:color-mix(in srgb, var(--tc,var(--copper)) 14%, transparent); white-space:nowrap; vertical-align:middle; }
/* Txns date-range picker (J2) */
.txn-rangebar{ margin-bottom:14px; }
.txn-range{ display:flex; gap:6px; flex-wrap:wrap; }
.txn-custom{ display:flex; gap:8px; align-items:center; margin-top:10px; }
.txn-custom .field{ max-width:172px; }
.txn-arrow{ color:var(--text-faint); font-family:var(--font-mono); }
.totrow.loy .v{ color:var(--green); }

/* PAGES */
.page{ position:relative; flex:1; min-height:0; display:none; }
.page.is-active{ display:flex; flex-direction:column; }
.page-scroll{ flex:1; min-height:0; overflow-y:auto; padding-right:4px; }
.page-lead{ font-family:var(--font-body); font-size:13px; color:var(--text-faint); margin-bottom:18px; max-width:70ch; line-height:1.6; }
.sectitle{ font-family:var(--font-display); font-weight:700; font-size:15px; letter-spacing:.08em; text-transform:uppercase; color:var(--text); margin:0 0 14px; }
.sectitle.mt{ margin-top:28px; }

/* ---- BUTTONS ---- */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; flex-shrink:0; height:36px; padding:0 16px; border-radius:7px; cursor:pointer;
  font-family:var(--font-mono); font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; white-space:nowrap;
  background:linear-gradient(180deg, #d88048 0%, #d99033 42%, #a0622e 100%);
  border:1px solid #b86828; border-top-color:#e8904a; border-bottom-color:#8a4e1e; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.35);
  box-shadow:inset 0 1px 0 rgba(255,205,140,.3), 0 2px 12px rgb(var(--copper-rgb)/.28); transition:transform .12s, box-shadow .2s, filter .2s; }
.btn svg{ width:15px; height:15px; }
.btn:hover{ transform:translateY(-1px); box-shadow:inset 0 1px 0 rgba(255,205,140,.36), 0 4px 16px rgb(var(--copper-rgb)/.46); }
.btn:active{ transform:translateY(0); }
.btn[disabled]{ opacity:.4; pointer-events:none; filter:grayscale(.3); }
.btn.danger{ background:linear-gradient(180deg,#dc5a5a 0%,#c73838 42%,#9a2626 100%); border-color:#a52d2d; border-top-color:#e46b6b; border-bottom-color:#7e1f1f; }
.btn.danger:hover{ box-shadow:inset 0 1px 0 rgba(255,180,180,.36), 0 4px 16px rgba(200,50,50,.46); }
.abtn{ display:inline-flex; align-items:center; justify-content:center; gap:7px; height:36px; padding:0 14px; border-radius:7px; cursor:pointer;
  background:transparent; border:1px solid var(--card-line); color:var(--text-dim); font-family:var(--font-mono); font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; transition:color .15s, border-color .15s, background .15s; }
.abtn svg{ width:15px; height:15px; }
.abtn:hover{ color:var(--copper-light); border-color:rgb(var(--copper-rgb)/.55); background:rgb(var(--copper-rgb)/.06); }
.abtn.danger:hover{ color:var(--red); border-color:rgb(var(--red-rgb)/.55); background:rgb(var(--red-rgb)/.07); }
.abtn[disabled]{ opacity:.4; pointer-events:none; }
.iconbtn{ width:36px; height:36px; display:grid; place-items:center; border-radius:8px; cursor:pointer; background:transparent; border:1px solid var(--card-line); color:var(--text-dim); transition:.15s; }
.iconbtn svg{ width:17px; height:17px; }
.iconbtn:hover{ color:var(--copper-light); border-color:rgb(var(--copper-rgb)/.5); background:rgb(var(--copper-rgb)/.07); }

/* ---- FIELDS / CAPS / SEG ---- */
.lbl{ display:block; font-family:var(--font-mono); font-size:8.5px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--copper-light); margin-bottom:7px; }
/* `.opt` is TWO unrelated things: this inline label hint (a <span> inside .lbl, 18 of them
   across Setup) and the tappable option ROW of the modifier/variant/course pickers
   (`button.opt` inside `.opts`, styled far below). That rule is padded, bordered and
   full-width, and this one only ever overrode the TYPOGRAPHY — so every hint on the Setup
   page rendered inside a box the same size and shape as the input beneath it, i.e. a hint
   dressed as an empty field, which on a touchscreen invites a tap that does nothing.
   Reset the box here rather than renaming, so the picker component cannot regress. */
.lbl .opt{ display:inline; padding:0; border:0; background:none; border-radius:0; cursor:inherit; font-weight:400; letter-spacing:.06em; text-transform:none; color:var(--text-faint); margin-left:4px; }
.cap{ font-family:var(--font-mono); font-size:11px; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:var(--text-faint); }
.field{ width:100%; padding:11px 13px; border-radius:8px; background:#161c26; border:1px solid rgba(255,255,255,0.09); box-shadow:0 1px 2px rgba(0,0,0,0.35); color:var(--text); font-family:var(--font-body); font-size:14px; transition:border-color .12s; }
[data-theme="light"] .field{ background:#fff; border-color:rgba(82,60,24,0.16); box-shadow:0 1px 2px rgba(82,60,24,0.06); }
.field:focus{ outline:none; border-color:rgb(var(--copper-rgb)/.6); }
.field::placeholder{ color:var(--text-faint); opacity:.75; }
.seg{ display:inline-flex; gap:4px; padding:4px; border-radius:9px; background:var(--surface-well); border:1px solid rgba(0,0,0,0.4); box-shadow:inset 0 2px 6px rgba(0,0,0,0.4); }
[data-theme="light"] .seg{ background:#f2ede2; border-color:rgba(82,60,24,0.12); box-shadow:inset 0 2px 5px rgba(82,60,24,0.07); }
.seg button{ -webkit-appearance:none; appearance:none; cursor:pointer; padding:8px 14px; border-radius:6px; background:transparent; border:1px solid transparent; color:var(--text-faint); font-family:var(--font-mono); font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; transition:.12s; }
.seg button:hover{ color:var(--text-dim); }
.seg button.is-on{ background:rgb(var(--copper-rgb)/.14); border-color:rgb(var(--copper-rgb)/.5); color:var(--copper-light); }

/* ---- ribbon fold-tabs ---- */
.wrap-cell{ position:relative; flex:1; display:flex; flex-direction:column; min-width:0; min-height:0; --rib-w:calc(100% - 60px); }
.wrap-tab{ position:absolute; top:-16px; width:22px; height:28px; background:linear-gradient(180deg, var(--tab-top) 0%, var(--tab-bot) 100%); border:1px solid var(--line); border-top:0; pointer-events:none; z-index:1; }
.wrap-tab-left{ left:calc(30px - 14px); clip-path:polygon(14px 0, 100% 16px, 100% 100%, 0 100%, 0 16px); }
.wrap-tab-right{ left:calc(30px + var(--rib-w) - 8px); clip-path:polygon(8px 0, 100% 16px, 100% 100%, 0 100%, 0 16px); }

/* ---- rail collapse ---- */
.rail-collapse{ -webkit-appearance:none; appearance:none; cursor:pointer; margin:2px auto 16px; width:30px; height:26px; display:grid; place-items:center; border-radius:7px; background:var(--pill-bg); border:1px solid var(--line); color:var(--text-faint); transition:.15s; }
.rail-collapse svg{ width:16px; height:16px; }
.rail-collapse:hover{ color:var(--copper-light); border-color:var(--copper); }
.rail-expand{ display:none; position:absolute; top:22px; left:6px; z-index:14; width:38px; height:38px; place-items:center; border-radius:9px; cursor:pointer; background:var(--surface); border:1px solid var(--card-line); color:var(--text-dim); box-shadow:0 6px 18px -6px rgba(0,0,0,.5); transition:.15s; }
.rail-expand svg{ width:18px; height:18px; }
.rail-expand:hover{ color:var(--copper-light); border-color:var(--copper); }
.app.rail-collapsed{ grid-template-columns:0 1fr; }
.app.rail-collapsed .rail{ opacity:0; pointer-events:none; }
.app.rail-collapsed .rail-expand{ display:grid; }
.app.rail-collapsed .right{ padding-left:14px; }

/* ---- order tabs (concurrent orders) ---- */
.ordertabs{ display:flex; gap:6px; margin-bottom:13px; padding-bottom:2px; }
.otab{ -webkit-appearance:none; appearance:none; cursor:pointer; flex-shrink:0; display:inline-flex; align-items:center; gap:5px; height:30px; padding:0 12px; border-radius:8px; background:var(--surface-rec); border:1px solid var(--card-line); color:var(--text-dim); font-family:var(--font-mono); font-size:11px; font-weight:600; letter-spacing:.02em; transition:.14s; }
.otab:hover{ color:var(--text); border-color:rgb(var(--copper-rgb)/.4); }
.otab.is-active{ background:rgb(var(--copper-rgb)/.13); border-color:rgb(var(--copper-rgb)/.5); color:var(--copper-light); }
.otab-new{ padding:0 11px; color:var(--text-faint); font-size:15px; }
.otab-new:hover{ color:var(--copper-light); }
/* M8 — a part-paid sale's tab: money already taken, so it reads copper (an
   obligation, not a parked convenience) until completed or cancelled. */
.otab-part{ background:rgb(var(--copper-rgb)/.10); border-color:rgb(var(--copper-rgb)/.45); color:var(--copper-light); }
.otab-part:hover{ background:rgb(var(--copper-rgb)/.16); border-color:rgb(var(--copper-rgb)/.6); color:var(--copper-light); }



/* ---- pay buttons (direct, on the order panel) ---- */
.paybtns{ display:grid; grid-template-columns:repeat(4,1fr); gap:7px; }
.paybtn{ -webkit-appearance:none; appearance:none; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:5px; padding:11px 2px; border-radius:9px; border:1px solid var(--card-line); background:var(--surface-rec); color:var(--text); transition:.14s; }
.paybtn svg{ width:19px; height:19px; color:var(--text-dim); transition:.14s; }
.paybtn span{ font-family:var(--font-mono); font-size:9px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; }
.paybtn:hover{ border-color:rgb(var(--copper-rgb)/.55); transform:translateY(-1px); box-shadow:0 4px 12px rgba(0,0,0,.2); }
.paybtn:hover svg{ color:var(--copper-light); }
.paybtn.hot{ background:linear-gradient(180deg, #d88048 0%, #d99033 42%, #a0622e 100%); border-color:#b86828; color:#fff; box-shadow:inset 0 1px 0 rgba(255,205,140,.3); }
.paybtn.hot svg{ color:#fff; }
.paybtn[disabled]{ opacity:.4; pointer-events:none; }

/* ---- payment/success OVERLAY over the order section ---- */
.tk-overlay{ position:absolute; inset:0; z-index:20; display:none; flex-direction:column; background:var(--surface-well); border-radius:13px; overflow:hidden; }
[data-theme="light"] .tk-overlay{ background:var(--surface-rec); }
.tk-overlay.is-open{ display:flex; animation:ovin .2s ease; }
@keyframes ovin{ from{ opacity:0; transform:scale(.98); } }
.ov-head{ display:flex; align-items:center; gap:10px; padding:14px 16px; border-bottom:1px solid var(--card-line); flex-shrink:0; background:var(--surface); }
.ov-title{ font-family:var(--font-display); font-weight:700; font-size:15px; letter-spacing:.05em; text-transform:uppercase; color:var(--text); flex:1; min-width:0; }
.ov-back,.ov-x{ width:32px; height:32px; display:grid; place-items:center; border-radius:8px; cursor:pointer; background:transparent; border:1px solid var(--card-line); color:var(--text-dim); transition:.14s; flex-shrink:0; }
.ov-back svg,.ov-x svg{ width:15px; height:15px; }
.ov-back:hover{ color:var(--copper-light); border-color:rgb(var(--copper-rgb)/.5); }
.ov-x:hover{ color:var(--red); border-color:rgb(var(--red-rgb)/.5); }
.ov-body{ flex:1; min-height:0; overflow-y:auto; padding:16px; }
.ov-foot{ flex-shrink:0; padding:12px 16px 16px; border-top:1px solid var(--card-line); display:flex; flex-direction:column; gap:10px; background:var(--surface); }
.ov-recs{ display:flex; gap:6px; }
.ov-recs .abtn{ flex:1; padding:0 6px; }

/* ---- QR to pay ---- */
.qrwrap{ display:flex; flex-direction:column; align-items:center; gap:14px; padding:6px 6px 2px; text-align:center; }
.qrcode{ background:#fff; padding:11px; border-radius:11px; box-shadow:0 8px 22px rgba(0,0,0,.32); }
.qrcode svg{ display:block; }

/* ---- SALE VIEW: [products] [category stack] [ticket] ---- */
.till{ flex:1; min-height:0; display:grid; grid-template-columns:1fr 200px 358px; gap:18px; }
/* Horizontal flip (Setup → Sale screen; per-device). direction:rtl mirrors the
   grid's column order — the ticket moves to the left, the product area to the
   right — while each column resets to LTR so its content is unchanged. */
#app.flip .till{ direction:rtl; }
#app.flip .till > *{ direction:ltr; }
.prodwrap{ display:flex; flex-direction:column; min-width:0; min-height:0; }
.prod-tools{ display:flex; align-items:center; gap:10px; margin-bottom:13px; }
.searchbox{ position:relative; flex:1; }
.searchbox svg{ position:absolute; left:13px; top:50%; transform:translateY(-50%); width:17px; height:17px; color:var(--text-faint); pointer-events:none; }
.searchbox .field{ padding-left:40px; }
.subcats{ display:flex; gap:8px; margin-bottom:14px; padding-bottom:2px; }
.subcat{ -webkit-appearance:none; appearance:none; cursor:pointer; flex-shrink:0; padding:9px 16px; border-radius:9px; background:var(--surface-rec); border:1px solid var(--card-line); color:var(--text-dim); font-family:var(--font-mono); font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; transition:.14s; }
.subcat:hover{ color:var(--text); border-color:rgb(var(--copper-rgb)/.4); }
.subcat.is-on{ background:rgb(var(--copper-rgb)/.13); border-color:rgb(var(--copper-rgb)/.55); color:var(--copper-light); }
.grid-scroll{ flex:1; min-height:0; padding:2px 8px 16px 0; }
.grid{ display:grid; gap:12px; align-content:start; }
.lay-noimg .tile-img{ display:none; }
.lay-noimg .tile{ min-height:0; }
.lay-noimg .tile-bot{ margin-top:9px; }
.lay-list .tile{ flex-direction:row; align-items:center; min-height:0; padding:12px 16px; gap:13px; }
.lay-list .tile-name{ flex:1; font-size:14px; }
.lay-list .tile-bot{ margin-top:0; margin-left:auto; padding-top:0; align-items:center; gap:10px; }
.lay-list .tile.custom{ justify-content:center; }
.lay-list.lay-img .tile-img{ width:44px; margin-bottom:0; font-size:24px; flex-shrink:0; border-radius:8px; }
.lay-list.lay-noimg .tile{ padding:14px 16px; }
.tile{ position:relative; cursor:pointer; text-align:left; -webkit-appearance:none; appearance:none; display:flex; flex-direction:column; justify-content:flex-start; min-height:0; padding:11px 11px 12px; border-radius:12px; background:var(--surface-rec); border:1px solid var(--card-line); border-left:3px solid var(--hue,var(--copper)); color:var(--text); transition:transform .1s, box-shadow .18s, border-color .15s; overflow:hidden; }
.tile::after{ content:''; position:absolute; inset:0; background:radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--hue,var(--copper)) 10%, transparent), transparent 60%); opacity:.5; pointer-events:none; }
.tile:hover{ transform:translateY(-2px); box-shadow:0 8px 20px rgba(0,0,0,.28); border-color:rgb(var(--copper-rgb)/.4); }
.tile:active{ transform:translateY(0); }
.tile-img{ position:relative; width:100%; aspect-ratio:1/1; border-radius:9px; display:grid; place-items:center; font-size:var(--emoji,40px); line-height:1; margin-bottom:9px; border:1px solid var(--card-line); background:linear-gradient(155deg, color-mix(in srgb, var(--hue,var(--copper)) 22%, var(--surface-well)) 0%, var(--surface-well) 78%); }
[data-theme="light"] .tile-img{ background:linear-gradient(155deg, color-mix(in srgb, var(--hue,var(--copper)) 15%, #fff) 0%, #fff 80%); }
.tile-img .em{ filter:drop-shadow(0 2px 3px rgba(0,0,0,.28)); }
.tile-name{ position:relative; font-family:var(--font-body); font-weight:600; font-size:13.5px; line-height:1.22; }
.tile-bot{ position:relative; display:flex; align-items:flex-end; justify-content:space-between; gap:6px; margin-top:auto; padding-top:9px; }
.tile-price{ font-family:var(--font-mono); font-weight:600; font-size:14px; color:var(--copper-light); }
.tile-mod{ font-family:var(--font-mono); font-size:8px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--text-faint); border:1px solid var(--card-line); border-radius:5px; padding:2px 5px; }
.tile-incart{ position:absolute; top:9px; right:9px; min-width:20px; height:20px; padding:0 5px; border-radius:10px; display:grid; place-items:center; background:var(--green); color:#08120b; font-family:var(--font-mono); font-size:10px; font-weight:700; box-shadow:0 2px 6px rgb(var(--green-rgb)/.4); }
.tile.custom{ align-items:center; justify-content:center; flex-direction:row; gap:8px; color:var(--text-dim); border-style:dashed; border-left-style:dashed; background:transparent; }
.tile.custom:hover{ color:var(--copper-light); }
.tile.custom svg{ width:18px; height:18px; }

/* category stack (level 1) — compact square-ish tiles, top-aligned. Real menus
   have a handful of groups (All/Deals/nav-groups), not the mockup's 16; 1fr rows +
   stretch spread them across the tall column, so fixed rows + align-start keep them
   tidy at the top and scroll when a venue has many. */
.catstack{ display:grid; grid-template-columns:1fr 1fr; grid-auto-rows:78px; gap:8px; min-height:0; align-content:start; }
.catv{ -webkit-appearance:none; appearance:none; cursor:pointer; position:relative; overflow:hidden; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding:8px 5px; border-radius:11px; background:var(--surface-rec); border:1px solid var(--card-line); color:var(--text-dim); transition:.14s; text-align:center; }
.catv::after{ content:''; position:absolute; left:14%; right:14%; bottom:0; height:3px; border-radius:3px 3px 0 0; background:var(--hue,var(--copper)); opacity:.5; transition:.14s; }
.catv svg{ width:21px; height:21px; flex-shrink:0; opacity:.88; }
.catv .cvn{ font-family:var(--font-display); font-weight:600; font-size:11.5px; letter-spacing:.01em; line-height:1.12; }
.catv:hover{ color:var(--text); border-color:rgb(var(--copper-rgb)/.4); }
.catv:hover::after{ opacity:.85; }
.catv.is-on{ background:var(--surface); color:var(--text); border-color:rgb(var(--copper-rgb)/.5); box-shadow:0 4px 14px rgba(0,0,0,.22); }
.catv.is-on svg{ opacity:1; color:var(--hue,var(--copper)); }
.catv.is-on::after{ opacity:1; left:22%; right:22%; }

/* ---- ORDER TICKET (inset card) ---- */
.ticket{ position:relative; display:flex; flex-direction:column; min-height:0; background:var(--surface-well); border:1px solid var(--card-line); border-radius:13px; overflow:hidden; }
[data-theme="light"] .ticket{ background:var(--surface-rec); }
.tk-head{ padding:16px 18px 14px; border-bottom:1px solid var(--card-line); flex-shrink:0; }
.tk-typerow{ display:flex; gap:4px; padding:4px; border-radius:10px; background:rgba(0,0,0,.28); border:1px solid rgba(0,0,0,.4); }
[data-theme="light"] .tk-typerow{ background:#f2ede2; border-color:rgba(82,60,24,.12); }
.tk-type{ -webkit-appearance:none; appearance:none; cursor:pointer; flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; padding:9px 4px; border-radius:7px; background:transparent; border:1px solid transparent; color:var(--text-faint); transition:.12s; }
.tk-type svg{ width:19px; height:19px; }
.tk-type span{ font-family:var(--font-mono); font-size:9px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.tk-type:hover{ color:var(--text-dim); }
.tk-type.is-on{ background:rgb(var(--copper-rgb)/.13); border-color:rgb(var(--copper-rgb)/.5); color:var(--copper-light); }
.tk-meta{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:12px; }
.tk-order{ font-family:var(--font-mono); font-size:11px; color:var(--text-dim); }
.tk-order b{ color:var(--copper-light); font-weight:600; }
.tk-chiprow{ display:flex; gap:7px; }
.chip{ display:inline-flex; align-items:center; gap:6px; height:28px; padding:0 10px; border-radius:7px; cursor:pointer; background:rgba(255,255,255,.03); border:1px dashed var(--card-line); color:var(--text-dim); font-family:var(--font-mono); font-size:10px; letter-spacing:.04em; transition:.15s; white-space:nowrap; }
.chip svg{ width:13px; height:13px; }
.chip:hover{ border-color:rgb(var(--copper-rgb)/.5); color:var(--copper-light); }
.chip.set{ border-style:solid; border-color:rgb(var(--copper-rgb)/.4); color:var(--copper-light); background:rgb(var(--copper-rgb)/.08); }
.tk-body{ flex:1; min-height:0; overflow-y:auto; padding:6px 8px 6px 16px; }
.tk-empty{ height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; text-align:center; color:var(--text-faint); padding:24px; }
.tk-empty svg{ width:46px; height:46px; opacity:.5; }
.tk-empty b{ display:block; font-family:var(--font-display); font-weight:600; font-size:17px; color:var(--text-dim); letter-spacing:.03em; }
.tk-empty span{ font-size:12.5px; line-height:1.5; }
.line{ padding:13px 4px; border-bottom:1px solid var(--line); }
.line:first-child{ padding-top:6px; }
.line-head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.line-name{ flex:1; min-width:0; font-family:var(--font-body); font-weight:600; font-size:14.5px; line-height:1.3; color:var(--text); cursor:pointer; transition:color .12s; }
.line-name:hover{ color:var(--copper-light); }
.line-price{ flex-shrink:0; font-family:var(--font-mono); font-weight:600; font-size:14.5px; color:var(--text); }
.line-mods{ font-family:var(--font-mono); font-size:10.5px; line-height:1.55; color:var(--text-dim); margin-top:5px; cursor:pointer; transition:color .12s; }
.line-mods:hover{ color:var(--copper-light); }
.line-note{ font-family:var(--font-body); font-size:11.5px; font-style:italic; color:var(--copper-light); margin-top:5px; }
/* The foot wraps as a WHOLE-GROUP break, so the tools never split 5-and-1.
   Measured: a seated table of 2+ gives a line six tools needing 234px, but beside the 102px
   stepper only 212px is free — so flex-wrap inside `.line-tools` orphaned the trash on a row
   of its own. Letting the FOOT wrap instead drops the intact group to its own full-width row
   (324px), where six fit with room for more. No threshold to tune and no count to keep in
   step with the renderer: flexbox wraps the group exactly when it stops fitting.
   `margin-left:auto` on `.line-tools` keeps it right-aligned on whichever row it lands
   (replacing space-between, which would left-align it once wrapped). Tools keep `flex-wrap`
   as a last resort so a pathological line breaks inside the group rather than overflowing
   the column — and they never SHRINK: touch targets on a till must not get smaller. */
.line-foot{ display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:11px; }
.qstep{ display:inline-flex; align-items:stretch; border-radius:8px; overflow:hidden; border:1px solid var(--card-line); background:var(--surface-rec); }
[data-theme="light"] .qstep{ background:#fff; }
.qstep-btn{ -webkit-appearance:none; appearance:none; cursor:pointer; width:36px; height:32px; display:grid; place-items:center; background:transparent; border:0; color:var(--text-dim); transition:.12s; }
.qstep-btn svg{ width:15px; height:15px; }
.qstep-btn:hover{ color:var(--copper-light); background:rgb(var(--copper-rgb)/.12); }
.qstep-btn:active{ background:rgb(var(--copper-rgb)/.2); }
.qstep-n{ min-width:38px; display:grid; place-items:center; font-family:var(--font-mono); font-weight:600; font-size:14px; color:var(--text); border-left:1px solid var(--card-line); border-right:1px solid var(--card-line); }
.line-tools{ display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; margin-left:auto; }
.line-tools > *{ flex-shrink:0; }
/* per-line dine badge — IN / OUT / DEL, tap to switch a single line's service type */
.dinebadge{ -webkit-appearance:none; appearance:none; cursor:pointer; height:32px; padding:0 11px; display:inline-flex; align-items:center; border-radius:8px; border:1px solid var(--card-line); background:transparent; color:var(--text-faint); font-family:var(--font-mono); font-size:9.5px; font-weight:700; letter-spacing:.1em; transition:.12s; }
.dinebadge.eatin{ color:var(--green); border-color:rgb(var(--green-rgb)/.4); background:rgb(var(--green-rgb)/.08); }
.dinebadge.takeaway{ color:var(--copper-light); border-color:rgb(var(--copper-rgb)/.4); background:rgb(var(--copper-rgb)/.08); }
.dinebadge.delivery{ color:#6699db; border-color:rgba(102,153,219,.4); background:rgba(102,153,219,.08); }
.dinebadge:hover{ filter:brightness(1.15); }
.line-x{ -webkit-appearance:none; appearance:none; cursor:pointer; width:32px; height:32px; display:grid; place-items:center; border-radius:8px; background:transparent; border:1px solid var(--card-line); color:var(--text-faint); transition:.12s; }
.line-x svg{ width:15px; height:15px; }
.line-x:hover{ color:var(--red); background:rgb(var(--red-rgb)/.1); border-color:rgb(var(--red-rgb)/.45); }
.line-note-btn{ -webkit-appearance:none; appearance:none; cursor:pointer; width:32px; height:32px; display:grid; place-items:center; border-radius:8px; background:transparent; border:1px solid var(--card-line); color:var(--text-faint); transition:.12s; }
.line-note-btn svg{ width:15px; height:15px; }
.line-note-btn:hover{ color:var(--copper-light); background:rgb(var(--copper-rgb)/.1); border-color:rgb(var(--copper-rgb)/.45); }
.line-note-btn.has{ color:var(--copper-light); background:rgb(var(--copper-rgb)/.16); border-color:rgb(var(--copper-rgb)/.5); }
/* B2 — per-line discount / comp */
.line-price-was{ font-family:var(--font-mono); font-weight:500; font-size:12px; color:var(--text-faint); text-decoration:line-through; margin-right:7px; }
.line-disc{ font-family:var(--font-mono); font-size:11px; font-weight:600; color:var(--green); margin-top:5px; letter-spacing:.01em; }
.line-disc-btn{ -webkit-appearance:none; appearance:none; cursor:pointer; width:32px; height:32px; display:grid; place-items:center; border-radius:8px; background:transparent; border:1px solid var(--card-line); color:var(--text-faint); transition:.12s; }
.line-disc-btn svg{ width:15px; height:15px; }
.line-disc-btn:hover{ color:var(--green); background:rgb(var(--green-rgb)/.1); border-color:rgb(var(--green-rgb)/.45); }
.line-disc-btn.has{ color:var(--green); background:rgb(var(--green-rgb)/.16); border-color:rgb(var(--green-rgb)/.5); }
/* C9 — allergen lookup on a rung line. Same 32px target as every sibling: a touch
   target on a till never shrinks, however many tools a line ends up carrying. */
.line-al-btn{ -webkit-appearance:none; appearance:none; cursor:pointer; width:32px; height:32px; display:grid; place-items:center; border-radius:8px; background:transparent; border:1px solid var(--card-line); color:var(--text-faint); transition:.12s; }
.line-al-btn svg{ width:15px; height:15px; }
.line-al-btn:hover{ color:var(--amber); background:rgb(var(--copper-rgb)/.1); border-color:rgb(var(--copper-rgb)/.45); }
/* C9 — the allergen sheet. Colour is state, as everywhere else on this till: what an
   item CONTAINS is red because it is the thing that hurts someone, "may contain" is
   amber because it is a risk rather than an ingredient, and the two standing warnings
   (unverified · modifiers excluded) are amber unless the item has been signed off. */
.al-sec{ margin-bottom:18px; }
.al-h{ font-family:var(--font-mono); font-size:9px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--text-faint); margin-bottom:8px; }
.al-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.al-chip{ font-family:var(--font-body); font-size:13px; font-weight:600; border-radius:7px; padding:6px 10px; border:1px solid var(--card-line); }
.al-chip.is-in{ color:var(--red); background:rgb(var(--red-rgb)/.12); border-color:rgb(var(--red-rgb)/.45); }
.al-chip.is-may{ color:var(--amber); background:rgb(var(--amber-rgb)/.12); border-color:rgb(var(--amber-rgb)/.4); }
.al-none{ font-family:var(--font-body); font-size:13px; color:var(--text-dim); }
.al-note{ font-family:var(--font-mono); font-size:9.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--text-faint); margin-top:6px; }
.al-decl{ font-family:var(--font-body); font-size:13px; line-height:1.5; color:var(--text-dim); }
.al-warn{ display:flex; flex-direction:column; gap:3px; padding:11px 13px; border-radius:9px; margin-top:10px; background:rgb(var(--amber-rgb)/.1); border:1px solid rgb(var(--amber-rgb)/.4); }
.al-warn b{ font-family:var(--font-body); font-size:13px; font-weight:700; color:var(--amber); }
.al-warn span{ font-family:var(--font-body); font-size:12.5px; line-height:1.45; color:var(--text-dim); }
.al-warn.ok{ background:rgb(var(--green-rgb)/.08); border-color:rgb(var(--green-rgb)/.35); }
.al-warn.ok b{ color:var(--green); }
/* The searchable lookup page. The search box is capped like every other single-value
   editor on this till (.setblock's 520px), so it does not stretch to a 1500px board. */
.al-search{ margin-bottom:12px; }
.al-search .field{ max-width:520px; }
.al-filters{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:18px; }
.al-may-tag{ font-family:var(--font-mono); font-size:8px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--amber); border:1px solid rgb(var(--amber-rgb)/.4); border-radius:5px; padding:2px 5px; white-space:nowrap; }
.listrow .lsub.is-warn{ color:var(--amber); }
/* B-void — void a sent line (red, distinct from the note/disc tools) */
.line-void-btn{ -webkit-appearance:none; appearance:none; cursor:pointer; width:32px; height:32px; display:grid; place-items:center; border-radius:8px; background:transparent; border:1px solid rgb(var(--red-rgb)/.4); color:var(--red); transition:.12s; }
.line-void-btn svg{ width:15px; height:15px; }
.line-void-btn:hover{ background:rgb(var(--red-rgb)/.12); border-color:rgb(var(--red-rgb)/.6); }
/* B3 — manual price override (blue, distinct from green-discount / red-void) */
/* Price override sits at REST like every sibling — faint, with its colour on hover — rather
   than pre-lit blue. Coloured at rest it was the loudest control on every line, so "override
   the price" out-shouted the qty stepper, the note and the trash; and it split the two
   mutually-exclusive siblings (discount, override) into two apparent classes of thing. The
   blue is kept for hover and for `.has`, where it means this line really IS overridden. */
.line-po-btn{ -webkit-appearance:none; appearance:none; cursor:pointer; width:32px; height:32px; display:grid; place-items:center; border-radius:8px; background:transparent; border:1px solid var(--card-line); color:var(--text-faint); transition:.12s; }
.line-po-btn svg{ width:15px; height:15px; }
.line-po-btn:hover{ color:#6699db; background:rgba(102,153,219,.12); border-color:rgba(102,153,219,.62); }
.line-po-btn.has{ color:#6699db; background:rgba(102,153,219,.18); border-color:rgba(102,153,219,.55); }
/* A discount and an override are mutually exclusive per line: the barred action shows
   MUTED but tappable (a tap fires the guard toast naming what to clear) rather than
   vanishing — so the operator learns why instead of hunting for a lost control. */
.line-disc-btn.is-blocked,.line-po-btn.is-blocked{ opacity:.3; color:var(--text-faint); background:transparent; border-color:var(--card-line); }
.line-disc-btn.is-blocked:hover,.line-po-btn.is-blocked:hover{ opacity:.5; color:var(--text-faint); background:transparent; border-color:var(--card-line); }
.line-ovr{ font-family:var(--font-mono); font-size:11px; font-weight:600; color:#6699db; margin-top:5px; letter-spacing:.01em; }
/* per_item VAT — a statement of fact about the line, not an action taken on it, so it sits
   at the same weight as the modifier list rather than the coloured discount/override rows. */
.line-vat{ font-family:var(--font-mono); font-size:10.5px; color:var(--text-faint); margin-top:4px; letter-spacing:.01em; }
/* B2 — line-discount overlay */
.ld-kinds{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:14px; }
.ld-kind{ -webkit-appearance:none; appearance:none; cursor:pointer; height:44px; display:grid; place-items:center; border-radius:10px; background:var(--surface-well); border:1px solid var(--card-line); color:var(--text-dim); font-family:var(--font-body); font-size:13px; font-weight:600; transition:.12s; }
.ld-kind:hover{ border-color:rgb(var(--copper-rgb)/.5); color:var(--text); }
.ld-kind.is-on{ background:rgb(var(--copper-rgb)/.14); border-color:rgb(var(--copper-rgb)/.55); color:var(--copper-light); }
.ld-for{ font-family:var(--font-body); font-size:13px; color:var(--text-dim); margin-bottom:12px; }
.ld-for b{ color:var(--text); font-weight:700; }
.ln-chips{ display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }
.ln-chip{ -webkit-appearance:none; appearance:none; cursor:pointer; height:30px; padding:0 12px; border-radius:999px; background:rgb(var(--copper-rgb)/.06); border:1px solid rgb(var(--copper-rgb)/.28); color:var(--copper-light); font-family:var(--font-body); font-size:12.5px; font-weight:600; transition:.12s; }
.ln-chip:hover{ background:rgb(var(--copper-rgb)/.14); border-color:rgb(var(--copper-rgb)/.5); }
.ln-chip:active{ transform:translateY(1px); }
.ln-hint{ display:flex; align-items:flex-start; gap:8px; margin:14px 2px 2px; color:var(--text-faint); font-family:var(--font-body); font-size:11.5px; line-height:1.4; }
.ln-hint svg{ flex:0 0 auto; width:14px; height:14px; margin-top:1px; color:var(--copper-light); opacity:.85; }
/* A1 — name-pick sign-in + operator panel */
.nm-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:10px; }
.nm-name{ -webkit-appearance:none; appearance:none; cursor:pointer; display:flex; align-items:center; gap:11px; padding:12px 14px; border-radius:11px; background:var(--surface-well); border:1px solid var(--card-line); color:var(--text); transition:.12s; text-align:left; }
.nm-name:hover{ border-color:rgb(var(--copper-rgb)/.5); background:rgb(var(--copper-rgb)/.07); }
.nm-ini{ flex:0 0 auto; width:38px; height:38px; display:grid; place-items:center; border-radius:50%; background:rgb(var(--copper-rgb)/.14); color:var(--copper-light); font-family:var(--font-mono); font-weight:700; font-size:15px; }
.nm-nm{ flex:1; min-width:0; font-family:var(--font-body); font-weight:600; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.nm-tag{ flex:0 0 auto; font-family:var(--font-mono); font-size:8.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--copper-light); border:1px solid rgb(var(--copper-rgb)/.4); border-radius:5px; padding:2px 6px; }
.op-who{ display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.op-ini{ flex:0 0 auto; width:48px; height:48px; display:grid; place-items:center; border-radius:50%; background:rgb(var(--copper-rgb)/.14); color:var(--copper-light); font-family:var(--font-mono); font-weight:700; font-size:19px; }
.op-nm{ font-family:var(--font-body); font-weight:600; font-size:17px; color:var(--text); }
.op-sub{ font-family:var(--font-mono); font-size:11px; color:var(--text-faint); margin-top:3px; letter-spacing:.02em; }
.op-actions{ display:flex; flex-direction:column; gap:9px; }
.op-actions .abtn{ justify-content:flex-start; height:44px; }
/* C3 — charge editor inline input + Save */
.cfg-inline{ display:flex; gap:8px; align-items:center; }
/* Cap by what the input IS, not by where it sits. A flat 130px suited the numeric and PIN
   fields it was written for, but the same rule squeezed the four COMMA-SEPARATED LIST inputs
   (void reasons, price-override reasons, points reasons, tip presets) into a box that showed
   about a dozen characters — "Customer chang" — so an operator could not read back the list
   they were editing. Numbers and PINs stay compact; a text list gets the row. */
.cfg-inline .field{ flex:1 1 auto; min-width:0; }
.cfg-inline .field[type="number"], .cfg-inline .field[type="password"]{ flex:0 0 auto; max-width:130px; }
.tk-foot{ flex-shrink:0; border-top:1px solid var(--card-line); padding:14px 16px 16px; background:var(--surface); }
.tk-adjust{ display:flex; gap:7px; flex-wrap:wrap; margin-bottom:12px; }
.tk-adjust:empty{ display:none; }
.adjchip{ -webkit-appearance:none; appearance:none; cursor:pointer; display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 12px; border-radius:8px; background:rgba(255,255,255,.03); border:1px dashed var(--card-line); color:var(--text-dim); font-family:var(--font-mono); font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; transition:.14s; }
[data-theme="light"] .adjchip{ background:rgba(255,255,255,.5); }
.adjchip svg{ width:13px; height:13px; }
.adjchip:hover{ border-color:rgb(var(--copper-rgb)/.5); color:var(--copper-light); }
.adjchip.set{ border-style:solid; border-color:rgb(var(--copper-rgb)/.45); color:var(--copper-light); background:rgb(var(--copper-rgb)/.08); }
.tk-actions{ display:grid; grid-template-columns:repeat(4,1fr); gap:7px; margin-bottom:13px; }
.tk-act{ -webkit-appearance:none; appearance:none; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:5px; padding:9px 2px; border-radius:8px; background:transparent; border:1px solid var(--card-line); color:var(--text-dim); transition:.14s; }
.tk-act svg{ width:17px; height:17px; }
.tk-act span{ font-family:var(--font-mono); font-size:8.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.tk-act:hover{ color:var(--copper-light); border-color:rgb(var(--copper-rgb)/.45); background:rgb(var(--copper-rgb)/.06); }
.tk-act.danger:hover{ color:var(--red); border-color:rgb(var(--red-rgb)/.45); background:rgb(var(--red-rgb)/.07); }
.tk-act[disabled]{ opacity:.4; pointer-events:none; }
.tots{ display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.totrow{ display:flex; align-items:center; justify-content:space-between; font-family:var(--font-mono); font-size:12.5px; color:var(--text-dim); }
.totrow .v{ color:var(--text); }
.totrow.disc .v{ color:var(--green); }
.totrow.grand{ margin-top:4px; padding-top:11px; border-top:1px solid var(--card-line); align-items:baseline; }
.totrow.grand .k{ font-family:var(--font-display); font-weight:700; font-size:16px; letter-spacing:.06em; text-transform:uppercase; color:var(--text); }
.totrow.grand .v{ font-family:var(--font-mono); font-weight:600; font-size:26px; color:var(--copper-light); }
.totnote{ font-family:var(--font-mono); font-size:9.5px; letter-spacing:.06em; color:var(--text-faint); }
/* transaction-cap awareness — over turns the grand total red; the note names the headroom/overage */
.totrow.grand.txn-over .v{ color:var(--red); }
.totcap{ display:flex; justify-content:flex-end; font-family:var(--font-mono); font-size:10px; font-weight:600; letter-spacing:.03em; margin-top:3px; }
.totcap.near{ color:var(--copper); }
.totcap.over{ color:var(--red); }
.charge{ width:100%; height:60px; border-radius:11px; font-size:14px; }
.charge .cv{ font-size:20px; }

/* ---- OVERLAYS ---- */
.backdrop{ position:fixed; inset:0; z-index:40; background:rgba(4,6,10,.62); backdrop-filter:blur(3px); display:flex; opacity:0; visibility:hidden; transition:opacity .2s; }
[data-theme="light"] .backdrop{ background:rgba(60,44,20,.34); }
.backdrop.is-open{ opacity:1; visibility:visible; }
.backdrop.center{ align-items:center; justify-content:center; padding:24px; }
.modal{ width:100%; max-width:560px; max-height:92vh; display:flex; flex-direction:column; overflow:hidden; background:var(--surface); border:1px solid var(--card-line); border-radius:16px; box-shadow:0 30px 80px -20px rgba(0,0,0,.7); transform:translateY(14px) scale(.99); transition:transform .22s; }
.backdrop.is-open .modal{ transform:none; }
.modal.wide{ max-width:720px; }
.mhead{ display:flex; align-items:center; gap:12px; padding:18px 22px; border-bottom:1px solid var(--card-line); background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0)); flex-shrink:0; }
[data-theme="light"] .mhead{ background:linear-gradient(180deg, rgba(201,117,10,.05), transparent); }
.mtitle{ font-family:var(--font-display); font-weight:700; font-size:18px; letter-spacing:.06em; text-transform:uppercase; color:var(--text); }
.msub{ font-family:var(--font-body); font-size:12px; color:var(--text-faint); }
.mx{ margin-left:auto; width:34px; height:34px; display:grid; place-items:center; border-radius:8px; cursor:pointer; background:transparent; border:1px solid var(--card-line); color:var(--text-dim); transition:.15s; }
.mx svg{ width:16px; height:16px; }
.mx:hover{ color:var(--red); border-color:rgb(var(--red-rgb)/.5); }
.mbody{ padding:20px 22px; min-height:0; }
.mfoot{ display:flex; align-items:center; gap:12px; padding:16px 22px; border-top:1px solid var(--card-line); flex-shrink:0; }
.modgroup{ margin-bottom:20px; }
.modgroup-head{ display:flex; align-items:baseline; gap:8px; margin-bottom:10px; }
.modgroup-head .req{ font-family:var(--font-mono); font-size:8.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--copper-light); }
.modgroup-head .optnote{ font-family:var(--font-mono); font-size:8.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--text-faint); }
.opts{ display:grid; grid-template-columns:repeat(auto-fill, minmax(128px,1fr)); gap:8px; }
.opt{ -webkit-appearance:none; appearance:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:11px 13px; border-radius:9px; background:var(--surface-rec); border:1px solid var(--card-line); color:var(--text); transition:.12s; text-align:left; }
.opt .on{ font-family:var(--font-body); font-weight:500; font-size:13px; }
.opt .op{ font-family:var(--font-mono); font-size:11px; color:var(--text-faint); }
.opt:hover{ border-color:rgb(var(--copper-rgb)/.4); }
.opt.is-on{ background:rgb(var(--copper-rgb)/.12); border-color:rgb(var(--copper-rgb)/.55); color:var(--copper-light); }
.opt.is-on .op{ color:var(--copper-light); }
.keypad{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.key{ -webkit-appearance:none; appearance:none; cursor:pointer; height:52px; border-radius:10px; background:var(--surface-rec); border:1px solid var(--card-line); color:var(--text); font-family:var(--font-mono); font-size:19px; font-weight:600; transition:.1s; display:grid; place-items:center; }
.key:hover{ border-color:rgb(var(--copper-rgb)/.5); color:var(--copper-light); }
.key:active{ background:rgb(var(--copper-rgb)/.14); }
.key svg{ width:20px; height:20px; }
.tenders{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.tender{ -webkit-appearance:none; appearance:none; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:9px; padding:16px 8px; border-radius:12px; background:var(--surface-rec); border:1px solid var(--card-line); color:var(--text); transition:.14s; }
.tender svg{ width:26px; height:26px; color:var(--text-dim); transition:.14s; }
.tender span{ font-family:var(--font-mono); font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.tender:hover{ border-color:rgb(var(--copper-rgb)/.5); transform:translateY(-1px); }
.tender:hover svg{ color:var(--copper-light); }
.tender.is-on{ background:rgb(var(--copper-rgb)/.12); border-color:rgb(var(--copper-rgb)/.6); color:var(--copper-light); }
.tender.is-on svg{ color:var(--copper-light); }
.quickcash{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:14px; }
.qc{ -webkit-appearance:none; appearance:none; cursor:pointer; height:46px; border-radius:9px; background:var(--surface-rec); border:1px solid var(--card-line); color:var(--text); font-family:var(--font-mono); font-size:14px; font-weight:600; transition:.1s; }
.qc:hover{ border-color:rgb(var(--copper-rgb)/.5); color:var(--copper-light); }
.qc.exact{ color:var(--copper-light); border-color:rgb(var(--copper-rgb)/.4); }
.paydisplay{ display:flex; flex-direction:column; align-items:center; gap:2px; padding:16px; margin-bottom:14px; border-radius:12px; background:var(--surface-well); border:1px solid var(--card-line); }
.paydisplay .lab{ font-family:var(--font-mono); font-size:9px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--text-faint); }
.paydisplay .big{ font-family:var(--font-mono); font-size:34px; font-weight:600; color:var(--text); }
.paydisplay .big.change{ color:var(--green); }
.paydisplay .sub{ font-family:var(--font-mono); font-size:11px; color:var(--text-dim); }
.spin{ width:44px; height:44px; border-radius:50%; border:3px solid var(--card-line); border-top-color:var(--copper); animation:spin 1s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.success{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; padding:44px 34px 34px; }
.success .badge{ width:76px; height:76px; border-radius:50%; display:grid; place-items:center; background:rgb(var(--green-rgb)/.14); border:1px solid rgb(var(--green-rgb)/.4); color:var(--green); margin-bottom:6px; }
.success .badge svg{ width:38px; height:38px; }
.success h2{ font-family:var(--font-display); font-weight:700; font-size:24px; letter-spacing:.04em; text-transform:uppercase; color:var(--text); }
.success .big{ font-family:var(--font-mono); font-size:30px; font-weight:600; color:var(--copper-light); }

/* ---- list rows / stat tiles (pages) ---- */
.listgrid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:12px; }
/* A row carrying TWO actions needs more than 300px. The customer directory gained an "Open"
   button alongside "Attach" (C8), and at 300px the remaining text column was ~120px — enough
   to wrap "Sarah Whitmore" onto two lines and "07700 900341 · 240 pts" onto three. Widening
   the cell keeps both actions (the mockup only ever had one) and stops the wrap; the row's own
   flex layout is unchanged. */
.listgrid--wide{ grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); }
/* Widening alone could not fix it: on a 1570px board `auto-fill` gives four columns for any
   minimum between ~316 and ~383px, so the row is pinned at 383 and the text column got 138px
   for a line needing 139 — one pixel short, which is why "240 pts" lost its unit to the
   ellipsis. Dropping to three columns would have fixed it by wasting a third of the width, so
   the space is reclaimed INSIDE the row instead: a slightly smaller mark and tighter gaps buy
   ~20px, scoped here so no other list changes. */
.listgrid--wide .listrow{ gap:10px; }
/* `.listrow .licon` is declared further down with equal specificity, so this needs the extra
   class to win — a two-class selector here would silently lose to it. */
.listgrid--wide .listrow .licon{ width:30px; height:30px; }
.listgrid--wide .listrow .licon svg{ width:16px; height:16px; }
/* Names and numbers are facts to read at a glance, not paragraphs: keep each on one line and
   ellipsise rather than reflowing the row to three times its height. */
.listgrid--wide .lname{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.listgrid--wide .lsub{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.listrow{ display:flex; align-items:center; gap:13px; padding:14px 16px; border-radius:11px; background:var(--surface-rec); border:1px solid var(--card-line); transition:.14s; }
.listrow.act{ cursor:pointer; } .listrow.act:hover{ border-color:rgb(var(--copper-rgb)/.45); transform:translateY(-1px); }
.listrow .licon{ width:40px; height:40px; border-radius:9px; display:grid; place-items:center; background:var(--surface-well); color:var(--copper-light); flex-shrink:0; }
.listrow .licon svg{ width:19px; height:19px; }
.listrow .lmain{ flex:1; min-width:0; }
.listrow .lname{ font-family:var(--font-body); font-weight:600; font-size:14px; color:var(--text); }
.listrow .lsub{ font-family:var(--font-mono); font-size:10.5px; color:var(--text-dim); margin-top:2px; }
.listrow .lval{ font-family:var(--font-mono); font-weight:600; font-size:15px; color:var(--copper-light); flex-shrink:0; }
.listrow .lbtns{ display:flex; gap:6px; flex-shrink:0; }
.listrow .ldel{ width:32px; height:32px; display:grid; place-items:center; border-radius:7px; background:transparent; border:1px solid var(--card-line); color:var(--text-faint); cursor:pointer; transition:.12s; flex-shrink:0; }
.listrow .ldel svg{ width:15px; height:15px; }
.listrow .ldel:hover{ color:var(--red); background:rgb(var(--red-rgb)/.1); border-color:rgb(var(--red-rgb)/.4); }
.emptystate{ text-align:center; padding:60px 20px; color:var(--text-faint); }
.emptystate svg{ width:44px; height:44px; opacity:.5; margin:0 auto 14px; }
.emptystate b{ display:block; font-family:var(--font-display); font-size:18px; color:var(--text-dim); letter-spacing:.03em; margin-bottom:4px; }
.stats{ display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:12px; margin-bottom:8px; }
.stat{ padding:16px 18px; border-radius:12px; background:var(--surface-rec); border:1px solid var(--card-line); }
.stat .sk{ font-family:var(--font-mono); font-size:9px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--text-faint); }
.stat .sv{ font-family:var(--font-mono); font-weight:600; font-size:28px; color:var(--text); margin-top:6px; }
.stat .sv.cop{ color:var(--copper-light); }
.mrow{ display:flex; align-items:center; gap:14px; padding:12px 16px; border-radius:10px; background:var(--surface-rec); border:1px solid var(--card-line); margin-bottom:8px; }
.mrow .mdot{ width:10px; height:10px; border-radius:50%; background:var(--hue,var(--copper)); flex-shrink:0; }
.mrow .mn{ font-family:var(--font-body); font-weight:600; font-size:14px; color:var(--text); flex:1; }
.mrow .mtag{ font-family:var(--font-mono); font-size:9px; letter-spacing:.08em; text-transform:uppercase; color:var(--text-faint); border:1px solid var(--card-line); border-radius:5px; padding:2px 7px; }
.mrow .mp{ font-family:var(--font-mono); font-weight:600; font-size:14px; color:var(--copper-light); min-width:56px; text-align:right; }
.setblock{ max-width:520px; }
/* Setup's editors sit on that same 520px measure. The mockup wraps each section body in
   `.setblock`; the live page builds its bodies without it, so every control stretched to the
   full board width (~1550px) — which made the menu-layout PREVIEW read as a progress bar
   rather than a miniature of the product grid, and gave a 120-character receipt line an input
   thirteen times longer than it needs. Applied here rather than by wrapping fourteen section
   builders, and scoped to `.setrow`/`.laypv` so the Hardware tab's cards (which use `kv` and
   `.ps-testrow`) keep the full width they want. */
#page-setup .setrow, #page-setup .laypv{ max-width:520px; }
/* menu-layout controls (setup) */
.laypv{ border-radius:8px; background:var(--surface-well); border:1px solid var(--card-line); padding:8px; margin-bottom:14px; }
.pv-grid{ display:grid; height:100%; }
.pvc{ border-radius:2px; min-width:0; min-height:0; }
.pvc.img{ background:linear-gradient(180deg, rgb(var(--copper-rgb)/.5) 0, rgb(var(--copper-rgb)/.5) 58%, var(--card-line) 58%); }
.pvc.bar{ align-self:center; width:100%; height:10px; background:var(--card-line); }
.pvc.row{ align-self:center; width:100%; height:13px; border-radius:3px; background:var(--card-line); }
.pvc.rowimg{ align-self:center; width:100%; height:17px; border-radius:3px; background:linear-gradient(90deg, rgb(var(--copper-rgb)/.5) 0, rgb(var(--copper-rgb)/.5) 22%, var(--card-line) 22%); }
.laycfg{ display:flex; flex-direction:column; gap:15px; }
.cfglbl{ display:block; font-family:var(--font-mono); font-size:9px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--text-faint); margin-bottom:7px; }
.perrow{ display:inline-flex; align-items:center; border:1px solid var(--card-line); border-radius:8px; overflow:hidden; background:var(--surface-rec); }
.perrow-btn{ -webkit-appearance:none; appearance:none; cursor:pointer; width:46px; height:36px; display:grid; place-items:center; background:transparent; border:0; color:var(--text-dim); font-family:var(--font-mono); font-size:19px; transition:.12s; }
.perrow-btn:hover{ color:var(--copper-light); background:rgb(var(--copper-rgb)/.1); }
.perrow-n{ min-width:54px; text-align:center; font-family:var(--font-mono); font-weight:600; font-size:15px; color:var(--text); border-left:1px solid var(--card-line); border-right:1px solid var(--card-line); height:36px; display:grid; place-items:center; }
/* ---- menu page: channels, stock, collapsible categories ---- */
.menu-tools{ display:flex; align-items:center; justify-content:space-between; gap:14px 24px; flex-wrap:wrap; margin-bottom:14px; }
.menu-legend{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.mleg-lbl{ font-family:var(--font-mono); font-size:9px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--text-faint); }
.mleg{ display:inline-flex; align-items:center; gap:7px; font-family:var(--font-mono); font-size:10px; letter-spacing:.03em; color:var(--text-dim); }
.mleg-dot{ width:9px; height:9px; border-radius:50%; }
.mcat-head{ -webkit-appearance:none; appearance:none; cursor:pointer; width:100%; display:flex; align-items:center; gap:11px; padding:13px 15px; margin-top:10px; border-radius:10px; background:var(--surface-rec); border:1px solid var(--card-line); border-left:3px solid var(--hue,var(--copper)); color:var(--text); transition:.14s; text-align:left; }
.mcat-head:hover{ border-color:rgb(var(--copper-rgb)/.4); }
.mcat-chev{ width:16px; height:16px; color:var(--text-faint); transition:transform .2s; flex-shrink:0; }
.mcat-head.is-collapsed .mcat-chev{ transform:rotate(-90deg); }
.mcat-ic{ color:var(--hue,var(--copper)); display:inline-flex; }
.mcat-name{ font-family:var(--font-display); font-weight:700; font-size:15px; letter-spacing:.06em; text-transform:uppercase; }
.mcat-count{ margin-left:auto; font-family:var(--font-mono); font-size:10.5px; color:var(--text-faint); }
.mcat-body{ padding:2px 6px 8px; }
.menurow{ display:flex; align-items:center; gap:13px; padding:11px 10px; border-bottom:1px solid var(--line); }
.menurow:last-child{ border-bottom:0; }
.mr-dot{ width:8px; height:8px; border-radius:50%; background:var(--hue,var(--copper)); flex-shrink:0; }
.mr-name{ flex:1; min-width:0; font-family:var(--font-body); font-weight:600; font-size:14px; color:var(--text); }
.mr-fav{ color:var(--copper-light); font-size:12px; }
.mr-opt{ font-family:var(--font-mono); font-size:8.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--text-faint); border:1px solid var(--card-line); border-radius:5px; padding:2px 6px; margin-left:3px; }
.mr-ch{ display:flex; gap:5px; flex-shrink:0; }
.mchip{ font-family:var(--font-mono); font-size:9px; font-weight:700; letter-spacing:.03em; padding:3px 8px; border-radius:6px; color:var(--cc); border:1px solid color-mix(in srgb, var(--cc) 42%, transparent); background:color-mix(in srgb, var(--cc) 13%, transparent); white-space:nowrap; }
.mstock{ font-family:var(--font-mono); font-size:10.5px; font-weight:600; color:var(--text-dim); flex-shrink:0; min-width:104px; text-align:right; }
.mstock.low{ color:var(--red); }
.mstock.made{ color:var(--text-faint); font-weight:400; font-style:italic; }
.mr-price{ font-family:var(--font-mono); font-weight:600; font-size:14px; color:var(--copper-light); min-width:58px; text-align:right; flex-shrink:0; }
.setrow{ margin-bottom:20px; }

/* ============================================================
   INSTRUMENT SECTIONS — the Playlists/Panels cockpit grammar, ported
   into the POS token system: framed sections with a gradient header
   (title · subtitle · info button), an expandable "about" card, recessed
   wells, stat heroes, segmented bars + legends, attention columns,
   sub-tabs and a data table. Used by every page except the Sale screen.
   ============================================================ */
/* the framed console: outer card (copper top-cap) → padded body → recessed
   board well → raised section cards, exactly like playlist-edit's
   scr-tabwrap → scr-tabbody → scr-board → scr-bsec */
.ps-tabwrap{ position:relative; border:1px solid var(--card-line); border-top:1px solid rgb(var(--copper-rgb)/.4); border-radius:12px; background:var(--surface); overflow:hidden; }
.ps-tabbody{ padding:20px 16px; }
.ps-board{ isolation:isolate; border-radius:13px; background:#0a0d12; padding:26px; border:1px solid rgba(0,0,0,.5); border-top-color:rgba(0,0,0,.62); border-bottom-color:rgba(255,255,255,.045); box-shadow:inset 0 3px 13px rgba(0,0,0,.55), inset 0 -1px 0 rgba(255,255,255,.03); }
[data-theme="light"] .ps-board{ background:#f4efe4; border-color:rgba(82,60,24,.08); border-top-color:rgba(82,60,24,.12); border-bottom-color:rgba(255,255,255,.8); box-shadow:inset 0 2px 8px rgba(82,60,24,.05), inset 0 -1px 0 rgba(255,255,255,.9); }
.ps-board > :last-child{ margin-bottom:0 !important; }
/* the tab strip that rides the top of the console, exactly like playlists' scr-bar */
.ps-bar{ display:flex; align-items:stretch; gap:14px; min-height:60px; padding:0 14px; background:var(--surface-rec); border-bottom:1px solid var(--card-line); }
.ps-tabs{ display:flex; gap:4px; align-items:stretch; margin-top:14px; }
/* Right-side controls in the tabbed bar (e.g. the transactions date-range presets),
   aligned to match .ps-tabs so both tab groups sit on the same baseline. */
.ps-bar-r{ margin-left:auto; display:flex; gap:4px; align-items:stretch; margin-top:14px; flex-wrap:wrap; }
.loy-newnote{ margin-top:8px; }
.ps-tab{ position:relative; display:inline-flex; align-items:center; font-family:var(--font-mono); font-size:13px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; padding:0 22px; color:var(--text-dim); background:transparent; border:0; cursor:pointer; border-radius:7px 7px 0 0; transition:color .15s, background .15s; }
.ps-tab:not(.is-active):hover{ color:var(--text); background:rgb(var(--copper-rgb)/.08); }
.ps-tab.is-active{ color:var(--copper-light); background:var(--surface); box-shadow:inset 0 2px 0 var(--copper), inset 1px 0 0 var(--card-line), inset -1px 0 0 var(--card-line); }
.ps-tab.is-active::after{ content:''; position:absolute; left:0; right:0; bottom:-1px; height:2px; background:var(--surface); pointer-events:none; }
.ps-tab-ct{ font-family:var(--font-mono); font-size:9.5px; font-weight:700; margin-left:7px; color:var(--text-faint); }
.ps-tab.is-active .ps-tab-ct{ color:var(--copper-light); }
.ps-cell{ position:relative; margin-bottom:26px; }
.ps-cell:last-child{ margin-bottom:0; }
.ps-sec{ position:relative; z-index:2; background:var(--surface); border:1px solid var(--card-line); border-radius:10px; padding:0 22px 22px; box-shadow:0 6px 16px rgba(0,0,0,.22); }
[data-theme="light"] .ps-sec{ box-shadow:0 1px 2px var(--shadow-far), 0 6px 20px var(--shadow-far); }
.ps-head{ display:flex; align-items:center; gap:12px; margin:0 -22px 20px; padding:14px 22px; background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0)); border-bottom:1px solid var(--card-line); border-radius:11px 11px 0 0; }
[data-theme="light"] .ps-head{ background:linear-gradient(180deg, rgba(201,117,10,.05), transparent); }
.ps-title{ font-family:var(--font-display); font-weight:700; font-size:16px; letter-spacing:.08em; text-transform:uppercase; color:var(--text); white-space:nowrap; }
.ps-sub{ font-family:var(--font-body); font-size:12px; color:var(--text-faint); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ps-head-r{ margin-left:auto; display:flex; align-items:center; gap:10px; flex-shrink:0; }

.ps-info-btn{ margin-left:auto; width:23px; height:23px; flex-shrink:0; display:grid; place-items:center; border-radius:50%; border:1px solid var(--card-line); background:transparent; color:var(--text-faint); cursor:pointer; transition:.15s; padding:0; }
.ps-info-btn svg{ width:14px; height:14px; }
.ps-info-btn:hover{ color:var(--copper-light); border-color:rgb(var(--copper-rgb)/.5); background:rgb(var(--copper-rgb)/.08); }
.ps-head-r + .ps-info-btn, .ps-head-r .ps-info-btn{ margin-left:0; }
.ps-info-card{ position:absolute; top:60px; left:22px; right:22px; bottom:22px; z-index:6; display:flex; flex-direction:column; padding:15px 18px 18px;
  background:radial-gradient(circle, rgba(180,110,50,.05) 1px, transparent 1px) 0 0/22px 22px, var(--surface);
  border:1px solid rgb(var(--copper-rgb)/.45); border-radius:9px; opacity:0; visibility:hidden; transform:translateY(6px); transition:opacity .22s, transform .22s, visibility .22s; }
.ps-sec.info-open .ps-info-card{ opacity:1; visibility:visible; transform:none; }
.ps-info-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:11px; }
.ps-info-close{ width:24px; height:24px; display:grid; place-items:center; border:0; background:transparent; color:rgb(var(--copper-rgb)/.55); cursor:pointer; border-radius:6px; transition:.15s; }
.ps-info-close svg{ width:15px; height:15px; }
.ps-info-close:hover{ color:var(--copper-light); background:rgb(var(--copper-rgb)/.1); }
.ps-info-lead{ font-family:var(--font-body); font-size:13px; line-height:1.55; color:var(--text-dim); margin:0 0 15px; }
.ps-info-lead b{ color:var(--text); font-weight:600; }
.ps-info-dl{ margin:0; flex:1; display:flex; flex-direction:column; gap:13px; min-height:0; }
.ps-info-dl.is-row{ flex-direction:row; align-items:stretch; }
.ps-info-dl > div{ flex:1; min-height:0; position:relative; display:flex; flex-direction:column; justify-content:center; padding:15px 18px 15px 66px; background:var(--pill-bg); border:1px solid var(--card-line); border-radius:8px; }
[data-theme="light"] .ps-info-dl > div{ background:rgba(255,255,255,.5); }
.ps-info-dl dt{ font-family:var(--font-mono); font-size:9.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--copper-light); margin-bottom:6px; }
.ps-info-dl dt .ic{ position:absolute; left:16px; top:50%; transform:translateY(-50%); width:32px; height:32px; border-radius:8px; border:1px solid rgb(var(--copper-rgb)/.35); background:rgb(var(--copper-rgb)/.08); display:grid; place-items:center; color:var(--copper-light); }
.ps-info-dl dt .ic svg{ width:16px; height:16px; }
.ps-info-dl dd{ margin:0; font-family:var(--font-body); font-size:12.5px; line-height:1.5; color:var(--text-dim); }
@media (max-width:1100px){ .ps-info-dl.is-row{ flex-direction:column; } }

.ps-two{ display:grid; grid-template-columns:1fr 1fr; gap:22px; align-items:stretch; }
.ps-two > .ps-sec{ display:flex; flex-direction:column; }
@media (max-width:1000px){ .ps-two{ grid-template-columns:1fr; } }

.ps-hero{ display:flex; align-items:center; gap:16px; padding:6px 4px 2px; }
.ps-hero b{ font-family:var(--font-display); font-weight:700; font-size:54px; line-height:.85; color:var(--text); letter-spacing:-.01em; }
.ps-hero b.cop{ color:var(--copper-light); }
.ps-hero b.is-zero{ color:var(--text-faint); }
.ps-hero .cap{ display:flex; flex-direction:column; gap:4px; min-width:0; padding-bottom:3px; }
.ps-hero .cap .t{ font-family:var(--font-body); font-size:15px; font-weight:600; color:var(--text-dim); }
.ps-hero .cap .s{ font-family:var(--font-mono); font-size:9px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--text-faint); }
.ps-statbody{ display:flex; flex-direction:column; gap:20px; }
.ps-statbar{ display:flex; height:16px; border-radius:8px; overflow:hidden; background:var(--surface-well); gap:2px; }
.ps-statbar i{ display:block; min-width:4px; transition:flex-grow .4s ease; }
.ps-legend{ display:flex; flex-direction:column; gap:1px; }
.ps-legrow{ display:flex; align-items:center; gap:12px; padding:9px 6px; border-radius:6px; }
.ps-legrow + .ps-legrow{ border-top:1px solid var(--line); }
.ps-legrow .d{ width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.ps-legrow .lbl{ flex:1; min-width:0; font-family:var(--font-body); font-size:13px; color:var(--text-dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ps-legrow .pct{ font-family:var(--font-mono); font-size:10px; font-weight:700; color:var(--text-faint); flex-shrink:0; min-width:36px; text-align:right; }
.ps-legrow .v{ font-family:var(--font-display); font-weight:700; font-size:20px; line-height:1; color:var(--text); flex-shrink:0; min-width:26px; text-align:right; }
.ps-legrow.is-zero{ opacity:.42; }

.ps-well{ background:var(--surface-well); border:1px solid var(--card-line); border-radius:11px; padding:16px; }
[data-theme="light"] .ps-well{ background:var(--surface-rec); }

/* lead / rank rows (top sellers, widest reach) */
.ps-lead{ display:flex; flex-direction:column; gap:2px; }
.ps-leadrow{ display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:14px; padding:10px 10px; border-radius:7px; }
.ps-leadrow + .ps-leadrow{ border-top:1px solid var(--line); }
.ps-leadrow .rk{ width:26px; height:26px; display:grid; place-items:center; border-radius:7px; border:1px solid var(--card-line); background:var(--surface-rec); font-family:var(--font-mono); font-size:12px; font-weight:700; color:var(--text-dim); }
.ps-leadrow.is-lead .rk{ background:var(--copper); border-color:var(--copper); color:#1a0f06; box-shadow:0 0 0 3px rgb(var(--copper-rgb)/.12); }
.ps-leadrow .nm{ min-width:0; }
.ps-leadrow .nm b{ display:block; font-family:var(--font-body); font-size:13.5px; font-weight:600; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ps-leadrow .nm span{ font-family:var(--font-mono); font-size:9.5px; color:var(--text-faint); }
.ps-leadrow .cnt{ text-align:right; min-width:66px; }
.ps-leadrow .cnt b{ font-family:var(--font-display); font-weight:700; font-size:22px; line-height:1; color:var(--text); }
.ps-leadrow.is-lead .cnt b{ font-size:26px; color:var(--copper-light); }
.ps-leadrow .cnt span{ display:block; margin-top:3px; font-family:var(--font-mono); font-size:8px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--text-faint); }

/* composition tiles */
.ps-comp-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:14px; }
.ps-ctile{ display:flex; flex-direction:column; gap:9px; padding:14px 15px; border-radius:10px; background:var(--surface-rec); border:1px solid var(--card-line); }
.ps-ctile .hd{ display:flex; align-items:center; gap:9px; }
.ps-ctile .hd .d{ width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.ps-ctile .hd b{ font-family:var(--font-display); font-weight:700; font-size:12.5px; letter-spacing:.05em; text-transform:uppercase; color:var(--text); }
.ps-ctile .hd span{ margin-left:auto; font-family:var(--font-mono); font-size:9px; color:var(--text-faint); }
.ps-ctile .big{ font-family:var(--font-display); font-weight:700; font-size:30px; line-height:1; color:var(--text); }
.ps-ctile .sub{ font-family:var(--font-body); font-size:11.5px; color:var(--text-faint); }

/* attention columns (multi-column board) */
.ps-cols{ display:grid; gap:34px; }
.ps-cols--2{ grid-template-columns:1fr 1fr; }
.ps-cols--3{ grid-template-columns:repeat(3,1fr); }
@media (max-width:900px){ .ps-cols--2,.ps-cols--3{ grid-template-columns:1fr; gap:22px; } }
.ps-attn{ display:flex; flex-direction:column; }
.ps-attn-head{ display:flex; align-items:center; gap:13px; }
.ps-attn-count{ font-family:var(--font-display); font-weight:700; font-size:32px; line-height:.85; color:var(--text); }
.ps-attn.warn .ps-attn-count{ color:var(--amber); } .ps-attn.crit .ps-attn-count{ color:var(--red); } .ps-attn.cy .ps-attn-count{ color:var(--cyan); } .ps-attn.good .ps-attn-count{ color:var(--green); }
.ps-attn-label{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.ps-attn-label b{ font-family:var(--font-display); font-weight:700; font-size:14px; letter-spacing:.04em; text-transform:uppercase; color:var(--text); }
.ps-attn-label span{ font-family:var(--font-body); font-size:11px; color:var(--text-faint); }
.ps-attn-bar{ height:4px; border-radius:2px; background:rgba(128,128,128,.14); margin:13px 0 14px; overflow:hidden; }
.ps-attn-bar i{ display:block; height:100%; border-radius:2px; }
.ps-attn.warn .ps-attn-bar i{ background:var(--amber); } .ps-attn.crit .ps-attn-bar i{ background:var(--red); } .ps-attn.cy .ps-attn-bar i{ background:var(--cyan); } .ps-attn.good .ps-attn-bar i{ background:var(--green); }
.ps-attn-row{ display:grid; grid-template-columns:11px 1fr auto; align-items:center; gap:12px; padding:11px 4px; border-bottom:1px solid var(--line); }
.ps-attn-row:last-child{ border-bottom:0; }
.ps-attn-dot{ width:9px; height:9px; border-radius:50%; }
.ps-attn-nm{ min-width:0; }
.ps-attn-nm b{ display:block; font-family:var(--font-body); font-weight:600; font-size:13px; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ps-attn-nm span{ font-family:var(--font-body); font-size:11px; color:var(--text-faint); }
.ps-attn-when{ font-family:var(--font-mono); font-size:11px; white-space:nowrap; text-align:right; color:var(--text-faint); }
.ps-attn-empty{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:20px 14px; text-align:center; font-family:var(--font-body); font-size:12px; color:var(--text-faint); }
.ps-attn-empty svg{ width:20px; height:20px; color:var(--green); opacity:.85; }

/* sub-tabs (within a page) */
.ps-subtabs{ display:flex; gap:2px; margin-bottom:20px; border-bottom:1px solid var(--card-line); }
.ps-subtab{ -webkit-appearance:none; appearance:none; cursor:pointer; position:relative; padding:11px 18px; background:transparent; border:0; color:var(--text-dim); font-family:var(--font-mono); font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; transition:color .14s; }
.ps-subtab:hover{ color:var(--text); }
.ps-subtab.is-on{ color:var(--copper-light); }
.ps-subtab.is-on::after{ content:''; position:absolute; left:8px; right:8px; bottom:-1px; height:2px; background:var(--copper); border-radius:2px 2px 0 0; }
.ps-subtab-ct{ margin-left:7px; font-size:9.5px; color:var(--text-faint); }
.ps-subtab.is-on .ps-subtab-ct{ color:var(--copper-light); }

/* date-range control */
.ps-range{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.ps-range .ps-custom{ display:flex; align-items:center; gap:8px; }
.ps-range .ps-custom .field{ width:150px; padding:8px 11px; font-size:13px; }
.ps-range .ps-custom .dash{ color:var(--text-faint); font-family:var(--font-mono); }
.ps-range-note{ font-family:var(--font-mono); font-size:11px; color:var(--text-faint); }
.ps-range-note b{ color:var(--copper-light); font-weight:700; }

/* data table */
.ps-table-wrap{ border:1px solid var(--card-line); border-top:1px solid rgb(var(--copper-rgb)/.4); border-radius:11px; overflow:hidden; background:var(--surface); }
.ps-table{ width:100%; border-collapse:collapse; }
.ps-table th{ text-align:left; padding:12px 16px; font-family:var(--font-mono); font-size:10px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--text-faint); border-bottom:1px solid var(--card-line); background:var(--surface-rec); white-space:nowrap; }
.ps-table td{ padding:13px 16px; font-family:var(--font-body); font-size:13px; color:var(--text-dim); border-bottom:1px solid var(--line); vertical-align:middle; }
.ps-table tbody tr:last-child td{ border-bottom:0; }
.ps-table tbody tr.act{ cursor:pointer; transition:background .14s; }
.ps-table tbody tr.act:hover{ background:rgb(var(--copper-rgb)/.05); }
.ps-table .nm{ font-family:var(--font-body); font-weight:600; font-size:13.5px; color:var(--text); }
.ps-table .mono{ font-family:var(--font-mono); }
.ps-table .rt{ text-align:right; }
.ps-table .val{ font-family:var(--font-mono); font-weight:600; color:var(--text); }
.ps-table .val.cop{ color:var(--copper-light); }
.ps-table .val.neg{ color:var(--red); }
.ps-tag{ display:inline-flex; align-items:center; gap:5px; font-family:var(--font-mono); font-size:9px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:3px 8px; border-radius:5px; border:1px solid var(--card-line); color:var(--text-dim); white-space:nowrap; }
.ps-tag.refunded{ color:var(--red); border-color:rgb(var(--red-rgb)/.4); background:rgb(var(--red-rgb)/.08); }
.ps-tag.partial{ color:var(--amber); border-color:rgb(var(--amber-rgb)/.4); background:rgb(var(--amber-rgb)/.08); }
.ps-tag.ok{ color:var(--green); border-color:rgb(var(--green-rgb)/.35); background:rgb(var(--green-rgb)/.08); }

/* per-channel availability grid (Menu) */
.ps-table td.av-cell, .ps-table th.av-cell{ text-align:center; }
.ps-table th.av-cell{ color:var(--text-dim); }
.ps-table th.av-all, .ps-table td.av-all{ text-align:center; border-left:1px solid var(--card-line); border-right:1px solid var(--card-line); background:rgb(var(--copper-rgb)/.04); }
/* editable cells read as inputs: recessed fill, hover + focus copper, a caret cursor */
.av-in,.av-price-in,.cp-in{ background:var(--surface-well); border:1px solid rgba(var(--copper-rgb),.28); border-radius:6px; color:var(--text); font-family:var(--font-mono); cursor:text; transition:border-color .12s, box-shadow .12s; box-shadow:inset 0 1px 2px rgba(0,0,0,.25); }
[data-theme="light"] .av-in,[data-theme="light"] .av-price-in,[data-theme="light"] .cp-in{ background:#fff; box-shadow:inset 0 1px 2px rgba(82,60,24,.06); }
.av-in::-webkit-outer-spin-button,.av-in::-webkit-inner-spin-button,.av-price-in::-webkit-outer-spin-button,.av-price-in::-webkit-inner-spin-button,.cp-in::-webkit-outer-spin-button,.cp-in::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.av-in{ -moz-appearance:textfield; }
.av-in:hover,.av-price-in:hover,.cp-in:hover{ border-color:rgba(var(--copper-rgb),.6); }
.av-in:focus,.av-price-in:focus,.cp-in:focus{ outline:none; border-color:var(--copper); box-shadow:0 0 0 3px rgba(var(--copper-rgb),.14); }
.av-in{ width:52px; padding:7px 5px; text-align:center; font-size:13px; font-weight:600; -moz-appearance:textfield; }
.av-in.zero{ color:var(--red); border-color:rgb(var(--red-rgb)/.4); }
/* − N + stepper: unmistakably editable, still typable in the middle */
.av-step{ display:inline-flex; align-items:stretch; border:1px solid rgba(var(--copper-rgb),.32); border-radius:7px; overflow:hidden; background:var(--surface-well); box-shadow:inset 0 1px 2px rgba(0,0,0,.25); transition:border-color .12s, box-shadow .12s; }
[data-theme="light"] .av-step{ background:#fff; box-shadow:inset 0 1px 2px rgba(82,60,24,.06); }
.av-step:hover{ border-color:rgba(var(--copper-rgb),.6); }
.av-step:focus-within{ border-color:var(--copper); box-shadow:0 0 0 3px rgba(var(--copper-rgb),.14); }
.av-stepbtn{ -webkit-appearance:none; appearance:none; cursor:pointer; width:26px; height:34px; display:grid; place-items:center; background:transparent; border:0; color:var(--text-dim); font-family:var(--font-mono); font-size:16px; line-height:1; transition:.1s; }
.av-stepbtn:first-child{ border-right:1px solid var(--card-line); }
.av-stepbtn:last-child{ border-left:1px solid var(--card-line); }
.av-stepbtn:hover{ color:var(--copper-light); background:rgb(var(--copper-rgb)/.14); }
.av-stepbtn:active{ background:rgb(var(--copper-rgb)/.24); }
.av-step .av-in{ border:0; border-radius:0; box-shadow:none; width:36px; padding:6px 2px; background:transparent; }
.av-step .av-in:hover,.av-step .av-in:focus{ border:0; box-shadow:none; }
.av-step .av-in.zero{ border:0; color:var(--red); }
.av-price-in{ width:64px; padding:7px 8px; text-align:right; font-size:13px; color:var(--copper-light); }
.av-price{ margin-top:2px; font-family:var(--font-mono); font-size:10px; color:var(--text-faint); text-align:center; }
.av-price.up{ color:var(--copper-light); }
/* per-cell stack: on/off switch · stepper (or ∞ / Off) · price */
.av-cellwrap{ display:flex; flex-direction:column; align-items:center; gap:6px; }
.av-cellwrap.is-off{ opacity:.6; }
.av-sw{ -webkit-appearance:none; appearance:none; width:34px; height:18px; border-radius:10px; background:var(--surface-rec); border:1px solid var(--card-line); position:relative; cursor:pointer; padding:0; flex-shrink:0; transition:background .15s, border-color .15s; }
.av-sw .knob{ position:absolute; top:1px; left:1px; width:14px; height:14px; border-radius:50%; background:var(--text-faint); transition:left .15s, background .15s; }
.av-sw:hover{ border-color:rgb(var(--copper-rgb)/.5); }
.av-sw.is-on{ background:rgb(var(--green-rgb)/.28); border-color:rgb(var(--green-rgb)/.5); }
.av-sw.is-on .knob{ left:17px; background:var(--green); }
.av-off{ font-family:var(--font-mono); font-size:9.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--text-faint); border:1px dashed var(--card-line); border-radius:6px; padding:7px 13px; }
/* all-channels: editable total (spreads evenly) + unlimited toggle */
.av-allwrap{ display:inline-flex; align-items:center; gap:8px; }
.av-alltot{ width:56px; padding:7px 6px; text-align:center; font-family:var(--font-mono); font-weight:700; font-size:15px; color:var(--copper-light); border:1px solid rgba(var(--copper-rgb),.32); border-radius:7px; background:var(--surface-well); box-shadow:inset 0 1px 2px rgba(0,0,0,.25); cursor:text; -moz-appearance:textfield; transition:border-color .12s, box-shadow .12s; }
[data-theme="light"] .av-alltot{ background:#fff; box-shadow:inset 0 1px 2px rgba(82,60,24,.06); }
.av-alltot::-webkit-outer-spin-button,.av-alltot::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.av-alltot:hover{ border-color:rgba(var(--copper-rgb),.6); }
.av-alltot:focus{ outline:none; border-color:var(--copper); box-shadow:0 0 0 3px rgba(var(--copper-rgb),.14); }
.av-unlim{ -webkit-appearance:none; appearance:none; width:28px; height:28px; border-radius:7px; border:1px solid var(--card-line); background:transparent; color:var(--text-faint); font-size:15px; line-height:1; cursor:pointer; transition:.14s; flex-shrink:0; }
.av-unlim:hover{ color:var(--copper-light); border-color:rgb(var(--copper-rgb)/.5); }
.av-unlim.is-on{ color:var(--copper-light); border-color:rgb(var(--copper-rgb)/.55); background:rgb(var(--copper-rgb)/.12); }
/* base price as one unified field: £ sits inside the border with the input */
.av-baserow{ display:inline-flex; align-items:center; gap:2px; padding-left:9px; border:1px solid rgba(var(--copper-rgb),.3); border-radius:7px; background:var(--surface-well); box-shadow:inset 0 1px 2px rgba(0,0,0,.25); transition:border-color .12s, box-shadow .12s; }
[data-theme="light"] .av-baserow{ background:#fff; box-shadow:inset 0 1px 2px rgba(82,60,24,.06); }
.av-baserow:hover{ border-color:rgba(var(--copper-rgb),.6); }
.av-baserow:focus-within{ border-color:var(--copper); box-shadow:0 0 0 3px rgba(var(--copper-rgb),.14); }
.av-baserow .cur{ font-family:var(--font-mono); color:var(--copper-light); font-size:12px; }
.av-baserow .av-price-in{ border:0; box-shadow:none; background:transparent; width:54px; padding:7px 8px 7px 3px; }
.av-baserow .av-price-in:hover,.av-baserow .av-price-in:focus{ border:0; box-shadow:none; }
.av-total{ font-family:var(--font-mono); font-weight:700; font-size:15px; color:var(--copper-light); }
.av-total.zero{ color:var(--red); }
.av-inf{ font-family:var(--font-mono); font-size:15px; color:var(--text-faint); }
.av-mto{ font-family:var(--font-mono); font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-faint); border:1px solid var(--card-line); border-radius:5px; padding:2px 7px; }

/* ── availability-table polish ── */
/* channel-coloured headers with an accent underline that anchors each column */
.av-chh{ position:relative; padding-bottom:16px !important; }
.av-chh-in{ display:inline-flex; align-items:center; gap:7px; }
.av-chh-dot{ width:8px; height:8px; border-radius:50%; background:var(--chc); box-shadow:0 0 6px -1px var(--chc); }
.av-chh::after{ content:''; position:absolute; left:16px; right:16px; bottom:10px; height:2px; border-radius:2px; background:var(--chc); opacity:.5; }
/* hover a whole product row */
.ps-table tbody tr:hover{ background:rgb(var(--copper-rgb)/.035); }
.av-cell{ padding-top:12px !important; padding-bottom:12px !important; }
/* the product name column gets a touch more presence */
.ps-table td .nm{ font-size:14px; }
/* effective price: understated when at base, a soft copper chip when uplifted */
.av-price{ padding:2px 7px; border-radius:5px; line-height:1.4; }
.av-price.up{ color:var(--copper-light); background:rgb(var(--copper-rgb)/.1); }
/* channel-pricing panel */
.cp-grid{ display:flex; flex-direction:column; gap:2px; }
.cprow{ display:grid; grid-template-columns:158px auto auto 1fr; align-items:center; gap:18px; padding:11px 10px; border-radius:8px; border-left:2px solid transparent; transition:background .12s, border-color .12s; }
.cprow + .cprow{ box-shadow:0 -1px 0 var(--line); }
.cprow:hover{ background:rgb(var(--copper-rgb)/.04); border-left-color:var(--cpc,var(--copper)); }
.cpname{ display:flex; align-items:center; gap:9px; font-family:var(--font-body); font-weight:600; font-size:13.5px; color:var(--text); }
.cpname .d{ width:9px; height:9px; border-radius:50%; flex-shrink:0; box-shadow:0 0 7px -1px var(--cpc); }
.cpfield{ display:inline-flex; align-items:center; gap:7px; font-family:var(--font-mono); font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-faint); }
.cp-in{ width:60px; padding:7px 8px; text-align:right; font-size:13px; }
.cpeg{ justify-self:end; font-family:var(--font-mono); font-size:11px; color:var(--text-faint); display:inline-flex; align-items:center; gap:8px; }
.cpeg b{ color:var(--copper-light); font-weight:700; background:rgb(var(--copper-rgb)/.1); border:1px solid rgb(var(--copper-rgb)/.28); border-radius:6px; padding:3px 9px; }
@media (max-width:820px){ .cprow{ grid-template-columns:1fr 1fr; gap:10px; } .cpeg{ grid-column:1/-1; justify-self:start; } }
.av-catrow td{ background:var(--surface-rec); padding:10px 16px; }
.av-catname{ font-family:var(--font-display); font-weight:700; font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--text); display:inline-flex; align-items:center; gap:9px; }
.av-catname .mcat-ic{ color:var(--hue,var(--copper)); display:inline-flex; }
.av-catname .ct{ font-family:var(--font-mono); font-size:10px; font-weight:400; letter-spacing:.04em; text-transform:none; color:var(--text-faint); }

/* refund modal — line pickers */
.rf-line{ display:flex; align-items:center; gap:12px; padding:12px 13px; border-radius:10px; background:var(--surface-rec); border:1px solid var(--card-line); margin-bottom:8px; cursor:pointer; transition:.12s; }
.rf-line:hover{ border-color:rgb(var(--copper-rgb)/.4); }
.rf-line.is-on{ background:rgb(var(--copper-rgb)/.1); border-color:rgb(var(--copper-rgb)/.55); }
.rf-check{ width:22px; height:22px; border-radius:6px; border:1px solid var(--card-line); display:grid; place-items:center; flex-shrink:0; color:transparent; }
.rf-line.is-on .rf-check{ background:var(--copper); border-color:var(--copper); color:#1a0f06; }
.rf-check svg{ width:14px; height:14px; }
.rf-line .rf-nm{ flex:1; min-width:0; font-family:var(--font-body); font-weight:600; font-size:13.5px; color:var(--text); }
.rf-line .rf-nm span{ display:block; font-family:var(--font-mono); font-size:10.5px; font-weight:400; color:var(--text-faint); margin-top:2px; }
.rf-line .rf-amt{ font-family:var(--font-mono); font-weight:600; font-size:13.5px; color:var(--text); flex-shrink:0; }
.rf-line.done{ opacity:.5; pointer-events:none; }
.rf-line.done .rf-nm span{ color:var(--red); }

/* toast */
.toast-wrap{ position:fixed; z-index:95; left:50%; bottom:28px; transform:translateX(-50%); display:flex; flex-direction:column; gap:8px; align-items:center; pointer-events:none; }
.toast{ display:flex; align-items:center; gap:10px; padding:12px 18px; border-radius:11px; background:var(--surface); border:1px solid var(--card-line); box-shadow:0 16px 40px -12px rgba(0,0,0,.6); color:var(--text); font-family:var(--font-body); font-size:13.5px; font-weight:500; animation:toastin .25s cubic-bezier(.2,.7,.2,1); }
.toast svg{ width:18px; height:18px; color:var(--copper-light); flex-shrink:0; }
.toast.good svg{ color:var(--green); }
@keyframes toastin{ from{ opacity:0; transform:translateY(10px); } }
@keyframes rise{ from{ opacity:0; transform:translateY(12px); } to{ opacity:1; transform:none; } }
.rise{ opacity:0; animation:rise .5s cubic-bezier(.2,.7,.2,1) forwards; animation-delay:calc(var(--i,0) * .04s + .04s); }
@media (prefers-reduced-motion:reduce){ .rise{ opacity:1; animation:none; } .spin{ animation:none; } }

/* ================================================================
   hv station additions — containers/components the pos.html mockup grammar
   doesn't include (screen toggling, shift gate, PIN dots, combo separator,
   back-office key/value rows). Token-compatible; kept minimal.
   ================================================================ */
.screen{ display:none; }
.screen.on{ display:flex; }
#app{ display:none; }
#app.on{ display:grid; }
#shift.on{ align-items:center; justify-content:center; height:100vh; }
.shift-card{ display:flex; flex-direction:column; align-items:center; gap:1.1rem; text-align:center;
  background:var(--surface); border:1px solid var(--card-line); border-radius:16px; padding:2.6rem 3rem;
  box-shadow:0 30px 80px -20px rgba(0,0,0,.6), inset 0 1px 0 var(--edge-sheen); }
.hv-lockdots{ display:flex; justify-content:center; gap:.55rem; padding:.4rem 0 .2rem; }
.hv-ld{ width:12px; height:12px; border-radius:50%; border:1px solid var(--card-line); }
.hv-ld.on{ background:var(--copper); border-color:var(--copper); }
.slot-sep{ height:1px; background:var(--card-line); margin:16px 0; }
.ps-kv{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding:11px 4px; font-family:var(--font-mono); font-size:12.5px; color:var(--text-dim); }
.ps-kv + .ps-kv{ border-top:1px solid var(--line); }
.ps-kv .v{ color:var(--text); font-weight:600; }

/* ── KDS: courses + Send (docs/proposals/kds.md) — additive layer on the
      dine-badge grammar; both themes ride the --cyan/--copper tokens. ── */
.coursebadge{ -webkit-appearance:none; appearance:none; cursor:pointer; height:32px; padding:0 11px; display:inline-flex; align-items:center; border-radius:8px; border:1px solid rgb(var(--cyan-rgb)/.45); background:rgb(var(--cyan-rgb)/.08); color:var(--cyan); font-family:var(--font-mono); font-size:9.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; transition:.12s; }
.coursebadge:hover{ filter:brightness(1.12); }
.coursebadge.is-fixed{ cursor:default; opacity:.75; }
.senttag{ display:inline-flex; align-items:center; height:32px; padding:0 9px; border-radius:8px; border:1px dashed rgb(var(--copper-rgb)/.5); color:var(--copper-light); font-family:var(--font-mono); font-size:9px; font-weight:700; letter-spacing:.1em; }
.line.is-sent{ box-shadow:inset 2px 0 0 rgb(var(--copper-rgb)/.55); }
.dinebadge.is-fixed{ cursor:default; }
.paybtns.with-send{ grid-template-columns:repeat(5,1fr); }
.paybtn.send:not(:disabled){ border-color:rgb(var(--copper-rgb)/.55); }
.paybtn.send:not(:disabled) svg{ color:var(--copper-light); }
.paybtn.send:disabled{ opacity:.55; }
.awayrow{ display:flex; align-items:center; gap:8px; margin-top:8px; }
.awayrow .k{ font-family:var(--font-mono); font-size:9.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--text-faint); }
.awayrow .chips{ display:flex; gap:6px; flex-wrap:wrap; }
.away-btn{ -webkit-appearance:none; appearance:none; cursor:pointer; height:30px; padding:0 12px; border-radius:8px; border:1px solid rgb(var(--cyan-rgb)/.45); background:rgb(var(--cyan-rgb)/.08); color:var(--cyan); font-family:var(--font-mono); font-size:9.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; transition:.12s; }
.away-btn:hover{ filter:brightness(1.12); }
.away-btn.is-called{ cursor:default; opacity:.55; border-style:dashed; }

/* ── KDS glass (docs/proposals/kds.md §6) — board/expo/all-day/recall/setup.
      Cockpit grammar: same tokens both themes, mono-for-data, status-strip
      offline language. Cards are the Incoming dl-card seed grown for kitchen
      reading distance (big type, strike-off, age heat). ── */
#screen-kds.on{ display:block; }
.kds-shell{ display:flex; flex-direction:column; height:100vh; background:var(--bg); color:var(--text); }
.kds-head{ display:flex; align-items:center; gap:18px; padding:10px 18px; border-bottom:1px solid var(--line); background:var(--surface); }
.kds-ident{ display:flex; flex-direction:column; gap:2px; min-width:180px; }
.kds-brand{ font-family:var(--font-mono); font-size:9px; letter-spacing:.22em; text-transform:uppercase; color:var(--text-faint); }
.kds-station{ font-family:var(--font-display); font-size:20px; letter-spacing:.08em; color:var(--copper-light); }
.kds-views{ display:flex; gap:6px; margin:0 auto; }
.kds-views button{ -webkit-appearance:none; appearance:none; cursor:pointer; height:38px; padding:0 18px; border-radius:9px; border:1px solid var(--card-line); background:var(--surface-rec); color:var(--text-dim); font-family:var(--font-mono); font-size:10.5px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; transition:.14s; }
.kds-views button.is-on{ color:var(--copper-light); border-color:rgb(var(--copper-rgb)/.55); background:rgb(var(--copper-rgb)/.1); }
.kds-status{ display:flex; align-items:center; gap:9px; min-width:120px; justify-content:flex-end; }
.kds-dot{ width:9px; height:9px; border-radius:50%; background:var(--green); }
.kds-clock{ font-family:var(--font-mono); font-size:15px; color:var(--text-dim); }
.kds-offline{ padding:8px 18px; background:rgb(var(--red-rgb)/.12); color:var(--red); font-family:var(--font-mono); font-size:11.5px; letter-spacing:.04em; border-bottom:1px solid var(--line); }
.kds-body{ flex:1; overflow-y:auto; padding:14px; }
.kds-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:12px; align-items:start; }
.kds-empty{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:70px 0; color:var(--text-faint); }
.kds-empty b{ font-family:var(--font-display); font-size:22px; letter-spacing:.06em; color:var(--text-dim); }
.kds-empty span{ font-family:var(--font-mono); font-size:11px; }

.kds-card{ border:1px solid var(--card-line); border-radius:11px; background:var(--surface); overflow:hidden; display:flex; flex-direction:column; }
.kds-card.is-sel{ outline:2px solid var(--cyan); outline-offset:1px; }
.kds-card.is-warn{ border-color:rgb(var(--amber-rgb)/.7); }
.kds-card.is-warn .kds-age{ color:var(--amber); }
.kds-card.is-over{ border-color:var(--red); }
.kds-card.is-over .kds-age{ color:var(--red); }
.kds-card.st-started .kds-card-h{ box-shadow:inset 0 3px 0 rgb(var(--cyan-rgb)/.6); }
.kds-card.st-ready .kds-card-h{ box-shadow:inset 0 3px 0 rgb(var(--green-rgb)/.6); }
.kds-card.is-void{ border-color:var(--red); }
.kds-card-h{ display:flex; align-items:center; gap:8px; padding:9px 11px; border-bottom:1px solid var(--line); background:var(--surface-rec); }
.kds-no{ font-family:var(--font-display); font-size:24px; letter-spacing:.04em; }
.kds-meta{ display:flex; flex-wrap:wrap; gap:4px; flex:1; min-width:0; }
.kds-src{ font-family:var(--font-mono); font-size:9px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-dim); border:1px solid var(--card-line); border-radius:6px; padding:2px 6px; }
.kds-src.mkt{ color:var(--copper-light); border-color:rgb(var(--copper-rgb)/.5); }
.kds-src.tbl{ color:var(--green); border-color:rgb(var(--green-rgb)/.5); }
.kds-age{ font-family:var(--font-mono); font-size:15px; font-weight:700; color:var(--text-dim); }
.kds-bumpat{ font-family:var(--font-mono); font-size:12px; color:var(--text-faint); }
.kds-voidbar{ background:var(--red); color:#fff; text-align:center; font-family:var(--font-mono); font-size:12px; font-weight:700; letter-spacing:.14em; padding:6px; }
.kds-roundbar{ background:rgb(var(--copper-rgb)/.14); color:var(--copper-light); text-align:center; font-family:var(--font-mono); font-size:10px; font-weight:700; letter-spacing:.1em; padding:4px; }
.kds-card-b{ padding:7px 11px 9px; }
.kds-course{ font-family:var(--font-mono); font-size:9.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--cyan); padding:7px 0 3px; }
.kds-course.is-held{ color:var(--text-faint); }
.kds-heldwrap{ opacity:.45; }
.kds-it{ padding:7px 2px; border-bottom:1px dashed var(--line); cursor:pointer; }
.kds-it:last-child{ border-bottom:none; }
.kds-qty{ font-family:var(--font-mono); font-size:17px; font-weight:800; color:var(--copper-light); margin-right:8px; }
.kds-nm{ font-size:17px; font-weight:650; letter-spacing:.01em; }
.kds-round{ font-style:normal; font-family:var(--font-mono); font-size:9.5px; font-weight:800; color:var(--copper-light); border:1px dashed rgb(var(--copper-rgb)/.6); border-radius:5px; padding:1px 4px; margin-left:5px; vertical-align:2px; }
.kds-dine{ font-style:normal; font-family:var(--font-mono); font-size:9px; font-weight:700; color:var(--text-faint); margin-left:5px; }
.kds-mods{ font-family:var(--font-mono); font-size:12.5px; color:var(--text-dim); padding:2px 0 0 26px; line-height:1.55; }
.kds-note{ font-family:var(--font-mono); font-size:12.5px; font-weight:700; color:var(--amber); padding:2px 0 0 26px; }
.kds-it.is-struck .kds-nm, .kds-it.is-struck .kds-qty, .kds-it.is-struck .kds-mods{ text-decoration:line-through; opacity:.45; }
.kds-it.is-voided .kds-nm{ color:var(--red); }
.kds-card-f{ display:flex; align-items:center; gap:8px; padding:9px 11px; border-top:1px solid var(--line); margin-top:auto; }
.kds-rc{ font-family:var(--font-mono); font-size:10px; color:var(--text-faint); }
.kds-go{ -webkit-appearance:none; appearance:none; cursor:pointer; margin-left:auto; height:44px; padding:0 22px; border-radius:9px; border:1px solid rgb(var(--copper-rgb)/.6); background:rgb(var(--copper-rgb)/.13); color:var(--copper-light); font-family:var(--font-mono); font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; transition:.12s; }
.kds-go:hover{ filter:brightness(1.12); }
.kds-stchips{ display:flex; flex-wrap:wrap; gap:5px; padding:7px 11px 0; }
.kds-stchip{ font-family:var(--font-mono); font-size:9.5px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; border-radius:6px; padding:3px 8px; border:1px solid var(--card-line); color:var(--text-faint); }
.kds-stchip.st-started{ color:var(--cyan); border-color:rgb(var(--cyan-rgb)/.5); }
.kds-stchip.st-ready, .kds-stchip.st-bumped{ color:var(--green); border-color:rgb(var(--green-rgb)/.5); }
.kds-away{ display:flex; flex-wrap:wrap; gap:6px; padding:0 11px 10px; }
.kds-awaybtn{ -webkit-appearance:none; appearance:none; cursor:pointer; height:34px; padding:0 14px; border-radius:8px; border:1px solid rgb(var(--cyan-rgb)/.45); background:rgb(var(--cyan-rgb)/.08); color:var(--cyan); font-family:var(--font-mono); font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.kds-awaybtn.is-called{ opacity:.5; border-style:dashed; cursor:default; }
.kds-allday{ max-width:560px; margin:0 auto; }
.kds-ad-row{ display:flex; align-items:center; gap:16px; padding:12px 8px; border-bottom:1px solid var(--line); }
.kds-ad-n{ font-family:var(--font-mono); font-size:26px; font-weight:800; color:var(--copper-light); min-width:56px; text-align:right; }
.kds-ad-nm{ font-size:19px; font-weight:650; }
.kds-setup{ max-width:860px; margin:0 auto; display:flex; flex-direction:column; gap:14px; padding-bottom:80px; }
.kds-sec{ border:1px solid var(--card-line); border-radius:11px; background:var(--surface); padding:14px 16px; }
.kds-sec h3{ font-family:var(--font-display); font-size:15px; letter-spacing:.08em; text-transform:uppercase; color:var(--copper-light); margin:0 0 4px; }
.kds-hint{ font-family:var(--font-mono); font-size:10.5px; color:var(--text-faint); margin:0 0 10px; line-height:1.6; }
.kds-chips{ display:inline-flex; flex-wrap:wrap; gap:6px; }
.kds-chip{ -webkit-appearance:none; appearance:none; cursor:pointer; height:32px; padding:0 12px; border-radius:8px; border:1px solid var(--card-line); background:var(--surface-rec); color:var(--text-dim); font-family:var(--font-mono); font-size:10px; font-weight:700; letter-spacing:.06em; transition:.12s; }
.kds-chip.is-on{ color:var(--copper-light); border-color:rgb(var(--copper-rgb)/.55); background:rgb(var(--copper-rgb)/.1); }
.kds-chip.np.is-on{ color:var(--red); border-color:var(--red); background:transparent; }
.kds-strow{ display:flex; align-items:center; gap:8px; padding:6px 0; flex-wrap:wrap; }
.kds-in{ height:36px; border-radius:8px; border:1px solid var(--card-line); background:var(--surface-rec); color:var(--text); padding:0 10px; font-family:var(--font-mono); font-size:12.5px; }
.kds-in.num{ width:84px; }
.kds-in.wide{ width:100%; max-width:420px; }
.kds-rt-row{ display:flex; align-items:center; gap:12px; padding:7px 0; border-bottom:1px dashed var(--line); flex-wrap:wrap; }
.kds-rt-nm{ min-width:170px; font-size:14px; font-weight:600; }
.kds-knob{ display:flex; align-items:center; gap:12px; padding:7px 0; flex-wrap:wrap; }
.kds-knob > span{ min-width:190px; font-family:var(--font-mono); font-size:11px; color:var(--text-dim); }
.kds-savebar{ position:sticky; bottom:0; padding:12px 0; background:linear-gradient(transparent, var(--bg) 40%); display:flex; }
.kds-savebar .kds-go{ margin-left:auto; }
.kds-onote{ background:rgb(var(--amber-rgb)/.12); color:var(--amber); font-family:var(--font-mono); font-size:12.5px; font-weight:700; padding:6px 11px; border-bottom:1px solid rgb(var(--amber-rgb)/.35); }
.kds-age.is-due{ color:var(--cyan); font-size:12.5px; text-transform:none; }
.kds-age.is-held{ color:var(--text-faint); letter-spacing:.14em; font-size:12px; }
.kds-sndpill{ -webkit-appearance:none; appearance:none; cursor:pointer; height:28px; padding:0 12px; border-radius:14px; border:1px solid rgb(var(--amber-rgb)/.55); background:rgb(var(--amber-rgb)/.1); color:var(--amber); font-family:var(--font-mono); font-size:9.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.kds-undo{ -webkit-appearance:none; appearance:none; cursor:pointer; position:fixed; left:50%; transform:translateX(-50%); bottom:18px; z-index:40; height:46px; padding:0 26px; border-radius:23px; border:1px solid rgb(var(--copper-rgb)/.6); background:var(--surface); color:var(--copper-light); font-family:var(--font-mono); font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; box-shadow:0 6px 24px rgb(0 0 0/.35); }
.kds-ad-mods{ display:block; font-family:var(--font-mono); font-size:12px; font-weight:400; color:var(--text-dim); }
.kds-subhead{ font-family:var(--font-mono); font-size:9.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--text-faint); padding:10px 0 4px; }
.kds-shell{ --kds-scale:1; }
.kds-body{ zoom:var(--kds-scale, 1); }
.kds-shell.kds-fixed-cols .kds-grid{ grid-template-columns:repeat(var(--kds-cols, 3), minmax(0, 1fr)); }
.kds-rushbar{ background:rgb(var(--red-rgb)/.16); color:var(--red); text-align:center; font-family:var(--font-mono); font-size:11px; font-weight:800; letter-spacing:.22em; padding:4px; border-bottom:1px solid rgb(var(--red-rgb)/.35); }
.kds-rush{ -webkit-appearance:none; appearance:none; cursor:pointer; height:34px; padding:0 12px; border-radius:8px; border:1px dashed var(--card-line); background:transparent; color:var(--text-faint); font-family:var(--font-mono); font-size:9.5px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.kds-rush.is-on{ color:var(--red); border-color:var(--red); border-style:solid; }
.kds-86bar{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:6px; padding:8px; border:1px solid rgb(var(--red-rgb)/.45); border-radius:8px; background:rgb(var(--red-rgb)/.08); font-family:var(--font-mono); font-size:11px; color:var(--text-dim); }
.kds-86bar button{ -webkit-appearance:none; appearance:none; cursor:pointer; height:32px; padding:0 12px; border-radius:7px; border:1px solid var(--red); background:rgb(var(--red-rgb)/.14); color:var(--red); font-family:var(--font-mono); font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.kds-86bar button.ghost{ border-color:var(--card-line); background:transparent; color:var(--text-dim); }
.kds-86list{ margin-top:22px; }
.kds-86head{ font-family:var(--font-mono); font-size:10px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:var(--red); padding:0 8px 6px; }
.kds-acc{ margin-bottom:14px; border:1px solid rgb(var(--copper-rgb)/.5); border-radius:11px; background:rgb(var(--copper-rgb)/.06); padding:10px 12px; }
.kds-acc-title{ font-family:var(--font-mono); font-size:10px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--copper-light); padding-bottom:8px; }
.kds-acc-row{ display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:10px; }
.kds-acc-card{ border:1px solid var(--card-line); border-radius:9px; background:var(--surface); padding:9px 11px; display:flex; flex-direction:column; gap:6px; }
.kds-acc-h{ display:flex; align-items:center; gap:8px; }
.kds-acc-h b{ font-family:var(--font-display); font-size:20px; }
.kds-acc-when{ margin-left:auto; font-family:var(--font-mono); font-size:11px; color:var(--cyan); }
.kds-acc-cust{ font-size:13px; color:var(--text-dim); }
.kds-acc-b{ font-family:var(--font-mono); font-size:12px; color:var(--text-dim); line-height:1.6; max-height:110px; overflow-y:auto; }
.kds-acc-act{ display:flex; gap:8px; }
.kds-acc-act button{ -webkit-appearance:none; appearance:none; cursor:pointer; flex:1; height:42px; border-radius:8px; font-family:var(--font-mono); font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.kds-acc-act .yes{ border:1px solid rgb(var(--green-rgb)/.6); background:rgb(var(--green-rgb)/.12); color:var(--green); }
.kds-acc-act .no{ border:1px solid var(--card-line); background:transparent; color:var(--text-dim); max-width:40%; }
.kds-acc-why{ display:flex; gap:6px; flex-wrap:wrap; }
.kds-acc-why button{ -webkit-appearance:none; appearance:none; cursor:pointer; height:36px; padding:0 12px; border-radius:8px; border:1px solid rgb(var(--red-rgb)/.5); background:rgb(var(--red-rgb)/.08); color:var(--red); font-family:var(--font-mono); font-size:10px; font-weight:700; }
.kds-acc-why button.ghost{ border-color:var(--card-line); background:transparent; color:var(--text-dim); }
.kds-collect{ display:grid; grid-template-columns:1fr 1fr; gap:16px; min-height:70vh; }
.kds-col{ border:1px solid var(--card-line); border-radius:14px; background:var(--surface); padding:18px; }
.kds-col h2{ font-family:var(--font-display); font-size:26px; letter-spacing:.1em; text-transform:uppercase; color:var(--text-dim); margin:0 0 14px; text-align:center; }
.kds-col.is-ready h2{ color:var(--green); }
.kds-col-grid{ display:flex; flex-wrap:wrap; gap:14px; justify-content:center; }
.kds-col-cell{ display:flex; flex-direction:column; align-items:center; gap:2px; min-width:120px; padding:14px 18px; border:1px solid var(--card-line); border-radius:12px; background:var(--surface-rec); }
.kds-col-cell b{ font-family:var(--font-display); font-size:44px; letter-spacing:.04em; }
.kds-col-cell span{ font-size:14px; color:var(--text-dim); }
.kds-col.is-ready .kds-col-cell{ border-color:rgb(var(--green-rgb)/.55); }
.kds-col.is-ready .kds-col-cell b{ color:var(--green); }
.kds-col-none{ font-family:var(--font-mono); color:var(--text-faint); padding:30px 0; }

/* ── Licence surfaces (the Lic guard) ── */
/* Sticky, not fixed-over-the-top: as an overlay it covered the first ~34px of
   the KDS header (brand, station name, the top of the view tabs) and the till
   ribbon. In flow it pushes the UI down instead of hiding it. */
.lic-bar{ position:sticky; top:0; z-index:70; padding:9px 18px; background:rgb(var(--amber-rgb)/.14); color:var(--amber); border-bottom:1px solid rgb(var(--amber-rgb)/.4); font-family:var(--font-mono); font-size:11.5px; letter-spacing:.03em; text-align:center; }
.lic-bar.is-hot{ background:rgb(var(--red-rgb)/.15); color:var(--red); border-bottom-color:rgb(var(--red-rgb)/.45); }
.lic-panel{ position:fixed; inset:0; z-index:80; display:flex; align-items:center; justify-content:center; background:color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter:blur(3px); }
/* display:flex above beats the UA's [hidden]{display:none} — without this the
   panel can NEVER hide (the 2026-07-21 every-till-overlaid bug). */
.lic-panel[hidden]{ display:none; }
.lic-bar[hidden]{ display:none; }
.lic-card{ width:min(520px, 92vw); border:1px solid var(--card-line); border-radius:14px; background:var(--surface); padding:26px 28px; text-align:center; box-shadow:0 18px 60px rgb(0 0 0/.4); }
.lic-title{ font-family:var(--font-display); font-size:24px; letter-spacing:.06em; color:var(--copper-light); }
.lic-msg{ margin:12px 0 18px; font-size:14.5px; line-height:1.65; color:var(--text-dim); }
.lic-actions{ display:flex; gap:10px; justify-content:center; }
.lic-btn{ -webkit-appearance:none; appearance:none; cursor:pointer; height:46px; padding:0 22px; border-radius:9px; border:1px solid var(--card-line); background:var(--surface-rec); color:var(--text-dim); font-family:var(--font-mono); font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.lic-btn.hot{ border-color:rgb(var(--copper-rgb)/.6); background:rgb(var(--copper-rgb)/.13); color:var(--copper-light); }
.lic-foot{ margin-top:14px; font-family:var(--font-mono); font-size:10px; color:var(--text-faint); }

/* ================================================================
   DELIVERY BOARD — relocated verbatim from the station.blade.php inline
   <style> block (till rework 3/N: no inline CSS in the document head).
   Consumed by station-manage.js's delivery list. Kept byte-identical to
   stay behavior-preserving; the legacy --panel token below is absent from
   the cockpit palette (falls back to #1c1917) and is flagged for the
   delivery-board UI pass, not changed here.
   ================================================================ */
.dl-card{background:var(--panel,#1c1917);border:1px solid var(--line,#33302c);border-radius:10px;padding:14px 16px;margin:0 0 12px}
.dl-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.dl-num{font-family:var(--font-mono);font-weight:800;font-size:1.05rem;color:var(--text,#f5f5f4)}
.dl-type{font-family:var(--font-mono);font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;color:var(--text-dim,#a8a29e);border:1px solid var(--line,#33302c);border-radius:4px;padding:2px 6px}
.dl-status{font-family:var(--font-mono);font-size:.65rem;text-transform:uppercase;letter-spacing:.1em;color:var(--copper,#d97706)}
.dl-cust{margin-left:auto;font-size:.85rem;color:var(--text-dim,#a8a29e)}
.dl-notes{background:rgba(217,119,6,.12);border:1px solid rgba(217,119,6,.35);border-radius:6px;padding:6px 10px;margin-bottom:8px;font-size:.85rem;color:var(--text,#f5f5f4)}
.dl-lines{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}
.dl-line{display:flex;gap:8px;font-size:.9rem;color:var(--text,#f5f5f4)}
.dl-qty{font-family:var(--font-mono);color:var(--text-dim,#a8a29e);min-width:28px}
.dl-mods{font-size:.75rem;color:var(--text-dim,#a8a29e)}
.dl-actions{display:flex;gap:8px}
.dl-actions.dl-prep{flex-wrap:wrap}
.dl-actions .abtn,.dl-actions .btn{flex:1;min-width:90px}
.empty-note{padding:40px 16px;text-align:center;color:var(--text-dim,#a8a29e);font-family:var(--font-mono);font-size:.8rem}

/* ================================================================
   STATION SCAFFOLD — styles lifted out of station.blade.php inline
   style="" attributes (till rework: no inline CSS in the document).
   Scoped by id / container so the computed result is byte-identical to
   the inline rules they replace. Redundant inline styles (width:100% on
   .field, which the base .field already sets; overflow-y:auto on .scy,
   which .scy already sets) were simply deleted, no rule needed.
   Two intentional exceptions remain inline: the display:none on #railLock
   and #lockCancel is stateful — JS shows them via el.style.display='' ,
   which would revert to a CSS display:none and never appear if classed.
   ================================================================ */

/* Open-shift float gate */
.shift-card .rail-mark{ font-size:2.4rem; margin-bottom:.4rem; }
.shift-card .rail-mark .dot{ color:var(--copper); }
.shift-card p{ color:var(--text-dim); font-family:var(--font-body); margin:0; }
#floatAmt{ text-align:center; font-family:var(--font-mono); font-size:1.4rem; max-width:240px; }
.shift-card .abtn, .shift-card .btn{ min-width:240px; }

/* Sale — waste / staff-meal tool button */
.tool-waste,.tool-soldout{ flex-shrink:0; display:inline-flex; align-items:center; gap:6px; }
.tool-waste svg,.tool-soldout svg{ width:16px; height:16px; }

/* Modal shared grammar */
.mfoot > span:empty{ flex:1; }            /* footer spacer between buttons */
.mfoot .qstep{ margin-right:10px; }        /* qty stepper sits off the primary */
.m-amt{ margin-left:6px; }                 /* "£0.00" suffix inside an action button */
.m-noterow{ padding:0 20px 12px; }         /* note-input row under a picker body */

/* Modal body paddings that override the .mbody default (20px 22px) */
#bd-age .mbody, #bd-consume .mbody, #bd-table .mbody{ padding:16px 20px; }
#bd-rewards .mbody{ padding:14px 20px 18px; }
#bd-custom .mbody{ padding:18px 20px 6px; }

/* Age-verification modal */
#ageMsg{ font-size:.95rem; line-height:1.5; margin:0; }
.age-fields{ display:flex; gap:12px; margin-top:14px; flex-wrap:wrap; }
.age-fields > label{ flex:1; min-width:130px; }
.age-fields label > span{ display:block; font-family:var(--font-mono); font-size:9px; text-transform:uppercase; letter-spacing:.12em; color:var(--text-faint); margin-bottom:4px; }
.abtn.refuse{ color:#dc2626; }

/* Custom-item + wastage modal field stacks */
#cstName{ margin-bottom:14px; }
.ws-catrow{ display:flex; gap:8px; margin-bottom:14px; }
.ws-catrow > .abtn{ flex:1; }
#bd-consume .field{ margin-bottom:12px; }
#wsNote{ margin-bottom:0; }

/* Table picker grid */
#tableGrid{ display:grid; grid-template-columns:repeat(6,1fr); gap:8px; }

/* Per-modal width caps + centred bodies */
#bd-name .modal{ max-width:420px; }
#bd-lock .modal{ max-width:360px; }
#bd-pad .modal{ max-width:380px; }
#bd-info .modal{ max-width:420px; }
#bd-lock .mbody{ text-align:center; }
#bd-lock .keypad{ margin-top:14px; }
#bd-lock .key.blank{ visibility:hidden; }
#infoBody{ text-align:center; }

/* Operator PIN cancel — the non-display styling; display stays inline (stateful) */
#lockCancel{ width:100%; margin-top:12px; padding:11px; border:1px solid var(--card-line); border-radius:10px; background:transparent; color:var(--text-dim); font-family:var(--font-mono); font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; cursor:pointer; }

/* ================================================================
   BACK-OFFICE CONSOLE (station-manage.js) — data-bindings + tweaks
   lifted out of inline style="" (till rework: no inline CSS in the JS).
   Dynamic values ride CSS custom properties (--g flex-grow, --c colour,
   --h height, --n/--gap grid); statics fold into the ps-* classes. The
   ps-* design itself is unchanged — this is de-CSS, not a redesign.
   ================================================================ */

/* Info / confirm modal content */
.info-err{ color:var(--red); font-family:var(--font-body); font-size:15px; padding:6px 0; }
.info-confirm{ font-family:var(--font-body); font-size:15px; margin-bottom:14px; }
.info-confirm-note{ font-size:.9rem; color:var(--text-dim); margin-top:.3rem; }
.info-confirm-amt{ font-size:1.2rem; display:block; margin-top:.4rem; }
.btn.full{ width:100%; }
.info-ok-title{ font-family:var(--font-display); }
.info-ok-amt{ font-family:var(--font-mono); font-size:26px; color:var(--copper-light); }
.info-ok-note{ color:var(--text-dim); }

/* Tickets — part-paid rows read copper; the discard-held button */
.listrow .licon.cop{ color:var(--copper); }
.listrow .lval.cop{ color:var(--copper); }
.listrow .ldel{ margin-left:10px; background:transparent; border:0; color:var(--text-faint); cursor:pointer; padding:5px; border-radius:6px; flex-shrink:0; }

/* Setup — flush charges note + the live layout-preview schematic */
.page-lead.flush{ margin:0; }
.laypv{ margin-bottom:14px; }
.pv-grid{ grid-template-columns:repeat(var(--n),1fr); grid-auto-rows:1fr; gap:var(--gap); height:var(--h); }

/* Reports — payment-mix bar/legend colour + hero size are data-driven */
.ps-statbar i{ flex-grow:var(--g,0); background:var(--c,var(--text-faint)); }
.ps-legrow .d{ background:var(--c,var(--text-faint)); }
.ps-legrow .lbl.faint{ color:var(--text-faint); }
.ps-hero.sm b{ font-size:38px; }
.ps-ctile .hd .d{ background:var(--copper-light); }

/* Reports — trading-by-hour histogram (bar height is the only data value) */
.ps-hours{ display:flex; align-items:flex-end; gap:8px; height:172px; padding:6px 2px 0; }
.ps-hour{ flex:1; display:flex; flex-direction:column; align-items:center; gap:7px; height:100%; justify-content:flex-end; }
.ps-hour .val{ font-family:var(--font-mono); font-size:8.5px; color:var(--text-faint); height:11px; }
.ps-hour.peak .val{ color:var(--copper-light); }
.ps-hour .bar{ width:100%; max-width:40px; height:var(--h,0); background:var(--surface-rec); border-radius:5px 5px 0 0; min-height:2px; }
.ps-hour.has .bar{ background:linear-gradient(180deg,var(--copper-light),var(--copper)); min-height:4px; }
.ps-hour .hr{ font-family:var(--font-mono); font-size:9.5px; color:var(--text-faint); }

/* Reports / Txns — flush date-range strip, drawer input, button rows, txn sub-line */
.ps-range.flush{ margin:0; }
#mvAmt{ max-width:180px; }
.ps-btnrow{ display:flex; gap:8px; flex-wrap:wrap; }
.ps-tbl-sub{ font-size:11px; color:var(--text-faint); }
.ps-tbl-neg{ color:var(--red); }

/* Availability — search, category count, clickable tags. (The count strip now uses the shared
   .stats/.stat tiles like every other board; the old .ps-availstats rules were removed.) */
#avQ{ margin-bottom:14px; }
.mcat-head .cnt{ margin-left:auto; font-family:var(--font-mono); font-size:11px; color:var(--text-faint); }
.ps-tag[onclick]{ cursor:pointer; }
.ps-tag.xs{ font-size:9px; }

/* Availability — per-channel cell figures + the inline stock editor */
.av-cellwrap .price{ font-size:13px; color:var(--copper-light); }
.av-cellwrap .rem{ font-size:10px; color:var(--text-faint); }
.ps-table tr.tap{ cursor:pointer; }
.ps-table td.rt{ color:var(--text-faint); }
.stock-editor{ margin:4px 0 10px; }
.stock-editor .setrow{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.stock-editor .setrow .lbl{ margin:0; min-width:110px; }
.stock-editor .setrow .field{ max-width:90px; }
.ps-table td.editor-cell{ padding-top:0; }

/* Refund modal — group label, wrapped reason chips, custom input, cash-back summary */
.rf-group{ padding:6px 0 2px; }
.subcats.rf-reasons{ flex-wrap:wrap; margin-top:14px; }
.rf-custom{ margin-top:10px; }
.rf-sum{ margin-top:14px; padding-top:10px; border-top:1px solid var(--line); }
.rf-sum-row{ display:flex; justify-content:space-between; padding:3px 0; font-size:13px; color:var(--c,var(--text-dim)); }

/* Delivery board — scheduled-time status + board padding */
.dl-status.sched{ color:#5b8def; }
.dl-board{ padding:4px 2px 16px; }

/* ================================================================
   MONEY-PATH MODULES (device/cart/sale/loyalty/pay) — inline styles
   lifted to classes + CSS custom properties (till rework: no inline CSS
   in the JS). The --hue/--tc/--i colour bindings stay inline by design.
   ================================================================ */

/* Device — pairing "H." lockup mark */
.pair-hmark{ font-family:'Share Tech Mono',monospace; font-size:16px; color:var(--copper); }

/* Cart — confirm-dialog large amount, sub-note, dead option, table tiles */
.info-confirm-amt.lg{ font-size:1.3rem; }
.info-confirm-sub{ display:block; margin-top:.4rem; font-size:12px; color:var(--text-dim); }
.opt.dead{ opacity:.4; }
.tbtile{ aspect-ratio:1; border-radius:9px; border:1px solid var(--card-line); background:var(--surface-rec); color:var(--text); font-family:var(--font-mono); font-size:17px; font-weight:700; cursor:pointer; }
.tbtile.on{ border-color:rgb(var(--copper-rgb)/.5); background:rgb(var(--copper-rgb)/.16); color:var(--copper-light); }

/* Sale — custom-tile label, full-width empty grid, product photo, sold-out tile */
.tile.custom span{ font-family:var(--font-mono); font-size:11px; font-weight:600; letter-spacing:.06em; }
.emptystate.gridfull{ grid-column:1/-1; }
.tile-img.photo{ background-image:var(--img); background-size:cover; background-position:center; }
.tile.sold{ opacity:.5; }
.tile-mod.danger{ color:var(--red); border-color:rgb(var(--red-rgb)/.4); }
/* C7 — 86 mode: a full-width banner + tappable sold-out toggle tiles (never disabled) */
.so-banner{ grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 15px; border-radius:12px; background:rgb(var(--red-rgb)/.1); border:1px solid rgb(var(--red-rgb)/.4); margin-bottom:2px; }
.so-banner-t{ display:flex; align-items:center; gap:9px; color:var(--red); font-family:var(--font-body); font-size:13.5px; font-weight:600; }
.so-banner-t svg{ flex:0 0 auto; }
/* C8 — the customer sheet holds two different acts (details, then points). A rule
   between them says so, so a manager correcting a balance never thinks they are
   still editing a phone number. */
.cu-sep{ height:1px; margin:4px 0 2px; background:var(--card-line); }
/* #14 — training mode. A permanent bar across the whole panel, not a toast: the
   cost of not noticing is a shift of sales that were never recorded. Amber rather
   than red — this is a state to SEE, not a fault; red is reserved for money errors
   and voids, and spending it here would blunt it there. */
.trainbar{ display:flex; align-items:center; gap:12px; padding:9px 18px; background:rgb(var(--amber-rgb)/.14); border-bottom:1px solid rgb(var(--amber-rgb)/.45); }
.trainbar .tb-tag{ flex:0 0 auto; font-family:var(--font-mono); font-size:10.5px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:#1a0f06; background:var(--amber); border-radius:5px; padding:3px 9px; }
.trainbar .tb-msg{ flex:1 1 auto; font-family:var(--font-body); font-size:13px; color:var(--text-dim); }
.trainbar .abtn{ flex:0 0 auto; }
/* B8 — Favourites "sections" layout: a collection label spanning the grid row. */
.fav-sec{ grid-column:1/-1; display:flex; align-items:center; gap:12px; margin:8px 0 -2px; }
.fav-sec:first-child{ margin-top:0; }
.fav-sec-t{ font-family:var(--font-mono); font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--copper-light); white-space:nowrap; }
.fav-sec::after{ content:''; flex:1; height:1px; background:var(--card-line); }
.so-tile{ cursor:pointer; }
.so-tile.sold{ opacity:.55; }
.so-tile.sold .tile-name{ text-decoration:line-through; }
.so-tile:not(.sold){ border-color:rgb(var(--green-rgb)/.4); }

/* Loyalty — reward row, meta line, customers page, Disc/Coup overlays, txn-limit */
.listrow.dim{ opacity:.55; }
.loy-meta{ color:var(--copper-light); font-family:var(--font-mono); font-size:12px; }
.listrow.attaching{ background:rgb(var(--copper-rgb)/.08); border-color:rgb(var(--copper-rgb)/.4); margin-bottom:14px; }
.listrow.attaching .lname{ color:var(--copper-light); }
.loy-search{ max-width:440px; margin:14px 0; }
.loy-search .field{ padding-left:38px; }
.loy-newcust{ margin-top:16px; padding-top:14px; border-top:1px solid var(--card-line); }
.loy-newcust > .lbl{ margin-bottom:8px; }
.loy-newcust-row{ display:flex; gap:8px; flex-wrap:wrap; max-width:520px; }
#custNewPhone{ max-width:140px; }
#custNewDob{ max-width:160px; }
.loy-newcust .totnote{ margin-top:6px; }
.key.blank{ visibility:hidden; }
.seg.wide{ display:flex; width:100%; margin-bottom:12px; }
.seg.wide > button{ flex:1; }
.lbl.mt14{ margin-top:14px; }
.subcats.wrap{ flex-wrap:wrap; }
.ov-recs .btn{ flex:1; }
.err-text{ color:var(--red); }
#coupInput{ text-align:center; font-family:var(--font-mono); text-transform:uppercase; letter-spacing:.1em; font-size:20px; margin-top:6px; }
.info-msg{ font-family:var(--font-body); font-size:15px; padding:4px 0; }
.info-msg .mt{ margin-top:6px; }
.info-msg .mt-dim{ margin-top:6px; color:var(--text-dim); font-size:13px; }
.info-confirm-inline{ display:block; margin-top:.5rem; }

/* Pay — money keypad, split-payment, ledger, card, cancel-refund, Z-report */
.mono-dim{ color:var(--text-dim); font-family:var(--font-mono); font-size:12px; }
.totnote.center{ text-align:center; }
.totnote.mt8{ margin-top:8px; }
.qc-sub{ display:block; font-size:11px; opacity:.7; font-weight:400; }
.quickcash.mt{ margin-top:10px; }
.quickcash.cols2{ grid-template-columns:1fr 1fr; }
.qc-splitico{ vertical-align:-2px; margin-right:5px; }
.qc.tender{ min-height:72px; font-size:1.05rem; }
.qc.tender.sm{ font-size:1.02rem; }
.qc.tender svg{ display:block; margin:0 auto 6px; }
.qc.h64{ min-height:64px; }
.pay-actionrow{ margin-top:12px; }
.pay-actionrow > *{ width:100%; }
.ov-foot.split{ display:flex; gap:10px; }
.ov-foot.split > .abtn{ flex:0 0 auto; }
.ov-foot.split > .btn{ flex:1; }
.pay-assign-list{ max-height:280px; overflow:auto; }
.info-mono-list{ margin-top:10px; font-family:var(--font-mono); font-size:12px; line-height:1.9; color:var(--text-dim); }
.z-title{ font-family:var(--font-display); letter-spacing:.05em; text-transform:uppercase; }
.z-body{ text-align:left; font-family:var(--font-mono); font-size:13px; line-height:1.9; color:var(--text-dim); margin-top:.4rem; }
.z-prov{ color:var(--copper); }
.z-variance{ font-size:1.3rem; color:var(--c); }

/* Setup → Hardware (printer / scanner / cash-drawer config + tests) */
.ps-testrow{ display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.info-hi{ color:var(--copper-light); font-family:var(--font-mono); }

/* ── #13 float reconciliation — counting the drawer ──────────────────
   Three counting surfaces on the venue's choice (cash_count.layout). All reuse the
   overlay/keypad grammar above; only the sheet itself is new. */
.cnt-blind{ margin-left:8px; padding:2px 7px; border-radius:5px; background:rgb(var(--copper-rgb)/.14); border:1px solid rgb(var(--copper-rgb)/.45); color:var(--copper-light); font-family:var(--font-mono); font-size:8.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; vertical-align:middle; }
.cnt-hint{ font-family:var(--font-mono); font-size:10.5px; line-height:1.7; color:var(--text-faint); margin:10px 0 2px; }
.cnt-none{ font-family:var(--font-mono); font-size:10px; color:var(--text-faint); }

/* ladder — a row per denomination, the paper cash-up sheet */
.cnt-ladder{ display:flex; flex-direction:column; gap:6px; }
.cnt-row{ display:grid; grid-template-columns:56px 38px 1fr 38px 72px; align-items:center; gap:8px; padding:5px 8px; border-radius:9px; background:var(--surface-rec); border:1px solid var(--card-line); transition:.12s; }
.cnt-row.is-sel{ border-color:rgb(var(--copper-rgb)/.55); background:rgb(var(--copper-rgb)/.09); }
.cnt-d{ font-family:var(--font-mono); font-size:12px; font-weight:700; color:var(--text); }
.cnt-step{ -webkit-appearance:none; appearance:none; cursor:pointer; height:34px; border-radius:8px; background:var(--surface-well); border:1px solid var(--card-line); color:var(--text-dim); font-family:var(--font-mono); font-size:17px; font-weight:600; display:grid; place-items:center; transition:.1s; }
.cnt-step:hover{ border-color:rgb(var(--copper-rgb)/.5); color:var(--copper-light); }
.cnt-step:active{ background:rgb(var(--copper-rgb)/.14); }
.cnt-q{ -webkit-appearance:none; appearance:none; cursor:pointer; height:34px; border-radius:8px; background:transparent; border:1px dashed var(--card-line); color:var(--text); font-family:var(--font-mono); font-size:15px; font-weight:600; transition:.12s; }
.cnt-q:hover{ border-color:rgb(var(--copper-rgb)/.5); color:var(--copper-light); }
.cnt-v{ text-align:right; font-family:var(--font-mono); font-size:12px; color:var(--text-dim); }

/* tiles — notes one side, coins the other, tap to count */
.cnt-tiles{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.cnt-tgrid{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.cnt-tile{ position:relative; }
.cnt-tface{ -webkit-appearance:none; appearance:none; cursor:pointer; width:100%; height:58px; border-radius:10px; background:var(--surface-rec); border:1px solid var(--card-line); color:var(--text); font-family:var(--font-mono); font-size:13px; font-weight:700; display:grid; place-items:center; transition:.12s; }
.cnt-tface:hover{ border-color:rgb(var(--copper-rgb)/.5); color:var(--copper-light); }
.cnt-tface:active{ background:rgb(var(--copper-rgb)/.16); }
/* a counted tile carries a badge and a minus, so its label lifts clear of both */
.cnt-tile.is-on .cnt-tface{ background:rgb(var(--copper-rgb)/.12); border-color:rgb(var(--copper-rgb)/.55); color:var(--copper-light); height:66px; padding-bottom:18px; }
.cnt-badge{ position:absolute; top:5px; right:6px; min-width:20px; padding:1px 5px; border-radius:6px; background:rgb(var(--copper-rgb)/.9); color:#1b1208; font-family:var(--font-mono); font-size:10px; font-weight:700; }
.cnt-tminus{ -webkit-appearance:none; appearance:none; cursor:pointer; position:absolute; left:6px; bottom:6px; width:26px; height:22px; border-radius:6px; background:var(--surface-well); border:1px solid var(--card-line); color:var(--text-dim); font-family:var(--font-mono); font-size:15px; font-weight:700; line-height:1; display:grid; place-items:center; }
.cnt-tminus:hover{ color:var(--copper-light); border-color:rgb(var(--copper-rgb)/.5); }

/* the running total — the only money on screen while a count is blind */
.cnt-tot{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-top:14px; padding:12px 14px; border-radius:11px; background:var(--surface-well); border:1px solid var(--card-line); }
.cnt-tot-l{ font-family:var(--font-mono); font-size:9px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--text-faint); }
.cnt-tot-v{ font-family:var(--font-mono); font-size:24px; font-weight:600; color:var(--text); }

/* ── B4 table service — guests at the table, and the seat picker ────── */
/* The seat grid shares the table grid's layout: same tiles, same reach. */
#seatGrid{ display:grid; grid-template-columns:repeat(6,1fr); gap:8px; }
.tb-covers{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; padding:12px 14px; border-radius:11px; background:var(--surface-well); border:1px solid var(--card-line); }
.tb-covers .lbl{ margin:0; }
/* A seat badge on a line, in the course-badge idiom: mono, compact, tappable. */
.seatbadge{ -webkit-appearance:none; appearance:none; cursor:pointer; flex-shrink:0; height:22px; min-width:26px; padding:0 7px; border-radius:6px; background:var(--surface-well); border:1px solid var(--card-line); color:var(--text-faint); font-family:var(--font-mono); font-size:10px; font-weight:700; letter-spacing:.04em; display:inline-grid; place-items:center; transition:.12s; }
.seatbadge:hover{ color:var(--copper-light); border-color:rgb(var(--copper-rgb)/.5); }
.seatbadge.set{ background:rgb(var(--copper-rgb)/.14); border-color:rgb(var(--copper-rgb)/.5); color:var(--copper-light); }

/* Allergy flag above the ticket (Customers layer). Red, not copper: this is the one
   strip on the sale screen that is a warning rather than an offer, and it renders
   whether or not the venue runs loyalty at all. */
.allergybar{ display:flex; align-items:center; gap:9px; padding:9px 12px; border-radius:9px; margin-bottom:10px; background:rgb(var(--red-rgb)/.10); border:1px solid rgb(var(--red-rgb)/.42); color:var(--red); }
.allergybar svg{ width:16px; height:16px; flex-shrink:0; }
.allergybar span{ font-family:var(--font-mono); font-size:11px; letter-spacing:.02em; }
.allergybar b{ text-transform:uppercase; letter-spacing:.1em; font-size:9.5px; margin-right:6px; }
