@font-face { font-family: 'Bebas'; src: url('/fonts/bebas-neue-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url('/fonts/cairo-arabic-400-normal.woff2') format('woff2'); font-weight: 400; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Cairo'; src: url('/fonts/cairo-arabic-700-normal.woff2') format('woff2'); font-weight: 700; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Cairo'; src: url('/fonts/cairo-arabic-800-normal.woff2') format('woff2'); font-weight: 800; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Cairo'; src: url('/fonts/cairo-latin-400-normal.woff2') format('woff2'); font-weight: 400; }
@font-face { font-family: 'Cairo'; src: url('/fonts/cairo-latin-700-normal.woff2') format('woff2'); font-weight: 700; }
@font-face { font-family: 'Cairo'; src: url('/fonts/cairo-latin-800-normal.woff2') format('woff2'); font-weight: 800; }

:root {
  --bg: #2E2D4C;
  --bg-2: #262543;
  --surface: #363559;
  --surface-2: #42416A;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #F2F5F1;
  --muted: #ABAACB;
  --mint: #C0DBC6;
  --mint-ink: #2E2D4C;
  --mint-soft: rgba(192, 219, 198, 0.16);
  --red: #FF5C6C;
  --red-soft: rgba(255, 92, 108, 0.14);
  --amber: #FFC24B;
  --amber-soft: rgba(255, 194, 75, 0.14);
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --display: 'Bebas', 'Inter', system-ui, sans-serif;
  --ui: 'Inter', 'Cairo', system-ui, -apple-system, sans-serif;
  --ar: 'Cairo', 'Inter', system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; touch-action: manipulation; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--ui); -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; background: radial-gradient(1200px 500px at 80% -10%, rgba(192, 219, 198, 0.08), transparent 60%), var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
@media (hover: hover) {
  .icon-btn:hover { background: var(--surface-2); }
  .tab-sell:hover { filter: brightness(1.05); }
  .cell:hover { border-color: var(--line-2); }
  .btn:hover { filter: brightness(1.1); }
  .sale:hover { border-color: var(--line-2); }
}
.num { font-variant-numeric: tabular-nums; }
.ar { font-family: var(--ar); direction: rtl; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- shell ---------- */
.shell { max-width: 1100px; margin: 0 auto; padding: 16px 16px calc(110px + var(--safe-b)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; }
.brand-mark img { width: 88%; height: 88%; object-fit: contain; }
.brand-title { font-family: var(--display); font-size: 28px; letter-spacing: 1.5px; line-height: 1; }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; transition: background .15s, transform .1s; }
.icon-btn:active { transform: scale(.95); }
.icon-btn svg { width: 20px; height: 20px; }
.user-pill { font-size: 13px; color: var(--muted); padding: 0 6px; text-transform: capitalize; }

/* tabs */
.tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-b)); z-index: 30; display: flex; gap: 6px; padding: 6px; border-radius: 20px; background: rgba(54, 53, 89, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.tab { white-space: nowrap; border: 0; background: transparent; color: var(--muted); padding: 10px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; position: relative; }
.tab svg { width: 18px; height: 18px; }
.tab.active { background: var(--surface-2); color: var(--text); }
.tab .badge { position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; display: grid; place-items: center; }
.tab-sell { background: var(--mint); color: var(--mint-ink); }

/* ---------- cards / kpis ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; min-width: 0; }
.kpi-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.kpi-value { font-family: var(--display); font-size: 38px; letter-spacing: .5px; line-height: 1.05; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value small { font-family: var(--ui); font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 4px; letter-spacing: 0; }
.kpi-foot { font-size: 12px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.accent { background: linear-gradient(135deg, rgba(192, 219, 198, 0.16), rgba(192, 219, 198, 0.04)); border-color: rgba(192, 219, 198, 0.3); }
.kpi.accent .kpi-value { color: var(--mint); }
.kpi.warn .kpi-value { color: var(--amber); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 2px 12px; }
.section-title { font-family: var(--display); font-size: 24px; letter-spacing: 1px; }
.section-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- alerts ---------- */
.alerts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert-col { border-radius: var(--r); padding: 14px; border: 1px solid var(--line); background: var(--surface); }
.alert-col h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; display: flex; align-items: center; gap: 8px; }
.alert-col.low h4 { color: var(--red); }
.alert-col.high h4 { color: var(--amber); }
.alert-col h4 .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent); }
.alert-list { display: flex; flex-wrap: wrap; gap: 6px; }
.alert-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.alert-chip .sw { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.alert-chip b { font-variant-numeric: tabular-nums; }
.alert-col.low .alert-chip b { color: var(--red); }
.alert-col.high .alert-chip b { color: var(--amber); }
.alert-chip.out { opacity: .6; }
.alert-empty { font-size: 13px; color: var(--muted); }

/* ---------- stock grid ---------- */
.grid-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
table.stock { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 520px; table-layout: fixed; }
.stock col.c-size { width: 64px; } .stock col.c-total { width: 72px; }
.stock th, .stock td { padding: 0; text-align: center; }
.stock thead th { padding: 14px 6px 10px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--line); }
.stock thead .col-head { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stock thead .sw { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); }
.stock tbody th, .stock tfoot th { font-family: var(--display); font-size: 22px; letter-spacing: 1px; padding: 0 14px; color: var(--text); text-align: left; width: 64px; }
.stock td { padding: 6px 4px; border-top: 1px solid var(--line); }
.stock tbody tr:first-child td, .stock tbody tr:first-child th { border-top: 0; }
.cell { width: 100%; min-width: 54px; height: 56px; border-radius: 12px; border: 1px solid transparent; background: var(--bg-2); display: grid; place-items: center; font-family: var(--display); font-size: 28px; letter-spacing: .5px; position: relative; transition: transform .1s, background .15s, border-color .15s; }
.cell:active { transform: scale(.95); }
.cell.low { background: var(--red-soft); color: var(--red); border-color: rgba(255, 92, 108, .35); }
.cell.out { color: rgba(242, 245, 241, .25); background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(255,255,255,.03) 6px 12px), var(--bg-2); }
.cell.high { background: var(--amber-soft); color: var(--amber); border-color: rgba(255, 194, 75, .35); }
.cell .tag { position: absolute; top: 4px; right: 6px; font-family: var(--ui); font-size: 9px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; opacity: .9; }
.cell.flash { animation: flash .9s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(192,219,198,.8); } 100% { box-shadow: 0 0 0 14px rgba(192,219,198,0); } }
.stock .total-col { font-family: var(--display); font-size: 22px; color: var(--muted); padding: 0 12px; }
.stock tfoot td, .stock tfoot th { border-top: 1px solid var(--line-2); padding: 10px 4px 12px; font-family: var(--display); font-size: 22px; color: var(--muted); }
.stock tfoot .grand { color: var(--mint); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 10px 4px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

/* ---------- buttons / forms ---------- */
.btn { border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .1s, filter .15s, background .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--mint); color: var(--mint-ink); border-color: transparent; }
.btn.danger { background: transparent; color: var(--red); border-color: rgba(255, 92, 108, .4); }
.btn.ghost { background: transparent; }
.btn.wa { background: #25D366; color: #052e16; border-color: transparent; }
.btn.block { width: 100%; padding: 14px; font-size: 15px; }
.btn.sm { padding: 7px 10px; font-size: 13px; border-radius: 10px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.input { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 12px; padding: 9px 12px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: border-color .15s, background .15s, transform .1s; }
.chip:active { transform: scale(.96); }
.chip .sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); }
.chip .cnt { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.on { border-color: var(--mint); background: var(--mint-soft); }
.chip.on .cnt { color: var(--mint); }
.chip:disabled { opacity: .35; pointer-events: none; text-decoration: line-through; }
.size-chip { min-width: 64px; flex-direction: column; gap: 2px; padding: 8px 10px; }
.size-chip .s { font-family: var(--display); font-size: 22px; letter-spacing: 1px; line-height: 1; }

.seg { display: flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px 6px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.seg button small { font-size: 11px; font-weight: 600; opacity: .85; }
.seg button.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--mint); }
.seg button.on small { color: var(--mint); }

.stepper { display: flex; align-items: center; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 22px; color: var(--mint); }
.stepper span { min-width: 34px; text-align: center; font-family: var(--display); font-size: 26px; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); }
.switch input { appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--surface-2); position: relative; transition: background .15s; border: 1px solid var(--line-2); cursor: pointer; }
.switch input::after { content: ''; position: absolute; width: 22px; height: 22px; top: 2px; left: 2px; border-radius: 50%; background: #fff; transition: transform .18s; }
.switch input:checked { background: var(--mint); }
.switch input:checked::after { transform: translateX(18px); }

/* ---------- sheet (modal) ---------- */
.overlay { position: fixed; inset: 0; overscroll-behavior: contain; z-index: 50; background: rgba(20, 19, 38, 0.6); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease; }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; background: var(--bg); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 8px 18px calc(18px + var(--safe-b)); animation: up .22s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet.wide { max-width: 760px; }
@media (min-width: 720px) { .overlay { align-items: center; } .sheet { border-radius: 22px; border-bottom: 1px solid var(--line-2); } }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 4px auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; position: sticky; top: -8px; background: var(--bg); padding: 8px 0; z-index: 2; }
.sheet-title { font-family: var(--display); font-size: 28px; letter-spacing: 1px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.builder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 14px; }
.builder .label { display: block; margin: 0 0 8px; }
.builder .block { margin-bottom: 14px; }

.cart { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); animation: up .2s ease; }
.cart-line .sw { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); flex: none; display: grid; place-items: center; font-family: var(--display); font-size: 16px; }
.cart-line .info { flex: 1; min-width: 0; }
.cart-line .t { font-weight: 700; overflow-wrap: anywhere; }
.cart-line .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cart-line .p { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-line .x { border: 0; background: transparent; color: var(--muted); font-size: 20px; padding: 4px; }

.totals { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; }
.totals .line { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); font-size: 14px; }
.totals .grand { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line-2); margin-top: 8px; padding-top: 10px; }
.totals .grand span:first-child { font-weight: 700; }
.totals .grand b { font-family: var(--display); font-size: 40px; color: var(--mint); letter-spacing: .5px; }

/* ---------- sales list ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { flex: 1; min-width: 180px; }
.filter-seg { display: flex; gap: 6px; }
.sales-list { display: flex; flex-direction: column; gap: 10px; }
.sale { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; transition: border-color .15s, transform .1s; }
.sale:active { transform: scale(.99); }
.sale .main { flex: 1; min-width: 0; }
.sale .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sale .inv { font-family: var(--display); font-size: 18px; letter-spacing: 1px; color: var(--muted); }
.sale .who { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.sale .items { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mini { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }
.mini .sw { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.mini.print { color: var(--mint); border-color: rgba(192,219,198,.25); }
.sale .when { font-size: 12px; color: var(--muted); margin-top: 6px; }
.sale .amt { text-align: right; }
.sale .amt b { display: block; font-family: var(--display); font-size: 26px; letter-spacing: .5px; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; }
.pill.paid { background: var(--mint-soft); color: var(--mint); }
.pill.unpaid { background: var(--amber-soft); color: var(--amber); }
.pill.cancelled { background: var(--red-soft); color: var(--red); }
.sale.is-cancelled { opacity: .55; }
.sale.is-cancelled .amt b { text-decoration: line-through; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }

/* detail */
.detail-items { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv span:first-child { color: var(--muted); }
.actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.receipt-preview { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); margin: 6px 0 14px; background: var(--bg-2); }
.receipt-preview img { display: block; width: 100%; }

/* history */
.mv { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mv .sw { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); flex: none; }
.mv .d { font-family: var(--display); font-size: 20px; min-width: 44px; text-align: right; }
.mv .d.plus { color: var(--mint); }
.mv .d.minus { color: var(--red); }
.mv .what { flex: 1; min-width: 0; }
.mv .what small { display: block; color: var(--muted); font-size: 12px; }

/* restock grid */
.restock-grid { width: 100%; border-collapse: collapse; }
.restock-grid th { font-size: 12px; color: var(--muted); padding: 6px 2px; }
.restock-grid th .sw { width: 16px; height: 16px; border-radius: 50%; display: block; margin: 0 auto 4px; border: 1px solid rgba(255,255,255,.25); }
.restock-grid td { padding: 3px; }
.restock-grid tbody th { font-family: var(--display); font-size: 20px; color: var(--text); }
.restock-grid input { width: 100%; min-width: 44px; text-align: center; padding: 10px 2px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; font-family: var(--display); font-size: 20px; outline: none; }
.restock-grid input:focus { border-color: var(--mint); }
.restock-grid input:not(:placeholder-shown) { border-color: var(--mint); color: var(--mint); }

/* ---------- toasts ---------- */
#toasts { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(66, 65, 106, 0.97); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(10px); animation: drop .25s cubic-bezier(.2,.8,.2,1); font-size: 14px; }
.toast .ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; font-weight: 800; }
.toast.ok .ic { background: var(--mint-soft); color: var(--mint); }
.toast.low .ic { background: var(--red-soft); color: var(--red); }
.toast.high .ic { background: var(--amber-soft); color: var(--amber); }
.toast.err .ic { background: var(--red-soft); color: var(--red); }
.toast b { display: block; margin-bottom: 2px; }
.toast span { color: var(--muted); }
.toast.out { animation: rise .2s ease forwards; }
@keyframes drop { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { to { transform: translateY(-10px); opacity: 0; } }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px; padding: 28px 22px; box-shadow: var(--shadow); }
.login-card .brand { justify-content: center; flex-direction: column; text-align: center; margin-bottom: 24px; }
.login-card .brand-mark { width: 64px; height: 64px; font-size: 32px; border-radius: 18px; }
.login-card .brand-title { font-size: 40px; }
.err-text { color: var(--red); font-size: 13px; min-height: 18px; margin: -4px 0 10px; }

/* ---------- receipt (rendered off-screen → PDF) ---------- */
#receipt-stage { position: fixed; left: -10000px; top: 0; }
.rc { width: 720px; background: #2E2D4C; color: #F2F5F1; font-family: 'Inter', 'Cairo', sans-serif; padding: 44px 44px 36px; position: relative; overflow: hidden; }
.rc::before { content: ''; position: absolute; right: -160px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(192,219,198,.22), transparent 70%); }
.rc-head { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.rc-logo { display: flex; align-items: center; }
.rc-logo img.lockup { height: 92px; display: block; }
.rc-logo img.custom { max-height: 92px; max-width: 300px; display: block; border-radius: 12px; }
.rc-foot img.tagline { height: 17px; display: block; margin: 0 0 6px auto; }
.rc-logo .mark { width: 74px; height: 74px; border-radius: 18px; background: #C0DBC6; display: grid; place-items: center; overflow: hidden; }
.rc-logo .mark img { width: 100%; height: 100%; object-fit: contain; }
.rc-logo .mark svg { width: 46px; height: 46px; }
.rc-logo .wm-ar { font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 28px; line-height: 1.1; direction: rtl; }
.rc-logo .wm-en { font-family: 'Bebas', sans-serif; font-size: 34px; letter-spacing: 6px; line-height: 1; color: #C0DBC6; }
.rc-title { text-align: right; }
.rc-title .en { font-family: 'Bebas', sans-serif; font-size: 52px; letter-spacing: 3px; line-height: .95; }
.rc-title .ar { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 20px; color: #ABAACB; direction: rtl; }
.rc-meta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 30px 0 22px; position: relative; }
.rc-box { background: #363559; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px 14px; }
.rc-box .k { font-size: 11px; color: #ABAACB; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; display: flex; justify-content: space-between; }
.rc-box .k .ar { font-family: 'Cairo', sans-serif; text-transform: none; letter-spacing: 0; }
.rc-box .v { font-size: 17px; font-weight: 700; margin-top: 4px; word-break: break-word; }
.rc-box .v2 { font-size: 13px; color: #ABAACB; margin-top: 2px; }
.rc-table { width: 100%; border-collapse: collapse; position: relative; }
.rc-table th { font-size: 11px; color: #ABAACB; text-transform: uppercase; letter-spacing: .8px; text-align: left; padding: 0 8px 10px; font-weight: 700; }
.rc-table th .ar { display: block; font-family: 'Cairo', sans-serif; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 400; }
.rc-table th.r, .rc-table td.r { text-align: right; }
.rc-table th.c, .rc-table td.c { text-align: center; }
.rc-table td { padding: 14px 8px; border-top: 1px solid rgba(255,255,255,.08); font-size: 15px; vertical-align: middle; }
.rc-item { display: flex; align-items: center; gap: 12px; }
.rc-item .sw { width: 30px; height: 30px; border-radius: 9px; border: 1px solid rgba(255,255,255,.25); flex: none; }
.rc-item .t { font-weight: 700; }
.rc-item .s { font-size: 12px; color: #ABAACB; margin-top: 2px; }
.rc-item .s .ar { font-family: 'Cairo', sans-serif; }
.rc-item .pr { color: #C0DBC6; }
.rc-sum { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 18px; gap: 20px; position: relative; }
.rc-stamp { border: 2px solid #C0DBC6; color: #C0DBC6; border-radius: 12px; padding: 8px 14px; transform: rotate(-6deg); font-family: 'Bebas', sans-serif; font-size: 30px; letter-spacing: 3px; line-height: 1; text-align: center; }
.rc-stamp .ar { font-family: 'Cairo', sans-serif; font-size: 15px; letter-spacing: 0; font-weight: 700; display: block; margin-top: 2px; }
.rc-stamp.unpaid { border-color: #FFC24B; color: #FFC24B; }
.rc-totals { min-width: 300px; }
.rc-totals .ln { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: #ABAACB; }
.rc-totals .ln .ar { font-family: 'Cairo', sans-serif; }
.rc-totals .gr { display: flex; justify-content: space-between; align-items: center; background: #C0DBC6; color: #2E2D4C; border-radius: 14px; padding: 12px 16px; margin-top: 8px; }
.rc-totals .gr .lbl { font-weight: 800; font-size: 14px; line-height: 1.2; }
.rc-totals .gr .lbl .ar { font-family: 'Cairo', sans-serif; display: block; font-size: 13px; }
.rc-totals .gr .val { font-family: 'Bebas', sans-serif; font-size: 40px; letter-spacing: .5px; line-height: 1; }
.rc-totals .gr .val small { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; margin-left: 4px; }
.rc-note { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: #363559; font-size: 13px; color: #D3D6E4; }
.rc-foot { margin-top: 28px; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,.14); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #ABAACB; }
.rc-foot .tag { font-family: 'Bebas', sans-serif; font-size: 22px; letter-spacing: 2px; color: #C0DBC6; }
.rc-foot .thanks .ar { font-family: 'Cairo', sans-serif; direction: rtl; display: block; }

body.kb .tabs { display: none; }
.offline-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 90; pointer-events: none; background: var(--red); color: #fff; text-align: center; font-size: 13px; font-weight: 700; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px; }

.pw-warn { background: var(--amber-soft); border: 1px solid rgba(255,194,75,.4); color: var(--amber); border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }

/* ---------- products ---------- */
.prod-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 6px -2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.prod-tabs::-webkit-scrollbar { display: none; }
.prod-tab { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-weight: 700; font-size: 14px; }
.prod-tab .pc { font-size: 12px; padding: 2px 7px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.prod-tab.on { background: var(--mint); color: var(--mint-ink); border-color: transparent; }
.prod-tab.on .pc { background: rgba(46, 45, 76, .15); color: var(--mint-ink); }
.prod-tab.add { border-style: dashed; color: var(--mint); background: transparent; }
.prod-tab svg { width: 16px; height: 16px; }
.prod-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 2px 12px; }
.ph-main { min-width: 0; }
.ph-name { font-family: var(--display); font-size: 28px; letter-spacing: 1px; line-height: 1.05; }
.ph-name .ar { font-family: var(--ar); font-size: 18px; color: var(--muted); letter-spacing: 0; }
.ph-meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.chip svg { width: 14px; height: 14px; }
.chip.sm { padding: 7px 10px; font-size: 13px; border-radius: 10px; }
.ed-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 6px 0 14px; }
.ed-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.color-rows { display: flex; flex-direction: column; gap: 8px; }
.color-row { display: grid; grid-template-columns: 44px 1fr 1fr 36px; gap: 8px; align-items: center; }
.color-row .input { padding: 10px 12px; }
.color-row .x, .size-tag .x { border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; padding: 4px; }
.swatch-pick { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line-2); position: relative; overflow: hidden; cursor: pointer; display: block; }
.swatch-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.size-tag { padding: 6px 6px 6px 12px; font-family: var(--display); font-size: 20px; letter-spacing: 1px; gap: 4px; }
.size-tag .x { font-size: 20px; }
.plist { display: flex; flex-direction: column; gap: 8px; }
.pitem { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.pitem .pi-main { flex: 1; min-width: 0; }
.pitem small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.pitem.is-arch { opacity: .6; }
[hidden] { display: none !important; }

/* contact field + send buttons */
.contact-input { position: relative; }
.contact-input .input { padding-left: 46px; }
.ci-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); transition: background .15s, color .15s; pointer-events: none; }
.ci-icon svg { width: 16px; height: 16px; }
.ci-icon.phone { background: #25D366; color: #fff; }
.ci-icon.instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); color: #fff; }
.hint { font-size: 12px; color: var(--muted); min-height: 16px; }
.hint.ok { color: var(--mint); }
.hint.bad { color: var(--amber); }
.field .hint:empty { display: none; }
.btn.ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); color: #fff; border-color: transparent; }
.send-btn { flex-direction: column; gap: 2px; padding: 12px 14px; }
.send-btn .lbl { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.send-btn small { font-size: 12px; font-weight: 600; opacity: .9; }

/* ================= brand polish ================= */
::selection { background: var(--mint); color: var(--mint-ink); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.input:focus-visible, .restock-grid input:focus-visible { outline: none; }
input, textarea { caret-color: var(--mint); accent-color: var(--mint); }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input::placeholder { color: rgba(171, 170, 203, .55); }

/* branded scrollbars (mint → lavender) */
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: rgba(192, 219, 198, .6) transparent; } }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--mint), var(--muted)); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { border-width: 2px; }
::-webkit-scrollbar-corner { background: transparent; }
.grid-wrap::-webkit-scrollbar-thumb, .sheet::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--mint), var(--muted)); background-clip: padding-box; }
.prod-tabs { scrollbar-width: none; }

/* soft drifting brand glow behind everything */
body { background: transparent; }
body::before, body::after { content: ''; position: fixed; z-index: -1; border-radius: 50%; pointer-events: none; }
body::before { width: 60vmax; height: 60vmax; right: -22vmax; top: -26vmax; background: radial-gradient(circle, rgba(192, 219, 198, .15), transparent 62%); animation: drift 24s ease-in-out infinite alternate; }
body::after { width: 54vmax; height: 54vmax; left: -24vmax; bottom: -24vmax; background: radial-gradient(circle, rgba(171, 170, 203, .14), transparent 62%); animation: drift 30s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(-5vmax, 4vmax, 0) scale(1.12); } }

/* top bar: sticks, blurs, shows how far you scrolled */
.topbar { position: sticky; top: 0; z-index: 20; margin: -16px -16px 14px; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; background: rgba(46, 45, 76, .74); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 20px 20px; }
@supports (animation-timeline: scroll()) {
  .topbar::after { content: ''; position: absolute; left: 20px; right: 20px; bottom: -1px; border-radius: 2px; height: 2px; background: linear-gradient(90deg, var(--mint), var(--muted)); transform-origin: 0 50%; transform: scaleX(0); animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}
.brand-title { background: linear-gradient(90deg, var(--text) 35%, var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-mark { box-shadow: 0 0 0 1px rgba(192, 219, 198, .18), 0 6px 18px rgba(0, 0, 0, .3); }
.user-pill { padding: 6px 10px; border-radius: 999px; background: var(--mint-soft); color: var(--mint); font-weight: 600; }

/* entrance (first paint + tab switch only) */
@keyframes pop-in { from { opacity: 0; transform: translateY(12px); } }
.enter > * { animation: pop-in .45s cubic-bezier(.2, .8, .2, 1) backwards; }
.enter > *:nth-child(2) { animation-delay: .05s; } .enter > *:nth-child(3) { animation-delay: .1s; }
.enter > *:nth-child(4) { animation-delay: .15s; } .enter > *:nth-child(n+5) { animation-delay: .2s; }
.enter .kpi { animation: pop-in .5s cubic-bezier(.2, .8, .2, 1) backwards; }
.enter .kpi:nth-child(2) { animation-delay: .06s; } .enter .kpi:nth-child(3) { animation-delay: .12s; } .enter .kpi:nth-child(4) { animation-delay: .18s; }

/* cards */
.kpi { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--surface-2) -60%, var(--surface) 55%); transition: transform .2s, border-color .2s, box-shadow .2s; }
.kpi::after { content: ''; position: absolute; right: -34px; top: -34px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, rgba(192, 219, 198, .16), transparent 70%); pointer-events: none; }
.kpi.warn { border-color: rgba(255, 194, 75, .28); }
.kpi.warn::after { background: radial-gradient(circle, rgba(255, 194, 75, .2), transparent 70%); }
.section-title::before { content: ''; display: inline-block; width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, var(--mint), var(--muted)); margin-right: 10px; vertical-align: -1px; }
.alert-col.low { background: linear-gradient(160deg, rgba(255, 92, 108, .09), var(--surface) 60%); border-color: rgba(255, 92, 108, .2); }
.alert-col.high { background: linear-gradient(160deg, rgba(255, 194, 75, .09), var(--surface) 60%); border-color: rgba(255, 194, 75, .2); }
.grid-wrap { box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.cell { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.cell.low { animation: pulse-low 2.4s ease-in-out infinite; }
@keyframes pulse-low { 50% { box-shadow: 0 0 0 4px rgba(255, 92, 108, .14); } }
.cell.flash { animation: flash .9s ease; }
.prod-tab { transition: background .2s, color .2s, transform .1s, box-shadow .2s; }
.prod-tab:active { transform: scale(.96); }
.prod-tab.on { background: linear-gradient(135deg, #D6EBDB, var(--mint) 55%, #A9CDB3); box-shadow: 0 6px 18px rgba(192, 219, 198, .25); }
.empty .em-ic { width: 56px; height: 56px; border-radius: 18px; background: var(--mint-soft); color: var(--mint); display: grid; place-items: center; margin: 0 auto 14px; }
.empty .em-ic svg { width: 26px; height: 26px; }

/* buttons */
.btn.primary { background: linear-gradient(135deg, #D6EBDB, var(--mint) 55%, #A9CDB3); box-shadow: 0 6px 18px rgba(192, 219, 198, .2), inset 0 1px 0 rgba(255, 255, 255, .5); font-weight: 700; }
.btn.is-busy { pointer-events: none; opacity: .75; }
.btn.is-busy::before { content: ''; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip.on { box-shadow: 0 0 0 3px rgba(192, 219, 198, .1); }
.stepper button:active { transform: scale(.9); }

/* floating tab bar */
.tabs { background: rgba(38, 37, 67, .8); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 14px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08); }
.tab { transition: background .2s, color .2s, transform .1s; }
.tab:active { transform: scale(.94); }
.tab.active { background: var(--mint-soft); color: var(--mint); }
.tab-sell { background: linear-gradient(135deg, #D6EBDB, var(--mint) 55%, #A9CDB3); font-weight: 700; box-shadow: 0 6px 20px rgba(192, 219, 198, .32), inset 0 1px 0 rgba(255, 255, 255, .5); }
.tab .badge { box-shadow: 0 0 0 2px var(--bg-2); font-weight: 700; }

/* sheets */
.overlay { background: rgba(20, 19, 38, .68); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet { box-shadow: 0 -10px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(192, 219, 198, .06); }
.sheet-grip { background: linear-gradient(90deg, var(--mint), var(--muted)); opacity: .55; }
.overlay.closing { animation: fade-out .17s ease forwards; pointer-events: none; }
.overlay.closing .sheet { animation: down .17s ease forwards; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes down { to { transform: translateY(30px); opacity: 0; } }

/* toasts: undo button + time-left bar */
.toast { position: relative; overflow: hidden; align-items: center; }
.toast .tx { flex: 1; min-width: 0; }
.toast-act { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(192, 219, 198, .45); background: var(--mint-soft); color: var(--mint); font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: 10px; }
.toast-act svg { width: 14px; height: 14px; }
.toast-act:active { transform: scale(.95); }
.toast .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--mint); opacity: .8; transform-origin: 0 50%; animation: shrink linear forwards; }
.toast.low .bar, .toast.err .bar { background: var(--red); }
.toast.high .bar { background: var(--amber); }
@keyframes shrink { to { transform: scaleX(0); } }

.totals .grand b small { display: inline-block; text-decoration: none; }

/* sales list */
.sale { position: relative; overflow: hidden; }
.sale::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--mint); opacity: .75; }
.sale.is-unpaid::before { background: var(--amber); }
.sale.is-cancelled::before { background: var(--red); }
.skel { height: 92px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skel.sm { height: 44px; margin-bottom: 8px; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* login */
.login-card { background: linear-gradient(180deg, rgba(66, 65, 106, .92), rgba(54, 53, 89, .92)); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(192, 219, 198, .08); animation: pop-in .5s cubic-bezier(.2, .8, .2, 1) backwards; }
.login-card .brand img { animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-5px); } }

@media (hover: hover) {
  .kpi:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow); }
  .cell:hover { transform: translateY(-1px); }
  .sale:hover { transform: translateY(-1px); }
  .prod-tab:not(.on):hover { color: var(--text); border-color: rgba(192, 219, 198, .4); }
  .input:hover { border-color: rgba(192, 219, 198, .35); }
  .toast-act:hover { background: rgba(192, 219, 198, .26); }
}
@media (max-width: 460px) { .topbar { margin: -12px -12px 12px; padding-left: 12px; padding-right: 12px; } }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-value { font-size: 32px; }
  .alerts { grid-template-columns: 1fr; }
  .tab span.lbl { display: none; }
  .tab { padding: 12px 16px; }
  .tab-sell span.lbl { display: inline; }
  .user-pill { display: none; }
  .section-title { font-size: 22px; }
}
@media (max-width: 460px) {
  .color-row { grid-template-columns: 40px 1fr 1fr 28px; gap: 6px; }
  .swatch-pick { width: 40px; height: 40px; }
  .ph-name { font-size: 24px; }
  .stack-sm { flex-direction: column; gap: 0; }
  .r3 { flex-wrap: wrap; }
  .r3 > :first-child { flex-basis: 100%; }
  .shell { padding: 12px 12px calc(110px + var(--safe-b)); }
  table.stock { min-width: 0; }
  .stock thead th { padding: 12px 2px 8px; font-size: 10px; }
  .stock tbody th, .stock tfoot th { padding: 0 6px 0 10px; font-size: 20px; width: 40px; }
  .stock td { padding: 4px 2px; }
  .cell { min-width: 38px; height: 50px; font-size: 24px; border-radius: 10px; }
  .cell .tag { display: none; }
  .stock .total-col { padding: 0 6px; font-size: 18px; }
  .stock .tcol-head { font-size: 0 !important; }
  .stock col.c-size { width: 40px; } .stock col.c-total { width: 34px; }
  .sale .amt b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
