:root {
  --navy-900: #04142F; --navy-800: #071F44; --navy-700: #0A2D5C; --navy-600: #12407D; --navy-100: #E6EDF7;
  --sun: #FFB020; --sun-deep: #F2611C; --sun-soft: #FFF3DC;
  --sea: #3FB6E8;
  --bg: #F2F5FA; --panel: #FFFFFF; --line: #DEE4EE; --line-2: #EDF1F7;
  --ink: #0E1B2E; --ink-2: #4A5A72; --ink-3: #8090A6;
  --ok: #12965A; --ok-soft: #E3F6EC; --bad: #D33A2C; --bad-soft: #FDECEA; --warn: #B76E00; --warn-soft: #FFF4DE;
  --r: 14px; --r-sm: 9px;
  --shadow: 0 1px 2px rgba(10,30,60,.06), 0 4px 16px rgba(10,30,60,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.01em; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.err { color: var(--bad); min-height: 1.2em; font-weight: 500; }
.link { background: none; border: 0; color: var(--navy-600); padding: 0; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-sm);
  padding: 10px 16px; font-weight: 600; min-height: 42px; transition: background .12s, border-color .12s, transform .05s; white-space: nowrap; }
.btn:hover { border-color: #c4cfdf; background: #F8FAFD; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn.primary:hover { background: var(--navy-600); }
.btn.sun { background: linear-gradient(180deg, #FFC244, var(--sun)); border-color: #E89C10; color: #3A2200; }
.btn.sun:hover { background: linear-gradient(180deg, #FFCB5C, #FFB52E); }
.btn.danger { color: var(--bad); border-color: #F2C2BD; }
.btn.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.big { min-height: 58px; font-size: 17px; border-radius: 12px; }
.btn.sm { min-height: 32px; padding: 5px 10px; font-size: 13px; }
.field { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm); padding: 10px 12px; font-size: 15px; font-weight: 500; color: var(--ink); min-height: 42px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(18,64,125,.25); border-color: var(--navy-600); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--navy-700); }

/* ---------- sign in ---------- */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 110%, #E8742A 0%, rgba(232,116,42,0) 40%), linear-gradient(180deg, #061633 0%, #0B2F63 55%, #1E4F8F 100%); }
.login-art { position: absolute; inset: auto 0 0 0; height: 46%; pointer-events: none; }
.login-art .sun { position: absolute; left: 50%; bottom: 52%; width: 340px; height: 340px; margin-left: -170px; border-radius: 50%;
  background: radial-gradient(circle, #FFE066 0%, #FFB020 48%, #F2611C 72%, rgba(242,97,28,0) 73%); opacity: .55; filter: blur(.5px); }
.login-art .waves { position: absolute; inset: 48% 0 0 0; background: #051A3A; }
.login-art .waves i { display: block; height: 4px; margin: 18px -5%; border-radius: 4px; background: rgba(127,211,247,.35); transform: skewX(-20deg); }
.login-card { position: relative; width: min(560px, 100%); background: rgba(255,255,255,.97); border-radius: 22px; padding: 30px 28px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.35); text-align: center; }
.login-logo { height: 76px; max-width: 100%; }
.login-station { margin: 8px 0 22px; color: var(--ink-2); font-weight: 600; letter-spacing: .02em; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.staff-tile { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 10px; text-align: left; display: flex; gap: 10px; align-items: center; transition: border-color .12s, box-shadow .12s; }
.staff-tile:hover { border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(18,64,125,.1); }
.avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-family: var(--display); color: #fff; background: var(--navy-700); }
.avatar.supervisor { background: #6B4BD8; } .avatar.admin { background: var(--sun-deep); }
.staff-tile b { display: block; font-size: 14px; } .staff-tile small { color: var(--ink-3); text-transform: capitalize; }
.pin-box h2 { font-size: 22px; margin: 6px 0 14px; }
.back { display: block; margin: 0 auto; }
.pin-dots { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--navy-600); }
.pin-dots i.on { background: var(--navy-600); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 300px; margin: 0 auto; }
.keypad button { min-height: 58px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 22px; font-weight: 600; font-family: var(--display); }
.keypad button:hover { background: var(--navy-100); }
.keypad button.wide { font-size: 15px; }
.keypad button.go { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.device-field { display: flex; justify-content: center; gap: 8px; align-items: center; margin-top: 18px; color: var(--ink-3); font-size: 12px; }
.device-field input { border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px; width: 140px; font-size: 12px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 0 18px; height: 62px;
  background: linear-gradient(90deg, var(--navy-900), var(--navy-700)); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { height: 38px; }
.brand b { font-family: var(--display); letter-spacing: .04em; font-size: 16px; display: block; line-height: 1.1; }
.brand span { font-size: 11px; color: #A9BCDA; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav button { background: none; border: 0; color: #C6D4EA; padding: 9px 13px; border-radius: 9px; font-weight: 600; white-space: nowrap; font-size: 14px; }
.nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav button.on { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 -2px 0 var(--sun); }
.who { display: flex; align-items: center; gap: 12px; }
.pill { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.12); white-space: nowrap; }
.pill.ok { background: rgba(18,150,90,.25); color: #9FF0C4; } .pill.off { background: rgba(255,176,32,.2); color: #FFD27A; }
.clock { font-family: var(--mono); font-size: 13px; color: #A9BCDA; }
.user-btn { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; padding: 7px 12px; border-radius: 9px; font-weight: 600; white-space: nowrap; }
main { padding: 18px; max-width: 1600px; margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.panel-pad { padding: 16px; }
.panel h2 { font-size: 17px; }
.panel h3 { font-size: 15px; }

/* ---------- selling ---------- */
.sell { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
.tabs { display: inline-flex; background: #E5EBF4; padding: 4px; border-radius: 11px; gap: 2px; }
.tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 8px; font-weight: 600; color: var(--ink-2); }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pumps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.pump { padding: 14px; position: relative; overflow: hidden; }
.pump::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--sun), var(--sun-deep)); }
.pump-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pump-head h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.pump-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--navy-100); display: grid; place-items: center; }
.pump-icon svg { width: 18px; height: 18px; color: var(--navy-700); }
.nozzles { display: grid; gap: 8px; }
.nozzle { --c: #888; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; padding: 10px 12px; min-height: 66px; transition: border-color .12s, box-shadow .12s, transform .05s; }
.nozzle:hover:not(:disabled) { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.nozzle:active:not(:disabled) { transform: scale(.99); }
.nozzle:disabled { cursor: not-allowed; opacity: .5; background: #F7F9FC; }
.nozzle .tag { width: 44px; height: 44px; border-radius: 11px; background: var(--c); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 20px; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.nozzle b { display: block; font-size: 15px; }
.nozzle small { color: var(--ink-3); font-size: 12px; }
.nozzle .price { font-family: var(--mono); font-weight: 700; font-size: 15px; text-align: right; }
.nozzle .price small { display: block; font-family: var(--font); font-weight: 500; }
.shop-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.chip.on { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.product { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.product:hover { border-color: var(--navy-600); }
.product b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.product .num { font-weight: 700; color: var(--navy-700); }
.product small { color: var(--ink-3); font-size: 12px; }
.product.low small { color: var(--warn); font-weight: 600; }
.product:disabled { opacity: .45; }

.cart { position: sticky; top: 80px; display: flex; flex-direction: column; max-height: calc(100vh - 98px); }
.cart-head { padding: 14px 16px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; }
.cart-lines { overflow: auto; flex: 1; min-height: 120px; }
.cart-empty { padding: 34px 20px; text-align: center; color: var(--ink-3); }
.cart-empty svg { width: 46px; height: 46px; color: #C5D0E0; margin-bottom: 6px; }
.cline { display: grid; grid-template-columns: 6px 1fr auto 28px; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line-2); }
.cline .bar { width: 6px; align-self: stretch; border-radius: 3px; background: var(--c, #CBD5E1); }
.cline b { font-size: 14px; display: block; }
.cline small { color: var(--ink-3); font-size: 12px; }
.cline .num { font-weight: 700; }
.x { width: 28px; height: 28px; border-radius: 7px; border: 0; background: none; color: var(--ink-3); font-size: 18px; line-height: 1; }
.x:hover { background: var(--bad-soft); color: var(--bad); }
.cart-meta { padding: 12px 16px; border-top: 1px solid var(--line-2); display: grid; gap: 8px; background: #FAFBFD; }
.cart-meta .grid2 { gap: 8px; }
.cart-meta .input { min-height: 38px; padding: 7px 10px; font-size: 14px; }
.reg { text-transform: uppercase; font-family: var(--mono); font-weight: 700; letter-spacing: .04em; }
.acct-note { font-size: 12px; color: var(--ink-2); background: var(--sun-soft); border-radius: 8px; padding: 6px 9px; }
.totals { padding: 12px 16px; border-top: 1px solid var(--line-2); display: grid; gap: 4px; }
.totals div { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.totals .grand { font-size: 26px; color: var(--ink); font-weight: 700; font-family: var(--display); margin-top: 4px; align-items: baseline; }
.totals .grand .num { font-family: var(--display); }
.paybar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 16px; }
.paybar .btn { min-height: 54px; font-size: 16px; }
.pay-ico { width: 20px; height: 20px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(4,20,47,.55); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(2px); }
.modal-card { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal-card.wide { width: min(860px, 100%); }
.modal-card.narrow { width: min(420px, 100%); }
.m-head { padding: 18px 20px 12px; display: flex; align-items: center; gap: 12px; }
.m-head h2 { font-size: 19px; flex: 1; }
.m-body { padding: 4px 20px 16px; display: grid; gap: 14px; }
.m-foot { padding: 14px 20px 18px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.fuel-head { --c: #888; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); color: #fff; border-radius: 18px 18px 0 0; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.fuel-head .tag { width: 52px; height: 52px; border-radius: 13px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 24px; }
.fuel-head h2 { font-size: 21px; } .fuel-head p { margin: 2px 0 0; opacity: .9; font-size: 14px; }
.fuel-head .x { color: #fff; margin-left: auto; } .fuel-head .x:hover { background: rgba(255,255,255,.2); color: #fff; }
.display { background: var(--navy-900); color: #fff; border-radius: 14px; padding: 14px 18px; text-align: right; position: relative; }
.display .lbl { position: absolute; left: 16px; top: 12px; font-size: 12px; color: #8FA6C8; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.display .val { font-family: var(--mono); font-size: 40px; font-weight: 700; line-height: 1.2; min-height: 48px; }
.display .sub { font-family: var(--mono); color: var(--sun); font-size: 17px; font-weight: 700; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quick button { border: 1px solid var(--line); background: #F7F9FC; border-radius: 9px; padding: 9px 4px; font-weight: 700; font-family: var(--mono); font-size: 14px; }
.quick button:hover { border-color: var(--navy-600); background: #fff; }
.keypad.fuel { max-width: none; width: 100%; margin: 0; }
.keypad.fuel button { min-height: 54px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #E5EBF4; border-radius: 11px; padding: 4px; gap: 3px; }
.seg button { border: 0; background: none; border-radius: 8px; padding: 9px; font-weight: 700; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.due { display: flex; justify-content: space-between; align-items: baseline; background: var(--navy-100); border-radius: 12px; padding: 12px 16px; }
.due b { font-family: var(--display); font-size: 28px; }
.pay-list { display: grid; gap: 6px; }
.pay-item { display: flex; justify-content: space-between; align-items: center; background: var(--ok-soft); border-radius: 9px; padding: 8px 12px; font-weight: 600; }
.change { text-align: center; background: var(--ok-soft); color: var(--ok); border-radius: 12px; padding: 12px; font-weight: 700; font-size: 18px; }
.mpesa-status { text-align: center; padding: 16px; border-radius: 12px; background: #F2FBF5; color: #13703F; font-weight: 600; }
.mpesa-status.fail { background: var(--bad-soft); color: var(--bad); }
.spinner { width: 28px; height: 28px; border: 3px solid rgba(19,112,63,.2); border-top-color: #13703F; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- tables, cards ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #FAFBFD; white-space: nowrap; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr.click { cursor: pointer; } .t tr.click:hover td { background: #F6F9FD; }
.t .r { text-align: right; } .t td.r { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.t tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--navy-100); color: var(--navy-700); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 6px; vertical-align: -1px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 14px 16px; }
.kpi small { color: var(--ink-3); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.kpi b { display: block; font-family: var(--display); font-size: 25px; margin-top: 4px; }
.kpi span { font-size: 12px; color: var(--ink-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; }
.stack { display: grid; gap: 14px; }
.var-pos { color: var(--ok); } .var-neg { color: var(--bad); }
.hbar { height: 10px; border-radius: 5px; background: var(--line-2); overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--c, var(--navy-600)); border-radius: 5px; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 130px; padding-top: 6px; }
.hours div { background: linear-gradient(180deg, var(--sun), var(--sun-deep)); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.hours-x { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; font-size: 10px; color: var(--ink-3); text-align: center; margin-top: 4px; }

/* tanks */
.tank { padding: 16px; display: grid; grid-template-columns: 92px 1fr; gap: 16px; }
.gauge { --c: #888; --p: 50%; position: relative; height: 170px; border-radius: 16px; background: #EEF2F8; border: 2px solid #D6DEEA; overflow: hidden; }
.gauge i { position: absolute; inset: auto 0 0 0; height: var(--p); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c)); transition: height .4s; }
.gauge i::before { content: ""; position: absolute; inset: -5px 0 auto 0; height: 10px; background: radial-gradient(ellipse at center, rgba(255,255,255,.55), transparent 70%); }
.gauge .reo { position: absolute; left: 0; right: 0; border-top: 2px dashed rgba(211,58,44,.7); }
.gauge span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.tank h3 { font-size: 17px; display: flex; gap: 8px; align-items: center; }
.tank dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 10px 0; font-size: 13px; }
.tank dt { color: var(--ink-3); } .tank dd { margin: 0; font-family: var(--mono); font-weight: 600; text-align: right; white-space: nowrap; }
.tank dl { font-size: 12.5px; }

.empty { padding: 30px; text-align: center; color: var(--ink-3); }
.sub-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.notice { background: var(--warn-soft); color: #7A4A00; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.notice.info { background: var(--navy-100); color: var(--navy-700); }
.price-card { padding: 16px; position: relative; overflow: hidden; }
.price-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--c); }
.price-card .big { font-family: var(--display); font-size: 34px; font-weight: 700; }

/* toast */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: calc(100% - 32px); }
.toast.bad { background: var(--bad); }

/* ---------- receipt ---------- */
.receipt { font-family: "Courier New", var(--mono); font-size: 12px; line-height: 1.35; color: #000; background: #fff; width: 72mm; margin: 0 auto; padding: 4mm 0; }
.receipt.w58 { width: 48mm; font-size: 10px; }
.receipt .c { text-align: center; }
.receipt .logo { display: block; width: 18mm; margin: 0 auto 2mm; }
.receipt.w58 .logo { width: 14mm; }
.receipt .hdr { white-space: pre; text-align: center; font-weight: 700; }
.receipt .hdr .co { font-size: 1.25em; }
.receipt hr { border: 0; border-top: 1px dashed #000; margin: 2mm 0; }
.receipt .ln { display: flex; justify-content: space-between; gap: 6px; }
.receipt .ln span:last-child { text-align: right; white-space: nowrap; }
.receipt .it { margin: 1.2mm 0; }
.receipt .it b { display: block; }
.receipt .tot { font-size: 1.35em; font-weight: 700; }
.receipt .b { font-weight: 700; }
.receipt .bc { display: block; width: 100%; height: 12mm; margin-top: 2mm; }
.receipt .void { border: 2px solid #000; text-align: center; font-weight: 700; font-size: 1.4em; padding: 1mm; margin: 2mm 0; }
.receipt-wrap { background: #EEF1F6; border-radius: 12px; padding: 14px; max-height: 58vh; overflow: auto; }
.receipt-wrap .receipt { box-shadow: 0 2px 10px rgba(0,0,0,.12); padding: 5mm 4mm; width: calc(72mm + 8mm); }
.receipt-wrap .receipt.w58 { width: calc(48mm + 8mm); }
#printArea { display: none; }

@media print {
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; }
  #printArea .receipt { padding: 0; box-shadow: none; }
  #printArea .report { width: 100%; font-family: var(--font); font-size: 11px; }
  body { background: #fff; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .sell { grid-template-columns: minmax(0,1fr) 360px; } .clock { display: none; } }
@media (max-width: 920px) {
  .sell { grid-template-columns: 1fr; }
  .cart { position: static; max-height: none; }
  .top { height: auto; flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .nav { order: 3; flex-basis: 100%; }
  .brand span { max-width: 160px; }
}
@media (max-width: 560px) {
  main { padding: 12px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .tank { grid-template-columns: 70px 1fr; }
  .login-card { padding: 22px 16px; }
  .pill { display: none; }
  .quick { grid-template-columns: repeat(4, 1fr); }
}
