/* ── Просадки ─────────────────────────────────────────────────────────────── */
/* Раздел переиспользует панель борда (.bd-*), своё — только сводка и таблица. */

.dip-sum {
  display: flex;
  gap: 10px;
  margin: 14px 0;
  flex-wrap: wrap;
}
.dip-sum__cell {
  flex: 1 1 180px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}
.dip-sum__cell span {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.dip-sum__cell b { font-size: 18px; font-weight: 600; }
.dip-sum__cell--down b { color: var(--red, #c0392b); }
.dip-sum__cell--up   b { color: var(--green-dark, #1e7a44); }

.dip-wrap { overflow-x: auto; }

.dip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.dip-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: left;
  white-space: nowrap;
}
.dip-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-subtle, var(--border));
}
.dip-table tbody tr:hover { background: var(--bg-hover); }
.dip-table .bd-num { text-align: right; white-space: nowrap; }

.dip-store { color: var(--text-muted); white-space: nowrap; }
.dip-muted { color: var(--text-muted); }
.dip-down  { color: var(--red, #c0392b); }
.dip-up    { color: var(--green-dark, #1e7a44); }

.dip-th { cursor: pointer; user-select: none; }
.dip-th:hover { color: var(--text); }
.dip-th--on { color: var(--text); font-weight: 600; }

/* ── Топ в килограммах ────────────────────────────────────────────────────── */
.dip-top { display: flex; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.dip-top__col {
  flex: 1 1 340px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}
.dip-top__t {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.dip-table--mini td { padding: 4px 6px; font-size: 12px; border-bottom: none; vertical-align: top; }
.dip-table--mini tr:hover { background: transparent; }
.dip-top__stores { font-size: 11px; line-height: 1.35; color: var(--text-muted); margin-top: 2px; }

/* ── Раскрытие наименования до позиций ────────────────────────────────────── */
.dip-row { cursor: pointer; }
.dip-row--on { background: var(--bg-hover); }
.dip-caret { display: inline-block; width: 12px; color: var(--text-muted); }
.dip-sub > td { padding: 0 0 10px 26px; background: var(--bg-subtle, var(--bg-hover)); }
.dip-sub:hover { background: inherit; }
.dip-table--sub { font-size: 12px; }
.dip-table--sub th { background: transparent; position: static; }
.dip-table--sub em { font-style: normal; font-size: 11px; }

.dip-top__period {
  flex-basis: 100%; font-size: 12px; color: var(--text-muted, #6b7280);
  padding: 0 0 8px;
}
.dip-table--mini thead th {
  font-size: 11px; font-weight: 600; color: #6b7280;
  border-bottom: 1px solid var(--border, #e5e7eb); padding-bottom: 4px;
}
