/* ============================================================
   ИСКБ — Стили для вкладок: таблицы, формы, бейджи
   ============================================================ */

.tab-page { display: none; }
.tab-page.is-active { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; }
.tab-page[data-tab="dashboard"].is-active { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; }
.tab-page .column--full { grid-column: 1 / -1; }
.tab-page .column--full .panel { margin-bottom: 14px; }

/* ---------- Бейджи ---------- */
.badge {
  display: inline-block;
  padding: 1px 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 3px;
  border: 1px solid currentColor;
  background: rgba(0,0,0,0.4);
  margin-left: 6px;
  text-transform: uppercase;
}
.badge--red    { color: #ff2d55; border-color: #ff2d55; box-shadow: 0 0 6px rgba(255,45,85,0.4); }
.badge--amber  { color: #ffb300; border-color: #ffb300; box-shadow: 0 0 6px rgba(255,179,0,0.4); }
.badge--green  { color: #00e676; border-color: #00e676; box-shadow: 0 0 6px rgba(0,230,118,0.4); }

/* ---------- Таблицы ---------- */
.data-table, .sources {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
}
.data-table th, .data-table td, .sources th, .sources td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(0,229,255,0.12);
}
.data-table th, .sources th {
  background: rgba(0,229,255,0.06);
  color: #00e5ff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
}
.data-table tbody tr:nth-child(odd):not(.hist-detail) { background: rgba(255,255,255,0.015); }
.data-table tbody tr.hist-row { cursor: pointer; transition: background 0.15s; }
.data-table tbody tr.hist-row:hover { background: rgba(0,229,255,0.08); }
.data-table .muted { color: #7d99b0; }
.data-table .ok { color: #00e676; }
.data-table .warn { color: #ffb300; }
.data-table .inc-actions { white-space: nowrap; }
.data-table .inc-actions .mini { margin-right: 4px; }

/* ---------- Кнопки мини ---------- */
.mini {
  font-family: 'Rajdhani', sans-serif;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.4);
  color: #cfe6f5;
  padding: 3px 9px;
  font-size: 11px;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 2px;
  text-transform: uppercase;
}
.mini:hover { background: rgba(0,229,255,0.2); }
.mini:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Фильтры ---------- */
.filters {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,229,255,0.1);
  flex-wrap: wrap;
  align-items: center;
}
.filters input, .filters select {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0,229,255,0.3);
  color: #cfe6f5;
  padding: 5px 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

/* ---------- KV / Dash summary ---------- */
.dash-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  padding: 14px;
}
.dash-stat {
  background: rgba(0,229,255,0.05);
  border: 1px solid rgba(0,229,255,0.2);
  padding: 12px;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
}
.dash-stat b { display: block; font-family: 'Orbitron'; font-size: 26px; color: #00e5ff; text-shadow: 0 0 8px rgba(0,229,255,0.7); }
.dash-stat span { font-size: 10px; letter-spacing: 0.1em; color: #7d99b0; text-transform: uppercase; }
.dash-stat--red b { color: #ff2d55; text-shadow: 0 0 8px rgba(255,45,85,0.7); }
.dash-stat--amber b { color: #ffb300; text-shadow: 0 0 8px rgba(255,179,0,0.7); }

.kv-list {
  list-style: none;
  margin: 0;
  padding: 8px 12px;
  font-family: 'Rajdhani', sans-serif;
}
.kv-list li {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dotted rgba(0,229,255,0.1);
}
.kv-list b { color: #00e5ff; }
.muted { color: #7d99b0; font-style: italic; }

/* ---------- Карточка отчёта ---------- */
.report-card { padding: 14px; background: rgba(0,229,255,0.03); border-left: 2px solid #00e5ff; }
.rc-row { padding: 4px 0; font-family: 'Rajdhani', sans-serif; }
.rc-row b { color: #00e5ff; margin-right: 6px; }
.rc-row ul { margin: 4px 0 4px 18px; padding: 0; }
.rc-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

.lvl { font-weight: 700; padding: 2px 8px; border-radius: 2px; }
.lvl--high { color: #ff2d55; background: rgba(255,45,85,0.15); }
.lvl--medium { color: #ffb300; background: rgba(255,179,0,0.15); }
.lvl--low { color: #00e676; background: rgba(0,230,118,0.15); }

/* ---------- Уведомления ---------- */
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,229,255,0.1);
  font-family: 'Rajdhani', sans-serif;
}
.notif--read { opacity: 0.55; }
.notif__head { font-size: 14px; margin-bottom: 4px; }
.notif__msg { color: #cfe6f5; font-size: 13px; margin-bottom: 6px; }
.notif__foot { display: flex; gap: 12px; align-items: center; font-size: 11px; }
.notif__link { color: #00e5ff; text-decoration: none; border-bottom: 1px dashed currentColor; }

/* ---------- Профиль / смена пароля ---------- */
.profile-box { padding: 14px; }
.pwd-form { display: flex; flex-direction: column; gap: 10px; padding: 14px; max-width: 360px; }
.pwd-form label { display: flex; flex-direction: column; font-family: 'Rajdhani', sans-serif; font-size: 12px; color: #7d99b0; gap: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.pwd-form input {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0,229,255,0.3);
  color: #cfe6f5;
  padding: 7px 10px;
  font-family: 'JetBrains Mono', monospace;
}
.pwd-msg { font-family: 'Rajdhani', sans-serif; font-size: 13px; }
.pwd-msg.ok { color: #00e676; }
.pwd-msg.err { color: #ff2d55; }

/* ---------- Scan meta ---------- */
.scan-meta { padding: 14px; font-family: 'Rajdhani', sans-serif; }
.scan-meta div { padding: 3px 0; }
.scan-meta b { color: #00e5ff; }

/* ---------- TabBar active ---------- */
.tabbar .tab--active { color: #00e5ff; }
.tabbar .tab--active .tab__ico { text-shadow: 0 0 8px currentColor; }
