/* Shatumar Stock v2 — design tokens, layout, components, motion */
:root {
  --bg: #f4f2ec; --bg-2: #ebe8df; --surface: #ffffff; --surface-2: #f9f8f4; --ink: #13202a; --ink-2: #34424d; --muted: #6c7782; --line: #e4e0d6; --line-2: #d6d1c4;
  --brand: #0e7c6b; --brand-2: #14a68f; --brand-ink: #ffffff; --brand-soft: #dff2ed; --accent: #e98f2a; --accent-soft: #fcebd6;
  --good: #1d9a57; --good-soft: #dcf3e5; --warn: #d98a12; --warn-soft: #fbeed3; --bad: #d4473b; --bad-soft: #fbe1de; --info: #3a6fd8; --info-soft: #e2eafb;
  --side: #0f1b22; --side-2: #172730; --side-ink: #c7d3d9; --side-muted: #7f939c;
  --s-in: #14a68f; --s-out: #e98f2a; --grid: #ebe7de;
  --k-goods: #0e7c6b; --k-label: #7b5cd6; --k-carton: #b9814a; --k-bottle: #3a8fd8; --k-hdpe: #2bb3c4; --k-preform: #d65c8f; --k-cap: #e0a020; --k-packaging: #7c8a94;
  --r: 16px; --r-s: 10px; --shadow: 0 1px 2px rgba(19,32,42,.05), 0 8px 24px -12px rgba(19,32,42,.16); --shadow-l: 0 24px 60px -20px rgba(19,32,42,.35);
  --ease: cubic-bezier(.2,.8,.2,1); --spring: cubic-bezier(.34,1.56,.64,1);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b1216; --bg-2: #101a20; --surface: #121c22; --surface-2: #17232a; --ink: #e6edf0; --ink-2: #c2ced4; --muted: #8597a0; --line: #22313a; --line-2: #2c3d47;
  --brand: #19b39b; --brand-2: #2ad0b5; --brand-ink: #04211c; --brand-soft: #113a33; --accent: #f3a24a; --accent-soft: #3b2a16;
  --good: #34c27a; --good-soft: #12321f; --warn: #f0b13c; --warn-soft: #3a2c10; --bad: #f06a5d; --bad-soft: #3b1b18; --info: #6b98f0; --info-soft: #18253f;
  --side: #081014; --side-2: #0f1b21; --grid: #1c2930; --s-in: #2ad0b5; --s-out: #f3a24a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6); --shadow-l: 0 30px 80px -20px rgba(0,0,0,.7); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0b1216; --bg-2: #101a20; --surface: #121c22; --surface-2: #17232a; --ink: #e6edf0; --ink-2: #c2ced4; --muted: #8597a0; --line: #22313a; --line-2: #2c3d47;
  --brand: #19b39b; --brand-2: #2ad0b5; --brand-ink: #04211c; --brand-soft: #113a33; --accent: #f3a24a; --accent-soft: #3b2a16;
  --good: #34c27a; --good-soft: #12321f; --warn: #f0b13c; --warn-soft: #3a2c10; --bad: #f06a5d; --bad-soft: #3b1b18; --info: #6b98f0; --info-soft: #18253f;
  --side: #081014; --side-2: #0f1b21; --grid: #1c2930; --s-in: #2ad0b5; --s-out: #f3a24a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6); --shadow-l: 0 30px 80px -20px rgba(0,0,0,.7); color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.45 var(--font); color: var(--ink); background: var(--bg); font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .block { display: block; } .nowrap { white-space: nowrap; } .grow { flex: 1; min-width: 0; }
.pos { color: var(--good); font-weight: 600; } .neg { color: var(--bad); font-weight: 600; }
.ic { width: 18px; height: 18px; fill: currentColor; flex: none; } .ic.tiny { width: 14px; height: 14px; vertical-align: -2px; }
.mt { margin-top: 22px; } .mt-s { margin-top: 10px; }

/* ---------- splash + brand ---------- */
.splash { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 100; transition: opacity .5s var(--ease), visibility .5s; }
.splash.gone { opacity: 0; visibility: hidden; }
.mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; font-weight: 800; font-size: 19px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand) 60%, #0b5e53); box-shadow: 0 6px 18px -6px rgba(14,124,107,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.mark.big { width: 72px; height: 72px; font-size: 40px; border-radius: 22px; animation: breathe 1.6s var(--ease) infinite; }
@keyframes breathe { 50% { transform: scale(1.06); box-shadow: 0 10px 40px -6px rgba(20,166,143,.8); } }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; gap: 1px; } .brand-text small { font-weight: 600; color: var(--side-muted); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 0% 0%, #12323a 0%, #0b1a20 55%, #081115 100%); color: #e6f2ef; display: flex; align-items: flex-end; padding: 56px; }
.orb { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .7; animation: float 14s ease-in-out infinite; }
.o1 { width: 420px; height: 420px; background: #14a68f; top: -120px; left: -80px; } .o2 { width: 320px; height: 320px; background: #e98f2a; bottom: -80px; right: -60px; animation-delay: -5s; opacity: .45; }
.o3 { width: 260px; height: 260px; background: #3a6fd8; top: 40%; left: 45%; animation-delay: -9s; opacity: .35; }
@keyframes float { 33% { transform: translate(40px, 30px) scale(1.08); } 66% { transform: translate(-30px, 20px) scale(.95); } }
.auth-quote { position: relative; max-width: 420px; } .auth-quote .mark { width: 54px; height: 54px; font-size: 30px; border-radius: 16px; margin-bottom: 22px; }
.auth-quote p { font-size: 30px; line-height: 1.2; font-weight: 650; letter-spacing: -.02em; margin: 0; }
.auth-card { align-self: center; justify-self: center; width: min(400px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 14px; animation: rise .7s var(--ease) both; }
.auth-card h1 { font-size: 28px; margin-top: 18px; } .auth-card .brand { font-size: 18px; }
.auth-foot { display: flex; justify-content: center; margin-top: 6px; }
.form-error { color: var(--bad); min-height: 1.2em; margin: 0; font-weight: 500; }

/* ---------- app layout ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, var(--side), var(--side-2)); color: var(--side-ink); display: flex; flex-direction: column; padding: 18px 14px; gap: 18px; z-index: 30; }
.sidebar .brand { padding: 4px 8px 8px; color: #fff; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--side-ink); font-weight: 500; transition: background .2s, color .2s, transform .2s var(--ease); }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; transform: translateX(2px); }
.nav a.active { background: linear-gradient(90deg, rgba(20,166,143,.22), rgba(20,166,143,.06)); color: #fff; }
.nav a.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand-2); animation: grow-y .35s var(--ease); }
@keyframes grow-y { from { transform: scaleY(0); } }
.nav a em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 700; min-width: 22px; text-align: center; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.12); color: #fff; }
.nav a em:empty { display: none; } .nav a em.warn { background: var(--accent); color: #2a1800; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.08); }
.who { display: flex; align-items: center; gap: 10px; } .who b { color: #fff; display: block; } .who small { color: var(--side-muted); font-size: 12px; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #e98f2a, #d4473b); color: #fff; font-weight: 700; flex: none; }
.side-foot .btn { color: var(--side-ink); border-color: rgba(255,255,255,.12); background: transparent; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.searchbox { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); text-align: left; transition: border-color .2s, box-shadow .2s; }
.searchbox:hover { border-color: var(--line-2); box-shadow: var(--shadow); } .searchbox span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.i-search { width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 50%; position: relative; flex: none; } .i-search::after { content: ""; position: absolute; width: 6px; height: 2px; background: currentColor; right: -6px; bottom: -3px; transform: rotate(45deg); border-radius: 2px; }
kbd { font: 11px var(--font); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.live { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 var(--good); animation: ping 2.2s infinite; }
.live.off i { background: var(--bad); animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }
.view { padding: 8px 28px 60px; outline: none; max-width: 1480px; width: 100%; }
.view.enter { animation: view-in .45s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } }
.tabbar { display: none; }
.only-mobile, .icon-btn.only-mobile { display: none; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }
.chips.scroll-x .chip { flex: none; white-space: nowrap; }
.area-dot { opacity: 0; transition: opacity .15s; } .chart:hover .area-dot { opacity: 1; }
.v-production .pname { min-width: 0; }

/* ---------- page head ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 18px 0 22px; }
.page-head h1 { font-size: 28px; font-weight: 750; letter-spacing: -.025em; }
.lead { margin: 6px 0 0; color: var(--ink-2); max-width: 760px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- buttons, chips, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn.primary { background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: var(--brand-ink); border-color: transparent; box-shadow: 0 6px 16px -8px rgba(14,124,107,.9), inset 0 1px 0 rgba(255,255,255,.2); }
.btn.primary:hover { box-shadow: 0 10px 22px -8px rgba(14,124,107,.9), inset 0 1px 0 rgba(255,255,255,.2); }
.btn.ghost { background: transparent; } .btn.sm { padding: 6px 10px; font-size: 12.5px; border-radius: 9px; } .btn.lg { padding: 12px 20px; font-size: 15px; } .btn.block { width: 100%; padding: 12px; font-size: 15px; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
.btn.busy .ic { animation: spin .8s linear infinite; } .btn.done { background: linear-gradient(180deg, #2fbf74, var(--good)); }
.btn.done .ic { animation: pop .4s var(--spring); }
.btn.warn { background: linear-gradient(180deg, #f2a64a, var(--warn)); color: #2a1800; }
@keyframes spin { to { transform: rotate(360deg); } } @keyframes pop { from { transform: scale(0); } }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); transition: transform .15s var(--ease), background .2s; }
.icon-btn:hover { background: var(--surface-2); transform: translateY(-1px); } .icon-btn:active { transform: scale(.92); } .icon-btn.sm { width: 30px; height: 30px; border-radius: 8px; } .icon-btn.sm .ic { width: 16px; height: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 12.5px; transition: all .2s var(--ease); }
.chip em { font-style: normal; color: var(--muted); font-weight: 600; } .chip:hover { border-color: var(--line-2); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); } .chip.on em { color: inherit; opacity: .7; } .chip.static { cursor: default; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; } .chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: thin; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bg-2); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: 12.5px; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; } .field > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); } .field em { font-style: normal; color: var(--muted); font-weight: 500; }
input, select { border: 1px solid var(--line); background: var(--surface); border-radius: 11px; padding: 10px 12px; min-width: 0; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 18%, transparent); }
.search-in { position: relative; display: flex; align-items: center; } .search-in .ic { position: absolute; left: 11px; color: var(--muted); pointer-events: none; } .search-in input { padding-left: 36px; width: 100%; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; } .toolbar .search-in { flex: 1; min-width: 220px; max-width: 420px; }
.toolbar.wrap select { min-width: 150px; } label.date { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.link { color: var(--brand); font-weight: 600; font-size: 12.5px; } .link:hover { text-decoration: underline; }
.link-row { border: 0; background: none; padding: 0; text-align: left; font-weight: 600; color: var(--ink); } .link-row:hover { color: var(--brand); text-decoration: underline; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--bg-2); color: var(--ink-2); vertical-align: 1px; }
.tag.good { background: var(--good-soft); color: var(--good); } .tag.bad { background: var(--bad-soft); color: var(--bad); } .tag.xl { background: #e3f1e6; color: #1f7a3a; }
:root[data-theme="dark"] .tag.xl { background: #14301d; color: #6ad08f; }
.eyebrow { margin: 0 0 4px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--brand); display: flex; align-items: center; gap: 6px; }

/* ---------- cards + kpis ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; } .card-head h2 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-head h2 .ic { color: var(--brand); }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; }
a.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }
.kpi::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--brand-soft); opacity: .7; transition: transform .6s var(--ease); }
.kpi:hover::after { transform: scale(1.25); }
.kpi.good::after { background: var(--good-soft); } .kpi.accent::after { background: var(--accent-soft); } .kpi.warn::after { background: var(--warn-soft); }
.kpi > * { position: relative; z-index: 1; }
.kpi-ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.kpi.good .kpi-ic { background: var(--good-soft); color: var(--good); } .kpi.accent .kpi-ic { background: var(--accent-soft); color: var(--accent); } .kpi.warn .kpi-ic { background: var(--warn-soft); color: var(--warn); }
.kpi-label { font-size: 12.5px; color: var(--muted); font-weight: 600; } .kpi-value b { font-size: 28px; font-weight: 750; letter-spacing: -.02em; } .kpi-value small { color: var(--muted); font-weight: 600; }
.kpi-sub { font-size: 12px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .span-2 { grid-column: span 2; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; } .dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.dot.s-in { background: var(--s-in); } .dot.s-out { background: var(--s-out); }

/* ---------- lists on dashboard ---------- */
.plan-list, .alert-list, .feed, .hbars { display: flex; flex-direction: column; gap: 4px; }
.plan-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; transition: background .2s; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 200ms); }
.plan-row:hover, .alert-row:hover, .feed-row:hover, .hbar:hover { background: var(--surface-2); }
.plan-main { border: 0; background: none; text-align: left; padding: 0; display: flex; flex-direction: column; gap: 3px; } .plan-main b, .alert-row b, .feed-row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-main small, .alert-row small, .feed-row small { color: var(--muted); font-size: 12px; }
.alert-row, .feed-row { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border: 0; background: none; text-align: left; border-radius: 12px; transition: background .2s; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 250ms); }
.alert-row .grow, .feed-row .grow { display: flex; flex-direction: column; }
.feed-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--bg-2); flex: none; }
.feed-ic.a-receive, .feed-ic.a-produce { background: var(--good-soft); color: var(--good); } .feed-ic.a-dispatch, .feed-ic.a-fulfill, .feed-ic.a-use { background: var(--accent-soft); color: var(--accent); }
.feed-ic.a-count { background: var(--info-soft); color: var(--info); }
.hbar { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr auto; align-items: center; gap: 12px; padding: 7px 8px; border: 0; background: none; text-align: left; border-radius: 10px; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms + 250ms); }
.hbar-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.hbar-track { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; } .hbar-fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--s-out), #f2b25e); animation: fill 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 300ms); }
@keyframes fill { from { width: 0; } }
.meter { display: block; height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; min-width: 70px; } .meter-fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--good); animation: fill .9s var(--ease) both; }
.meter-fill.warn { background: var(--warn); } .meter-fill.bad { background: var(--bad); }
.empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 26px 12px; color: var(--muted); font-weight: 500; text-align: center; } .empty .ic { color: var(--good); }

/* ---------- tables ---------- */
.table-card { padding: 0; overflow: hidden; } .table-card .card-head { padding: 16px 18px 0; }
.table-wrap { overflow: auto; max-height: calc(100vh - 230px); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); text-align: left; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { transition: background .15s; } .tbl tbody tr[data-open] { cursor: pointer; } .tbl tbody tr:hover { background: var(--surface-2); }
.tbl tfoot th { position: sticky; bottom: 0; background: var(--surface-2); border-top: 1px solid var(--line-2); text-transform: none; font-size: 13px; color: var(--ink); }
.tbl .num { text-align: right; white-space: nowrap; } .tbl .big { font-weight: 700; font-size: 15px; } .tbl .today span { margin-left: 8px; }
.tbl .note { color: var(--muted); max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pname { display: flex; flex-direction: column; min-width: 220px; } .pname b { font-weight: 600; } .pname small { color: var(--muted); font-size: 12px; }
.row-actions { white-space: nowrap; text-align: right; opacity: 0; transition: opacity .2s; } .row-actions .icon-btn, .row-actions .btn { margin-left: 4px; }
tr:hover .row-actions, .row-actions.show, tr:focus-within .row-actions { opacity: 1; }
.cover { display: flex; align-items: center; gap: 10px; } .cover small { color: var(--muted); white-space: nowrap; font-weight: 600; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; color: var(--muted); font-size: 12.5px; background: var(--surface-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-ok { background: var(--good-soft); color: var(--good); } .st-low, .st-plan { background: var(--warn-soft); color: var(--warn); } .st-out, .st-neg { background: var(--bad-soft); color: var(--bad); }
.st-idle { background: var(--bg-2); color: var(--muted); }
tr.flash td { animation: flash 1.6s var(--ease); } @keyframes flash { 0%, 30% { background: color-mix(in srgb, var(--brand-2) 22%, transparent); } }
.act { font-weight: 600; } .act.a-receive, .act.a-produce { color: var(--good); } .act.a-dispatch, .act.a-fulfill, .act.a-use { color: var(--accent); } .act.a-count { color: var(--info); }
.kind-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--k-goods); flex: none; margin-right: 4px; vertical-align: 0; }
.k-label { background: var(--k-label); } .k-carton { background: var(--k-carton); } .k-bottle { background: var(--k-bottle); } .k-hdpe { background: var(--k-hdpe); } .k-preform { background: var(--k-preform); } .k-cap { background: var(--k-cap); } .k-packaging { background: var(--k-packaging); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 10px 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .3s var(--ease); }
.tab em { font-style: normal; font-size: 11.5px; padding: 0 7px; border-radius: 99px; background: var(--bg-2); } .tab:hover { color: var(--ink); } .tab.on { color: var(--ink); border-color: var(--brand-2); }

/* ---------- production ---------- */
.grid-prod { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid-prod > .card:first-child { position: sticky; top: 76px; }
.card.pulse { animation: pulse 1s var(--ease); } @keyframes pulse { 30% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-2) 30%, transparent), var(--shadow); } }
.inline-form { display: flex; flex-direction: column; gap: 14px; } .inline-form.compact { gap: 10px; margin-top: 12px; } .inline-form.row { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.inline-form h3 { font-size: 13.5px; }

/* ---------- plastic ---------- */
.moulds { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-bottom: 16px; }
.mould { position: relative; display: flex; flex-direction: column; gap: 12px; transition: transform .25s var(--ease), box-shadow .25s; } .mould:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }
.mould.next { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 60%, var(--surface)), var(--surface) 60%); }
.badge { position: absolute; top: -10px; right: 14px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; background: var(--accent); color: #2a1800; font-size: 11.5px; font-weight: 800; box-shadow: 0 6px 14px -6px var(--accent); animation: bob 2.4s ease-in-out infinite; }
.badge .ic { width: 13px; height: 13px; } @keyframes bob { 50% { transform: translateY(-3px); } }
.mould-top { display: flex; gap: 14px; align-items: center; } .mould h3 { font-size: 15px; } .mould p { margin: 2px 0 0; } .mould-stock b { font-size: 20px; }
.ring-wrap { position: relative; width: 64px; height: 64px; flex: none; } .ring-wrap span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.ring-bg { fill: none; stroke: var(--bg-2); } .ring-fg { fill: none; stroke: var(--good); stroke-linecap: round; animation: ring-in 1.2s var(--ease) .2s forwards; }
.ring.warn .ring-fg { stroke: var(--warn); } .ring.bad .ring-fg { stroke: var(--bad); }
@keyframes ring-in { to { stroke-dashoffset: var(--off); } }
.mould-bottles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-top: 1px dashed var(--line); padding-top: 8px; }
.mould-bottles li, .recipe li { display: flex; align-items: center; gap: 10px; padding: 5px 4px; border-radius: 8px; } .mould-bottles li:hover, .recipe li:hover { background: var(--surface-2); }
.mould-bottles .link-row { font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(8,16,20,.38); backdrop-filter: blur(2px); opacity: 0; transition: opacity .3s var(--ease); z-index: 40; } .scrim.open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: var(--surface); z-index: 41; box-shadow: var(--shadow-l); transform: translateX(104%); transition: transform .38s var(--ease); overflow-y: auto; border-left: 1px solid var(--line); }
.drawer.open { transform: none; }
.drawer-in { padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 18px; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.kind-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #fff; background: var(--k-goods); }
.kind-chip.k-label { background: var(--k-label); } .kind-chip.k-carton { background: var(--k-carton); } .kind-chip.k-bottle { background: var(--k-bottle); } .kind-chip.k-hdpe { background: var(--k-hdpe); } .kind-chip.k-preform { background: var(--k-preform); } .kind-chip.k-cap { background: var(--k-cap); color: #2a1800; } .kind-chip.k-packaging { background: var(--k-packaging); }
.drawer-title { font-size: 22px; line-height: 1.2; margin-bottom: -10px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; animation: rise .5s var(--ease) both; }
.stat:nth-child(2) { animation-delay: 60ms; } .stat:nth-child(3) { animation-delay: 120ms; } .stat:nth-child(4) { animation-delay: 180ms; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; } .stat b { font-size: 20px; font-weight: 750; } .stat small { color: var(--muted); font-size: 12px; }
.stat.big { background: linear-gradient(135deg, var(--brand-soft), var(--surface-2)); border-color: color-mix(in srgb, var(--brand-2) 35%, var(--line)); } .stat.big b { font-size: 26px; color: var(--brand); }
.drawer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.drawer section h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.recipe { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; } .recipe .link-row { font-weight: 500; }
.link-form { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; } .link-form .picker-host { flex: 1; min-width: 220px; } .link-form input[type=number] { width: 90px; }
.tiny-note { font-size: 11.5px; margin: 6px 0 0; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; } .timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 7px 0 7px 0; } .timeline small { display: block; color: var(--muted); font-size: 12px; }
.tl-dot { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--surface); background: var(--muted); margin-top: 3px; flex: none; box-shadow: 0 0 0 1px var(--line); }
.tl-dot.a-receive, .tl-dot.a-produce { background: var(--good); } .tl-dot.a-dispatch, .tl-dot.a-fulfill, .tl-dot.a-use { background: var(--accent); } .tl-dot.a-count { background: var(--info); }
.tl-bal { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.tl-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }

/* ---------- v2.1: posting date, reversal, buy list, barcodes ---------- */
.tag.warn { background: var(--warn-soft); color: var(--warn); } .tag.info { background: var(--info-soft); color: var(--info); }
.tag .ic.tiny { width: 11px; height: 11px; vertical-align: -1px; margin-right: 2px; }
.btn.xs { padding: 3px 8px; font-size: 11.5px; border-radius: 8px; gap: 4px; } .btn.xs .ic { width: 13px; height: 13px; }
.btn.xs.warn { animation: nudge .35s ease; }
@keyframes nudge { 30% { transform: translateX(-2px); } 60% { transform: translateX(2px); } }
.struck .amt, .timeline li.struck .amt { text-decoration: line-through; opacity: .55; }
.timeline li.struck .tl-dot { background: var(--line); }
.date-field input { max-width: 190px; } .date-field em { font-style: normal; font-weight: 400; }
.date-field .day-hint { display: block; min-height: 0; color: var(--warn); font-weight: 600; font-size: 12px; margin-top: 4px; }
.date-field.is-back input { border-color: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.tabs .buy-tab { font-weight: 700; } .tabs .buy-tab .ic { width: 16px; height: 16px; }
.tabs em.hot { background: var(--bad); color: #fff; }
.barcode-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.barcode-box .bc { background: #fff; border-radius: 10px; padding: 8px 10px 6px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; align-items: center; }
.barcode-box .bc span { color: #111; font: 600 12px/1.3 ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.barcode-box svg { display: block; max-width: 100%; height: auto; }
.barcode-box .bc-side { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
/* ---------- v2.2: people management ---------- */
.team-card { margin-bottom: 18px; } .team-card .card-head { align-items: flex-start; gap: 12px; } .team-card .card-head p { margin: 4px 0 0; }
.team-tbl td { vertical-align: middle; } .team-tbl tr.dim td:not(:last-child) { opacity: .55; }
.person-cell { display: flex; align-items: center; gap: 10px; } .person-cell small { display: block; color: var(--muted); font-size: 11.5px; }
.avatar.admin { background: linear-gradient(135deg, var(--accent), #0b5c50); } .avatar.staff { background: linear-gradient(135deg, #6b98f0, #3a6fd8); }
.pill.us-active { background: var(--good-soft); color: var(--good); } .pill.us-suspended { background: var(--warn-soft); color: var(--warn); } .pill.us-removed { background: var(--bg-2); color: var(--muted); }
.perm-dots { display: flex; align-items: center; gap: 3px; } .perm-dots i { width: 8px; height: 8px; border-radius: 3px; background: var(--line); }
.perm-dots i.on { background: var(--accent); } .perm-dots small { margin-left: 6px; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.btn.danger { color: var(--bad); } .btn.danger.warn { color: #2a1800; }
.removed-people { margin-top: 12px; } .removed-people summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px; padding: 6px 2px; }
.perm-box { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 12px; margin: 0 0 14px; min-width: 0; }
.perm-box legend { font-weight: 700; font-size: 12.5px; padding: 0 6px; color: var(--ink-2); }
.perm-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; } .perm-presets .chip { padding: 4px 10px; font-size: 12px; cursor: pointer; }
.perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
.perm { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 5px 4px; border-radius: 8px; cursor: pointer; line-height: 1.3; }
.perm:hover { background: var(--bg-2); } .perm input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.perm-box .admin-note { display: none; margin: 8px 0 0; font-size: 12.5px; color: var(--accent); font-weight: 600; }
.perm-box.is-admin .perm-grid, .perm-box.is-admin .perm-presets { opacity: .45; pointer-events: none; } .perm-box.is-admin .admin-note { display: block; }
.pw-row { display: flex; gap: 8px; } .pw-row input { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.pw-note { display: block; color: var(--warn); font-weight: 600; font-size: 12px; margin-top: 4px; }
.admin-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 420px; overflow: auto; }
.admin-log li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.admin-log li:last-child { border-bottom: 0; } .admin-log small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.admin-log time { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.log-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--info); }
.log-dot.l-create { background: var(--good); } .log-dot.l-remove, .log-dot.l-delete { background: var(--bad); } .log-dot.l-password { background: var(--warn); }
@media (max-width: 640px) { .perm-grid { grid-template-columns: 1fr; } .team-card .card-head { flex-direction: column; } }
#print-area { display: none; }
@media print {
  @page { margin: 8mm; }
  body.printing { background: #fff !important; }
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; }
  .plabel { break-inside: avoid; border: 1px dashed #aaa; border-radius: 2mm; padding: 3mm; text-align: center; color: #000; font: 9pt/1.25 Arial, sans-serif; }
  .plabel b { display: block; font-size: 9pt; margin-bottom: 1.5mm; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .plabel svg { display: block; width: 100%; height: 16mm; }
  .plabel span { display: block; font: 700 9pt ui-monospace, Consolas, monospace; letter-spacing: .1em; margin-top: 1mm; }
}

/* ---------- charts ---------- */
.chart-host { position: relative; min-height: 120px; } .chart svg { display: block; overflow: visible; }
.chart .grid { stroke: var(--grid); stroke-width: 1; } .chart .axis { fill: var(--muted); font-size: 11px; }
.bar.s-in { fill: var(--s-in); } .bar.s-out { fill: var(--s-out); } .chart .hit { fill: transparent; } .chart .hit.on { fill: color-mix(in srgb, var(--ink) 5%, transparent); }
.bar-anim { animation: bar-grow .8s var(--ease) both; animation-delay: var(--d, 0ms); } @keyframes bar-grow { from { transform: scaleY(0); } }
.area-line { fill: none; stroke: var(--brand-2); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.3s var(--ease) forwards; } @keyframes draw { to { stroke-dashoffset: 0; } }
.area-stop-a { stop-color: var(--brand-2); stop-opacity: .28; } .area-stop-b { stop-color: var(--brand-2); stop-opacity: 0; }
.fade { animation: fade-in 1s var(--ease) .3s both; } @keyframes fade-in { from { opacity: 0; } }
.area-dot { fill: var(--surface); stroke: var(--brand-2); stroke-width: 2.5; }
.chart-tip { position: absolute; pointer-events: none; z-index: 5; background: var(--ink); color: var(--bg); padding: 7px 10px; border-radius: 9px; font-size: 12px; box-shadow: var(--shadow-l); white-space: nowrap; line-height: 1.5; }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: calc(100vw - 24px); }
dialog::backdrop { background: rgba(8,16,20,.45); backdrop-filter: blur(3px); animation: fade-in .25s var(--ease); }
.dialog form { width: min(520px, calc(100vw - 24px)); background: var(--surface); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-l); border: 1px solid var(--line); animation: dlg-in .35s var(--spring); }
.dialog.closing form { animation: dlg-out .18s var(--ease) forwards; } .dialog.closing::backdrop { opacity: 0; transition: opacity .18s; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.96); } } @keyframes dlg-out { to { opacity: 0; transform: translateY(10px) scale(.97); } }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; } .dialog-head h2 { font-size: 20px; }
.kind-switch { align-self: flex-start; }
.stock-hint { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; color: var(--ink-2); min-height: 20px; } .stock-hint .arrow { color: var(--muted); }
.stepper { display: flex; gap: 8px; } .stepper input { flex: 1; font-size: 24px; font-weight: 750; text-align: center; padding: 10px; } .stepper .icon-btn { width: 52px; height: auto; }
.preview:empty { display: none; } .preview { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line-2); animation: rise .35s var(--ease); }
.preview ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } .preview li { display: flex; align-items: center; gap: 8px; font-size: 13px; } .preview li.bad .grow { color: var(--bad); } .preview p { margin: 0; }
.order-box { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); }
.form-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; } .inline-form .form-foot .btn { flex: 1; }
.shake { animation: shake .45s; } @keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.picker { position: relative; } .picker-list { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 6px); max-height: 300px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-l); padding: 6px; animation: rise .2s var(--ease); }
.picker-list button, .palette-list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; border-radius: 10px; text-align: left; }
.picker-list button .grow, .palette-list button .grow { display: flex; flex-direction: column; } .picker-list small, .palette-list small { color: var(--muted); font-size: 12px; }
.picker-list button b, .palette-list button b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-list button.on, .picker-list button:hover, .palette-list button.on, .palette-list button:hover { background: var(--brand-soft); }
.palette { margin-top: 12vh; } .palette-box { width: min(640px, calc(100vw - 24px)); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-l); border: 1px solid var(--line); overflow: hidden; animation: dlg-in .3s var(--spring); }
.palette-box > input { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 18px 20px; font-size: 17px; } .palette-box > input:focus { box-shadow: none; }
.palette-list { max-height: 56vh; overflow: auto; padding: 8px; } .palette-list .num { font-weight: 700; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast { display: flex; gap: 10px; align-items: flex-start; max-width: 380px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-l); animation: toast-in .45s var(--spring); }
.toast .ic { color: #5fe3b4; margin-top: 1px; } .toast.bad .ic { color: #ff8b80; } .toast small { opacity: .75; }
.toast.out { animation: toast-out .4s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.9); } } @keyframes toast-out { to { opacity: 0; transform: translateX(40px); } }

/* ---------- misc ---------- */
.team { display: flex; flex-direction: column; gap: 6px; } .person { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; } .person b { flex: 1; }
.skeleton { height: 16px; border-radius: 8px; margin: 10px 0; background: linear-gradient(90deg, var(--bg-2), var(--surface-2), var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton.h { height: 28px; width: 60%; } .skeleton.tall { height: 160px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.rise { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-prod { grid-template-columns: 1fr; } .grid-prod > .card:first-child { position: static; } }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-card { padding: 40px 0; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-105%); transition: transform .35s var(--ease); }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow-l); }
  .only-mobile, .icon-btn.only-mobile { display: inline-grid; } .topbar { padding: 10px 16px; } .searchbox kbd, .live span { display: none; }
  .view { padding: 4px 16px 96px; } .page-head h1 { font-size: 23px; }
  .grid-2 { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .kpi-value b { font-size: 22px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 4px; border-radius: 10px; }
  .tabbar a.active { color: var(--brand); background: var(--brand-soft); }
  .row-actions { opacity: 1; } .table-wrap { max-height: none; } .pname { min-width: 180px; } .toasts { left: 16px; right: 16px; bottom: 84px; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; } .draw { stroke-dashoffset: 0; } .ring-fg { stroke-dashoffset: var(--off); } }
