/* ARK Retail · Oat & Plum */
:root {
  --oat: #FAF6F0; --card: #FFFFFF; --line: #EFE7DC; --line2: #F3EDE4; --sand: #E6DDD0;
  --ink: #2A2140; --ink2: #4A3F5C; --muted: #6B6378; --plum: #5B45A8;
  --mint: #CDEEDF; --mint-ink: #1F6B4E;
  --peach: #FFD9C7; --peach-ink: #9C3A1E;
  --butter: #FFF0BF; --butter-ink: #7A5A00;
  --lilac: #E7E0FA; --lilac-ink: #4A3A8C; --lilac2: #CFC3F5;
  --head: 'Fredoka', system-ui, sans-serif;
  --body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--oat); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.45; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; line-height: 1.15; }
h1 { font-size: 28px; } h2 { font-size: 20px; } h3 { font-size: 17px; }
a { color: var(--plum); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: 13px; } .b { font-weight: 800; } .right { text-align: right; }
.num { font-family: var(--head); font-weight: 600; }
.hide { display: none !important; }

/* Buttons */
.btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--ink); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.soft { background: var(--line2); border-color: transparent; }
.btn.big { min-height: 56px; font-size: 16px; width: 100%; }
.btn.dash { border: 1.5px dashed var(--lilac2); background: #FBF9FF; color: var(--plum); }
.btn.danger { color: var(--peach-ink); }
.iconbtn { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--line2); font-size: 20px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.iconbtn.dark { background: var(--ink); color: #fff; }

/* Fields */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 800; color: var(--muted); }
.field input, .field select, .field textarea, .input { min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 600; color: var(--ink); width: 100%; }
.field textarea { padding: 12px 14px; min-height: 80px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* Pills */
.pill { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--line2); color: var(--ink2); }
.pill.mint { background: var(--mint); color: var(--mint-ink); }
.pill.peach { background: var(--peach); color: var(--peach-ink); }
.pill.butter { background: var(--butter); color: var(--butter-ink); }
.pill.lilac { background: var(--lilac); color: var(--lilac-ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 800; font-size: 14px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.tint-butter { background: var(--butter); border-color: transparent; }
.card.tint-lilac { background: var(--lilac); border-color: transparent; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat .num { font-size: 28px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }

/* Shell */
.shell { display: flex; min-height: 100vh; }
.side { flex: 0 0 232px; background: #fff; border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand .name { font-family: var(--head); font-weight: 600; font-size: 20px; line-height: 1; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a.on { background: var(--ink); color: #fff; font-weight: 800; }
.nav svg { width: 18px; height: 18px; flex: none; }
.navg { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.navh { display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding: 0 12px; border: 0; background: none; border-radius: 10px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.navh:hover { background: var(--line2); color: var(--ink); }
.navh svg { transition: transform .15s; }
.navg.open .navh svg { transform: rotate(180deg); }
.navg.here .navh { color: var(--plum); }
.navlist { display: none; flex-direction: column; gap: 2px; }
.navg.open .navlist { display: flex; }
.menubtn { display: none; }
.who { margin-top: auto; padding: 12px; border-radius: 18px; background: var(--lilac); display: flex; flex-direction: column; gap: 6px; }
.main { flex: 1; min-width: 0; padding: 26px clamp(16px, 3vw, 36px) 40px; display: flex; flex-direction: column; gap: 20px; }
.viewwrap { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
#subbar:empty { display: none; }
.subbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 18px; font-weight: 700; font-size: 14px; }
.subbar.warn { background: var(--butter); color: var(--butter-ink); }
.subbar.bad { background: var(--peach); color: var(--peach-ink); }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* Tables */
.tablewrap { overflow-x: auto; position: relative; }
.card, .nav, .search, .modal { position: relative; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 800; padding: 8px 6px; white-space: nowrap; }
td { padding: 12px 6px; border-top: 1px solid var(--line2); vertical-align: middle; }
tr.click { cursor: pointer; } tr.click:hover td { background: #FDFBF7; }
td.right, th.right { text-align: right; }

/* Till */
.till { display: flex; gap: 20px; align-items: flex-start; }
.till .menu { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 120px; padding: 14px; border-radius: 22px; border: 2px solid transparent; text-align: left; }
.tile.on { border-color: var(--ink); }
.tile .tname { font-weight: 800; line-height: 1.3; }
.tile .tprice { font-family: var(--head); font-weight: 600; font-size: 18px; }
.t0 { background: var(--butter); } .t1 { background: var(--lilac); } .t2 { background: var(--mint); } .t3 { background: var(--peach); }
.basket { flex: 0 0 390px; position: sticky; top: 20px; display: flex; flex-direction: column; gap: 0; padding: 0; max-height: calc(100vh - 116px); overflow: hidden; }
/* Three parts: order details, the dishes (their own scroll), and the total with the pay button (always visible) */
.bsetup { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 12px; border-bottom: 1px solid var(--line); flex: none; }
.bsetup h2 { display: flex; align-items: center; gap: 8px; }
.bsetup .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 0 2px; }
.bsetup .chips::-webkit-scrollbar { display: none; }
.bsetup .chip { min-height: 38px; padding: 0 14px; font-size: 13px; flex: none; }
.bsetup .field input, .bsetup .field select { min-height: 42px; }
.bsm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.brow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; }
.brow .input, .bsetup > .stack > .input { min-height: 42px; }
.bcustrow { padding: 6px 6px 6px 12px; border-radius: 14px; background: #FBF9FF; border: 1.5px solid var(--lilac2); }
.lines { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; flex: 1 1 auto; min-height: 150px; padding: 12px 18px; overscroll-behavior: contain; }
.lines .empty { margin: auto; }
.bfoot { display: flex; flex-direction: column; gap: 10px; padding: 12px 18px 18px; border-top: 1px solid var(--line); background: #fff; flex: none; border-radius: 0 0 22px 22px; }
.tbreak { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 10px 12px; border-radius: 16px; background: var(--oat); flex: none; }
.lname { font-size: 14px; line-height: 1.25; }
.lamt { font-size: 14px; text-align: right; }
.lprice { align-self: center; }
.lctl { display: flex; align-items: center; gap: 6px; }
.lctl .iconbtn { width: 38px; height: 38px; border-radius: 12px; }
.lctl .qtyin { width: 56px; height: 38px; }
.lnotebtn { text-align: left; background: none; border: 0; padding: 2px 0 0; color: var(--plum); font-weight: 800; font-size: 12.5px; min-height: 28px; }
.line .iconbtn { background: #fff; } .line .iconbtn.dark { background: var(--ink); }
.qtyin { width: 64px; height: 44px; flex: none; text-align: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 800; font-size: 15px; color: var(--ink); -moz-appearance: textfield; }
.qtyin::-webkit-outer-spin-button, .qtyin::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.totals { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 6px; }
.method { min-height: 48px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font-weight: 800; font-size: 13px; }
.method.on { border-color: var(--plum); background: var(--lilac); }
.search { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.search input { border: 0; outline: 0; flex: 1; background: transparent; font-size: 15px; min-width: 0; }

/* Bars */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.bars .bar { width: 100%; border-radius: 10px 10px 6px 6px; background: var(--lilac2); min-height: 3px; }
.bars .bar.peak { background: var(--ink); }
.bars .lab { font-size: 11px; font-weight: 700; color: var(--muted); }
.meter { height: 12px; border-radius: 999px; background: var(--line2); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 999px; background: var(--ink); }

/* Invoice */
.invoice { max-width: 720px; width: 100%; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(18px, 4vw, 32px); display: flex; flex-direction: column; gap: 20px; }
.sumbox { margin-left: auto; width: min(100%, 300px); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.balance { display: flex; justify-content: space-between; align-items: baseline; border-radius: 14px; padding: 10px 12px; background: var(--butter); }

/* Modal + toast */
.veil { position: fixed; inset: 0; background: rgba(42, 33, 64, .45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal { width: min(100%, 460px); max-height: 92vh; overflow: auto; background: #fff; border-radius: 26px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; width: min(92vw, 420px); }
.toast { padding: 12px 16px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 6px 24px rgba(42,33,64,.2); }
.toast.bad { background: #8A2F16; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 36px 16px; color: var(--muted); font-weight: 700; }
.tick { width: 68px; height: 68px; border-radius: 999px; background: var(--mint); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.switch { width: 56px; height: 32px; border-radius: 999px; border: 0; background: var(--sand); padding: 3px; display: flex; }
.switch > i { width: 26px; height: 26px; border-radius: 999px; background: #fff; display: block; }
.switch[aria-checked="true"] { background: var(--ink); justify-content: flex-end; }

/* Sign-in page */
.authwrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.authcard { width: min(100%, 440px); background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--oat); border-radius: 999px; }
.tabs button { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent; font-weight: 800; font-size: 14px; }
.tabs button.on { background: var(--ink); color: #fff; }
.note { padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 700; }
.note.ok { background: var(--mint); color: #1F4E3B; } .note.bad { background: var(--peach); color: #7A2C16; } .note.info { background: var(--lilac); color: var(--lilac-ink); }

/* Phone */
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  /* Phone: a Menu button opens the grouped menu as a panel */
  .side { position: sticky; top: 0; z-index: 30; height: auto; flex: none; width: 100%; min-width: 0; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .brand { flex: none; padding: 0; }
  .brand .sub, .who .small, .who .b { display: none; }
  .menubtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 800; font-size: 14px; color: var(--ink); }
  .side.open .menubtn { background: var(--ink); color: #fff; border-color: var(--ink); }
  .nav { display: none; order: 9; flex: 1 0 100%; max-height: 70vh; overflow-y: auto; padding: 6px 0 4px; border-top: 1px solid var(--line2); }
  .side.open .nav { display: flex; }
  .who { flex: none; margin: 0 0 0 auto; flex-direction: row; align-items: center; padding: 6px; background: transparent; }
  .till { flex-direction: column; align-items: stretch; }
  .basket { position: static; flex: none; width: 100%; max-height: none; overflow: visible; }
  .lines { max-height: 50vh; }
  .bfoot { position: sticky; bottom: 0; box-shadow: 0 -8px 20px rgba(42, 33, 64, .08); z-index: 2; }
  .grid2 { grid-template-columns: 1fr; }
  .methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kboard { grid-template-columns: 1fr; }
}

/* Reports */
.rp-head { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line2); }
table.rp td, table.rp th { white-space: nowrap; }
table.rp tfoot td { padding-top: 12px; }

/* Kitchen board, tables and line notes */
.line .lnote, .line .lnotebtn { grid-column: 1 / -1; }
.lnote { width: 100%; margin-top: 2px; padding: 6px 10px; font: 500 13px/1.3 'Nunito Sans', sans-serif; color: var(--ink);
  background: #fff; border: 1.5px dashed var(--line2); border-radius: 10px; }
.lnote:focus { outline: 2px solid var(--plum); outline-offset: 1px; border-style: solid; }
.kitchen { color: #F4F1FA; background: #1E1830; border-radius: 24px; padding: 20px; }
.kitchen .input { background: #fff; }
.kitchen h1, .kitchen h2 { color: #F4F1FA; }
.kmuted { color: #B9B2C9; }
.kboard { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.kcol { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 20px; background: #2A2140; min-height: 160px; }
.kcol h2 { display: flex; gap: 8px; align-items: center; font-size: 17px; margin: 0; }
.kcol .pill { background: rgba(255, 255, 255, .14); color: #F4F1FA; }
.kempty { padding: 18px; text-align: center; font-weight: 700; font-size: 14px; color: #8D86A0; }
.ticket { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: #fff; color: var(--ink); }
.ticket.late { box-shadow: 0 0 0 3px #E8663C; }
.kwhere { font: 700 17px/1.1 Fredoka, sans-serif; }
.kmins { font-weight: 800; font-size: 13px; color: #6B6378; }
.ticket.late .kmins { color: #9C3A1E; }
.kitems { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.knote { font-size: 13px; font-weight: 700; color: #7A2C16; background: #FFE8DC; border-radius: 8px; padding: 3px 8px; margin-top: 3px; }
.kbtn { justify-content: center; background: var(--plum); color: #fff; border-color: transparent; min-height: 46px; font-size: 15px; }
.kbtn:hover { background: #4A3A8C; }
.tgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tcard { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 16px; min-height: 108px; text-align: left; cursor: pointer;
  background: #fff; border: 2px solid var(--line2); border-radius: 20px; color: var(--ink); font-family: inherit; }
.tcard:hover { border-color: var(--plum); }
.tcard.busy { background: #FFF0BF; border-color: #E8C44A; }
.tnum { font: 700 24px/1 Fredoka, sans-serif; }

/* Kitchen history */
.ktabs .chip { background: rgba(255, 255, 255, .08); color: #F4F1FA; border-color: rgba(255, 255, 255, .16); }
.ktabs .chip.on { background: #fff; color: var(--ink); border-color: #fff; }
.kcount { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: rgba(42, 33, 64, .14); font-size: 12px; }
.ktabs .chip:not(.on) .kcount { background: rgba(255, 255, 255, .16); }
.kstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kstats > div { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: #2A2140; }
.kstats .num { font-size: 24px; color: #fff; }
.kdone { display: flex; flex-direction: column; gap: 8px; }
.kdrow { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #2A2140; }
.kprep { flex: none; font: 600 18px/1 Fredoka, sans-serif; padding: 8px 12px; border-radius: 12px; background: #CDEEDF; color: #1F6B4E; }
.kprep.slow { background: #FFD9C7; color: #9C3A1E; }

/* QR codes */
.qr svg { display: block; width: 100%; height: auto; }
.trackbox { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 18px; background: var(--oat); }
.trackbox .qr { width: 120px; flex: none; background: #fff; border-radius: 12px; padding: 4px; }
.qrsheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.qrcard { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 16px; text-align: center; background: #fff; border: 2px dashed var(--sand); border-radius: 22px; break-inside: avoid; }
.qrcard .qr { width: 180px; }

/* Printing: only the invoice or the report */
@media print {
  body { background: #fff; }
  .side, .noprint, .toasts, #modal { display: none !important; }
  .qrsheet { grid-template-columns: repeat(3, 1fr); gap: 10mm; }
  .qrcard { border: 1px dashed #999; }
  .main { padding: 0; }
  .invoice { border: 0; border-radius: 0; max-width: none; padding: 0; }
  .card.report { border: 0; border-radius: 0; padding: 0; }
  .card.report .tablewrap { overflow: visible; }
  table.rp { font-size: 10.5px; }
  table.rp td, table.rp th { padding: 5px 4px; white-space: normal; }
  .pill { border: 1px solid #ccc; }
  body.printing-report { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@page { margin: 12mm; }

/* Phones and small tablets: kitchen columns stack, history rows wrap */
@media (max-width: 900px) {
  .kboard { grid-template-columns: 1fr; }
  .kitchen { padding: 16px; }
  .kdrow { flex-wrap: wrap; }
  .trackbox { flex-direction: column; align-items: flex-start; }
}

/* At a glance */
.glance { display: flex; flex-direction: column; gap: 16px; }
.gbig { display: flex; flex-direction: column; gap: 6px; }
.gnum { font-size: clamp(34px, 8vw, 48px); line-height: 1.05; }
.gdiff { padding: 2px 8px; border-radius: 999px; font-weight: 800; }
.gdiff.up { background: var(--mint); color: var(--mint-ink); }
.gdiff.down { background: var(--peach); color: var(--peach-ink); }
.gtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gtile { display: flex; flex-direction: column; gap: 4px; padding: 14px; }
.gtile .num { font-size: 18px; }
.gneed { background: var(--peach); border-color: transparent; display: flex; flex-direction: column; gap: 10px; }
.glinks { display: flex; flex-wrap: wrap; gap: 8px; }
.glinks a { padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--peach-ink); font-weight: 800; text-decoration: none; }
.gcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.grow-row { padding: 10px 12px; border-radius: 14px; background: var(--oat); color: var(--ink); text-decoration: none; }
a.grow-row:hover { background: var(--line2); }
@media (max-width: 600px) {
  .gtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gcols { grid-template-columns: 1fr; }
}

/* Plan & billing, loyalty, connections */
.feat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.feat li.off { color: var(--muted); }
.feat li.on { color: var(--ink); }
.plangrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plan { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; border: 2px solid var(--line); }
.plan.current { border-color: var(--plum); background: #FBF9FF; }
.meter.full i { background: var(--peach-ink); }
.paybox { padding: 14px; border-radius: 14px; background: var(--lilac); color: var(--lilac-ink); font-weight: 700; white-space: normal; }
.keybox { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px; border-radius: 14px; background: var(--ink); }
.keybox code { color: #CDEEDF; font-size: 13px; word-break: break-all; flex: 1 1 240px; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.cstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cstats > div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; background: var(--oat); }
.cstats .num { font-size: 20px; }
.cpoints { padding: 14px; border-radius: 16px; background: var(--lilac); color: var(--lilac-ink); }
.ptsrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 14px; background: var(--lilac); color: var(--lilac-ink); }

/* Super Admin console */
.sa { max-width: 1280px; margin: 0 auto; padding: 18px clamp(16px, 3vw, 32px) 40px; display: flex; flex-direction: column; gap: 20px; }
.sahead { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sastats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }


/* Offline till */
.netbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; margin-bottom: 12px; border-radius: 18px; font-weight: 700; font-size: 14px; background: var(--lilac); color: var(--lilac-ink); }
.netbar.off { background: var(--ink); color: #fff; }
.netbar.off .pill { background: var(--butter); color: var(--butter-ink); }
.netbar.bad { background: var(--peach); color: var(--peach-ink); }
.qrow { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; background: var(--oat); }
.qrow.bad { background: #FFF1EB; }

/* Faster till */
.quick { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.quick:empty { display: none; }
.qbtn { flex: none; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px dashed var(--sand); background: #fff; font-weight: 800; font-size: 13px; color: var(--ink); white-space: nowrap; }
.qbtn:hover { border-color: var(--plum); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.splitbox { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--lilac); color: var(--lilac-ink); }
.splitbox .field { color: var(--lilac-ink); font-size: 13px; }
.splitbox .field input { min-height: 42px; }
.camwrap { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.camwrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.camaim { position: absolute; left: 12%; right: 12%; top: 30%; bottom: 30%; border: 3px solid rgba(255,255,255,.9); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); }

/* Paystack */
.paystack { padding: 14px; border-radius: 16px; background: var(--mint); color: var(--mint-ink); gap: 10px; }

/* Thermal receipt (58 / 80 mm) */
#rcprint { display: none; }
.rcpt { font-family: 'Nunito Sans', Arial, sans-serif; color: #000; font-size: 11.5px; line-height: 1.35; }
.rcpt.w80 { width: 72mm; }
.rcpt.w58 { width: 48mm; font-size: 10.5px; }
.rcpt .rc-head { text-align: center; }
.rcpt .rc-name { font-family: 'Fredoka', Arial, sans-serif; font-size: 16px; font-weight: 600; }
.rcpt .rc-line { border-top: 1px dashed #000; margin: 6px 0; }
.rcpt .rr { display: flex; justify-content: space-between; gap: 6px; }
.rcpt .rr span:last-child { text-align: right; white-space: nowrap; }
.rcpt .rc-item { margin-bottom: 3px; }
.rcpt .rc-item > div:first-child { font-weight: 700; }
.rcpt .rc-total { font-weight: 800; font-size: 1.15em; }
.rcpt .rc-void { text-align: center; font-weight: 800; border: 2px solid #000; margin: 4px 0; }
.rcpt .rc-small { font-size: .85em; text-align: center; }
.rcpt .rc-foot { text-align: center; font-weight: 700; margin-top: 4px; }
.rcpt .rc-qr { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rcpt .rc-qr svg { width: 26mm; height: 26mm; }
@media print {
  body.printing-receipt > *:not(#rcprint) { display: none !important; }
  body.printing-receipt #rcprint { display: block; }
  body.printing-receipt { background: #fff; }
}
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }
.sellsearch { flex: 0 1 420px; flex-wrap: nowrap; min-width: 0; max-width: 100%; }
.sellsearch .search { min-width: 0; }
.sellsearch .search input { min-width: 0; width: 100%; }
.menu { min-width: 0; }

/* Install as an app */
.installlink { background: none; border: 0; padding: 6px 0; min-height: 36px; font: inherit; font-weight: 800; font-size: 14px; color: var(--plum); text-align: left; cursor: pointer; }
.installlink:hover { text-decoration: underline; }
.installhelp { margin: 0; color: var(--muted); }
.arkmark { display: block; flex: none; border-radius: 50%; }
