/* HR Management Dashboard — Premium Dark Command Center */

:root {
  --accent-hr: #f59e0b;
  --accent-hr-light: #fbbf24;
  --accent-hr-dim: rgba(245, 158, 11, 0.12);
  --accent-hr-glow: rgba(245, 158, 11, 0.25);
  --accent-hr-green: #22c55e;
  --accent-hr-red: #ef4444;
  --accent-hr-cyan: #22d3ee;
  --glass: rgba(24, 27, 35, 0.65);
  --glass-border: rgba(255, 255, 255, 0.07);
}

/* Background orbs */
.bg-orb-hr-1 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 65%);
  top: -300px;
  right: -200px;
  animation: orbDrift1 22s ease-in-out infinite;
}
.bg-orb-hr-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.035) 0%, transparent 65%);
  bottom: -250px;
  left: -150px;
  animation: orbDrift2 28s ease-in-out infinite;
}

/* Layout */
.hr-main {
  padding: 20px 32px 80px;
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
}

/* ═══════════════════════════════════════════
   FILTER BAR — Frosted glass command strip
   ═══════════════════════════════════════════ */
.hr-filters {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 14px 20px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.hr-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hr-filter-group label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding-left: 2px;
}
.hr-select {
  background: rgba(10, 11, 13, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  padding: 7px 30px 7px 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235a6070' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 110px;
}
.hr-select:hover {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(10, 11, 13, 0.8);
}
.hr-select:focus {
  outline: none;
  border-color: var(--accent-hr);
  box-shadow: 0 0 0 3px var(--accent-hr-dim), 0 0 20px var(--accent-hr-dim);
}

.hr-algo-toggle {
  display: flex;
  gap: 1px;
  background: rgba(10, 11, 13, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 2px;
}
.hr-algo-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.hr-algo-btn:hover:not([disabled]) {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}
.hr-algo-btn.active {
  background: var(--accent-hr);
  color: #0a0b0d;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.hr-algo-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.hr-refresh-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 11, 13, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}
.hr-refresh-icon-btn:hover:not([disabled]) {
  color: var(--accent-hr);
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}
.hr-refresh-icon-btn[disabled] {
  opacity: 0.25;
  cursor: not-allowed;
}
.hr-refresh-icon-btn.is-loading svg {
  animation: spin 0.8s linear infinite;
}

/* AI thinking loader */
.hr-ai-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 16px;
}
.hr-ai-loader .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--accent-hr);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hr-ai-loader .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-hr);
  letter-spacing: 0.05em;
  animation: pulse-text 2s ease-in-out infinite;
}
@keyframes pulse-text {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
/* ═══════════════════════════════════════════
   AI REPORT CARD
   ═══════════════════════════════════════════ */
.ai-report {
  margin-top: 16px;
  background: rgba(10, 11, 13, 0.5);
  border: 1px solid rgba(167, 139, 250, 0.12);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
}
.ai-report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(167, 139, 250, 0.06);
  border-bottom: 1px solid rgba(167, 139, 250, 0.08);
}
.ai-report-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #c4b5fd;
  letter-spacing: -0.01em;
}
.ai-report-title svg { stroke: #a78bfa; }
.ai-report-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-report-conf {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
}
.ai-report-model {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.6;
}
.ai-report-status-pill.is-cached,
.ai-report-status-pill.is-fresh {
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  margin-left: 0;
}
.ai-report-status-pill.is-cached {
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.ai-report-status-pill.is-fresh {
  color: var(--accent-hr-green);
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
}
.ai-report-section {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.ai-report-section:last-child { border-bottom: none; }
.ai-report-section-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.ai-report-risks .ai-report-section-label { color: var(--accent-hr-red); }
.ai-report-recs .ai-report-section-label { color: #a78bfa; }

.ai-report-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  padding: 6px 0;
}
.ai-report-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  margin-top: 1px;
}
.ai-report-icon.risk {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-hr-red);
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.ai-report-icon.ok {
  background: rgba(34, 197, 94, 0.12);
  color: var(--accent-hr-green);
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.ai-report-icon.warn {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-hr);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.ai-report-risk span:last-child { color: var(--text-primary); }

.ai-report-rec {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  padding: 5px 0;
}
.ai-report-rec-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  background: rgba(167, 139, 250, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.15);
  margin-top: 1px;
}
.ai-report-error {
  padding: 10px 18px;
  color: var(--accent-hr-red);
  font-size: 12px;
}

.hr-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.05em;
}
.hr-ai-confidence {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 8px;
}
.hr-ai-recommendations {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(167, 139, 250, 0.04);
  border: 1px solid rgba(167, 139, 250, 0.1);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.hr-quarter-btns {
  display: flex;
  gap: 1px;
  background: rgba(10, 11, 13, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.hr-qbtn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.hr-qbtn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}
.hr-qbtn.active {
  background: var(--accent-hr);
  color: #0a0b0d;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

.hr-filter-sep {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, var(--glass-border), transparent);
  align-self: center;
  margin: 0 2px;
}
.hr-filter-spacer { flex: 1; }

/* Legacy refresh button style retained for other callsites (kpi drawer, etc.) */
.hr-refresh-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s;
}
.hr-refresh-btn:hover {
  border-color: var(--accent-hr);
  color: var(--accent-hr);
  box-shadow: 0 0 16px var(--accent-hr-dim);
}
.hr-refresh-btn svg { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.hr-refresh-btn:hover svg { transform: rotate(90deg); }

/* ═══════════════════════════════════════════
   SYNC STATUS CLUSTER — live freshness pill
   State: fresh (<15m) / stale (15-60m) / old (>60m) / unknown
   ═══════════════════════════════════════════ */
.ai-report-regenerating {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
}

.ai-report-status-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 10px;
  cursor: help;
}
.ai-report-status-completed {
  background: rgba(34, 197, 94, 0.10);
  color: var(--accent-hr-green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.ai-report-status-future {
  background: rgba(34, 211, 238, 0.10);
  color: var(--accent-hr-cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.ai-report-accuracy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 3px 8px;
  border: 1px dashed var(--glass-border);
  border-radius: 999px;
  cursor: help;
}

.ai-report-required-opens {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.10), rgba(34, 197, 94, 0.02));
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-sm);
  margin-top: 12px;
}
.ai-report-required-opens-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hr-green);
}
.ai-report-required-opens-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.ai-report-required-opens-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.hr-sync-cluster {
  --sync-color: var(--text-muted);
  --sync-color-dim: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.hr-sync-cluster:hover { background: rgba(255, 255, 255, 0.045); }
.hr-sync-cluster[data-state="fresh"]   { --sync-color: var(--accent-hr-green); --sync-color-dim: rgba(34, 197, 94, 0.18); }
.hr-sync-cluster[data-state="stale"]   { --sync-color: var(--accent-hr); --sync-color-dim: var(--accent-hr-dim); }
.hr-sync-cluster[data-state="old"]     { --sync-color: var(--accent-hr-red); --sync-color-dim: rgba(239, 68, 68, 0.18); }
.hr-sync-cluster[data-state="unknown"] { --sync-color: var(--text-muted); --sync-color-dim: rgba(255, 255, 255, 0.06); }

.hr-sync-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sync-color);
  box-shadow: 0 0 0 0 var(--sync-color-dim);
  flex-shrink: 0;
}
.hr-sync-cluster[data-state="fresh"] .hr-sync-pulse,
.hr-sync-cluster[data-state="stale"] .hr-sync-pulse,
.hr-sync-cluster[data-state="old"]   .hr-sync-pulse {
  animation: hr-sync-pulse 2.4s ease-out infinite;
}
@keyframes hr-sync-pulse {
  0%   { box-shadow: 0 0 0 0 var(--sync-color-dim); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hr-sync-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sync-color);
  white-space: nowrap;
  cursor: help;
  transition: color 0.3s ease;
}

.hr-sync-sep {
  width: 1px;
  height: 18px;
  background: var(--glass-border);
  flex-shrink: 0;
}

.hr-sync-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  padding: 0;
}
.hr-sync-action:hover {
  color: var(--sync-color);
  background: var(--sync-color-dim);
}
.hr-sync-action:active { transform: scale(0.92); }
.hr-sync-action svg { transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.hr-sync-action:hover svg { transform: rotate(180deg); }
.hr-sync-action.is-spinning svg { animation: spin 0.8s linear infinite; }

/* ═══════════════════════════════════════════
   KPI HERO CARDS — Elevated glass panels
   ═══════════════════════════════════════════ */
.hr-hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.hr-kpi-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top gradient line */
.hr-kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

/* Corner radial glow */
.hr-kpi-card::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.hr-kpi-clickable { cursor: pointer; }

.hr-kpi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.3),
    0 0 1px rgba(255,255,255,0.1);
}
.hr-kpi-card:hover::before { opacity: 1; }
.hr-kpi-card:hover::after { opacity: 1; }

/* Accent variants */
.hr-kpi-card[data-accent="amber"]::before { background: linear-gradient(90deg, #f59e0b, #fbbf24, transparent); }
.hr-kpi-card[data-accent="cyan"]::before { background: linear-gradient(90deg, #22d3ee, #06b6d4, transparent); }
.hr-kpi-card[data-accent="red"]::before { background: linear-gradient(90deg, #ef4444, #f87171, transparent); }
.hr-kpi-card[data-accent="green"]::before { background: linear-gradient(90deg, #22c55e, #4ade80, transparent); }

.hr-kpi-card[data-accent="amber"]::after { background: radial-gradient(circle, rgba(245,158,11,0.08), transparent 70%); }
.hr-kpi-card[data-accent="cyan"]::after { background: radial-gradient(circle, rgba(34,211,238,0.08), transparent 70%); }
.hr-kpi-card[data-accent="red"]::after { background: radial-gradient(circle, rgba(239,68,68,0.06), transparent 70%); }
.hr-kpi-card[data-accent="green"]::after { background: radial-gradient(circle, rgba(34,197,94,0.08), transparent 70%); }

.hr-kpi-card[data-accent="amber"] .hr-kpi-icon { color: #f59e0b; background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.15); }
.hr-kpi-card[data-accent="cyan"] .hr-kpi-icon { color: #22d3ee; background: rgba(34,211,238,0.1); border: 1px solid rgba(34,211,238,0.12); }
.hr-kpi-card[data-accent="red"] .hr-kpi-icon { color: #ef4444; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.12); }
.hr-kpi-card[data-accent="green"] .hr-kpi-icon { color: #22c55e; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.12); }

.hr-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s, box-shadow 0.3s;
}
.hr-kpi-card:hover .hr-kpi-icon {
  transform: scale(1.05);
}
.hr-kpi-card[data-accent="amber"]:hover .hr-kpi-icon { box-shadow: 0 0 20px rgba(245,158,11,0.2); }
.hr-kpi-card[data-accent="green"]:hover .hr-kpi-icon { box-shadow: 0 0 20px rgba(34,197,94,0.2); }

.hr-kpi-content { flex: 1; min-width: 0; }
.hr-hint-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 8px;
  font-weight: 700;
  color: var(--text-muted);
  vertical-align: middle;
  margin-left: 3px;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s;
  cursor: help;
}
.hr-kpi-label:hover .hr-hint-icon,
.hr-section-header h2:hover .hr-hint-icon {
  opacity: 1;
  border-color: var(--accent-hr);
  color: var(--accent-hr);
}
.hr-section-header h2[data-hint] {
  cursor: help;
}
.hr-section-header h2 .hr-hint-icon {
  font-size: 9px;
  width: 14px;
  height: 14px;
}
.hr-kpi-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hr-kpi-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--text-primary) 40%, rgba(240,242,245,0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hr-kpi-delta {
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
  color: var(--text-muted);
}
.hr-kpi-secondary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-hr, #f59e0b);
  -webkit-text-fill-color: var(--accent-hr, #f59e0b);
  letter-spacing: 0;
  margin-left: 8px;
  cursor: help;
}

/* Skeleton */
.hr-kpi-skeleton {
  display: inline-block;
  width: 56px;
  height: 30px;
  background: linear-gradient(90deg, rgba(37,42,56,0.8) 25%, rgba(255,255,255,0.04) 50%, rgba(37,42,56,0.8) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════
   SECTION CARDS — Consistent glass panels
   ═══════════════════════════════════════════ */
.hr-row-2col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.hr-section {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 18px;
  transition: border-color 0.3s;
}
.hr-section:hover { border-color: rgba(255,255,255,0.1); }
.hr-row-2col .hr-section { margin-bottom: 0; }

.hr-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.hr-section-header h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hr-section-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-hr);
  background: var(--accent-hr-dim);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(245,158,11,0.15);
}

/* ═══════════════════════════════════════════
   SPEED CARDS
   ═══════════════════════════════════════════ */
.hr-speed-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.hr-speed-item {
  background: rgba(10, 11, 13, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  transition: all 0.25s;
  position: relative;
}
.hr-speed-item:hover {
  border-color: rgba(245,158,11,0.2);
  background: rgba(10, 11, 13, 0.7);
}
.hr-speed-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-hr-dim), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.hr-speed-item:hover::after { opacity: 1; }

.hr-speed-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.hr-speed-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-hr);
  line-height: 1;
  text-shadow: 0 0 30px var(--accent-hr-dim);
}
.hr-speed-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.3;
}
.hr-speed-breakdown {
  padding: 10px 0 0;
  border-top: 1px solid var(--glass-border);
}
.hr-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.hr-breakdown-table th {
  text-align: left;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 4px 8px;
  border-bottom: 1px solid var(--glass-border);
}
.hr-breakdown-table td {
  padding: 3px 8px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.hr-breakdown-table .mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   CONVERSION RING — Dramatic glow
   ═══════════════════════════════════════════ */
.hr-conversion-ring {
  display: flex;
  justify-content: center;
  position: relative;
  margin: 12px 0 24px;
}
.hr-ring-svg {
  width: 160px;
  height: 160px;
  filter: drop-shadow(0 0 20px var(--accent-hr-dim));
}
#convRingPath {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.hr-ring-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.hr-ring-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-hr);
  line-height: 1;
  text-shadow: 0 0 24px var(--accent-hr-glow);
}
.hr-ring-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 5px;
}

.hr-conversion-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.hr-conv-stat { text-align: center; }
.hr-conv-num {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}
.hr-conv-label {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 5px;
}
.hr-conv-arrow {
  color: var(--text-muted);
  opacity: 0.35;
}
.hr-conv-by-tier {
  margin-top: 14px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}
.hr-conv-tier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 11px;
  color: var(--text-secondary);
}
.hr-conv-tier-label {
  min-width: 44px;
  font-weight: 500;
  color: var(--text-primary);
}
.hr-conv-tier-val { opacity: 0.7; }
.hr-conv-tier-pct {
  font-weight: 600;
  color: var(--accent-hr);
  min-width: 40px;
  text-align: right;
}

/* ═══════════════════════════════════════════
   VOLUME MONTHLY CHART — SVG stacked bars
   ═══════════════════════════════════════════ */
.hr-volume-chart {
  position: relative;
}
.hr-volume-svg {
  width: 100%;
  height: 240px;
  display: block;
}
.hr-volume-svg text {
  font-family: 'JetBrains Mono', monospace;
}
.hr-volume-svg .vol-bar {
  opacity: 0.88;
  transition: opacity 0.15s;
  cursor: default;
}
.hr-volume-svg .vol-bar:hover {
  opacity: 1;
  filter: brightness(1.15);
}

/* ═══════════════════════════════════════════
   SPEED MONTHLY CHART — SVG line chart
   ═══════════════════════════════════════════ */
.hr-speed-chart {
  position: relative;
}
.hr-speed-svg {
  width: 100%;
  height: 240px;
  display: block;
}
.hr-speed-svg text {
  font-family: 'JetBrains Mono', monospace;
}
.hr-speed-dot {
  transition: r 0.15s, opacity 0.15s;
  cursor: default;
}
.hr-speed-dot:hover {
  r: 5;
  opacity: 1;
}

/* ═══════════════════════════════════════════
   PIPELINE CHART — SVG dual-axis
   ═══════════════════════════════════════════ */
.hr-pipeline-chart {
  position: relative;
}
.hr-pipeline-svg {
  width: 100%;
  height: 260px;
  display: block;
}
.hr-pipeline-svg text {
  font-family: 'JetBrains Mono', monospace;
}
.hr-pipeline-svg rect {
  transition: opacity 0.15s;
  cursor: default;
}
.hr-pipeline-svg rect:hover {
  opacity: 1 !important;
  filter: brightness(1.2);
}
.hr-pipeline-legend {
  display: flex;
  gap: 24px;
  margin-top: 14px;
  justify-content: center;
}
.hr-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--text-secondary);
}
.hr-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════
   TABLE — Premium data grid
   ═══════════════════════════════════════════ */
.hr-table-wrap { overflow-x: auto; }
.hr-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.hr-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: var(--glass);
  z-index: 1;
}
.hr-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text-secondary);
  vertical-align: middle;
  transition: all 0.15s;
}
.hr-table tbody tr {
  transition: background 0.15s;
}
.hr-table tbody tr:hover td {
  background: rgba(245, 158, 11, 0.03);
  color: var(--text-primary);
}
.hr-table tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--accent-hr);
}
.hr-table tbody td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}
.hr-table .mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 13px;
}
.hr-table-separator td {
  padding: 10px 16px 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.02);
}

.hr-fired-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 4px;
  vertical-align: middle;
}

.hr-row-fired td {
  opacity: 0.6;
}

.hr-table .pct-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 100px;
}
.hr-table .pct-fill {
  height: 5px;
  border-radius: 3px;
  min-width: 3px;
  max-width: 80px;
}
.pct-fill.green { background: var(--accent-hr-green); box-shadow: 0 0 8px rgba(34,197,94,0.35); }
.pct-fill.yellow { background: #eab308; box-shadow: 0 0 8px rgba(234,179,8,0.3); }
.pct-fill.red { background: var(--accent-hr-red); box-shadow: 0 0 8px rgba(239,68,68,0.3); }

.hr-metric-warning {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11px;
  text-align: center;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════
   SYNC BAR
   ═══════════════════════════════════════════ */
.hr-sync-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}
.hr-sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-hr-green);
  box-shadow: 0 0 8px rgba(34,197,94,0.5);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(34,197,94,0.5); }
  50% { opacity: 0.4; box-shadow: 0 0 2px rgba(34,197,94,0.2); }
}

/* ═══════════════════════════════════════════
   SETTINGS FORMS
   ═══════════════════════════════════════════ */
.hr-add-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 12px;
  flex-wrap: wrap;
}
.hr-input {
  background: rgba(10, 11, 13, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  padding: 7px 10px;
  transition: all 0.25s;
  min-width: 0;
}
.hr-input:focus {
  outline: none;
  border-color: var(--accent-hr);
  box-shadow: 0 0 0 3px var(--accent-hr-dim), 0 0 16px var(--accent-hr-dim);
}
.hr-input::placeholder { color: var(--text-muted); }

.hr-save-btn {
  background: linear-gradient(135deg, var(--accent-hr), var(--accent-hr-light));
  border: none;
  border-radius: var(--radius-sm);
  color: #0a0b0d;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hr-save-btn:hover {
  box-shadow: 0 4px 16px var(--accent-hr-glow);
  transform: translateY(-1px);
}

.hr-del-btn {
  background: transparent;
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm);
  color: rgba(239,68,68,0.7);
  font-family: inherit;
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.hr-del-btn:hover {
  background: rgba(239,68,68,0.08);
  border-color: var(--accent-hr-red);
  color: var(--accent-hr-red);
}

.hr-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}
.hr-checkbox input[type="checkbox"] {
  accent-color: var(--accent-hr);
  width: 16px;
  height: 16px;
}

.hr-plan-input {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeInUp 0.4s ease forwards;
}
.stagger-1 { animation-delay: 0.03s; }
.stagger-2 { animation-delay: 0.06s; }
.stagger-3 { animation-delay: 0.09s; }
.stagger-4 { animation-delay: 0.12s; }
.stagger-5 { animation-delay: 0.15s; }
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .hr-hero { grid-template-columns: repeat(2, 1fr); }
  .hr-row-2col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hr-hero { grid-template-columns: 1fr; }
  .hr-main { padding: 16px; }
  .hr-filters { flex-direction: column; align-items: stretch; }
  .hr-speed-cards { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   RECRUITING PAGE — Job Cards + «Кто завис»
   ═══════════════════════════════════════════ */
.rec-job-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}
.rec-job-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
}
.rec-job-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  user-select: none;
}
.rec-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.rec-expanded .rec-chevron {
  transform: rotate(90deg);
}
.rec-job-body {
  display: none;
  border-top: 1px solid var(--glass-border);
}
.rec-expanded .rec-job-body {
  display: block;
}
.rec-job-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}
.rec-job-meta {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}
.rec-job-stats {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.rec-job-count {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.rec-worst-days {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 1px 6px;
  border-radius: 6px;
}
.rec-worst-breach {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
}
.rec-breach-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.rec-job-table {
  margin: 0;
  border-radius: 0;
}
.rec-job-table th {
  font-size: 10px;
  padding: 6px 12px;
}
.rec-job-table td {
  padding: 6px 12px;
  font-size: 12px;
}
.rec-cand-name {
  font-weight: 500;
  color: var(--text-primary);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rec-status-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-hr);
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.rec-status-since {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
.rec-days-breach {
  color: var(--accent-hr-red) !important;
  font-weight: 700;
}
.rec-row-breach td {
  background: rgba(239, 68, 68, 0.04);
}
.rec-row-breach td:first-child {
  box-shadow: inset 3px 0 0 var(--accent-hr-red);
}

/* «Кто завис» table */
.rec-stuck-row td {
  background: rgba(239, 68, 68, 0.04);
}
.rec-stuck-row td:first-child {
  box-shadow: inset 3px 0 0 var(--accent-hr-red);
}
.rec-stuck-name {
  font-weight: 600;
  color: var(--text-primary);
}
.rec-stuck-days {
  color: var(--accent-hr-red);
  font-weight: 700;
}
.rec-over {
  font-size: 10px;
  opacity: 0.7;
}


/* ==========================================================
   KPI Config Gear Icons + Drawer (contextual settings)
   ========================================================== */

.hr-kpi-gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 8px;
  padding: 0;
  border: none;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s;
  vertical-align: middle;
}

.hr-kpi-gear:hover {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-hr);
  transform: rotate(30deg);
}

.hr-kpi-gear-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.hr-kpi-gear-disabled:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  transform: none;
}

/* Drawer (reuses .drill-panel slide-in) */
.kpi-drawer {
  width: min(520px, 100vw);
}

.kpi-drawer .panel-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 20px 80px;
}

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

.kpi-drawer-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.kpi-drawer-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kpi-drawer-hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.kpi-drawer-hint:empty {
  display: none;
}

.hr-kpi-app-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--accent-hr);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.hr-kpi-app-chip-inverse {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--accent-hr-red, #ef4444);
}

.hr-kpi-app-chip-arrow {
  margin-right: 4px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}

.kpi-drawer-preview {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
}

.kpi-drawer-preview.visible {
  display: flex;
}

.kpi-drawer-preview-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi-drawer-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  gap: 12px;
}

.kpi-drawer-preview-label {
  color: var(--text-secondary);
}

.kpi-drawer-preview-values {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.kpi-drawer-preview-current {
  color: var(--text-muted);
}

.kpi-drawer-preview-arrow {
  color: var(--text-muted);
  margin: 0 6px;
}

.kpi-drawer-preview-new {
  color: var(--text-primary);
}

.kpi-drawer-preview-delta-pos { color: var(--accent-hr-green); }
.kpi-drawer-preview-delta-neg { color: var(--accent-hr-red); }

.kpi-drawer-search-wrap {
  position: relative;
}

.kpi-drawer-search {
  width: 100%;
  padding: 9px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border 0.15s;
}

.kpi-drawer-search:focus {
  border-color: var(--accent-hr);
}

.kpi-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

.kpi-drawer-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.1s;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.kpi-drawer-status-row:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
}

.kpi-drawer-status-row input[type="checkbox"] {
  accent-color: var(--accent-hr);
  cursor: pointer;
  flex-shrink: 0;
}

.kpi-drawer-status-row input[type="checkbox"]:checked ~ .kpi-drawer-status-name {
  color: var(--text-primary);
  font-weight: 500;
}

.kpi-drawer-status-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.kpi-drawer-status-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.6;
  text-transform: lowercase;
}

.kpi-drawer-status-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.7;
  flex-shrink: 0;
}

.kpi-drawer-empty {
  padding: 8px 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
}

.kpi-drawer-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 0 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 8px;
  position: sticky;
  bottom: 0;
  background: var(--glass);
  backdrop-filter: blur(12px);
}
