/* Daruuri Jet POS · styles (7.0)
   IDEA: a print shop's ERP. The top bar is the press (ink #1D2A39); pages are white paper on a grey press bed.
   CMYK is used as information, never decoration: cyan = Sales / m² print, magenta = Production / pieces / money owed,
   yellow = Inventory / services, ink = Accounting. The colour "proof bar" shows how far an order has gone.
   TYPE: Fira Sans for the interface (tabular numbers), Bitter for printed documents (invoice, receipt heading).
   LAYOUT: top bar (5 modules) | side menu (pages of the module) | work area. Under 900px the side menu becomes a strip. */
@font-face { font-family: 'Fira Sans'; src: url(../fonts/fira-Regular.woff) format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url(../fonts/fira-Medium.woff) format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url(../fonts/fira-SemiBold.woff) format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url(../fonts/fira-Bold.woff) format('woff'); font-weight: 700 800; font-display: swap; }
@font-face { font-family: 'Bitter'; src: url(../fonts/bitter.woff) format('woff'); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light dark;
  --bg: light-dark(#eceff3, #0f141b);
  --card: light-dark(#fff, #18202a);
  --ink: light-dark(#1d2a39, #e8edf2);
  --mut: light-dark(#5e6b7a, #98a4b3);
  --line: light-dark(#d7dde4, #2b3542);
  --line2: light-dark(#e8ecf0, #222b36);
  --soft: light-dark(#f6f8fa, #141b24);
  --key: #1d2a39;
  --cy: #0b7aa6;
  --cy2: light-dark(#e3f1f7, #0f2c3a);
  --mg: #c2185b;
  --mg2: light-dark(#fbe6ef, #3a1226);
  --ye: #e3a400;
  --ye2: light-dark(#fdf3da, #3a2f0c);
  --ok: #2e7d4f;
  --ok2: light-dark(#e3f2e9, #12301f);
  --bad: #c62828;
  --owe: light-dark(#c2185b, #f06292);
  --font: 'Fira Sans', system-ui, sans-serif;
  --doc: 'Bitter', Georgia, serif;
  --top: 52px;
}
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }
* { box-sizing: border-box; min-width: 0; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: calc(14.5px * var(--fz, 1)) / 1.45 var(--font, 'Fira Sans', system-ui, sans-serif);
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}
svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; }
.c { background: #00a0d6; } .m { background: #e5007d; } .y { background: #ffc400; } .k { background: #fff; }

/* ---------- shell: top bar + side menu ---------- */
.shell { min-height: 100%; display: flex; flex-direction: column; }
.wrap { flex: 1; display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 0; }
.noside .wrap, .login-shell .wrap { grid-template-columns: minmax(0, 1fr); }
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--top);
  background: var(--key); color: #d5dde6;
  display: flex; align-items: center; gap: 10px; padding: 0 12px 0 8px;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar .apps { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: #fff; }
.topbar .apps svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.topbar .apps:hover { background: rgba(255, 255, 255, 0.1); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #fff !important; font-size: calc(15.5px * var(--fz, 1)); margin-right: 8px; white-space: nowrap; }
.mods { display: flex; align-self: stretch; overflow-x: auto; scrollbar-width: none; }
.mods a { display: flex; align-items: center; padding: 0 14px; color: #aebccb; font-weight: 500; border-bottom: 3px solid transparent; border-top: 3px solid transparent; white-space: nowrap; }
.mods a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.mods a.on { color: #fff; border-bottom-color: #00a0d6; background: rgba(255, 255, 255, 0.07); }
.tsearch {
  margin-left: auto; min-height: 34px !important; background: rgba(255, 255, 255, 0.09) !important; color: #a9b7c6 !important;
  border: 0 !important; box-shadow: none !important; font-weight: 400 !important; font-size: calc(13px * var(--fz, 1)) !important;
  width: min(330px, 28vw); justify-content: flex-start !important; padding: 6px 10px !important; border-radius: 7px !important;
}
.tsearch svg { width: 16px; height: 16px; flex: none; }
.tsearch span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsearch:hover { background: rgba(255, 255, 255, 0.14) !important; }
kbd { font: 500 calc(11px * var(--fz, 1)) var(--font); border: 1px solid rgba(127, 140, 155, 0.5); border-radius: 4px; padding: 0 5px; color: inherit; opacity: 0.85; white-space: nowrap; }
.who { display: flex; align-items: center; gap: 12px; font-size: calc(13px * var(--fz, 1)); white-space: nowrap; }
.who .net { display: flex; align-items: center; gap: 6px; color: #d5dde6; font-weight: 500; font-size: inherit; }
.who .net b { width: 8px; height: 8px; border-radius: 50%; background: #3fbf7f; }
.who .net.off b { background: #f0a020; }
.who .net.off { color: #ffd38a; }
.who select { min-height: 30px; padding: 2px 6px; background: rgba(255, 255, 255, 0.09); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18); font-size: calc(13px * var(--fz, 1)); width: auto; }
.who select option { color: #1d2a39; }
.who .brn { color: #8fd3ee; }
.who .me { display: flex; align-items: center; gap: 8px; }
.who .wn { display: flex; flex-direction: column; line-height: 1.15; color: #fff; font-weight: 500; }
.who .wn small { color: #93a4b8; font-weight: 400; font-size: calc(11.5px * var(--fz, 1)); }
.topbar .av { background: #00a0d6; }
.ib { background: transparent !important; color: inherit !important; border: 0 !important; box-shadow: none !important; min-height: 34px !important; width: 34px; padding: 0 !important; border-radius: 8px !important; }
.ib:hover { background: rgba(255, 255, 255, 0.1) !important; }
.ib svg { width: 18px; height: 18px; }
.side {
  position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto;
  background: var(--card); border-right: 1px solid var(--line);
  padding: 14px 10px; display: flex; flex-direction: column; gap: 2px;
}
.side .sh { font-weight: 700; font-size: calc(15px * var(--fz, 1)); padding: 2px 10px 12px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: light-dark(#3a4859, #c3ccd6); text-decoration: none; font-weight: 500; }
.side a span { flex: 1; }
.side a svg { width: 18px; height: 18px; flex: none; opacity: 0.85; }
.side a:hover { background: var(--soft); }
.side a.on { background: var(--cy2); color: var(--cy); font-weight: 600; box-shadow: inset 3px 0 0 var(--cy); }
.side a em { font-style: normal; }
.av { width: 30px; height: 30px; border-radius: 50%; background: #3a4d63; color: #fff; display: inline-grid; place-items: center; font-size: calc(12px * var(--fz, 1)); font-weight: 600; flex: none; }
.av.sm { width: 24px; height: 24px; font-size: calc(10px * var(--fz, 1)); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cy);
  outline-offset: 2px;
}
main {
  padding: 18px max(2vw, 14px) 40px;
  min-width: 0;
}
main.posv {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 18px;
}
.posv .pos {
  flex: 1;
  min-height: 0;
  height: auto;
}
.sheetx {
  display: none;
}
h1 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.1;
  margin: 0 0 4px;
}
.sub {
  color: var(--mut);
  margin: 0 0 16px;
}
.bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(12px * var(--rz, 1));
  padding: 16px;
}
.card h3 {
  margin: 0 0 10px;
  font-size: calc(15px * var(--fz, 1));
}
.grid {
  display: grid;
  gap: 14px;
}
.kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.two {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
.kpi .l {
  color: var(--mut);
  font-size: calc(13px * var(--fz, 1));
}
.kpi .v {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  white-space: nowrap;
}
.kpi .d {
  font-size: calc(12.5px * var(--fz, 1));
  color: var(--mut);
}
.kpi.warn .v {
  color: var(--mg);
}
.kpi.money .v {
  color: light-dark(#9a6b00, var(--ye));
}
button,
.btn {
  font: inherit;
  font-weight: 700;
  font-size: calc(14.5px * var(--fz, 1));
  border: 1px solid transparent;
  border-radius: calc(9px * var(--rz, 1));
  padding: 10px 15px;
  min-height: 44px;
  cursor: pointer;
  background: var(--cy);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
button.ghost,
.btn.ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
button.ok,
.btn.ok {
  background: var(--ok);
}
button.danger {
  background: transparent;
  color: var(--bad);
  border-color: var(--bad);
}
button.sm {
  min-height: 34px;
  padding: 5px 10px;
  font-size: calc(13px * var(--fz, 1));
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
label {
  display: block;
  font-size: calc(12.5px * var(--fz, 1));
  color: var(--mut);
  margin-bottom: 4px;
  font-weight: 600;
}
input,
select,
textarea {
  font: inherit;
  font-size: calc(16px * var(--fz, 1));
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--rz, 1));
  background: var(--card);
  color: var(--ink);
  min-height: 44px;
}
.f {
  margin-bottom: 12px;
}
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: calc(22px * var(--rz, 1));
  padding: 6px 13px;
  min-height: 38px;
  font-weight: 600;
  font-size: calc(14px * var(--fz, 1));
}
.chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--card);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: calc(14px * var(--fz, 1));
}
th {
  text-align: left;
  color: var(--mut);
  font-weight: 600;
  font-size: calc(12.5px * var(--fz, 1));
  padding: 8px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td.n,
th.n {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
tr.click {
  cursor: pointer;
}
tr.click:hover td {
  background: var(--cy2);
}
.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: calc(12px * var(--rz, 1));
  font-size: calc(12px * var(--fz, 1));
  font-weight: 700;
  white-space: nowrap;
}
.t-cy {
  background: var(--cy2);
  color: var(--cy);
}
.t-mg {
  background: var(--mg2);
  color: var(--mg);
}
.t-ye {
  background: var(--ye2);
  color: light-dark(#8a5f00, var(--ye));
}
.t-ok {
  background: var(--ok2);
  color: var(--ok);
}
.t-bad {
  background: var(--mg2);
  color: var(--bad);
}
/* POS */
.pos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  height: calc(100vh - 36px);
}
.cat {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ptop {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.ptop input {
  max-width: 300px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  overflow: auto;
  padding-bottom: 12px;
  align-content: start;
}
.tile {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(12px * var(--rz, 1));
  padding: 12px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.tile::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--cy);
}
.tile.pcs::before {
  background: var(--mg);
}
.tile.add::before {
  background: var(--ye);
}
.tile b {
  font-size: calc(15.5px * var(--fz, 1));
  line-height: 1.2;
  margin-top: 6px;
}
.tile .pr {
  font-size: calc(20px * var(--fz, 1));
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.tile .u {
  font-size: calc(12.5px * var(--fz, 1));
  color: var(--mut);
  font-weight: 600;
}
.tile:hover {
  border-color: var(--cy);
}
.tile:active {
  transform: scale(0.98);
}
.tile:focus-visible {
  outline: 2px solid var(--cy);
  outline-offset: 2px;
}
.ticket {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(14px * var(--rz, 1));
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.tk-h {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.cbtn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: calc(10px * var(--rz, 1));
  min-height: 52px;
}
.cbtn b {
  display: block;
  font-size: calc(15px * var(--fz, 1));
}
.cbtn small {
  color: var(--mut);
}
.lines {
  flex: 1;
  overflow: auto;
  padding: 4px 14px;
}
.ln {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.ln b {
  font-size: calc(14.5px * var(--fz, 1));
}
.ln .amt {
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ln .meta {
  color: var(--mut);
  font-size: calc(13px * var(--fz, 1));
}
.qty {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}
.qty button {
  min-height: 32px;
  width: 32px;
  padding: 0;
  border-radius: calc(8px * var(--rz, 1));
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
}
.qty span {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
}
.tk-f {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: light-dark(#fafbfc, #14171c);
}
.tot div {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: calc(14px * var(--fz, 1));
}
.tot .big {
  font-size: calc(30px * var(--fz, 1));
  font-weight: 800;
  padding-top: 6px;
}
.tot span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pay {
  width: 100%;
  min-height: 58px;
  font-size: calc(19px * var(--fz, 1));
  margin-top: 10px;
  background: var(--ok);
}
.emptyt {
  color: var(--mut);
  text-align: center;
  padding: 40px 10px;
}
.sheetbar {
  display: none;
}
/* keypad */
.kp {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.kp button {
  min-height: 54px;
  font-size: calc(21px * var(--fz, 1));
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
}
.amount {
  font-size: calc(40px * var(--fz, 1));
  font-weight: 800;
  text-align: right;
  padding: 6px 4px 10px;
  font-variant-numeric: tabular-nums;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 10px;
}
.meth {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.meth button {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  min-height: 50px;
}
.meth button.on {
  background: var(--cy);
  color: #fff;
  border-color: var(--cy);
}
.paygrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
/* board */
.board {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.col {
  background: light-dark(#e3e6eb, #151820);
  border-radius: calc(12px * var(--rz, 1));
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
}
.col h4 {
  margin: 0 0 2px;
  font-size: calc(13.5px * var(--fz, 1));
  display: flex;
  justify-content: space-between;
}
.job {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  background: var(--card);
  border-radius: calc(9px * var(--rz, 1));
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--cy);
  font-size: calc(13.5px * var(--fz, 1));
}
.job b {
  font-size: calc(14px * var(--fz, 1));
}
.job .mt {
  display: flex;
  justify-content: space-between;
  color: var(--mut);
  font-size: calc(12.5px * var(--fz, 1));
  margin-top: 4px;
  gap: 6px;
}
.job.late {
  border-left-color: var(--bad);
}
.job.wait {
  border-left-color: var(--mg);
}
.job.done {
  border-left-color: var(--ok);
}
.sum div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.sum .totl {
  font-size: calc(24px * var(--fz, 1));
  font-weight: 800;
  border: 0;
  padding-top: 10px;
}
.sum span:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 170px;
  padding-top: 22px;
}
.bars div {
  flex: 1;
  position: relative;
  background: var(--cy);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
}
.bars div.today {
  background: var(--mg);
}
.bars em {
  position: absolute;
  top: -19px;
  left: -10px;
  right: -10px;
  text-align: center;
  font-style: normal;
  font-size: calc(11.5px * var(--fz, 1));
}
.bars span {
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: calc(12px * var(--fz, 1));
  color: var(--mut);
}
.alert {
  padding: 9px 11px;
  border-radius: calc(8px * var(--rz, 1));
  background: var(--mg2);
  margin-bottom: 7px;
  font-size: calc(14px * var(--fz, 1));
}
.alert.y {
  background: var(--ye2);
}
.empty {
  color: var(--mut);
  text-align: center;
  padding: 26px 10px;
}
.banner {
  background: var(--ye2);
  border: 1px solid var(--ye);
  border-radius: calc(9px * var(--rz, 1));
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: calc(14px * var(--fz, 1));
}
#labsheet {
  display: none;
}
.lab {
  box-sizing: border-box;
  padding: 1.5mm 2mm;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  font-family: Arial, sans-serif;
  color: #000;
  background: #fff;
  text-align: center;
}
.lab b {
  font-size: 8.5pt;
  line-height: 1.1;
  max-height: 2.3em;
  overflow: hidden;
}
.lab span {
  font-size: 8pt;
  font-weight: 700;
}
.lab .bc {
  width: 100%;
  flex: 1;
  min-height: 8mm;
  margin: 0.8mm 0;
}
.lab .bc svg {
  fill: #000;
}
.lab small {
  font-size: 7pt;
  letter-spacing: 0.08em;
}
.net {
  font-size: calc(11.5px * var(--fz, 1));
  color: #3fbf7f;
  font-weight: 700;
}
.net.off {
  color: #f0a020;
}
@media print {
  .rc58 .receipt {
    max-width: 48mm;
  }
  .rcA4 dialog {
    max-width: none;
  }
}
dialog {
  border: 0;
  border-radius: calc(16px * var(--rz, 1));
  padding: 0;
  width: min(640px, 95vw);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}
dialog.wide {
  width: min(900px, 96vw);
}
dialog::backdrop {
  background: rgba(10, 12, 16, 0.6);
}
.dh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.dh h2 {
  margin: 0;
  font-size: calc(19px * var(--fz, 1));
}
.db {
  padding: 16px 18px;
  max-height: 74vh;
  overflow: auto;
}
.df {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 14px;
}
.steps button {
  flex: 1;
  min-width: 84px;
  font-size: calc(12.5px * var(--fz, 1));
  padding: 6px;
  min-height: 38px;
  background: var(--bg);
  color: var(--mut);
  border: 1px solid var(--line);
}
.steps button.on {
  background: var(--cy);
  color: #fff;
  border-color: var(--cy);
}
.steps button.past {
  color: var(--ink);
}
.clist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  max-height: 46vh;
  overflow: auto;
}
.clist button {
  justify-content: space-between;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  text-align: left;
  font-weight: 600;
}
.receipt {
  border: 1px solid var(--line);
  border-radius: calc(10px * var(--rz, 1));
  padding: 16px;
  font-size: calc(14px * var(--fz, 1));
}
.receipt .rh {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 8px;
  gap: 10px;
}
.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--key);
  color: #fff;
  padding: 11px 18px;
  border-radius: calc(9px * var(--rz, 1));
  z-index: 50;
  font-size: calc(14px * var(--fz, 1));
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
}
.lvl {
  height: 8px;
  background: var(--bg);
  border-radius: calc(4px * var(--rz, 1));
  overflow: hidden;
  min-width: 70px;
}
.lvl i {
  display: block;
  height: 100%;
  background: var(--cy);
}
.lvl.low i {
  background: var(--bad);
}
.lvl.mid i {
  background: var(--ye);
}
.pline {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 40px;
  gap: 8px;
  margin-bottom: 8px;
  align-items: end;
}
.badge {
  background: var(--bad);
  color: #fff;
  border-radius: calc(9px * var(--rz, 1));
  font-size: calc(10px * var(--fz, 1));
  padding: 0 5px;
  margin-left: 2px;
}
.clist button.on {
  border-color: var(--cy);
  background: var(--cy2);
}
.qr {
  display: flex;
  justify-content: center;
  padding: 10px;
  background: #fff;
  border-radius: calc(10px * var(--rz, 1));
  width: max-content;
  margin: 0 auto;
}
.cbx {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: var(--ink);
  font-size: calc(14px * var(--fz, 1));
  font-weight: 500;
}
.cbx input {
  width: 18px;
  min-height: 18px;
}
.void {
  opacity: 0.55;
  text-decoration: line-through;
}
.muted {
  color: var(--mut);
}
.nowrap {
  white-space: nowrap;
}
.scroll {
  overflow-x: auto;
}
.search {
  max-width: 320px;
}
@media (max-width: 1100px) {
  .pos {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
}
@media (max-width: 900px) {
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two,
  .paygrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pos {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }
  main.posv {
    height: auto;
    display: block;
  }
  .sheetx {
    display: flex !important;
  }
  .tiles {
    overflow: visible;
    padding-bottom: 90px;
  }
  .ticket {
    position: fixed;
    inset: auto 0 0 0;
    max-height: 86vh;
    border-radius: 16px 16px 0 0;
    z-index: 30;
    transform: translateY(105%);
    transition: transform 0.2s;
  }
  body.cart .ticket {
    transform: none;
  }
  .sheetbar {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 25;
    min-height: 58px;
    font-size: calc(17px * var(--fz, 1));
    justify-content: space-between;
    background: var(--ok);
  }
}
@media (max-width: 700px) {
  main {
    padding-bottom: 90px;
  }
  .sheetbar {
    bottom: 72px;
  }
  .ticket {
    bottom: 0;
  }
  .board {
    grid-template-columns: repeat(6, minmax(170px, 1fr));
  }
}
@media (max-width: 600px) {
  table {
    font-size: calc(13px * var(--fz, 1));
  }
  .stack thead {
    display: none;
  }
  .stack tr {
    display: grid;
    padding-block: 8px;
    border-bottom: 1px solid var(--line);
  }
  .stack td {
    display: flow-root;
    border: 0;
    padding: 3px 0;
    padding-inline-start: 8em;
    text-align: start;
  }
  .stack td::before {
    content: attr(data-l);
    float: inline-start;
    width: 7.5em;
    margin-inline-start: -8em;
    color: var(--mut);
  }
  .stack td:empty {
    display: none;
  }
}
@media print {
  body * {
    visibility: hidden !important;
  }
  dialog,
  dialog .receipt,
  dialog .receipt * {
    visibility: visible !important;
  }
  dialog {
    position: absolute;
    inset: 0;
    box-shadow: none;
    width: auto;
    max-width: 80mm;
    margin: 0;
  }
  dialog .dh,
  dialog .df {
    display: none;
  }
  dialog .db {
    max-height: none;
    overflow: visible;
    padding: 0;
  }
  .receipt {
    border: 0;
    padding: 0;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .toast,
  .ticket {
    transition: none;
  }
}

/* ---------- Appearance (assets/js/lib/look.js) ---------- */
h1,
h2,
h3,
.kpi .v {
  font-family: var(--font, 'Fira Sans', system-ui, sans-serif);
}
button:not(.ghost):not(.chip):not(.danger),
.btn:not(.ghost) {
  box-shadow: var(--glow);
}
/* page change: content slides in, cards one after another */
@keyframes djIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes djPop {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#app.enter > * {
  animation: djIn 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
#app.enter > *:nth-child(2) {
  animation-delay: 0.04s;
}
#app.enter > *:nth-child(3) {
  animation-delay: 0.08s;
}
#app.enter > *:nth-child(4) {
  animation-delay: 0.12s;
}
#app.enter > *:nth-child(n + 5) {
  animation-delay: 0.16s;
}
#app.enter .kpis > .card {
  animation: djPop 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
#app.enter .kpis > .card:nth-child(2) {
  animation-delay: 0.06s;
}
#app.enter .kpis > .card:nth-child(3) {
  animation-delay: 0.12s;
}
#app.enter .kpis > .card:nth-child(4) {
  animation-delay: 0.18s;
}
#app.enter .kpis > .card:nth-child(n + 5) {
  animation-delay: 0.24s;
}
dialog[open] {
  animation: djPop 0.22s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
button,
.btn,
.chip,
.card {
  transition:
    background-color 0.18s,
    border-color 0.18s,
    color 0.18s,
    box-shadow 0.18s,
    transform 0.12s;
}
button:active:not(:disabled),
.btn:active {
  transform: scale(0.98);
}
:root.nomotion *,
:root.nomotion *::before,
:root.nomotion *::after {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  #app.enter > *,
  #app.enter .kpis > .card,
  dialog[open] {
    animation: none !important;
  }
}
/* the Appearance page */
.lk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: start;
}
.lk-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.lk-row:last-child {
  border-bottom: 0;
}
.lk-row > div:first-child b {
  display: block;
}
.lk-row > div:first-child span {
  color: var(--mut);
  font-size: calc(12.5px * var(--fz, 1));
}
.seg {
  display: inline-flex;
  background: var(--bg);
  border-radius: calc(10px * var(--rz, 1));
  padding: 3px;
  gap: 2px;
  flex-wrap: wrap;
}
.seg button {
  background: transparent;
  color: var(--ink);
  border: 0;
  min-height: 34px;
  padding: 4px 14px;
  box-shadow: none;
  font-weight: 600;
}
.seg button.on {
  background: var(--key);
  color: #fff;
}
.pal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pal button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--line);
  min-height: 40px;
  padding: 4px 12px 4px 6px;
  box-shadow: none;
  font-weight: 600;
}
.pal button.on {
  border-color: var(--cy);
}
.pal i {
  display: inline-flex;
}
.pal i b {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--card);
  margin-right: -5px;
}
.lk-colors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.lk-colors label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}
.lk-colors input[type='color'] {
  width: 40px;
  height: 34px;
  padding: 2px;
  border-radius: 8px;
  min-height: 0;
}
.lk-prev {
  position: sticky;
  top: 14px;
  overflow: hidden;
  padding: 0;
}
.lk-prev .pv {
  display: grid;
  grid-template-columns: 54px 1fr;
  min-height: 300px;
}
.lk-prev .pv-rail {
  background: var(--key);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
}
.lk-prev .pv-rail i {
  width: 24px;
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, #fff 25%, var(--key));
}
.lk-prev .pv-rail i.on {
  background: var(--ye);
}
.lk-prev .pv-main {
  padding: 14px;
  background: var(--bg);
  display: grid;
  gap: 10px;
  align-content: start;
}
.lk-prev .pv-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
}
.lk-prev .pv-bars b {
  flex: 1;
  background: var(--cy);
  border-radius: calc(4px * var(--rz, 1)) calc(4px * var(--rz, 1)) 0 0;
}
.lk-prev .pv-bars b:nth-child(3n) {
  background: var(--ye);
}
@media (max-width: 900px) {
  .lk-grid {
    grid-template-columns: 1fr;
  }
  .lk-prev {
    position: static;
  }
  .lk-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.seg button,
.pal button {
  box-shadow: none !important;
}

/* sign-in page has no menu */

/* =====================================================================
   7.0 skin: ERP look (Odoo / QuickBooks style). Later rules win, so this
   section is where to change how things look.
   ===================================================================== */
main { padding: 16px 24px 40px; min-height: 0; }
h1 { font-size: calc(22px * var(--fz, 1)); font-weight: 600; letter-spacing: -0.005em; margin: 0 0 2px; }
h2 { font-weight: 600; }
h3, h4 { font-weight: 600; }
.sub { font-size: calc(13.5px * var(--fz, 1)); margin-bottom: 14px; }
.small { font-size: calc(12.5px * var(--fz, 1)); }
a { color: var(--cy); }
.bar { align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.bar > div:last-child:not(:first-child), .btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* buttons */
button, .btn {
  font-weight: 600; font-size: calc(14px * var(--fz, 1)); min-height: 38px; padding: 7px 14px;
  border-radius: calc(6px * var(--rz, 1)); line-height: 1.2;
}
button:hover:not(:disabled), .btn:hover { filter: brightness(1.06); }
button.ghost, .btn.ghost { background: var(--card); border-color: light-dark(#c4ccd6, #3a4655); color: var(--ink); }
button.ghost:hover:not(:disabled), .btn.ghost:hover { background: var(--soft); filter: none; }
button.ok, .btn.ok, .pay { background: var(--ok); }
button.danger { background: var(--card); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
button.sm, .btn.sm { min-height: 30px; padding: 4px 10px; font-size: calc(12.5px * var(--fz, 1)); }
.btn { text-decoration: none; }

/* fields */
label { font-weight: 500; font-size: calc(12.5px * var(--fz, 1)); }
input, select, textarea {
  font-size: calc(14.5px * var(--fz, 1)); min-height: 38px; padding: 7px 10px;
  border-color: light-dark(#c4ccd6, #3a4655); border-radius: calc(6px * var(--rz, 1));
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cy) 22%, transparent); }
input[type='checkbox'], input[type='radio'] { accent-color: var(--cy); }
.search { min-height: 36px; }

/* panels */
.card { border-radius: calc(8px * var(--rz, 1)); padding: 16px 18px; box-shadow: none; }
.card.flush { padding: 0; overflow: hidden; }
.card h3 { font-size: calc(15px * var(--fz, 1)); }
.grid { gap: 16px; }
.kpis { gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: calc(8px * var(--rz, 1)); overflow: hidden; }
.kpis > .card, .kpis > .kpi { border: 0; border-radius: 0; border-right: 1px solid var(--line); background: transparent; }
.kpis > :last-child { border-right: 0; }
.kpi .l { font-size: calc(13px * var(--fz, 1)); }
.kpi .v { font-size: calc(26px * var(--fz, 1)); font-weight: 600; letter-spacing: -0.01em; }
.kpi.warn .v, .owe { color: var(--owe); }
.kpi.money .v { color: light-dark(#a77900, var(--ye)); }
b.owe { font-weight: 600; }
.okt { color: var(--ok); font-weight: 600; }
.late { color: var(--owe); font-weight: 600; }

/* tables */
table { font-size: calc(13.5px * var(--fz, 1)); }
th { background: var(--soft); font-size: calc(12.5px * var(--fz, 1)); padding: 9px 10px; white-space: nowrap; }
td { padding: 9px 10px; border-bottom-color: var(--line2); vertical-align: middle; }
tr.click:hover td { background: color-mix(in srgb, var(--cy) 7%, var(--card)); }
tfoot td { background: var(--soft); font-weight: 600; border-bottom: 0; }
.card > table:first-child th, .card > .scroll:first-child th { border-top: 0; }
.card table th:first-child, .card table td:first-child { padding-left: 14px; }
.card table th:last-child, .card table td:last-child { padding-right: 14px; }
.tag { border-radius: 999px; padding: 2px 9px; font-weight: 600; }
.alert { border-left: 3px solid var(--mg); border-radius: calc(6px * var(--rz, 1)); }
.alert.y { border-left-color: var(--ye); }
.banner { border: 0; border-left: 4px solid var(--ye); border-radius: calc(6px * var(--rz, 1)); }

/* filter chips */
.chip { min-height: 34px; padding: 5px 14px; font-size: calc(13.5px * var(--fz, 1)); font-weight: 500; border-color: light-dark(#c4ccd6, #3a4655); }
.chip.on { background: var(--key); border-color: var(--key); color: #fff; }
:root[data-theme='dark'] .chip.on { background: var(--cy); border-color: var(--cy); }

/* proof bar: stage of an order */
.proof { display: inline-flex; gap: 2px; vertical-align: middle; }
.proof i { width: 14px; height: 7px; background: var(--line); border-radius: 1px; }
.proof.sm i { width: 10px; height: 6px; }
.proof i.d:nth-child(4n + 1) { background: #00a0d6; }
.proof i.d:nth-child(4n + 2) { background: #e5007d; }
.proof i.d:nth-child(4n + 3) { background: #ffc400; }
.proof i.d:nth-child(4n + 4) { background: var(--ink); }
.proof i.c { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--cy); }

/* dialogs and toast */
dialog { border-radius: calc(10px * var(--rz, 1)); box-shadow: 0 20px 60px rgba(13, 22, 33, 0.35); }
dialog::backdrop { background: rgba(15, 22, 31, 0.5); }
.dh { border-bottom: 1px solid var(--line); }
.dh h2 { font-size: calc(18px * var(--fz, 1)); font-weight: 600; }
.df { background: var(--soft); border-top: 1px solid var(--line); }
.toast { border-radius: calc(8px * var(--rz, 1)); background: var(--key); }

/* ---------- Point of Sale ---------- */
main.posv { height: calc(100vh - var(--top)); padding: 0; }
.posv .pos { gap: 0; height: 100%; grid-template-columns: minmax(0, 1fr) 400px; }
.posv .cat { padding: 16px 20px 0; }
.ptop input { max-width: 420px; min-height: 42px; font-size: calc(15px * var(--fz, 1)); }
.tiles { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.tile { border-radius: calc(8px * var(--rz, 1)); padding: 14px 14px 12px 18px; min-height: 108px; }
.tile::before { inset: 0 auto 0 0; width: 5px; height: auto; }
.tile b { font-weight: 600; margin-top: 0; }
.tile .pr { font-weight: 600; font-size: calc(19px * var(--fz, 1)); }
.tile:hover { border-color: color-mix(in srgb, var(--cy) 60%, var(--line)); box-shadow: 0 2px 8px rgba(29, 42, 57, 0.08); }
.posv .ticket { border-radius: 0; border: 0; border-left: 1px solid var(--line); }
.tk-h { padding: 12px 16px; }
.cbtn { border-style: solid; border-color: var(--line); background: var(--soft); border-radius: calc(8px * var(--rz, 1)); }
.lines { padding: 0; }
.ln { padding: 10px 16px; border-bottom-color: var(--line2); }
.ln .amt { font-weight: 600; }
.tk-f { padding: 12px 16px 16px; background: var(--soft); }
.tot .big { font-size: calc(28px * var(--fz, 1)); font-weight: 700; }
.pay { min-height: 56px; font-size: calc(18px * var(--fz, 1)); border-radius: calc(8px * var(--rz, 1)); }
.kp button, .meth button { border-radius: calc(6px * var(--rz, 1)); font-weight: 500; }
.amount { font-weight: 700; }

/* ---------- boards (Orders, Production) ---------- */
.board { gap: 14px; }
.col { background: light-dark(#e3e8ee, #141b24); border-radius: calc(8px * var(--rz, 1)); padding: 10px; gap: 10px; }
.col h4 { font-size: calc(14px * var(--fz, 1)); align-items: center; padding: 2px 2px 0; }
.col h4 span { font-weight: 500; color: var(--mut); font-size: calc(12.5px * var(--fz, 1)); background: var(--card); border-radius: 999px; padding: 0 8px; }
.col .cbar { height: 4px; background: light-dark(#d3dae2, #263040); border-radius: 2px; margin: -2px 2px 2px; }
.col .cbar i { display: block; height: 100%; border-radius: 2px; background: var(--cy); }
.col.st1 .cbar i { background: #e5007d; } .col.st2 .cbar i { background: var(--mg); } .col.st3 .cbar i { background: var(--ye); }
.col.st4 .cbar i { background: var(--ink); } .col.st5 .cbar i { background: var(--ok); }
.col .none { font-size: calc(13px * var(--fz, 1)); padding: 4px; }
.col .csum { font-size: calc(12.5px * var(--fz, 1)); color: var(--mut); text-align: right; padding: 0 4px; }
.job {
  display: flex; flex-direction: column; gap: 5px; border-radius: calc(7px * var(--rz, 1));
  border: 1px solid light-dark(#d8dee5, #2b3542); border-left: 1px solid light-dark(#d8dee5, #2b3542); padding: 10px 12px;
}
.job:hover { border-color: color-mix(in srgb, var(--cy) 55%, var(--line)); box-shadow: 0 2px 8px rgba(29, 42, 57, 0.08); }
.job.late { box-shadow: inset 3px 0 0 var(--mg); border-left-color: light-dark(#d8dee5, #2b3542); }
.job.wait { box-shadow: inset 3px 0 0 var(--ye); }
.job.done { box-shadow: inset 3px 0 0 var(--ok); }
.job .jt { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.job .jc { font-weight: 500; }
.job .jx { font-size: calc(12.5px * var(--fz, 1)); }
.job .mt { align-items: center; margin-top: 2px; }
.job .jb { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.flag { font-size: calc(11px * var(--fz, 1)); font-weight: 600; color: var(--mg); background: var(--mg2); border-radius: 4px; padding: 1px 6px; }

/* ---------- Orders: search, views, list ---------- */
.cp2 { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.sbox { flex: 1; max-width: 640px; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid light-dark(#c4ccd6, #3a4655); border-radius: 7px; padding: 0 10px; margin: 0; color: var(--mut); }
.sbox:focus-within { border-color: var(--cy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cy) 22%, transparent); }
.sbox svg { width: 16px; height: 16px; flex: none; }
.sbox input { border: 0; box-shadow: none !important; padding-left: 0; background: transparent; }
.views { margin-left: auto; display: flex; border: 1px solid light-dark(#c4ccd6, #3a4655); border-radius: 7px; overflow: hidden; background: var(--card); }
.vb { background: var(--card); color: var(--mut); border-radius: 0; min-height: 36px; padding: 0 11px; border: 0; }
.vb svg { width: 18px; height: 18px; }
.vb.on { background: var(--key); color: #fff; }
.lv { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; align-items: start; }
.spanel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 1px; }
.spanel h3 { font-size: calc(12px * var(--fz, 1)); color: var(--mut); margin: 8px 8px 4px; font-weight: 600; }
.spanel button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 5px; font-size: calc(13.5px * var(--fz, 1)); }
.spanel button:hover { background: var(--soft); }
.spanel button.on { background: var(--cy2); color: var(--cy); font-weight: 600; }
.spanel button:focus-visible { outline: 2px solid var(--cy); }
.spanel em { margin-left: auto; font-style: normal; color: var(--mut); font-size: calc(12px * var(--fz, 1)); }
.sd { width: 9px; height: 9px; border-radius: 50%; background: #9aa6b4; flex: none; }
.sd.s1 { background: #00a0d6; } .sd.s2 { background: #e5007d; } .sd.s3 { background: var(--mg); } .sd.s4 { background: var(--ye); }
.sd.s5 { background: var(--ink); } .sd.s6 { background: var(--ok); } .sd.s7 { background: var(--owe); } .sd.s8 { background: var(--bad); }

/* ---------- Home (all apps) ---------- */
main.homev { background: radial-gradient(circle at 18% 0%, #2a3d53 0, var(--key) 62%); min-height: calc(100vh - var(--top)); color: #fff; padding: 56px 24px 60px; }
.launch { max-width: 1060px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hello { margin: 0 0 14px; color: #b7c6d6; font-size: calc(16px * var(--fz, 1)); }
.lsearch { width: min(560px, 100%); justify-content: flex-start !important; gap: 10px; background: rgba(255, 255, 255, 0.1) !important; color: #b7c3d1 !important; border-radius: 10px !important; padding: 12px 16px !important; font-weight: 400 !important; font-size: calc(15px * var(--fz, 1)) !important; min-height: 48px !important; margin-bottom: 48px; box-shadow: none !important; }
.lsearch span { flex: 1; text-align: left; }
.lsearch svg { width: 18px; height: 18px; }
.lsearch:hover { background: rgba(255, 255, 255, 0.15) !important; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, 118px); justify-content: center; gap: 30px 22px; width: 100%; }
.appt { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; text-decoration: none; text-align: center; border-radius: 12px; padding: 6px 0; }
.appt b { font-weight: 500; font-size: calc(14px * var(--fz, 1)); }
.appt:hover .ai { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.appt:focus-visible { outline: 2px solid #00a0d6; outline-offset: 2px; }
.ai { position: relative; width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); transition: transform 0.15s, box-shadow 0.15s; }
.ai svg { width: 32px; height: 32px; stroke-width: 1.6; }
.ai em { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: #e5007d; color: #fff; font: 600 calc(12px * var(--fz, 1)) / 22px var(--font); font-style: normal; padding: 0 6px; box-shadow: 0 0 0 2px var(--key); }
.ai.cy, .cki.cy { background: #0b7aa6; } .ai.mg, .cki.mg { background: #c2185b; } .ai.ye, .cki.ye { background: #e3a400; color: #1d2a39; }
.ai.ink, .cki.ink { background: #3a4d63; } .ai.gr, .cki.gr { background: #66717f; }

/* ---------- search everything (Ctrl+K) ---------- */
#cmdk { position: fixed; inset: 0; z-index: 80; background: rgba(15, 22, 31, 0.5); display: none; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
#cmdk.open { display: flex; }
.ck { width: min(620px, 100%); background: var(--card); border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4); overflow: hidden; animation: djPop 0.16s ease-out both; }
.ckin { display: flex; align-items: center; gap: 10px; margin: 0; padding: 4px 14px; border-bottom: 1px solid var(--line); color: var(--mut); }
.ckin svg { width: 18px; height: 18px; flex: none; }
.ckin input { border: 0; box-shadow: none !important; font-size: calc(16px * var(--fz, 1)); min-height: 50px; padding: 0; background: transparent; }
.ckr { max-height: 56vh; overflow-y: auto; padding: 6px; }
.ckr h6 { margin: 8px 10px 4px; font-size: calc(12px * var(--fz, 1)); color: var(--mut); font-weight: 600; }
.ckr button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 7px; }
.ckr button.on { background: var(--cy2); }
.ckt { flex: 1; display: flex; flex-direction: column; font-weight: 500; line-height: 1.25; overflow: hidden; }
.ckt small { color: var(--mut); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ckr em { font-style: normal; font-size: calc(12.5px * var(--fz, 1)); color: var(--mut); white-space: nowrap; }
.cki { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.cki svg { width: 17px; height: 17px; }
.cki.doc { background: var(--soft); color: var(--mut); border: 1px solid var(--line); }

/* ---------- Overview ---------- */
.kstrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: calc(8px * var(--rz, 1)); margin-bottom: 16px; }
.kstrip .k { background: transparent; padding: 16px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.kstrip .k:last-child { border-right: 0; }
.kstrip .k span { color: var(--mut); font-size: calc(13px * var(--fz, 1)); }
.kstrip .k b { font-size: calc(27px * var(--fz, 1)); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.kstrip .k small { color: var(--mut); font-size: calc(12.5px * var(--fz, 1)); }
.g2 { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.g2.w { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.ph { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.ph h3 { margin: 0; }
.ph a { font-size: calc(13px * var(--fz, 1)); text-decoration: none; }
.ph.pad { padding: 14px 18px 4px; }
.lg { display: flex; gap: 6px; align-items: center; font-size: calc(12px * var(--fz, 1)); color: var(--mut); }
.lg i { width: 10px; height: 10px; background: var(--cy); border-radius: 2px; margin-left: 8px; }
.lg i.o { background: color-mix(in srgb, var(--mg) 45%, #fff); }
.chartb { display: flex; align-items: flex-end; gap: 18px; height: 180px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.chartb .bc { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.chartb .bc span { font-size: calc(12px * var(--fz, 1)); color: var(--mut); margin-bottom: -26px; }
.chartb .b2 { flex: 1; width: 100%; display: flex; align-items: flex-end; gap: 4px; justify-content: center; }
.chartb .b2 i { width: 36%; max-width: 30px; min-height: 1px; background: var(--cy); border-radius: 3px 3px 0 0; }
.chartb .b2 i.o { background: color-mix(in srgb, var(--mg) 45%, #fff); }
.chartb + p { margin-top: 30px; }
.agbar { display: flex; height: 14px; border-radius: 3px; overflow: hidden; gap: 2px; margin: 6px 0 12px; }
.agbar i.cy, .agl i.cy { background: var(--cy); } .agbar i.ye, .agl i.ye { background: var(--ye); }
.agbar i.mg, .agl i.mg { background: var(--mg); } .agbar i.ink, .agl i.ink { background: var(--ink); }
.agl { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line2); }
.agl i { width: 10px; height: 10px; border-radius: 2px; }
.agl b { font-weight: 500; }
.card .tot { display: flex; justify-content: space-between; padding-top: 10px; font-weight: 600; }
.card .tot b { font-size: calc(18px * var(--fz, 1)); }
.lw { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.lw span { display: flex; flex-direction: column; }
.lw small { color: var(--mut); font-size: calc(12px * var(--fz, 1)); }
.lw.click { cursor: pointer; }
.lw.click:hover { background: var(--soft); }
table.list td .muted { font-size: calc(12.5px * var(--fz, 1)); }

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
  .tsearch span, .tsearch kbd { display: none; }
  .tsearch { width: 36px; justify-content: center !important; padding: 0 !important; }
  .who .wn { display: none; }
  .posv .pos { grid-template-columns: minmax(0, 1fr) 340px; }
  .kstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kstrip .k:nth-child(2) { border-right: 0; }
  .kstrip .k:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .side {
    position: sticky; top: var(--top); z-index: 30; height: auto; flex-direction: row; overflow-x: auto;
    border-right: 0; border-bottom: 1px solid var(--line); padding: 6px 8px; scrollbar-width: none;
  }
  .side .sh { display: none; }
  .side a { flex: none; padding: 6px 10px; }
  .side a.on { box-shadow: inset 0 -2px 0 var(--cy); }
  .side a svg { display: none; }
  main.posv { height: auto; padding: 0; }
  .posv .cat { padding: 12px; }
  .g2, .g2.w, .lv { grid-template-columns: minmax(0, 1fr); }
  .spanel { flex-direction: row; overflow-x: auto; }
  .spanel h3 { display: none; }
  .spanel button { flex: none; }
  .who .net { font-size: 0; gap: 0; }
  .sheetbar { bottom: 12px; }
}
@media (max-width: 700px) {
  main { padding: 12px 12px 90px; }
  .topbar { gap: 4px; padding: 0 6px 0 4px; }
  .brand { font-size: 0; gap: 0; margin-right: 2px; }
  .mods a { padding: 0 9px; font-size: calc(13px * var(--fz, 1)); }
  .who { gap: 6px; }
  .who select, .who .brn { display: none; }
  .kstrip .k { padding: 12px 14px; }
  .kstrip .k b { font-size: calc(21px * var(--fz, 1)); }
  .cp2 { flex-wrap: wrap; }
  main.homev { padding: 32px 12px 40px; }
  .agrid { grid-template-columns: repeat(auto-fill, 92px); gap: 22px 10px; }
  .ai { width: 60px; height: 60px; border-radius: 15px; }
  .ai svg { width: 27px; height: 27px; }
}
@media print {
  .topbar, .side, #cmdk { display: none !important; }
  .wrap { display: block; }
}

/* sign-in page: the press-coloured background, one white sheet */
.login-shell main { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at 18% 0%, #2a3d53 0, var(--key) 62%); }
.signin { width: min(420px, 100%); }
.sbrand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: calc(20px * var(--fz, 1)); margin-bottom: 18px; justify-content: center; }
.sbrand .dots i { width: 11px; height: 11px; }
.signin .card { padding: 26px 28px; border: 0; border-radius: 10px 10px 0 0; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); }
.signin .cbar { display: flex; height: 8px; border-radius: 0 0 10px 10px; overflow: hidden; }
.signin .cbar i { flex: 1; }
.signin .cbar i:nth-child(1) { background: #00a0d6; } .signin .cbar i:nth-child(2) { background: #e5007d; }
.signin .cbar i:nth-child(3) { background: #ffc400; } .signin .cbar i:nth-child(4) { background: #000; }
.signin .cbar i:nth-child(5) { background: #6fcbe9; } .signin .cbar i:nth-child(6) { background: #f27ab8; }
.signin .cbar i:nth-child(7) { background: #ffe07a; } .signin .cbar i:nth-child(8) { background: #8a96a5; }

/* buttons drawn as list rows never glow */
.spanel button, .ckr button, .vb, .tsearch, .lsearch, .ib, .side a { box-shadow: none !important; }
.spanel button.on { box-shadow: none !important; }
.bar .search { width: 260px; max-width: 100%; }
.mods a { flex: none; }
.mods { flex: 0 1 auto; }
@media (max-width: 900px) {
  .posv .pos { grid-template-columns: minmax(0, 1fr); }
  .posv .ticket { border-radius: 16px 16px 0 0; }
}
@media (max-width: 700px) {
  .mods { display: none; }
  .brand { font-size: calc(15px * var(--fz, 1)); gap: 8px; }
  .tsearch { margin-left: auto; }
  .bar .search { width: 100%; }
}

/* ---------- sign-in husky ---------- */
.signin .card { padding-top: 40px; }
.signin .sbrand { color: var(--ink); justify-content: center; margin-bottom: 4px; font-size: calc(22px * var(--fz, 1)); }
.signin .sbrand .dots i.k { background: var(--ink); }
.signin .sub { text-align: center; }
.mascot { width: 168px; margin: 0 auto -38px; position: relative; z-index: 2; }
.mascot svg { display: block; width: 100%; height: auto; overflow: visible; stroke: none; }
.mascot .ear, .mascot .hd, .mascot .pw ellipse { fill: #5b6675; }
.mascot .ein, .mascot .tb { fill: #f3b6c6; }
.mascot .fc { fill: #f4f6f9; }
.mascot .sc { fill: #fff; }
.mascot .ir { fill: #3d9fdc; }
.mascot .pp { fill: #13202e; }
.mascot .hl { fill: #fff; }
.mascot .ns { fill: #1d2a39; }
.mascot .mo, .mascot .mo2, .mascot .hap path, .mascot .sad path { fill: none; stroke: #1d2a39; stroke-width: 2.6; stroke-linecap: round; }
.mascot .ck { fill: #f29bb4; opacity: 0; transition: opacity 0.3s; }
.mascot .hap, .mascot .sad, .mascot .mo2 { opacity: 0; transition: opacity 0.2s; }
.mascot .mh { transform-box: view-box; transform-origin: 110px 190px; transform: rotate(var(--tilt, 0deg)); transition: transform 0.3s ease; }
.mascot .pu { transform: translate(var(--ex, 0px), var(--ey, 0px)); transition: transform 0.18s ease-out; }
.mascot .ey { transform-box: fill-box; transform-origin: center; transition: transform 0.12s; }
.mascot.blink .ey { transform: scaleY(0.12); }
.mascot .pw { transform-box: fill-box; transform-origin: center; transition: transform 0.38s cubic-bezier(0.3, 1.35, 0.5, 1); }
.mascot.cover .pw.l { transform: translate(14px, -84px) rotate(16deg); }
.mascot.cover .pw.r { transform: translate(-14px, -84px) rotate(-16deg); }
.mascot.peek .pw.l { transform: translate(2px, -58px) rotate(-12deg); }
.mascot.peek .pw.r { transform: translate(-2px, -58px) rotate(12deg); }
.mascot.wait .mh { animation: djBob 0.9s ease-in-out infinite; }
.mascot.wait .pu { transform: translate(0, 4px); }
.mascot.happy .eyes { opacity: 0; }
.mascot.happy .hap, .mascot.happy .ck { opacity: 1; }
.mascot.happy .mh { animation: djHop 0.5s ease-out 2; }
.mascot.sad .sad, .mascot.sad .mo2 { opacity: 1; }
.mascot.sad .mo { opacity: 0; }
.mascot.sad .pu { transform: translate(0, 3px); }
.mascot.sad .mh { animation: djNo 0.5s ease-in-out; }
@keyframes djBob { 50% { transform: translateY(3px); } }
@keyframes djHop { 40% { transform: translateY(-9px); } }
@keyframes djNo { 20% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } 80% { transform: rotate(-3deg); } }
.pwbox { position: relative; }
.pwbox input { padding-right: 46px; }
.peye { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); background: transparent !important; color: var(--mut) !important; border: 0 !important; box-shadow: none !important; min-height: 36px !important; width: 40px; padding: 0 !important; }
.peye svg { width: 20px; height: 20px; }
.peye .sl { display: none; }
.peye.on .sl { display: inline; }
.peye.on { color: var(--cy) !important; }
.lbtn { width: 100%; margin-top: 14px; min-height: 44px !important; }
.lbtn.busy span::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; border-radius: 50%; animation: djSpin 0.7s linear infinite; }
@keyframes djSpin { to { transform: rotate(360deg); } }
.lnote { text-align: center; min-height: 1.3em; margin: 10px 0 0; font-size: calc(13px * var(--fz, 1)); color: var(--mut); }
.l2h { text-align: center; font-size: calc(19px * var(--fz, 1)); margin: 4px 0 2px; }
#l2f .sub { text-align: center; }

/* ---------- code boxes (2-step code, manager PIN) ---------- */
.otp { margin: 14px 0 4px; text-align: center; border-radius: 12px; padding: 10px 0 4px; transition: background 0.4s; }
.ob { position: relative; display: flex; justify-content: center; gap: 10px; height: 60px; align-items: center; }
.od {
  width: 46px; height: 56px; min-height: 0; padding: 0; text-align: center; flex: none;
  font: 600 calc(24px * var(--fz, 1)) var(--font); border: 1.5px solid light-dark(#c4ccd6, #3a4655); border-radius: 10px; background: var(--soft);
  caret-color: var(--cy);
  --cx: calc(((var(--n) - 1) / 2 - var(--i)) * 56px);
  --a: calc(var(--i) * 360deg / var(--n));
  transition: transform 0.4s cubic-bezier(0.3, 1.2, 0.5, 1), opacity 0.3s, border-color 0.2s, background 0.2s;
}
.od:focus { border-color: var(--cy); background: var(--card); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cy) 20%, transparent); }
.od.on { border-color: color-mix(in srgb, var(--ink) 55%, transparent); background: var(--card); animation: djPopIn 0.18s ease-out; }
.od[data-opt] { opacity: 0.6; }
.od[data-opt].on, .od[data-opt]:focus { opacity: 1; }
@keyframes djPopIn { 0% { transform: scale(0.86); } }
.otp.busy .od { transform: translateX(var(--cx)) rotate(var(--a)) translateY(-34px) rotate(calc(var(--a) * -1 + 14deg)) scale(0.72); border-color: var(--mg); box-shadow: 0 0 12px color-mix(in srgb, var(--mg) 35%, transparent); }
.otp.busy .ob { animation: djSpin 1.2s linear 0.35s infinite; }
.otp.ok { background: radial-gradient(ellipse at center, color-mix(in srgb, var(--ok) 22%, transparent), transparent 70%); }
.otp.ok .od { transform: translateX(var(--cx)) scale(0.2); opacity: 0; }
.otick { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 14px; display: grid; place-items: center; color: var(--ok); border: 2px solid var(--ok); background: var(--card); opacity: 0; transform: scale(0.4); transition: opacity 0.25s 0.2s, transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1) 0.2s; pointer-events: none; }
.otick svg { width: 28px; height: 28px; stroke-width: 2.6; stroke-dasharray: 24; stroke-dashoffset: 24; }
.otp.ok .otick { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); animation: djRing 0.9s ease-out 0.35s; }
.otp.ok .otick svg { transition: stroke-dashoffset 0.35s ease-out 0.45s; stroke-dashoffset: 0; }
@keyframes djRing { to { box-shadow: 0 0 0 22px transparent; } }
.otp.bad .od { border-color: var(--bad); }
.otp.bad .ob { animation: djShake 0.42s ease-in-out; }
@keyframes djShake { 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
.otp.busy .ob, .otp.ok .ob { margin: 18px 0; }
.omsg { min-height: 1.3em; margin: 8px 0 0; font-size: calc(13px * var(--fz, 1)); color: var(--mut); }
.otp.ok .omsg { color: var(--ok); font-weight: 600; }
.otp.bad .omsg { color: var(--bad); font-weight: 500; }
@media (max-width: 420px) {
  .ob { gap: 6px; }
  .od { width: 40px; height: 50px; --cx: calc(((var(--n) - 1) / 2 - var(--i)) * 46px); }
}
@media (prefers-reduced-motion: reduce) {
  .otp .od, .otp .ob, .otick, .mascot *, .mascot .mh { animation: none !important; transition: none !important; }
}
.linkb { all: unset; cursor: pointer; color: var(--cy); text-decoration: underline; font-size: inherit; }
.linkb:disabled { color: var(--mut); text-decoration: none; cursor: default; }
.linkb:focus-visible { outline: 2px solid var(--cy); }
main.homev > .banner { color: #4a3800; max-width: 1060px; margin: -30px auto 26px; }
