/* QR orders (31 Oct 2026): the Tables row on the till, a table's bill, the kitchen board and the setup
   page. Kept apart from app.css so the feature reads as one piece; the tokens are app.css's. */

/* ---------- the Tables row above the shelf ---------- */
.till-tables { display: grid; gap: 10px; padding: 0 16px 10px; }
.qr-table-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qr-row-word { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #86868b; margin-inline-end: 4px; }
.qr-table { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 132px; min-height: 58px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); text-align: start; cursor: pointer; line-height: 1.25; }
.qr-table strong { font-size: 15px; font-weight: 600; }
.qr-table small { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.qr-table .amber, .qr-table.wait small { color: var(--amber); }
.qr-table:hover:not(:disabled) { background: var(--inset); }
.qr-table.on { background: var(--mint); border: 1.5px solid var(--green); color: var(--green-dark); }
.qr-table.wait { cursor: default; }

/* Counter mode: each new order waits as a card with Accept and Decline. */
.qr-new { border: 1.5px solid var(--green); background: var(--mint); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.qr-new-top { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; }
.qr-new-top span { font-weight: 600; font-variant-numeric: tabular-nums; }
.qr-new small { font-size: 13px; color: var(--muted); }
.qr-new .qr-note { color: var(--amber); font-weight: 600; }
.qr-new-actions { display: flex; gap: 8px; margin-top: 8px; }
.qr-new-actions .btn { flex: 1; min-height: 40px; }
.qr-new-actions .quiet { flex: none; width: 110px; color: var(--muted); border-color: #d9dde1; background: #fff; }

/* ---------- a table's bill in the pane ---------- */
.table-bar { display: grid; gap: 10px; padding: 0 16px 6px; }
.table-bar .seg-switch { width: 100%; margin: 0; }
.table-people { display: grid; gap: 8px; }
.table-person { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.table-person > div { flex: 1; min-width: 0; display: grid; }
.table-person strong { font-size: 16px; font-weight: 600; }
.table-person small { font-size: 13px; color: #86868b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-person .amount { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.table-person .btn { min-height: 38px; padding: 0 16px; }
.table-paying { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--green); background: var(--mint); border-radius: 12px; padding: 8px 12px; font-size: 14px; color: var(--green-dark); }
.table-paying span { font-weight: 600; }
.table-paying .back-word { border: 0; background: none; padding: 0; font: inherit; color: var(--green); font-weight: 600; cursor: pointer; }
.table-close { justify-self: start; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 13px; color: #86868b; cursor: pointer; }
.table-close:hover { color: var(--red); }
.table-close-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.table-close-ask span { flex: 1 1 100%; color: var(--muted); }
.table-close-ask .btn { min-height: 36px; padding: 0 14px; }
.table-close-ask .btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.table-round { margin: 14px 16px 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ---------- the kitchen board ---------- */
.kitchen-page .ledger-top { gap: 14px; }
.kitchen-clock { font-size: 14px; color: #86868b; font-variant-numeric: tabular-nums; }
.kitchen-taking { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); white-space: nowrap; }
/* A phone shows the time in its own status bar; the switch's words need the room. */
@media (max-width: 420px) { .kitchen-clock { display: none; } }
.kitchen-tabs { display: flex; gap: 0; margin: 10px 14px; padding: 3px; border-radius: 12px; background: var(--inset); }
.kitchen-tabs button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 9px 6px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.kitchen-tabs button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.kitchen-board { display: block; padding: 0 14px 24px; }
.kitchen-col { display: none; flex-direction: column; gap: 12px; }
.kitchen-board.tab-0 .col-new, .kitchen-board.tab-1 .col-making, .kitchen-board.tab-2 .col-ready { display: flex; }
.kitchen-col h3 { display: none; margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #86868b; }
.kitchen-col h3 b { color: var(--ink); margin-inline-start: 6px; }
.kitchen-empty { margin: 30px 0; text-align: center; color: #86868b; font-size: 15px; }
@media (min-width: 760px) {
	.kitchen-tabs { display: none; }
	.kitchen-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; min-height: calc(100vh - 62px); }
	.kitchen-col, .kitchen-board.tab-0 .col-new, .kitchen-board.tab-1 .col-making, .kitchen-board.tab-2 .col-ready { display: flex; padding: 14px; border-inline-start: 1px solid var(--line); }
	.kitchen-col:first-child { border-inline-start: 0; }
	.kitchen-col h3 { display: flex; }
}

.kc { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; }
.kc.new { border: 1.5px solid var(--green); background: var(--mint); }
.kc.done { opacity: 0.55; }
.kc-top { display: flex; align-items: baseline; gap: 8px; }
.kc-top strong { font-size: 19px; font-weight: 600; }
.kc-top .who { font-size: 14px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-top em { margin-inline-start: auto; font-style: normal; font-size: 13px; color: #86868b; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kc-top em.late { color: var(--amber); font-weight: 600; }
.kc ul { list-style: none; margin: 8px 0 0; padding: 0; }
.kc li { font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; }
.kc li b { display: inline-block; min-width: 32px; font-weight: 600; }
.kc-note { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--amber); }
.kc-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.kc-actions .btn { flex: 1; min-height: 46px; font-size: 16px; }
.kc-quiet { flex: none; width: 96px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--muted); cursor: pointer; }

/* ---------- Business › QR orders ---------- */
.qr-setup { max-width: 560px; }
.qr-setup .form-row { justify-content: space-between; }
.qr-setup .seg-switch { width: auto; margin: 0; }
.qr-setup .seg-switch button { padding: 7px 16px; }
.qr-setup .stepper { display: inline-flex; align-items: center; border: 1px solid #d7dbde; border-radius: 18px; overflow: hidden; }
.qr-setup .stepper button { border: 0; background: #fff; font: inherit; font-size: 19px; width: 38px; height: 36px; color: var(--green); cursor: pointer; }
.qr-setup .stepper button:disabled { color: #c3c8cc; cursor: default; }
.qr-setup .stepper .figure { min-width: 32px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.qr-hint { margin: 10px 4px 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.qr-actions { display: grid; gap: 8px; margin-top: 28px; text-align: center; }
.qr-kitchen-link { margin-top: 10px; font-weight: 600; text-decoration: none; }

/* ---------- Menu today (31 Oct 2026) ---------- */
/* The till keeps an item the kitchen is not cooking today: faded, with the words in amber. */
.shelf .tile.not-today { opacity: 0.55; }
.shelf .tile .nt-word { font-weight: 600; color: var(--amber); }

.kitchen-menu-pill { margin-inline-start: auto; border: 1px solid #d9dde1; background: #fff; border-radius: 18px; height: 36px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; }
.kitchen-menu-pill b { color: var(--amber); font-weight: 600; }
.kitchen-menu-pill.on { border-color: var(--green); background: var(--mint); color: var(--green-dark); }
.kitchen-page .kitchen-taking { margin-inline-start: 0; }
.kitchen-body { display: block; }
.menu-today { display: flex; flex-direction: column; background: #fff; }
.menu-today .mt-head { display: flex; align-items: center; padding: 14px 18px 2px; }
.menu-today .mt-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.menu-today .mt-head button { margin-inline-start: auto; border: 0; background: none; font-size: 20px; color: var(--muted); cursor: pointer; }
.menu-today .mt-sub { margin: 0; padding: 0 18px 10px; font-size: 13px; color: #86868b; }
.menu-today .mt-search { margin: 0 16px 6px; height: 40px; border: 1px solid #d9dde1; border-radius: 20px; padding: 0 14px; font: inherit; font-size: 14px; }
.menu-today .mt-cat { display: flex; justify-content: space-between; margin: 14px 18px 4px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #86868b; }
.menu-today .mt-cat b { color: var(--amber); font-weight: 600; }
.menu-today .mt-row { display: flex; align-items: center; gap: 12px; padding: 8px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.menu-today .mt-row .ph { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex: none; background: var(--inset); }
.menu-today .mt-row p { flex: 1; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; min-width: 0; }
.menu-today .mt-row p small { display: block; font-size: 12.5px; font-weight: 400; color: #86868b; }
.menu-today .mt-row.off .ph { filter: grayscale(1); opacity: 0.5; }
.menu-today .mt-row.off p { color: #86868b; }
.menu-today .mt-row.off p small { color: var(--amber); font-weight: 600; }
.menu-today .mt-foot { margin-top: auto; padding: 12px 18px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.menu-today .mt-foot b { color: var(--ink); font-weight: 600; }
.menu-today .mt-empty { padding: 30px 18px; text-align: center; color: #86868b; font-size: 14px; }
@media (min-width: 760px) {
	.kitchen-body.with-menu { display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
	.kitchen-body.with-menu .menu-today { border-inline-start: 1px solid var(--line); min-height: calc(100vh - 62px); }
	.kitchen-body .kitchen-tabs .menu-tab { display: none; }
}
@media (max-width: 759px) {
	.kitchen-body .menu-today .mt-head { display: none; }
	.kitchen-page .kitchen-menu-pill { display: none; }
}
@media (min-width: 760px) { .kitchen-phone-menu { display: none; } }
@media (max-width: 759px) { .kitchen-side-menu { display: none; } }
/* Four tabs on a phone: the words stay on one line. */
.kitchen-tabs button { white-space: nowrap; padding-inline: 2px; }
