/* Jari Shop: modern, phone-first. Deep teal brand, soft cards, icon tiles, floating bottom bar. */
:root {
  --brand: #0d9488; --brand-strong: #0f766e; --brand-deep: #0b3b43; --brand-soft: #e6f6f4;
  --ink: #0f1f1e; --muted: #5d6f6e; --line: #e3ebea; --bg: #f2f6f6; --surface: #fff;
  --ok: #15803d; --ok-bg: #dcfce7; --bad: #b91c1c; --bad-bg: #fee2e2; --warn: #92400e; --warn-bg: #fef3c7;
  --c-received: #64748b; --c-diagnosing: #2563eb; --c-waiting_parts: #d97706; --c-repairing: #7c3aed; --c-ready: #15803d; --c-collected: #475569; --c-cancelled: #b91c1c;
  --radius: 18px; --radius-sm: 12px; --tap: 2.75rem; --bar-h: 4.5rem;
  --shadow: 0 1px 2px rgb(15 40 38 / .05), 0 8px 24px rgb(15 40 38 / .06);
  --ring: 0 0 0 3px rgb(13 148 136 / .3);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif; color: var(--ink); line-height: 1.45; -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); -webkit-tap-highlight-color: transparent; }
h1 { font-size: 1.3rem; margin: 0; letter-spacing: -.02em; }
h2 { font-size: 1.1rem; margin: .25rem 0 .6rem; letter-spacing: -.01em; }
h3 { font-size: 1rem; margin: .2rem 0 .5rem; }
p { margin: .4rem 0; }
.muted, small { color: var(--muted); }
.grow { flex: 1 1 auto; min-inline-size: 0; }
.right { text-align: end; flex: none; }
.err { color: var(--bad); font-weight: 600; }
.flag { color: var(--warn); font-weight: 600; }

.shell { max-width: 40rem; margin: 0 auto; padding: 0 .9rem calc(var(--bar-h) + 2rem + env(safe-area-inset-bottom)); }
main { padding-block-start: .75rem; animation: rise .22s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main { animation: none; } * { transition: none !important; } }
.card { background: var(--surface); border-radius: var(--radius); padding: 1rem; margin: .8rem 0; border: 1px solid var(--line); box-shadow: var(--shadow); }
.row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.daybar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .5rem 0; }

/* Header */
header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .35rem; margin-inline: -.9rem; padding: calc(.55rem + env(safe-area-inset-top)) .9rem .55rem; background: rgb(242 246 246 / .88); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: .55rem; padding: 0; min-block-size: 0; border: 0; background: none; font-weight: 700; font-size: 1.05rem; }
.logo { display: inline-grid; place-items: center; inline-size: 2rem; block-size: 2rem; border-radius: .7rem; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; font-weight: 800; }
.shopname { max-inline-size: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { position: relative; display: inline-grid; place-items: center; inline-size: 2.6rem; block-size: 2.6rem; min-block-size: 0; padding: 0; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); color: var(--ink); }
.badge { position: absolute; inset-block-start: -.2rem; inset-inline-end: -.2rem; min-inline-size: 1.15rem; block-size: 1.15rem; padding: 0 .25rem; border-radius: 99px; background: #ef4444; color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }

/* Forms */
label { display: block; margin: .75rem 0; font-size: .82rem; font-weight: 600; color: var(--muted); }
input, select, textarea { display: block; width: 100%; min-block-size: var(--tap); padding: .6rem .8rem; margin-top: .25rem; font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input[type='checkbox'] { display: inline-block; inline-size: 1.2rem; min-block-size: 0; block-size: 1.2rem; margin-inline-end: .5rem; vertical-align: middle; accent-color: var(--brand); }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-block-size: var(--tap); padding: .5rem 1rem; margin: .2rem .25rem .2rem 0; font: inherit; font-weight: 600; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; touch-action: manipulation; }
button:active, .btn:active { transform: scale(.98); }
button.primary, .btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-strong)); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgb(13 148 136 / .3); }
button.big, .btn.big { width: 100%; min-block-size: 3.3rem; font-size: 1.05rem; margin-inline: 0; }
button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
button.link { border: 0; background: none; min-block-size: 0; padding: .2rem; color: var(--brand-strong); }
.item:disabled { opacity: .5; }

/* Login */
.login { max-width: 24rem; margin: 0 auto; padding: 3rem 1rem 2rem; }
.login-brand { text-align: center; margin-bottom: 1rem; }
.login-brand .logo { inline-size: 3.6rem; block-size: 3.6rem; font-size: 1.7rem; border-radius: 1.1rem; }
.login-brand h1 { margin-top: .6rem; font-size: 1.6rem; }
.login-brand p { color: var(--muted); }

/* Home */
.hero { position: relative; overflow: hidden; margin: .25rem 0 1rem; padding: 1.2rem 1.2rem 1.3rem; border-radius: 22px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #14b8a6 0%, transparent 55%), linear-gradient(135deg, #0f766e, var(--brand-deep)); box-shadow: 0 12px 30px rgb(11 59 67 / .28); }
.hero small { color: rgb(255 255 255 / .8); font-size: .9rem; }
.hero-num { margin-top: .3rem; font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-sub { color: rgb(255 255 255 / .85); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.action { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .1rem; margin: 0; padding: .9rem; min-block-size: 7rem; text-align: start; border-radius: var(--radius); box-shadow: var(--shadow); }
.action small { font-weight: 400; }
.tile-icon { flex: none; display: inline-grid; place-items: center; inline-size: 2.6rem; block-size: 2.6rem; margin-bottom: .35rem; border-radius: .85rem; background: var(--brand-soft); color: var(--brand-strong); }
.item .tile-icon { margin-bottom: 0; }
.tile-icon.ok { background: var(--ok-bg); color: var(--ok); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 1.3rem 0 .4rem; }
.section-head h2 { margin: 0; }
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.stage { flex-direction: column; gap: 0; min-block-size: 4.4rem; margin: 0; padding: .55rem .2rem; border-radius: 14px; border: 0; border-block-end: 4px solid var(--c); background: #fff; box-shadow: var(--shadow); }
.stage b { font-size: 1.4rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stage span { font-size: .66rem; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.15; }
.s-received { --c: var(--c-received); } .s-diagnosing { --c: var(--c-diagnosing); } .s-waiting_parts { --c: var(--c-waiting_parts); } .s-repairing { --c: var(--c-repairing); } .s-ready { --c: var(--c-ready); }
.empty { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: 1.2rem; color: var(--muted); text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty p { margin: 0; }

/* Lists */
.item, .note { display: flex; align-items: center; justify-content: flex-start; gap: .75rem; width: 100%; min-block-size: 3.6rem; margin: .5rem 0; padding: .7rem .85rem; text-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 400; }
.item.static { justify-content: space-between; }
.item strong, .note strong { font-weight: 650; }
.note { border-inline-start: 4px solid #cbd5d5; }
.note.high { border-inline-start-color: #f59e0b; background: #fffbeb; }
.note-icon { flex: none; display: grid; place-items: center; inline-size: 2.4rem; block-size: 2.4rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); }
.note.high .note-icon { background: var(--warn-bg); color: var(--warn); }
.pill, .tag { display: inline-block; padding: .12rem .65rem; border-radius: 99px; font-size: .72rem; font-weight: 700; background: #e8eded; color: #3f4f4f; white-space: nowrap; }
.tag.paid { background: var(--ok-bg); color: var(--ok); } .tag.overdue { background: var(--bad-bg); color: var(--bad); } .tag.open { background: var(--warn-bg); color: var(--warn); }
.pill.st-received { background: #e2e8f0; color: #334155; } .pill.st-diagnosing { background: #dbeafe; color: #1d4ed8; } .pill.st-waiting_parts { background: var(--warn-bg); color: var(--warn); }
.pill.st-repairing { background: #ede9fe; color: #6d28d9; } .pill.st-ready { background: var(--ok-bg); color: var(--ok); } .pill.st-collected, .pill.st-cancelled { background: #e8eded; color: #475569; }
.tile-icon.st-received { background: #e2e8f0; color: #334155; } .tile-icon.st-diagnosing { background: #dbeafe; color: #1d4ed8; } .tile-icon.st-waiting_parts { background: var(--warn-bg); color: var(--warn); }
.tile-icon.st-repairing { background: #ede9fe; color: #6d28d9; } .tile-icon.st-ready { background: var(--ok-bg); color: var(--ok); }
.warn { background: var(--warn-bg); border: 1px solid #f59e0b; border-radius: var(--radius-sm); padding: .7rem; margin: .6rem 0; }

.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin: .5rem 0; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: -.9rem; padding: .2rem .9rem .5rem; scrollbar-width: none; }
.chips button { flex: none; min-block-size: 2.4rem; margin: 0; padding: .3rem .85rem; border-radius: 99px; font-size: .88rem; }
.chips button.on { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.count { display: inline-grid; place-items: center; min-inline-size: 1.3rem; block-size: 1.3rem; padding: 0 .3rem; border-radius: 99px; background: rgb(0 0 0 / .08); font-size: .72rem; }
.chips button.on .count { background: rgb(255 255 255 / .25); }

/* Repair progress steps */
.steps { display: flex; justify-content: space-between; margin: .4rem 0 .2rem; padding: 0; list-style: none; position: relative; }
.steps::before { content: ''; position: absolute; inset-inline: 8%; inset-block-start: .85rem; block-size: 3px; background: var(--line); }
.steps li { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; font-size: .68rem; font-weight: 600; color: var(--muted); text-align: center; }
.steps .dot { display: grid; place-items: center; inline-size: 1.75rem; block-size: 1.75rem; border-radius: 50%; background: #fff; border: 2px solid var(--line); font-size: .75rem; }
.steps li.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps li.now .dot { border-color: var(--brand); color: var(--brand-strong); box-shadow: 0 0 0 4px rgb(13 148 136 / .18); }
.steps li.now { color: var(--ink); }

/* Cart, tables */
.cartline { display: flex; align-items: center; gap: .5rem; padding: .55rem 0; border-block-end: 1px solid var(--line); }
.stepper { display: inline-flex; align-items: center; gap: .4rem; }
.stepper button { min-inline-size: var(--tap); padding: 0; margin: 0; }
.priceinput { inline-size: 6rem; margin: 0; text-align: end; }
.totalrow { font-size: 1.2rem; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 .75rem; }
@media (min-width: 30rem) { .grid2 { grid-template-columns: 1fr 1fr; } }
table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: .5rem 0; }
th, td { padding: .5rem .4rem; border-block-end: 1px solid var(--line); text-align: start; }
.num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; margin: .75rem 0; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; box-shadow: var(--shadow); color: var(--muted); font-size: .85rem; }
.tile b { display: block; margin-block-start: .2rem; color: var(--ink); font-size: 1.35rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

/* Bottom bar */
.tabs { position: fixed; z-index: 30; inset-inline: .75rem; inset-block-end: calc(.6rem + env(safe-area-inset-bottom)); display: flex; max-width: 38rem; margin-inline: auto; padding: .3rem; background: rgb(255 255 255 / .94); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 30px rgb(15 40 38 / .16); }
.tabs button { flex: 1 1 0; min-inline-size: 0; flex-direction: column; gap: .1rem; min-block-size: 3.4rem; margin: 0; padding: .35rem .1rem; border: 0; border-radius: 16px; background: transparent; color: var(--muted); font-size: .7rem; }
.tabs button.on { background: var(--brand-soft); color: var(--brand-strong); }

/* Notifications sheet */
.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgb(10 25 24 / .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 40rem; max-height: 85vh; overflow-y: auto; padding: 1rem .9rem calc(1rem + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--bg); animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }

/* Customer tracking page */
.track { max-width: 28rem; margin: 0 auto; padding: 0 .9rem 2rem; }
.track-hero { margin: 0 -.9rem .5rem; padding: 2rem 1.4rem 2.4rem; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #14b8a6, transparent 55%), linear-gradient(135deg, #0f766e, var(--brand-deep)); border-radius: 0 0 28px 28px; }
.track-hero h1 { margin: .3rem 0; font-size: 2rem; }
.track-hero small, .track-hero p { color: rgb(255 255 255 / .88); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .5rem; }
.product-grid .item { margin: 0; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: .3rem; min-block-size: 5rem; }
.pos { display: block; } .pos-cart .card { margin-block-start: .8rem; }
@media (min-width: 64rem) { .pos { display: grid; grid-template-columns: 1fr 24rem; gap: 1.2rem; align-items: start; } .pos-cart { position: sticky; top: 4.2rem; } .pos-cart .card { margin-block-start: 0; } }

/* Dashboard */
.dash { display: grid; gap: .8rem; }
.dash > * { min-inline-size: 0; }
.dash .hero, .dash .card { margin: 0; }
.section-head { margin-block-start: .6rem; }
.chart-card h3 { margin: 0; }
.chart { display: flex; align-items: flex-end; gap: .5rem; block-size: 8.5rem; margin-block-start: .6rem; }
.bar { flex: 1 1 0; min-inline-size: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; block-size: 100%; gap: .2rem; }
.bar small { font-size: .68rem; line-height: 1; white-space: nowrap; }
.bar-val { max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; min-block-size: .7rem; }
.bar-fill { display: block; inline-size: 100%; max-inline-size: 2.6rem; border-radius: 8px 8px 3px 3px; background: #99d6cf; flex: 0 0 auto; }
.bar.today .bar-fill { background: linear-gradient(180deg, var(--brand), var(--brand-strong)); }
.bar.today small:last-child { color: var(--brand-strong); font-weight: 700; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
.kpis .tile { margin: 0; text-align: start; display: block; min-block-size: 0; font-weight: 400; }
.side-brand, .tabs .desk { display: none; }

/* Wide screens: sidebar and a filled dashboard */
@media (min-width: 64rem) {
  .shell { max-width: none; margin: 0; margin-inline-start: 15.5rem; padding: 0 2rem 2rem; }
  header { margin-inline: -2rem; padding-inline: 2rem; }
  header .brand { visibility: hidden; }
  .tabs { inset: 0 auto 0 0; inline-size: 15.5rem; max-width: none; margin: 0; flex-direction: column; gap: .2rem; padding: 1rem .8rem; border-radius: 0; border-width: 0 1px 0 0; background: #fff; backdrop-filter: none; box-shadow: none; }
  .side-brand { display: flex; align-items: center; gap: .6rem; padding: .2rem .6rem 1.1rem; font-weight: 800; font-size: 1.15rem; }
  .tabs .desk { display: flex; }
  .tabs button { flex: none; flex-direction: row; justify-content: flex-start; gap: .75rem; min-block-size: 2.9rem; padding: .5rem .8rem; font-size: .95rem; text-align: start; }
  main.wide, main { max-width: 78rem; }
  main:not(.wide) { max-width: 60rem; }
  .dash { grid-template-columns: repeat(12, 1fr); gap: 1rem; align-items: stretch; }
  .dash .hero { grid-column: span 5; display: flex; flex-direction: column; justify-content: center; }
  .dash .hero-num { font-size: 3rem; }
  .dash .chart-card { grid-column: span 7; }
  .dash .chart { block-size: 9.5rem; }
  .dash .kpis { grid-column: span 12; grid-template-columns: repeat(4, 1fr); }
  .dash .actions { grid-column: span 12; }
  .dash .pipe-sec { grid-column: span 12; }
  .dash .ready-sec, .dash .attn-sec { grid-column: span 6; }
  .pipeline { gap: .8rem; } .stage { min-block-size: 5.6rem; } .stage b { font-size: 1.8rem; } .stage span { font-size: .8rem; }
}

/* Tablets: roomier page, same floating bar */
@media (min-width: 48rem) {
  .shell { max-width: 56rem; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .actions { grid-template-columns: repeat(4, 1fr); }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .sheet { border-radius: 24px; margin-block-end: 2rem; }
  .sheet-back { align-items: center; }
}
.printbar { display: inline-flex; align-items: center; gap: .4rem; }
.printbar select { inline-size: auto; margin: 0; min-block-size: var(--tap); }
.label { margin: .75rem 0 .2rem; font-size: .82rem; font-weight: 600; color: var(--muted); }
.printdoc { display: none; }
/* Printed documents: coloured letterhead, cards, striped table, totals, stamp, terms, signatures */
.pd { color: #111; font-family: system-ui, 'Segoe UI', Arial, sans-serif; line-height: 1.4; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pd h1 { font-size: 1.55em; margin: 0 0 .1em; letter-spacing: -.01em; } .pd h4 { margin: 0 0 .3em; font-size: .72em; text-transform: uppercase; letter-spacing: .09em; color: #0f766e; } .pd p { margin: .12em 0; }
.pd-band { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 1em 1.2em; color: #fff; background: linear-gradient(135deg, #0f766e, #0b3b43); border-radius: .6em .6em 0 0; }
.pd-brand { display: flex; align-items: center; gap: .9em; } .pd-brand p { font-size: .82em; opacity: .93; }
.pd-logo-box { display: grid; place-items: center; flex: none; inline-size: 4.4em; block-size: 4.4em; background: #fff; border-radius: .7em; padding: .25em; } .pd-logo { max-inline-size: 100%; max-block-size: 100%; object-fit: contain; }
.pd-doc { text-align: end; } .pd-doc strong { display: block; font-size: 1.7em; letter-spacing: .14em; line-height: 1.1; } .pd-doc span { display: inline-block; margin-block-start: .2em; padding: .1em .7em; border-radius: 99px; background: rgb(255 255 255 / .2); font-weight: 700; } .pd-doc em { display: block; font-size: .8em; font-style: normal; opacity: .9; }
.pd-body { padding: .9em .15em .3em; }
.pd-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; margin-block-end: .7em; }
.pd-card { background: #eef6f5; border-radius: .6em; padding: .55em .8em; } .pd-card.wide { margin-block-end: .6em; }
.pd-small { font-size: .82em; color: #444; } .pd-mono { font-family: ui-monospace, Consolas, monospace; font-size: .9em; } .center { text-align: center; }
.pd-checks { display: flex; flex-wrap: wrap; gap: .3em 1.2em; }
.pd-items { width: 100%; border-collapse: collapse; margin: .4em 0; }
.pd-items th { background: #0b3b43; color: #fff; text-align: start; padding: .4em .5em; font-size: .8em; text-transform: uppercase; letter-spacing: .05em; }
.pd-items td { padding: .45em .5em; border-block-end: 1px solid #e1ecea; vertical-align: top; } .pd-items tbody tr:nth-child(even) td { background: #f6faf9; }
.pd-items .num { text-align: end; white-space: nowrap; }
.pd-after { display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; }
.pd-totals { inline-size: 52%; margin-inline-start: auto; border-collapse: collapse; margin-block: .4em; }
.pd-totals td { padding: .3em .6em; } .pd-totals .num { text-align: end; white-space: nowrap; }
.pd-totals tr.grand td { background: #0f766e; color: #fff; font-weight: 800; font-size: 1.08em; } .pd-totals tr.due td { font-weight: 800; color: #b91c1c; border-block-start: 2px solid #b91c1c; }
.pd-stamp { display: inline-block; margin: .5em 0; padding: .1em .7em; border: .18em solid; border-radius: .3em; transform: rotate(-5deg); font-weight: 900; letter-spacing: .14em; font-size: 1.2em; }
.pd-stamp.ok { color: #15803d; } .pd-stamp.warn { color: #b45309; } .pd-stamp.bad { color: #b91c1c; }
.pd-terms { margin: .8em 0 .4em; padding: .5em .8em; border: 1px dashed #7aa; border-radius: .5em; font-size: .82em; color: #333; }
.pd-track { word-break: break-all; }
.pd-sign { display: flex; justify-content: space-between; gap: 2.5em; margin-block-start: 2.6em; } .pd-sign span { flex: 1; border-block-start: 1px solid #111; padding-block-start: .25em; text-align: center; font-size: .82em; }
.pd-foot-bar { margin: .9em 0 0; padding: .6em 1em; text-align: center; font-size: .85em; color: #0b3b43; border-block-start: 3px solid #0f766e; }
.pd.preview { margin: .5rem 0; font-size: .85rem; border: 1px solid var(--line); border-radius: .7em; overflow: hidden; }
/* till receipt: narrow, centred, no coloured block */
.pd.till .pd-band { flex-direction: column; text-align: center; background: #fff; color: #000; border-radius: 0; border-block-end: 2px dashed #000; padding: .4em 0; } .pd.till .pd-brand { flex-direction: column; } .pd.till .pd-doc { text-align: center; } .pd.till .pd-doc span { background: none; padding: 0; } .pd.till .pd-logo-box { inline-size: 3.4em; block-size: 3.4em; padding: 0; }
.pd.till .pd-totals { inline-size: 100%; } .pd.till .pd-items th { background: none; color: #000; border-block-end: 1px solid #000; }
.pd.till .pd-items tbody tr:nth-child(even) td { background: none; } .pd.till .pd-totals tr.grand td { background: #000; }
@media print {
  body[data-print] .shell, body[data-print] .sheet-back { display: none !important; }
  body[data-print] .printdoc { display: block; }
  body.paper-80 .shell, body.paper-a5 .shell, body.paper-a4 .shell { margin: 0; max-width: none; }
  body.paper-80 { font-size: 11px; } body.paper-80 h2 { font-size: 14px; } body.paper-80 .pd-cards { grid-template-columns: 1fr; } body.paper-80 .pd-band { flex-direction: column; text-align: center; } body.paper-80 .pd-brand { flex-direction: column; } body.paper-80 .pd-doc { text-align: center; } body.paper-80 .pd-totals { inline-size: 100%; } body.paper-80 .pd-after { display: block; } body.paper-80 .pd-sign { margin-block-start: 2em; }
  body.paper-a5 { font-size: 13px; } body.paper-a4 { font-size: 15px; }
}
@media print { body { background: #fff; } .noprint, .tabs, header { display: none !important; } .card { border: 0; box-shadow: none; } .shell { padding: 0; } }

.logo-pick { display: flex; align-items: center; gap: .8rem; margin: .5rem 0; } .logo-pick img { inline-size: 4rem; block-size: 4rem; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: .2rem; }

.docview { margin: .6rem 0; font-size: .9rem; border: 1px solid var(--line); border-radius: .7em; overflow: hidden; box-shadow: var(--shadow); background: #fff; padding-block-end: .3rem; } .docview.narrow { max-inline-size: 24rem; margin-inline: auto; font-size: .85rem; }
.pd-addr { white-space: pre-line; }
.receipt-screen > .row { margin-block-start: .6rem; }

.toast { position: fixed; z-index: 60; inset-inline: 1rem; inset-block-start: 4.2rem; margin-inline: auto; max-inline-size: 28rem; padding: .8rem 1rem; border-radius: 14px; background: var(--ok-bg); color: var(--ok); border: 1px solid #86efac; font-weight: 600; box-shadow: 0 10px 30px rgb(15 40 38 / .2); text-align: center; } .toast.bad { background: var(--bad-bg); color: var(--bad); border-color: #fca5a5; }

.pd-qrbox { display: flex; gap: 0.75rem; align-items: center; border: 1px solid #ccc; border-radius: 6px; padding: 0.5rem 0.65rem; margin-block: 0.6rem; break-inside: avoid; }
.pd-qrbox .qr { width: 26mm; height: 26mm; flex: none; }
.pd-qrbox h4 { margin: 0 0 0.15rem; }
.pd-qrbox p { margin: 0 0 0.15rem; font-size: 0.8em; }
body.paper-80 .pd-qrbox { flex-direction: column; text-align: center; }
body.paper-80 .pd-qrbox .qr { width: 38mm; height: 38mm; }
