/* =========================================================
   LAWAGON POS — PROTOTYPE STYLES
   Static design review. No build step, no JavaScript.
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* `hidden` has to win. Component rules like `.banner { display: flex }` are
   more specific than the user-agent [hidden] rule, so a hidden element would
   otherwise still lay out. */
[hidden] {
  display: none !important;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--night);
  color: var(--cream);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  line-height: 1.15;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}
::selection {
  background: var(--amber);
  color: var(--night);
}

/* Disabled was styled on .btn only, so a dead .opt, .key or .chip still looked
   pressable. One rule covers every control that can be turned off. */
.btn[disabled],
.btn:disabled,
.opt[disabled],
.opt:disabled,
.key[disabled],
.key:disabled,
.qtybtn[disabled],
.qtybtn:disabled,
.iconbtn[disabled],
.iconbtn:disabled,
.chip[aria-disabled='true'] {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}
.input[disabled],
.input:disabled,
.input[readonly] {
  opacity: 0.75;
  cursor: default;
}
.input[readonly]:focus {
  border-color: var(--hairline);
}

/* The theme switch itself is off-screen; the label is the control. */
.theme-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* =========================================================
   SHELL
========================================================= */

.shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}
@media (min-width: 940px) {
  .shell {
    grid-template-columns: var(--rail) 1fr;
  }
}

/* ---------- side rail ---------- */
.rail {
  background: var(--night-soft);
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1rem 0.85rem 1.1rem;
}
@media (min-width: 940px) {
  .rail {
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow-y: auto;
  }
}
/* Below the breakpoint the rail stacks above the page. Left full height it
   pushed the actual work a screen and a half down, so it becomes a horizontal
   strip that scrolls instead. */
@media (max-width: 939px) {
  .rail {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.6rem 0.8rem;
    scrollbar-width: none;
    /* Without this the rail sizes to its content and takes the page with it. */
    min-width: 0;
    max-width: 100vw;
  }
  .rail::-webkit-scrollbar {
    display: none;
  }
  .rail .navgroup {
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
  }
  .rail .grouplabel {
    display: none;
  }
  .rail .navlink {
    white-space: nowrap;
  }
  .rail .brand .bsub {
    display: none;
  }
  .railfoot {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 0;
    padding-top: 0;
  }
  .railfoot .btn {
    white-space: nowrap;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.25rem 0.45rem 0;
}
.brand svg {
  width: 36px;
  height: 36px;
  flex: none;
  color: var(--cream);
}
.brand .bname {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.95rem;
  line-height: 1;
}
.brand .bsub {
  font-family: var(--display);
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.navgroup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.navgroup > .grouplabel {
  font-family: var(--display);
  font-size: 0.56rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted-dim);
  padding: 0.55rem 0.6rem 0.3rem;
}

.navlink {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: var(--tap);
  padding: 0 0.7rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  transition:
    background-color 0.16s,
    color 0.16s;
}
.navlink:hover {
  background: var(--surface);
  color: var(--cream);
}
.navlink[aria-current='page'] {
  background: var(--amber-wash);
  color: var(--amber);
  font-weight: 600;
}
.navlink svg {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: 0.9;
}
.navlink .tail {
  margin-left: auto;
}
.navlink.is-locked {
  opacity: 0.42;
  cursor: not-allowed;
}

.railfoot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--hairline);
}

.whoami {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.3rem 0.55rem;
}
.avatar {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.76rem;
  background: var(--tone, var(--amber));
  color: #0b0a08;
}
.whoami .wname {
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.2;
}
.whoami .wrole {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- main ---------- */
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem var(--pad);
  border-bottom: 1px solid var(--hairline);
  background: var(--night);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar h1 {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}
.topbar .sub {
  font-size: 0.78rem;
  color: var(--muted);
}
.topbar .actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page {
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  flex: 1;
  min-width: 0;
}

/* =========================================================
   CONTROLS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap);
  padding: 0 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--cream);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.16s,
    border-color 0.16s,
    color 0.16s;
}
.btn:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.btn--primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #0b0a08;
}
.btn--primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0b0a08;
}
.btn--go {
  background: var(--go);
  border-color: var(--go);
  color: #07110a;
}
.btn--go:hover {
  filter: brightness(1.1);
  color: #07110a;
}
.btn--danger {
  background: transparent;
  border-color: var(--stop);
  color: var(--stop);
}
.btn--danger:hover {
  background: var(--stop-wash);
  color: var(--stop);
}
.btn--ghost {
  background: transparent;
}
.btn--sm {
  min-height: 34px;
  padding: 0 0.7rem;
  font-size: 0.68rem;
}
.btn--block {
  width: 100%;
}
.btn--lg {
  min-height: 54px;
  font-size: 0.92rem;
}
.btn svg {
  width: 16px;
  height: 16px;
}

.iconbtn {
  display: inline-grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.iconbtn:hover {
  color: var(--amber);
  border-color: var(--amber);
}
.iconbtn svg {
  width: 18px;
  height: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.field > label,
.label {
  font-family: var(--display);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.input {
  width: 100%;
  min-height: var(--tap);
  padding: 0.55rem 0.8rem;
  background: var(--night);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--cream);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.16s;
}
.input:focus {
  outline: none;
  border-color: var(--amber);
}
.input::placeholder {
  color: var(--muted-dim);
}

/* =========================================================
   SURFACES
========================================================= */

.card {
  background: var(--night-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}
.card__head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.card__head h2 {
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.card__head .spacer {
  margin-left: auto;
}

/* start, not stretch — a card should be as tall as what is in it, rather than
   padded out to match whatever sits beside it. */
/* A grid or flex item defaults to min-width:auto, so it refuses to shrink
   below its content — one 520px table then pushed the whole page sideways
   instead of scrolling inside its own wrapper. */
.grid {
  display: grid;
  gap: 0.9rem;
  align-items: start;
}
.grid > * {
  min-width: 0;
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
}
.grid--wide {
  grid-template-columns: 1fr;
}
@media (min-width: 1180px) {
  .grid--wide {
    grid-template-columns: 1.45fr 1fr;
  }
}

.row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.row--between {
  justify-content: space-between;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 0;
}

/* stat tile */
.stat {
  background: var(--night-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 0.95rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat__label {
  font-family: var(--display);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat__value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.65rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat__foot {
  font-size: 0.75rem;
  color: var(--muted);
}

/* badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.badge--plain::before {
  display: none;
}
.badge--go {
  color: var(--go);
  background: var(--go-wash);
}
.badge--wait {
  color: var(--wait);
  background: var(--wait-wash);
}
.badge--stop {
  color: var(--stop);
  background: var(--stop-wash);
}
.badge--amber {
  color: var(--amber);
  background: var(--amber-wash);
}
.badge--muted {
  color: var(--muted);
}

.pill {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--amber);
  color: #0b0a08;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
}
.pill--quiet {
  background: var(--hairline);
  color: var(--muted);
}

/* =========================================================
   TABLES
========================================================= */

.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  /* A shadow on the right edge while there is more table to scroll to — on a
     phone there is no scrollbar to give the game away. */
  background:
    linear-gradient(to right, var(--night-soft) 30%, transparent) left / 24px 100% no-repeat,
    linear-gradient(to left, var(--night-soft) 30%, transparent) right / 24px 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.4), transparent) left / 12px 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.4), transparent) right / 12px 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}
table.tbl {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
table.tbl th,
table.tbl td {
  text-align: left;
  padding: 0.58rem 0.9rem;
  font-size: 0.84rem;
}
table.tbl thead th {
  background: var(--night-soft);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--display);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
table.tbl tbody tr + tr td {
  border-top: 1px solid var(--hairline-soft);
}
table.tbl tbody tr:hover td {
  background: var(--night-soft);
}
table.tbl .right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
table.tbl td.nw {
  white-space: nowrap;
}
/* An items list is the one column worth giving room to; without a floor it
   collapses to the narrowest word and wraps four lines deep. */
table.tbl td.wide,
table.tbl th.wide {
  min-width: 13rem;
}
table.tbl td.mono {
  font-family: var(--mono);
  font-size: 0.77rem;
  white-space: nowrap; /* "6:46 AM" is one thing, not two lines */
}

/* =========================================================
   QUEUE TICKETS
========================================================= */

.queue {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
}
.ticket {
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--tone, var(--hairline));
  border-radius: var(--radius-lg);
  background: var(--night-soft);
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.ticket__top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.ticket__no {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
}
.ticket__spot {
  font-size: 0.74rem;
  color: var(--muted);
}
.ticket__lines {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.83rem;
}
.ticket__lines .q {
  font-family: var(--mono);
  color: var(--amber);
  margin-right: 0.3rem;
}
.ticket__note {
  font-size: 0.75rem;
  color: var(--wait);
  border-left: 2px solid var(--wait);
  padding-left: 0.5rem;
}

/* =========================================================
   CHARTS — hand-drawn, no library
========================================================= */

.heat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.heatrow {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.5rem;
  align-items: center;
}
.heatrow > .hlabel {
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--muted);
  text-align: right;
}
.heatcells {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
}
.heatcell {
  height: 22px;
  border-radius: 3px;
  background: var(--hairline-soft);
}
.heatfoot {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.5rem;
  margin-top: 2px;
}
.heatfoot .hticks {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  font-family: var(--mono);
  font-size: 0.56rem;
  color: var(--muted-dim);
  text-align: center;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.bar {
  display: grid;
  grid-template-columns: minmax(6rem, 8.5rem) 1fr minmax(6.5rem, max-content);
  gap: 0.7rem;
  align-items: center;
  font-size: 0.82rem;
}
.bar > :first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar__track {
  display: block;
  height: 9px;
  background: var(--hairline-soft);
  border-radius: 999px;
  overflow: hidden;
}
/* block, not inline — an inline span ignores width and height, which leaves
   every bar rendering as an empty track. */
.bar__fill {
  display: block;
  height: 100%;
  background: var(--amber);
  border-radius: 999px;
}
.bar__fill--go {
  background: var(--go);
}
.bar__fill--wait {
  background: var(--wait);
}
.bar__val {
  text-align: right;
  white-space: nowrap;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.78rem;
}
@media (max-width: 560px) {
  .bar {
    grid-template-columns: 1fr 3.6rem;
  }
  .bar__track {
    grid-column: 1 / -1;
    order: 3;
  }
}

.spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 84px;
}
/* A column grows to share the row but never past a sensible width — one
   trading day should read as one bar, not as a page-wide slab. */
.spark__col {
  flex: 1 1 0;
  max-width: 72px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}
.spark__bar {
  background: var(--amber-wash);
  border-top: 2px solid var(--amber);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
}
.spark__col[data-emph='true'] .spark__bar {
  background: var(--amber);
  border-color: var(--gold);
}
.sparkfoot {
  display: flex;
  gap: 4px;
  font-family: var(--mono);
  font-size: 0.56rem;
  color: var(--muted-dim);
  margin-top: 4px;
}
.sparkfoot span {
  flex: 1;
  text-align: center;
}

/* donut-ish split bar for payment mix */
.splitbar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--hairline-soft);
}
.splitbar span {
  display: block;
  height: 100%;
}

/* =========================================================
   NOTICES
========================================================= */

.notice {
  border-left: 2px solid var(--amber);
  padding: 0.4rem 0 0.4rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.notice b {
  color: var(--cream);
  font-weight: 600;
}
.notice--stop {
  border-left-color: var(--stop);
}
.notice--go {
  border-left-color: var(--go);
}
.notice--wait {
  border-left-color: var(--wait);
}
.notice--amber {
  border-left-color: var(--amber);
}
.notice--muted {
  border-left-color: var(--muted-dim);
}

.banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem var(--pad);
  font-size: 0.82rem;
  font-weight: 500;
  border-bottom: 1px solid;
}
.banner--stop {
  background: var(--stop-wash);
  border-color: var(--stop);
  color: var(--stop);
}
.banner--amber {
  background: var(--amber-wash);
  border-color: var(--amber);
  color: var(--amber);
}
.banner .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.banner .tail {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
}

/* =========================================================
   LOGIN
========================================================= */

.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(72% 90% at 50% 0%, rgba(232, 163, 61, 0.11) 0%, transparent 62%),
    var(--night);
}
:root:has(#theme-day:checked) .login {
  background:
    radial-gradient(72% 90% at 50% 0%, rgba(156, 97, 20, 0.09) 0%, transparent 62%), var(--night);
}

.login__box {
  width: min(430px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-items: center;
}
.login__box .mark {
  width: 104px;
  height: 104px;
  color: var(--cream);
}
.login__lockup {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.login__lockup .wordmark {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.75rem;
  letter-spacing: 0.13em;
  line-height: 1;
}
.login__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--night-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
}
.login__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.rolepick {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rolebtn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 60px;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--night-soft);
  transition:
    border-color 0.16s,
    background-color 0.16s,
    transform 0.12s;
}
.rolebtn:hover {
  border-color: var(--amber);
  background: var(--surface);
  transform: translateY(-1px);
}
.rolebtn .rname {
  font-weight: 600;
  font-size: 0.93rem;
}
.rolebtn .rmeta {
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.rolebtn .rgo {
  margin-left: auto;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.rolebtn .rgo svg {
  width: 18px;
  height: 18px;
}

.pinpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}
.pinkey {
  min-height: 52px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pinkey:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.pindots {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
}
.pindot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--muted);
}
.pindot[data-on='true'] {
  background: var(--amber);
  border-color: var(--amber);
}

/* =========================================================
   MISC
========================================================= */

.muted {
  color: var(--muted);
}
.small {
  font-size: 0.8rem;
}
.tiny {
  font-size: 0.72rem;
}
.right {
  text-align: right;
}
.amber {
  color: var(--amber);
}
.go {
  color: var(--go);
}
.stop {
  color: var(--stop);
}
.wait {
  color: var(--wait);
}
.num {
  font-variant-numeric: tabular-nums;
}
.divider {
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 0;
}

.proto {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-dim);
  border: 1px dashed var(--hairline);
  border-radius: 4px;
  padding: 0.12rem 0.42rem;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
  padding: 0.3rem 0;
}
.kv + .kv {
  border-top: 1px solid var(--hairline-soft);
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.dblist {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.dbrow {
  background: var(--night-soft);
  padding: 0.7rem 0.9rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.83rem;
}
.dbrow .dbname {
  font-family: var(--mono);
  color: var(--cream);
}
.dbrow .dbrows {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

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

/* =========================================================
   MODALS — :target driven, so they work with no JavaScript.
   Close links point at #! which matches nothing, so the modal
   closes without the page jumping to the top.
========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 1rem;
}
.modal:target {
  display: grid;
}
.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 2, 0.74);
  backdrop-filter: blur(3px);
}
:root:has(#theme-day:checked) .modal__scrim {
  background: rgba(35, 32, 26, 0.45);
}
.modal__panel {
  position: relative;
  background: var(--night-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  width: min(520px, 100%);
  max-height: 88dvh;
  overflow-y: auto;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
}
.modal__panel--wide {
  width: min(680px, 100%);
}
.modal__head {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.modal__head h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.modal__head .spacer {
  margin-left: auto;
}
.modal__body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.modal__foot {
  padding: 0.9rem 1.2rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.modal__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  color: var(--muted);
}
.modal__close:hover {
  color: var(--stop);
  border-color: var(--stop);
}
.modal__close svg {
  width: 16px;
  height: 16px;
}

/* =========================================================
   TILL
========================================================= */

.till {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
.till > * {
  min-width: 0;
}
@media (min-width: 1080px) {
  .till {
    grid-template-columns: 1fr 22.5rem;
  }
}

.sectionbar {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex: none;
}
.chip:hover {
  color: var(--cream);
  border-color: var(--muted);
}
.chip[aria-current='true'] {
  background: var(--amber-wash);
  border-color: var(--amber);
  color: var(--amber);
}

.itemgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  gap: 0.65rem;
}
.itembtn {
  position: relative;
  min-height: 94px;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--night-soft);
  color: var(--cream);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition:
    border-color 0.15s,
    background-color 0.15s,
    transform 0.1s;
}
.itembtn:hover {
  border-color: var(--amber);
  background: var(--surface);
}
.itembtn:active {
  transform: scale(0.985);
}
.itembtn .nm {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
}
.itembtn .pr {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.83rem;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.itembtn .flag {
  position: absolute;
  top: 6px;
  right: 6px;
}
.itembtn.is-out {
  opacity: 0.4;
  border-style: dashed;
}
.itembtn.is-out .pr {
  color: var(--muted);
}

/* cart */
.cart {
  background: var(--night-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}
@media (min-width: 1080px) {
  .cart {
    position: sticky;
    top: 5.2rem;
  }
}
.cart__head {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cart__body {
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cart__foot {
  border-top: 1px solid var(--hairline);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cartline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius);
}
.cartline:hover {
  background: var(--surface);
}
.cartline .cl-name {
  font-size: 0.87rem;
  font-weight: 500;
}
.cartline .cl-amt {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.cartline .cl-meta {
  grid-column: 1 / -1;
  font-size: 0.73rem;
  color: var(--muted);
}
.cartline .cl-qty {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.25rem;
}
.qtybtn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1;
}
.qtybtn:hover {
  color: var(--amber);
  border-color: var(--amber);
}
.qtyval {
  min-width: 28px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.cl-drop {
  margin-left: auto;
  color: var(--muted-dim);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
}
.cl-drop:hover {
  color: var(--stop);
}
.cl-drop svg {
  width: 14px;
  height: 14px;
}

.totals {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.85rem;
}
.totals .t-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}
.totals .t-row .amt {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.totals .t-row.grand {
  color: var(--cream);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  padding-top: 0.45rem;
  margin-top: 0.2rem;
  border-top: 1px solid var(--hairline);
}
.totals .t-row.grand .amt {
  font-family: var(--display);
}

/* =========================================================
   OPTION PICKERS / SEGMENTED
========================================================= */

.optrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.opt {
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.opt:hover {
  border-color: var(--muted);
  color: var(--cream);
}
.opt[aria-pressed='true'] {
  border-color: var(--amber);
  background: var(--amber-wash);
  color: var(--amber);
  font-weight: 600;
}
.opt .delta {
  font-family: var(--mono);
  font-size: 0.72rem;
}

/* =========================================================
   KEYPAD
========================================================= */

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}
.keypad .key {
  min-height: 54px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.keypad .key:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.keypad .key--wide {
  grid-column: span 2;
}
.amountbox {
  background: var(--night);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.amountbox .lbl {
  font-family: var(--display);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.amountbox .val {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   QR POSTER
========================================================= */

.posters {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  align-items: start;
}
.poster {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--night-soft);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}
.qrbox {
  width: 148px;
  height: 148px;
  background: #f4ede1;
  border-radius: 8px;
  padding: 9px;
  display: grid;
  place-items: center;
}
.qrbox svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* =========================================================
   TOGGLE SWITCH (availability)
========================================================= */

.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: var(--tap);
  cursor: pointer;
  font-size: 0.83rem;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .track {
  width: 42px;
  height: 23px;
  border-radius: 999px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  position: relative;
  flex: none;
  transition: background-color 0.16s;
}
.switch .track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--muted);
  transition:
    transform 0.16s,
    background-color 0.16s;
}
.switch input:checked + .track {
  background: var(--go-wash);
  border-color: var(--go);
}
.switch input:checked + .track::after {
  transform: translateX(19px);
  background: var(--go);
}
.switch input:focus-visible + .track {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* =========================================================
   QUEUE COLUMNS
========================================================= */

.lanes > * {
  min-width: 0;
}
.lanes {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: start;
}
.lane {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}
.lane__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.15rem 0.55rem;
  border-bottom: 2px solid var(--tone, var(--hairline));
}
.lane__head h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tone, var(--muted));
}
.lane__head .n {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.lane__empty {
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  padding: 1.4rem 0.8rem;
  text-align: center;
  color: var(--muted-dim);
  font-size: 0.8rem;
}

/* The corner flag is absolutely positioned, so the name needs room to not run
   underneath it. */
.itembtn:has(.flag) .nm {
  padding-right: 4.4rem;
}

/* =========================================================
   RECEIPTS
========================================================= */

.paper {
  max-width: 320px;
  margin-inline: auto;
  background: #f4ede1;
  color: #0b0a08;
  border-radius: 8px;
  padding: 1.3rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}
.paper .r-center { text-align: center; }
.paper .r-small { font-size: 0.68rem; }
.paper .r-dim { opacity: 0.6; }
.paper .r-rule { border-top: 1px dashed #0b0a08; opacity: 0.4; margin: 0.35rem 0; }
.paper .r-line { display: flex; justify-content: space-between; gap: 0.8rem; }
.paper .r-sub { font-size: 0.67rem; opacity: 0.65; padding-left: 0.9rem; }
.paper .r-total { font-weight: 600; font-size: 0.95rem; }
.paper .r-affirm { font-family: var(--script); font-size: 1.2rem; line-height: 1.25; }
.paper .r-strong { font-weight: 700; letter-spacing: 0.04em; }
/* A statutory discount needs somewhere for the customer to actually sign. */
.paper .r-sign {
  margin-top: 1.1rem;
  border-top: 1px solid #0b0a08;
  padding-top: 0.2rem;
  font-size: 0.62rem;
  opacity: 0.7;
  text-align: center;
}

/* progress down the online receipt */
.r-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--night-soft);
  padding: 1rem 1.1rem;
}
.r-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--muted-dim);
  position: relative;
}
.r-step + .r-step::before {
  content: '';
  position: absolute;
  left: 5px;
  top: -0.5rem;
  height: 1rem;
  width: 2px;
  background: var(--hairline);
}
.r-step[data-on='true'] { color: var(--cream); }
.r-step[data-on='true'] + .r-step[data-on='true']::before { background: var(--go); }
.r-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--hairline);
  flex: none;
}
.r-step[data-on='true'] .r-dot { background: var(--go); border-color: var(--go); }

.printbar {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

/* Paper only, when actually printing. */
@media print {
  body { background: #fff; }
  .rail, .topbar, .printbar, .banner, .toasts, .notice, .tiny { display: none !important; }
  .shell { display: block; }
  .page { padding: 0; }
  .paper {
    max-width: none;
    width: 58mm;
    margin: 0;
    background: #fff;
    color: #000;
    border-radius: 0;
    padding: 0;
    font-size: 9pt;
  }
  .paper .r-rule { border-color: #000; opacity: 1; }
}

/* a newly-arrived ticket catches the eye once, then settles */
.ticket[data-flash='true'] {
  animation: ticket-in 1.4s ease-out;
}
@keyframes ticket-in {
  0%, 60% { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-wash); }
  100% { border-color: var(--hairline); box-shadow: none; }
}

/* =========================================================
   PUBLIC SURFACES — the receipts, and anything a customer sees
========================================================= */

.pub {
  max-width: 560px;
  margin-inline: auto;
  width: 100%;
  padding: 1.5rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.pub__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  padding-top: 0.75rem;
}
.pub__spot {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

/* =========================================================
   SEARCH, MENU ROWS AND THE CUSTOMER ORDER BAR

   The order page is a phone surface held at arm's length in a dark garden, so
   rows are tall, the total is pinned to the bottom, and nothing depends on
   hovering.
========================================================= */

.searchbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.85rem;
  min-height: var(--tap);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--night-soft);
  color: var(--muted);
}
.searchbar:focus-within {
  border-color: var(--amber);
  color: var(--amber);
}
.searchbar svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.searchbar__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--cream);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}
.searchbar__input:focus {
  outline: none;
}
.searchbar__input::-webkit-search-cancel-button {
  display: none;
}
.searchbar__clear {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
}
.searchbar__clear:hover {
  color: var(--cream);
}

.menurow {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 62px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--night-soft);
  color: var(--cream);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.menurow:hover,
.menurow:focus-visible {
  border-color: var(--amber);
  background: var(--surface);
}
.menurow__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.menurow__name {
  font-weight: 600;
  font-size: 0.95rem;
}
.menurow__sub {
  font-size: 0.76rem;
  color: var(--muted);
}
.menurow__price {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--amber);
  white-space: nowrap;
}

/* The running total follows the thumb rather than the scroll. */
.orderbar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding: 0.7rem 0 max(0.7rem, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--night) 65%, transparent);
}
.pub--order {
  padding-bottom: 1rem;
}

/* =========================================================
   AVAILABILITY ROWS, SPOT CARDS AND POSTERS
========================================================= */

/* A whole row is the hit target — outdoors, at night, with wet hands. */
.availrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: var(--tap);
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--night-soft);
  cursor: pointer;
  transition: border-color 0.16s ease, opacity 0.16s ease;
}
.availrow:hover {
  border-color: var(--muted);
}
.availrow:focus-within {
  border-color: var(--amber);
}
.availrow.is-out {
  opacity: 0.55;
  border-style: dashed;
}
.availrow input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.availrow__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.availrow__name {
  font-weight: 600;
  font-size: 0.88rem;
}
.availrow.is-out .availrow__name {
  text-decoration: line-through;
}
.availrow__sub {
  font-size: 0.72rem;
  color: var(--muted);
}
.availrow__price {
  margin-left: auto;
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Spot cards carry a QR plus four controls, so they need more room than the
   general three-up grid gives them — at five across the buttons wrapped three
   rows deep. Stretching also keeps a row of them level. */
.spotgrid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(266px, 1fr));
  align-items: stretch;
}
.spotgrid > * {
  min-width: 0;
}
.spotcard {
  height: 100%;
}
.spotcard__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.spotcard.is-retired {
  opacity: 0.6;
  border-style: dashed;
}
.qrbox--sm {
  width: 118px;
  margin-inline: auto;
  padding: 0.45rem;
}

/* What gets printed and taped to a table. */
.poster {
  background: #fff;
  color: #0b0a08;
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.poster__eyebrow {
  font-family: var(--display);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.65;
}
.poster__spot {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.8rem;
  margin: 0;
}
.poster__qr {
  width: 190px;
  max-width: 100%;
}
.poster__lead {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}
.poster__sub {
  font-size: 0.8rem;
  opacity: 0.7;
  margin: 0;
}
.poster__url {
  font-family: var(--mono);
  font-size: 0.62rem;
  opacity: 0.55;
  margin: 0.3rem 0 0;
  word-break: break-all;
}

.input--sm {
  min-height: 36px;
  padding: 0.3rem 0.5rem;
  font-size: 0.82rem;
}

/* =========================================================
   CONSOLE FURNITURE — filter bars, job rows, previews
========================================================= */

/* The dot was only ever styled inside a banner; job and promo rows need the
   same mark outside one. */
.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  flex: none;
}

.filterbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

/* One thing the owner has to do something about. */
.jobrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--night-soft);
  font-size: 0.84rem;
}
.jobrow > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.dot--go { background: var(--go); }
.dot--amber { background: var(--amber); }
.dot--stop { background: var(--stop); }
.dot--wait { background: var(--wait); }
.dot--muted { background: var(--muted-dim); }

.promorow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--night-soft);
}
.promorow__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
  font-size: 0.86rem;
}

/* A row that is still true but no longer active. */
.is-dim {
  opacity: 0.55;
}
table.tbl tbody tr.is-dim:hover td {
  opacity: 1;
}

.preview {
  width: 100%;
  height: 420px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--night);
}

textarea.input {
  min-height: 0;
  resize: vertical;
  line-height: 1.5;
}

/* A flag, its explanation, and what reads it. */
.flagrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--night-soft);
}
.flagrow__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
  font-size: 0.86rem;
}

/* =========================================================
   EMPTY STATES

   Used wherever a list has nothing in it yet. It was being written by four
   page scripts before it existed here, which is how it managed to look like
   an orphaned paragraph.
========================================================= */

/* The report mounts these two ahead of time; an empty flex item still earns a
   gap, which reads as a hole in the layout. */
#rep-picker:empty,
#rep-head:empty {
  display: none;
}

.empty {
  margin: 0;
  padding: 1.6rem 1rem;
  text-align: center;
  color: var(--muted-dim);
  font-size: 0.83rem;
  line-height: 1.6;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
}

/* =========================================================
   PRINTING THE SHIFT REPORT

   The receipt print rules above are cut for a 58mm roll and drop notices and
   fine print, which is exactly wrong for a Z-read — the "counted blind, locked"
   line is the part an owner needs on paper. So the report opts out and prints
   as a document: tokens flipped to ink on white, the rail and controls gone,
   the two columns collapsed to one so nothing falls off the page.
========================================================= */

/* Only ever seen on paper — the topbar carries this on screen. */
.printhead {
  display: none;
}

@media print {
  body[data-report] .printhead {
    display: block;
    margin-bottom: 0.4rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--hairline);
  }
  body[data-report] .printhead h1 {
    font-family: var(--display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1.1rem;
    margin: 0;
  }
  body[data-report] .printhead p {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
  }

  :root:has(body[data-report]) {
    --night: #ffffff;
    --night-soft: #ffffff;
    --surface: #ffffff;
    --surface-lift: #ffffff;
    --hairline: #b5aea3;
    --hairline-soft: #ddd8d0;
    --cream: #000000;
    --muted: #4a443c;
    --muted-dim: #6b655c;
    --amber: #6d4407;
    --gold: #6d4407;
    --amber-wash: transparent;
    --go: #2f5220;
    --wait: #26405e;
    --stop: #7d2b22;
    --go-wash: transparent;
    --wait-wash: transparent;
    --stop-wash: transparent;
  }
  body[data-report] .rail,
  body[data-report] .topbar .actions,
  body[data-report] #rep-picker,
  body[data-report] .toasts,
  body[data-report] .btn {
    display: none !important;
  }
  body[data-report] .notice,
  body[data-report] .tiny {
    display: block !important;
  }
  body[data-report] .shell {
    display: block;
  }
  body[data-report] .page {
    padding: 0;
  }
  body[data-report] .grid--wide {
    grid-template-columns: 1fr;
  }
  body[data-report] .card,
  body[data-report] .stat {
    break-inside: avoid;
  }
  body[data-report] table.tbl {
    min-width: 0;
  }
  body[data-report] .tablewrap {
    overflow: visible;
  }
}
