/* OpenPandora Shadow Mirror — v1.3 POS theme.
   Researched from Square POS (split screen + persistent ticket),
   Toast KDS (ticket cards, age/status color language), and Clover
   (status-labeled order list, tap-to-open detail). See
   pos-design-research.md in the build package. Light, high-contrast
   theme for bright kitchen light; big type; every touch target ≥48px.
   Same honest surfaces as before — only the presentation changed. */

:root {
  --ink: #111418;
  --ink-soft: #333c44;
  --muted: #5b656e;
  --line: #d5dbe0;
  --line-strong: #aeb8c0;
  --bg: #ffffff;
  --bg-alt: #eef1f3;
  --accent: #0b5fff;
  --accent-dark: #0848c4;
  --ok-bg: #e2f6e9;
  --ok-line: #37b24d;
  --ok-ink: #0d5c2a;
  --warn-bg: #fff3d6;
  --warn-line: #e8a13a;
  --warn-ink: #7a4d03;
  --bad-bg: #fde8e8;
  --bad-line: #e05252;
  --bad-ink: #8f1d1d;
  --radius: 14px;
  --max: 1560px;
}

* { box-sizing: border-box; }

/* POS type scale: 18px base (rem sizes below ride on this), so tickets
   read at arm's length and across a pass. */
html { font-size: 18px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg-alt);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
main.container { padding-top: 16px; }
h1 { font-size: 1.55rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 10px; }
h2 { font-size: 1.15rem; margin: 0; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.fine { font-size: 0.85rem; color: var(--ink-soft); }
.big { font-size: 2rem; font-weight: 700; margin: 0 0 4px; font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; }

/* ---------- POS top bar ---------- */
.pos-topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg); border-bottom: 2px solid var(--line-strong);
}
.topbar-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 64px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px;
}
.brand { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-sub { color: var(--accent); font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.clock {
  font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pill {
  display: inline-flex; align-items: center; min-height: 48px;
  border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 0.95rem;
  border: 2px solid var(--line-strong); background: var(--bg-alt); color: var(--ink-soft);
  white-space: nowrap;
}
.pill-printer.is-on { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.pill-printer.is-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.pill-printer.is-off { background: var(--bg-alt); border-color: var(--line-strong); color: var(--ink-soft); }
.btn-gear {
  appearance: none; min-height: 48px; border-radius: 999px; padding: 8px 16px;
  border: 2px solid var(--ink); background: var(--ink); color: #fff;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; white-space: nowrap;
}

/* ---------- LIVE status strip (the feed banner) ---------- */
.banner {
  display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 1.1rem; font-weight: 700;
}
.banner::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--muted);
}
.banner-ok { background: var(--ok-bg); color: var(--ok-ink); }
.banner-ok::before { background: var(--ok-line); }
.banner-off { background: var(--bad-bg); color: var(--bad-ink); }
.banner-off::before { background: var(--bad-line); }
.banner-unknown { background: var(--warn-bg); color: var(--warn-ink); }
.banner-unknown::before { background: var(--warn-line); }

.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 18px 0 26px; background: var(--bg); }

/* ---------- Toolbar / tabs ---------- */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin: 16px 0 8px;
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  appearance: none; border: 2px solid var(--line-strong); background: var(--bg);
  color: var(--ink-soft); border-radius: 12px; padding: 10px 18px;
  min-height: 52px; font-size: 1rem; font-weight: 650; cursor: pointer;
}
.tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.preview-toggle {
  font-size: 0.95rem; font-weight: 600; color: var(--ink-soft);
  display: inline-flex; gap: 10px; align-items: center; cursor: pointer;
  min-height: 48px; padding: 6px 4px;
}
.preview-toggle input { width: 28px; height: 28px; accent-color: var(--accent); flex: none; }
.preview-note {
  background: var(--warn-bg); border: 2px solid var(--warn-line); color: var(--warn-ink);
  border-radius: var(--radius); padding: 12px 16px; font-weight: 650;
}

/* ---------- Split layout: feed + ticket rail ---------- */
.pos-main {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px;
  gap: 18px; align-items: start;
}
#ticket-rail { position: sticky; top: 132px; }
.rail-card {
  background: var(--bg); border: 2px solid var(--line-strong);
  border-radius: var(--radius); padding: 18px;
  box-shadow: 0 4px 18px rgba(17, 20, 24, 0.10);
}
.rail-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 8px;
}

/* Ticket detail (the tapped order, POS-ticket style) */
.td-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.td-ago { margin-left: auto; font-weight: 700; color: var(--ink-soft); }
.td-id { font-size: 1.7rem; font-weight: 800; margin: 8px 0 2px; letter-spacing: -0.01em; }
.td-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }
.td-lines li { display: flex; align-items: baseline; gap: 8px; font-size: 1.06rem; padding: 9px 0; }
.line-price { margin-left: auto; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-totals { border-top: 2px dashed var(--line-strong); margin-top: 10px; padding-top: 10px; }
.td-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 3px 0; font-variant-numeric: tabular-nums;
}
.td-total-row { font-size: 1.25rem; font-weight: 700; }
.td-total { font-size: 2.1rem; font-weight: 800; }
.td-actions { display: grid; gap: 10px; margin-top: 14px; }
.btn-print-big {
  appearance: none; min-height: 56px; border-radius: 12px; padding: 12px 18px;
  font-size: 1.05rem; font-weight: 700; cursor: pointer;
  border: 2px solid var(--accent); background: var(--accent); color: #fff;
}
.btn-print-big.btn-print-secondary { background: var(--bg); color: var(--accent-dark); }

/* ---------- Views / cards ---------- */
.view { padding: 6px 0; }
.feed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 16px 0; }
.card {
  border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--bg); padding: 18px;
}

/* ---------- Order cards ---------- */
.order-list { display: grid; gap: 14px; margin-top: 10px; }
.order-card {
  border: 2px solid var(--line-strong); border-left: 10px solid var(--line-strong);
  border-radius: var(--radius); padding: 16px 18px; background: var(--bg);
  cursor: pointer;
}
.order-card.history-card { cursor: default; }
.order-card.age-warm { border-left-color: var(--warn-line); }
.order-card.age-hot { border-left-color: var(--bad-line); }
.order-card.is-selected {
  border-color: var(--accent); border-left-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 6px 20px rgba(11, 95, 255, 0.18);
}
.order-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.order-id { font-weight: 800; font-size: 1.25rem; }
.order-time { color: var(--muted); font-size: 0.92rem; }
.order-total {
  margin-left: auto; font-weight: 800; font-size: 1.7rem;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.src {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.03em;
  border-radius: 999px; padding: 6px 12px; border: 2px solid var(--line-strong);
  background: var(--bg-alt); color: var(--ink-soft); text-transform: uppercase;
  white-space: nowrap;
}
.src-doordash { background: #fdeeee; border-color: #f0b4b4; }
.src-uber-eats { background: #e9f7ee; border-color: #9fd8ae; }
.src-catapult { background: #fff3d6; border-color: #e8cf8a; }
.src-phone { background: #e8effe; border-color: #a9c2f5; }
.src-web { background: #efe8fd; border-color: #c4a9f5; }
.sample-chip {
  font-size: 0.8rem; font-weight: 800; border-radius: 999px; padding: 6px 12px;
  background: var(--warn-bg); border: 2px solid var(--warn-line); color: var(--warn-ink);
}
.order-lines { list-style: none; margin: 0; padding: 0; }
.order-lines li { padding: 7px 0; border-top: 1px dashed var(--line); font-size: 1.06rem; }
.order-lines li:first-child { border-top: none; }
.shorthand { font-weight: 800; color: var(--accent-dark); margin-right: 6px; }
.modifiers { color: var(--muted); font-size: 0.95rem; }
.order-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px;
}
.order-count { color: var(--muted); font-size: 0.9rem; font-weight: 600; margin-right: auto; }
.empty { color: var(--muted); padding: 18px 0; }

/* ---------- Founder tools (founder only) ---------- */
.setup-panel { margin-top: 16px; border-color: var(--warn-line); background: var(--warn-bg); }
.setup-panel code { font-size: 0.92em; }

/* ---------- Shadow printer ---------- */
.printer-panel { margin-top: 14px; }
.printer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.printer-head .fine { margin-bottom: 0; }
#printer-body { border-top: 1px dashed var(--line-strong); margin-top: 14px; padding-top: 6px; }
/* v1.6: the one big print button per slip — no menus, no toggles. */
.btn-passprnt-big {
  appearance: none; display: block; width: 100%; min-height: 64px;
  border-radius: 12px; padding: 14px 18px; margin: 12px 0;
  font-size: 1.2rem; font-weight: 800; cursor: pointer;
  border: 2px solid var(--accent); background: var(--accent); color: #fff;
}
.slip-actions { display: grid; gap: 10px; margin-top: 10px; }
.slip-actions .btn-passprnt-big { margin: 0; }
/* Browser-print fallback area: invisible on screen, and when the
   browser prints it is the ONLY thing on the paper. */
#print-area { display: none; }
@media print {
  body * { visibility: hidden; }
  #print-area, #print-area * { visibility: visible; }
  #print-area {
    display: block; position: absolute; inset: 0 auto auto 0;
    font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px;
  }
}
.ticket-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem; line-height: 1.35; white-space: pre;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; overflow-x: auto; max-width: 480px;
}
.btn-secondary {
  appearance: none; border: 2px solid var(--line-strong); background: var(--bg);
  color: var(--ink-soft); border-radius: 10px; padding: 10px 18px;
  min-height: 48px; font-size: 1rem; font-weight: 650; cursor: pointer;
}
.order-print {
  appearance: none; border: 2px solid var(--line-strong); background: var(--bg-alt);
  color: var(--ink); border-radius: 10px; padding: 10px 18px;
  min-height: 48px; font-size: 0.95rem; font-weight: 700; cursor: pointer;
}
.order-print:disabled { opacity: 0.55; cursor: default; }

/* ---------- Reconciliation form ---------- */
.recon-form { margin-top: 8px; max-width: 560px; }
.recon-form label { display: block; font-weight: 650; margin-bottom: 8px; }
.recon-row { display: flex; gap: 10px; flex-wrap: wrap; }
.recon-row input {
  flex: 1; min-width: 180px; min-height: 52px; padding: 10px 12px;
  border: 2px solid var(--line-strong); border-radius: 10px; font-size: 1rem;
}
.recon-row button, #count-save {
  appearance: none; border: 2px solid var(--accent); background: var(--accent);
  color: #fff; border-radius: 10px; padding: 10px 20px;
  min-height: 52px; font-size: 1rem; font-weight: 700; cursor: pointer;
}
.recon-row button:hover, #count-save:hover { background: var(--accent-dark); }
.recon-row button.btn-secondary {
  background: var(--bg); color: var(--ink-soft); border-color: var(--line-strong);
}
.diff-ok { color: var(--ok-ink); }
.diff-bad { color: var(--bad-ink); }

/* ---------- Blind-drop bill counter ---------- */
.bill-counter { margin-top: 14px; }
.denom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 8px; }
.denom-row label { display: block; font-weight: 650; font-size: 0.95rem; margin-bottom: 4px; }
.denom-row input {
  width: 100%; min-height: 52px; padding: 9px 10px;
  border: 2px solid var(--line-strong); border-radius: 10px; font-size: 1.05rem;
}

/* ---------- Backfill (founder tools) ---------- */
.backfill-box { margin-top: 16px; border-top: 1px dashed var(--warn-line); padding-top: 12px; }
.backfill-box select {
  min-height: 52px; padding: 10px 12px; border: 2px solid var(--line-strong);
  border-radius: 10px; font-size: 1rem; background: #fff;
}

/* ---------- Coupon + counter sign ---------- */
#coupon-box { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.coupon-flex { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin: 10px 0; }
#coupon-qr { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
#sign-box { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
#sign-qr { border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* ---------- Closing report + mid-day pull (v1.2.1) ---------- */
.midday-pull { max-width: 360px; margin-top: 12px; }
.midday-pull input {
  width: 100%; min-height: 52px; padding: 9px 10px;
  border: 2px solid var(--line-strong); border-radius: 10px; font-size: 1.05rem;
}
#closing-report-box { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; }
.report-text {
  width: 100%; box-sizing: border-box; margin: 8px 0 10px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.92rem;
  padding: 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-alt); color: inherit; resize: vertical;
}

/* ---------- Baseline tables & bars ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.data-table td { padding: 6px 2px; border-top: 1px dashed var(--line); }
.data-table tr:first-child td { border-top: none; }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 0.95rem; }
.bar-label { width: 38px; color: var(--muted); }
.bar-track { flex: 1; background: var(--bg-alt); border-radius: 4px; height: 14px; display: block; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.bar-value { width: 40px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- v1.4: ticket board + manager page ---------- */
/* The board is the working screen: plain black behind the tickets,
   white cards in the real-ticket format, nothing decorative. It only
   applies while the board view is up (body.board-on); the desk keeps
   the v1.3 light theme. */
body.board-on { background: #000; }
body.board-on main.container { max-width: none; padding: 10px 14px 26px; }
.btn-manager {
  appearance: none; min-height: 48px; border-radius: 999px; padding: 8px 20px;
  border: 2px solid var(--ink); background: #f5b301; color: #111418;
  font-weight: 800; font-size: 1rem; cursor: pointer; white-space: nowrap;
}
/* v1.7: back to the POS home screen (the app-grid front door). */
.btn-home {
  display: inline-flex; align-items: center; min-height: 48px; border-radius: 999px;
  padding: 8px 18px; border: 2px solid var(--ink); background: #fff; color: #111418;
  font-weight: 800; font-size: 1rem; text-decoration: none; white-space: nowrap;
}
/* v1.7: new-order flash (Settings switch). A plain bright pulse of
   the board's edge — visible across the kitchen, gone in 1.4s. */
@keyframes board-flash-new {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(245, 179, 1, 0); }
  25%, 75% { box-shadow: inset 0 0 0 10px rgba(245, 179, 1, 0.95); }
  50% { box-shadow: inset 0 0 0 2px rgba(245, 179, 1, 0.25); }
}
.board-view.flash-new { animation: board-flash-new 1.4s ease-in-out 1; }
@media (prefers-reduced-motion: reduce) {
  .board-view.flash-new { animation: none; }
}
.board-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.board-title { color: #fff; margin: 4px 0 10px; }
.board-updated { color: #9aa4ad; font-size: 0.95rem; margin: 0 0 10px; }
.board-row {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: start;
}
.board-empty { color: #9aa4ad; font-size: 1.2rem; padding: 30px 4px; }
.board-waiting {
  color: #fff; font-size: 1.5rem; font-weight: 800;
  margin: 16px 0 0; padding: 10px 4px;
}
.board-msg { color: #ffd34d; font-weight: 650; margin: 10px 0 0; min-height: 1.4em; }
/* CLEAR ALL TICKETS (v1.6.1): on the board itself, full-width and
   thumb-sized — findable in two seconds mid-rush. Armed = solid red. */
.clear-all-btn {
  display: block; width: 100%; margin: 10px 0 4px; padding: 16px 12px;
  font-size: 22px; font-weight: 800; letter-spacing: 1px;
  color: #ff6b5e; background: #1a0505; border: 3px solid #ff6b5e; border-radius: 12px;
  cursor: pointer;
}
.clear-all-btn.is-armed { background: #d92c1c; color: #fff; border-color: #fff; }
.clear-all-btn:disabled { opacity: 0.55; cursor: wait; }
/* RESET ORDER (v2.0): sits under CLEAR ALL, same full-width thumb
   size, calmer colors — it only undoes a display arrangement. It
   exists only while an arrangement does; the [hidden] rule must
   beat the display rule below or it would squat on the board. */
.reset-order-btn {
  display: block; width: 100%; margin: 10px 0 4px; padding: 14px 12px;
  font-size: 20px; font-weight: 800; letter-spacing: 1px;
  color: #ffd34d; background: #191204; border: 3px solid #ffd34d; border-radius: 12px;
  cursor: pointer;
}
.reset-order-btn[hidden] { display: none; }
/* UNDO bar (v1.7.1): same full-width thumb size as CLEAR ALL, solid
   green — a recovery, not a warning. It exists only inside its
   five-second window; the [hidden] rule must beat the width rule
   below or the bar would squat on the board permanently. */
.undo-clear-btn {
  width: 100%; margin: 10px 0 4px; padding: 16px 12px;
  font-size: 22px; font-weight: 800; letter-spacing: 1px;
  color: #fff; background: #2b8a3e; border: 3px solid #37b24d; border-radius: 12px;
  cursor: pointer;
}
.undo-clear-btn[hidden] { display: none; }
.undo-clear-btn:disabled { opacity: 0.55; cursor: wait; }

/* One white ticket, formatted like the paper ones on the rail. */
.ticket-card {
  background: #fff; color: #111; border-radius: 6px;
  padding: 16px 16px 14px; font-size: 1.02rem; line-height: 1.45;
  display: flex; flex-direction: column; gap: 0;
}
.ticket-card.is-ready { outline: 5px solid #37b24d; outline-offset: -5px; }
.tc-order { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.tc-type { font-size: 1.25rem; font-weight: 650; }
.tc-when, .tc-sent, .tc-readyby { color: #222; }
.tc-readyby { font-weight: 800; }
.tc-readyby.is-past { color: #c22525; }
.tc-name { font-size: 1.15rem; }
.tc-server { font-weight: 800; }
.tc-rule { border: none; border-top: 2px dashed #111; margin: 8px 0; }
.tc-item { font-weight: 600; }
.tc-mod { padding-left: 2.2em; color: #222; }
.tc-cloverid { color: #333; font-size: 0.92rem; }
.tc-sample {
  font-weight: 800; color: #7a4d03; background: #fff3d6;
  border: 2px solid #e8a13a; border-radius: 6px; padding: 2px 8px;
  align-self: flex-start; margin: 4px 0;
}
.tc-timer {
  margin-top: 12px; font-size: 2.4rem; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums; text-align: center;
}
.tc-timer.warn { color: #b97a06; }
.tc-timer.hot { color: #c22525; }
.tc-btn {
  appearance: none; margin-top: 10px; width: 100%; min-height: 72px;
  border-radius: 10px; border: 3px solid #0d5c2a; cursor: pointer;
  background: #37b24d; color: #fff;
  font-size: 1.5rem; font-weight: 800; letter-spacing: 0.02em;
}
.tc-btn.is-pickup { background: #d92b2b; border-color: #8f1d1d; }
.tc-btn:disabled { opacity: 0.55; cursor: default; }
/* MOVE UP / MOVE DOWN (v2.0): the cook-arranged line. Two big
   side-by-side tap targets under the print button, outlined in the
   ticket's own ink so they read on the white card; an end button
   greys in place instead of vanishing, so the row never resizes. */
.tc-move-row { display: flex; gap: 8px; margin-top: 10px; }
.tc-move {
  appearance: none; flex: 1 1 0; min-height: 56px;
  border-radius: 10px; border: 3px solid #111; cursor: pointer;
  background: #fff; color: #111;
  font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em;
}
.tc-move:disabled { opacity: 0.3; cursor: default; }

/* Manager page: six huge buttons, one obvious way back. */
.manager-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.btn-back-board {
  appearance: none; min-height: 64px; border-radius: 12px; padding: 10px 26px;
  border: 2px solid var(--ink); background: var(--ink); color: #fff;
  font-size: 1.2rem; font-weight: 800; cursor: pointer;
}
.manager-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.manager-btn {
  appearance: none; min-height: 150px; border-radius: 16px; cursor: pointer;
  border: 3px solid #0d2440; background: #10263f; color: #fff;
  font-size: 1.5rem; font-weight: 800;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.manager-ico { font-size: 2.2rem; line-height: 1; }
#manager-note { margin-top: 14px; font-size: 1rem; }

/* ---------- Narrow screens: rail becomes a slide-over ---------- */
@media (max-width: 1100px) {
  .pos-main { grid-template-columns: minmax(0, 1fr); }
  #ticket-rail {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 40;
    width: min(430px, 94vw);
    transform: translateX(105%); transition: transform 0.22s ease;
    overflow-y: auto; padding: 12px;
  }
  body.has-selection #ticket-rail {
    transform: none;
    filter: drop-shadow(-8px 0 24px rgba(17, 20, 24, 0.25));
  }
}

@media (max-width: 640px) {
  .brand { font-size: 1.15rem; }
  .clock { font-size: 1.05rem; }
  .order-total { font-size: 1.45rem; }
  .banner { font-size: 1rem; padding: 10px 16px; }
}
