/* geren. admin: copied from the Misheereh admin v3 design system (soft canvas, big rounded cards, turquoise #57BFB6 + coral #FF6F61, Hugeicons stroke rounded, light + dark). geren additions are at the end. */

:root {
  --canvas: #f1f1ef;
  --surface: #ffffff;
  --surface-2: #f6f6f4;
  --sidebar: #ffffff;
  --text: #121214;
  --text-2: #3f3f46;
  --muted: #8a8a90;
  --line: #ebebe8;
  --line-2: #e1e1de;
  --ink: #111113;
  --ink-text: #ffffff;
  --accent: #57bfb6;
  --accent-strong: #17716a;
  --accent-text: #04302c;
  --accent-soft: #e4f5f3;
  --coral: #ff6f61;
  --coral-strong: #bf3a2e;
  --coral-soft: #ffecea;
  --blue: #4f7fe6;
  --blue-soft: #e8efff;
  --red: #e5484d;
  --red-soft: #fdecec;
  --amber: #b97d06;
  --amber-soft: #fdf4dc;
  --r-xl: 22px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 9px;
  --shadow: 0 1px 2px rgb(16 16 20 / 4%), 0 4px 16px rgb(16 16 20 / 4%);
  --shadow-lg: 0 20px 50px -12px rgb(16 16 20 / 22%);
  --font: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}
html.dark {
  --canvas: #0b0b0c;
  --surface: #161618;
  --surface-2: #1e1e21;
  --sidebar: #111113;
  --text: #f4f4f5;
  --text-2: #c7c7cc;
  --muted: #8e8e95;
  --line: #26262a;
  --line-2: #313136;
  --ink: #f4f4f5;
  --ink-text: #111113;
  --accent: #5fcac1;
  --accent-strong: #7fd9d0;
  --accent-text: #04302c;
  --accent-soft: rgb(95 202 193 / 14%);
  --coral: #ff8a7e;
  --coral-strong: #ff9d93;
  --coral-soft: rgb(255 111 97 / 15%);
  --blue: #7aa2f7;
  --blue-soft: rgb(122 162 247 / 15%);
  --red-soft: rgb(229 72 77 / 16%);
  --amber: #f2c14b;
  --amber-soft: rgb(242 193 75 / 14%);
  --shadow: 0 1px 2px rgb(0 0 0 / 40%);
  --shadow-lg: 0 20px 50px -12px rgb(0 0 0 / 70%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { background: var(--canvas); }
body { margin: 0; color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
.i { display: inline-block; width: 20px; height: 20px; font-size: 20px; line-height: 1; flex: none; text-align: center; }
.i.sm { width: 16px; height: 16px; font-size: 16px; }
.i.lg { width: 24px; height: 24px; font-size: 24px; }
.boot { padding: 40px; color: var(--muted); }
html:not(.icons-ready) .hgi-stroke { color: transparent !important; }
.muted { color: var(--muted); }
.note { font-size: 12.5px; color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s, opacity .15s;
}
.btn .i { width: 18px; height: 18px; font-size: 18px; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: var(--ink-text); border-color: transparent; }
.btn.primary:hover { opacity: .88; }
.btn.accent { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.btn.accent:hover { background: var(--accent-strong); color: #fff; }
html.dark .btn.accent:hover { color: var(--accent-text); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--red); }
.btn.danger.primary { background: var(--red); color: #fff; }
.btn.small { height: 34px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); gap: 6px; }
.btn.small .i { width: 16px; height: 16px; font-size: 16px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.boxed { border-color: transparent; background: var(--surface); color: var(--text); box-shadow: var(--shadow); width: 44px; height: 44px; border-radius: var(--r-md); }
.icon-btn.sm { width: 30px; height: 30px; }
.icon-btn.sm .i { width: 16px; height: 16px; font-size: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------- inputs ---------------- */
input[type=text], input[type=email], input[type=number], input[type=password], input[type=search], input[type=date], textarea, select {
  width: 100%; min-height: 42px; padding: 9px 13px; border-radius: var(--r-md); border: 1px solid var(--line-2);
  background: var(--surface); font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8a90' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
select option { background: var(--surface); color: var(--text); }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent-strong); margin: 0; }
label.check { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; cursor: pointer; margin-top: 4px; }

/* ---------------- shell ---------------- */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.shell.mini { grid-template-columns: 84px 1fr; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 24px 16px 16px; }
.logo { display: flex; align-items: center; gap: 1px; font-size: 21px; font-weight: 700; letter-spacing: -.035em; padding: 0 10px 24px; }
.logo .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--accent); align-self: flex-end; margin: 0 0 6px 1px; }
.side nav { display: grid; gap: 2px; }
.side .group { padding: 16px 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: var(--r-md); color: var(--text-2); font-weight: 500; transition: background .15s, color .15s; }
.side nav a .i { color: var(--muted); transition: color .15s; }
.side nav a:hover { background: var(--surface-2); color: var(--text); }
.side nav a.on { background: var(--surface-2); color: var(--text); font-weight: 600; }
.side nav a.on .i, .side nav a:hover .i { color: var(--text); }
.side nav a.on::before { content: ''; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ink); }
.side nav a .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--accent); color: var(--accent-text); font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.side .cta { margin-top: auto; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; background: var(--surface-2); }
.side .cta .badge-ic { width: 36px; height: 36px; border-radius: 99px; display: grid; place-items: center; background: var(--ink); color: var(--ink-text); margin-bottom: 12px; }
.side .cta.live .badge-ic { background: var(--accent); color: var(--accent-text); }
.side .cta h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.side .cta p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.side .collapse { margin-top: 12px; justify-content: flex-start; color: var(--muted); }
.shell.mini .side { padding: 24px 12px 16px; align-items: center; }
.shell.mini .logo .word, .shell.mini .side .group, .shell.mini .side nav a .label, .shell.mini .side .cta, .shell.mini .collapse .label { display: none; }
.shell.mini .side nav a { width: 48px; justify-content: center; padding: 0; }
.shell.mini .side nav a .count { position: absolute; top: 1px; right: -2px; min-width: 18px; height: 18px; font-size: 10px; padding: 0 5px; }
.shell.mini .side nav a.on::before { left: -12px; }
.shell.mini .logo { padding: 0 0 24px; justify-content: center; }
.shell.mini .collapse { width: 48px; padding: 0; justify-content: center; margin-top: auto; }
.shell.mini .collapse .i { transform: scaleX(-1); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 16px 28px; background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.search { position: relative; flex: 0 1 440px; min-width: 0; }
.search input { min-width: 0; }
.search > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { height: 44px; padding-left: 44px; padding-right: 54px; border-color: transparent; background: var(--surface); box-shadow: var(--shadow); }
.search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 600 11px var(--font); color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; }
.search .results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 6px; max-height: 440px; overflow: auto; z-index: 30; }
.search .results .grp { padding: 10px 10px 4px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.search .results a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); }
.search .results a .i { color: var(--muted); }
.search .results a .t { font-weight: 500; }
.search .results a .s { font-size: 12px; color: var(--muted); margin-left: auto; }
.search .results a:hover, .search .results a.hl { background: var(--surface-2); }
.search .results .empty-r { padding: 18px; color: var(--muted); text-align: center; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 6px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow); }
.user-chip .av { width: 32px; height: 32px; border-radius: 99px; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.user-chip .t { font-size: 13px; font-weight: 600; line-height: 1.15; }
.user-chip .s { font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.menu-btn { display: none !important; }
.content { padding: 8px 28px 120px; width: 100%; max-width: 1440px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 10px 0 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.page-head p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.crumbs a:hover { color: var(--text); }
.crumbs .i { width: 14px; height: 14px; font-size: 14px; }

/* ---------------- cards & grid ---------------- */
.grid { display: grid; gap: 18px; }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-dash { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-edit { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.g-orders { grid-template-columns: minmax(330px, 410px) minmax(0, 1fr); align-items: start; }
.span-2 { grid-column: span 2; }
.stack { display: grid; gap: 18px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h2 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.card-head p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card h3 { margin: 22px 0 10px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sticky { position: sticky; top: 92px; }

/* KPI */
.kpi .k { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13.5px; font-weight: 500; gap: 8px; }
.kpi .k .ic { width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); flex: none; }
.kpi .v { font-size: 30px; font-weight: 600; letter-spacing: -.04em; margin-top: 14px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .d { margin-top: 8px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.kpi .d .up { color: var(--accent-strong); font-weight: 600; }
.kpi .d .down { color: var(--coral-strong); font-weight: 600; }
.kpi.dark { background: var(--ink); color: var(--ink-text); border-color: transparent; }
.kpi.dark .k, .kpi.dark .d { color: color-mix(in srgb, var(--ink-text) 62%, transparent); }
.kpi.dark .k .ic { background: color-mix(in srgb, var(--ink-text) 12%, transparent); color: var(--ink-text); }
.kpi.dark .d .up { color: var(--accent); }

/* greeting */
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 10px 0 26px; }
.hello h1 { font-size: 38px; font-weight: 600; letter-spacing: -.045em; line-height: 1.08; }
.hello p { color: var(--muted); margin-top: 12px; font-size: 15px; max-width: 520px; }
.hello .acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow); }
.seg button { appearance: none; border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--ink); color: var(--ink-text); }
.seg.light { box-shadow: none; background: var(--surface-2); }
.seg.light button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
/* sub navigation (settings tabs) */
.subnav { display: flex; gap: 2px; padding: 4px; margin: -6px 0 22px; width: fit-content; max-width: 100%; overflow-x: auto; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow); scrollbar-width: none; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500; color: var(--muted); white-space: nowrap; text-decoration: none; transition: background .12s, color .12s; }
.subnav a:hover { color: var(--text); }
.subnav a.on { background: var(--ink); color: var(--ink-text); }
.subnav a .i { width: 17px; height: 17px; font-size: 17px; }

/* chart */
.chart { width: 100%; height: auto; aspect-ratio: 720 / 250; display: block; overflow: visible; }
@media (max-width: 560px) { .chart { aspect-ratio: 340 / 250; } }
.chart .grid-l { stroke: var(--line); stroke-dasharray: 3 5; }
.chart .ax { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.chart .track { fill: var(--surface-2); }
.chart .bar { fill: var(--accent); }
.chart .bar.today { fill: url(#hatch); }
.chart .val { fill: var(--text); font-size: 11.5px; font-weight: 600; font-family: var(--font); }
.chart-sum { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-sum .v { font-size: 26px; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.chart-sum .k { font-size: 12.5px; color: var(--muted); }

/* segmented share bar */
.share { display: flex; gap: 4px; height: 28px; margin: 2px 0 20px; }
.share span { border-radius: 7px; min-width: 6px; background-image: repeating-linear-gradient(135deg, rgb(255 255 255 / 16%) 0 2px, transparent 2px 7px); }
.share .rest { flex: 1; background: var(--surface-2); }
.share-list { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.share-list .it { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.share-list .it i.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.share-list .it .n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-list .it .p { color: var(--muted); font-variant-numeric: tabular-nums; }

/* QPay card */
.qcard { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 20px; min-height: 176px; color: var(--accent-text);
  background: linear-gradient(135deg, var(--accent) 0%, #a6e1da 100%); display: flex; flex-direction: column; justify-content: space-between; }
.qcard::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgb(255 255 255 / 10%) 0 2px, transparent 2px 10px); pointer-events: none; }
.qcard.sandbox { background: linear-gradient(135deg, #ffc4bc 0%, var(--coral) 100%); color: #3d0e08; }
.qcard > * { position: relative; z-index: 1; }
.qcard .top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 600; opacity: .85; }
.qcard .brand { font-weight: 700; font-size: 22px; letter-spacing: -.03em; }
.qcard .chip { width: 40px; height: 30px; border-radius: 7px; background: rgb(255 255 255 / 45%); }
.qcard .num { font-size: 15px; letter-spacing: .14em; font-weight: 600; }
.qcard .bot { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 500; opacity: .85; }
.actions-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); cursor: pointer; background: none; border: 0; padding: 0; text-align: center; }
.qa .b { width: 100%; height: 54px; border-radius: var(--r-md); border: 1px solid var(--line-2); display: grid; place-items: center; background: var(--surface); transition: background .15s, border-color .15s; }
.qa:hover .b { background: var(--surface-2); border-color: var(--muted); }

/* lists (transaction history) */
.tlist { display: grid; grid-template-columns: minmax(0, 1fr); }
.trow { min-width: 0; }
.trow { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-top: 1px solid var(--line); cursor: pointer; border-radius: var(--r-sm); transition: background .12s; }
.trow:first-child { border-top: 0; }
.trow:hover { background: var(--surface-2); }
.trow.on { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--ink); }
.av { width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.av.c0 { background: var(--accent-soft); color: var(--accent-strong); }
.av.c1 { background: var(--coral-soft); color: var(--coral-strong); }
.av.c2 { background: var(--blue-soft); color: var(--blue); }
.av.c3 { background: var(--amber-soft); color: var(--amber); }
.trow .t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .s { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trow .amt .st { display: block; font-size: 11.5px; font-weight: 500; }
.trow .grow { flex: 1 1 0; min-width: 0; }
.trow .amt { flex: none; min-width: 0; max-width: 50%; }
.trow .amt .st { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {
  .trow { flex-wrap: wrap; row-gap: 4px; }
  .trow .grow { flex: 1 1 0; min-width: 0; }
  .trow .amt { flex: 1 0 100%; max-width: none; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-left: 54px; text-align: left; }
  .trow .amt .st { display: inline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}
.st.pending { color: var(--amber); } .st.paid { color: var(--accent-strong); } .st.shipped { color: var(--blue); } .st.done { color: var(--muted); } .st.cancelled { color: var(--red); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--text-2); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.badge.pending { background: var(--amber-soft); color: var(--amber); }
.badge.paid { background: var(--accent-soft); color: var(--accent-strong); }
.badge.shipped { background: var(--blue-soft); color: var(--blue); }
.badge.done { color: var(--muted); }
.badge.cancelled { background: var(--red-soft); color: var(--red); }
.badge.sandbox { background: var(--coral-soft); color: var(--coral-strong); }
.badge.live { background: var(--accent-soft); color: var(--accent-strong); }

/* tabs (pill filters) */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { appearance: none; border: 1px solid var(--line-2); background: var(--surface); height: 32px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tabs button .c { font-size: 11px; color: var(--muted); }
.tabs button.on { background: var(--ink); color: var(--ink-text); border-color: transparent; }
.tabs button.on .c { color: color-mix(in srgb, var(--ink-text) 62%, transparent); }

/* checklist */
.check-list { display: grid; gap: 2px; }
.check-list a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: var(--r-sm); }
.check-list a:hover { background: var(--surface-2); }
.check-list .tick { width: 26px; height: 26px; border-radius: 99px; border: 1.5px dashed var(--line-2); display: grid; place-items: center; flex: none; color: transparent; }
.check-list .tick .i { width: 15px; height: 15px; font-size: 15px; }
.check-list .done .tick { background: var(--accent); border: 0; color: var(--accent-text); }
.check-list .done .t { color: var(--muted); text-decoration: line-through; }
.check-list .t { font-weight: 500; font-size: 13.5px; }
.check-list .s { font-size: 12px; color: var(--muted); }
.check-list .go { margin-left: auto; color: var(--muted); }

/* stepper */
.stepper { display: flex; align-items: center; margin: 2px 0 22px; }
.step { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.step .n { width: 28px; height: 28px; border-radius: 99px; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--surface); }
.step .n .i { width: 15px; height: 15px; font-size: 15px; }
.step.done .n { background: var(--accent); border-color: transparent; color: var(--accent-text); }
.step.now .n { background: var(--ink); border-color: transparent; color: var(--ink-text); }
.step.now, .step.done { color: var(--text); }
.step-line { flex: 1; height: 2px; min-width: 14px; margin: 0 8px; background: var(--line-2); border-radius: 2px; }
.step-line.done { background: var(--accent); }
.next-action { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface-2); margin-bottom: 18px; }
.next-action .ic { width: 42px; height: 42px; border-radius: 99px; background: var(--surface); display: grid; place-items: center; flex: none; }
.next-action .t { font-weight: 600; }
.next-action .s { font-size: 12.5px; color: var(--muted); }

.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; font-size: 14px; }
.kv dt { color: var(--muted); white-space: nowrap; }
.kv dd { margin: 0; overflow-wrap: anywhere; font-weight: 500; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; font-size: 13px; }
.timeline li::before { content: ''; width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); margin-top: 6px; }
.timeline li:first-child::before { background: var(--accent); }
.timeline .when { color: var(--muted); font-size: 12px; }

/* tiles (content grid) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tile .ph { aspect-ratio: 4 / 3; background: var(--surface-2); }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; }
.tile .body { padding: 12px 14px 14px; }
.tile .t { font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .s { font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; margin-top: 2px; }
.tile .order { position: absolute; top: 8px; right: 8px; display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px); opacity: 0; transition: opacity .15s; }
.tile:hover .order, .tile:focus-within .order { opacity: 1; }
.tile .num { position: absolute; top: 10px; left: 10px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: color-mix(in srgb, var(--surface) 88%, transparent); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.tile.add { display: grid; place-items: center; min-height: 230px; border-style: dashed; box-shadow: none; color: var(--muted); background: transparent; }
.tile.add:hover { color: var(--text); border-color: var(--muted); transform: none; box-shadow: none; }
.tile.add .in { display: grid; justify-items: center; gap: 10px; font-weight: 500; }
.tile.add .plus { width: 46px; height: 46px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; }

/* form fields */
.f { margin-bottom: 18px; }
.f:last-child { margin-bottom: 0; }
.f > .lbl { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-2); }
.f > .help { display: block; font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.bi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bi .lang { position: relative; }
.bi .lang::before { content: attr(data-lang); position: absolute; top: 10px; right: 10px; z-index: 1; font-size: 10px; font-weight: 700; letter-spacing: .05em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--muted); pointer-events: none; }
.bi .lang input, .bi .lang textarea { padding-right: 46px; }
.blocks { display: grid; gap: 12px; }
.block { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; background: var(--surface-2); }
.block-head { display: flex; gap: 2px; align-items: center; margin-bottom: 14px; }
.block-head .type { flex: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.block-head .type .n { width: 24px; height: 24px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 11px; }
.add-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }

.imgpick { display: flex; gap: 14px; align-items: center; }
.imgpick .prev { width: 84px; height: 84px; border-radius: var(--r-md); object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.imgpick .name { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.imggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.imgcell { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.imgcell img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface-2); }
.imgcell .cap { padding: 8px 10px; font-size: 11.5px; color: var(--muted); word-break: break-all; display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.imgcell.pick { cursor: pointer; }
.imgcell.pick:hover { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.imgcell.add { display: grid; place-items: center; min-height: 150px; border-style: dashed; background: transparent; color: var(--muted); cursor: pointer; font-weight: 500; }
.imgcell.add:hover { color: var(--text); border-color: var(--muted); }
.imgcell .tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px); opacity: 0; transition: opacity .15s; }
.imgcell:hover .tools, .imgcell:focus-within .tools { opacity: 1; }
.dropzone { display: grid; justify-items: center; gap: 10px; border: 1.5px dashed var(--line-2); border-radius: var(--r-xl); padding: 28px; text-align: center; color: var(--muted); margin-bottom: 18px; background: var(--surface); transition: border-color .15s, background .15s; }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.dropzone .ic { width: 48px; height: 48px; border-radius: 99px; background: var(--surface-2); display: grid; place-items: center; color: var(--text); }

.side-prev { border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); aspect-ratio: 1; margin-bottom: 16px; }
.side-prev img { width: 100%; height: 100%; object-fit: cover; }
.side-actions { display: grid; gap: 8px; }

/* save bar */
.savebar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 18px; background: var(--ink); color: var(--ink-text); box-shadow: var(--shadow-lg); animation: rise .25s cubic-bezier(.2,.8,.2,1); max-width: calc(100vw - 32px); }
.savebar .msg { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14px; }
.savebar .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--coral); flex: none; }
.savebar .btn { height: 38px; }
.savebar .btn.ghost { color: var(--ink-text); }
.savebar .btn.ghost:hover { background: color-mix(in srgb, var(--ink-text) 12%, transparent); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 16px); } }

/* empty, alerts */
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty .ic { width: 54px; height: 54px; border-radius: 99px; background: var(--surface-2); display: grid; place-items: center; margin: 0 auto 12px; color: var(--text-2); }
.alert { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 18px; font-size: 14px; }
.alert .title { font-weight: 600; margin-bottom: 2px; }
.alert.warn { background: var(--coral-soft); }
.alert.warn > .i { color: var(--coral-strong); }
.alert.ok { background: var(--accent-soft); }
.alert.ok > .i { color: var(--accent-strong); }

/* modal & toast */
.modal { position: fixed; inset: 0; z-index: 60; background: rgb(10 10 12 / 45%); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fade .15s ease-out; }
.modal-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); width: min(960px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 24px; box-shadow: var(--shadow-lg); animation: zoom .2s cubic-bezier(.2,.8,.2,1); }
.modal-box.narrow { width: min(460px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.modal-head h2 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
@keyframes fade { from { opacity: 0; } }
@keyframes zoom { from { opacity: 0; transform: scale(.96) translateY(6px); } }
.toasts { position: fixed; top: 18px; right: 18px; z-index: 70; display: grid; gap: 8px; width: min(360px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); color: var(--text); border: 1px solid var(--line); padding: 14px 16px; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); font-size: 13.5px; animation: toastIn .3s cubic-bezier(.2,.8,.2,1); }
.toast > .i { color: var(--accent-strong); }
.toast.bad > .i { color: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--canvas); }
.login .art { position: relative; margin: 16px; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, var(--accent) 0%, #a9e0d9 55%, #ffd8d2 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 44px; color: var(--accent-text); }
.login .art::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgb(255 255 255 / 10%) 0 2px, transparent 2px 12px); }
.login .art > * { position: relative; z-index: 1; }
.login .art .logo { position: absolute; top: 40px; left: 44px; padding: 0; }
.login .art h2 { font-size: 36px; font-weight: 600; letter-spacing: -.045em; line-height: 1.08; max-width: 440px; }
.login .art p { margin-top: 14px; max-width: 380px; opacity: .8; font-size: 15px; }
.login .pane { display: grid; place-items: center; padding: 24px; position: relative; }
.login form { width: min(380px, 100%); }
.login h1 { font-size: 30px; font-weight: 600; letter-spacing: -.04em; }
.login p.sub { color: var(--muted); margin: 8px 0 28px; }
.login .err { font-size: 13px; color: var(--red); min-height: 20px; margin: 2px 0 10px; }
.login .theme-corner { position: absolute; top: 20px; right: 20px; }

* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 40%, transparent) transparent; }

/* ---------------- responsive ---------------- */
@media (max-width: 1280px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-dash { grid-template-columns: minmax(0, 1fr); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .g-edit { grid-template-columns: minmax(0, 1fr); }
  .g-edit .sticky { position: static; }
  .g-orders { grid-template-columns: minmax(0, 1fr); }
  .g-orders.has-sel .orders-list { display: none; }
  .g-orders:not(.has-sel) .orders-detail { display: none; }
}
@media (min-width: 1081px) { .back-to-list { display: none !important; } }
@media (max-width: 860px) {
  .shell, .shell.mini { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-102%); transition: transform .25s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-lg); }
  .shell.side-open .side { transform: none; }
  .shell.side-open::after { content: ''; position: fixed; inset: 0; z-index: 45; background: rgb(0 0 0 / 40%); }
  .side .collapse { display: none; }
  .menu-btn { display: inline-grid !important; }
  .topbar { padding: 12px 16px; gap: 8px; }
  .search { flex: 1; }
  .search kbd, .user-chip .meta { display: none; }
  .user-chip { padding: 0 6px; }
  .content { padding: 4px 16px 120px; }
  .g-4, .g-3, .g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2 { grid-column: span 1; }
  .bi { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .hello h1 { font-size: 30px; }
  .page-head h1 { font-size: 25px; }
  .login { grid-template-columns: 1fr; }
  .login .art { display: none; }
  .savebar { left: 16px; right: 16px; transform: none; justify-content: space-between; }
  .savebar .long { display: none; }
}
@media (max-width: 560px) {
  .topbar .right .ext, .user-chip { display: none; }
  .topbar .right { gap: 6px; }
  .card-head { flex-wrap: wrap; }
  .next-action { flex-wrap: wrap; }
  .next-action > .row { width: 100%; }
  .next-action > .row .btn { flex: 1; }
  .hello h1 { font-size: 28px; }
  .hello .acts { width: 100%; }
  .g-4, .g-3, .g-2 { grid-template-columns: minmax(0, 1fr); }
  .kpi .v { font-size: 26px; }
  .card { padding: 18px; border-radius: 18px; }
  .step .lbl { display: none; }
  .actions-row { grid-template-columns: repeat(4, 1fr); gap: 6px; }
}

/* ---------------- geren additions (docs/DESIGN.md §1.5) ---------------- */
/* stock badge: Бэлэн (accent), Цөөхөн (coral), Дууссан (grey) */
.stock-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--accent-soft); color: var(--accent-strong); }
.stock-badge.low { background: var(--coral-soft); color: var(--coral-strong); }
.stock-badge.out { background: var(--surface-2); color: var(--muted); }
.st.packed, .st.ready { color: var(--blue); } .st.refunded, .st.paid_no_stock { color: var(--red); }
.badge.packed, .badge.ready { background: var(--blue-soft); color: var(--blue); }
.badge.refunded, .badge.paid_no_stock { background: var(--red-soft); color: var(--red); }
/* the users list has buttons on the right instead of an amount */
.trow > .row { flex: none; flex-wrap: nowrap; }
@media (max-width: 560px) { .trow > .row { flex: 1 0 100%; justify-content: flex-end; padding-left: 54px; } }

/* table (.table): sticky head, numbers right-aligned, the table scrolls sideways inside its card, never the page */
.table-wrap { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { position: sticky; top: 0; background: var(--surface); text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .w-check { width: 34px; }
.cell-book { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.cell-book .t { font-weight: 500; overflow-wrap: anywhere; }
.cell-book .s { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.cover-sm { width: 36px; height: 50px; border-radius: 6px; object-fit: cover; background: var(--surface-2); flex: none; box-shadow: var(--shadow); }
.cover-sm.ph, .side-prev .ph { display: grid; place-items: center; color: var(--muted); }
.side-prev.book { aspect-ratio: 3 / 4; display: grid; }
.side-prev.book img { object-fit: contain; }
.stock-badge.res { background: var(--blue-soft); color: var(--blue); }
.filters { margin-bottom: 14px; gap: 10px; }
.filters select { width: auto; flex: 0 1 200px; }
.bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border-radius: var(--r-md); background: var(--surface-2); }
.bulkbar select { width: auto; min-height: 34px; padding-top: 5px; padding-bottom: 5px; font-size: 13px; }
.money { position: relative; }
.money input { padding-right: 34px; font-variant-numeric: tabular-nums; }
.money span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.author-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px 34px; gap: 8px; align-items: center; }
.checks { display: grid; gap: 2px; max-height: 260px; overflow: auto; }
.seg.wrap { flex-wrap: wrap; }
.trow.child { padding-left: 34px; }
@media (max-width: 560px) {
  .table .hide-sm { display: none; }
  .filters select { flex: 1 1 140px; }
  .author-row { grid-template-columns: minmax(0, 1fr) 34px; }
  .author-row select { grid-column: 1; grid-row: 2; }
  .author-row .icon-btn { grid-row: 1 / span 2; grid-column: 2; }
  .trow.child { padding-left: 20px; }
}

/* handover acts and counts */
.ha-totals { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; color: var(--muted); }
.ha-totals strong { color: var(--text); font-variant-numeric: tabular-nums; }
.ha-actions { display: grid; gap: 8px; }
.ha-actions .note { margin-top: 4px; }
.table .w-qty { width: 96px; }
.table .w-qty input { min-height: 36px; padding: 6px 10px; text-align: right; font-variant-numeric: tabular-nums; }
.table .w-money { width: 150px; }
.table .w-money input { min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.table td input[type=text] { min-height: 36px; padding: 6px 10px; }
.nowrap { white-space: nowrap; }
a.link { text-decoration: underline; text-underline-offset: 2px; }
.search .results a .s { margin-left: auto; }
.filters input[type=date] { width: auto; flex: 0 1 160px; }
@media (max-width: 560px) {
  .table .w-qty { width: 76px; }
  .table .w-money { width: 120px; }
  .filters input[type=date] { flex: 1 1 130px; }
}

/* A4 print (хүлээлцэх акт): only the document prints, never the admin chrome */
.print-doc { display: none; }
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  html, body { background: #fff !important; }
  body > *:not(.print-doc) { display: none !important; }
  .print-doc { display: block; color: #000; font: 11pt/1.45 var(--font); }
  .print-doc .pd-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14mm; }
  .print-doc .logo { padding: 0; font-size: 20pt; color: #000; }
  .print-doc .logo .dot { background: #57bfb6; }
  .print-doc .pd-meta { text-align: right; font-size: 10pt; }
  .print-doc h1 { font-size: 15pt; text-align: center; letter-spacing: .02em; margin: 0 0 6mm; }
  .print-doc p { margin: 0 0 4mm; }
  .print-doc table { width: 100%; border-collapse: collapse; margin: 4mm 0 6mm; font-size: 10pt; }
  .print-doc th, .print-doc td { border: 0.6pt solid #000; padding: 1.6mm 2mm; text-align: left; vertical-align: top; }
  .print-doc th { background: #f1f1f1; font-weight: 600; }
  .print-doc .num { text-align: right; white-space: nowrap; }
  .print-doc tfoot td { font-weight: 700; }
  .print-doc .pd-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 14mm; margin-top: 16mm; }
  .print-doc .pd-sign .lbl { font-weight: 600; margin-bottom: 12mm; }
  .print-doc .pd-sign .line { border-bottom: 0.6pt solid #000; margin-bottom: 1.5mm; }
}

/* form grids inside cards: the grid gap spaces the fields, so fields drop their own bottom margin there */
.card .grid > .f { margin-bottom: 0; }
.card .grid:not(:last-child) { margin-bottom: 18px; }
input[type=date] { font-variant-numeric: tabular-nums; }
.table .w-qty input { min-width: 64px; }
.table .w-money .money { min-width: 110px; }
@media (max-width: 560px) {
  .table-wrap:has(.table.cards-sm) { overflow: visible; }
  .table.cards-sm thead { display: none; }
  .table.cards-sm, .table.cards-sm tbody { display: block; }
  .table.cards-sm tr { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table.cards-sm tr:last-child { border-bottom: 0; }
  .table.cards-sm td { display: block; border: 0; padding: 0; width: auto; }
  .table.cards-sm td:first-child { flex: 1 0 100%; }
  .table.cards-sm td.hide-sm { display: none; }
  .table.cards-sm td.w-money { flex: 1 1 120px; }
  .table.cards-sm td.w-qty { flex: 0 0 88px; }
  .table.cards-sm td.num { flex: 1 1 60px; text-align: left; }
  .table.cards-sm td.w-check { flex: 0 0 auto; margin-left: auto; }
  .table.cards-sm td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
}
.card .blocks:not(:last-child) { margin-bottom: 18px; }

/* delivery label print (one big block) */
@media print {
  .print-doc.label { font-size: 14pt; border: 1pt solid #000; padding: 8mm; max-width: 120mm; }
  .print-doc.label .big { font-size: 22pt; font-weight: 700; margin-bottom: 3mm; }
  .print-doc.label .pd-head { margin-bottom: 6mm; }
}
.st.paid_no_stock, .st.refunded { color: var(--red); }
