/* 88-retail.css — the Retail tab (retail.js, migration 220).
   Built for store staff who have never used the app: large type (nothing under
   14px), 50px touch targets, one obvious next step. Every button carries
   .rt-btn, which 80-redesign.css's every-button rule exempts, so the rules here
   are the whole of each button's look. No media queries: the layout wraps with
   flex and auto-fit, so no selector needs a second home (check-css). */

.rt { color:var(--text); font-size:1rem; line-height:1.4; }
.rt-btn { font:inherit; cursor:pointer; border-radius:12px; }
.rt-btn:disabled { opacity:.45; cursor:not-allowed; }
.rt-btn:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.rt-primary { min-height:50px; padding:10px 20px; border:0; background:var(--accent); color:var(--accent-text); font-size:1.05rem; font-weight:800; }
/* 00-base.css's button:hover outranks .rt-primary and turned it grey, and a
   phone keeps the hover after a tap: Place order looked switched off. */
.rt-primary:hover { background:var(--accent); }
.rt-secondary { min-height:50px; padding:10px 18px; border:1px solid var(--line-strong); background:var(--panel); color:var(--text); font-weight:700; }
.rt-ghost { min-height:46px; padding:8px 16px; border:1px solid var(--line-strong); background:transparent; color:var(--text); font-weight:700; }
.rt-link { min-height:42px; padding:6px 8px; border:0; background:none; color:var(--accent); font-weight:700; text-decoration:underline; }
.rt-danger { color:#ff8f80; }

/* Header, guide, messages */
.rt-head { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:14px; margin-bottom:16px; }
.rt-title h2 { margin:0; font-size:1.9rem; line-height:1.1; }
.rt-title p { margin:4px 0 0; color:var(--muted); font-size:1.02rem; }
.rt-head-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.rt-stores { display:flex; flex-wrap:wrap; gap:6px; }
.rt-store { min-height:46px; padding:8px 14px; border:1px solid var(--line-strong); background:transparent; color:var(--muted); font-weight:700; }
.rt-store.active { border-color:var(--accent); background:rgba(52,212,106,.14); color:var(--text); }
.rt-guide { margin:0 0 16px; padding:18px 20px; border:1px solid rgba(52,212,106,.45); border-radius:16px; background:rgba(52,212,106,.07); }
.rt-guide h3 { margin:0 0 10px; font-size:1.3rem; }
.rt-guide ol { display:grid; gap:8px; margin:0 0 12px; padding-left:24px; font-size:1.05rem; }
.rt-guide p { margin:0 0 14px; font-size:1.02rem; }
.rt-guide em { color:var(--accent); font-style:normal; font-weight:700; }
.rt-message { margin:0 0 14px; padding:12px 16px; border:1px solid rgba(52,212,106,.5); border-radius:12px; background:rgba(52,212,106,.1); font-size:1.02rem; }
.rt-banner { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin:0 0 16px; padding:16px 18px; border:1px solid rgba(240,162,59,.55); border-radius:16px; background:rgba(240,162,59,.1); }
.rt-banner strong { display:block; font-size:1.2rem; }
.rt-banner span { color:var(--muted); font-size:1.02rem; }

/* The three tabs */
.rt-tabs { display:flex; gap:6px; margin:0 0 16px; padding:6px; border:1px solid var(--line); border-radius:16px; background:var(--panel); }
.rt-tab { display:flex; flex:1 1 0; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px 8px; min-height:56px; padding:8px 10px; border:0; background:transparent; color:var(--muted); font-size:1.08rem; font-weight:800; }
.rt-tab span { min-width:28px; padding:2px 9px; border-radius:999px; background:rgba(255,255,255,.08); font-size:.95rem; }
.rt-tab.active { background:rgba(52,212,106,.16); color:var(--text); }
.rt-tab.active span { background:var(--accent); color:var(--accent-text); }

/* The list beside the order; the order drops below it on a narrow screen. */
.rt-layout { display:flex; flex-wrap:wrap; align-items:flex-start; gap:18px; }
.rt-main { flex:999 1 520px; min-width:0; }
.rt-side { flex:1 1 330px; position:sticky; top:84px; }
.rt-search { box-sizing:border-box; width:100%; min-height:52px; margin:0 0 12px; padding:10px 14px; border:1px solid var(--line-strong); border-radius:12px; background:#0d110e; color:var(--text); font-size:1.05rem; }
.rt-chips { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.rt-chip { min-height:46px; padding:8px 16px; border:1px solid var(--line-strong); border-radius:999px; background:transparent; color:var(--text); font-size:1rem; font-weight:700; }
.rt-chip.active { border-color:var(--accent); background:rgba(52,212,106,.16); }
.rt-group { margin:0 0 22px; }
.rt-group > h3, .rt-past > summary h3 { margin:0 0 10px; font-size:1.25rem; }
.rt-count { margin-left:6px; color:var(--muted); font-size:1rem; font-weight:600; }
.rt-lead { margin:0 0 12px; color:var(--muted); font-size:1.02rem; }
.rt-empty { margin:8px 0; padding:18px; border:1px dashed var(--line-strong); border-radius:14px; color:var(--muted); font-size:1.02rem; text-align:center; }

/* The shelf: Flower and Pre-rolls, a banded section per product, and a
   pre-roll product split by pack format, so a 2g never sits beside a 7g and a
   single tube never beside a 6pk tin. */
.rt-group > .rt-group-head { margin:6px 0 14px; padding-bottom:8px; border-bottom:2px solid var(--line-strong); font-size:1.5rem; }
.rt-product { margin:0 0 26px; }
.rt-product-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 12px; margin:0 0 10px; padding:10px 14px; border-left:5px solid var(--accent); border-radius:10px; background:rgba(52,212,106,.09); }
.rt-product-head h4 { margin:0; font-size:1.3rem; }
.rt-product-head span { color:var(--muted); font-size:1rem; font-weight:600; }
.rt-pack { margin:0 0 14px; padding-left:12px; border-left:3px solid var(--line-strong); }
.rt-pack-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 12px; margin:4px 0 8px; font-size:1.1rem; font-weight:800; }
.rt-pack-head span { color:var(--muted); font-size:.95rem; font-weight:600; }
/* What a row is, on the row: its size, or its product and pack. */
.rt-tag { display:inline-block; margin-left:6px; padding:2px 9px; border:1px solid var(--line-strong); border-radius:999px; color:var(--muted); font-size:.92rem; font-weight:700; vertical-align:2px; white-space:nowrap; }
/* The product filter: short labels, so it is a row or two even on a phone. */
.rt-filter .rt-chip { min-height:44px; padding:6px 14px; }
/* The order bar is made invisible, not removed: it is sticky, so removing it
   took its height out of the page and the page jumped under the finger. */
.rt-cartbar.off { visibility:hidden; }
/* Past orders: the arrow sits beside its heading. */
.rt-past > summary > h3 { display:inline; }
/* How a quantity reads in cases: "2 cases", "2 cases + 10 tubes". */
.rt-case { color:var(--muted); font-size:.95rem; font-weight:700; }
/* The over-stock note sits under the buttons, full width: above them it
   appeared on the first tap and pushed them out from under the second. */
.rt-item > .rt-item-warn, .rt-cart-line > .rt-item-warn { flex-basis:100%; }
/* Ordered past the shelf, and all of it will still come: packed from bulk. */
.rt-item-ok { flex-basis:100%; color:var(--accent); font-size:.95rem; font-style:normal; font-weight:700; }

/* A product row: name, how many are in stock, how many to order */
.rt-item { display:flex; flex-wrap:wrap; align-items:center; gap:12px 16px; margin:0 0 8px; padding:14px 16px; border:1px solid var(--line); border-radius:14px; background:var(--panel); }
.rt-item.in-order { border-color:rgba(52,212,106,.6); background:rgba(52,212,106,.07); }
.rt-item-name { display:flex; flex:1 1 200px; flex-direction:column; gap:3px; min-width:0; }
.rt-item-name strong { font-size:1.12rem; }
.rt-item-name > span { color:var(--muted); font-size:1rem; }
.rt-item-warn { color:var(--warn); font-size:.95rem; font-style:normal; font-weight:600; }
.rt-notes { display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
.rt-note-chip { padding:3px 10px; border-radius:999px; background:rgba(240,162,59,.15); color:#ffd08a; font-size:.92rem; font-weight:600; }
.rt-item-have { display:flex; flex-direction:column; align-items:flex-end; min-width:80px; text-align:right; }
.rt-item-have b { color:var(--accent); font-size:1.4rem; line-height:1.1; }
.rt-item-have span { color:var(--muted); font-size:.92rem; }
.rt-item-have.none b { color:var(--warn); }
.rt-qty { display:flex; align-items:center; overflow:hidden; border:1px solid var(--line-strong); border-radius:12px; background:#0d110e; }
.rt-step { width:50px; min-height:50px; border:0; border-radius:0; background:rgba(255,255,255,.07); color:var(--text); font-size:1.6rem; font-weight:700; line-height:1; }
.rt-step:hover:not(:disabled) { background:rgba(52,212,106,.22); }
.rt-qty-input { width:84px; min-height:50px; border:0; background:transparent; color:var(--text); font-size:1.2rem; font-weight:800; text-align:center; -moz-appearance:textfield; appearance:textfield; }
.rt-qty-input::-webkit-inner-spin-button, .rt-qty-input::-webkit-outer-spin-button { margin:0; -webkit-appearance:none; }

/* Asking for something not on the list */
.rt-ask-open { width:100%; margin:0 0 12px; }
.rt-ask { margin:0 0 14px; padding:16px; border:1px solid var(--line-strong); border-radius:14px; background:var(--panel); }
.rt-ask > header { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.rt-ask h3 { margin:0; font-size:1.15rem; }
.rt-ask-form { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap:12px; align-items:end; }
.rt-ask-form label, .rt-cart-meta label { display:flex; flex-direction:column; gap:6px; color:var(--muted); font-size:.98rem; font-weight:700; }
.rt-ask-form select, .rt-ask-form input, .rt-cart-meta input { box-sizing:border-box; width:100%; min-height:50px; padding:8px 12px; border:1px solid var(--line-strong); border-radius:10px; background:#0d110e; color:var(--text); font-size:1.05rem; }

/* Orders */
.rt-order { overflow:hidden; margin:0 0 12px; border:1px solid var(--line); border-radius:14px; background:var(--panel); }
.rt-order > header { display:flex; justify-content:space-between; gap:12px; padding:14px 16px 10px; }
.rt-order > header div { display:flex; flex-direction:column; gap:3px; min-width:0; }
.rt-order > header strong { font-size:1.15rem; }
.rt-order > header span { color:var(--muted); font-size:1rem; }
.rt-order > header b { font-size:1.4rem; text-align:right; }
.rt-order > header b small { display:block; color:var(--muted); font-size:.92rem; font-weight:600; }
.rt-order.suggested { border-color:rgba(240,162,59,.6); }
.rt-order.suggested > header strong { color:#ffc46b; }
.rt-order.cancelled, .rt-order.dismissed { opacity:.75; }
.rt-progress { overflow:hidden; height:10px; margin:0 16px; border-radius:999px; background:rgba(255,255,255,.08); }
.rt-progress i { display:block; height:100%; background:var(--accent); }
.rt-progress-label { margin:6px 16px 0; color:var(--muted); font-size:.98rem; }
.rt-lines { padding:4px 16px 8px; }
.rt-line { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); }
.rt-line:last-child { border-bottom:0; }
.rt-line > div { display:flex; flex-direction:column; gap:2px; min-width:0; }
.rt-line strong { font-size:1.05rem; }
.rt-line > div span { color:var(--muted); font-size:.98rem; }
.rt-line > b { font-size:1.15rem; text-align:right; white-space:nowrap; }
.rt-line > b small { display:block; color:var(--muted); font-size:.92rem; font-weight:600; white-space:normal; }
.rt-order-note { margin:0; padding:0 16px 12px; color:var(--muted); font-size:.98rem; white-space:pre-line; }
.rt-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:0 16px 16px; }
.rt-day { border-top:1px solid var(--line); }
.rt-day > summary { display:flex; justify-content:space-between; gap:12px; padding:12px 4px; font-size:1.05rem; cursor:pointer; }
.rt-day > summary span { color:var(--muted); }
.rt-past > summary { cursor:pointer; }

/* The order */
.rt-cart { padding:16px; border:1px solid var(--line-strong); border-radius:16px; background:var(--panel); }
.rt-cart > header { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.rt-cart h3 { margin:0; font-size:1.35rem; }
.rt-cart-note { margin:0 0 10px; padding:10px 12px; border-left:4px solid var(--warn); background:rgba(240,162,59,.1); font-size:1rem; }
.rt-set-aside ul { margin:6px 0 0; padding-left:20px; }
.rt-cart-lines { display:flex; flex-direction:column; max-height:52vh; overflow-y:auto; }
.rt-cart-line { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 12px; padding:10px 0; border-bottom:1px solid var(--line); }
.rt-cart-name { display:flex; flex:1 1 140px; flex-direction:column; min-width:0; }
.rt-cart-line strong { font-size:1.05rem; }
.rt-cart-name span { color:var(--muted); font-size:.98rem; }
.rt-cart-meta { display:grid; gap:12px; margin:14px 0; }
.rt-problems { margin:0 0 12px; padding-left:20px; color:var(--warn); font-size:1rem; }
.rt-place { width:100%; margin-top:8px; }
.rt-cartbar { position:sticky; bottom:12px; z-index:20; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; padding:12px 14px; border:1px solid var(--accent); border-radius:16px; background:rgba(19,24,20,.97); box-shadow:0 12px 40px rgba(0,0,0,.45); }
.rt-cartbar span { display:flex; flex:999 1 180px; flex-direction:column; font-size:1rem; }
.rt-cartbar strong { font-size:1.08rem; }
/* Beside the text when it fits; its own full-width row on a phone. */
.rt-cartbar > .rt-btn { flex:1 0 auto; white-space:nowrap; }
/* The crew's tab bar is fixed along the bottom; a store account has none. */
body:not(.retail-mode) .rt-cartbar { bottom:96px; }

/* BOH, Store orders: where to place one now */
.boh-orders-retail { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }

/* Tonight's pull and Back room (retail-floor.js, migration 221) */
.rt-own { color:#9fdc7c; font-size:.95rem; font-weight:600; }
.rt-switch { margin-bottom:14px; }
.rf-size { display:inline-block; margin-left:6px; padding:1px 9px; border-radius:999px; background:rgba(255,255,255,.1); color:var(--text); font-size:.92rem; font-weight:700; vertical-align:1px; }
.rf-status { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 14px; margin:0 0 16px; padding:16px 18px; border:1px solid rgba(52,212,106,.45); border-radius:16px; background:rgba(52,212,106,.08); }
.rf-status strong { display:block; flex:1 1 100%; font-size:1.2rem; }
.rf-status > span { flex:1 1 260px; color:var(--muted); font-size:1.02rem; }
.rf-status.waiting { border-color:rgba(240,162,59,.55); background:rgba(240,162,59,.1); }
.rf-status.done { border-color:rgba(52,212,106,.6); }
.rf-actions { padding:0; margin-top:4px; }
.rf-upload { display:inline-flex; align-items:center; justify-content:center; text-align:center; }
.rf-list { margin-bottom:16px; }
.rf-sides { display:flex; flex-wrap:wrap; gap:4px 14px; color:var(--muted); font-size:1rem; }
.rf-sides b { color:var(--text); }
.rf-tick { min-width:132px; min-height:56px; padding:8px 16px; border:2px solid var(--line-strong); background:transparent; color:var(--text); font-size:1.08rem; font-weight:800; }
.rf-tick.on { border-color:var(--accent); background:var(--accent); color:var(--accent-text); }
.rf-skipped { margin:0 0 16px; color:var(--muted); font-size:1rem; }
.rf-skipped > summary { cursor:pointer; font-weight:700; }
.rf-skipped p { margin:6px 0 0; }
.rf-gone { margin:0 0 16px; }
.rf-gone > summary { min-height:44px; padding:12px 4px; cursor:pointer; color:var(--muted); font-size:1.1rem; font-weight:800; }
.rf-inputs .rt-chip { align-self:end; min-height:50px; }
.rf-back.low { border-color:rgba(240,162,59,.55); }
.rf-inputs { display:grid; flex:1 1 100%; grid-template-columns:repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap:10px; }
.rf-inputs label { display:flex; flex-direction:column; gap:4px; color:var(--muted); font-size:.95rem; font-weight:700; }
.rf-inputs input { box-sizing:border-box; width:100%; min-height:50px; padding:8px 10px; border:1px solid var(--line-strong); border-radius:10px; background:#0d110e; color:var(--text); font-size:1.15rem; font-weight:700; text-align:center; }
.rf-delivery span { display:block; }
