/* LastWheel POS v301 -- Smart tiles screen, light + dark */
:root {
  --bg: #f4f6fb; --card: #fff; --ink: #0f172a; --muted: #64748b; --line: #e6e9f0; --soft: #f8fafc;
  --navy: #0b1233; --navy2: #070c24;
  --g: linear-gradient(90deg, #14b8a6, #3b82f6, #7c3aed);
  --ok: #059669; --bad: #dc2626; --warn: #b45309;
  --t1: #ede9fe; --t2: #fef3c7; --t3: #dcfce7; --t4: #e0f2fe; --t5: #fee2e2; --t6: #fff7ed; --t7: #fdf2f8; --t8: #eef2ff; --t9: #ecfeff; --t0: #f1f5f9;
  --shadow: 0 10px 40px rgba(15, 23, 42, .18);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1020; --card: #121a33; --ink: #e2e8f0; --muted: #94a3b8; --line: #23304f; --soft: #18213d;
  --t1: #2a2350; --t2: #3a2f12; --t3: #123224; --t4: #10304a; --t5: #3d1a1d; --t6: #3a2512; --t7: #3a1a2e; --t8: #1d2550; --t9: #0f3238; --t0: #1b2440;
  --shadow: 0 10px 40px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 14px/1.4 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; overflow: hidden; user-select: none; -webkit-user-select: none; }
input, textarea { user-select: text; -webkit-user-select: text; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
.hide { display: none !important; }
.mut { color: var(--muted); }
.g { background: var(--g) !important; color: #fff !important; }
.ring { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(#14b8a6, #3b82f6, #7c3aed, #14b8a6); display: grid; place-items: center; flex: none; }
.ring::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--card); }
.brand { font: 800 17px 'Plus Jakarta Sans', Inter, sans-serif; letter-spacing: -.01em; }
.scr { position: fixed; inset: 0; display: flex; flex-direction: column; }

/* ---------- pair + login ---------- */
.gate { background: radial-gradient(1200px 600px at 20% -10%, rgba(20, 184, 166, .25), transparent), radial-gradient(900px 600px at 110% 110%, rgba(124, 58, 237, .3), transparent), var(--navy); color: #e2e8f0; align-items: center; justify-content: center; padding: 20px; overflow: auto; }
.gate .box { width: min(560px, 100%); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: 26px; backdrop-filter: blur(8px); }
.gate .box.wide { width: min(980px, 100%); }
.gate h1 { font: 800 24px 'Plus Jakarta Sans', Inter, sans-serif; margin: 14px 0 4px; color: #fff; }
.gate p { margin: 0 0 16px; color: #a5b4cf; }
.gate .hd { display: flex; align-items: center; gap: 10px; }
.gate .hd .r { margin-left: auto; font-size: 12.5px; color: #a5b4cf; text-align: right; }
.gate .ring::after { background: var(--navy); }
.codein { width: 100%; height: 64px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .25); color: #fff; font: 800 34px ui-monospace, Menlo, monospace; letter-spacing: .35em; text-align: center; outline: none; }
.codein:focus { border-color: #60a5fa; }
.gin { width: 100%; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .2); color: #fff; padding: 0 12px; font: inherit; outline: none; }
.gbtn { height: 52px; border-radius: 14px; font-weight: 800; font-size: 16px; width: 100%; margin-top: 14px; }
.gerr { min-height: 22px; color: #fca5a5; font-weight: 600; margin-top: 10px; }
.gate details summary { cursor: pointer; color: #a5b4cf; margin-top: 14px; font-size: 13px; }
.staffgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 6px 0 16px; max-height: 52vh; overflow: auto; padding: 2px; }
.stf { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.stf:active, .stf:hover { background: rgba(255, 255, 255, .13); }
.stf .av { width: 54px; height: 54px; font-size: 18px; }
.stf small { color: #a5b4cf; font-weight: 500; }
.av { border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--g); flex: none; }
.idrow { display: flex; gap: 10px; align-items: center; }
.idrow .gin { max-width: 200px; text-align: center; font-weight: 700; letter-spacing: .1em; }
.pinwrap { display: flex; flex-direction: column; align-items: center; }
.pinwho { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 18px; }
.pinwho .av { width: 64px; height: 64px; font-size: 22px; }
.dots { display: flex; gap: 16px; margin: 18px 0 8px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); }
.dots i.on { background: #fff; border-color: #fff; }
.dots.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 12px; margin-top: 10px; }
.pad button { height: 64px; border-radius: 16px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 24px; font-weight: 700; }
.pad button:active { background: rgba(255, 255, 255, .2); }
.pad button.sm { font-size: 14px; color: #a5b4cf; }
.linkb { color: #93c5fd; font-weight: 600; margin-top: 14px; }

/* ---------- sell ---------- */
.sell { background: var(--card); }
.tb { height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); flex: none; }
.srch { flex: 1; max-width: 620px; position: relative; }
.srch input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); padding: 0 40px 0 42px; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.srch input:focus { border-color: #60a5fa; background: var(--card); }
.srch .ic { position: absolute; left: 15px; top: 11px; opacity: .55; pointer-events: none; }
.srch .x { position: absolute; right: 8px; top: 7px; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); }
.tb .info { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.net { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.net i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.net.off i { background: var(--bad); }
.net.q i { background: #f59e0b; }
.me { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.me .av { width: 32px; height: 32px; font-size: 12px; }
.body { flex: 1; display: flex; min-height: 0; }
.cart { width: 440px; border-right: 1px solid var(--line); display: flex; flex-direction: column; flex: none; }
.mode { margin: 12px 14px 0; padding: 8px 12px; border-radius: 12px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.mode.refund { background: var(--t5); color: var(--bad); }
.lines { flex: 1; overflow: auto; padding: 4px 14px; }
.empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; gap: 8px; padding: 20px; }
.empty b { color: var(--ink); font-size: 16px; }
.ln { display: flex; gap: 10px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.ln:hover { background: var(--soft); }
.ln.flash { animation: flash .6s; }
@keyframes flash { from { background: rgba(20, 184, 166, .25); } to { background: transparent; } }
.ln .q { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--card); font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; }
.ln .q.kg { background: #0d9488; color: #fff; }
.ln .t { flex: 1; min-width: 0; font-weight: 600; }
.ln .t div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln .t small { display: block; color: var(--muted); font-weight: 500; }
.ln .t small s { opacity: .7; }
.ln .t small .dc { color: var(--ok); font-weight: 700; }
.ln b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.img { border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: rgba(15, 23, 42, .55); overflow: hidden; flex: none; background: var(--t0); }
:root[data-theme="dark"] .img { color: rgba(226, 232, 240, .6); }
.img img { width: 100%; height: 100%; object-fit: cover; }
.ln .img { width: 42px; height: 42px; font-size: 15px; }
.tot { padding: 10px 16px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tot div { display: flex; justify-content: space-between; padding: 2px 0; color: var(--muted); }
.tot .dc { color: var(--ok); }
.tot .b { color: var(--ink); font-weight: 800; font-size: 22px; padding-top: 4px; }
.co { margin: 0 14px 14px; height: 62px; border-radius: 16px; font-size: 19px; font-weight: 800; flex: none; }
.co:disabled { opacity: .4; cursor: default; }
.right { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chips { display: flex; gap: 8px; padding: 12px 16px 4px; overflow-x: auto; flex: none; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 13px; white-space: nowrap; flex: none; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.chips.sub { padding-top: 6px; }
.chips.sub .chip { height: 30px; font-size: 12.5px; font-weight: 600; }
.chips.sub .chip.on { background: var(--t4); color: var(--ink); border-color: #93c5fd; }
.chip.on { background: var(--ink); color: var(--card); border-color: transparent; }
.grid { flex: 1; overflow: auto; padding: 12px 16px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; align-content: start; }
.tile { height: 104px; border-radius: 16px; padding: 12px 14px; font-weight: 700; font-size: 14px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; position: relative; overflow: hidden; color: var(--ink); }
.tile small { font-weight: 500; font-size: 12px; opacity: .78; display: block; }
.tile .ic { font-size: 24px; line-height: 1; }
.tile:active { transform: scale(.98); }
.tile.dk { background: var(--navy) !important; color: #fff; }
.tile.dk small { color: #cbd5e1; }
.prod { height: 104px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0; display: flex; text-align: left; overflow: hidden; position: relative; }
.prod .img { width: 62px; height: 100%; border-radius: 0; font-size: 22px; }
.prod .pi { flex: 1; min-width: 0; padding: 10px 10px 8px; display: flex; flex-direction: column; justify-content: space-between; }
.prod .pn { font-weight: 700; font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: none; }
.prod .pp { font-weight: 800; font-size: 15px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.prod .pp small { font-weight: 600; font-size: 11px; color: var(--muted); }
.prod .pp .kg { color: #0d9488; }
.prod.so { opacity: .55; }
.prod .badge, .tile .badge { position: absolute; top: 8px; right: 8px; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--bad); color: #fff; }
.prod .stk { font-size: 11px; color: var(--muted); font-weight: 600; }
.prod .stk.low { color: var(--warn); }
.sec { grid-column: 1 / -1; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 6px 2px 0; margin-bottom: -4px; }
.foot { padding: 6px 16px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); display: flex; gap: 14px; flex: none; }

/* ---------- sheets ---------- */
.ov { position: fixed; inset: 0; background: rgba(2, 6, 23, .55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sh { background: var(--card); color: var(--ink); border-radius: 22px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow); padding: 20px; animation: up .18s; }
.sh.wide { width: min(860px, 100%); }
@keyframes up { from { transform: translateY(16px); opacity: 0; } }
.sh h2 { margin: 0 0 4px; font: 800 20px 'Plus Jakarta Sans', Inter, sans-serif; display: flex; align-items: center; gap: 10px; }
.sh h2 .x { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); font-size: 18px; }
.sh .sub { color: var(--muted); margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.btn { height: 50px; border-radius: 14px; padding: 0 18px; font-weight: 800; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.btn.big { height: 60px; font-size: 17px; }
.btn.pri { background: var(--g); color: #fff; border: 0; }
.btn.red { color: var(--bad); }
.btn.ok { background: var(--ok); color: #fff; border: 0; }
.btn:disabled { opacity: .4; }
.inp { width: 100%; height: 50px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); padding: 0 14px; font: inherit; font-size: 18px; font-weight: 700; outline: none; }
.inp:focus { border-color: #60a5fa; }
.lab { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 12px 0 6px; display: block; }
.kp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.kp button { height: 56px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); font-size: 22px; font-weight: 700; }
.kp button:active { background: var(--line); }
.big-amt { font: 800 44px 'Plus Jakarta Sans', Inter, sans-serif; text-align: center; margin: 4px 0; font-variant-numeric: tabular-nums; }
.seg { display: flex; background: var(--soft); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; height: 40px; border-radius: 9px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.qa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.qa button { height: 54px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 800; font-size: 17px; }
.payl { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--soft); border-radius: 10px; margin-bottom: 6px; font-weight: 600; }
.menu button.mi { display: flex; width: 100%; align-items: center; gap: 12px; padding: 13px 10px; border-radius: 12px; font-weight: 700; text-align: left; }
.menu button.mi:hover { background: var(--soft); }
.menu button.mi span { font-size: 20px; width: 28px; text-align: center; }
.menu button.mi small { display: block; font-weight: 500; color: var(--muted); }
.styles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.styles button { border: 2px solid var(--line); border-radius: 14px; padding: 12px; text-align: left; font-weight: 700; }
.styles button.on { border-color: #3b82f6; }
.styles button small { display: block; color: var(--muted); font-weight: 500; }
.list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.list > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: center; }
.list > div:first-child { border-top: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; z-index: 80; box-shadow: var(--shadow); max-width: 90vw; animation: up .18s; }
.toast.bad { background: var(--bad); }
.done { text-align: center; }
.done .tick { width: 76px; height: 76px; border-radius: 50%; margin: 6px auto 10px; display: grid; place-items: center; font-size: 38px; color: #fff; background: var(--ok); }

/* ---------- product cards (Classic keypad + Tablet) ---------- */
.grid { grid-auto-rows: max-content; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; text-align: left; position: relative; overflow: hidden; }
.pcard .img { height: 104px; width: 100%; font-size: 26px; border-radius: 10px; }
.pcard .img img { object-fit: contain; background: #fff; }
.pcard .pn { font-weight: 700; font-size: 12.5px; line-height: 1.25; margin-top: 7px; height: 31px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .pr { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 6px; }
.pcard .pp { font-weight: 800; font-size: 14.5px; display: flex; gap: 5px; align-items: baseline; flex-wrap: wrap; }
.pcard .pp small { font-weight: 600; font-size: 10.5px; color: var(--muted); }
.pcard .pp .kg { color: #0d9488; }
.pcard .add { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 17px; flex: none; }
.pcard.so { opacity: .55; }
.pcard .badge { position: absolute; top: 12px; right: 12px; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--bad); color: #fff; }
.pcard:active { transform: scale(.98); }
.prod .img img { object-fit: contain; background: #fff; }
.ln .img img { object-fit: contain; background: #fff; }

/* ---------- Classic keypad ---------- */
.st-keypad .cart.kpc { width: 430px; background: var(--card); }
.st-keypad { background: var(--bg); }
.st-keypad .right { background: var(--bg); }
.tabn { padding: 6px 12px; border-radius: 8px; background: var(--t1); color: #5b21b6; font-weight: 700; font-size: 12.5px; }
.kl { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.kl .t { font-weight: 600; min-width: 0; }
.kl .t small { display: block; color: var(--muted); font-weight: 500; }
.kl .t small s { opacity: .7; } .kl .dc { color: var(--ok); font-weight: 700; }
.kl b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.kl.sel { background: var(--t1); box-shadow: inset 4px 0 0 #7c3aed; }
.st-keypad .lines { padding: 0; }
.st-keypad .tot { text-align: right; }
.kpad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 10px 6px; flex: none; }
.kpad button { height: 50px; border: 1px solid var(--line); background: var(--card); border-radius: 9px; font-size: 18px; font-weight: 700; }
.kpad button.w { font-size: 13px; }
.kpad button.on { background: var(--t1); border-color: #c4b5fd; color: #5b21b6; }
.kpad button:active { background: var(--soft); }
.kact { display: flex; gap: 6px; padding: 0 10px 10px; flex: none; }
.kact button { flex: 1; height: 56px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); font-weight: 700; }
.kact button.pay { flex: 1.7; font-size: 17px; border: 0; }
.kact button:disabled { opacity: .45; }

/* ---------- Express lane ---------- */
.st-express { background: var(--navy); color: #e2e8f0; }
.tb.dark { background: var(--navy2); border-color: rgba(255, 255, 255, .08); color: #fff; }
.tb.dark .brand small { font: 600 12px Inter, sans-serif; color: #94a3b8; margin-left: 4px; }
.tb.dark .srch input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .15); color: #fff; }
.tb.dark .me { color: #fff; border-color: rgba(255, 255, 255, .2); }
.tb.dark .ring::after { background: var(--navy2); }
.tb.dark .info { color: #94a3b8; }
.body.ex { gap: 12px; padding: 12px; }
.exlist { flex: 1; min-width: 0; background: var(--card); color: var(--ink); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.exlist .mode { margin: 10px 12px 0; }
.exhd, .exr { display: grid; grid-template-columns: 44px minmax(0, 1fr) 90px 100px 110px; gap: 6px; padding: 10px 16px; }
.exhd { background: var(--soft); font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.exhd span:nth-child(n+3), .exr b { text-align: right; }
.exlist .lines { padding: 0; }
.exr { border-bottom: 1px solid var(--line); font-size: 16px; cursor: pointer; align-items: baseline; }
.exr .t { font-weight: 600; min-width: 0; }
.exr .t small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.exr .t small .dc { color: var(--ok); }
.exr b { font-variant-numeric: tabular-nums; }
.exr.sel { background: #ecfdf5; box-shadow: inset 4px 0 0 #10b981; }
:root[data-theme="dark"] .exr.sel { background: #0f2e25; }
.exentry { margin-top: auto; padding: 12px 16px; background: var(--soft); border-top: 1px solid var(--line); display: flex; gap: 14px; align-items: center; font-size: 15px; }
.exentry #entry { flex: 1; height: 46px; border: 2px dashed #94a3b8; border-radius: 10px; display: flex; align-items: center; padding: 0 14px; color: var(--muted); font-weight: 600; }
.exentry.typing #entry { border-style: solid; border-color: #3b82f6; color: var(--ink); font-size: 20px; font-weight: 800; }
.exentry .mut { font-size: 13px; max-width: 40%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exres { position: absolute; left: 0; right: 0; top: 0; bottom: 71px; background: var(--card); z-index: 3; grid-template-columns: 1fr; grid-auto-rows: max-content; gap: 0; padding: 0; overflow: auto; box-shadow: 0 8px 20px rgba(0, 0, 0, .12); }
.prow { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
.prow .t { font-weight: 600; min-width: 0; } .prow .t small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.prow b { white-space: nowrap; display: flex; gap: 6px; align-items: baseline; } .prow b small { color: var(--muted); font-size: 11px; }
.prow:hover { background: var(--soft); } .prow.so { opacity: .55; }
.exside { width: 460px; display: flex; flex-direction: column; gap: 10px; flex: none; }
.exbig { background: var(--navy2); border-radius: 14px; padding: 14px 18px; }
.exbig .mut { color: #94a3b8; font-size: 13px; }
.exbig .tt { font: 800 56px/1.05 'Plus Jakarta Sans', Inter, sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.exbig .sv { color: #a7f3d0; font-size: 13px; margin-top: 2px; }
.exkeys { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; min-height: 0; }
.exkeys button { border-radius: 10px; background: #1e2a5a; color: #fff; font-size: 20px; font-weight: 700; min-height: 44px; }
.exkeys button:active { filter: brightness(1.3); }
.exkeys .y { background: #713f12; font-size: 15px; } .exkeys .rd { background: #7f1d1d; font-size: 15px; } .exkeys .c { background: #14532d; font-size: 17px; }
.exkeys .wide { grid-column: span 2; font-size: 22px; } .exkeys .cash { background: #15803d; }
.st-express .foot { color: #94a3b8; border-color: rgba(255, 255, 255, .08); }

/* ---------- Tablet ---------- */
.st-tablet { background: var(--bg); }
.body.tab { min-height: 0; }
.trail { width: 96px; background: var(--navy); display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 6px; overflow-y: auto; flex: none; scrollbar-width: none; }
.trail::-webkit-scrollbar { display: none; }
.trail .c { width: 80px; min-height: 66px; padding: 6px 4px; border-radius: 14px; color: #cbd5e1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 600; gap: 3px; line-height: 1.15; text-align: center; flex: none; }
.trail .c span { font-size: 22px; }
.trail .c.on { background: linear-gradient(135deg, #14b8a6, #7c3aed); color: #fff; }
.trail .ring::after { background: var(--navy); }
.tmid { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.thello { display: flex; align-items: center; gap: 14px; padding: 14px 18px 4px; flex-wrap: wrap; }
.thello h2 { margin: 0; font: 800 20px 'Plus Jakarta Sans', Inter, sans-serif; }
.thello .mut { font-size: 12.5px; }
.thello .srch { margin-left: auto; max-width: 360px; }
.thello .info { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.st-tablet .chips.sub { padding: 8px 18px 0; }
.st-tablet .grid { padding: 12px 18px 16px; }
.tright { width: 400px; background: var(--card); border-left: 1px solid var(--line); display: flex; flex-direction: column; flex: none; }
.tright .lines { padding: 6px 14px; }
.tright .ln .q { background: var(--t1); color: #5b21b6; }
.tpay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 14px; }
.tpay button { height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); font-weight: 700; }
.tpay .w { grid-column: 1 / -1; height: 60px; border: 0; font-size: 18px; font-weight: 800; }
.tpay button:disabled { opacity: .45; }

/* ---------- receipt (80mm printer) ---------- */
#receipt { display: none; }
@media print {
  @page { size: 80mm auto; margin: 0; }
  html, body { height: auto; overflow: visible; background: #fff !important; }
  body > *:not(#receipt) { display: none !important; }
  #receipt { display: block; width: 72mm; margin: 0 auto; padding: 2mm 0 6mm; color: #000; font: 11.5px/1.35 ui-monospace, "Courier New", monospace; }
  #receipt .c { text-align: center; }
  #receipt .h { font: 800 15px Inter, Arial, sans-serif; }
  #receipt .r { display: flex; justify-content: space-between; gap: 6px; }
  #receipt .r span:first-child { overflow: hidden; }
  #receipt hr { border: 0; border-top: 1px dashed #000; margin: 5px 0; }
  #receipt .b { font-weight: 800; font-size: 14px; }
  #receipt .s { padding-left: 3mm; }
}
@media (max-width: 1100px) {
  .exside { width: 380px; }
  .tright { width: 340px; }
  .thello .srch { max-width: 260px; }
}
@media (max-width: 1000px) {
  .cart, .st-keypad .cart.kpc { width: 360px; }
  .exhd, .exr { grid-template-columns: 34px minmax(0, 1fr) 70px 80px 90px; padding: 9px 12px; }
  .tb .info .till { display: none; }
}
@media (max-width: 760px) {
  .body { flex-direction: column; }
  .cart, .st-keypad .cart.kpc { width: auto; height: 46%; border-right: 0; border-bottom: 1px solid var(--line); }
  .body.ex { padding: 8px; }
  .exside { width: auto; }
  .exkeys { grid-auto-rows: 46px; flex: none; }
  .trail { width: auto; flex-direction: row; padding: 8px; overflow-x: auto; overflow-y: hidden; }
  .trail .ring { display: none; }
  .tright { width: auto; height: 44%; border-left: 0; border-top: 1px solid var(--line); order: 3; }
  .tb .brand { display: none; }
}
