/* Upstairs POS — brand: deep green #123a2c, gold #c4963a, cream. Tablet-first: big touch targets. */
:root {
  --g900: #0b2219; --g800: #123a2c; --g700: #1a4d3b; --g600: #24624b; --g100: #e3eee8; --g50: #f1f6f3;
  --gold: #c4963a; --gold-600: #a97c27; --gold-100: #f6ecd7;
  --cream: #f6f2ea; --ink: #1d2420; --muted: #66706a; --line: #e2dccf; --card: #fff;
  --ok: #2f7d4f; --warn: #b7791f; --bad: #c0392b; --info: #2b6cb0;
  --s-free: #eef1ef; --s-ordering: #2b6cb0; --s-served: #2f7d4f; --s-bill: #d4703a; --s-paid: #c4963a;
  --r: 12px; --shadow: 0 1px 2px rgba(11, 34, 25, .07), 0 6px 18px rgba(11, 34, 25, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font: 16px/1.4 var(--font); color: var(--ink); background: var(--cream); -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 .4rem; line-height: 1.2; } h1 { font-size: 1.5rem; } h2 { font-size: 1.12rem; } h3 { font-size: 1rem; }
a { color: var(--g700); }
.muted { color: var(--muted); } .small { font-size: .86rem; } .center { text-align: center; } .b { font-weight: 700; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .neg { color: var(--bad); }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; } .grow { flex: 1 1 auto; }
.stack > * + * { margin-top: .75rem; } .pad { padding: 1.5rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; align-items: end; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; padding: .55rem 1.05rem; border-radius: 10px; border: 1px solid #cfc7b6; background: #fff; cursor: pointer; text-decoration: none; color: var(--ink); font-weight: 600; touch-action: manipulation; }
.btn:hover { border-color: var(--g700); } .btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg, .iconbtn svg, .nav svg, .userbtn svg, .chip-s svg { width: 20px; height: 20px; flex: none; }
.btn.primary { background: var(--g800); border-color: var(--g800); color: #fff; } .btn.primary:hover { background: var(--g700); }
.btn.pay { background: var(--gold); border-color: var(--gold-600); color: #1d1607; } .btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--g700); } .btn.ghost:hover { background: rgba(18, 58, 44, .07); }
.btn.sm { min-height: 36px; padding: .3rem .7rem; font-size: .9rem; } .btn.big { min-height: 62px; font-size: 1.15rem; } .btn.block { width: 100%; }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; color: inherit; }
.iconbtn:hover { background: rgba(0, 0, 0, .06); }
.input { width: 100%; min-height: 48px; padding: .55rem .75rem; border: 1px solid #cfc7b6; border-radius: 10px; background: #fff; }
.input.big { font-size: 1.6rem; font-weight: 700; } textarea.input { min-height: 90px; }
.field { display: block; } .field .lbl, .lbl { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.toggle { display: flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; } .toggle input { width: 22px; height: 22px; accent-color: var(--g800); }
.seg { display: inline-flex; border: 1px solid #cfc7b6; border-radius: 10px; overflow: hidden; background: #fff; } .seg.wide { display: flex; }
.seg button { flex: 1; min-height: 46px; padding: .4rem .9rem; border: 0; border-right: 1px solid #e5dfd2; background: transparent; cursor: pointer; font-weight: 600; } .seg button:last-child { border-right: 0; }
.seg button.on { background: var(--g800); color: #fff; } .seg button:disabled { opacity: .45; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; min-height: 40px; padding: .3rem .8rem; border-radius: 99px; border: 1px solid #d5cdbc; background: #fff; cursor: pointer; text-decoration: none; color: var(--ink); font-size: .92rem; }
.chip.on { background: var(--g100); border-color: var(--g600); } .chip.off { opacity: .5; text-decoration: line-through; } .chip .x { border: 0; background: none; font-size: 1.1rem; cursor: pointer; padding: 0 .2rem; color: var(--bad); }
.badge { display: inline-block; margin-left: .4rem; padding: .05rem .5rem; border-radius: 99px; font-size: .74rem; font-weight: 700; background: #ebe6db; color: var(--ink); vertical-align: middle; }
.badge.ok { background: #dcefe3; color: var(--ok); } .badge.warn { background: #fbecd2; color: #8a5a10; } .badge.bad { background: #f8d9d5; color: var(--bad); } .badge.gold { background: var(--gold-100); color: #7a5815; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 1rem 1.1rem; }
.narrowcard { max-width: 560px; }
.banner { padding: .7rem 1rem; border-radius: 10px; background: var(--g100); margin: .5rem 0; } .banner.bad { background: #f8d9d5; color: #7c1d13; font-weight: 600; } .banner.warn { background: #fbecd2; color: #6d4709; } .banner.ok { background: #dcefe3; color: #1d5434; } .banner.info { background: #e1ecf7; color: #1c446f; }
.banner.update { background: var(--gold-100); display: flex; align-items: center; gap: 1rem; margin: 0; border-radius: 0; }
.empty { padding: 2rem; text-align: center; color: var(--muted); } .empty.big { font-size: 1.4rem; padding: 5rem 1rem; }

/* ---------- shell */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .5rem; padding: .35rem .75rem; background: var(--g800); color: #e8efe9; box-shadow: 0 2px 0 var(--gold); min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; margin-right: .5rem; } .brand img { width: 42px; height: 42px; border-radius: 8px; }
.brand b { display: block; letter-spacing: .12em; font-style: italic; line-height: 1; } .brand small { display: block; color: var(--gold); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.nav { display: flex; gap: .15rem; flex-wrap: wrap; } .nav a { display: flex; align-items: center; gap: .4rem; min-height: 46px; padding: .3rem .7rem; color: #cfdcd5; text-decoration: none; border-radius: 9px; font-weight: 600; font-size: .94rem; }
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; } .nav a.active { background: var(--g600); color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.status { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.chip-s { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 99px; background: rgba(255, 255, 255, .1); font-size: .82rem; white-space: nowrap; }
.topbar .chip-s.ok { background: rgba(47, 125, 79, .55); } .topbar .chip-s.warn { background: rgba(212, 112, 58, .75); color: #fff; }
.card .chip-s, .main .chip-s { background: var(--g100); }
.dot { width: 12px; height: 12px; border-radius: 50%; } .dot.on { background: #4cd18a; box-shadow: 0 0 0 3px rgba(76, 209, 138, .25); } .dot.off { background: #ff6b5a; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.userbtn { display: flex; align-items: center; gap: .35rem; min-height: 44px; background: none; border: 0; color: #fff; cursor: pointer; padding: 0 .4rem; font-weight: 600; }
.lockbtn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); min-height: 44px; }
.main { padding: 1rem; max-width: 1600px; margin: 0 auto; }
.pagehead { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; } .pagehead h1 { margin: 0; display: flex; align-items: center; gap: .4rem; } .pagehead h1 svg { width: 28px; height: 28px; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; } .tabs button { min-height: 44px; padding: .35rem .9rem; border-radius: 9px; border: 1px solid transparent; background: transparent; cursor: pointer; font-weight: 600; color: var(--g700); }
.tabs button.on { background: var(--g800); color: #fff; } .tabs.card { padding: .45rem; margin-bottom: 1rem; }
.reportbar { margin-bottom: 1rem; }

/* ---------- login */
.login { min-height: 100vh; background: radial-gradient(1200px 500px at 50% -10%, var(--g600), var(--g800) 55%, var(--g900)); padding: 2rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.login-brand { display: flex; align-items: center; gap: 1rem; color: #fff; } .login-brand img { width: 92px; height: 92px; border-radius: 16px; box-shadow: 0 0 0 3px var(--gold); }
.login-brand h1 { font-size: 2.2rem; letter-spacing: .16em; font-style: italic; margin: 0; } .login-brand p { margin: 0; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; }
.login-card { width: min(980px, 100%); background: #fff; border-radius: 18px; padding: 1.4rem; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); } .login-card.narrow { width: min(480px, 100%); }
.login-card h3 { margin: 1rem 0 .5rem; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.login .muted { color: #b9cbc1; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.tile { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1rem .5rem; min-height: 112px; border-radius: 14px; border: 1px solid var(--line); background: var(--g50); cursor: pointer; font-weight: 700; font-size: 1.02rem; }
.tile:hover { border-color: var(--g600); background: var(--g100); }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--g800); color: var(--gold); font-size: 1.3rem; }
.role-cashier .avatar { background: var(--gold); color: var(--g900); } .role-manager .avatar, .role-admin .avatar { background: #3c2a12; color: var(--gold); }
.pinpad { max-width: 330px; margin: 0 auto; outline: none; }
.pindots { display: flex; justify-content: center; gap: .7rem; margin: .7rem 0 1rem; min-height: 22px; } .pindots span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--g700); } .pindots span.on { background: var(--g800); }
.pinkeys { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.pinkey { min-height: 70px; font-size: 1.6rem; font-weight: 700; border-radius: 14px; border: 1px solid var(--line); background: var(--g50); cursor: pointer; touch-action: manipulation; }
.pinkey:active { background: var(--g100); } .pinkey.ok { background: var(--g800); color: #fff; font-size: 1.2rem; } .pinkey.clr { font-size: 1.1rem; color: var(--bad); }

/* ---------- dialogs & toasts */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(11, 34, 25, .55); display: grid; place-items: center; padding: 1rem; }
.dialog { background: #fff; border-radius: 16px; width: min(520px, 100%); max-height: calc(100vh - 2rem); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); } .dialog.wide { width: min(1000px, 100%); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; border-bottom: 1px solid var(--line); } .dialog-head h2 { margin: 0; }
.dialog-body { padding: 1rem; overflow: auto; } .dialog-foot { display: flex; gap: .5rem; justify-content: flex-end; padding: .8rem 1rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.choice { flex-direction: column; min-height: 64px; font-size: 1.05rem; } .choice small { font-weight: 400; color: var(--muted); font-size: .78rem; } .choice.vip { border-color: var(--gold); }
.toasts { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: .4rem; width: min(560px, calc(100% - 2rem)); }
.toast { padding: .8rem 1rem; border-radius: 12px; background: var(--g800); color: #fff; box-shadow: var(--shadow); transition: opacity .35s; font-weight: 600; } .toast.ok { background: var(--ok); } .toast.bad { background: var(--bad); } .toast.out { opacity: 0; }

/* ---------- tables (data) */
.tablewrap { overflow-x: auto; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: .94rem; } .tbl th, .tbl td { padding: .55rem .7rem; border-bottom: 1px solid #eee8dc; text-align: left; vertical-align: top; }
.tbl thead th { background: var(--g800); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0; } .tbl thead th.num { text-align: right; }
.tbl .num { text-align: right; }
.tbl tbody tr:nth-child(even) td { background: #fbfaf6; } .tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--g100); }
.tbl tr.grp td { background: var(--g100) !important; font-weight: 700; color: var(--g800); } .tbl tfoot td { font-weight: 700; border-top: 2px solid var(--g800); background: var(--g50); }
.tbl.kv th { width: 60%; font-weight: 500; background: none; color: var(--ink); text-transform: none; font-size: .94rem; position: static; } .tbl.kv thead th { color: var(--muted); }
.tbl.compact th, .tbl.compact td { padding: .35rem .5rem; } .card .tablewrap, .dialog .tablewrap { box-shadow: none; border: 1px solid #eee8dc; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.kpi { padding: .7rem .9rem; border-radius: 12px; background: rgba(255, 255, 255, .06); border-left: 4px solid var(--gold); } .kpi span { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.kpi b { display: block; font-size: 1.55rem; font-variant-numeric: tabular-nums; } .kpi small { opacity: .75; font-size: .78rem; } .kpis.light .kpi { background: #fff; box-shadow: var(--shadow); }

/* ---------- floor */
.legend { display: flex; gap: .7rem; flex-wrap: wrap; font-size: .84rem; } .lg::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; background: var(--c); border: 1px solid rgba(0, 0, 0, .15); }
.lg.st-free { --c: var(--s-free); } .lg.st-ordering { --c: var(--s-ordering); } .lg.st-served { --c: var(--s-served); } .lg.st-bill { --c: var(--s-bill); } .lg.st-paid { --c: var(--s-paid); }
.floor-sec { margin-bottom: 1rem; } .floor-sec h2 { display: flex; align-items: baseline; gap: .6rem; } .floor-sec h2 small { font-weight: 500; color: var(--muted); font-size: .85rem; }
.floor-sec.mine h2::after { content: 'Your section'; font-size: .72rem; background: var(--gold-100); color: #7a5815; padding: .1rem .5rem; border-radius: 99px; }
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; } .tables.vip { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ttile { position: relative; display: flex; flex-direction: column; gap: .15rem; align-items: stretch; text-align: left; min-height: 118px; padding: .65rem .75rem; border-radius: 14px; border: 2px solid transparent; cursor: pointer; background: var(--s-free); color: var(--ink); box-shadow: var(--shadow); touch-action: manipulation; }
.ttile .tname { font-size: 1.45rem; font-weight: 800; } .ttile .tstat { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; opacity: .85; }
.ttile .tinfo { display: flex; justify-content: space-between; gap: .4rem; font-size: .88rem; }
.ttile.vip { border-color: var(--gold); } .ttile.mine { box-shadow: 0 0 0 3px var(--gold), var(--shadow); }
.st-ordering { background: var(--s-ordering); color: #fff; } .st-served { background: var(--s-served); color: #fff; } .st-bill { background: var(--s-bill); color: #fff; } .st-paid { background: var(--s-paid); color: #1d1607; }
.ttile.st-free .tinfo.muted { color: var(--muted); }
.vipbar { position: relative; height: 20px; border-radius: 99px; background: rgba(0, 0, 0, .18); overflow: hidden; margin-top: .3rem; } .vipbar i { position: absolute; inset: 0 auto 0 0; background: var(--gold); }
.vipbar.ok i { background: #6fd39a; } .vipbar span { position: relative; display: block; text-align: center; font-size: .72rem; font-weight: 700; line-height: 20px; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .4); }
.totals .vipbar { background: #e7e1d3; } .totals .vipbar span { color: var(--ink); text-shadow: none; }

/* ---------- order screen */
.view-floor.main { max-width: none; }
.order { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 1rem; height: calc(100vh - 142px); min-height: 520px; }
.menu-panel, .bill-panel { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 0; }
.menu-panel { padding: .75rem; gap: .6rem; } .menu-top { display: flex; gap: .5rem; } .search { flex: 1; }
.cats { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .2rem; } .cats.wrap { flex-wrap: wrap; overflow: visible; }
.cat { flex: none; min-height: 48px; padding: .4rem 1rem; border-radius: 99px; border: 1px solid #d5cdbc; background: var(--g50); cursor: pointer; font-weight: 700; color: var(--g800); } .cat.on { background: var(--g800); color: #fff; border-color: var(--g800); } .cat.off { opacity: .5; }
.items { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .55rem; align-content: start; padding: .1rem; }
.item { display: flex; flex-direction: column; justify-content: space-between; gap: .3rem; min-height: 96px; padding: .6rem .7rem; text-align: left; border-radius: 12px; border: 1px solid #ddd5c4; border-top: 5px solid var(--g600); background: #fff; cursor: pointer; touch-action: manipulation; }
.item.st-BAR { border-top-color: var(--gold); } .item:active { background: var(--g100); } .item:disabled { opacity: .5; }
.iname { font-weight: 700; line-height: 1.2; } .iprice { font-size: 1.05rem; font-weight: 800; color: var(--g800); } .istation { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.bill-panel { padding: 0; overflow: hidden; }
.bill-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; padding: .8rem 1rem; background: var(--g800); color: #fff; } .bill-head h1 { margin: 0; font-size: 1.7rem; } .bill-head .muted { color: #b9cbc1; font-size: .85rem; }
.bill-head .guests { color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.bill-panel > .banner { margin: .5rem .75rem 0; }
.lines { flex: 1; overflow-y: auto; padding: .3rem .4rem; }
.line { display: grid; grid-template-columns: 2.2rem 1fr auto 5.5rem; gap: .4rem; align-items: center; padding: .55rem .5rem; border-bottom: 1px solid #f0ebe0; border-radius: 8px; }
.line[role=button] { cursor: pointer; } .line[role=button]:hover { background: var(--g50); }
.line .lq { font-weight: 800; font-size: 1.1rem; text-align: center; } .line .ln small { display: block; color: var(--muted); font-size: .8rem; } .line .ln small.neg { color: var(--bad); }
.line.draft { background: #fff8e8; } .line.held { background: #eef3fa; } .line.voided .ln, .line.voided .la { text-decoration: line-through; color: var(--muted); }
.totals { padding: .6rem 1rem; border-top: 2px solid var(--g800); background: var(--g50); }
.trow { display: flex; justify-content: space-between; padding: .12rem 0; } .trow.grand { font-size: 1.45rem; font-weight: 800; color: var(--g800); border-top: 1px dashed #c8c0ae; margin-top: .2rem; padding-top: .3rem; }
.trow.lrd { font-weight: 700; color: var(--muted); } .trow.warn { color: #8a5a10; font-weight: 700; } .trow.neg { color: var(--bad); }
.parts { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .4rem; } .part { padding: .2rem .55rem; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; } .part.paid { background: #dcefe3; }
.actions { padding: .7rem; display: flex; flex-direction: column; gap: .5rem; border-top: 1px solid var(--line); }
.actions .row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .5rem; }
.history { padding: .4rem 1rem .8rem; }
.splitlist { display: flex; flex-direction: column; gap: .35rem; } .splitrow { display: grid; grid-template-columns: 1fr auto auto auto; gap: .6rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid #f0ebe0; }

/* ---------- payment */
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.due { text-align: center; padding: 1rem; border-radius: 14px; background: var(--g800); color: #fff; } .due .lbl { color: var(--gold); }
.due-usd { font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; } .due-lrd { color: #cfe0d6; font-weight: 600; }
.tenders { margin: .8rem 0; } .tender { display: grid; grid-template-columns: 1fr auto auto; gap: .5rem; align-items: center; padding: .45rem .6rem; border-radius: 10px; background: var(--g50); margin-bottom: .35rem; }
.change { padding: .8rem; border-radius: 12px; background: var(--gold-100); margin-bottom: .8rem; } .change-amt { font-size: 2rem; font-weight: 800; color: var(--g800); margin: .4rem 0; }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-bottom: .8rem; }
.method { min-height: 60px; border-radius: 12px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; font-size: 1.02rem; } .method.on { border-color: var(--g800); background: var(--g100); }
.method.m-momo { border-left: 6px solid #f2c200; } .method.m-card { border-left: 6px solid var(--info); } .method.m-cash { border-left: 6px solid var(--ok); }
.tippool { padding: .6rem .8rem; background: var(--gold-100); border-radius: 10px; }
.invbox { padding: .7rem; border-radius: 10px; background: var(--g50); }

/* ---------- dashboard (big screen) */
body[data-view=dashboard] { background: var(--g900); color: #e8efe9; }
.dash { display: flex; flex-direction: column; gap: .8rem; }
.dash-top { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 1rem; align-items: stretch; }
.dash-title h1 { font-size: 1.6rem; color: #fff; } .dash-title .muted { color: #9fb6aa; } .bigclock { font-size: 3rem; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.1; }
.paymix { display: flex; height: 54px; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .05); }
.mix { display: flex; flex-direction: column; justify-content: center; padding: 0 .8rem; min-width: 120px; color: #fff; } .mix b { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; } .mix span { font-weight: 700; } .mix small { opacity: .8; font-size: .74rem; }
.mix.m-cash { background: #2f7d4f; } .mix.m-momo { background: #b38d00; } .mix.m-card { background: #2b6cb0; } .mix.none { color: #9fb6aa; flex: 1; justify-content: center; align-items: center; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(330px, 1fr); gap: .8rem; }
.panel { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: .8rem; }
.panel h2 { display: flex; align-items: center; gap: .4rem; color: #fff; } .panel h2 svg { width: 20px; height: 20px; color: var(--gold); } .panel .muted { color: #9fb6aa; }
body[data-view=dashboard] .legend { color: #cfdcd5; margin-bottom: .6rem; }
.dfloor { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; } .dfloor.vip { grid-template-columns: repeat(3, 1fr); margin-top: .7rem; }
.dtile { text-align: left; min-height: 96px; padding: .5rem .6rem; border-radius: 12px; border: 2px solid transparent; background: #1f3b31; color: #e8efe9; cursor: pointer; display: flex; flex-direction: column; gap: .1rem; }
.dtile.st-free { background: #1f3b31; } .dtile.vip { border-color: var(--gold); min-height: 112px; }
.dtile.st-ordering { background: var(--s-ordering); } .dtile.st-served { background: var(--s-served); } .dtile.st-bill { background: var(--s-bill); } .dtile.st-paid { background: var(--s-paid); color: #1d1607; }
.dt-top { display: flex; justify-content: space-between; align-items: baseline; } .dt-top b { font-size: 1.25rem; } .dt-top span { font-size: .8rem; opacity: .9; }
.dt-w { font-size: .85rem; opacity: .95; } .dt-amt { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; } .dt-amt small { font-weight: 500; font-size: .75rem; } .dt-bill { font-size: .75rem; font-weight: 700; }
.dash-side { display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.alert { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem .6rem; border-radius: 9px; margin-bottom: .35rem; background: rgba(255, 255, 255, .06); border-left: 4px solid var(--info); font-size: .92rem; }
.alert.bad { border-left-color: #ff6b5a; background: rgba(192, 57, 43, .18); } .alert.warn { border-left-color: #f0a44b; background: rgba(212, 112, 58, .14); }
body[data-view=dashboard] .tbl { color: #e8efe9; } body[data-view=dashboard] .tbl td { border-bottom-color: rgba(255, 255, 255, .08); background: transparent !important; } body[data-view=dashboard] .tbl thead th { background: rgba(255, 255, 255, .08); }
body[data-view=dashboard] .btn.ghost { color: var(--gold); } body[data-view=dashboard] .badge { background: rgba(255, 255, 255, .15); color: #fff; } body[data-view=dashboard] .badge.bad { background: #c0392b; }
.queues { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.qrow { display: grid; grid-template-columns: 1fr auto auto; gap: .5rem; padding: .35rem .5rem; border-radius: 8px; margin-bottom: .3rem; background: rgba(255, 255, 255, .06); border-left: 4px solid #4cd18a; font-size: .92rem; }
.qrow.warn { border-left-color: #f0a44b; } .qrow.late { border-left-color: #ff6b5a; background: rgba(192, 57, 43, .2); } .qrow.void { border-left-color: #fff; }

/* ---------- kitchen / bar screen */
body[data-view=station] { background: #1b1f1d; color: #eee; } body[data-view=station] .pagehead h1 { color: #fff; } body[data-view=station] .panel h2 { color: #fff; }
body[data-view=station] .chip { background: #2a302d; color: #eee; border-color: #3b433f; }
.kds { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: .8rem; align-items: start; margin-bottom: 1rem; }
.ticket { background: #fff; color: #111; border-radius: 12px; padding: .7rem; border-top: 10px solid #2f7d4f; display: flex; flex-direction: column; gap: .4rem; }
.ticket.warn { border-top-color: #e0a106; } .ticket.late { border-top-color: #c0392b; box-shadow: 0 0 0 3px #c0392b; } .ticket.void { border-top-color: #111; background: #ffe9e6; }
.ticket header { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; } .ticket header b { font-size: 1.5rem; } .ticket .tm { font-weight: 800; font-size: 1.1rem; }
.ticket ul { list-style: none; padding: 0; margin: 0; font-size: 1.2rem; } .ticket li { padding: .25rem 0; border-bottom: 1px dashed #ddd; } .ticket .note { font-size: .95rem; font-style: italic; color: #a14b00; padding-left: 1.6rem; }
.voidtag { background: #111; color: #fff; font-weight: 800; text-align: center; padding: .2rem; border-radius: 6px; }

/* ---------- responsive */
/* Two rows: brand + status on top, the menu (always with words) underneath, scrolling sideways on small screens. */
.topbar { flex-wrap: wrap; row-gap: 0; padding-bottom: 0; }
.topbar .nav { order: 10; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: .2rem -.75rem 0; padding: 0 .5rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.topbar .nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; border-radius: 0; min-height: 48px; padding: .3rem .9rem; } .nav a.active { background: var(--g700); }
.nav a.help { margin-left: auto; color: var(--gold); }
.gettingstarted { border-left: 5px solid var(--gold); } .gettingstarted ol { margin: .4rem 0 0; padding-left: 1.3rem; } .gettingstarted li { padding: .35rem 0; }
.gettingstarted li.done { color: var(--muted); text-decoration: line-through; } .gettingstarted li .btn { margin-left: .5rem; }
body[data-view=dashboard] .gettingstarted { background: #fff; color: var(--ink); }
@media (max-width: 1100px) { .dash-grid, .dash-top { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .order { grid-template-columns: 1fr; height: auto; } .menu-panel { max-height: 60vh; } .items { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .pay { grid-template-columns: 1fr; } .queues { grid-template-columns: 1fr; } .dfloor { grid-template-columns: repeat(3, 1fr); }
  .status .chip-s:not(.warn) { display: none; } .userbtn span, .lockbtn span { display: none; }
}
@media (max-width: 520px) { .main { padding: .6rem; } .tables { grid-template-columns: repeat(2, 1fr); } .dfloor { grid-template-columns: repeat(2, 1fr); } .brand span { display: none; } }
@media print { .topbar, .toasts, .btn, .exportbtns { display: none !important; } body { background: #fff; } }
