/* Aroma Holding ERP — tungi olxo‘ri (plum), lavanda va qahrabo moy. Sarlavhalar Cormorant, matn Onest (lotin + kirill). */
:root {
  --plum: #2a2033;
  --plum-2: #3a2e47;
  --ink: #2e2538;
  --ink-2: #554868;
  --muted: #7b6f88;
  --faint: #a59ab1;
  --bg: #f4f2f7;
  --surface: #ffffff;
  --surface-2: #faf9fc;
  --line: #e8e3ee;
  --line-strong: #d8cfe2;
  --primary: #775a96;
  --primary-hover: #664a84;
  --primary-ink: #573f71;
  --primary-soft: #eee7f6;
  --primary-softer: #f7f3fb;
  --lavender: #cbb6df;
  --deep: #2a2033;
  --amber: #b7802e;
  --amber-ink: #87591c;
  --amber-soft: #f8eedc;
  --red: #b2475b;
  --red-ink: #933647;
  --red-soft: #fbeaed;
  --green: #3d7d5d;
  --green-soft: #e3f1e9;
  --blue-soft: #e8eef8;
  --series-goods: #7a55a3;
  --series-service: #c08a37;
  --focus: #9a72c0;
  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(42, 32, 51, .04), 0 4px 16px rgba(42, 32, 51, .05);
  --shadow-pop: 0 24px 60px -18px rgba(42, 32, 51, .42), 0 6px 18px rgba(42, 32, 51, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sidebar: 248px;
  --rail: 76px;
  --font: Onest, "Segoe UI", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); min-height: 100vh; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: -.005em; line-height: 1.08; color: var(--plum); }
h2 { font-size: 15px; }
h3 { font-size: 14.5px; }
p { margin: 0; }
a { color: var(--primary-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
img { max-width: 100%; }
svg { flex-shrink: 0; }
kbd { font: inherit; font-size: 11px; color: var(--muted); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: #fff; line-height: 17px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--lavender); }
.sr-only { position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: fixed; left: 12px; top: -60px; background: var(--deep); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

.boot { display: flex; gap: 12px; align-items: center; justify-content: center; min-height: 60vh; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--lavender); border-top-color: var(--primary); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- shell */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 20px 12px 12px; z-index: 40; overflow-y: auto; overflow-x: hidden; transition: width .22s var(--ease);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 18px; color: #473454; text-decoration: none; min-height: 52px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 34px; position: relative; display: block; flex-shrink: 0; }
.brand-mark span { position: absolute; display: block; width: 23px; height: 16px; border-top: 2px solid #987dab; border-radius: 50%; transform: rotate(-24deg); left: 0; }
.brand-mark span:nth-child(1) { top: 2px; }
.brand-mark span:nth-child(2) { top: 11px; left: 6px; }
.brand-mark span:nth-child(3) { top: 20px; }
.brand-name { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: .95; letter-spacing: -.5px; white-space: nowrap; }
.brand-name small { display: block; font-family: var(--font); font-size: 11px; font-weight: 400; color: #95889e; letter-spacing: .2px; margin-top: 6px; }
.branch-card { margin: 0 4px 14px; padding: 10px 12px; background: var(--primary-softer); border: 1px solid #ece4f3; border-radius: 10px; font-size: 12px; color: var(--ink-2); display: none; }
.branch-card strong { display: block; font-weight: 500; font-size: 13px; color: var(--ink); }
.branch-card select { width: 100%; margin-top: 6px; border: 1px solid var(--line-strong); border-radius: 7px; background-color: #fff; padding: 6px 8px; font-size: 14px; }
.nav { display: flex; flex-direction: column; gap: 14px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-caption { font-size: 12px; color: var(--faint); padding: 0 12px 4px; white-space: nowrap; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; color: #66587a; font-size: 14px; min-height: 40px; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.nav a svg { width: 19px; height: 19px; color: #a094ad; transition: color .15s; }
.nav a:hover { background: #f4f0f8; color: var(--primary-ink); }
.nav a:hover svg { color: var(--primary); }
.nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-ink); font-weight: 500; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.nav a[aria-current="page"] svg { color: var(--primary); }
.nav-badge { margin-left: auto; background: var(--amber); color: #fff; font-size: 11px; font-weight: 600; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.rail-toggle { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 9px 12px; min-height: 40px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-size: 13px; white-space: nowrap; }
.rail-toggle:hover { background: #f4f0f8; color: var(--primary-ink); }
.rail-toggle svg { width: 18px; height: 18px; transition: transform .22s var(--ease); }

.main-shell { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .22s var(--ease); }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 28px;
  background: rgba(244, 242, 247, .86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, background-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .9); }
.topbar .crumb { display: none; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; min-width: 0; }
.topbar .crumb strong { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.search-trigger {
  flex: 1 1 auto; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 13px; border: 1px solid var(--line-strong); border-radius: 11px;
  background: #fff; color: var(--faint); font-size: 14px; text-align: left; transition: border-color .15s, box-shadow .15s;
}
.search-trigger:hover { border-color: #bfaed0; box-shadow: 0 0 0 4px rgba(154, 114, 192, .1); }
.search-trigger svg { width: 18px; height: 18px; color: var(--muted); }
.search-trigger span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.scope-select { border: 1px solid var(--line-strong); border-radius: 10px; background-color: #fff; height: 38px; padding: 0 30px 0 12px; font-size: 13.5px; color: var(--ink-2); width: 172px; text-overflow: ellipsis; }
.scope-select:hover { border-color: #bfaed0; }
.topbar .menu-toggle { display: none; }
.topbar-actions > * { flex-shrink: 0; }
.search-trigger { min-width: 0; }
.user-menu, .new-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 9px; background: none; border: 1px solid transparent; border-radius: 10px; padding: 3px 8px 3px 3px; }
.user-btn:hover { background: #fff; border-color: var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--plum); color: #e9ddf4; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex-shrink: 0; letter-spacing: .02em; }
.user-btn .who { text-align: left; font-size: 13px; line-height: 1.2; white-space: nowrap; }
.user-btn .who small { display: block; color: var(--muted); font-size: 11px; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px; z-index: 50;
  transform-origin: top right; animation: pop-in .14s var(--ease);
}
.menu-pop button, .menu-pop a { display: flex; width: 100%; align-items: center; gap: 10px; background: none; border: 0; padding: 9px 10px; border-radius: 8px; text-align: left; color: var(--ink); font-size: 14px; }
.menu-pop button:hover, .menu-pop a:hover, .menu-pop a:focus-visible { background: var(--primary-softer); text-decoration: none; }
.menu-pop .meta { padding: 8px 10px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-currency { display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px 8px; font-size: 13px; color: var(--muted); }
.new-pop { min-width: 300px; max-height: min(70vh, 560px); overflow-y: auto; }
.new-pop a { align-items: center; padding: 8px 10px; }
.new-pop a small { display: block; color: var(--muted); font-size: 12px; }
.new-pop .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); flex-shrink: 0; }
.new-pop .ic svg { width: 17px; height: 17px; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

main { padding: 26px 32px 44px; width: 100%; max-width: 1560px; flex: 1; }
main:focus { outline: none; }
#view > div { animation: view-in .24s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .eyebrow { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.page-head p.sub { color: var(--muted); font-size: 13.5px; margin-top: 8px; max-width: 720px; }
.page-head h1:focus { outline: none; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page-foot { color: var(--faint); font-size: 12px; padding: 0 32px 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.sidebar-shade { position: fixed; inset: 0; background: rgba(42, 32, 51, .38); z-index: 35; animation: fade-in .2s ease; }
@keyframes fade-in { from { opacity: 0; } }

/* rail: icons only, labels as tooltips */
@media (min-width: 1024px) {
  .shell.rail .sidebar { width: var(--rail); padding-inline: 12px; }
  .shell.rail .main-shell { margin-left: var(--rail); }
  .shell.rail .brand-name, .shell.rail .nav-label, .shell.rail .nav-caption { display: none; }
  .shell.rail .brand { padding-inline: 11px; }
  .shell.rail .nav { gap: 8px; }
  .shell.rail .nav-group + .nav-group { border-top: 1px solid var(--line); padding-top: 8px; }
  .shell.rail .nav a, .shell.rail .rail-toggle { justify-content: center; padding-inline: 0; }
  .shell.rail .nav-badge { position: absolute; top: 3px; right: 4px; min-width: 17px; height: 17px; font-size: 10px; padding: 0 4px; }
  .shell.rail .rail-toggle svg { transform: rotate(180deg); }
}

/* phone tab bar */
.tabbar { display: none; }

/* ---------- segmented / tabs */
.menu-lang { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px 8px; font-size: 13px; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: #fff; padding: 2px; gap: 2px; }
.seg button { border: 0; background: none; padding: 5px 10px; font-size: 13px; color: var(--muted); min-height: 32px; border-radius: 7px; transition: background-color .15s, color .15s; }
.seg button[aria-pressed="true"] { background: var(--plum); color: #fff; font-weight: 500; }
.seg button:not([aria-pressed="true"]):hover { background: var(--primary-softer); color: var(--primary-ink); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 14px; text-decoration: none; transition: color .15s, border-color .15s; }
.tabs a:hover { color: var(--primary-ink); }
.tabs a[aria-current="page"] { color: var(--plum); border-bottom-color: var(--primary); font-weight: 600; }
.chips-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 18px; }
.chips-nav a { border: 1px solid var(--line-strong); background: #fff; border-radius: 16px; padding: 5px 12px; font-size: 13px; color: var(--ink-2); text-decoration: none; transition: border-color .15s, color .15s; }
.chips-nav a:hover { border-color: var(--primary); color: var(--primary-ink); }
.chips-nav a[aria-current="page"] { background: var(--plum); border-color: var(--plum); color: #fff; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 7px 14px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: #fff; color: var(--primary-ink); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .08s;
}
.btn:hover { border-color: #bda5ce; text-decoration: none; background: var(--primary-softer); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 2px 6px -2px rgba(87, 63, 113, .5); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-secondary { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary-ink); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--amber-ink); border-color: var(--amber-ink); color: #fff; }
.btn-danger { color: var(--red-ink); border-color: #e9c3ca; }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); }
.btn-ghost { border-color: transparent; background: none; }
.btn-ghost:hover { background: var(--primary-softer); border-color: transparent; }
.btn-sm { min-height: 30px; padding: 4px 10px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { min-height: 48px; padding: 10px 20px; font-size: 16px; }
.btn-icon { width: 38px; padding: 0; }
.btn-sm.btn-icon { width: 30px; }
.btn-block { width: 100%; }
.btn .spinner { width: 14px; height: 14px; border-width: 2px; border-color: rgba(255,255,255,.5); border-top-color: #fff; }

/* ---------- panels, kpis */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; flex-wrap: wrap; }
.panel-head p { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.panel-body { padding: 16px 20px 20px; }
.panel-body.flush { padding: 10px 0 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sticky-side { position: sticky; top: 80px; }
.grid-main-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px; display: flex; flex-direction: column; gap: 4px; min-width: 0; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.kpi:hover { border-color: #cdbbdb; text-decoration: none; box-shadow: var(--shadow); }
.kpi .label { font-size: 13px; color: var(--muted); }
.kpi .value { font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; overflow-wrap: anywhere; }
.kpi .value-lg { font-size: 30px; }
.kpi .note { font-size: 12px; color: var(--faint); }
.kpi.accent { background: var(--primary-softer); border-color: #e6dcf0; }
.kpi.warn .value { color: var(--amber-ink); }
.kpi-list { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; font-size: 12px; color: var(--ink-2); }
.kpi-list span { display: flex; justify-content: space-between; gap: 10px; }
.kpi-list b { font-weight: 500; font-variant-numeric: tabular-nums; }

.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.quick a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, background-color .15s, transform .08s; }
.quick a:hover { border-color: #cdbbdb; background: var(--primary-softer); }
.quick a:active { transform: scale(.985); }
.quick a .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); flex-shrink: 0; }
.quick a .ic.amber { background: var(--amber-soft); color: var(--amber-ink); }
.quick a small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 14px; align-items: start; }
.fields.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field > label, .field > .label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.field .req { color: var(--red); margin-left: 2px; }
.field .hint { font-size: 12px; color: var(--muted); }
.field .err { font-size: 12px; color: var(--red-ink); }
input[type="text"], input[type="search"], input[type="password"], input[type="date"], input[type="month"], input[type="number"], input[type="tel"], input:not([type]), select, textarea {
  width: 100%; min-height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; padding: 8px 11px; font-size: 14px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 76px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #c4b4d2; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(154, 114, 192, .2); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red); background-color: #fffafb; }
input.num { text-align: right; font-variant-numeric: tabular-nums; }
input[readonly] { background: var(--surface-2); color: var(--ink-2); }
.input-suffix { position: relative; display: flex; align-items: center; }
.input-suffix input { padding-right: 52px; }
.input-suffix .sfx { position: absolute; right: 11px; color: var(--muted); font-size: 13px; pointer-events: none; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; min-height: 32px; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 4px; }
.form-actions .spacer { flex: 1; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; margin: 0; min-width: 0; }
legend { padding: 0 6px; font-weight: 500; color: var(--ink-2); font-size: 14px; }

/* list filters: one compact toolbar, applied as soon as a value changes */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.filters .field { min-width: 140px; flex: 0 1 180px; gap: 4px; }
.filters .field.grow { flex: 1 1 280px; max-width: 460px; }
.filters .field > label { font-size: 12px; color: var(--muted); font-weight: 400; }
.filters input, .filters select { min-height: 38px; }
.filters .field:has(input[type="search"]) input { padding-left: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b6f88' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") no-repeat 12px center / 16px; }
form#filters > button[type="submit"] { display: none; }

/* ---------- combobox */
.combo { position: relative; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); max-height: 290px; overflow-y: auto; background: #fff; border: 1px solid var(--line-strong); border-radius: 11px; box-shadow: var(--shadow-pop); z-index: 60; margin: 0; padding: 4px; list-style: none; min-width: 240px; animation: pop-in .12s var(--ease); }
.combo-list li { padding: 8px 10px; border-radius: 7px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.combo-list li small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--primary-soft); }
.combo-list li.empty { color: var(--muted); cursor: default; background: none; }
.combo-list li.action { color: var(--primary-ink); font-weight: 500; border-top: 1px solid var(--line); margin-top: 2px; }

/* ---------- lines editor */
.lines { display: flex; flex-direction: column; gap: 10px; }
.line { display: grid; grid-template-columns: minmax(220px, 2.4fr) minmax(130px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr) auto; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); animation: view-in .2s var(--ease); }
.line .field > label { font-size: 12px; }
.line .line-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 12px; color: var(--muted); }
.line .rm { align-self: end; margin-bottom: 4px; }
.quick-qty { display: flex; flex-wrap: wrap; gap: 5px; }
.quick-qty button { border: 1px solid var(--line-strong); background: #fff; border-radius: 14px; padding: 2px 10px; font-size: 12px; color: var(--primary-ink); min-height: 28px; }
.quick-qty button:hover { border-color: var(--primary); background: var(--primary-softer); }
.quick-qty button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.totals { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: flex-end; padding: 12px 4px 0; font-size: 14px; color: var(--ink-2); }
.totals b { font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.totals .warn b { color: var(--amber-ink); }

/* ---------- tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
table.data td { padding: 11px 14px; border-bottom: 1px solid #f0ecf4; vertical-align: top; }
table.data tbody tr { transition: background-color .12s; }
table.data tbody tr:hover td { background: #faf7fd; }
table.data .num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data td.nowrap { white-space: nowrap; }
table.data tr.neg td { background: var(--red-soft); }
table.data tr.neg td.num.neg-cell, table.data td.neg-val { color: var(--red-ink); font-weight: 600; }
table.data td.minus { color: var(--ink-2); }
table.data tr.group td { background: var(--primary-softer); font-weight: 600; color: var(--primary-ink); font-size: 12.5px; }
table.data tr.sum td, table.data tfoot td { font-weight: 600; background: var(--surface-2); border-top: 1px solid var(--line); }
table.data tr.sub td { color: var(--ink-2); font-weight: 600; background: #fcfbfd; }
table.data tr.clickable { cursor: pointer; }
table.data .sticky-col { position: sticky; left: 0; background: #fff; z-index: 2; }
table.data th.sticky-col { z-index: 3; background: var(--surface-2); }
table.data tr.neg .sticky-col { background: var(--red-soft); }
table.data tr.group .sticky-col { background: var(--primary-softer); }
table.data td .sub { display: block; font-size: 12px; color: var(--muted); }
.table-empty { padding: 30px 18px; text-align: center; color: var(--muted); }
.bar-cell { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.bar-cell i { display: block; height: 8px; border-radius: 0 4px 4px 0; background: var(--series-goods); min-width: 1px; }

/* ---------- chips */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 12px; font-size: 12px; font-weight: 500; white-space: nowrap; background: #f0edf3; color: var(--ink-2); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.chip.plain::before { display: none; }
.chip.draft { background: #efedf2; color: #6b6176; }
.chip.pending { background: var(--amber-soft); color: var(--amber-ink); }
.chip.posted { background: var(--green-soft); color: var(--green); }
.chip.cancelled { background: var(--red-soft); color: var(--red-ink); }
.chip.info { background: var(--primary-soft); color: var(--primary-ink); }
.flag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 12px; background: var(--amber-soft); color: var(--amber-ink); margin: 1px 4px 1px 0; }
.flag svg { width: 13px; height: 13px; }

/* ---------- notices & states */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--primary-softer); color: var(--ink-2); font-size: 14px; margin-bottom: 14px; }
.notice svg { width: 20px; height: 20px; margin-top: 1px; color: var(--primary); }
.notice.warn { background: #fdf6ea; border-color: #f0dfc0; }
.notice.warn svg { color: var(--amber); }
.notice.error { background: var(--red-soft); border-color: #f0c9cf; color: var(--red-ink); }
.notice.error svg { color: var(--red); }
.notice.ok { background: var(--green-soft); border-color: #c8e3d4; color: #2f5f47; }
.notice.ok svg { color: var(--green); }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice h3 { font-size: 15px; margin-bottom: 2px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty img { width: 120px; height: 90px; object-fit: contain; opacity: .9; margin-bottom: 10px; }
.empty h3 { color: var(--ink-2); margin-bottom: 6px; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); padding: 34px 18px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.right { text-align: right; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.export-links { gap: 6px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.neg-text { color: var(--red-ink); }
.pos-text { color: var(--green); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 7px 18px; font-size: 14px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---------- chart */
.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .grid line { stroke: #eee9f2; stroke-width: 1; }
.chart .bar { cursor: pointer; }
.chart .bar:hover rect, .chart .bar:focus rect { opacity: .85; }
.chart .bar:focus { outline: none; }
.chart .bar:focus .hit { stroke: var(--focus); stroke-width: 2; }
.chart .total-label { fill: var(--ink-2); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart-tip { position: absolute; pointer-events: none; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-pop); padding: 9px 11px; font-size: 12px; color: var(--ink); min-width: 180px; z-index: 5; }
.chart-tip b { display: block; margin-bottom: 4px; font-weight: 600; }
.chart-tip span { display: flex; justify-content: space-between; gap: 12px; }
.chart-tip i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 6px; }
details.table-view summary { cursor: pointer; color: var(--primary-ink); font-size: 13px; padding: 6px 0; }

/* ---------- dialogs */
dialog.modal { border: 0; border-radius: 18px; padding: 0; width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow-pop); color: var(--ink); animation: dialog-in .18s var(--ease); }
dialog.modal.wide { width: min(980px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(42, 32, 51, .44); backdrop-filter: blur(2px); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-body { padding: 16px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; position: sticky; bottom: 0; background: #fff; }

/* ---------- command palette */
dialog.palette { border: 0; padding: 0; background: transparent; width: min(660px, calc(100vw - 24px)); max-height: none; margin: 11vh auto auto; overflow: visible; }
dialog.palette::backdrop { background: rgba(42, 32, 51, .42); backdrop-filter: blur(3px); animation: fade-in .15s ease; }
.pal-box { background: #fff; border-radius: 18px; box-shadow: var(--shadow-pop); overflow: hidden; animation: dialog-in .16s var(--ease); }
dialog.palette.closing .pal-box { animation: dialog-out .11s ease forwards; }
@keyframes dialog-out { to { opacity: 0; transform: scale(.985); } }
.pal-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.pal-input svg { width: 20px; height: 20px; color: var(--primary); }
.pal-input input { flex: 1; border: 0; min-height: 58px; font-size: 16px; padding: 0; background: none; box-shadow: none !important; }
.pal-input input:focus-visible { outline: none; }
.pal-list { list-style: none; margin: 0; padding: 6px; max-height: min(58vh, 460px); overflow-y: auto; }
.pal-group { font-size: 12px; color: var(--faint); padding: 10px 10px 4px; }
.pal-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.pal-row[aria-selected="true"] { background: var(--primary-soft); }
.pal-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary-ink); border: 1px solid var(--line); flex-shrink: 0; }
.pal-row[aria-selected="true"] .pal-ic { background: #fff; border-color: #dccdea; }
.pal-ic svg { width: 17px; height: 17px; }
.pal-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pal-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.pal-text small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-hint { font-size: 12px; color: var(--primary-ink); background: var(--primary-softer); border-radius: 8px; padding: 2px 8px; }
.pal-empty { padding: 26px 16px; color: var(--muted); text-align: center; }
.pal-foot { display: flex; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 12px; color: var(--muted); }
.pal-foot kbd + kbd { margin-left: 3px; }

/* ---------- toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 36px)); }
/* above the pinned form bar, so a message never covers the main button */
body:has(#view form > .form-actions) .toasts { bottom: 84px; }
.toast { display: flex; gap: 10px; align-items: flex-start; background: var(--plum); color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: 0 12px 32px rgba(42, 32, 51, .28); font-size: 14px; animation: toast-in .22s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.toast svg { width: 18px; height: 18px; margin-top: 1px; }
.toast.error { background: #7d2f3c; }
.toast.ok { background: #2f5f47; }
.toast button { margin-left: auto; background: none; border: 0; color: #fff; opacity: .8; padding: 0 2px; font-size: 18px; line-height: 1; }

/* ---------- login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); background: var(--surface); }
.login-art { background: var(--plum); color: #efe6f7; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; isolation: isolate; }
.login-art::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: radial-gradient(40% 35% at 20% 80%, rgba(196, 167, 234, .32), transparent 70%), radial-gradient(35% 30% at 80% 25%, rgba(232, 185, 100, .2), transparent 70%); filter: blur(10px); animation: mist 18s ease-in-out infinite alternate; }
@keyframes mist { to { transform: translate3d(3%, -4%, 0) scale(1.06); } }
.login-art .brand-name { font-size: 44px; color: #f3ecfa; }
.login-art .brand-name small { color: rgba(243, 236, 250, .6); }
.login-art .brand-mark span { border-top-color: #c9b3dc; }
.login-art .tagline { font-family: var(--serif); font-size: 40px; color: #fff; max-width: 440px; line-height: 1.1; }
.login-art .tagline small { display: block; font-family: var(--font); font-size: 14px; color: rgba(243, 236, 250, .7); margin-top: 14px; line-height: 1.6; }
.login-art .art { display: flex; align-items: flex-end; gap: 10px; }
.login-art .art img.device { width: 220px; }
.login-art .art img.bottle { width: 120px; margin-bottom: 8px; }
.login-art .art img.leaf { width: 150px; opacity: .9; }
.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-form { width: 100%; max-width: 360px; }
.login-form h1 { margin-bottom: 6px; }
.login-lang { margin-bottom: 22px; }
.login-form p.sub { color: var(--muted); margin-bottom: 22px; }

/* ---------- service (mobile first) */
.visit-list { display: flex; flex-direction: column; gap: 10px; }
.visit-card { display: flex; gap: 12px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; min-height: 64px; transition: border-color .15s, box-shadow .15s; }
.visit-card:hover { border-color: #cdbbdb; text-decoration: none; box-shadow: var(--shadow); }
.visit-card .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--amber-soft); color: var(--amber-ink); display: grid; place-items: center; flex-shrink: 0; }
.visit-card .ic svg { width: 20px; height: 20px; }
.visit-card .body { flex: 1; min-width: 0; }
.visit-card .body strong { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visit-card .body small { color: var(--muted); font-size: 12px; }
.steps { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 4px 10px; border-radius: 14px; background: #f1edf4; }
.steps span.on { background: var(--primary); color: #fff; }
.steps span.done { background: var(--green-soft); color: var(--green); }
.photo-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px dashed var(--line-strong); border-radius: 14px; padding: 24px 14px; text-align: center; color: var(--muted); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background-color .15s; }
.photo-drop:hover, .photo-drop:focus-within { border-color: var(--primary); background: var(--primary-softer); }
.photo-drop svg { width: 34px; height: 34px; color: var(--primary); }
.photo-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.thumbs a, .thumbs figure { position: relative; display: block; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #f3f0f6; aspect-ratio: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(42, 32, 51, .6); color: #fff; font-size: 11px; padding: 3px 6px; }
.thumbs .file { display: grid; place-items: center; height: 100%; color: var(--primary-ink); font-size: 13px; padding: 8px; text-align: center; }
.big-qty { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.big-qty button { min-height: 44px; border: 1px solid var(--line-strong); background: #fff; border-radius: 10px; font-size: 15px; color: var(--primary-ink); }
.big-qty button[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- approvals */
.approval { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 12px; }
.approval-head { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 14px 16px; flex-wrap: wrap; }
.approval-head h3 { font-size: 15px; }
.approval-head .amount { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.approval-body { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.reasons { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.preview { border-top: 1px solid var(--line); padding-top: 10px; }

/* ---------- wallets */
.wallets { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.wallet { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.wallet:hover { border-color: #cdbbdb; text-decoration: none; box-shadow: var(--shadow); }
.wallet .top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.wallet strong { font-weight: 500; }
.wallet .bal { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wallet .bal.neg { color: var(--red-ink); }
.wallet small { color: var(--faint); font-size: 12px; }

/* ---------- dashboard */
.dash-head { margin-bottom: 18px; }
.fresh { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--amber-ink); background: var(--amber-soft); border-radius: 10px; padding: 3px 10px; margin-top: 10px; }
.fresh svg { width: 14px; height: 14px; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); gap: 10px 32px;
  background: var(--plum); color: #efe7f7; border-radius: 20px; padding: 26px 28px 20px; margin-bottom: 18px;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(42% 70% at 0% 100%, rgba(150, 112, 196, .32), transparent 70%), radial-gradient(30% 50% at 100% 0%, rgba(214, 160, 76, .16), transparent 70%); }
.hero-label { font-size: 13.5px; color: rgba(239, 231, 247, .72); display: flex; align-items: center; gap: 8px; }
.hero-value { font-family: var(--serif); font-weight: 600; font-size: 64px; line-height: 1; letter-spacing: -.01em; color: #fff; margin: 10px 0 12px; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.hero-value .unit, .money-total .unit { font-family: var(--font); font-size: 16px; font-weight: 500; opacity: .72; letter-spacing: 0; }
.hero-delta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; border-radius: 10px; padding: 3px 10px; background: rgba(255, 255, 255, .08); color: rgba(239, 231, 247, .86); }
.hero-delta.up b { color: #9fe0bb; }
.hero-delta.down b { color: #f3a9b5; }
.hero-delta b { font-weight: 600; }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.hero-stats div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-stats span { font-size: 12px; color: rgba(239, 231, 247, .6); }
.hero-stats b { font-size: 17px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-stats small { font-size: 12px; color: rgba(239, 231, 247, .6); font-weight: 400; }
.hero-chart { position: relative; min-width: 0; display: flex; flex-direction: column; }
.hero-chart .legend { color: rgba(239, 231, 247, .78); font-size: 12.5px; justify-content: flex-end; gap: 14px; }
.hero-chart .legend i.lg-line { height: 2px; width: 16px; border-radius: 1px; background: #fff; }
.hero-chart svg { display: block; width: 100%; height: auto; overflow: visible; margin-top: 6px; }
.hero-chart .axis text { fill: rgba(239, 231, 247, .55); font-size: 11px; font-family: var(--font); }
.hero-chart .axis text.on { fill: #fff; font-weight: 600; }
.hero-chart .axis text.skip:not(.on) { display: none; }
.hero-chart .grid line { stroke: rgba(255, 255, 255, .08); }
.hero-chart .col { cursor: pointer; outline: none; }
.hero-chart .col .sel { fill: rgba(255, 255, 255, 0); transition: fill .2s; }
.hero-chart .col:hover .sel { fill: rgba(255, 255, 255, .05); }
.hero-chart .col[aria-pressed="true"] .sel { fill: rgba(255, 255, 255, .09); }
.hero-chart .col:focus-visible .sel { stroke: #cdb3ea; stroke-width: 1.5; }
.hero-chart .col .seg-g { fill: url(#g-goods); }
.hero-chart .col .seg-s { fill: url(#g-service); }
.hero-chart .net { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .35)); }
.hero-chart .net-dot { fill: var(--plum); stroke: #fff; stroke-width: 2; }
.hero-chart .bars rect, .hero-chart .bars path { transform-box: fill-box; transform-origin: bottom; }
.hero.intro .hero-chart .bars .grow { animation: grow-up .7s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.hero.intro .hero-chart .net { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.1s .35s var(--ease) forwards; }
.hero.intro .hero-chart .net-dot { animation: fade-in .3s both; animation-delay: calc(.5s + var(--i) * 60ms); }
@keyframes grow-up { from { transform: scaleY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-tip { position: absolute; pointer-events: none; background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); padding: 9px 11px; font-size: 12px; min-width: 190px; z-index: 5; }
.hero-tip b { display: block; margin-bottom: 4px; }
.hero-tip span { display: flex; justify-content: space-between; gap: 12px; }
.hero-tip i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 6px; }

.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.dash-grid > .panel { margin: 0; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-12 { grid-column: 1 / -1; }
.panel-head .more { font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.panel-head .more svg { width: 15px; height: 15px; }

.attn { list-style: none; margin: 0; padding: 4px 8px 8px; }
.attn a { display: flex; align-items: center; gap: 13px; padding: 11px 12px; border-radius: 12px; color: inherit; text-decoration: none; transition: background-color .15s; }
.attn a:hover { background: var(--surface-2); text-decoration: none; }
.attn li + li a { border-top: 1px solid #f2eef6; border-radius: 0; }
.attn li + li a:hover { border-radius: 12px; border-top-color: transparent; }
.attn .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: var(--primary-soft); color: var(--primary-ink); }
.attn .ic svg { width: 19px; height: 19px; }
.attn .warn .ic { background: var(--amber-soft); color: var(--amber-ink); }
.attn .alert .ic { background: var(--red-soft); color: var(--red-ink); }
.attn .ok .ic { background: var(--green-soft); color: var(--green); }
.attn .txt { flex: 1; min-width: 0; }
.attn .txt strong { display: block; font-weight: 500; }
.attn .txt small { color: var(--muted); font-size: 12.5px; }
.attn .count { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.attn .alert .count { color: var(--red-ink); }
.attn .warn .count { color: var(--amber-ink); }
.attn > li > a > svg:last-child { width: 16px; height: 16px; color: var(--faint); }
.attn-calm { display: flex; align-items: center; gap: 12px; padding: 18px 20px 22px; color: var(--ink-2); }
.attn-calm .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }

.money-total { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; color: var(--plum); font-variant-numeric: tabular-nums lining-nums; }
.stackbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #f1edf5; margin: 16px 0 14px; gap: 2px; }
.stackbar i { display: block; height: 100%; min-width: 3px; transition: flex-grow .5s var(--ease); }
.legend-rows { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.legend-rows li { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; }
.legend-rows li i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; transform: translateY(1px); }
.legend-rows li span { flex: 1; color: var(--ink-2); }
.legend-rows li b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.legend-rows li small { color: var(--muted); font-size: 12px; white-space: nowrap; }

.aging { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.age-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 86px 70px; align-items: center; gap: 12px; }
.age-row .lbl { font-size: 13px; color: var(--ink-2); }
.age-row .bar { height: 14px; border-radius: 7px; background: #f3eff7; overflow: hidden; }
.age-row .bar i { display: block; height: 100%; border-radius: 7px; transform-origin: left; animation: grow-right .7s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes grow-right { from { transform: scaleX(0); } }
.age-row .amt { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.age-row .cnt { font-size: 12px; color: var(--muted); white-space: nowrap; text-align: right; }
.debtors { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.debtors li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 2px; border-bottom: 1px solid #f2eef6; color: inherit; text-decoration: none; }
.debtors li a:hover { background: var(--surface-2); text-decoration: none; }
.debtors .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.debtors .sm { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.debtors small { color: var(--muted); font-size: 12px; grid-column: 1 / -1; }

.vials { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 14px 10px; padding-top: 4px; }
.vial { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: inherit; text-decoration: none; border-radius: 12px; padding: 8px 4px; position: relative; outline: none; }
.vial:hover, .vial:focus-visible { background: var(--surface-2); text-decoration: none; }
.vial:focus-visible { box-shadow: 0 0 0 3px rgba(154, 114, 192, .35); }
.vial svg { width: 46px; height: 92px; overflow: visible; }
.vial .glass { fill: #fbf9fd; stroke: #d5c8e2; stroke-width: 1.5; }
.vial .cap { fill: var(--plum-2); }
.vial .liquid { fill: url(#v-ok); transform-box: fill-box; transform-origin: bottom; animation: grow-up .9s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.vial.low .liquid { fill: url(#v-low); }
.vial.empty .liquid { fill: url(#v-low); }
.vial .shine { fill: #fff; opacity: .55; }
.vial .nm { font-size: 12.5px; line-height: 1.25; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vial .dd { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vial.low .dd { color: var(--red-ink); font-weight: 600; }
.vial-tip { position: absolute; bottom: calc(100% - 4px); left: 50%; transform: translateX(-50%); background: var(--plum); color: #fff; font-size: 12px; border-radius: 8px; padding: 6px 9px; white-space: nowrap; pointer-events: none; z-index: 3; display: none; }
.vial:hover .vial-tip, .vial:focus-visible .vial-tip { display: block; animation: fade-in .15s; }

.status-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; margin: 4px 0 14px; }
.status-bar i { display: block; height: 100%; }
.big-num { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--plum); line-height: 1.1; }

/* ---------- work forms */
select { appearance: none; -webkit-appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b6f88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 15px; }
select[multiple] { background-image: none; padding-right: 11px; }
/* a numbered sequence: the sale form’s sections are filled in this order */
.form-steps { counter-reset: step; }
.form-steps > .panel > .panel-head h2 { display: flex; align-items: center; gap: 10px; }
.form-steps > .panel > .panel-head h2::before { counter-increment: step; content: counter(step); width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--plum); color: #fff; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.form-steps > .panel:focus-within > .panel-head h2::before { background: var(--primary); box-shadow: 0 0 0 4px rgba(154, 114, 192, .22); }
.lines { counter-reset: line; container-type: inline-size; }
.grid-main-side > *, .stack > * { min-width: 0; }
/* a line lays out by the width it actually has (a side summary can make the column narrow) */
@container (max-width: 680px) {
  .lines > .line { grid-template-columns: 1fr 1fr; }
  .lines > .line > :first-child { grid-column: 1 / -1; }
}
@container (max-width: 380px) {
  .lines > .line { grid-template-columns: 1fr; }
}
.lines > .line { position: relative; counter-increment: line; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.lines > .line::before { content: counter(line); position: absolute; left: 12px; top: -10px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #fff; border: 1px solid var(--line-strong); color: var(--muted); font-size: 11px; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.lines > .line:focus-within { border-color: #cdb8e2; background: #fff; box-shadow: 0 0 0 4px rgba(154, 114, 192, .1); }
.lines > .line:focus-within::before { background: var(--primary); border-color: var(--primary); color: #fff; }
.date-quick { display: flex; gap: 6px; margin-top: 2px; }
.date-quick button { border: 0; background: none; padding: 2px 8px; border-radius: 8px; font-size: 12px; color: var(--primary-ink); }
.date-quick button:hover { background: var(--primary-soft); }
.field.big input { font-size: 22px; font-weight: 600; min-height: 52px; letter-spacing: -.01em; }
.field.big .sfx { font-size: 15px; }
.amount-echo { font-size: 12.5px; color: var(--primary-ink); font-variant-numeric: tabular-nums; min-height: 18px; }
/* the main button stays in reach at the bottom of long forms */
#view form > .form-actions { position: sticky; bottom: 0; z-index: 6; margin: 4px -6px 0; padding: 14px 6px 12px; background: linear-gradient(to top, var(--bg) 72%, rgba(244, 242, 247, 0)); }
.kbd-hint { text-align: center; }
.kbd-hint kbd { font-size: 10.5px; }

.form-dock .dock-main { display: flex; flex-direction: column; gap: 12px; }
.dock-total { display: flex; flex-direction: column; gap: 2px; }
.dock-total span { font-size: 12.5px; color: var(--muted); }
.dock-total b { font-size: 28px; font-weight: 600; letter-spacing: -.02em; color: var(--plum); line-height: 1.15; }
.dock-total small { font-size: 12.5px; font-weight: 500; min-height: 17px; }
.form-dock .dock-main .btn { width: 100%; }
.dock-toggle { display: none; }

.result { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; margin-bottom: 16px; animation: view-in .25s var(--ease); }
.result-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; animation: pop-check .45s var(--ease) both; }
.result-ic svg { width: 24px; height: 24px; stroke-width: 2.4; }
.result.ok .result-ic { background: var(--green); color: #fff; box-shadow: 0 0 0 6px var(--green-soft); }
.result.warn .result-ic { background: var(--amber); color: #fff; box-shadow: 0 0 0 6px var(--amber-soft); }
.result.info .result-ic { background: var(--primary-soft); color: var(--primary-ink); }
.result h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--plum); line-height: 1.1; margin-bottom: 4px; }
.result p { color: var(--ink-2); }
.result-reasons { margin: 8px 0 0; padding-left: 18px; color: var(--amber-ink); font-size: 13.5px; }
@keyframes pop-check { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- xato va takliflar */
.report-btn { position: relative; color: var(--primary-ink); }
.report-btn .nav-badge { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; font-size: 10px; padding: 0 5px; }
.fb-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fb-hint { margin: -6px 0 14px; }
.fb-kind input { position: absolute; opacity: 0; pointer-events: none; }
.fb-kind span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; font-size: 14px; color: var(--ink-2); transition: border-color .15s, background-color .15s, color .15s; }
.fb-kind span svg { width: 17px; height: 17px; }
.fb-kind input:checked + span { background: var(--plum); border-color: var(--plum); color: #fff; }
.fb-kind input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.fb-where { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.fb-where svg { width: 16px; height: 16px; margin-top: 2px; }
.fb-where b { color: var(--ink-2); font-weight: 500; }
.fb-answer { border-radius: 12px; background: var(--primary-softer); border: 1px solid #e6dcf0; padding: 12px 14px; margin-top: 10px; }
.fb-answer.reply { background: var(--green-soft); border-color: #c8e3d4; }
.fb-answer-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--primary-ink); margin-bottom: 4px; }
.fb-answer.reply .fb-answer-h { color: var(--green); }
.fb-answer-h svg { width: 15px; height: 15px; }
.fb-answer p { white-space: pre-line; font-size: 14px; color: var(--ink); }
.fb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.fb-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fb-card.unread { border-color: #cdb8e2; box-shadow: 0 0 0 3px rgba(154, 114, 192, .12); }
.fb-card header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fb-id { font-weight: 600; color: var(--plum); font-variant-numeric: tabular-nums; }
.fb-date { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fb-who, .fb-page, .fb-ai { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.fb-who svg, .fb-page svg, .fb-ai svg { width: 15px; height: 15px; margin-top: 1px; flex-shrink: 0; }
.fb-ai { color: var(--ink-2); background: var(--surface-2); border-radius: 9px; padding: 7px 9px; }
.fb-ai b { font-weight: 600; }
.fb-ai.err { color: var(--red-ink); background: var(--red-soft); }
.fb-text { white-space: pre-line; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.fb-note { font-size: 13px; color: var(--amber-ink); background: var(--amber-soft); border-radius: 9px; padding: 7px 9px; }
.fb-card footer { display: flex; gap: 8px; justify-content: flex-end; }
.fb-card footer:empty { display: none; }
.fb-manage { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.fb-manage .fb-card { border: 0; padding: 0; }
details.dg { margin: 0; }
details.dg summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; }
details.dg summary::-webkit-details-marker { display: none; }
details.dg summary span:not(.chip) { color: var(--muted); font-size: 13px; }
.dg-text { margin: 0; padding: 0 18px 18px; white-space: pre-wrap; font-family: var(--font); font-size: 13.5px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.panel-body > .dg-text { padding: 10px 12px; background: var(--surface-2); border-radius: 10px; font-size: 13px; }
.steps-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.steps-list code, .panel code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 12.5px; }
@media (max-width: 720px) {
  .fb-list { grid-template-columns: 1fr; }
  .fb-manage { grid-template-columns: 1fr; }
}

/* ---------- responsive */
@media (max-width: 1440px) {
  .user-btn .who { display: none; }
}
@media (max-width: 1280px) {
  .search-trigger kbd { display: none; }
  .scope-select { width: 148px; }
}
@media (max-width: 1180px) {
  .grid-main-side { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .span-7, .span-5, .span-6 { grid-column: 1 / -1; }
  /* the sale summary turns into a bar pinned to the bottom; details open on demand */
  .form-dock { position: sticky; bottom: 0; z-index: 7; margin: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px -12px rgba(42, 32, 51, .25); }
  .form-dock > .panel-head { display: none; }
  .form-dock > .panel-body { padding: 12px 16px; gap: 8px; }
  .form-dock .dock-main { flex-direction: row; align-items: center; }
  .form-dock .dock-main .btn { width: auto; flex-shrink: 0; }
  .form-dock .dock-total { flex: 1; min-width: 0; }
  .form-dock .dock-total b { font-size: 22px; }
  .dock-toggle { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; border: 0; background: none; color: var(--primary-ink); font-size: 13px; padding: 2px 0; }
  .dock-toggle svg { width: 15px; height: 15px; transform: rotate(-90deg); transition: transform .2s var(--ease); }
  .form-dock.open .dock-toggle svg { transform: rotate(90deg); }
  .form-dock .dock-more { display: none; }
  .form-dock.open .dock-more { display: flex; flex-direction: column; gap: 10px; max-height: 50vh; overflow-y: auto; }
  .kbd-hint { display: none; }
  body:has(.form-dock) .toasts { bottom: 120px; }
}
@media (max-width: 1023px) {
  .sidebar { transform: translateX(-102%); transition: transform .24s var(--ease); box-shadow: 0 0 40px rgba(0,0,0,.15); width: min(300px, 86vw); }
  .shell.nav-open .sidebar { transform: none; }
  .main-shell { margin-left: 0; }
  .topbar .menu-toggle { display: inline-flex; }
  .rail-toggle { display: none; }
  .branch-card { display: block; }
  .scope-select { display: none; }
  .topbar { padding: 0 14px; }
  main { padding: 20px 18px 34px; }
  .page-foot { padding: 0 18px 16px; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { padding: 24px; min-height: 0; }
  .login-art .art, .login-art .tagline { display: none; }
  .line { grid-template-columns: 1fr 1fr; }
  .line > .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { font-size: 15px; }
  h1 { font-size: 28px; }
  .grid-2, .grid-3, .fields.cols-2 { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .topbar .menu-toggle, .btn-new, .topbar-actions > .seg { display: none; }
  .menu-currency { display: flex; }
  .topbar { height: 56px; gap: 8px; }
  .topbar .crumb { display: flex; flex: 1; }
  .topbar .crumb .crumb-root { display: none; }
  .search-trigger { flex: 0 0 auto; width: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .topbar-actions { margin-left: 0; }
  input[type="text"], input[type="search"], input[type="password"], input[type="date"], input[type="month"], input[type="number"], input[type="tel"], input:not([type]), select, textarea { font-size: 16px; min-height: 44px; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi .value { font-size: 20px; }
  .kpi .value-lg { font-size: 24px; }
  .page-head { align-items: flex-start; }
  .head-actions { width: 100%; }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
  .filters .field, .filters .field.grow { min-width: 0; max-width: none; }
  .filters .field.grow, .filters .field:has(input[type="search"]) { grid-column: 1 / -1; }
  .filters > span.grow:empty { display: none; }
  .chips-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -14px; padding: 2px 14px; }
  .chips-nav::-webkit-scrollbar { display: none; }
  .chips-nav a { flex-shrink: 0; }
  .line { grid-template-columns: 1fr; }
  .form-actions .btn { flex: 1 1 auto; }
  .toasts, body:has(.form-dock) .toasts, body:has(#view form > .form-actions) .toasts { left: 12px; right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); max-width: none; top: auto; }
  body:has(.form-dock) .toasts, body:has(#view form > .form-actions) .toasts { bottom: calc(150px + env(safe-area-inset-bottom)); }
  .dl { grid-template-columns: 1fr; gap: 2px 0; }
  .dl dt { margin-top: 8px; font-size: 12px; }
  .panel-head { padding: 14px 14px 0; }
  .panel-body { padding: 14px; }
  main { padding: 16px 14px calc(96px + env(safe-area-inset-bottom)); }
  .page-foot { display: none; }
  #view form > .form-actions, .form-dock { bottom: calc(66px + env(safe-area-inset-bottom)); }
  .form-dock { border-radius: 16px; }
  .result { padding: 16px; gap: 12px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 34; align-items: stretch; justify-content: space-around;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
  }
  .tabbar a, .tabbar button { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border: 0; background: none; color: var(--muted); font-size: 11px; text-decoration: none; border-radius: 12px; }
  .tabbar a svg, .tabbar button svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--primary-ink); font-weight: 600; }
  .tabbar a[aria-current="page"] svg { color: var(--primary); }
  .tabbar .tab-new { flex: 0 0 auto; width: 52px; height: 52px; min-height: 0; margin: -16px 4px 0; align-self: center; border-radius: 50%; background: var(--plum); color: #fff; box-shadow: 0 8px 20px -6px rgba(42, 32, 51, .6); }
  .tabbar .tab-new svg { width: 24px; height: 24px; }
  dialog.palette { margin: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; }
  .pal-box { height: 100%; border-radius: 0; display: flex; flex-direction: column; }
  .pal-list { flex: 1; max-height: none; }
  .pal-foot { display: none; }
  .hero { padding: 20px 18px 16px; border-radius: 16px; }
  .hero-value { font-size: 50px; }
  .age-row { grid-template-columns: 92px minmax(0, 1fr) 76px; }
  .age-row .cnt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .spinner { animation-duration: 3s !important; }
  .hero.intro .hero-chart .net { stroke-dashoffset: 0; }
}
@media print {
  .sidebar, .topbar, .head-actions, .form-actions, .toasts, .page-foot, .tabbar { display: none !important; }
  .main-shell { margin: 0 !important; }
  .panel { border: 0; }
  #view > div { animation: none; }
}

.training-banner { position: sticky; top: 0; z-index: 31; background: #b4531a; color: #fff; text-align: center; font-weight: 600; letter-spacing: .02em; padding: 6px 12px; }
