/* The front desk (2026-09-02 redesign).

   A counter screen, not a document. Three columns fill the viewport, nothing
   scrolls as a page, and every target is at least 44px so it works with a
   thumb on an iPad in landscape as well as with a mouse on the counter's
   monitor. Tokens come from theme.css; nothing here picks its own colours
   except the tier bands, which exist to be told apart at a glance. */

.pos-body {
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}

.pos-shell {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr) 24rem;
  height: 100dvh;
  min-height: 0;
}
@media (max-width: 1100px) {
  .pos-shell { grid-template-columns: 4.75rem minmax(0, 1fr) 21rem; }
}

/* ---------- the rail ---------- */

.pos-rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface-2);
  border-right: 1px solid var(--edge);
}
.pos-rail-who {
  padding: 0.5rem 0.35rem 0.6rem;
  text-align: center;
  border-bottom: 1px solid var(--edge);
}
.pos-rail-staff {
  font-size: 0.58rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 3px;
  padding: 0.15rem 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pos-rail-clock {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pos-rail-menus { flex: 1; min-height: 0; overflow-y: auto; }
.pos-rail-foot { border-top: 1px solid var(--edge); }
.pos-rail-foot form { margin: 0; }

.pos-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  min-height: 3.9rem;
  padding: 0.5rem 0.2rem;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.62rem;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.pos-rail-item span { display: block; padding-inline: 0.1rem; }
.pos-rail-item:hover { background: var(--surface); color: var(--ink); }
.pos-rail-item.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.pos-rail-out { color: var(--danger); }
.pos-icon { display: block; }

/* ---------- the middle ---------- */

.pos-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.pos-topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--edge);
}
.pos-find { position: relative; flex: 1; min-width: 0; }
.pos-find-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  pointer-events: none;
}
.pos-find-box {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.8rem 0.5rem 2.4rem;
  background: var(--surface-2);
  border: 1px solid var(--edge-strong);
  border-radius: calc(var(--radius) - 2px);
  color: var(--ink);
  font-size: 0.95rem;
}
.pos-find-box::placeholder { color: var(--ink-faint); }
.pos-find-box:focus { border-color: var(--accent-deep); outline: none; }
.pos-daypick { display: flex; align-items: center; gap: 0.4rem; }
.pos-daypick .field { min-height: 2.75rem; }

/* The dropdown of results hangs over the tiles rather than pushing them. */
.pos-find-results {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  top: calc(100% - 0.2rem);
  z-index: 30;
  display: block;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--edge-strong);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.pos-find-results:empty { display: none; }
.pos-find-results .pos-results { padding: 0.6rem 0.75rem; }

.pos-menu-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.9rem;
}

/* ---------- start-time strip ---------- */

.pos-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}
.pos-strip form { margin: 0; }
.pos-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  min-height: 2.9rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.pos-chip:hover { background: var(--surface-2); }
.pos-chip.is-on { background: var(--accent); color: var(--accent-ink); }
.pos-chip.is-on .pos-chip-free { color: var(--accent-ink); opacity: 0.75; }
.pos-chip.is-full { opacity: 0.35; cursor: not-allowed; }
.pos-chip-free { font-family: var(--font-text); font-weight: 400; font-size: 0.62rem; color: var(--ink-faint); }
.pos-chip-page { border-color: var(--edge-strong); background: var(--surface-2); padding-inline: 0.85rem; }
.pos-strip-none { font-size: 0.78rem; color: var(--ink-faint); align-self: center; }
.pos-strip-note { margin: -0.4rem 0 0.9rem; font-size: 0.75rem; color: var(--ink-muted); }
.pos-chip-parked, .pos-chip-wait {
  flex-direction: row;
  min-height: 2.25rem;
  padding: 0.3rem 0.65rem;
  font-family: var(--font-text);
  font-size: 0.72rem;
  font-weight: 500;
  border-color: var(--edge-strong);
  background: var(--surface-2);
  color: var(--ink);
}
.pos-chip-wait { border-color: var(--accent-edge); background: var(--accent-soft); color: var(--accent); }

/* ---------- tiles ---------- */

.pos-section { margin-bottom: 1.1rem; }
.pos-tiles {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 700px) { .pos-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .pos-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1166px) { .pos-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pos-tiles form { margin: 0; display: flex; }

.pos-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  min-height: 5.75rem;
  padding: 0.75rem 0.7rem 0.55rem;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-top: 3px solid var(--edge-strong);
  border-radius: calc(var(--radius) - 2px);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 120ms ease, transform 120ms ease;
}
.pos-tile:hover { border-color: var(--edge-strong); transform: translateY(-1px); }
.pos-tile:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.pos-tile-name { font-weight: 600; font-size: 0.85rem; line-height: 1.2; }
.pos-tile-sub { font-size: 0.68rem; color: var(--ink-faint); line-height: 1.25; }
.pos-tile-foot {
  margin-top: auto;
  padding-top: 0.4rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
}
.pos-tile-price { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); }
.pos-tile-free { font-size: 0.7rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.pos-tile-badge {
  align-self: flex-start;
  margin-bottom: 0.2rem;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-edge);
  color: var(--accent);
  font-size: 0.53rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Tier bands. Staff read the colour before the name, so one colour means one
   thing everywhere: Elite red, Pro amber, junior blue, memberships orange,
   parties purple. Rigs have no tier column yet (ROLLER audit gap 1), so the
   tier is read off the product name; see Admin::PosHelper#pos_tier. */
.pos-tile.tier-elite { border-top-color: #e4574c; }
.pos-tile.tier-pro { border-top-color: var(--warm); }
.pos-tile.tier-junior { border-top-color: var(--wet); }
.pos-tile.tier-membership { border-top-color: #e08a3c; }
.pos-tile.tier-party { border-top-color: #a78bfa; }
.pos-tile.tier-package { border-top-color: var(--pb); }
.pos-tile.tier-rig { border-top-color: var(--accent-deep); }
.pos-tile.tier-merch { border-top-color: var(--edge-strong); }

/* ---------- forms in the middle ---------- */

.pos-form-card {
  max-width: 34rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
}
.pos-amounts { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pos-amount {
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--edge-strong);
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}
.pos-amount:hover { border-color: var(--accent-deep); }

/* ---------- the sale ---------- */

.pos-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--edge);
  background: var(--surface);
}
.pos-panel-inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 0.75rem;
  gap: 0.6rem;
}
.pos-flash:empty { display: none; }
.pos-note {
  padding: 0.5rem 0.65rem;
  border-radius: calc(var(--radius) - 3px);
  border: 1px solid var(--edge-strong);
  background: var(--surface-2);
  font-size: 0.78rem;
  line-height: 1.35;
}
.pos-note.is-good { border-color: rgba(52, 211, 153, 0.35); background: var(--pb-soft); color: var(--pb); }
.pos-note.is-bad { border-color: rgba(248, 113, 113, 0.35); background: var(--danger-soft); color: var(--danger); }
.pos-note.is-warn { border-color: var(--accent-edge); background: var(--accent-soft); color: var(--accent); }

.pos-parked { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.pos-parked form { margin: 0; }

.pos-cart, .pos-pay { display: flex; flex-direction: column; min-height: 0; flex: 1; gap: 0.55rem; }

.pos-wide-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem;
  border: 1px solid var(--edge-strong);
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.pos-wide-ghost:hover { border-color: var(--accent-deep); }
.pos-wide-ghost.is-off { color: var(--ink-faint); cursor: not-allowed; }

.pos-wide-blue {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: var(--wet);
  color: #06202e;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.pos-wide-blue:hover { filter: brightness(1.08); }

.pos-guest { position: relative; }
.pos-guest-head { display: flex; align-items: flex-start; gap: 0.4rem; }
.pos-guest-name { font-weight: 600; font-size: 1rem; display: flex; align-items: center; gap: 0.35rem; }
.pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--pb);
  color: #05261b;
  font-size: 0.6rem;
  font-weight: 700;
}
.pos-guest-chips { margin-top: 0.25rem; display: flex; flex-wrap: wrap; gap: 0.2rem; }
.pos-guest-form { margin-top: 0.5rem; }
.pos-kebab {
  margin-left: auto;
  width: 2.25rem;
  min-height: 2.25rem;
  border: 0;
  border-radius: calc(var(--radius) - 4px);
  background: transparent;
  color: var(--ink-muted);
  font-size: 1.1rem;
  cursor: pointer;
}
.pos-kebab:hover { background: var(--surface-2); color: var(--ink); }
.pos-kebab-menu {
  position: absolute;
  right: 0;
  top: 2.4rem;
  z-index: 20;
  min-width: 10rem;
  padding: 0.25rem;
  background: var(--surface-2);
  border: 1px solid var(--edge-strong);
  border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.pos-kebab-menu form { margin: 0; }
.pos-kebab-item {
  display: block;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 0.6rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.8rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.pos-kebab-item:hover { background: var(--surface); }

.pos-lines { flex: 1; min-height: 0; overflow-y: auto; border-top: 1px solid var(--edge); padding-top: 0.4rem; }
.pos-lines-day {
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 0.3rem;
}
.pos-empty { padding: 2.5rem 0; text-align: center; font-size: 0.85rem; color: var(--ink-faint); }
.pos-line {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto 1.9rem;
  align-items: start;
  gap: 0.35rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--edge);
}
.pos-line form { margin: 0; }
.pos-line-qty { position: relative; }
.pos-qty-n {
  width: 100%;
  min-height: 2rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}
.pos-qty-n:hover { background: var(--surface-2); }
.pos-qty-steppers {
  position: absolute;
  left: 0;
  top: 2.1rem;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.2rem;
  background: var(--surface-2);
  border: 1px solid var(--edge-strong);
  border-radius: 6px;
}
.pos-qty-btn {
  width: 2.2rem;
  min-height: 2.2rem;
  border: 0;
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
}
.pos-qty-btn:hover { background: var(--accent); color: var(--accent-ink); }
.pos-line-name { font-weight: 600; font-size: 0.82rem; line-height: 1.25; }
.pos-line-sub { font-size: 0.66rem; color: var(--ink-faint); }
.pos-line-money { text-align: right; }
.pos-line-money .laptime { font-size: 0.9rem; }
.pos-line-when { display: block; font-size: 0.63rem; color: var(--ink-faint); }
.pos-line-bin {
  width: 1.9rem;
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
}
.pos-line-bin:hover { color: var(--danger); background: var(--danger-soft); }
.pos-line-off {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.3rem;
  padding: 0.3rem 0.45rem;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 5px;
  background: var(--pb-soft);
  font-size: 0.7rem;
  color: var(--ink-muted);
}
.pos-tick { color: var(--pb); font-weight: 700; }

.pos-cart-foot { border-top: 1px solid var(--edge); padding-top: 0.55rem; }
.pos-cart-foot form { margin: 0; }
.pos-quiet-row {
  width: 100%;
  min-height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
}
.pos-quiet-row:hover { color: var(--ink); }
.pos-inline-form { margin-top: 0.45rem; }

.pos-totals { margin-top: 0.55rem; font-size: 0.82rem; }
.pos-totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; padding: 0.1rem 0; color: var(--ink-muted); }
.pos-totals .is-off { color: var(--pb); }
.pos-totals .is-total { padding-top: 0.3rem; font-size: 1rem; font-weight: 600; color: var(--ink); }
.pos-totals .is-total .laptime { font-size: 1.2rem; }
.pos-total-toggle { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.pos-discount-why { display: block; font-size: 0.68rem; color: var(--ink-faint); }

/* Disclosure panels: these rules set display, and `hidden` is only one class
   too, so closed has to be said with more specificity than open. */
.pos-qty-steppers.hidden,
.pos-discount-why.hidden { display: none; }

.pos-pay-row { display: flex; align-items: stretch; gap: 0.4rem; margin-top: 0.6rem; }
.pos-pay-row > div { position: relative; }
.pos-park {
  width: 3rem;
  min-height: 3.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--edge-strong);
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
}
.pos-park:hover { border-color: var(--accent-deep); }
.pos-park-form {
  position: absolute;
  left: 0;
  bottom: 3.4rem;
  z-index: 20;
  width: 17rem;
  padding: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--edge-strong);
  border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.pos-continue {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 3.1rem;
  padding: 0.5rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}
.pos-continue:hover { background: var(--accent-hover); }
.pos-clear {
  margin-top: 0.45rem;
  border: 0;
  background: transparent;
  color: var(--ink-faint);
  font-size: 0.7rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.pos-clear:hover { color: var(--danger); }

/* ---------- pay ---------- */

.pos-pay-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.pos-back { color: var(--ink-muted); font-size: 0.8rem; text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; }
.pos-back:hover { color: var(--ink); }
.pos-owing { text-align: right; }
.pos-owing .laptime { display: block; font-size: 1.6rem; color: var(--accent); }
.pos-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; border-bottom: 1px solid var(--edge); padding-bottom: 0.45rem; }
.pos-tab {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 3px);
  color: var(--ink-muted);
  font-size: 0.78rem;
  text-decoration: none;
}
.pos-tab:hover { background: var(--surface-2); color: var(--ink); }
.pos-tab.is-on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pos-tabbody { flex: 1; min-height: 0; overflow-y: auto; }
.pos-tabbody form { margin: 0; }
.pos-hint { font-size: 0.72rem; color: var(--ink-faint); line-height: 1.4; margin-top: 0.35rem; }
.pos-inset { margin-top: 0.8rem; padding: 0.6rem; border: 1px solid var(--edge); border-radius: calc(var(--radius) - 3px); background: var(--surface-2); }
.pos-notes { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.6rem; }
.pos-note-btn {
  min-height: 2.75rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--edge-strong);
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}
.pos-note-btn:hover { border-color: var(--accent-deep); }
.pos-tender label { display: block; margin-bottom: 0.2rem; }
.pos-change { margin: 0.35rem 0; font-size: 0.85rem; color: var(--ink-muted); }
.pos-change.text-\[var\(--danger\)\] { color: var(--danger); }
.pos-do {
  width: 100%;
  min-height: 3.1rem;
  margin-top: 0.5rem;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.pos-do:hover { background: var(--accent-hover); }
.pos-do:disabled { opacity: 0.4; cursor: not-allowed; }
.pos-waiting { font-weight: 600; }
.pos-waiting-sub { margin-top: 0.25rem; font-size: 0.75rem; color: var(--ink-muted); }

/* A card attempt Stripe never settled, seen from the cash/gift-card/comp tabs:
   the one thing standing between the counter and another way to pay. */
.pos-pending-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--danger);
  border-radius: calc(var(--radius) - 3px);
  background: var(--surface-2);
}
.pos-pending-card p { margin: 0; font-size: 0.78rem; font-weight: 600; }
.pos-pending-card form { margin: 0; }

/* ---------- sale complete ---------- */

.pos-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 5, 7, 0.72);
}
.pos-modal-card {
  width: min(30rem, 100%);
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--edge-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.pos-modal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.pos-modal-head .laptime { color: var(--accent); }
.pos-modal-lines { margin-top: 0.9rem; border-top: 1px solid var(--edge); padding-top: 0.6rem; font-size: 0.85rem; }
.pos-modal-lines > div { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.2rem 0; color: var(--ink-muted); }
.pos-modal-lines .is-change { color: var(--accent); }
.pos-modal-lines .is-receipt { border-top: 1px dashed var(--edge); margin-top: 0.35rem; padding-top: 0.4rem; }
.pos-modal-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pos-modal-actions form { margin: 0; }
.pos-modal-actions .btn { min-height: 2.75rem; }

/* ---------- the More sheet ---------- */

.pos-sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; }
.pos-sheet[hidden] { display: none; }
.pos-sheet-scrim { position: absolute; inset: 0; border: 0; background: rgba(4, 5, 7, 0.65); cursor: pointer; }
.pos-sheet-card {
  position: relative;
  width: 100%;
  max-height: 70vh;
  overflow-y: auto;
  padding: 1rem 1.25rem 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--edge-strong);
  border-radius: var(--radius) var(--radius) 0 0;
}
.pos-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pos-sheet-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
}
.pos-sheet-link {
  display: flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--edge-strong);
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.85rem;
  text-decoration: none;
}
.pos-sheet-link:hover { border-color: var(--accent-deep); }
.pos-sheet-state { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* ---------- search results and capacity lists ---------- */

.pos-results .eyebrow { margin-top: 0.7rem; }
.pos-results .eyebrow:first-child { margin-top: 0; }
.pos-result-list { margin-top: 0.3rem; }
.pos-result {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--edge);
}
.pos-result form { margin: 0; margin-left: auto; }
.pos-result > a.btn, .pos-result > .chip { margin-left: auto; }
.pos-result form + .chip, .pos-result .chip + form { margin-left: 0.35rem; }
.pos-result.is-done { opacity: 0.6; }
.pos-result-name { font-weight: 600; font-size: 0.85rem; }
.pos-result-sub { font-size: 0.68rem; color: var(--ink-faint); }

.pos-waiting-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-bottom: 0.75rem; }
.pos-capacity-lists {
  margin-top: 1rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1000px) { .pos-capacity-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
