:root {
  /* Neutral slate surfaces (less blue), with a TCS-cyan brand accent */
  --bg: #0b0f14;
  --bg-2: #10151c;
  --panel: #151b23;
  --panel-2: #1c232d;
  --panel-3: #232c38;
  --border: #2a333f;
  --border-light: #333e4c;
  --text: #eef2f6;
  --text-muted: #9aa7b4;
  --text-dim: #69757f;

  /* Brand: TCS cyan */
  --brand: #29abe2;
  --brand-2: #1f93c6;
  --brand-soft: rgba(41, 171, 226, 0.14);
  --accent: #29abe2;
  --accent-2: #1f93c6;

  /* Category accents (used across tiles, tags, badges) */
  --c-total: #29abe2;      /* cyan */
  --c-progressive: #4f8bf0; /* blue */
  --c-agentless: #22c58a;   /* emerald */
  --c-manual: #f0a13a;      /* amber */
  --c-automated: #9b7bf0;   /* violet */

  --ok: #22c58a;
  --warn: #f0a13a;
  --danger: #ef5b52;
  --agentless: #22c58a;
  --progressive: #4f8bf0;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.36);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Topbar ---- */
.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 15, 20, 0.86);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-inner {
  max-width: min(1720px, 97vw);
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand-icon { flex: none; display: block; filter: drop-shadow(0 2px 6px rgba(41, 171, 226, 0.35)); }
.brand-name { letter-spacing: 0.2px; font-weight: 600; }
.brand-name strong { color: var(--brand); font-weight: 800; }
.topnav { display: flex; gap: 6px; margin-left: 8px; }
.topnav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.topnav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.topnav a.is-active { background: var(--panel-2); color: var(--text); }
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.user-chip { display: flex; align-items: center; gap: 8px; }
.user-name { font-size: 14px; color: var(--text); }
.link-muted { color: var(--text-muted); font-size: 13px; }
.inline { display: inline; margin: 0; }

/* ---- Layout ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 28px 24px 60px; }
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 22px;
}
.page-title { font-size: 24px; margin: 0 0 4px; font-weight: 700; }
.page-sub { color: var(--text-muted); margin: 0; font-size: 14px; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.span-2 { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
}

/* ---- Panel ---- */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.panel-title { font-size: 16px; margin: 0; font-weight: 650; }
.panel-sub { color: var(--text-muted); font-size: 13px; margin: 4px 0 16px; }

/* ---- Tables ---- */
.table-scroll { overflow-x: auto; border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table thead th {
  text-align: left;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table tbody td { padding: 11px 12px; border-bottom: 1px solid rgba(42, 58, 82, 0.5); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(32, 45, 64, 0.5); }
.table-compact tbody td { padding: 8px 12px; font-size: 13px; }
.cell-name { font-weight: 600; color: var(--text); }
.cell-time { font-variant-numeric: tabular-nums; color: var(--text); }
.cell-muted { color: var(--text-dim); }
.cell-details { color: var(--text-muted); max-width: 460px; }
.cell-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---- Tags / pills ---- */
.tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; text-transform: capitalize;
}
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.pill-ok { background: rgba(52, 201, 138, 0.16); color: #6fe0a8; }
.pill-warn { background: rgba(240, 178, 58, 0.16); color: #f3c96f; }
.pill-muted { background: var(--panel-2); color: var(--text-muted); }
.count-chip {
  margin-left: auto; background: var(--panel-2); color: var(--text-muted);
  border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600;
}
.action-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: var(--text); background: var(--panel-2);
  padding: 2px 7px; border-radius: 6px;
}

/* ---- Summary stat tiles ---- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat-tile {
  --tile: var(--text-muted);
  position: relative;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px 16px 20px;
  display: flex; flex-direction: column; gap: 6px;
  overflow: hidden;
}
/* colored accent bar down the left edge of each tile */
.stat-tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--tile);
}
.stat-head { display: flex; align-items: center; gap: 8px; }
.stat-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--tile); flex: none; }
.stat-value { font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.stat-label { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }

.stat-total { --tile: var(--c-total); }
.stat-progressive { --tile: var(--c-progressive); }
.stat-agentless { --tile: var(--c-agentless); }
.stat-manual { --tile: var(--c-manual); }
.stat-automated { --tile: var(--c-automated); }
.stat-total .stat-value { color: #fff; }
.stat-total {
  border-color: rgba(41, 171, 226, 0.4);
  background: linear-gradient(180deg, rgba(41, 171, 226, 0.10), var(--panel));
}
@media (max-width: 860px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ---- Accent pill and pulse ---- */
.pill-accent { background: var(--brand-soft); color: #7fd3f4; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 201, 138, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(52, 201, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 201, 138, 0); }
}

/* ---- Forms ---- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.hint { color: var(--text-dim); font-weight: 400; font-size: 12px; }
.input {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; font-family: var(--font);
  width: 100%;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.2); }
.input-sm { padding: 7px 10px; font-size: 13px; }
select.input { appearance: none; }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.meta-line { color: var(--text-dim); font-size: 12px; margin: 2px 0 0; }
.save-status { font-size: 13px; }
.save-status.ok { color: var(--ok); }
.save-status.err { color: var(--danger); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: var(--font); transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  background: var(--panel-2); color: var(--text);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #052430; }
.btn-primary:hover { background: #34badd; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-muted); }
.btn-ghost:hover { background: var(--panel-2); color: var(--text); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-start { background: var(--ok); color: #06281c; flex: none; }
.btn-start:hover { background: #2bb47c; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn[data-busy] { opacity: 0.6; cursor: progress; }

/* ---- Reset password popover ---- */
.reset-pop summary { list-style: none; }
.reset-pop summary::-webkit-details-marker { display: none; }
.reset-form { display: flex; gap: 8px; margin-top: 8px; align-items: center; }

/* ---- Alerts ---- */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; }
.alert-error { background: rgba(240, 85, 79, 0.14); color: #f6a19d; border: 1px solid rgba(240, 85, 79, 0.3); }
.alert-success { background: rgba(52, 201, 138, 0.14); color: #7fe3b3; border: 1px solid rgba(52, 201, 138, 0.3); }

/* ---- TCS partner logo ---- */
.tcs-logo { display: block; }
.tcs-logo-topbar { height: 22px; width: auto; }
.topbar-divider { width: 1px; height: 22px; background: var(--border); flex: none; }
.tcs-logo-login { height: 30px; width: auto; margin: 0 auto 16px; }
@media (max-width: 700px) {
  .tcs-logo-topbar, .topbar-divider { display: none; }
}

/* ---- Auth pages ---- */
.auth-wrap { min-height: 82vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card {
  width: 100%; max-width: 400px; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 20px; margin-bottom: 18px; }
.auth-title { font-size: 22px; margin: 0 0 4px; text-align: center; }
.auth-sub { color: var(--text-muted); font-size: 14px; margin: 0 0 22px; text-align: center; }

/* ---- Roles ---- */
.user-role { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.4px; }
.role-admin { background: var(--brand-soft); color: #7fd3f4; }
.role-user { background: var(--panel-2); color: var(--text-muted); }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state h1 { font-size: 22px; margin: 0 0 8px; }
.empty-state p { color: var(--text-muted); margin: 0 0 20px; }

/* ---- Footer ---- */
.footer {
  max-width: 1180px; margin: 0 auto; padding: 24px; color: var(--text-dim);
  font-size: 13px; display: flex; gap: 10px; align-items: center;
}
.footer-sep { opacity: 0.5; }

/* =========================================================================
   Layout helpers, RBAC
   ========================================================================= */
.container-wide { max-width: min(1720px, 97vw); }
.head-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.refresh-note { color: var(--text-dim); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 1.8s infinite; }
.panel-flush { padding: 8px; }

/* Quick links */
.quicklinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 20px; }
.quicklink { display: flex; flex-direction: column; gap: 4px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.quicklink:hover { border-color: var(--brand); text-decoration: none; }
.quicklink-title { font-weight: 700; color: var(--text); }
.quicklink-sub { color: var(--text-muted); font-size: 13px; }

/* Forms: two-column and permission grids */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .two-col { grid-template-columns: 1fr; } }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 10px 0 8px; }
.perm-group-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-dim); font-weight: 700; margin-bottom: 8px; }
.perm-item { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14px; color: var(--text-muted); }
.perm-item input { width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 4px 18px; margin: 10px 0; }

/* Switch rows */
.switch-row { display: flex; align-items: center; gap: 10px; }
.switch-row input { width: 18px; height: 18px; accent-color: var(--brand); }
.switch-label { font-weight: 600; }

/* Role badge (arbitrary role names) */
.role-badge { background: var(--brand-soft); color: #7fd3f4; }

/* Danger ghost button */
.btn-danger-ghost { color: #f0908a; border-color: rgba(239, 91, 82, 0.4); }
.btn-danger-ghost:hover { background: rgba(239, 91, 82, 0.12); color: #f6b3ae; }
.role-form { margin: 0; }

/* Version footer + changelog (v13) */
.footer-version { color: var(--brand); font-weight: 600; }
.changelog { display: flex; flex-direction: column; gap: 14px; }
.release { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.release-current { border-color: rgba(41, 171, 226, 0.4); }
.release-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.release-ver { font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.release-title { font-weight: 650; color: var(--text); }
.release-date { margin-left: auto; color: var(--text-dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.release-list { margin: 0; padding-left: 20px; color: var(--text-muted); font-size: 14px; }
.release-list li { margin: 5px 0; }

/* Mono fields, solid danger button, red pill */
.input.mono, input.mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.btn-danger { background: var(--danger); color: #2a0a09; }
.btn-danger:hover { background: #d84842; }
.pill-bad { background: rgba(224, 82, 82, 0.18); color: #f19999; }
.rl-empty td { text-align: center; color: var(--text-muted); padding: 18px 0; }

/* Users table: role form sizes to content so full role names show (v24) */
.role-form { display: inline-flex; align-items: center; gap: 6px; }
.role-form select.input { width: auto; min-width: 150px; max-width: none; padding-right: 26px; }
.btn-danger-text { color: #f0908a; }
.btn-danger-text:hover { background: rgba(239, 91, 82, 0.12); color: #f6b3ae; }

/* Users table actions: colored buttons + contained delete confirm (v25) */
.btn-activate { color: #6fe0a8; border-color: rgba(52, 201, 138, 0.45); }
.btn-activate:hover { background: rgba(52, 201, 138, 0.12); color: #8eeabc; }
.btn-deactivate { color: #f3c96f; border-color: rgba(240, 178, 58, 0.45); }
.btn-deactivate:hover { background: rgba(240, 178, 58, 0.12); color: #f7d78f; }
.confirm-delete { flex-direction: column; align-items: stretch; max-width: 240px; gap: 8px; }
.confirm-delete .confirm-text { font-size: 12px; color: var(--text-muted); white-space: normal; line-height: 1.45; }
.confirm-delete .confirm-text code { color: #f0908a; }
.cell-actions { min-width: 200px; }

/* Users table: actions in one row; wide fluid admin layout (v26) */
.table .cell-actions { flex-wrap: nowrap; }
.table .cell-actions .btn { white-space: nowrap; }
.table .cell-actions .cell-muted { white-space: nowrap; }
.table td, .table th { vertical-align: middle; }

/* Responsive topbar: shed the logo and tighten gaps before anything overflows (v28) */
@media (max-width: 1040px) {
  .topbar-inner { gap: 12px; }
  .topbar-user { gap: 10px; }
  .tcs-logo-topbar, .topbar-divider { display: none; }
}
@media (max-width: 860px) {
  .user-role.role-badge { display: none; }
}

/* Users actions: fixed-width aligned columns; Reset password in purple (v29) */
.table .cell-actions .btn-activate,
.table .cell-actions .btn-deactivate { width: 104px; }
.btn-reset { color: #c0aef8; border-color: rgba(167, 139, 250, 0.45); }
.btn-reset:hover { background: rgba(167, 139, 250, 0.14); color: #d6c9fb; }
.table .cell-actions .btn-reset { width: 138px; }
.table .cell-actions .btn-danger-ghost { width: 78px; }

/* Dial pages: search + status filter toolbar (v31) */
.dial-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.dial-toolbar .dial-search { max-width: 420px; }
.dial-toolbar .dial-status { width: auto; min-width: 150px; }
.dial-toolbar .hint { margin-left: auto; }

/* =========================================================================
   CareTalk ladder: Today board, detail, events, reports (v1)
   ========================================================================= */
.mt-14 { margin-top: 14px; }
.stat-row-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .stat-row-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stat-row-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-bad { --tile: var(--danger); }

/* Health banners */
#banners { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.health { padding: 11px 14px 11px 16px; border-radius: var(--radius-sm); font-size: 14px; border: 1px solid; border-left-width: 4px; }
.health-ok { background: rgba(34, 197, 138, 0.10); color: #8eeabc; border-color: rgba(34, 197, 138, 0.35); }
.health-warn { background: rgba(240, 161, 58, 0.12); color: #f7d78f; border-color: rgba(240, 161, 58, 0.45); }
.health-bad { background: rgba(239, 91, 82, 0.14); color: #f6b3ae; border-color: rgba(239, 91, 82, 0.5); }

/* Toolbar: segmented filter */
.lad-toolbar { padding: 10px 10px 0; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.seg-btn { background: transparent; border: 0; color: var(--text-muted); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.seg-btn:hover { color: var(--text); }
.seg-btn.is-active { background: var(--panel-3); color: var(--text); }
.field-inline { flex-direction: row; align-items: center; gap: 8px; }
.field-inline .field-label { white-space: nowrap; }

/* Ladder table */
.table-ladder td { vertical-align: middle; }
.t-main { font-weight: 600; white-space: nowrap; }
.t-sub { color: var(--text-dim); font-size: 12px; white-space: nowrap; }
.t-err { color: #f19999; font-size: 12px; }
.lad-row[hidden] { display: none; }
.lad-row.lad-ineligible { opacity: 0.72; }

/* Rung chips */
.rungs { display: flex; gap: 6px; flex-wrap: wrap; }
.rung {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px;
  min-width: 78px; padding: 4px 9px; border-radius: 8px; border: 1px solid; cursor: default;
  font-size: 12px; line-height: 1.25;
}
.rung-label { font-weight: 700; }
.rung-time { font-size: 11px; opacity: 0.8; font-variant-numeric: tabular-nums; }
.rung-time:empty { display: none; }
.rung-pending { background: var(--panel-2); color: var(--text-muted); border-color: var(--border-light); }
.rung-sent { background: rgba(34, 197, 138, 0.14); color: #6fe0a8; border-color: rgba(34, 197, 138, 0.4); }
.rung-failed { background: rgba(239, 91, 82, 0.16); color: #f19999; border-color: rgba(239, 91, 82, 0.5); }
.rung-missed { background: rgba(240, 161, 58, 0.14); color: #f3c96f; border-color: rgba(240, 161, 58, 0.45); }
.rung-skipped { background: transparent; color: var(--text-dim); border-color: var(--border); border-style: dashed; }
.rung-stopped { background: rgba(155, 123, 240, 0.12); color: #c0aef8; border-color: rgba(155, 123, 240, 0.35); }
.legend { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px 6px; }
.legend .rung { min-width: 0; }

/* Outcome text */
.outcome { font-size: 13px; font-weight: 600; }
.outcome-ok { color: #6fe0a8; }
.outcome-warn { color: #f3c96f; }
.outcome-bad { color: #f19999; }
.outcome-accent { color: #7fd3f4; }
.outcome-muted { color: var(--text-muted); font-weight: 500; }

/* Key/value grid (detail, SuperAdmin status) */
.kv-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.kv { display: grid; grid-template-columns: 190px 1fr; gap: 12px; font-size: 14px; }
.kv-k { color: var(--text-dim); }
.kv-v { color: var(--text); word-break: break-word; }
@media (max-width: 620px) { .kv { grid-template-columns: 1fr; gap: 2px; } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tl-item { display: flex; gap: 14px; align-items: flex-start; }
.tl-item .rung { flex: none; }
.tl-title { font-weight: 600; font-size: 14px; }

/* Event tags */
.ev { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ev-video_join { background: rgba(34, 197, 138, 0.16); color: #6fe0a8; }
.ev-call_connected { background: rgba(79, 139, 240, 0.18); color: #9dbcf7; }
.ev-video_queue_timeout { background: rgba(240, 161, 58, 0.16); color: #f3c96f; }

/* Reports */
.table-report th.num, .table-report td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-report tfoot td { border-top: 1px solid var(--border); padding: 11px 12px; font-weight: 700; }
.table-report tr.row-empty td { color: var(--text-dim); }

/* SuperAdmin */
.test-result { display: block; min-height: 18px; }
.suppress-form { display: inline-flex; gap: 8px; align-items: center; }
.suppress-form .input { width: 220px; }

/* Build tracker (unlisted /tracker page) */
.tracker-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.tracker-filter .pill { text-decoration: none; }
.tracker-group { margin-bottom: 18px; }
.tracker-group-title { font-size: 15px; margin: 0; padding: 14px 16px 6px; }
.table-scroll { overflow-x: auto; }
.tracker-table td { vertical-align: top; }
.tracker-table .tracker-task { min-width: 220px; font-weight: 600; }
.tracker-table .tracker-notes { min-width: 320px; color: var(--text-muted); line-height: 1.45; }
.tracker-table .pill { white-space: nowrap; }
