/* The Sampoorna - shared styles for the customer site and the staff panel.
   Colours are tokens on :root. Light is the default; dark follows the phone/computer setting. */
:root {
  --bg: #F2F4EE; --surface: #FFFFFF; --soft: #E8EEE1; --ink: #14231A; --muted: #5B6A60; --line: #D6DDD0;
  --leaf: #1F6B3B; --leaf-ink: #FFFFFF; --chili: #C0301D; --tag: #FFE08A; --tag-ink: #3A2C00;
  --good-bg: #DDF0E2; --good: #17613A; --warn-bg: #FFEFC2; --warn: #7A5200; --bad-bg: #FBE1DC; --bad: #A4281A; --info-bg: #E1ECFB; --info: #1B4F9C; --viol-bg: #ECE6FA; --viol: #4A3AA7;
  --offer-green: #D5EBDA; --offer-yellow: #FFE9A6; --offer-red: #F8D3CC; --offer-blue: #D3E3F8; --offer-ink: #14231A;
  --c1: #2A78D6; --c2: #EB6834; --overlay: rgba(10, 20, 14, .5);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1611; --surface: #16221A; --soft: #1D2B21; --ink: #EAF1E6; --muted: #9DB0A2; --line: #29392E;
    --leaf: #5BBE7B; --leaf-ink: #0B1A10; --chili: #FF8068; --tag: #4A3E0C; --tag-ink: #FFE9A8;
    --good-bg: #173B26; --good: #8FE0AB; --warn-bg: #4A3A0A; --warn: #FFD97A; --bad-bg: #4A1D17; --bad: #FFA89A; --info-bg: #15304F; --info: #9CC5FF; --viol-bg: #2B2550; --viol: #BDB4F5;
    --offer-green: #1D4A2C; --offer-yellow: #54430C; --offer-red: #55241D; --offer-blue: #1A3A5E; --offer-ink: #EAF1E6;
    --c1: #3987E5; --c2: #D95926; --overlay: rgba(0, 0, 0, .65);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1611; --surface: #16221A; --soft: #1D2B21; --ink: #EAF1E6; --muted: #9DB0A2; --line: #29392E;
  --leaf: #5BBE7B; --leaf-ink: #0B1A10; --chili: #FF8068; --tag: #4A3E0C; --tag-ink: #FFE9A8;
  --good-bg: #173B26; --good: #8FE0AB; --warn-bg: #4A3A0A; --warn: #FFD97A; --bad-bg: #4A1D17; --bad: #FFA89A; --info-bg: #15304F; --info: #9CC5FF; --viol-bg: #2B2550; --viol: #BDB4F5;
  --offer-green: #1D4A2C; --offer-yellow: #54430C; --offer-red: #55241D; --offer-blue: #1A3A5E; --offer-ink: #EAF1E6;
  --c1: #3987E5; --c2: #D95926; --overlay: rgba(0, 0, 0, .65);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.45; padding-inline: 16px; padding-block: 0 24px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--leaf); }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1240px; margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stack { display: grid; gap: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* header */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); margin-inline: -16px; padding: 10px 16px; }
.hdr-in { max-width: 1240px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.brand { display: flex; align-items: baseline; gap: 10px; margin-right: auto; min-width: 0; }
.brand b { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.brand span { color: var(--muted); font-size: 13px; }
.locchip { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 6px 14px; font-weight: 700; }
.locchip small { font-weight: 500; color: var(--muted); }

/* buttons, segmented, pills */
.btn { border: 1.5px solid var(--ink); background: transparent; border-radius: 10px; padding: 9px 16px; font-weight: 700; }
.btn:hover { background: var(--soft); }
.btn.primary { background: var(--leaf); border-color: var(--leaf); color: var(--leaf-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { border-color: var(--chili); color: var(--chili); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.sm { padding: 5px 11px; font-size: 13.5px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.link { border: 0; padding: 4px 6px; color: var(--leaf); text-decoration: underline; background: transparent; }
.seg { display: inline-flex; background: var(--soft); border-radius: 10px; padding: 3px; gap: 2px; max-width: 100%; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.seg.full { display: flex; }
.seg.full button { flex: 1; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pill.placed { background: var(--info-bg); color: var(--info); } .pill.confirmed { background: var(--good-bg); color: var(--good); }
.pill.packing { background: var(--warn-bg); color: var(--warn); } .pill.dispatched { background: var(--viol-bg); color: var(--viol); }
.pill.delivered { background: var(--good-bg); color: var(--good); } .pill.cancelled { background: var(--bad-bg); color: var(--bad); }
.pill.paid { background: var(--good-bg); color: var(--good); } .pill.pending { background: var(--warn-bg); color: var(--warn); }
.pill.refund_due { background: var(--bad-bg); color: var(--bad); } .pill.refunded { background: var(--soft); color: var(--muted); }
.pill.approved { background: var(--good-bg); color: var(--good); } .pill.rejected { background: var(--bad-bg); color: var(--bad); }
.pill.online { background: var(--info-bg); color: var(--info); } .pill.counter { background: var(--viol-bg); color: var(--viol); }

/* forms */
.field { display: grid; gap: 4px; min-width: 0; }
.field > label, .lab { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.field input, .field textarea, .field select, .inp { width: 100%; border: 1.5px solid var(--line); background: var(--bg); border-radius: 8px; padding: 9px 11px; min-width: 0; }
.field input:focus, .field textarea:focus, .field select:focus, .inp:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--leaf) 25%, transparent); }
.form { display: grid; gap: 10px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--leaf); }
.err { color: var(--chili); font-weight: 600; font-size: 14px; }
.note { color: var(--muted); font-size: 13px; }
.msg { border-radius: 10px; padding: 10px 12px; background: var(--soft); }
.msg.warn { background: var(--warn-bg); color: var(--warn); } .msg.good { background: var(--good-bg); color: var(--good); } .msg.bad { background: var(--bad-bg); color: var(--bad); }

/* location gate */
.gate { padding-block: 40px 24px; display: grid; gap: 26px; max-width: 980px; margin-inline: auto; }
.gate h1 { font-weight: 800; font-size: clamp(34px, 6vw, 58px); line-height: 1.02; max-width: 16ch; }
.gate .lead { margin-top: 12px; color: var(--muted); max-width: 54ch; font-size: 17px; }
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.area { text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; min-width: 0; transition: border-color .15s, transform .15s; }
.area:hover { border-color: var(--leaf); transform: translateY(-2px); }
.area b { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.area span { color: var(--muted); font-size: 13px; }

/* offers (ads) */
.offers { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scroll-snap-type: x proximity; }
.offer { flex: 0 0 min(300px, 82%); scroll-snap-align: start; border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; align-content: start; color: var(--offer-ink); }
.offer.green { background: var(--offer-green); } .offer.yellow { background: var(--offer-yellow); } .offer.red { background: var(--offer-red); } .offer.blue { background: var(--offer-blue); }
.offer h3 { font-size: 19px; font-weight: 800; }
.offer p { font-size: 14px; }
.offer .code { justify-self: start; border: 1.5px dashed currentColor; border-radius: 8px; padding: 2px 10px; font-weight: 800; letter-spacing: .08em; background: transparent; }
.offer .where { font-size: 12.5px; font-weight: 700; opacity: .8; }

/* shop */
.shop { display: grid; gap: 24px; padding-block: 18px 90px; align-items: start; }
@media (min-width: 960px) { .shop { grid-template-columns: minmax(0, 1fr) 380px; padding-bottom: 24px; } }
.tools { display: grid; gap: 12px; margin-bottom: 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip { flex: none; border: 1.5px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--leaf); border-color: var(--leaf); color: var(--leaf-ink); }
.banner { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-bottom: 14px; }
.banner h2 { font-size: 26px; font-weight: 800; }
.banner span { color: var(--muted); font-size: 14px; }
.guestbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; background: var(--soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.editbar { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 10px; min-width: 0; align-content: start; }
.card.in { border-color: var(--leaf); }
.card.out { opacity: .6; }
.thumb { display: flex; align-items: center; gap: 10px; min-width: 0; }
.emo { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 26px; }
.nm { min-width: 0; }
.nm b { display: block; font-weight: 600; overflow-wrap: anywhere; line-height: 1.2; }
.nm small { color: var(--muted); font-size: 12.5px; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; }
.tag { background: var(--tag); color: var(--tag-ink); border-radius: 4px 10px 10px 4px; padding: 4px 10px 4px 12px; font-weight: 700; line-height: 1.1; position: relative; }
.tag::before { content: ""; position: absolute; left: 4px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--surface); }
.tag small { display: block; font-weight: 500; font-size: 11.5px; opacity: .85; }
.hidden-price { font-size: 13px; color: var(--muted); }
.low { font-size: 12px; color: var(--chili); font-weight: 700; }
.add { border: 1.5px solid var(--leaf); color: var(--leaf); background: transparent; border-radius: 8px; padding: 7px 14px; font-weight: 700; }
.add:hover { background: var(--leaf); color: var(--leaf-ink); }
.add:disabled { opacity: .5; cursor: not-allowed; }
.step { display: inline-flex; align-items: center; background: var(--leaf); color: var(--leaf-ink); border-radius: 8px; }
.step button { border: 0; background: transparent; color: inherit; width: 32px; height: 34px; font-size: 18px; font-weight: 700; }
.step output { min-width: 34px; text-align: center; font-weight: 700; font-size: 14px; }
.empty { color: var(--muted); padding: 30px 0; }

/* bill */
.bill { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 14px; min-width: 0; }
@media (min-width: 960px) { .bill { position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 100px); overflow-y: auto; } }
@media (max-width: 959px) {
  .bill { position: fixed; inset: 0; z-index: 40; border-radius: 0; border: 0; overflow-y: auto; align-content: start; transform: translateY(100%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .bill.open { transform: none; visibility: visible; transition: transform .22s ease; }
}
.bill-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bill-h h2 { font-size: 22px; font-weight: 800; }
@media (min-width: 960px) { .mob { display: none !important; } }
.lines { border-top: 1.5px dashed var(--line); border-bottom: 1.5px dashed var(--line); }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 9px 0; border-bottom: 1px dotted var(--line); }
.line:last-child { border-bottom: 0; }
.line b { font-weight: 600; overflow-wrap: anywhere; }
.line .amt { font-weight: 700; text-align: right; }
.line small { color: var(--muted); }
.line .ctl { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mini { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; }
.mini button { border: 0; background: transparent; width: 30px; height: 28px; font-weight: 700; }
.mini output { min-width: 34px; text-align: center; font-size: 13px; font-weight: 600; }
.tot { display: grid; gap: 6px; }
.tot > div { display: flex; justify-content: space-between; gap: 12px; }
.tot .grand { border-top: 1.5px solid var(--ink); padding-top: 8px; margin-top: 4px; font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.hint { color: var(--leaf); font-size: 13px; font-weight: 600; }
.rcpt { border: 1.5px dashed var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 6px; font-size: 14px; }
.rcpt .r { display: flex; justify-content: space-between; gap: 10px; }
.rcpt .r span:first-child { min-width: 0; overflow-wrap: anywhere; }
.qrbox { background: #fff; border-radius: 12px; padding: 8px; width: min(240px, 100%); margin-inline: auto; border: 1px solid var(--line); }
.qrbox svg { display: block; width: 100%; height: auto; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); }
.bar[hidden] { display: none !important; }
@media (min-width: 960px) { .bar { display: none !important; } }
.bar button { width: 100%; display: flex; justify-content: space-between; border: 0; background: var(--leaf); color: var(--leaf-ink); border-radius: 12px; padding: 13px 16px; font-weight: 700; }

/* my orders */
.orders { padding-block: 20px 60px; display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.orders > h2 { font-size: 28px; font-weight: 800; }
.ocard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 12px; min-width: 0; }
.ocard header { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.ocard header b { font-family: var(--font-display); font-size: 19px; }
.tl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.tl div { text-align: center; font-size: 12px; color: var(--muted); display: grid; gap: 6px; justify-items: center; }
.tl i { display: block; width: 100%; height: 6px; border-radius: 3px; background: var(--line); }
.tl .done i { background: var(--leaf); } .tl .done { color: var(--ink); font-weight: 600; }
.tl .now i { background: var(--leaf); box-shadow: 0 0 0 3px color-mix(in srgb, var(--leaf) 30%, transparent); }
.olines { display: grid; gap: 4px; font-size: 14px; }
.olines div { display: flex; justify-content: space-between; gap: 10px; }
.olines span:first-child { min-width: 0; overflow-wrap: anywhere; }
details.hist summary { cursor: pointer; font-weight: 600; font-size: 14px; }
details.hist ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }

/* modal + toast */
.modal-back { position: fixed; inset: 0; z-index: 100; background: var(--overlay); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { background: var(--surface); color: var(--ink); border-radius: 16px; padding: 20px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; display: grid; gap: 14px; }
.modal.wide { width: min(860px, 100%); }
.modal h2 { font-size: 24px; font-weight: 800; }
.modal .mhead { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.plist { display: grid; gap: 6px; }
.plist div { display: flex; align-items: center; gap: 10px; }
.plist .emo { width: 34px; height: 34px; font-size: 19px; }
.toasts { position: fixed; left: 0; right: 0; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 200; display: grid; gap: 8px; justify-items: center; pointer-events: none; padding-inline: 16px; }
@media (min-width: 960px) { .toasts { bottom: 24px; } }
.toast { background: var(--ink); color: var(--bg); border-radius: 10px; padding: 10px 16px; font-weight: 600; max-width: 460px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.toast.bad { background: var(--chili); color: #fff; }
.foot { max-width: 1240px; margin: 30px auto 0; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .bill, .area { transition: none; } }

/* ---------------- staff panel ---------------- */
.staffwrap { max-width: 1240px; margin-inline: auto; padding-block: 16px 60px; display: grid; gap: 16px; }
.login { max-width: 420px; margin: 60px auto; display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.login h1 { font-size: 30px; font-weight: 800; }
.demo-keys { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: 13px; display: grid; gap: 4px; }
.demo-keys code { font-weight: 700; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.tabs button { flex: none; border: 0; background: transparent; padding: 9px 14px; font-weight: 700; color: var(--muted); border-radius: 8px 8px 0 0; border-bottom: 3px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--leaf); }
.tabs .badge { background: var(--chili); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; margin-left: 6px; }
.scope { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.scope .field { min-width: 150px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 14px; min-width: 0; }
.panel h2 { font-size: 22px; font-weight: 800; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--bg); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.tile .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.tile .v { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.tile .s { font-size: 12.5px; color: var(--muted); }
.twrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-size: 12.5px; color: var(--muted); font-weight: 700; background: var(--bg); white-space: nowrap; position: sticky; top: 0; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl input.inp { padding: 5px 8px; min-width: 70px; }
.tbl tr.dirty td { background: color-mix(in srgb, var(--tag) 35%, transparent); }
.two { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.chart .grid line { stroke: var(--line); }
.chart .on { fill: var(--c1); } .chart .co { fill: var(--c2); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.hbar { display: grid; grid-template-columns: minmax(80px, 150px) 1fr auto; gap: 8px; align-items: center; font-size: 13.5px; }
.hbar .tr { background: var(--soft); border-radius: 4px; height: 12px; }
.hbar .tr i { display: block; height: 100%; background: var(--c1); border-radius: 4px; }
.olist { display: grid; gap: 8px; }
.orow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-align: left; width: 100%; }
.orow:hover { border-color: var(--leaf); }
.orow .id { font-family: var(--font-display); font-weight: 700; }
.orow .who { min-width: 0; overflow-wrap: anywhere; }
.orow .amt { font-weight: 700; text-align: right; }
.orow .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; }
.edtbl input.inp { width: 92px; }
.cardlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.pcard { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; background: var(--bg); min-width: 0; }
.ofcard { border-radius: 12px; padding: 12px; display: grid; gap: 6px; color: var(--offer-ink); min-width: 0; }
.ofcard.green { background: var(--offer-green); } .ofcard.yellow { background: var(--offer-yellow); } .ofcard.red { background: var(--offer-red); } .ofcard.blue { background: var(--offer-blue); }
.keybox { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 20px; font-weight: 700; background: var(--soft); border-radius: 10px; padding: 12px; text-align: center; letter-spacing: .06em; user-select: all; overflow-wrap: anywhere; }
.pos { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .pos { grid-template-columns: minmax(0, 1fr) 360px; } }
.pos .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pos .card { padding: 10px; }
.pos .emo { width: 38px; height: 38px; font-size: 22px; }
.pos .card button.pick { all: unset; cursor: pointer; display: grid; gap: 8px; }
.pos .card button.pick:focus-visible { outline: 3px solid var(--leaf); outline-offset: 4px; border-radius: 8px; }
@media print { .hdr, .tabs, .scope, .noprint, .toasts { display: none !important; } body { background: #fff; color: #000; } }

/* printing a bill from the staff panel: show only the open dialog */
@media print {
  body > *:not(.modal-back) { display: none !important; }
  .modal-back { position: static; background: none; padding: 0; display: block; }
  .modal { width: 100%; max-height: none; padding: 0; box-shadow: none; }
  .modal .row, .modal [data-close] { display: none !important; }
}
.sticky-save { position: sticky; bottom: 0; background: var(--surface); padding-block: 10px; border-top: 1px solid var(--line); }
.cols2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

#om { display: grid; gap: 14px; }
.chart { min-width: 560px; max-height: 300px; }
