/* Мясник · аналитика сети — дизайн-система
   Тема: премиальная мясная лавка. Тёплая бумага, тёмный уголь, мясной красный акцент.
   Все селекторы прежние — рендер app.js не менялся. */

/* Onest — дисплейный гротеск с первоклассной кириллицей. Self-hosted (без внешних
   запросов, работает офлайн, CSP остаётся строгим). Вариативный: вес 500–800. */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f5f2ec;            /* тёплая бумага */
  --panel: #ffffff;
  --panel-soft: #f3ede4;
  --ink: #211d19;           /* тёплый почти-чёрный */
  --muted: #837b70;
  --line: #e7e0d4;
  --line-soft: #efe9df;

  --accent: #a8332a;        /* мясной красный */
  --accent-ink: #7c241d;
  --accent-soft: #f7e7e4;

  --green: #2e7d4f;
  --green-soft: #e3f2e7;
  --blue: #38618c;
  --blue-soft: #e3ecf5;
  --red: #b03a2e;
  --red-soft: #f9e6e3;
  --amber: #9a6b1a;
  --amber-soft: #f9efd9;

  --side-bg: #1d1916;       /* уголь сайдбара */
  --side-ink: #d9d2c7;
  --side-muted: #8d857a;
  --side-line: #2e2823;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(33, 25, 18, 0.05), 0 8px 24px rgba(33, 25, 18, 0.06);
  --shadow-lift: 0 2px 4px rgba(33, 25, 18, 0.07), 0 14px 34px rgba(33, 25, 18, 0.1);

  /* Body — нейтральный Inter (данные, таблицы, tabular-nums).
     Display — Bricolage Grotesque: характерный гротеск для заголовков и крупных чисел. */
  --font-body: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Onest", Inter, "Segoe UI", system-ui, -apple-system, sans-serif;

  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

/* author-стили (display на кнопках) не должны перебивать атрибут hidden */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(168, 51, 42, 0.05), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--accent-soft);
}

/* --- Каркас --- */

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  background: var(--side-bg);
  border-right: 1px solid var(--side-line);
  padding: 22px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--side-line) transparent;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
  color: #f3eee6;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #c0463b, #8e2a22);
  color: #fdf3ee;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 14px rgba(140, 42, 34, 0.45);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.brand span {
  color: var(--side-muted);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 3px;
}

.nav button {
  border: 0;
  background: transparent;
  color: var(--side-ink);
  border-radius: var(--radius-sm);
  min-height: 38px;
  text-align: left;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nav button svg,
.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  opacity: 0.85;
}

.nav button.is-active {
  color: #fff;
  background: rgba(168, 51, 42, 0.22);
  font-weight: 600;
}

.nav button.is-active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}

.nav button.is-active svg {
  opacity: 1;
  color: #e2766c;
}

.nav-group {
  margin: 14px 8px 4px;
  color: var(--side-muted);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sidebar-status {
  margin-top: auto;
  min-height: 36px;
  border: 1px solid var(--side-line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: var(--side-muted);
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.025);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(154, 107, 26, 0.2);
}

.dot.live {
  background: #46a36c;
  box-shadow: 0 0 0 3px rgba(70, 163, 108, 0.22);
}

/* --- Рабочая область --- */

.workspace {
  min-width: 0;
  padding: 26px 30px 40px;
  max-width: 1480px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 10px;
}

/* Дисплейный шрифт — заголовки, бренд и крупные KPI-числа (характер вместо Inter везде) */
h1,
h2,
h3,
.brand strong,
.metric strong {
  font-family: var(--font-display);
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  min-height: 38px;
  padding: 0 11px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 51, 42, 0.12);
}

textarea {
  width: 100%;
  min-height: 170px;
  padding: 12px;
  resize: vertical;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
}

.icon-button,
.primary-button,
.ghost-button {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 38px;
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.icon-button:hover,
.ghost-button:hover {
  border-color: #d6cebf;
  background: #fbf9f5;
}

.icon-button {
  width: 40px;
  padding: 0;
}

.primary-button {
  background: linear-gradient(160deg, #b1392e, #93291f);
  color: #fff;
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 12px rgba(147, 41, 31, 0.3);
}

.primary-button:hover {
  filter: brightness(1.06);
}

.ghost-button {
  color: var(--muted);
}

/* --- Уведомления --- */

.notice {
  border: 1px solid #ecd9b4;
  background: #fdf6e7;
  color: #6d4a18;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin-bottom: 16px;
  font-size: 13.5px;
}

.inline-notice {
  margin-bottom: 12px;
}

/* --- KPI-карточки --- */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(132px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 16px 13px;
  box-shadow: var(--shadow);
  min-height: 92px;
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(168, 51, 42, 0.25));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.metric:hover::after {
  opacity: 1;
}

.metric span {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.metric strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 9px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* --- Панели --- */

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.stack-panel {
  margin-top: 16px;
}

/* --- Таблицы --- */

.table-wrap {
  overflow-x: auto;
  margin: 0 -6px;
  padding: 0 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

/* узкие таблицы внутри двухколоночной сетки не должны распирать колонку (обрезались суммы) */
.grid-two table {
  min-width: 0;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 10px;
  vertical-align: middle;
  font-size: 13.5px;
}

td {
  font-variant-numeric: tabular-nums;
}

th {
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: transparent;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody tr {
  transition: background 0.1s ease;
}

tbody tr:hover {
  background: #faf7f1;
}

tr:last-child td {
  border-bottom: 0;
}

td small {
  color: var(--muted);
}

/* --- Статусы --- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.status.active {
  color: #1f5e3b;
  background: var(--green-soft);
}

.status.live {
  color: #2c4e72;
  background: var(--blue-soft);
}

.status.stop {
  color: #8c2c23;
  background: var(--red-soft);
}

.status.warn {
  color: #7a5410;
  background: var(--amber-soft);
}

/* --- Списки-карты (demo/system экраны) --- */

.map {
  display: grid;
  gap: 10px;
}

.map-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

.map-pin {
  width: 13px;
  height: 13px;
  border: 3px solid var(--green);
  border-radius: 50%;
}

.map-pin.warn {
  border-color: var(--amber);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* широким должен быть только поиск; даты — компактные (фикс по скриншот-проверке) */
.toolbar input[type="search"] {
  min-width: min(340px, 100%);
}

input[type="date"] {
  width: 144px;
  min-width: 0;
  padding: 0 9px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.actions select {
  max-width: 230px;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.order-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.order-card strong {
  display: block;
  font-size: 17px;
}

.order-meta {
  color: var(--muted);
  font-size: 13px;
  display: grid;
  gap: 4px;
}

.api-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 16px;
}

.api-controls {
  display: grid;
  gap: 12px;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  background: #221d18;
  color: #efe9df;
  border-radius: var(--radius-sm);
  padding: 14px;
  min-height: 260px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12.5px;
}

.empty {
  color: var(--muted);
  border: 1px dashed #d9d1c2;
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  background: #fcfaf6;
}

/* --- Адаптив --- */

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }

  .nav {
    display: flex;
  }

  .nav button.is-active::before {
    display: none;
  }

  .sidebar-status {
    margin-top: 0;
    min-width: 132px;
  }

  .topbar,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .actions {
    justify-content: space-between;
  }

  .metric-grid,
  .grid-two,
  .api-grid,
  .card-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .workspace {
    padding: 16px;
  }

  h1 {
    font-size: 20px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 42px;
  }

  .nav button {
    min-width: 122px;
  }
}

/* --- Страница входа --- */

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: 100%;
  max-width: 360px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-brand {
  margin-bottom: 6px;
  color: var(--ink);
}

.login-brand span {
  color: var(--muted);
}

.login-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.login-panel input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.login-button {
  justify-content: center;
}

.login-error {
  color: var(--red);
  font-size: 13px;
  background: var(--red-soft);
  border-radius: 8px;
  padding: 8px 10px;
}

/* --- Пресеты периода --- */

.range-presets {
  display: flex;
  gap: 6px;
  align-items: center;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  min-height: 30px;
  padding: 0 11px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.chip.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* --- CSS-бар выручки в таблице «По дням» --- */

.bar-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 110px;
}

.bar-cell .bar {
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.7;
  min-width: 2px;
  transition: width 0.2s ease;
}

/* Краткое название дня недели: приглушённый цвет */
.day-dow {
  color: var(--muted);
  font-size: 12px;
}

/* ABC-анализ: карточки-сводки и бейджи групп A/B/C */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}
.abc-badge {
  display: inline-block;
  min-width: 1.5em;
  text-align: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
}
.abc-A { background: #1f7a4d; }   /* зелёный — ядро */
.abc-B { background: #c98a2b; }   /* янтарный — середина */
.abc-C { background: #6b6560; }   /* серый — хвост */

/* ABC: 4 карточки-кнопки выбора показателя */
.abc-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}
@media (max-width: 980px) { .abc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.abc-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
}
.abc-card:hover { border-color: var(--accent); }
.abc-card.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: var(--accent-soft);
}
.abc-card h3 { margin: 0 0 8px; font-size: 14px; }
.abc-card.is-active h3 { color: var(--accent-ink); }
.abc-card { min-width: 0; }
.abc-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; }
.abc-row .g-count { flex: 1; color: var(--muted); }
.abc-row .g-pct { margin-left: auto; font-weight: 600; white-space: nowrap; }
.abc-card { overflow: hidden; }

/* --- Селектор периода (главный контрол отчётов) --- */
.period-control { position: relative; }

.period-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 11px 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.period-toggle:hover {
  border-color: #d6cebf;
  background: #fbf9f5;
}

.period-toggle.is-open {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(168, 51, 42, 0.12);
}

.period-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.period-toggle > svg:first-of-type {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.period-toggle > svg:last-of-type {
  width: 13px;
  height: 13px;
  color: var(--muted);
  margin-left: 1px;
  transition: transform 0.2s ease;
}

.period-toggle.is-open > svg:last-of-type {
  transform: rotate(180deg);
}

.period-range {
  color: var(--ink);
  letter-spacing: -0.005em;
}

.period-sub {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

/* точка-разделитель между диапазоном и названием пресета */
.period-sub::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  margin: 0 7px 2px 0;
  opacity: 0.55;
  vertical-align: middle;
}

.period-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 16px 16px;
  min-width: 320px;
  box-shadow: var(--shadow-lift);
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: period-pop-in 0.14s ease;
}

@keyframes period-pop-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.period-pop-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 2px 13px;
  border-bottom: 1px solid var(--line-soft);
}

.period-pop-range {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.period-pop-sub {
  font-size: 12px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 600;
  white-space: nowrap;
}

.period-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.period-label {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.period-pop .range-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.period-custom {
  display: flex;
  align-items: center;
  gap: 8px;
}

.period-custom input[type="date"] {
  flex: 1;
  width: auto;
}

.period-dash {
  color: var(--muted);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .period-pop { animation: none; }
  .period-toggle > svg:last-of-type { transition: none; }
}

/* Переключатель метода себестоимости (экран «Маржа») */
.cost-method-row { align-items: center; }
.cost-method-label { color: var(--muted); font-size: 12px; margin-right: 2px; }

/* Категории сигналов (экран «Подозрительные операции») */
.signal-cat { margin: 22px 0 10px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.signal-cat:first-of-type { margin-top: 6px; }
.signal-cat-count { font-size: 12px; color: var(--muted); background: var(--line); border-radius: 10px; padding: 1px 8px; font-weight: 500; }

/* Отчёт «Сезонность» */
.season-bars { display: flex; flex-direction: column; gap: 5px; margin: 8px 0 6px; }
.season-bar-row { display: grid; grid-template-columns: 64px 1fr 170px; align-items: center; gap: 10px; }
.season-bar-label { font-size: 12px; color: var(--muted); }
.season-bar { height: 16px; background: var(--line); border-radius: 4px; overflow: hidden; }
.season-bar-fill { display: block; height: 100%; background: #4a90d9; border-radius: 4px; }
.season-bar-val { font-size: 12px; text-align: right; }
.status.ok { color: #1a7f37; }
