/* ── TRIARCH CRM — STYLES ── */

:root {
  --cyan:       #00d4ff;
  --cyan-dim:   #00a8cc;
  --purple:     #7b2fff;
  --teal:       #40e0d0;
  --teal-dim:   #2ab5a6;
  --bg:         #08090c;
  --bg-card:    #0f1117;
  --bg-dark:    #050608;
  --bg-mid:     #0c0e14;
  --border:     rgba(0, 212, 255, 0.10);
  --border-hl:  rgba(0, 212, 255, 0.30);
  --text:       #e2e8f0;
  --text-dim:   #94a3b8;
  --text-muted: #5a6a82;
  --font-body:  'Inter', sans-serif;
  --font-head:  'Rajdhani', sans-serif;
  --radius:     6px;
  --radius-lg:  12px;
  --trans:      0.25s ease;
  --sidebar-w:  220px;
  --topbar-h:   56px;

  /* status colors */
  --status-active:      #40e0d0;
  --status-draft:       #94a3b8;
  --status-in-review:   #7b2fff;
  --status-final:       #00a8cc;
  --status-signed:      #2ab5a6;
  --status-expired:     #5a6a82;
  --status-cancelled:   #c0392b;
  --status-prospect:    #00d4ff;
  --status-inactive:    #5a6a82;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  height: 100%;
  overflow: hidden;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dim); }
img { display: block; max-width: 100%; }

/* ── LOGIN SCREEN ── */
#view-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 75% 50%, rgba(64,224,208,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 15% 60%, rgba(0,212,255,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(123,47,255,0.05) 0%, transparent 70%);
}
.login-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(64,224,208,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64,224,208,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
.login-card {
  position: relative; z-index: 2;
  background: var(--bg-card);
  border: 1px solid var(--border-hl);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%; max-width: 400px;
  text-align: center;
}
.login-logo { width: 56px; height: 56px; margin: 0 auto 20px; object-fit: contain; }
.login-title {
  font-family: var(--font-head);
  font-size: 28px; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 6px;
}
.login-sub {
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 32px; letter-spacing: 0.03em;
}
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 20px;
  background: var(--bg-dark);
  border: 1px solid var(--border-hl);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all var(--trans);
  font-family: var(--font-body);
}
.btn-google:hover { border-color: var(--teal); color: var(--teal); }
.btn-google svg { flex-shrink: 0; }
.login-note { margin-top: 20px; font-size: 12px; color: var(--text-muted); }
.login-error {
  margin-top: 16px; padding: 10px 14px;
  background: rgba(192,57,43,0.12);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: var(--radius);
  font-size: 13px; color: #e74c3c;
  display: none;
}
.login-error.show { display: block; }

/* ── APP SHELL ── */
#app-shell {
  display: flex; height: 100vh; overflow: hidden;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--bg-dark);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logo img { width: 28px; height: 28px; object-fit: contain; }
.sidebar-logo-text {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
}
.sidebar-logo-sub {
  font-size: 9px; color: var(--teal);
  letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 500;
}
.sidebar-nav { flex: 1; padding: 12px 0; }
.nav-section-label {
  font-size: 10px; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 12px 18px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  color: var(--text-dim);
  font-size: 13px; font-weight: 500;
  cursor: pointer; border-radius: 0;
  transition: color var(--trans), background var(--trans);
  user-select: none;
  position: relative;
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.nav-item.active { color: var(--teal); background: rgba(64,224,208,0.06); }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--teal);
}
.nav-item svg { opacity: 0.7; flex-shrink: 0; }
.nav-item.active svg { opacity: 1; }
.nav-badge {
  margin-left: auto;
  background: rgba(64,224,208,0.15);
  color: var(--teal);
  font-size: 10px; font-weight: 600;
  padding: 1px 6px; border-radius: 10px;
}
.nav-stub-badge {
  margin-left: auto;
  background: rgba(94,114,228,0.15);
  color: #5e72e4;
  font-size: 9px; font-weight: 600;
  padding: 1px 5px; border-radius: 10px;
  letter-spacing: 0.04em;
}
.sidebar-divider { height: 1px; background: var(--border); margin: 8px 0; }
.sidebar-user {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-user-info { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sidebar-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #05111a;
  flex-shrink: 0;
}
.sidebar-user-name { font-size: 12px; font-weight: 600; color: var(--text); }
.sidebar-user-email { font-size: 10px; color: var(--text-muted); }
.btn-signout {
  width: 100%; padding: 6px 10px;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted); font-size: 11px; font-weight: 500;
  cursor: pointer; transition: all var(--trans);
  font-family: var(--font-body);
  text-align: center;
}
.btn-signout:hover { border-color: var(--border-hl); color: var(--text); }

/* ── MAIN CONTENT ── */
.main-content {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column;
}
.topbar {
  height: var(--topbar-h); flex-shrink: 0;
  background: rgba(8,9,12,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 10;
}
.topbar-title {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--text);
  flex: 1;
}
.topbar-actions { display: flex; gap: 8px; }

.page-content { flex: 1; padding: 28px 28px 48px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: var(--radius);
  font-weight: 600; font-size: 13px;
  cursor: pointer; border: none;
  transition: all var(--trans);
  text-decoration: none;
  letter-spacing: 0.04em; text-transform: uppercase;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #05111a;
  box-shadow: 0 0 16px rgba(64,224,208,0.2);
}
.btn-primary:hover { box-shadow: 0 0 28px rgba(64,224,208,0.4); transform: translateY(-1px); color: #05111a; }
.btn-ghost {
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border-hl);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-danger {
  background: transparent; color: #e74c3c;
  border: 1px solid rgba(231,76,60,0.3);
}
.btn-danger:hover { background: rgba(231,76,60,0.08); border-color: rgba(231,76,60,0.6); }
.btn-sm { padding: 5px 12px; font-size: 11px; }
.btn-icon { padding: 6px; border-radius: var(--radius); }

/* ── KPI CARDS ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 28px;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  position: relative;
  transition: border-color var(--trans);
}
.kpi-card:hover { border-color: var(--border-hl); }
.kpi-label {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.kpi-value {
  font-family: var(--font-head);
  font-size: 32px; font-weight: 700;
  color: var(--text); line-height: 1;
  margin-bottom: 6px;
}
.kpi-sub { font-size: 12px; color: var(--text-muted); }
.kpi-accent { color: var(--teal); }
.kpi-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  opacity: 0; transition: opacity var(--trans);
}
.kpi-card:hover::before { opacity: 1; }

/* ── DATA TABLE ── */
.data-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }
.data-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.data-table th {
  padding: 10px 16px; text-align: left;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 16px;
  font-size: 13px; color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); color: var(--text); }
.data-table tr { cursor: pointer; transition: background var(--trans); }
.data-table .cell-name { color: var(--text); font-weight: 500; }
.data-table .cell-muted { color: var(--text-muted); font-size: 12px; }
.data-table .cell-mono { font-family: 'Courier New', monospace; font-size: 12px; }

/* ── STATUS BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; white-space: nowrap;
}
.badge-dot { width: 5px; height: 5px; border-radius: 50%; }
.badge-active    { background: rgba(64,224,208,0.12);  color: var(--teal);        }
.badge-prospect  { background: rgba(0,212,255,0.10);   color: var(--cyan);        }
.badge-inactive  { background: rgba(90,106,130,0.15);  color: var(--text-muted);  }
.badge-churned   { background: rgba(192,57,43,0.12);   color: #e74c3c;            }
.badge-draft     { background: rgba(90,106,130,0.15);  color: var(--text-dim);    }
.badge-in-review { background: rgba(123,47,255,0.15);  color: #9b73ff;            }
.badge-final     { background: rgba(0,168,204,0.15);   color: var(--cyan-dim);    }
.badge-signed    { background: rgba(42,181,166,0.15);  color: var(--teal-dim);    }
.badge-expired   { background: rgba(90,106,130,0.10);  color: var(--text-muted);  }
.badge-cancelled { background: rgba(192,57,43,0.10);   color: #c0392b;            }
.badge-found     { background: rgba(64,224,208,0.12);  color: var(--teal);        }
.badge-not-found { background: rgba(90,106,130,0.12);  color: var(--text-muted);  }
.badge-pending   { background: rgba(123,47,255,0.10);  color: #9b73ff;            }

/* ── CARDS / PANELS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-title {
  font-family: var(--font-head);
  font-size: 16px; font-weight: 600;
  color: var(--teal); letter-spacing: 0.03em;
  margin-bottom: 16px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}

/* ── DETAIL VIEW ── */
.detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}
.detail-sidebar { display: flex; flex-direction: column; gap: 16px; }
.detail-main { display: flex; flex-direction: column; gap: 16px; }

.detail-field { margin-bottom: 12px; }
.detail-field-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.detail-field-value { font-size: 14px; color: var(--text); }
.detail-field-value.empty { color: var(--text-muted); font-style: italic; }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 1px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -20px; top: 4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); border: 1px solid var(--bg-card);
}
.timeline-dot.muted { background: var(--text-muted); }
.timeline-date { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.timeline-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.timeline-sub { font-size: 12px; color: var(--text-muted); }
.timeline-link { font-size: 11px; color: var(--teal); }
.timeline-link:hover { color: var(--teal-dim); }

/* ── FORM ELEMENTS ── */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 12px; font-weight: 500; color: var(--text-dim); letter-spacing: 0.03em; margin-bottom: 5px; }
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
  color: var(--text);
  font-family: var(--font-body); font-size: 13px;
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.form-row select { cursor: pointer; }
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-muted); }
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(64,224,208,0.08);
}
.form-row textarea { resize: vertical; min-height: 80px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-hl);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  padding: 28px;
}
.modal-title {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 700;
  color: var(--text); letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 18px; padding: 4px;
  transition: color var(--trans);
}
.modal-close:hover { color: var(--text); }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center; padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state svg { margin: 0 auto 16px; opacity: 0.3; }
.empty-state-title { font-size: 15px; font-weight: 500; color: var(--text-dim); margin-bottom: 6px; }
.empty-state-sub { font-size: 13px; }

/* ── SEARCH BAR ── */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.search-input {
  flex: 1; max-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px 8px 34px;
  color: var(--text); font-size: 13px;
  font-family: var(--font-body);
  outline: none; transition: border-color var(--trans);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a6a82' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
}
.search-input:focus { border-color: var(--border-hl); }
.search-input::placeholder { color: var(--text-muted); }

/* ── SECTION HEADING ── */
.section-heading {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.section-heading h2 {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 700;
  color: var(--text); letter-spacing: 0.04em;
}
.section-rule { flex: 1; height: 1px; background: var(--border); }

/* ── STUB VIEW ── */
.stub-overlay {
  position: relative;
}
.stub-banner {
  background: rgba(123,47,255,0.08);
  border: 1px solid rgba(123,47,255,0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 16px;
}
.stub-banner-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(123,47,255,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stub-banner-title { font-weight: 600; color: #9b73ff; margin-bottom: 2px; }
.stub-banner-sub { font-size: 12px; color: var(--text-muted); }

/* ── DASHBOARD RECENT ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.meeting-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.meeting-item:last-child { border-bottom: none; }
.meeting-item-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 3px; }
.meeting-item-meta { font-size: 11px; color: var(--text-muted); }
.meeting-item-co { font-size: 11px; color: var(--teal); }

/* ── REVENUE SUMMARY STRIP ── */
.rev-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 24px;
}
.rev-strip-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
}
.rev-strip-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 4px; }
.rev-strip-value { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--text); }
.rev-strip-value span { font-size: 13px; font-weight: 400; color: var(--text-muted); margin-left: 2px; }

/* ── CONTRACT VERSION HISTORY ── */
.version-list { display: flex; flex-direction: column; gap: 8px; }
.version-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.version-num {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  color: var(--teal); min-width: 28px;
}
.version-name { flex: 1; font-size: 13px; color: var(--text); }
.version-date { font-size: 11px; color: var(--text-muted); }
.version-link { font-size: 11px; color: var(--teal); }

/* ── CONTACTS LIST ── */
.contact-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: border-color var(--trans);
}
.contact-card:hover { border-color: var(--border-hl); }
.contact-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-mid), var(--bg-card));
  border: 1px solid var(--border-hl);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  color: var(--teal); flex-shrink: 0;
}
.contact-name { font-size: 13px; font-weight: 600; color: var(--text); }
.contact-role { font-size: 11px; color: var(--teal); }
.contact-email { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.contact-primary-badge {
  margin-left: auto;
  background: rgba(64,224,208,0.12); color: var(--teal);
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 3px;
}

/* ── LOADING ── */
.loading {
  display: flex; align-items: center; justify-content: center;
  padding: 48px; color: var(--text-muted); font-size: 13px; gap: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── UTILITY ── */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.ml-auto { margin-left: auto; }
.text-muted { color: var(--text-muted); }
.text-teal { color: var(--teal); }
.text-sm { font-size: 12px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.font-mono { font-family: 'Courier New', monospace; font-size: 12px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .sidebar { width: 48px; }
  .sidebar-logo-text, .sidebar-logo-sub, .nav-item span, .nav-badge, .nav-stub-badge,
  .sidebar-user-info, .btn-signout, .nav-section-label { display: none; }
  .nav-item { justify-content: center; padding: 10px 0; }
  .nav-item::before { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
