/* T-Logistix theme tokens (from mockup) */
:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 84.2% 60.2%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --ring: 240 5.9% 10%;
  --radius: 0.5rem;
  --app-header-height: 3.5rem;
  --sidebar-background: 0 0% 98%;
  --sidebar-foreground: 240 5.3% 26.1%;
  --sidebar-accent: 240 4.8% 95.9%;
  --sidebar-accent-foreground: 240 5.9% 10%;
  --sidebar-border: 220 13% 91%;
}
.dark {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --card: 240 10% 3.9%;
  --card-foreground: 0 0% 98%;
  --primary: 0 0% 98%;
  --primary-foreground: 240 5.9% 10%;
  --secondary: 240 3.7% 15.9%;
  --secondary-foreground: 0 0% 98%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --sidebar-background: 240 5.9% 10%;
  --sidebar-foreground: 240 4.8% 95.9%;
  --sidebar-accent: 240 3.7% 15.9%;
  --sidebar-accent-foreground: 240 4.8% 95.9%;
  --sidebar-border: 240 3.7% 15.9%;
}
body {
  font-feature-settings: "rlig" 1, "calt" 1;
  font-family: 'Play', system-ui, sans-serif;
}
.table-row-hover:hover { background: hsl(var(--muted) / 0.5); }
.tl-brand { background: #000; color: #fff; }

/* Фиксированное левое меню */
.app-shell {
  display: flex;
  width: 100%;
}
.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
}
.app-sidebar-nav {
  overscroll-behavior: contain;
}
.app-main {
  margin-left: 0;
  width: 100%;
}
@media (min-width: 768px) {
  .app-main {
    margin-left: 16rem;
    width: calc(100% - 16rem);
  }
}
.nom-thumb {
  width: 3.5rem; height: 3.5rem; border-radius: 0.5rem;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.nom-thumb-placeholder {
  width: 3.5rem; height: 3.5rem; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; font-weight: 600; color: hsl(var(--foreground) / 0.55);
  flex-shrink: 0; border: 1px solid hsl(var(--border));
  background: hsl(var(--muted));
}
#app-sidebar nav a.nav-active,
#app-sidebar nav .nav-item.nav-active {
  background: hsl(var(--sidebar-accent));
  color: hsl(var(--sidebar-accent-foreground));
  font-weight: 500;
}
.nav-group-label {
  padding: 0.375rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground) / 0.85);
}
.theme-btn.active {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.ui-toast-wrap {
  position: fixed; bottom: 1rem; right: 1rem; z-index: 60;
  display: flex; flex-direction: column; gap: .5rem; max-width: 24rem;
}
.ui-toast {
  padding: 12px 16px; border-radius: 8px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card)); color: hsl(var(--foreground));
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transform: translateX(120%); transition: transform .3s ease;
}
.ui-toast.show { transform: translateX(0); }

.ui-confirm-modal.hidden { display: none !important; }
.ui-confirm-card { animation: ui-confirm-in 0.15s ease-out; }
@keyframes ui-confirm-in {
  from { opacity: 0; transform: scale(0.97) translateY(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
#sync-overlay.open { display: flex !important; }
#job-overlay.open { display: flex !important; }
.badge-wb { background: rgba(203,17,171,0.15); color: #cb11ab; border-color: #cb11ab; }
.badge-1c { background: rgba(37,99,235,0.12); color: #2563eb; border-color: rgba(37,99,235,0.4); }
.badge-qr { background: rgba(22,163,74,0.12); color: #16a34a; border-color: rgba(22,163,74,0.4); }
.badge-wb-icon { background: rgba(203,17,171,0.12); color: #cb11ab; border: 1px solid rgba(203,17,171,0.3); }
.badge-1c-icon { background: rgba(37,99,235,0.12); color: #2563eb; border: 1px solid rgba(37,99,235,0.3); }
.badge-qr-icon { background: rgba(22,163,74,0.12); color: #16a34a; border: 1px solid rgba(22,163,74,0.3); }
.dark .badge-1c { color: #60a5fa; }
.dark .badge-qr { color: #4ade80; }
.dark .badge-1c-icon { color: #60a5fa; }
.dark .badge-qr-icon { color: #4ade80; }

/* Multi-select filters */
.ms-wrap { position: relative; z-index: 1; min-width: 0; }
.ms-wrap.is-open { z-index: 50; }
.ms-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  height: 2.25rem; width: 100%; min-width: 0;
  padding: 0 0.75rem; border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--input)); background: hsl(var(--background));
  font-size: 0.875rem; cursor: pointer; text-align: left;
  position: relative; z-index: 1;
}
.ms-trigger:hover { background: hsl(var(--accent)); }
.ms-trigger.active { border-color: hsl(var(--primary)); box-shadow: 0 0 0 1px hsl(var(--primary) / 0.2); }
.ms-trigger-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.ms-trigger-count {
  font-size: 0.625rem; font-weight: 600; line-height: 1;
  padding: 0.125rem 0.375rem; border-radius: 9999px;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
}
.ms-panel {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 60;
  min-width: 100%; width: max-content; max-width: 280px; max-height: 280px;
  overflow: hidden; display: flex; flex-direction: column;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.ms-panel.hidden { display: none; }
.ms-search {
  margin: 0.5rem; padding: 0.375rem 0.5rem; font-size: 0.75rem;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid hsl(var(--input)); background: hsl(var(--background));
}
.ms-list { overflow-y: auto; padding: 0.25rem 0; flex: 1; }
.ms-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.75rem; font-size: 0.8125rem; cursor: pointer;
}
.ms-item:hover { background: hsl(var(--muted) / 0.6); }
.ms-item input { accent-color: hsl(var(--primary)); flex-shrink: 0; }
.ms-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-actions {
  display: flex; gap: 0.5rem; padding: 0.5rem; border-top: 1px solid hsl(var(--border));
}
.ms-actions button {
  flex: 1; font-size: 0.6875rem; padding: 0.25rem;
  border-radius: calc(var(--radius) - 4px); border: 1px solid hsl(var(--border));
  background: hsl(var(--background)); cursor: pointer;
}
.ms-actions button:hover { background: hsl(var(--accent)); }
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

/* Ionicons — фиксированный размер (SVG viewBox 512, Tailwind h-/w- не задаёт font-size) */
ion-icon {
  display: inline-block !important;
  vertical-align: middle;
  color: currentColor;
  --ionicon-stroke-width: 32px;
  font-size: 16px !important;
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex-shrink: 0;
  overflow: hidden;
  line-height: 1;
  box-sizing: border-box;
}
ion-icon[class~="h-3"], ion-icon[class~="w-3"] {
  font-size: 12px !important; width: 12px !important; height: 12px !important;
  max-width: 12px !important; max-height: 12px !important;
}
ion-icon[class~="h-3.5"], ion-icon[class~="w-3.5"] {
  font-size: 14px !important; width: 14px !important; height: 14px !important;
  max-width: 14px !important; max-height: 14px !important;
}
ion-icon[class~="h-4"], ion-icon[class~="w-4"] {
  font-size: 16px !important; width: 16px !important; height: 16px !important;
  max-width: 16px !important; max-height: 16px !important;
}
ion-icon[class~="h-5"], ion-icon[class~="w-5"] {
  font-size: 20px !important; width: 20px !important; height: 20px !important;
  max-width: 20px !important; max-height: 20px !important;
}
ion-icon[class~="h-6"], ion-icon[class~="w-6"] {
  font-size: 24px !important; width: 24px !important; height: 24px !important;
  max-width: 24px !important; max-height: 24px !important;
}
ion-icon[class~="h-12"], ion-icon[class~="w-12"] {
  font-size: 48px !important; width: 48px !important; height: 48px !important;
  max-width: 48px !important; max-height: 48px !important;
}
ion-icon.inline { vertical-align: -0.125em; }

ion-icon.ion-xs,
.health-icons ion-icon,
.status-pill ion-icon {
  font-size: 12px !important; width: 12px !important; height: 12px !important;
  max-width: 12px !important; max-height: 12px !important;
}
/* Перебиваем внутренний :host(.icon-small){font-size:1.125rem!important} из Ionicons */
ion-icon.icon-small,
.health-icons ion-icon.icon-small,
.status-pill ion-icon.icon-small {
  font-size: 12px !important; width: 12px !important; height: 12px !important;
  max-width: 12px !important; max-height: 12px !important;
}
ion-icon.ion-sm,
.ms-trigger ion-icon,
.problem-dl-btn ion-icon,
.problem-send-btn ion-icon,
.lbl-st-icon ion-icon,
.lbl-hist-act ion-icon,
.lbl-hist-dl ion-icon {
  font-size: 14px !important; width: 14px !important; height: 14px !important;
  max-width: 14px !important; max-height: 14px !important;
}
.ms-trigger ion-icon { opacity: 0.5; }

.status-pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; border-radius: 9999px;
  border: none; cursor: default; transition: transform 0.12s ease;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1;
}
.status-pill:hover { transform: scale(1.08); }
.status-pill ion-icon { pointer-events: none; }
.status-pill.ok { background: rgba(34,197,94,.14); color: #16a34a; }
.status-pill.bad { background: rgba(234,179,8,.14); color: #ca8a04; }
.status-pill.seo-pill { font-size: 0.5625rem; font-weight: 700; letter-spacing: 0.02em; min-width: 1.75rem; justify-content: center; }
.dark .status-pill.ok { color: #4ade80; background: rgba(74,222,128,.12); }
.dark .status-pill.bad { color: #facc15; background: rgba(250,204,21,.12); }
.health-icons { display: flex; align-items: center; gap: 0.25rem; flex-wrap: nowrap; }

.loc-row { display: flex; flex-wrap: wrap; gap: 0.2rem; margin-top: 0.35rem; }
.loc-pct-good,
.loc-pct-warn,
.loc-pct-bad { font-weight: 700; }
.loc-pct-good { color: #15803d; }
.loc-pct-warn { color: #ca8a04; }
.loc-pct-bad { color: #dc2626; }
.dark .loc-pct-good { color: #4ade80; }
.dark .loc-pct-warn { color: #facc15; }
.dark .loc-pct-bad { color: #f87171; }
.skew-warn { color: #c2410c; }
.dark .skew-warn { color: #fb923c; }
.wb-stat-box.loc-stat-good { border-color: rgba(34, 197, 94, 0.28); background: rgba(34, 197, 94, 0.08); }
.wb-stat-box.loc-stat-good .wb-stat-val { color: #16a34a; }
.wb-stat-box.loc-stat-warn { border-color: rgba(234, 179, 8, 0.28); background: rgba(234, 179, 8, 0.08); }
.wb-stat-box.loc-stat-warn .wb-stat-val { color: #ca8a04; }
.wb-stat-box.loc-stat-bad { border-color: rgba(239, 68, 68, 0.28); background: rgba(239, 68, 68, 0.08); }
.wb-stat-box.loc-stat-bad .wb-stat-val { color: #dc2626; }
.dark .wb-stat-box.loc-stat-good .wb-stat-val { color: #4ade80; }
.dark .wb-stat-box.loc-stat-warn .wb-stat-val { color: #facc15; }
.dark .wb-stat-box.loc-stat-bad .wb-stat-val { color: #f87171; }

/* Compact stats bar */
.wb-stats-bar {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.wb-stat-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.375rem;
  width: 100%;
}
.wb-stat-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 0.35rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.35);
}
@media (max-width: 900px) {
  .wb-stat-grid { flex-wrap: wrap; }
  .wb-stat-box { flex: 1 1 calc(33.333% - 0.375rem); min-width: calc(33.333% - 0.375rem); }
}
@media (max-width: 520px) {
  .wb-stat-box { flex: 1 1 calc(50% - 0.375rem); min-width: calc(50% - 0.375rem); }
}
.wb-stat-label {
  font-size: 0.625rem;
  line-height: 1.2;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}
.wb-stat-val {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wb-stat-box.cab-ip { border-color: rgba(37,99,235,.25); background: rgba(37,99,235,.06); }
.wb-stat-box.cab-ooo { border-color: rgba(147,51,234,.25); background: rgba(147,51,234,.06); }
.wb-stat-box.cab-ip .wb-stat-val { color: #2563eb; }
.wb-stat-box.cab-ooo .wb-stat-val { color: #9333ea; }
.dark .wb-stat-box.cab-ip .wb-stat-val { color: #60a5fa; }
.dark .wb-stat-box.cab-ooo .wb-stat-val { color: #c084fc; }
.wb-stat-box.chip-wb { border-color: rgba(203,17,171,.28); background: rgba(203,17,171,.08); }
.wb-stat-box.chip-wb .wb-stat-val { color: #cb11ab; }
.dark .wb-stat-box.chip-wb .wb-stat-val { color: #f472b6; }
.wb-stat-box.chip-ok { border-color: rgba(34,197,94,.28); background: rgba(34,197,94,.08); }
.wb-stat-box.chip-ok .wb-stat-val { color: #16a34a; }
.dark .wb-stat-box.chip-ok .wb-stat-val { color: #4ade80; }
.wb-stat-box.sup-stat-planned { border-color: rgba(59,130,246,.28); background: rgba(59,130,246,.08); }
.wb-stat-box.sup-stat-planned .wb-stat-val { color: #2563eb; }
.dark .wb-stat-box.sup-stat-planned .wb-stat-val { color: #60a5fa; }
.wb-stat-box.sup-stat-ship { border-color: rgba(34,197,94,.28); background: rgba(34,197,94,.08); }
.wb-stat-box.sup-stat-ship .wb-stat-val { color: #16a34a; }
.dark .wb-stat-box.sup-stat-ship .wb-stat-val { color: #4ade80; }
.wb-stat-box.sup-stat-accept { border-color: rgba(234,179,8,.28); background: rgba(234,179,8,.08); }
.wb-stat-box.sup-stat-accept .wb-stat-val { color: #ca8a04; }
.dark .wb-stat-box.sup-stat-accept .wb-stat-val { color: #facc15; }
.wb-stat-box.sup-stat-gate { border-color: rgba(168,85,247,.28); background: rgba(168,85,247,.08); }
.wb-stat-box.sup-stat-gate .wb-stat-val { color: #9333ea; }
.dark .wb-stat-box.sup-stat-gate .wb-stat-val { color: #c084fc; }
.wb-stat-box-btn {
  cursor: pointer;
  text-align: left;
  background: hsl(var(--background));
  font: inherit;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.wb-stat-box-btn:hover { background: hsl(var(--accent)); }
.wb-stat-box-btn.active {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.15);
  background: hsl(var(--primary) / 0.06);
}
.wb-stat-box-btn.chip-warn .wb-stat-val { color: #ca8a04; }
.wb-stat-box-btn.chip-ok .wb-stat-val { color: #16a34a; }
.dark .wb-stat-box-btn.chip-warn .wb-stat-val { color: #facc15; }
.dark .wb-stat-box-btn.chip-ok .wb-stat-val { color: #4ade80; }
.wb-stat-grid-problems { flex-wrap: wrap; }
.wb-stat-problem-item {
  display: flex; flex: 1 1 0; min-width: 7.5rem; gap: 0.2rem; align-items: stretch;
}
.wb-stat-problem-item .problem-chip { flex: 1; min-width: 0; }
.problem-dl-btn {
  flex-shrink: 0; width: 1.85rem; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid hsl(var(--border)); border-radius: 0.375rem;
  background: hsl(var(--background)); cursor: pointer; color: hsl(var(--muted-foreground));
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.problem-dl-btn:hover { background: hsl(var(--accent)); color: hsl(var(--foreground)); border-color: hsl(var(--primary) / 0.35); }
.problem-send-btn {
  flex-shrink: 0; width: 1.85rem; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid hsl(var(--border)); border-radius: 0.375rem;
  background: hsl(var(--background)); cursor: pointer; color: hsl(var(--muted-foreground));
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.problem-send-btn:hover { background: rgba(37,99,235,.08); color: #2563eb; border-color: rgba(37,99,235,.35); }
.problem-send-btn:disabled { opacity: 0.5; cursor: wait; }
.dark .problem-send-btn:hover { color: #60a5fa; background: rgba(96,165,250,.1); }
.wb-stat-section-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
  margin-bottom: -0.125rem;
}
.stk-stats-split {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: stretch;
  margin-top: 0.125rem;
}
.stk-stats-main { width: 100%; }
.stk-stats-col-half {
  flex: 1 1 calc(50% - 0.375rem);
  min-width: min(100%, 16rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stk-stats-col-dos {
  padding-left: 0.75rem;
  border-left: 1px solid hsl(var(--border));
}
.stk-dos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.stk-dos-head .wb-stat-section-label { margin-bottom: 0; flex: 1; min-width: 0; }
.stk-dos-detail-btn {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  cursor: pointer;
  white-space: nowrap;
}
.stk-dos-detail-btn:hover:not(:disabled) { background: hsl(var(--accent)); }
.stk-dos-detail-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.stk-dos-grid .wb-stat-box { min-width: 0; }
@media (max-width: 720px) {
  .stk-stats-col-half { flex-basis: 100%; }
  .stk-stats-col-dos {
    border-left: none;
    border-top: 1px solid hsl(var(--border));
    padding-left: 0;
    padding-top: 0.625rem;
  }
}
.wb-stat-box.dos-stat-under { border-color: rgba(239, 68, 68, 0.28); background: rgba(239, 68, 68, 0.08); }
.wb-stat-box.dos-stat-under .wb-stat-val { color: #dc2626; }
.wb-stat-box.dos-stat-over { border-color: rgba(37, 99, 235, 0.28); background: rgba(37, 99, 235, 0.08); }
.wb-stat-box.dos-stat-over .wb-stat-val { color: #2563eb; }
.wb-stat-box.dos-stat-avg { border-color: rgba(234, 179, 8, 0.28); background: rgba(234, 179, 8, 0.08); }
.wb-stat-box.dos-stat-avg .wb-stat-val { color: #ca8a04; }
.wb-stat-box.dos-stat-warn { border-color: rgba(234, 179, 8, 0.22); background: rgba(234, 179, 8, 0.06); }
.wb-stat-box.dos-stat-warn .wb-stat-val { color: #ca8a04; }
.dark .wb-stat-box.dos-stat-under .wb-stat-val { color: #f87171; }
.dark .wb-stat-box.dos-stat-over .wb-stat-val { color: #60a5fa; }
.dark .wb-stat-box.dos-stat-avg .wb-stat-val { color: #facc15; }
.dark .wb-stat-box.dos-stat-warn .wb-stat-val { color: #facc15; }
#stk-dos-summary.wb-stat-grid { grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); }

#stock-table-wrap.loading,
#wb-table-wrap.loading { opacity: 0.55; pointer-events: none; transition: opacity 0.15s; }
#stock-table-wrap,
#wb-table-wrap { transition: opacity 0.15s; min-height: 12rem; }

tr.row-has-issue { background: rgba(234,179,8,.04); }
.dark tr.row-has-issue { background: rgba(234,179,8,.06); }

/* Stock range filter — inline */
.stock-range-filter {
  display: inline-flex; align-items: center; gap: 0.35rem;
  height: 2.25rem; padding: 0 0.5rem; border-radius: 0.375rem;
  border: 1px solid hsl(var(--input)); background: hsl(var(--background));
  white-space: nowrap;
}
.stock-range-filter.active { border-color: hsl(var(--primary)); box-shadow: 0 0 0 1px hsl(var(--primary) / 0.15); }
.stock-range-label { font-size: 0.75rem; color: hsl(var(--muted-foreground)); white-space: nowrap; flex-shrink: 0; }
.stock-range-num {
  width: 3rem; flex: 0 0 3rem; height: 1.5rem; padding: 0 0.2rem;
  border-radius: 0.25rem; border: 1px solid hsl(var(--input));
  background: hsl(var(--background)); font-size: 0.75rem; font-weight: 600;
  text-align: center; font-variant-numeric: tabular-nums;
}
.stock-range-num:focus { outline: none; border-color: hsl(var(--primary)); box-shadow: 0 0 0 1px hsl(var(--primary) / 0.2); }
.stock-range-num::-webkit-outer-spin-button,
.stock-range-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stock-range-num { -moz-appearance: textfield; appearance: textfield; }
.stock-range-sep { font-size: 0.6875rem; color: hsl(var(--muted-foreground)); flex-shrink: 0; line-height: 1; }

/* Sub-tabs (Поставки) */
.subtabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid hsl(var(--border));
}
.subtab-btn {
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.subtab-btn:hover { color: hsl(var(--foreground)); }
.subtab-btn.active {
  color: hsl(var(--primary));
  border-bottom-color: hsl(var(--primary));
}

/* Поставки — вкладки с иконками */
.sup-subtabs {
  gap: 0.375rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid hsl(var(--border));
  flex-wrap: wrap;
}
.sup-subtab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  margin-bottom: 0;
  border-bottom-width: 1px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.sup-subtab:hover {
  background: hsl(var(--accent) / 0.5);
  color: hsl(var(--foreground));
}
.sup-subtab.active {
  border-bottom-width: 1px;
  box-shadow: 0 1px 3px hsl(var(--foreground) / 0.06);
}
.sup-subtab-wb.active { border-color: rgba(203,17,171,.35); background: rgba(203,17,171,.08); color: #cb11ab; }
.sup-subtab-lbl.active { border-color: rgba(59,130,246,.35); background: rgba(59,130,246,.08); color: #2563eb; }
.sup-subtab-sh.active { border-color: rgba(234,179,8,.35); background: rgba(234,179,8,.08); color: #ca8a04; }
.sup-subtab-owh.active { border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.08); color: #059669; }
.sup-subtab-bc.active { border-color: rgba(147,51,234,.35); background: rgba(147,51,234,.08); color: #9333ea; }
.dark .sup-subtab-wb.active { color: #f472b6; }
.dark .sup-subtab-owh.active { color: #34d399; }
.dark .sup-subtab-lbl.active { color: #60a5fa; }
.dark .sup-subtab-sh.active { color: #facc15; }
.dark .sup-subtab-bc.active { color: #c084fc; }

/* Отгрузки свой склад (макет) */
.owh-mock-banner code { font-family: ui-monospace, monospace; }
.owh-table tbody tr.owh-row:hover { background: hsl(var(--muted) / 0.35); }
.owh-status-badge {
  display: inline-flex; align-items: center; border-radius: 9999px;
  border: 1px solid hsl(var(--border)); padding: 0.125rem 0.5rem;
  font-size: 0.625rem; font-weight: 600; white-space: nowrap;
}
.owh-st-draft { background: hsl(var(--muted) / 0.5); color: hsl(var(--muted-foreground)); }
.owh-st-cluster { background: rgba(59,130,246,.12); color: #2563eb; border-color: rgba(59,130,246,.25); }
.owh-st-supplies { background: rgba(203,17,171,.1); color: #cb11ab; border-color: rgba(203,17,171,.25); }
.owh-st-ready { background: rgba(16,185,129,.12); color: #059669; border-color: rgba(16,185,129,.25); }
.owh-st-shipped { background: hsl(var(--muted) / 0.35); color: hsl(var(--foreground) / 0.7); }
.dark .owh-st-cluster { color: #60a5fa; }
.dark .owh-st-supplies { color: #f472b6; }
.dark .owh-st-ready { color: #34d399; }
.owh-detail-card { max-height: min(92vh, 900px); }
.owh-detail-card .sup-detail-modal-body { max-height: calc(92vh - 8rem); overflow-y: auto; }
.owh-steps { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.owh-step {
  display: flex; align-items: center; gap: 0.375rem;
  border: 1px solid hsl(var(--border)); border-radius: 0.375rem;
  padding: 0.375rem 0.625rem; font-size: 0.6875rem; color: hsl(var(--muted-foreground));
}
.owh-step.active { border-color: hsl(var(--primary) / 0.4); background: hsl(var(--primary) / 0.06); color: hsl(var(--foreground)); }
.owh-step.done .owh-step-num { background: rgba(16,185,129,.15); color: #059669; }
.owh-step-num {
  display: inline-flex; width: 1.25rem; height: 1.25rem; align-items: center; justify-content: center;
  border-radius: 9999px; background: hsl(var(--muted)); font-size: 0.625rem; font-weight: 700;
}
.owh-cluster-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.5rem;
}
.owh-cluster-card {
  border: 1px solid hsl(var(--border)); border-radius: 0.5rem;
  padding: 0.625rem; background: hsl(var(--muted) / 0.15);
}
.owh-cluster-code {
  font-family: ui-monospace, monospace; font-size: 0.6875rem; font-weight: 700;
  padding: 0.125rem 0.375rem; border-radius: 0.25rem;
  background: rgba(59,130,246,.12); color: #2563eb;
}
.owh-file-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.25rem; height: 1.125rem; margin: 0 1px;
  border-radius: 0.25rem; border: 1px solid hsl(var(--border));
  font-size: 0.5625rem; font-weight: 700; background: hsl(var(--background));
}
.owh-supply-input[readonly] { opacity: 0.85; cursor: default; }
.owh-match-ok { background: rgba(16,185,129,.12); color: #059669; border-color: rgba(16,185,129,.25); }
.owh-match-part { background: rgba(245,158,11,.12); color: #b45309; border-color: rgba(245,158,11,.3); }
.owh-match-none { background: rgba(239,68,68,.1); color: #dc2626; border-color: rgba(239,68,68,.3); }
.dark .owh-match-ok { color: #34d399; }
.dark .owh-match-part { color: #fbbf24; }
.dark .owh-match-none { color: #f87171; }
.owh-alloc-pill {
  display: inline-flex; align-items: center; white-space: nowrap;
  border-radius: 0.25rem; border: 1px solid hsl(var(--border));
  padding: 0 0.3125rem; margin: 1px 0;
  font-family: ui-monospace, monospace; font-size: 0.625rem;
  background: hsl(var(--muted) / 0.4);
}
.owh-lines-scroll { max-height: 16rem; }
.owh-lines-scroll thead th,
.owh-lines-modal-scroll thead th {
  position: sticky; top: 0; z-index: 1;
  background: hsl(var(--muted));
}
.owh-lines-card { max-height: min(92vh, 900px); }
.owh-cluster-settings-card { max-height: min(92vh, 720px); }
.owh-cluster-settings-card .sup-detail-modal-body { overflow-y: auto; }
.owh-lines-modal-scroll { max-height: calc(92vh - 6rem); overflow: auto; }
.sup-subtab-icon { font-size: 1.125rem; flex-shrink: 0; opacity: 0.85; }
.sup-subtab-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.sup-subtab-title { font-size: 0.8125rem; font-weight: 600; }
.sup-subtab-hint { font-size: 0.625rem; font-weight: 400; opacity: 0.75; }

/* Отгрузки — бейджи кабинетов */
.sh-cab-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.4rem;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 0.25rem;
  white-space: nowrap;
}
.sh-cab-ip { background: rgba(37,99,235,.14); color: #2563eb; }
.sh-cab-ooo { background: rgba(147,51,234,.14); color: #9333ea; }
.sh-cab-ozon { background: rgba(0,91,255,.14); color: #005bff; }
.dark .sh-cab-ip { color: #60a5fa; }
.dark .sh-cab-ooo { color: #c084fc; }
.dark .sh-cab-ozon { color: #60a5fa; }

/* Supply status pills */
.sh-history-table { font-size: 0.6875rem; line-height: 1.2; }
.sh-history-table thead th { height: 1.75rem; padding: 0 0.25rem; font-size: 0.625rem; }
.sh-history-table tbody td { padding: 0.15rem 0.25rem; vertical-align: middle; }
.sh-history-table .sh-td-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sh-history-table .sh-td-origin { max-width: 4.5rem; }
.sh-history-table .sh-td-wh { max-width: 7rem; }
.sh-history-table .sh-td-supply { font-family: ui-monospace, monospace; font-size: 0.625rem; }
.sh-history-table .sh-td-driver { max-width: 4rem; font-size: 0.625rem; color: hsl(var(--muted-foreground)); }
.sh-history-table tbody tr.sh-row:nth-child(even) { background: hsl(var(--muted) / 0.25); }
.sh-history-table tbody tr.sh-row:hover { background: hsl(var(--accent) / 0.65); }

/* Settings page */
.settings-layout { display: flex; flex-direction: column; min-height: 28rem; }
@media (min-width: 768px) { .settings-layout { flex-direction: row; } }
.settings-nav { display: flex; flex-shrink: 0; }
@media (min-width: 768px) { .settings-nav { width: 13rem; } }
.settings-nav-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem; border-radius: 0.375rem;
  font-size: 0.8125rem; font-weight: 500; color: hsl(var(--muted-foreground));
  border: 1px solid transparent; background: transparent;
  white-space: nowrap; transition: background 0.12s, color 0.12s, border-color 0.12s;
  text-decoration: none;
}
.settings-nav-btn ion-icon:first-child { font-size: 1rem; flex-shrink: 0; }
.settings-nav-btn:hover { background: hsl(var(--accent)); color: hsl(var(--foreground)); }
.settings-nav-btn.active {
  background: hsl(var(--primary) / 0.08); color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.25);
}
.settings-nav-link .settings-nav-ext { margin-left: auto; font-size: 0.75rem; opacity: 0.5; }
.settings-ref-table tbody tr:hover { background: hsl(var(--muted) / 0.35); }

/* Supply status pills — moved below sh-history-table */
.sup-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 9999px;
}
.sup-status-planned { background: rgba(59,130,246,.14); color: #2563eb; }
.sup-status-ship { background: rgba(34,197,94,.14); color: #16a34a; }
.sup-status-accept { background: rgba(234,179,8,.14); color: #ca8a04; }
.sup-status-gate { background: rgba(168,85,247,.14); color: #9333ea; }
.sup-status-default { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.dark .sup-status-planned { color: #60a5fa; }
.dark .sup-status-ship { color: #4ade80; }
.dark .sup-status-accept { color: #facc15; }
.dark .sup-status-gate { color: #c084fc; }
.sup-status-doprinato { background: rgba(236,72,153,.14); color: #db2777; }
.dark .sup-status-doprinato { color: #f472b6; }
.sh-dop-badge {
  display: inline-flex; align-items: center; padding: 0 0.25rem;
  font-size: 0.5625rem; font-weight: 700; border-radius: 0.2rem;
  background: rgba(236,72,153,.16); color: #db2777; vertical-align: middle;
}
.dark .sh-dop-badge { color: #f472b6; }

.sup-hist-ok {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.35rem; height: 1.35rem; border-radius: 9999px;
  background: rgba(34,197,94,.15); color: #16a34a; font-size: 0.75rem; font-weight: 700;
}
.dark .sup-hist-ok { color: #4ade80; }
.sup-add-hist-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.35rem; height: 1.35rem; border-radius: 0.25rem;
  border: 1px dashed hsl(var(--border)); background: hsl(var(--background));
  color: hsl(var(--muted-foreground)); font-size: 0.875rem; font-weight: 600; line-height: 1;
  cursor: pointer; transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.sup-add-hist-btn:hover:not(:disabled) {
  background: hsl(var(--primary) / 0.08); color: hsl(var(--primary)); border-color: hsl(var(--primary) / 0.4);
}
.sup-add-hist-btn:disabled { opacity: 0.5; cursor: wait; }
.wb-stat-box.sup-stat-dop { border-color: rgba(236,72,153,.28); background: rgba(236,72,153,.08); }
.wb-stat-box.sup-stat-dop .wb-stat-val { color: #db2777; }
.dark .wb-stat-box.sup-stat-dop .wb-stat-val { color: #f472b6; }

.sup-qty-mismatch { color: #c2410c; font-weight: 700; }
.sup-qty-delta { font-size: 0.625rem; font-weight: 600; margin-left: 0.25rem; opacity: 0.95; }
.dark .sup-qty-mismatch { color: #fb923c; }
tr.sup-row-qty-diff > td { background: rgba(251, 146, 60, 0.1) !important; }
.dark tr.sup-row-qty-diff > td { background: rgba(251, 146, 60, 0.14) !important; }
.sup-qty-metrics { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; margin-top: 0.35rem; }
.sup-qty-metric { font-size: 0.6875rem; white-space: nowrap; }
.sup-qty-metric strong { font-variant-numeric: tabular-nums; }
.sup-qty-metric-warn strong { color: #c2410c; }
.dark .sup-qty-metric-warn strong { color: #fb923c; }
.sup-detail-panel {
  min-width: 52rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--muted) / 0.12);
}
/* Popup деталей поставки */
.sup-detail-modal {
  align-items: center;
  justify-content: center;
}
.sup-detail-modal.flex { display: flex; }
.sup-detail-modal-backdrop {
  position: absolute;
  inset: 0;
  background: hsl(var(--background) / 0.82);
  backdrop-filter: blur(4px);
}
.sup-detail-modal-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(64rem, 100%);
  max-height: min(92vh, 52rem);
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.28);
  overflow: hidden;
}
.sup-detail-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.35);
  flex-shrink: 0;
}
.sup-detail-modal-body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.sup-detail-modal-body-padded {
  padding: 1rem 1.25rem 1.25rem;
}
.sup-drawer-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.625rem 1.25rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(var(--border) / 0.55);
  font-size: 0.8125rem;
}
.sup-drawer-meta-label {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.15rem;
}
.sup-drawer-meta-item strong { font-weight: 600; line-height: 1.3; }
.sup-drawer-qty-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.375rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(var(--border) / 0.55);
  background: hsl(var(--muted) / 0.15);
}
@media (max-width: 900px) {
  .sup-drawer-qty-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .sup-drawer-qty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sup-drawer-qty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.35rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  text-align: center;
  min-height: 3.25rem;
}
.sup-drawer-qty-warn {
  border-color: rgba(251, 146, 60, 0.45);
  background: rgba(251, 146, 60, 0.08);
}
.sup-drawer-qty-label {
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.2;
  margin-bottom: 0.2rem;
}
.sup-drawer-qty-val {
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.sup-drawer-qty-warn .sup-drawer-qty-val { color: #c2410c; }
.dark .sup-drawer-qty-warn .sup-drawer-qty-val { color: #fb923c; }
.sup-drawer-goods-head {
  padding: 0.5rem 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted) / 0.25);
  border-bottom: 1px solid hsl(var(--border) / 0.55);
}
.sup-drawer-goods-wrap {
  max-height: min(28rem, 50vh);
  overflow: auto;
  border-top: 1px solid hsl(var(--border) / 0.4);
}
.sup-goods-warn-note { color: #c2410c; font-weight: 600; }
.dark .sup-goods-warn-note { color: #fb923c; }
.sup-goods-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: hsl(var(--muted) / 0.94);
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 0 hsl(var(--border) / 0.65);
  padding: 0.5rem 0.625rem;
}
.sup-goods-table tbody tr.sup-goods-row-alt { background: hsl(var(--muted) / 0.16); }
.sup-goods-table tbody tr.sup-row-cab-bad { background: hsl(38 92% 50% / 0.08); }
.dark .sup-goods-table tbody tr.sup-row-cab-bad { background: hsl(38 92% 50% / 0.12); }
.sup-goods-table tbody tr.sup-row-qty-diff { background: hsl(var(--destructive) / 0.06); }
.sup-goods-table tbody tr.sup-row-qty-diff.sup-goods-row-alt { background: hsl(var(--destructive) / 0.09); }
.sup-goods-title { font-size: 0.75rem; font-weight: 600; line-height: 1.25; max-width: 11rem; }
.sup-goods-vendor { font-size: 0.6875rem; color: hsl(var(--muted-foreground)); margin-top: 0.125rem; max-width: 11rem; }
.sup-cab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  height: 1.375rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.sup-cab-ok { color: #15803d; background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.35); }
.dark .sup-cab-ok { color: #4ade80; }
.sup-cab-bad { color: #b45309; background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.4); }
.dark .sup-cab-bad { color: #fbbf24; }
.sup-cab-unknown { color: hsl(var(--muted-foreground)); background: hsl(var(--muted) / 0.5); border-color: hsl(var(--border)); }
tr.sup-row-selected { background: hsl(var(--primary) / 0.07) !important; }
tr.sup-row-selected > td { box-shadow: inset 3px 0 0 hsl(var(--primary)); }
.sup-detail-meta { padding: 0.625rem 0.75rem; border-bottom: 1px solid hsl(var(--border) / 0.55); }
.sup-detail-meta-title {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.375rem;
}
.sup-detail-meta-line { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
.sup-goods-scroll { overflow-x: auto; }
.sup-goods-table {
  width: 100%;
  min-width: 58rem;
  table-layout: fixed;
  border-collapse: collapse;
}
.sup-goods-table th,
.sup-goods-table td {
  padding: 0.5rem 0.625rem;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.sup-goods-table thead tr { background: hsl(var(--muted) / 0.45); }
.sup-goods-table .col-photo { width: 3.25rem; min-width: 3.25rem; padding-left: 0.75rem; padding-right: 0.25rem; }
.sup-goods-table .col-product { width: 11rem; min-width: 9rem; white-space: normal; }
.sup-goods-table .col-barcode { width: 7.5rem; min-width: 7.5rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.6875rem; }
.sup-goods-table .col-nmid { width: 6rem; min-width: 6rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.6875rem; }
.sup-goods-table .col-size { width: 5rem; min-width: 5rem; font-size: 0.75rem; }
.sup-goods-table .col-qty { width: 4.25rem; min-width: 4.25rem; text-align: right; font-size: 0.75rem; white-space: nowrap; }
.sup-goods-table .col-cab { width: 2.75rem; min-width: 2.75rem; text-align: center; }
.sup-goods-table .col-kiz { width: 2.25rem; min-width: 2.25rem; text-align: center; }

/* Упаковки WB — генерация ШК */
.lbl-tab-wrap { background: linear-gradient(180deg, hsl(var(--muted) / 0.22) 0%, hsl(var(--background)) 12rem); }
.lbl-panel {
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  overflow: hidden;
  background: hsl(var(--card));
}
.lbl-panel-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid hsl(var(--border) / 0.7);
  font-size: 0.8125rem;
  font-weight: 600;
}
.lbl-panel-head i { width: 1rem; height: 1rem; flex-shrink: 0; }
.lbl-panel-body { padding: 1rem 1.25rem; }
.lbl-panel-generate .lbl-panel-head {
  background: rgba(203, 17, 171, 0.1);
  border-bottom-color: rgba(203, 17, 171, 0.22);
  color: #9d174d;
}
.dark .lbl-panel-generate .lbl-panel-head { color: #f472b6; background: rgba(203, 17, 171, 0.14); }
.lbl-panel-suppliers .lbl-panel-head {
  background: rgba(37, 99, 235, 0.1);
  border-bottom-color: rgba(37, 99, 235, 0.22);
  color: #1d4ed8;
}
.dark .lbl-panel-suppliers .lbl-panel-head { color: #60a5fa; background: rgba(37, 99, 235, 0.14); }
.lbl-panel-history .lbl-panel-head {
  background: rgba(168, 85, 247, 0.1);
  border-bottom-color: rgba(168, 85, 247, 0.22);
  color: #7e22ce;
}
.dark .lbl-panel-history .lbl-panel-head { color: #c084fc; background: rgba(168, 85, 247, 0.14); }
.lbl-panel-incoming .lbl-panel-head {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}
.dark .lbl-panel-incoming .lbl-panel-head { color: #34d399; background: rgba(16, 185, 129, 0.14); }
.lbl-incoming-summary { border-color: rgba(16, 185, 129, 0.35); background: rgba(16, 185, 129, 0.06); }
.lbl-match-ok { color: #16a34a; font-weight: 700; }
.lbl-match-warn { color: #d97706; font-weight: 700; }
.lbl-wb-ok { color: #16a34a; font-weight: 700; }
.lbl-wb-warn { color: #d97706; font-weight: 700; }
.lbl-wb-no { color: #dc2626; font-weight: 700; }
.nom-thumb-sm {
  width: 2.5rem; height: 2.5rem; border-radius: 0.375rem;
}
.lbl-row-novinka { background: hsl(270 60% 98% / 0.5); }
.dark .lbl-row-novinka { background: hsl(270 30% 12% / 0.35); }
.lbl-novinka-icon {
  display: inline-flex; align-items: center; justify-content: center;
  color: #7c3aed; vertical-align: middle;
}
.stk-stats-tab {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  color: hsl(var(--muted-foreground));
  background: transparent;
  cursor: pointer;
}
.stk-stats-tab:hover { background: hsl(var(--accent)); color: hsl(var(--foreground)); }
.stk-stats-tab.active {
  background: hsl(var(--background));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
#stk-stats-summary.wb-stat-grid { grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); }
.lbl-hist-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.25rem; }
.lbl-hist-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
}
.lbl-hist-act:hover { background: hsl(var(--accent)); }
.lbl-hist-act:disabled { opacity: 0.4; pointer-events: none; }
.lbl-hist-act-del { border-color: hsl(var(--destructive) / 0.35); color: hsl(var(--destructive)); }
.lbl-hist-act-del:hover { background: hsl(var(--destructive) / 0.08); }
.lbl-task-selected { background: rgba(139, 92, 246, 0.08); }
.dark .lbl-task-selected { background: rgba(139, 92, 246, 0.15); }
.lbl-stat-incoming .wb-stat-val { color: #059669; }
.lbl-stat-boxes .wb-stat-box.lbl-stat-batches { border-color: rgba(203, 17, 171, 0.28); background: rgba(203, 17, 171, 0.08); }
.lbl-stat-boxes .wb-stat-box.lbl-stat-batches .wb-stat-val { color: #cb11ab; }
.lbl-stat-boxes .wb-stat-box.lbl-stat-labels { border-color: rgba(34, 197, 94, 0.28); background: rgba(34, 197, 94, 0.08); }
.lbl-stat-boxes .wb-stat-box.lbl-stat-labels .wb-stat-val { color: #16a34a; }
.lbl-stat-boxes .wb-stat-box.lbl-stat-suppliers { border-color: rgba(37, 99, 235, 0.28); background: rgba(37, 99, 235, 0.08); }
.lbl-stat-boxes .wb-stat-box.lbl-stat-suppliers .wb-stat-val { color: #2563eb; }
.dark .lbl-stat-boxes .wb-stat-box.lbl-stat-batches .wb-stat-val { color: #f472b6; }
.dark .lbl-stat-boxes .wb-stat-box.lbl-stat-labels .wb-stat-val { color: #4ade80; }
.dark .lbl-stat-boxes .wb-stat-box.lbl-stat-suppliers .wb-stat-val { color: #60a5fa; }
.lbl-counter-box {
  border-color: rgba(59, 130, 246, 0.35) !important;
  background: rgba(59, 130, 246, 0.08) !important;
  color: hsl(var(--foreground)) !important;
}
.lbl-counter-box strong { color: #2563eb; }
.dark .lbl-counter-box strong { color: #60a5fa; }
.lbl-add-form {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.06);
}
.lbl-suppliers-table thead tr { background: rgba(37, 99, 235, 0.08); }
.lbl-code-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}
.dark .lbl-code-badge { color: #93c5fd; background: rgba(37, 99, 235, 0.2); }
.lbl-history-table thead tr { background: rgba(168, 85, 247, 0.08); }
.lbl-history-table tbody tr:hover { background: rgba(168, 85, 247, 0.05); }
.lbl-dir-tag {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  background: rgba(203, 17, 171, 0.12);
  color: #9d174d;
  margin-right: 0.35rem;
}
.dark .lbl-dir-tag { color: #f9a8d4; background: rgba(203, 17, 171, 0.2); }
.lbl-cluster-method-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}
.dark .lbl-cluster-method-tag { color: #93c5fd; background: rgba(59, 130, 246, 0.2); }

.info-tip-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  color: hsl(var(--muted-foreground));
  background: transparent;
  border: none;
  cursor: help;
  flex-shrink: 0;
}
.info-tip-btn:hover,
.info-tip-btn:focus-visible {
  color: hsl(var(--foreground));
  background: hsl(var(--accent));
  outline: none;
}
.info-tip-btn::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 0.4rem);
  transform: translateX(-50%);
  z-index: 60;
  min-width: 12rem;
  max-width: min(22rem, 90vw);
  padding: 0.5rem 0.65rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  font-size: 0.6875rem;
  line-height: 1.45;
  font-weight: 400;
  text-align: left;
  white-space: pre-line;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}
.stk-info-icons .info-tip-btn::after {
  left: 0;
  transform: none;
}
.info-tip-btn:hover::after,
.info-tip-btn:focus-visible::after {
  opacity: 1;
  visibility: visible;
}
.lbl-btn-excel {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
}
.lbl-btn-excel:hover { background: rgba(34, 197, 94, 0.18); }
.dark .lbl-btn-excel { color: #4ade80; border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.12); }
.lbl-result-box {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}
.lbl-result-box .lbl-result-title { color: #15803d; font-weight: 600; }
.dark .lbl-result-box .lbl-result-title { color: #4ade80; }
.lbl-dl-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}
.lbl-dl-link:hover { background: hsl(var(--accent)); }
.lbl-dl-link.lbl-dl-pdf { border-color: rgba(203, 17, 171, 0.35); color: #9d174d; }
.lbl-dl-link.lbl-dl-xlsx { border-color: rgba(34, 197, 94, 0.35); color: #15803d; }
.dark .lbl-dl-link.lbl-dl-pdf { color: #f472b6; }
.dark .lbl-dl-link.lbl-dl-xlsx { color: #4ade80; }
.lbl-dl-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }

/* Кнопки действий — единая палитра (toolbar, таблицы, pop-up) */
.lbl-act-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  align-items: center;
}
.lbl-act-group-compact {
  flex-wrap: nowrap;
  gap: 0.2rem;
}
.lbl-act-btn-sm {
  padding: 0.15rem 0.4rem;
  min-height: 1.5rem;
  font-size: 0.6875rem;
  gap: 0.2rem;
}
.lbl-act-btn-icon {
  padding: 0;
  min-width: 1.625rem;
  width: 1.625rem;
  height: 1.625rem;
  min-height: 1.625rem;
  gap: 0;
}
.lbl-act-btn-icon ion-icon {
  width: 1rem;
  height: 1rem;
  font-size: 1rem;
}
.lbl-wb-actions-cell {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
  padding-left: 0.35rem !important;
  padding-right: 0.35rem !important;
}

.lbl-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  min-height: 1.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition: background-color 0.15s, border-color 0.15s, opacity 0.15s;
}
.lbl-act-btn:hover:not(:disabled) { text-decoration: none; filter: none; }
.lbl-act-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.lbl-act-btn.lbl-act-upload,
.lbl-act-btn.lbl-act-upload.lbl-dl-link {
  color: #1d4ed8;
  border-color: #60a5fa;
  background-color: #dbeafe;
}
.lbl-act-btn.lbl-act-upload:hover:not(:disabled) { background-color: #bfdbfe; }
.dark .lbl-act-btn.lbl-act-upload {
  color: #93c5fd;
  border-color: #3b82f6;
  background-color: rgba(30, 58, 138, 0.55);
}
.lbl-act-btn.lbl-act-xlsx,
.lbl-act-btn.lbl-act-xlsx.lbl-dl-link {
  color: #15803d;
  border-color: #4ade80;
  background-color: #dcfce7;
}
.lbl-act-btn.lbl-act-xlsx:hover:not(:disabled) { background-color: #bbf7d0; }
.dark .lbl-act-btn.lbl-act-xlsx {
  color: #86efac;
  border-color: #22c55e;
  background-color: rgba(20, 83, 45, 0.55);
}
.lbl-act-btn.lbl-act-shk,
.lbl-act-btn.lbl-act-shk.lbl-dl-link {
  color: #6d28d9;
  border-color: #a78bfa;
  background-color: #ede9fe;
}
.lbl-act-btn.lbl-act-shk:hover:not(:disabled) { background-color: #ddd6fe; }
.dark .lbl-act-btn.lbl-act-shk {
  color: #c4b5fd;
  border-color: #8b5cf6;
  background-color: rgba(76, 29, 149, 0.55);
}
.lbl-act-btn.lbl-act-verify {
  color: #c2410c;
  border-color: #fb923c;
  background-color: #ffedd5;
}
.lbl-act-btn.lbl-act-verify:hover:not(:disabled) { background-color: #fed7aa; }
.dark .lbl-act-btn.lbl-act-verify {
  color: #fdba74;
  border-color: #f97316;
  background-color: rgba(124, 45, 18, 0.55);
}
.lbl-act-btn.lbl-act-danger {
  color: #b91c1c;
  border-color: #f87171;
  background-color: #fee2e2;
}
.lbl-act-btn.lbl-act-danger:hover:not(:disabled) { background-color: #fecaca; }
.dark .lbl-act-btn.lbl-act-danger {
  color: #fca5a5;
  border-color: #ef4444;
  background-color: rgba(127, 29, 29, 0.55);
}
.lbl-act-btn.lbl-act-neutral {
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
  background-color: hsl(var(--background));
}
.lbl-act-btn.lbl-act-neutral:hover:not(:disabled) { background-color: hsl(var(--accent)); }
.lbl-act-btn.lbl-act-save {
  color: #fff;
  border-color: #16a34a;
  background-color: #16a34a;
  box-shadow: 0 1px 2px rgba(22, 163, 74, 0.35);
}
.lbl-act-btn.lbl-act-save:hover:not(:disabled) { background-color: #15803d; }
.dark .lbl-act-btn.lbl-act-save {
  border-color: #22c55e;
  background-color: #15803d;
}
.lbl-act-btn.lbl-act-pdf,
.lbl-act-btn.lbl-act-pdf.lbl-dl-link {
  color: #9d174d;
  border-color: #f472b6;
  background-color: #fce7f3;
}
.lbl-act-btn.lbl-act-pdf:hover:not(:disabled) { background-color: #fbcfe8; }
.dark .lbl-act-btn.lbl-act-pdf {
  color: #f9a8d4;
  border-color: #ec4899;
  background-color: rgba(131, 24, 67, 0.55);
}
/* lbl-dl-link не перебивает цвет act-кнопок при hover */
.lbl-act-btn.lbl-act-upload.lbl-dl-link:hover { background-color: #bfdbfe; }
.lbl-act-btn.lbl-act-xlsx.lbl-dl-link:hover { background-color: #bbf7d0; }
.lbl-act-btn.lbl-act-shk.lbl-dl-link:hover { background-color: #ddd6fe; }
.lbl-act-btn.lbl-act-pdf.lbl-dl-link:hover { background-color: #fbcfe8; }

.lbl-hist-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
}
.lbl-hist-dl:hover { background: hsl(var(--accent)); }
.lbl-hist-dl.lbl-hist-pdf { color: #9d174d; border-color: rgba(203, 17, 171, 0.25); }
.lbl-hist-dl.lbl-hist-xlsx { color: #15803d; border-color: rgba(34, 197, 94, 0.25); }
.dark .lbl-hist-dl.lbl-hist-pdf { color: #f472b6; }
.dark .lbl-hist-dl.lbl-hist-xlsx { color: #4ade80; }
.lbl-directions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  max-height: 14rem;
  overflow-y: auto;
  padding: 0.35rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.15);
}
@media (min-width: 640px) {
  .lbl-directions-grid { grid-template-columns: 1fr 1fr; }
}
.lbl-dir-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.45rem;
  border-radius: 0.3rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.75rem;
}
.lbl-dir-row:has(.lbl-dir-cb:checked) {
  border-color: rgba(203, 17, 171, 0.3);
  background: rgba(203, 17, 171, 0.06);
}
.lbl-dir-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: hsl(var(--foreground));
}
.lbl-dir-count:disabled { opacity: 0.35; }
.lbl-result-batches { max-height: 12rem; overflow-y: auto; }
.lbl-task-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.lbl-st-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--border) / 0.6);
  background: hsl(var(--muted) / 0.35);
  color: hsl(var(--muted-foreground));
}
.lbl-st-icon.lbl-st-done {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}
.lbl-st-icon.lbl-st-pending {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}
.dark .lbl-st-icon.lbl-st-done { color: #4ade80; }
.dark .lbl-st-icon.lbl-st-pending { color: #fbbf24; }
#lbl-pack-modal .sup-detail-modal-head.lbl-panel-generate {
  border-radius: 0;
  border-bottom: 1px solid hsl(var(--border));
}
.lbl-task-row { background: hsl(var(--card)); }
.lbl-task-detail td { font-size: 0.75rem; }
.lbl-btn-ym {
  border-color: rgba(255, 204, 0, 0.45);
  background: rgba(255, 204, 0, 0.12);
  color: #a16207;
}
.lbl-btn-ym:hover:not(:disabled) { background: rgba(255, 204, 0, 0.22); }
.dark .lbl-btn-ym { color: #facc15; border-color: rgba(255, 204, 0, 0.35); }
.lbl-ym-sent-badge {
  display: inline-flex;
  color: #16a34a;
  flex-shrink: 0;
}
.dark .lbl-ym-sent-badge { color: #4ade80; }
.lbl-task-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.lbl-task-tab-btn:hover { color: hsl(var(--foreground)); }
.lbl-task-tab-btn.active {
  color: hsl(var(--primary));
  border-bottom-color: hsl(var(--primary));
}
.lbl-task-detail-card {
  max-width: min(64rem, calc(100vw - 2rem));
}
.lbl-stat-tile {
  min-height: 4.25rem;
}
.lbl-wb-status-pending { color: hsl(var(--muted-foreground)); }
.lbl-wb-status-files_ready { color: #16a34a; font-weight: 600; }
.lbl-wb-warn { color: #d97706; }
.lbl-wb-bad { color: #dc2626; }
.lbl-wb-ean-link { cursor: pointer; }


/* Бренд — Кабинет */
.bc-table-wrap { max-height: calc(100vh - 18rem); overflow-y: auto; }

/* Стоки WB — шапка таблицы фиксируется при прокрутке страницы (виджеты уезжают вверх) */
.stk-table-wrap {
  overflow: visible;
  min-height: 12rem;
}
.stk-table {
  min-width: 64rem;
}
.stk-table-head .stk-table-th {
  position: sticky;
  top: var(--app-header-height, 3.5rem);
  z-index: 20;
  background: hsl(var(--background));
  box-shadow: 0 1px 0 hsl(var(--border));
}
.dark .stk-table-head .stk-table-th {
  background: hsl(var(--background));
}
#stk-table-wrap.loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s;
}
#stk-table-wrap { transition: opacity 0.15s; }

/* Стоки WB — панель действий (иконки) */
.stk-toolbar { gap: 0.375rem; }
.stk-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.12s, opacity 0.12s, transform 0.1s, box-shadow 0.12s;
  flex-shrink: 0;
}
.stk-act-btn:hover:not(:disabled) { filter: brightness(1.07); }
.stk-act-btn:active:not(:disabled) { transform: scale(0.94); }
.stk-act-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.stk-act-btn .stk-act-icon { width: 1.125rem; height: 1.125rem; font-size: 1.125rem; }
.stk-act-sync {
  background: rgba(203, 17, 171, 0.14);
  border-color: rgba(203, 17, 171, 0.32);
  color: #cb11ab;
}
.stk-act-orders {
  background: rgba(234, 179, 8, 0.14);
  border-color: rgba(234, 179, 8, 0.32);
  color: #ca8a04;
}
.stk-act-stats {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.28);
  color: #2563eb;
}
.stk-act-dos {
  background: rgba(147, 51, 234, 0.12);
  border-color: rgba(147, 51, 234, 0.28);
  color: #9333ea;
}
.stk-act-export {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
  color: #16a34a;
}
.stk-act-send {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.28);
  color: #ea580c;
}
.stk-act-catalog {
  background: rgba(203, 17, 171, 0.08);
  border-color: rgba(203, 17, 171, 0.22);
  color: #cb11ab;
  text-decoration: none;
}
.dark .stk-act-sync { color: #f472b6; background: rgba(244, 114, 182, 0.12); border-color: rgba(244, 114, 182, 0.28); }
.dark .stk-act-orders { color: #facc15; background: rgba(250, 204, 21, 0.1); border-color: rgba(250, 204, 21, 0.25); }
.dark .stk-act-stats { color: #60a5fa; background: rgba(96, 165, 250, 0.1); border-color: rgba(96, 165, 250, 0.25); }
.dark .stk-act-dos { color: #c084fc; background: rgba(192, 132, 252, 0.1); border-color: rgba(192, 132, 252, 0.25); }
.dark .stk-act-export { color: #4ade80; background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.25); }
.dark .stk-act-send { color: #fb923c; background: rgba(251, 146, 60, 0.1); border-color: rgba(251, 146, 60, 0.25); }
.dark .stk-act-catalog { color: #f472b6; background: rgba(244, 114, 182, 0.08); border-color: rgba(244, 114, 182, 0.22); }
.stk-act-back {
  background: hsl(var(--muted) / 0.45);
  border-color: hsl(var(--border));
  color: hsl(var(--muted-foreground));
}
.stk-act-back:hover { color: hsl(var(--foreground)); }
.stk-date-range {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.stk-date-input {
  height: 2.25rem;
  width: 8.1rem;
  padding: 0 0.35rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.stk-date-input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.2);
}
.stk-date-sep {
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
  user-select: none;
}
.bc-row-ip { background: rgba(59, 130, 246, 0.04); }
.bc-row-ooo { background: rgba(234, 179, 8, 0.05); }
.bc-row-rusbubon { background: rgba(244, 114, 182, 0.06); }
.dark .bc-row-ip { background: rgba(59, 130, 246, 0.08); }
.dark .bc-row-ooo { background: rgba(234, 179, 8, 0.07); }
.dark .bc-row-rusbubon { background: rgba(244, 114, 182, 0.1); }
.bc-warn-wrap { display: flex; flex-wrap: wrap; gap: 0.2rem; }
.bc-warn {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border-radius: 0.25rem;
  font-size: 0.5625rem;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid transparent;
}
.bc-warn-not_on_wb { background: rgba(107, 114, 128, 0.12); color: #6b7280; border-color: rgba(107, 114, 128, 0.25); }
.bc-warn-liquidation { background: rgba(239, 68, 68, 0.1); color: #dc2626; border-color: rgba(239, 68, 68, 0.25); }
.bc-warn-transfer { background: rgba(168, 85, 247, 0.1); color: #9333ea; border-color: rgba(168, 85, 247, 0.25); }
.bc-warn-no_new_items { background: rgba(245, 158, 11, 0.12); color: #d97706; border-color: rgba(245, 158, 11, 0.28); }
.bc-warn-cabinet_mismatch { background: rgba(245, 158, 11, 0.14); color: #b45309; border-color: rgba(245, 158, 11, 0.35); }
.bc-add-form { border-color: rgba(37, 99, 235, 0.22); background: rgba(37, 99, 235, 0.04); }
.bc-stat-total .wb-stat-val { color: #2563eb; }
.bc-stat-onwb .wb-stat-val { color: #16a34a; }
.bc-audit-table { max-height: 16rem; }
.bc-audit-table tbody { display: block; max-height: 14rem; overflow-y: auto; }
.bc-audit-table thead,
.bc-audit-table tbody tr { display: table; width: 100%; table-layout: fixed; }
.bc-audit-error { background: rgba(239, 68, 68, 0.04); }
.bc-audit-warn { background: rgba(245, 158, 11, 0.04); }
.bc-cab-card-ip { border-color: rgba(59, 130, 246, 0.35); background: rgba(59, 130, 246, 0.06); }
.bc-cab-card-ooo { border-color: rgba(168, 85, 247, 0.35); background: rgba(168, 85, 247, 0.06); }
.bc-audit-mismatch-scroll { max-height: 18rem; overflow-y: auto; }
