/* ============================================================
   Holeshot v2 — POS Checkout styles.

   LOOK (owner direction, 2026-10-20, comments 60de987b + dfb88642):
   a bright, clean, full-screen retail POS — not a dashboard and not
   an engineering demo. Darkhorse navy + a restrained gold accent,
   generous space, few borders, few shadows.

   READABILITY IS THE POINT (owner direction dfb88642 — "optimize the
   front-desk POS for older eyes and infrequent operators"):

     --text-min   16px   ordinary operational text (was 13px)
     --font-label 18px   important labels and line-item values
     --font-value 20px   money values in the order summary
     --font-total 44px   Amount due / Total — the dominant figure
     --tap        48px   every tappable control
     --main       56px   primary controls (tender, checkout)

   Those are floors, not targets: the 13px floor is gone on purpose.

   LAYOUT: the merchandise area is the work surface (left); the order
   summary is a persistent panel on the RIGHT (owner, dfb88642 — the
   earlier left-rail note in 60de987b is superseded). In portrait the
   rail becomes a sticky bottom bar: Amount due stays on screen at all
   times, and the full order opens in a sheet.

   Accessibility stays acceptance, not polish (spec §13 check 30):
   every control ≥48px, primary ≥56px, text ≥16px, no sideways scroll,
   visible focus, and status never carried by color alone.
   ============================================================ */

:root {
  /* surfaces */
  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #e9eef4;

  /* ink */
  --ink: #0f1b26;
  --ink-2: #44566a;
  --ink-3: #5c6f83;

  /* lines */
  --line: #d9e1ea;
  --line-2: #c2cedb;

  /* Darkhorse accent */
  --brand: #14395b;
  --brand-2: #1d5891;
  --brand-ink: #0b2438;
  --brand-wash: #eaf1f8;
  --gold: #8a6a1f;
  --gold-soft: #f4ead2;

  /* status — every one is used with an icon and a word, never alone */
  --ok: #14663c;
  --ok-wash: #e6f3ec;
  --warn: #8a5300;
  --warn-wash: #fbf1de;
  --bad: #a8261d;
  --bad-wash: #fbeae8;
  --info: #14548f;
  --info-wash: #e8f0f8;

  /* floors */
  --tap: 48px;
  --main: 56px;
  --text-min: 16px;
  --font-op: 16px;
  --font-label: 18px;
  --font-value: 20px;
  --font-total: 44px;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(15, 27, 38, 0.06);
  --shadow-2: 0 6px 20px rgba(15, 27, 38, 0.10);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html {
  /* No sideways scroll (check 30). This rule is on the document
     element on purpose: an overflow on the BODY makes the body a
     scroll container, which silently breaks `position: sticky` — and a
     sticky order rail is what keeps the amount due on screen while
     the merchandise list scrolls. */
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--font-op)/1.45 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-family: "Archivo", "Manrope", system-ui, sans-serif; margin: 0 0 8px; line-height: 1.2; }

button, input, select, textarea { font: inherit; color: var(--ink); }

button {
  background: var(--surface);
  border: 2px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  min-height: var(--tap);
  min-width: var(--tap);
  cursor: pointer;
  text-align: left;
  font-size: var(--font-op);
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 4px solid var(--brand-2);
  outline-offset: 2px;
}

button:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

/* ---- buttons ---------------------------------------------------------- */

.btn { display: inline-block; text-align: center; }
.btn-full { width: 100%; }

/* The one strong action on a surface. */
.btn-gold,
.btn-primary {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  font-weight: 700;
  min-height: var(--main);
  font-size: var(--font-label);
}
.btn-gold:disabled, .btn-primary:disabled { background: var(--surface-3); color: var(--ink-3); border-color: var(--line); }

/* A peer of the primary action — same size, lighter fill. */
.btn-secondary {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--brand-2);
  font-weight: 700;
  min-height: var(--main);
  font-size: var(--font-label);
}

.btn-quiet {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-2);
  font-weight: 600;
  min-height: var(--tap);
}

.btn.selected, .selected {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 2px var(--brand);
  background: var(--brand-wash);
}

.on { border-color: var(--brand); color: var(--brand); font-weight: 700; background: var(--brand-wash); }
.muted { color: var(--ink-2); }
.small { min-height: var(--tap); padding: 8px 14px; font-size: var(--font-op); }
.small-note { font-size: var(--text-min); color: var(--ink-2); margin: 6px 0; }
.lead { font-size: var(--font-label); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.hidden { display: none !important; }

.skiplink {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #ffffff; padding: 12px 18px; font-weight: 700;
  border-radius: 0 0 12px 0;
}
.skiplink:focus { left: 0; }

/* ---- chrome ----------------------------------------------------------- */

.proto-banner {
  width: 100%; text-align: center; background: var(--warn-wash); color: var(--warn);
  font-weight: 700; font-size: var(--text-min); padding: 4px; border-bottom: 1px solid var(--line);
}

/* Slim top bar — brand, store, station, and the work actions only.
   Admin/system detail (role switching, faults) lives in the QA
   harness at the bottom, not in the cashier's primary view. */
.topbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.topbar .logo { font-family: "Archivo", sans-serif; font-weight: 900; font-size: 20px; color: var(--brand-ink); letter-spacing: 0.2px; }
.topbar .logo em { color: var(--gold); font-style: normal; }
.topbar .spacer { flex: 1 1 auto; }
.chip {
  background: var(--surface-3); border-radius: 999px; padding: 5px 14px;
  font-size: var(--text-min); font-weight: 700; color: var(--ink-2); white-space: nowrap;
}
.chip-gold { background: var(--brand-wash); color: var(--brand); }
.badge { background: var(--brand); color: #ffffff; border-radius: 999px; padding: 1px 10px; font-size: var(--text-min); font-weight: 800; margin-left: 8px; }

/* The status strip: where a confirmation lands when no sheet is open.
   It is in the flow, so it can never cover a control. */
.toast-host { min-height: 0; display: flex; align-items: center; padding: 0 16px; }
.toast-host:empty { display: none; }
.toast {
  display: block; width: 100%; background: var(--brand-wash); color: var(--brand-ink);
  border-left: 6px solid var(--brand); font-weight: 700; font-size: var(--font-label);
  padding: 12px 16px; border-radius: var(--radius-sm); margin: 8px 0;
  pointer-events: none; /* never intercepts the next tap */
}
.toast-in-sheet { display: block; width: 100%; border-radius: var(--radius-sm); margin: 0 0 14px; }

/* ---- layout ----------------------------------------------------------- */

.app { display: grid; grid-template-columns: minmax(0, 1fr); }
.main { padding: 16px; min-width: 0; min-height: 60vh; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.repair-checkout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 1400px; margin: 0 auto; }
.repair-summary, .repair-payment { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.repair-payment { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.repair-payment h2, .repair-payment p { margin: 0; }
.repair-amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.repair-entry { display: flex; gap: 8px; }
.repair-entry input { min-width: 0; flex: 1; font-size: var(--font-op); }
body.repair-screen { padding-bottom: 0; }
body.repair-screen .app { grid-template-columns: minmax(0, 1fr); }
body.repair-screen .order-rail, body.repair-screen .orderbar-host { display: none; }
@media (min-width: 850px) {
  .repair-checkout { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr); align-items: start; }
}
.section-title { font-size: 22px; margin: 4px 0 2px; color: var(--brand-ink); }

/* Landscape and desktop: the order summary is a persistent panel on
   the RIGHT of the merchandise area. */
@media (min-width: 1024px) {
  .app { grid-template-columns: minmax(0, 1fr) clamp(360px, 31vw, 460px); }
  .main { grid-column: 1; }
  .order-rail {
    grid-column: 2; border-left: 1px solid var(--line); background: var(--surface);
    /* The order summary stays in view while the merchandise list scrolls:
       the amount due must never be the thing that leaves the screen. */
    position: sticky; top: 0; align-self: start;
    max-height: 100vh; overflow: auto;
  }
  .orderbar-host { display: none; }
}

/* Portrait: no room for a side rail. The order summary becomes a
   fixed bottom bar — Amount due stays on screen at all times, and
   the full order opens in a sheet. */
@media (max-width: 1023px) {
  .order-rail { display: none; }
  .orderbar-host {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .orderbar { position: static; box-shadow: 0 -4px 18px rgba(15, 27, 38, 0.12); }
  /* Keep the last row of the merchandise list clear of the bar. */
  body { padding-bottom: 170px; }
}

/* ---- merchandise area ------------------------------------------------- */

.catalog-bar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-bottom: 16px;
}
.scanbtn {
  display: inline-flex; align-items: center; gap: 10px; flex: 0 1 auto;
  min-height: var(--main); padding: 10px 20px; font-size: var(--font-label);
  font-weight: 700; background: var(--brand-wash); color: var(--brand); border-color: var(--brand-2);
}
.scanbtn .scanicon { display: inline-flex; width: 24px; height: 24px; }
.scanbtn .scanicon svg { width: 24px; height: 24px; }

.depttabs {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
/* The department tabs are PRIMARY navigation: they take the 56px main
   floor, not the 48px tap floor (DHI-272 #4 — Rance's beta review).
   This is a floor, and it holds in iPad portrait and landscape. */
.depttab {
  flex: 0 0 auto; /* never squash a tab label — the strip scrolls instead */
  min-height: var(--main); padding: 12px 22px; white-space: nowrap;
  font-size: var(--font-label); font-weight: 700; color: var(--brand-ink);
  background: var(--surface); border: 2px solid var(--line-2); border-radius: 999px;
}
.depttab[aria-selected="true"] { background: var(--brand); color: #ffffff; border-color: var(--brand); }

/* ---- product grid ----------------------------------------------------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
@media (min-width: 1400px) { .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }

.tile {
  min-height: 132px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between;
  gap: 8px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 12px; text-align: left; box-shadow: var(--shadow-1);
}
.tile:active { border-color: var(--brand); }
.tile .nm { font-weight: 700; font-size: var(--font-label); line-height: 1.25; }
.tile .pr { color: var(--brand-ink); font-weight: 800; font-size: 22px; }
.tile .pr.small { font-size: var(--font-min, var(--text-min)); font-weight: 600; color: var(--ink-2); }
.tile-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tile.fav { background: var(--surface); }
.tile.dept { min-height: 108px; justify-content: flex-start; gap: 10px; }
.tile.dept .nm { font-size: 20px; }

/* Product thumbnail — a real photo when one is supplied, otherwise a
   designed category mark. Never a bare text label. */
.thumb {
  width: 100%; height: 92px; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-3); display: flex; align-items: center; justify-content: center;
  margin-bottom: 2px;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb svg { width: 54px; height: 54px; }
.thumb-dept svg { width: 40px; height: 40px; }

.stock { font-size: var(--text-min); font-weight: 700; }
.s-green { color: var(--ok); }
.s-amber { color: var(--warn); }
.s-red { color: var(--bad); }

.crumbs { display: flex; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; align-items: center; }
/* Back and the crumb labels keep the 48px tap floor explicitly
   (DHI-272 #4) — the .small class already carries it, and this rule
   pins it so a future edit cannot shave it. */
.crumbs button { min-height: var(--tap); font-weight: 700; }
.crumb { font-size: var(--font-op); }

/* ---- order summary (the persistent right rail) ------------------------- */

.order-rail { min-width: 0; }
.orderpanel {
  padding: 18px; background: var(--surface); min-height: 100%;
  display: flex; flex-direction: column; gap: 14px;
}
.orderpanel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.orderpanel-title { font-size: 24px; margin: 0; color: var(--brand-ink); }
.orderpanel-count { font-size: var(--font-op); font-weight: 700; color: var(--ink-2); }
.cart-empty { font-size: var(--font-label); color: var(--ink-2); margin: 8px 0; }

.orderlines { display: flex; flex-direction: column; gap: 10px; }
.cartline {
  display: flex; gap: 10px; align-items: center; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; flex-wrap: wrap;
}
.cartline-name {
  flex: 1 1 100px; background: transparent; border: none; padding: 4px 0;
  min-height: var(--tap); text-align: left; box-shadow: none; font-size: var(--font-label);
}
.cartline-name .nm { font-weight: 700; display: block; }
.cartline-name .small-note { display: block; margin: 2px 0 0; }
.stepper { display: flex; align-items: stretch; }
.stepper button { min-width: var(--tap); min-height: var(--tap); border-radius: var(--radius-sm) 0 0 var(--radius-sm); text-align: center; font-size: 22px; font-weight: 800; }
.stepper button + button { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-left: -2px; }
.stepper .qty {
  display: flex; align-items: center; justify-content: center; min-width: 52px;
  padding: 0 12px; background: var(--surface); border-top: 2px solid var(--line-2);
  border-bottom: 2px solid var(--line-2); font-weight: 800; font-size: var(--font-value);
}
.linetot { font-weight: 800; color: var(--brand-ink); min-width: 66px; text-align: right; font-size: var(--font-value); white-space: nowrap; }
.cart-remove { min-height: var(--tap); }
.cart-throwin { min-height: var(--tap); }
.cart-throwin-note, .cart-price-required { font-size: var(--font-op); font-weight: 700; }
.cart-throwin-note { color: var(--ok); }
.cart-price-required { margin: 0; color: var(--bad); }
.cart-undo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--brand-wash); border: 1px solid var(--brand); border-radius: var(--radius-sm); font-size: var(--font-op); font-weight: 700; }

.ordertotals { display: flex; flex-direction: column; gap: 6px; }
.totrow { display: flex; justify-content: space-between; gap: 12px; font-size: var(--font-label); }
.totrow b { font-size: var(--font-value); }
.totrow-big { font-size: var(--font-value); }

/* Amount due — the dominant figure. The label sits above the money
   so a 44px amount never crowds its own label in a narrow rail. */
.totbig {
  display: block;
  margin-top: 8px; padding: 14px 16px; background: var(--brand-wash);
  border: 2px solid var(--brand); border-radius: var(--radius);
}
.totbig-label { display: block; font-size: var(--font-label); font-weight: 700; color: var(--brand-ink); white-space: nowrap; }
.totbig-value { display: block; font-size: var(--font-total); font-weight: 900; color: var(--brand-ink); line-height: 1.05; letter-spacing: -0.5px; white-space: nowrap; }
/* Paid: the sale is recorded; nothing is due. */
.totbig-paid { background: var(--ok-wash); border-color: var(--ok); }
.totbig-paid .totbig-label, .totbig-paid .totbig-value { color: var(--ok); }
.counter-keypad { margin-top: 12px; }
.counter-keypad .keypad-pad { grid-template-columns: repeat(3, 1fr); margin-bottom: 10px; }
.grand { font-size: var(--font-total); font-weight: 900; color: var(--brand-ink); text-align: right; }
.grand small { display: block; font-size: var(--font-label); color: var(--ink-2); font-weight: 700; }

/* The three common tender choices, and nothing else, at full size. */
.tendergrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tendergrid .tender-3 { grid-column: 1 / -1; }
.tendergrid button {
  min-height: 64px; font-size: var(--font-label); font-weight: 700;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.cart-actions { gap: 10px; }
.cart-actions .btn { flex: 1 1 130px; text-align: center; }

/* ---- order bar (portrait) --------------------------------------------- */

.orderbar-host { z-index: 30; }
.orderbar {
  background: var(--surface);
  border-top: 2px solid var(--brand); box-shadow: 0 -4px 18px rgba(15, 27, 38, 0.10);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.orderbar-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.orderbar-total { display: flex; flex-direction: column; line-height: 1.05; }
.orderbar-label { font-size: var(--font-label); font-weight: 700; color: var(--ink-2); }
.orderbar-value { font-size: 40px; font-weight: 900; color: var(--brand-ink); }
.orderbar-view { min-height: var(--tap); font-weight: 700; }
.orderbar .tendergrid { grid-template-columns: repeat(3, 1fr); }
.orderbar .tendergrid .tender-3 { grid-column: auto; }

/* ---- sheets ----------------------------------------------------------- */

.sheet-host { position: relative; z-index: 40; }
.sheet-back { position: fixed; inset: 0; background: rgba(11, 36, 56, 0.42); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
@media (min-width: 900px) { .sheet-back { align-items: center; } }
.sheet {
  background: var(--surface); border: 2px solid var(--line); border-radius: 20px 20px 0 0;
  padding: 20px; width: 100%; max-width: 600px; max-height: 90vh; overflow: auto;
  box-shadow: var(--shadow-2);
}
@media (min-width: 900px) { .sheet { border-radius: 20px; } }
.sheet-wide { max-width: 880px; }
.sheet-center { text-align: center; }
.sheet-title { font-size: 26px; color: var(--brand-ink); padding-right: 120px; }
.sheet .closebtn { float: right; min-height: var(--tap); margin: -6px -6px 6px 8px; }
.sheet-body { clear: both; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.btnrow button { flex: 1 1 150px; text-align: center; }
.btnrow.small button { flex: 0 1 auto; }
.field { margin: 14px 0; }
.field-label { display: block; font-weight: 700; font-size: var(--font-label); margin-bottom: 6px; }
.field-input {
  width: 100%; min-height: var(--main); background: var(--surface); color: var(--ink);
  border: 2px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 14px; font-size: var(--font-label);
}
.field-hint { font-size: var(--text-min); color: var(--ink-2); margin: 6px 0 0; }
.field-error { font-size: var(--text-min); color: var(--bad); font-weight: 700; margin: 6px 0 0; }
.fieldset { border: 2px solid var(--line); border-radius: var(--radius-sm); margin: 12px 0; padding: 10px 12px; }
.legend { font-weight: 700; font-size: var(--font-label); padding: 0 6px; }
.consent { display: flex; gap: 12px; align-items: center; margin: 10px 0; font-size: var(--font-label); min-height: var(--tap); }
.consent input { width: 30px; height: 30px; accent-color: var(--brand); }
.big-inline { font-size: 22px; }
.done-line { font-size: var(--font-label); }
.still-due { font-size: 30px; font-weight: 800; color: var(--brand-ink); }
.screen-title { font-size: 28px; color: var(--brand-ink); }
.screen-sub { font-size: var(--font-label); color: var(--ink-2); margin: 0 0 12px; }

/* ---- tags / pills / messages ------------------------------------------ */

.tag {
  display: inline-block; font-size: var(--text-min); font-weight: 700;
  border-radius: 999px; padding: 2px 10px; margin: 4px 6px 0 0;
  background: var(--surface-3); color: var(--ink-2);
}
.t-wps { background: var(--info-wash); color: var(--info); }
.t-prepay { background: var(--warn-wash); color: var(--warn); }
.t-noprepay { background: var(--bad-wash); color: var(--bad); }
.t-paid { background: var(--ok-wash); color: var(--ok); }
.t-price { background: var(--gold-soft); color: var(--gold); }
.t-notinv { background: var(--surface-3); color: var(--ink-2); }
.t-backorder { background: var(--warn-wash); color: var(--warn); }
.t-rush { background: var(--bad-wash); color: var(--bad); }
.chip-inline { display: inline-block; font-size: var(--text-min); font-weight: 700; border: 1px dashed var(--line-2); color: var(--ink-2); border-radius: 8px; padding: 1px 8px; }

.msg { border: 2px solid var(--bad); background: var(--bad-wash); border-radius: var(--radius); padding: 14px; margin: 12px 0; }
/* An honest empty state — calm and neutral, never the error red
   (DHI-272 #5: an empty list is not an error; the §9 contract calls
   ERR-23 "an honest empty daily-PO state... not a POS refusal"). */
.empty {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2);
  border-radius: var(--radius); padding: 18px; margin: 12px 0;
  font-size: var(--font-label); text-align: center;
}
.msg p { margin: 6px 0; }
.msg-gold { border-color: var(--gold); background: var(--gold-soft); }
.msg-blue { border-color: var(--info); background: var(--info-wash); }
.msg-draft { border-color: var(--gold); background: var(--gold-soft); border-style: dashed; }
.banner { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius); padding: 14px; margin: 12px 0; }
.banner-bad { background: var(--bad-wash); border: 2px solid var(--bad); }
.banner-warn { background: var(--warn-wash); border: 2px solid var(--warn); }
.banner-ok { background: var(--ok-wash); border: 2px solid var(--ok); }
.banner-body { flex: 1; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 12px; font-size: var(--text-min); font-weight: 800; }
.pill .glyph { margin-right: 5px; }
.pill-ok { background: var(--ok-wash); color: var(--ok); }
.pill-warn { background: var(--warn-wash); color: var(--warn); }
.pill-bad { background: var(--bad-wash); color: var(--bad); }
.pill-info { background: var(--info-wash); color: var(--info); }
.pill-neutral { background: var(--surface-3); color: var(--ink-2); }
.pill-draft { background: var(--gold-soft); color: var(--gold); border: 1px dashed var(--gold); }

/* ---- cash ------------------------------------------------------------- */

/* Amount due at the top of the cash screen, change at the bottom —
   both impossible to miss. */
.dueblock {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: var(--brand-wash); border: 2px solid var(--brand);
  border-radius: var(--radius); margin: 4px 0 14px;
}
.dueblock-label { font-size: var(--font-label); font-weight: 700; color: var(--brand-ink); white-space: nowrap; }
.dueblock-value { font-size: 44px; font-weight: 900; color: var(--brand-ink); line-height: 1; min-width: 0; overflow-wrap: anywhere; }
.change {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--ok-wash); border: 3px solid var(--ok); border-radius: var(--radius);
  padding: 16px; margin: 16px 0; text-align: center;
}
.change-label { font-size: var(--font-label); font-weight: 800; color: var(--ok); letter-spacing: 0.06em; }
.change-value { font-size: 48px; font-weight: 900; color: var(--ok); line-height: 1; max-width: 100%; overflow-wrap: anywhere; }
.bigcash { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.bigcash button { min-width: 0; min-height: var(--main); text-align: center; font-size: var(--font-label); font-weight: 800; overflow-wrap: anywhere; }
.cashbtn:disabled { opacity: 0.45; }
.keypad { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 12px; margin: 14px 0; }
.keypad-display { font-size: 32px; font-weight: 900; color: var(--brand-ink); text-align: center; margin-bottom: 10px; }

/* ---- completed sales (recent sales + the archived-sale detail) ------- */

.salelist { display: flex; flex-direction: column; gap: 10px; }
.salerow {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  width: 100%; text-align: left; padding: 12px 14px; background: var(--surface);
  border: 2px solid var(--line); border-radius: var(--radius); min-height: var(--tap);
}
.salerow-main { display: flex; flex-direction: column; }
.salerow-receipt { font-weight: 800; font-size: var(--font-label); color: var(--brand-ink); min-width: 0; overflow-wrap: anywhere; }
.sheet-title, .receipt { overflow-wrap: anywhere; }
.salerow-when { font-size: var(--text-min); color: var(--ink-2); }
.salerow-total { font-size: var(--font-value); font-weight: 800; color: var(--brand-ink); text-align: right; }
.salerow-meta { font-size: var(--text-min); color: var(--ink-2); text-align: right; }
.salerow .pill { justify-self: end; }

.salelines { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.saleline { display: flex; justify-content: space-between; gap: 12px; font-size: var(--font-label); }
.saleline-name { font-weight: 600; }
.saleline-total { font-weight: 800; color: var(--brand-ink); white-space: nowrap; }

/* ---- the readable receipt (DHI-296) --------------------------------
   The full receipt a clerk can read back: lines, tax, the cash-
   rounding line, the amount actually collected, and the change due.
   A calm "paper" card, receipt-width, centred; every figure at the
   readability floors (labels ≥18px, values ≥20px), the collected
   amount dominant. */
.receipt {
  max-width: 540px; margin: 12px auto; padding: 14px 18px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius);
}
.receipt-store { text-align: center; font-size: var(--text-min); color: var(--ink-3); margin: 0 0 6px; }
.receipt-meta { text-align: center; font-size: var(--font-label); font-weight: 700; color: var(--brand-ink); margin: 0 0 4px; }
.receipt-customer { font-weight: 600; color: var(--ink-2); }
.receipt-divider { border: none; border-top: 2px dashed var(--line-2); margin: 12px 0; }
.receipt-lines { display: flex; flex-direction: column; gap: 10px; }
.receipt-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.receipt-line-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.receipt-line-name { font-size: var(--font-label); font-weight: 600; }
.receipt-line-detail { font-size: var(--text-min); color: var(--ink-3); }
.receipt-line-amount { font-size: var(--font-value); font-weight: 800; color: var(--brand-ink); white-space: nowrap; }
.receipt-totals, .receipt-tender { display: flex; flex-direction: column; gap: 4px; }
.receipt-trow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--font-label); padding: 2px 0; }
.receipt-trow b { font-size: var(--font-value); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* COLLECTED is the figure the drawer must agree with (DHI-291 #1). */
.receipt-trow.receipt-collected {
  border-top: 2px solid var(--line-2); margin-top: 6px; padding-top: 10px;
  font-size: var(--font-value); font-weight: 900; color: var(--brand-ink);
}
.receipt-trow.receipt-collected b { font-size: 32px; }
.receipt-trow.receipt-change { font-size: var(--font-value); font-weight: 800; color: var(--brand-ink); }
.receipt-trow.receipt-change b { font-size: 26px; }

/* ---- the helmet / return inspection ------------------------------- */

/* The guided eligibility checklist — a guided inspection, not a
   free-text judgement. */
.checklist {
  display: flex; flex-direction: column; gap: 6px; margin: 8px 0 14px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 12px;
}
.checkitem {
  display: flex; gap: 12px; align-items: flex-start; min-height: var(--tap);
  font-size: var(--font-op); line-height: 1.35; padding: 4px 0; cursor: pointer;
}
.checkitem input { width: 30px; height: 30px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--brand); }

/* The sticky action bar — the primary action and the running count
   stay on screen while a long checklist scrolls (DHI-126 F4). */
.sheet-actions {
  position: sticky; bottom: 0; z-index: 2;
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 12px 0 6px; margin-top: 10px;
}
.sheet-actions .action-count { font-size: var(--font-op); font-weight: 700; color: var(--ink-2); }
.sheet-actions .btn { flex: 0 0 auto; }

/* The sale-time acknowledgement for a helmet or a special order. */
.ack-note {
  display: block; flex: 1 0 100%; font-size: var(--text-min); color: var(--warn);
  font-weight: 700; margin: 6px 0 2px;
}

/* ---- WPS order / find -------------------------------------------------- */

.polist { display: flex; flex-direction: column; gap: 10px; }
.po { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.potab { width: 100%; border-collapse: collapse; font-size: var(--text-min); }
.potab td, .potab th { padding: 8px 6px; border-top: 1px solid var(--line); text-align: left; }
.paid { color: var(--ok); font-weight: 800; }
.notpaid { color: var(--bad); font-weight: 800; }
.find-results { display: flex; flex-direction: column; gap: 10px; }
.find-group { display: flex; flex-direction: column; gap: 8px; }

/* ---- ask guide --------------------------------------------------------- */

.guide-host { display: contents; }
.guide {
  position: fixed; inset: auto 0 0 0; max-height: 60vh; overflow: auto; z-index: 60;
  background: var(--surface); border-top: 2px solid var(--brand); padding: 16px;
  border-radius: 20px 20px 0 0; box-shadow: var(--shadow-2);
}
.guide-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.guide-title { font-size: 22px; color: var(--brand); margin: 0; }
.guide-answer { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; margin: 10px 0; }
.guide-answers { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 1024px) {
  /* Spec §13 check 28: the panel is 340px (DHI-285 #10 — it used to
     run ~380px). It docks BELOW the header: --guide-top is the live
     banner + top-bar height, measured by main.js on every render, so
     the panel can never cover the top-bar actions in either
     orientation, however the header wraps. */
  .guide { inset: var(--guide-top, 0px) 0 0 auto; width: 340px; max-height: none; height: auto; border-radius: 0; border-left: 1px solid var(--line); border-top: none; }
  /* DHI-288: the panel covers only 340px of the (wider) order rail, so
     while the guide is docked the rail is suppressed — its tab row used
     to peek out at the panel's left edge. visibility (not display) keeps
     the grid column, so the merchandise area never shifts; the switch-
     back tabs ride on the panel itself (renderGuide). */
  body.guide-open .order-rail { visibility: hidden; }
}
/* DHI-288: the panel's Order / Ask Guide tabs are the landscape/desktop
   switcher. Portrait keeps the bottom sheet's own ✕ Close. (The double
   class outranks the plain .tabrow display rule below.) */
@media (max-width: 1023px) {
  .tabrow.guide-tabs { display: none; }
}
.tabrow { display: flex; gap: 8px; padding: 12px 16px 0; }
/* …but inside the docked panel the row sits on the panel's own padding. */
.guide .tabrow { padding: 0 0 10px; }
.tab { border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.tab-on { border-color: var(--brand); color: var(--brand); font-weight: 800; }

/* ---- QA harness --------------------------------------------------------- */
/* Deliberately styled apart from the counter screens: dashed amber
   border, amber labels, its own section. */
.sim-host { padding: 0 16px 24px; }
.simdrawer { border: 2px dashed var(--gold); border-radius: var(--radius); padding: 10px 14px; background: var(--gold-soft); }
.simdetails summary { cursor: pointer; font-weight: 800; color: var(--gold); min-height: var(--tap); display: flex; align-items: center; }
.simbody { padding-top: 10px; }
.simbody .btnrow button { flex: 0 1 auto; }
.simbody .section-title { font-size: 19px; color: var(--gold); }

/* In-sheet QA disclosure (DHI-198, G-P2-13 §5c A7): test/reader-
   simulation controls inside a payment or find sheet are QA harness
   affordances, not cashier controls — same visual language as the
   TEST CONTROLS drawer (dashed amber border, amber label), collapsed
   by default and marked data-qa so the operator-surface checks skip it. */
.qadetails { border: 2px dashed var(--gold); border-radius: var(--radius); padding: 8px 12px; background: var(--gold-soft); margin-top: 12px; }
.qadetails summary { cursor: pointer; font-weight: 800; color: var(--gold); min-height: var(--tap); display: flex; align-items: center; font-size: var(--text-min); }

/* ---- preferences -------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media (forced-colors: active) {
  button, .tile, .orderpanel, .sheet, .receipt { border: 1px solid CanvasText; }
  .totbig, .dueblock, .change { border: 2px solid CanvasText; }
  .receipt-trow.receipt-collected { border-top: 2px solid CanvasText; }
}

/* ---- the front-desk actions (rev 11) ---------------------------------
   The three front-desk entries a cashier must find on the normal
   screen: find or add a customer, a completed sale, and a return.
   They sit at the top of the screen, plainly labelled, one tap. */

.frontactions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px; margin: 4px 0 6px;
}
.btn-frontaction {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 4px; min-height: 76px; padding: 12px 16px; text-align: left;
  background: var(--surface); border: 2px solid var(--brand-2); color: var(--brand-ink);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
}
.btn-frontaction .frontaction-title { font-size: var(--font-label); font-weight: 800; color: var(--brand-ink); }
.btn-frontaction .frontaction-hint { font-size: var(--text-min); font-weight: 500; color: var(--ink-2); }
.btn-frontaction:active { background: var(--brand-wash); }

.chip-build { font-variant-numeric: tabular-nums; letter-spacing: 0.2px; }

/* r26 live counter: the repair-order tile is a link styled as a tile. */
a.tile.tile-link, a.tile.tile-link:visited { color: inherit; text-decoration: none; }
a.tile.tile-link .nm { text-decoration: none; }
.counter-search { width: 100%; min-height: 56px; font-size: 18px; padding: 0 16px; border-radius: 12px; border: 2px solid #1d3b5c; }

/* r14 home: Ready for pickup card (finalized ROs waiting for payment) */
.pickup-card { display: flex; flex-direction: column; gap: 8px; }
.pickup-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pickup-row span { font-weight: 600; }

/* One-button tee picker: big choices, one step at a time */
.variant-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 12px 0; }
.variant-btn { min-height: 72px; font-size: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.variant-meta { font-size: 14px; font-weight: 500; }

/* One bound Deal owns the checkout surface; its accessories are not a retail cart. */
body.deal-payment-open #cart-host,body.deal-payment-open #orderbar-host{display:none}
body.deal-payment-open .app{grid-template-columns:minmax(0,1fr)}
.deal-counter-payment{max-width:1000px;margin:auto;width:100%;min-width:0}

.deal-disabled-reason { flex-basis:100%; display:block; color:#203c50; font-size:14px; line-height:1.4; }
.pickup-row.deal-not-ready { flex-wrap:wrap; }

.finance-closing { flex-basis:100%; width:100%; }
.finance-closing .btn { min-height:48px; white-space:normal; }
.pickup-row.finance-row { flex-wrap:wrap; }

/* ======================================================================
   PR #50 — Checkout only, matched to the Hercules/Lovable reference.

   This scope is deliberately attached by main.js only while the shared
   Checkout is open. Repair payment, Ask Guide, Deal Desk and every other
   screen keep their existing presentation. DHI remains the source of all
   tax, stock, RO-ledger and Helcim behavior.
   ====================================================================== */
body.checkout-screen {
  --bg: #171412;
  --surface: #211d1a;
  --surface-2: #29231f;
  --surface-3: #352d27;
  --ink: #f7f0e9;
  --ink-2: #bcaea3;
  --ink-3: #9b8d83;
  --line: #463a32;
  --line-2: #5a493e;
  --brand: #d85f2a;
  --brand-2: #f0783e;
  --brand-ink: #fff7f0;
  --brand-wash: #3b251c;
  --gold: #d85f2a;
  --gold-soft: #3b251c;
  --ok: #62b889;
  --ok-wash: #193329;
  --warn: #f1aa55;
  --warn-wash: #3a2918;
  --bad: #ff766d;
  --bad-wash: #3b211f;
  --info: #78aee8;
  --info-wash: #1d2d3e;
  --radius: 6px;
  --radius-sm: 6px;
  --shadow-1: none;
  --shadow-2: none;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.checkout-screen h1,
body.checkout-screen h2,
body.checkout-screen h3,
body.checkout-screen .checkout-title,
body.checkout-screen .totbig-value,
body.checkout-screen .orderbar-value {
  font-family: "Big Shoulders Display", "Arial Narrow", "Archivo", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .025em;
}

body.checkout-screen .linetot,
body.checkout-screen .totrow b,
body.checkout-screen .totbig-value,
body.checkout-screen .orderbar-value,
body.checkout-screen .ready-ro-number,
body.checkout-screen .ready-ro-balance,
body.checkout-screen .tile .pr,
body.checkout-screen .chip-build {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

body.checkout-screen .proto-banner {
  background: #241d19;
  border-color: var(--line);
  color: var(--ink-2);
}

body.checkout-screen .topbar {
  background: var(--surface);
  border-color: var(--line);
  padding: 10px 16px;
}
body.checkout-screen .topbar .logo,
body.checkout-screen .topbar .logo em { color: var(--ink); }
body.checkout-screen .topbar .logo em { color: var(--brand); }
body.checkout-screen .topbar button {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
  border-radius: var(--radius);
}
body.checkout-screen .chip { background: var(--surface-3); color: var(--ink-2); border-radius: var(--radius); }

body.checkout-screen .app { background: var(--bg); }
body.checkout-screen .main { padding: 16px; }
body.checkout-screen .catalog { gap: 24px; }

.checkout-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.checkout-page-head p { margin: 0; }
.checkout-eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.checkout-title {
  color: var(--ink);
  font-size: 36px;
  line-height: 1;
  margin: 4px 0 6px;
}
.workflow-subtitle { color: var(--ink-2); font-size: 16px; }
.checkout-utilities { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.checkout-mobile-customer { display: none; }

body.checkout-screen button,
body.checkout-screen input,
body.checkout-screen select,
body.checkout-screen textarea {
  border-radius: var(--radius);
  min-height: 44px;
}
body.checkout-screen button { box-shadow: none; }
body.checkout-screen .btn-primary,
body.checkout-screen .btn-gold {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
body.checkout-screen .btn-secondary,
body.checkout-screen .btn-quiet {
  background: var(--surface-2);
  border-color: var(--line-2);
  color: var(--ink);
}
body.checkout-screen button:focus-visible,
body.checkout-screen input:focus-visible {
  outline-color: var(--brand-2);
}

.checkout-search-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .55fr); gap: 12px; margin: 0; }
.barcode-field { display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: 8px; }
.barcode-add { font-size: 26px; padding: 0; text-align: center; }
body.checkout-screen .counter-search {
  min-height: 52px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 16px;
  padding: 0 14px;
}
body.checkout-screen .counter-search::placeholder { color: var(--ink-3); opacity: 1; }
body.checkout-screen .depttabs { gap: 8px; padding: 0 0 4px; }
body.checkout-screen .depttab {
  min-height: 44px;
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 14px;
}
body.checkout-screen .depttab[aria-selected="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.checkout-ready { display: flex; flex-direction: column; gap: 12px; }
.checkout-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.checkout-screen .section-title {
  color: var(--ink);
  font-size: 24px;
  margin: 0;
}
.checkout-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-2);
  font-weight: 800;
}
body.checkout-screen .pickup-card {
  gap: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
body.checkout-screen .checkout-ready-row {
  display: grid;
  grid-template-columns: minmax(84px, .5fr) minmax(180px, 1.5fr) minmax(90px, .55fr) 44px;
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}
body.checkout-screen .checkout-ready-row:last-child { border-bottom: 0; }
body.checkout-screen .checkout-ready-row:not(:disabled):hover { background: var(--surface-2); transform: translateY(-1px); }
.ready-ro-number { color: var(--brand-2); font-size: 14px; font-weight: 800; }
.ready-ro-person { display: flex; flex-direction: column; min-width: 0; }
.ready-ro-person b,
.ready-ro-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ready-ro-person b { font-size: 15px; }
.ready-ro-person small { color: var(--ink-2); font-size: 13px; }
.ready-ro-balance { color: var(--ink); font-size: 16px; font-weight: 800; text-align: right; }
.ready-ro-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 36px;
  height: 36px;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  color: var(--brand-2);
  font-size: 24px;
  line-height: 1;
}
.checkout-see-all { align-self: flex-start; }
.checkout-empty {
  padding: 16px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--ink-2);
}
.checkout-deals { padding: 12px; gap: 10px !important; }

body.checkout-screen .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
body.checkout-screen .tile {
  min-height: 132px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: none;
}
body.checkout-screen .tile:hover { border-color: var(--brand); transform: translateY(-1px); }
body.checkout-screen .tile .nm { color: var(--ink); font-size: 15px; }
body.checkout-screen .tile .pr { color: var(--brand-2); font-size: 18px; }
body.checkout-screen .thumb { background: var(--surface-3); border-radius: var(--radius); }

body.checkout-screen .order-rail {
  background: #12100f;
  border-color: var(--line);
}
body.checkout-screen .orderpanel {
  background: #12100f;
  color: var(--ink);
  gap: 16px;
  padding: 24px;
}
body.checkout-screen .orderpanel-title { color: var(--ink); font-size: 30px; }
body.checkout-screen .orderpanel-count,
body.checkout-screen .cart-empty { color: var(--ink-2); }
body.checkout-screen .cartline {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
body.checkout-screen .cartline-name,
body.checkout-screen .linetot,
body.checkout-screen .totbig-label,
body.checkout-screen .totbig-value { color: var(--ink); }
body.checkout-screen .stepper button,
body.checkout-screen .stepper .qty { background: var(--surface-2); border-color: var(--line-2); color: var(--ink); }
body.checkout-screen .ordertotals { gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
body.checkout-screen .totrow { color: var(--ink-2); }
body.checkout-screen .totrow b { color: var(--ink); text-align: right; }
body.checkout-screen .totbig {
  margin-top: 6px;
  padding: 16px;
  background: var(--brand-wash);
  border: 2px solid var(--brand);
  border-radius: var(--radius);
}
body.checkout-screen .totbig-label { color: var(--brand-2); text-transform: uppercase; }
body.checkout-screen .totbig-value { color: #fff; font-size: 44px; text-align: right; }
body.checkout-screen .tendergrid { grid-template-columns: 1fr 1fr; gap: 10px; }
body.checkout-screen .tendergrid .tender-3 { grid-column: 1 / -1; }
body.checkout-screen .tendergrid button { min-height: 56px; }

body.checkout-screen .orderbar {
  background: #12100f;
  border-color: var(--brand);
  box-shadow: none;
}
body.checkout-screen .orderbar-label { color: var(--ink-2); }
body.checkout-screen .orderbar-value { color: #fff; }

body.checkout-screen .sheet { background: var(--surface); border-color: var(--line); color: var(--ink); border-radius: var(--radius); }
body.checkout-screen .sheet-back { background: rgba(0, 0, 0, .68); }

@media (min-width: 1024px) {
  body.checkout-screen .app {
    grid-template-columns: minmax(0, 1fr) 360px;
    max-width: 1280px;
    margin: 0 auto;
  }
  body.checkout-screen .main { padding: 32px; }
  body.checkout-screen .order-rail { max-height: calc(100vh - 1px); }
  .checkout-title { font-size: 48px; }
}

@media (max-width: 700px) {
  .checkout-page-head { align-items: flex-start; flex-direction: column; }
  .checkout-utilities { justify-content: flex-start; }
  .checkout-search-row { grid-template-columns: 1fr; }
  body.checkout-screen .checkout-ready-row {
    grid-template-columns: minmax(70px, .5fr) minmax(0, 1.25fr) minmax(76px, .6fr) 36px;
    padding: 10px 8px;
  }
  .ready-ro-person b { font-size: 14px; }
  .ready-ro-person small { font-size: 12px; }
  .ready-ro-balance { font-size: 14px; }
  body.checkout-screen .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 1023px) {
  .checkout-mobile-customer { display: inline-block; }
}
