/* M14 Billing — page styles on top of tokens.css + journey.css (colours only through their variables) */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 16px; }
.subnav a { border: 1.5px solid var(--border-strong); background: var(--white); color: var(--dept-deep); border-radius: 999px; padding: 7px 15px;
  font-weight: 700; font-size: 14px; }
.subnav a.on { background: var(--dept-deep); border-color: var(--dept-deep); color: var(--white); }
.fbox { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--ink); font-weight: 700; }
.fbox > .picker, .fbox > .picked { font-weight: 500; }
.picker { position: relative; }
.picker .hits { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin-top: 4px; background: var(--white); border: 1px solid var(--border-soft);
  border-radius: 6px; box-shadow: var(--shadow); max-height: 280px; overflow: auto; }
.picker .hit { padding: 8px 10px; cursor: pointer; border-bottom: 1px solid var(--border-soft); font-size: 14.5px; }
.picker .hit:hover { background: var(--sapphire-muted); }
.picked { display: flex; align-items: center; gap: 10px; background: var(--cream); border: 1px solid var(--border-soft); border-radius: 6px; padding: 8px 12px; }
.table-wrap { overflow-x: auto; }
table.t td.wrap { white-space: normal; }
table.t tr.sel td { background: var(--sapphire-muted); }
table.t td.nowrap, table.t th.nowrap { white-space: nowrap; }
.right-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.amount-big { font-size: 34px; font-weight: 700; color: var(--dept-deep); font-variant-numeric: tabular-nums; }
.amount-big.ok { color: var(--emerald-dark); }
.amount-big.warn { color: var(--ruby); }
.note { background: var(--warning-muted); border: 1px solid var(--pill-warn-bg); color: var(--pill-warn-ink); border-radius: 6px; padding: 9px 12px; font-size: 14px; font-weight: 600; }
.okbox { background: var(--pill-ok-bg); color: var(--pill-ok-ink); border-radius: 6px; padding: 9px 12px; font-size: 14px; font-weight: 600; }
.lines td input, .lines td select { width: 100%; min-width: 64px; }
.kpi-row { margin-bottom: 16px; }
.grid > .card + .card { margin-top: 0; }            /* journey.css spaces stacked cards; cards in a grid use the grid gap */
.pos-stats .stat b { font-size: 21px; }
.pos-stats .stat .label { font-size: 11.5px; }
.mono { font-variant-numeric: tabular-nums; }

/* POS */
.pos-grid { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) minmax(300px, 380px); gap: 14px; align-items: start; }
@media (max-width: 1500px) { .pos-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); } .pos-grid > .pos-queue { grid-column: 1 / -1; } }
@media (max-width: 860px) { .pos-grid { grid-template-columns: 1fr; } }
.qlist { display: flex; flex-direction: column; }
@media (max-width: 1500px) { .qlist { flex-direction: row; flex-wrap: wrap; gap: 0 18px; } .qlist .queue-item { flex: 1 1 300px; } .qadd { display: flex; gap: 10px; align-items: flex-start; } .qadd > .picker { flex: 1; } .qadd > .btn { width: auto; margin-top: 0 !important; } }
.queue-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.queue-item .qn { font-weight: 700; font-size: 18px; color: var(--dept-deep); min-width: 52px; }
.queue-item.active { background: var(--sapphire-muted); border-radius: 6px; padding-left: 6px; }
.tender { border: 1px solid var(--border-soft); border-radius: 6px; padding: 10px; margin-bottom: 8px; background: var(--cream-deep); }
.tender-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0 12px; }
.tender-btns .btn { justify-content: center; padding: 10px 6px; }
.qr { display: block; width: 220px; height: 220px; margin: 8px auto; image-rendering: pixelated; border: 1px solid var(--border-soft); border-radius: 6px; }
.check-list label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--border-soft); cursor: pointer; font-weight: 500; }
.check-list label input { margin-top: 4px; }
.check-list .amt { margin-left: auto; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* the patient banner (journey-shared PatientBanner): in a dialog it stays at the dialog's top; inside a form box or the narrow
   cashier-queue column it does not stick, and in that column it is a little smaller so it wraps instead of overflowing */
.modal .ptb { top: 0; margin: 0 0 14px; }
.fbox .ptb, .pos-queue .ptb { position: static; margin: 0; font-weight: 400; }
.pos-queue .ptb { padding: 10px 12px; gap: 8px 14px; border-left-width: 8px; }
.pos-queue .ptb-hn b { font-size: 22px; white-space: normal; overflow-wrap: anywhere; }
.pos-queue .ptb-name { font-size: 24px; }
.pos-queue .ptb-chip { font-size: 15px; padding: 3px 10px; }
