/* admin-sections.css - Section-specific styles for admin dashboard */

.btn-primary.btn-login { padding: 12px; font-size: 15px; margin-top: 4px; }

.sidebar {
  width: 260px; background: linear-gradient(180deg, #0c1222 0%, #111827 100%); color: var(--white);
  display: flex; flex-direction: column; flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
}
.sidebar-header h2 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sidebar-header span.sub {
  font-size: 10px; color: rgba(255,255,255,0.35); font-weight: 500; display: block;
  margin-top: 4px; letter-spacing: 0.8px; text-transform: uppercase;
}

.sidebar-nav { flex: 1; padding: 8px 10px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent; }
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; color: rgba(255,255,255,0.55);
  border-radius: 8px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1px; position: relative;
}
.nav-item:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.95); }
.nav-item.active {
  background: rgba(59,130,246,0.15); color: var(--white); font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.08);
}
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: var(--blue-500);
  box-shadow: 0 0 8px rgba(59,130,246,0.4);
}
.nav-item .icon { font-size: 15px; width: 22px; text-align: center; flex-shrink: 0; opacity: 0.7; }
.nav-item:hover .icon, .nav-item.active .icon { opacity: 1; }

.nav-group { margin-bottom: 2px; }
.nav-group-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; cursor: pointer; user-select: none;
  transition: all 0.15s ease;
}
.nav-group-toggle:hover .nav-section-label { color: rgba(255,255,255,0.5); }
.nav-group-toggle .nav-chevron {
  font-size: 10px; color: rgba(255,255,255,0.2);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-group.collapsed .nav-chevron { transform: rotate(-90deg); }
.nav-group-items {
  overflow: hidden; max-height: 800px;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  opacity: 1;
}
.nav-group.collapsed .nav-group-items { max-height: 0 !important; opacity: 0; }
.benchmark-lob-group.collapsed .benchmark-lob-body { display: none; }
.benchmark-lob-group.collapsed .benchmark-chevron { transform: rotate(-90deg); }

.sidebar-footer {
  padding: 12px; border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.15);
}
.sidebar-footer a {
  display: block; padding: 8px 12px; color: rgba(255,255,255,0.45);
  text-decoration: none; font-size: 13px; border-radius: 8px;
  transition: all var(--transition);
}
.sidebar-footer a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.logout-btn {
  width: 100%; padding: 8px; background: transparent;
  color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; font-size: 13px; cursor: pointer;
  font-family: inherit; transition: all var(--transition); margin-top: 8px;
}
.logout-btn:hover { background: rgba(239,68,68,0.12); color: #fca5a5; border-color: rgba(239,68,68,0.25); }

.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--gray-50); }
.main-header {
  padding: 18px 32px; background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.main-header h1 { font-size: 20px; font-weight: 700; color: var(--gray-900); letter-spacing: -0.3px; }
.content-area { flex: 1; overflow-y: auto; padding: 28px 32px; scroll-behavior: smooth; }

.dashboard-welcome {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 100%);
  border-radius: var(--radius-xl); padding: 32px 36px;
  margin-bottom: 24px; color: var(--white);
  position: relative; overflow: hidden;
  box-shadow: 0 4px 20px rgba(15,23,42,0.25);
}
.dashboard-welcome::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.dashboard-welcome::after {
  content: ''; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px;
  border-radius: 50%; opacity: 0.04;
  background: radial-gradient(circle, rgba(255,255,255,0.8), transparent 70%);
  pointer-events: none;
}
.dashboard-welcome h2 { font-size: 24px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.4px; position: relative; }
.dashboard-welcome p { font-size: 14px; color: rgba(255,255,255,0.55); margin: 0; position: relative; }

.quick-action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.quick-action-grid .btn-secondary {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  font-size: 13px; justify-content: flex-start;
  border-radius: 10px; transition: all 0.2s ease;
}
.quick-action-grid .btn-secondary:hover {
  background: var(--blue-50); border-color: var(--blue-200); color: var(--blue-700);
  transform: translateY(-1px); box-shadow: var(--shadow-sm);
}
.dashboard-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.recent-activity-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100); transition: all 0.15s ease;
}
.recent-activity-item:last-child { border-bottom: none; }
.recent-activity-item:hover { background: var(--gray-50); }
.recent-activity-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); margin-top: 6px; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.recent-activity-text { font-size: 13px; color: var(--gray-700); line-height: 1.5; }
.recent-activity-time { font-size: 11px; color: var(--gray-400); margin-top: 2px; }
.recent-activity-empty { padding: 32px 16px; text-align: center; color: var(--gray-400); font-size: 13px; }
.integration-health-empty { color: var(--gray-400); font-size: 13px; padding: 4px 0; }

.bar-chart {
  display: flex; align-items: flex-end; gap: 3px;
  height: 200px; padding: 10px 0; overflow-x: auto;
}
.bar-chart .bar-col {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; min-width: 18px; height: 100%; justify-content: flex-end;
}
.bar-chart .bar {
  width: 100%; min-width: 14px; max-width: 28px;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
  border-radius: 4px 4px 0 0;
  transition: all var(--transition); position: relative;
  cursor: pointer;
}
.bar-chart .bar:hover { background: linear-gradient(180deg, var(--blue-400), var(--blue-600)); box-shadow: 0 -2px 8px rgba(59,130,246,0.2); }
.bar-chart .bar-label {
  font-size: 9px; color: var(--gray-400); margin-top: 6px;
  writing-mode: vertical-rl; text-orientation: mixed; white-space: nowrap;
  transform: rotate(180deg); max-height: 50px; overflow: hidden;
}
.bar-chart .bar-count {
  font-size: 9px; color: var(--gray-600); font-weight: 600; margin-bottom: 2px;
}

.tier-bar-container { margin-bottom: 14px; }
.tier-bar-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px; font-size: 13px;
}
.tier-bar-header .tier-name { font-weight: 600; }
.tier-bar-header .tier-stats { color: var(--gray-500); font-size: 12px; font-variant-numeric: tabular-nums; }
.tier-bar-track {
  height: 24px; background: var(--gray-100); border-radius: 12px;
  overflow: hidden;
}
.tier-bar-fill {
  height: 100%; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--white);
  min-width: 30px; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.tier-bar-fill.confirmed { background: linear-gradient(90deg, var(--green-500), var(--green-600)); }
.tier-bar-fill.reference { background: linear-gradient(90deg, var(--amber-500), var(--amber-600)); }
.tier-bar-fill.refusal { background: linear-gradient(90deg, var(--red-500), var(--red-600)); }

.rate-limit-row { margin-bottom: 16px; }
.rate-limit-header {
  display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px;
}
.rate-limit-header .rate-label { font-weight: 600; color: var(--gray-700); }
.rate-limit-header .rate-value { color: var(--gray-500); font-variant-numeric: tabular-nums; }
.rate-limit-track {
  height: 20px; background: var(--gray-100); border-radius: 10px; overflow: hidden;
}
.rate-limit-fill {
  height: 100%; border-radius: 10px; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; align-items: center; padding: 0 8px;
  font-size: 10px; font-weight: 600; color: var(--white);
}

.hs-gauge-container { display: flex; align-items: center; gap: 20px; }
.hs-gauge-ring {
  position: relative; width: 140px; height: 140px; flex-shrink: 0;
}
.hs-gauge-ring svg { transform: rotate(-90deg); }
.hs-gauge-ring .gauge-bg { fill: none; stroke: var(--gray-100); stroke-width: 10; }
.hs-gauge-ring .gauge-fill { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 0.6s ease, stroke 0.3s ease; }
.hs-gauge-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center;
}
.hs-gauge-center .gauge-pct { font-size: 28px; font-weight: 700; color: var(--gray-800); font-variant-numeric: tabular-nums; }
.hs-gauge-center .gauge-sub { font-size: 11px; color: var(--gray-500); }
.hs-gauge-details { flex: 1; }
.hs-gauge-detail-row {
  display: flex; justify-content: space-between; padding: 8px 0;
  border-bottom: 1px solid var(--gray-100); font-size: 13px;
}
.hs-gauge-detail-row:last-child { border-bottom: none; }
.hs-gauge-detail-row .detail-label { color: var(--gray-500); }
.hs-gauge-detail-row .detail-value { font-weight: 600; color: var(--gray-800); }
.hs-rt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hs-rt-card {
  text-align: center; padding: 18px; background: var(--gray-50); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100); transition: all 0.2s ease;
}
.hs-rt-card:hover { background: var(--white); border-color: var(--gray-200); box-shadow: var(--shadow-sm); }
.hs-rt-card .rt-value { font-size: 24px; font-weight: 700; color: var(--gray-800); font-variant-numeric: tabular-nums; }
.hs-rt-card .rt-unit { font-size: 12px; color: var(--gray-400); }
.hs-rt-card .rt-label { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.hs-cache-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.hs-cache-bar .cache-label { font-size: 13px; color: var(--gray-600); min-width: 110px; }
.hs-cache-bar .cache-track {
  flex: 1; height: 20px; background: var(--gray-100); border-radius: 10px; overflow: hidden;
}
.hs-cache-bar .cache-fill {
  height: 100%; border-radius: 10px; transition: width 0.4s ease;
  display: flex; align-items: center; padding: 0 8px;
  font-size: 10px; font-weight: 600; color: var(--white);
}

.version-modal {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; width: 100%; max-width: 700px;
  box-shadow: var(--shadow-lg); max-height: 80vh; overflow-y: auto;
}
.version-modal h3 { margin-bottom: 16px; font-size: 16px; }
.version-timeline .version-entry {
  padding: 12px 16px; border-left: 3px solid var(--blue-500);
  margin-left: 8px; margin-bottom: 12px; background: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.version-timeline .version-entry:first-child { border-left-color: var(--green-500); }
.version-entry .version-num {
  font-weight: 700; font-size: 14px; color: var(--gray-800); margin-bottom: 4px;
}
.version-entry .version-meta {
  font-size: 12px; color: var(--gray-500); display: flex; gap: 16px; flex-wrap: wrap;
}
.version-entry .version-summary {
  font-size: 13px; color: var(--gray-700); margin-top: 6px;
}

.btn-history {
  padding: 4px 10px; background: var(--purple-100); color: var(--purple-600);
  border: none; border-radius: var(--radius); font-size: 11px;
  font-weight: 500; cursor: pointer; font-family: inherit;
  transition: all var(--transition); margin-right: 6px;
}
.btn-history:hover { background: #e9d5ff; }

.confirm-dialog-footer .btn-sm { min-width: 90px; }

.skeleton-card {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 37%, var(--gray-100) 63%);
  background-size: 800px 100%;
  border-radius: var(--radius); height: 16px;
  animation: shimmer 1.8s ease-in-out infinite; margin-bottom: 10px;
}

.nav-section-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px;
  color: rgba(255,255,255,0.3); padding: 0; margin: 0;
  transition: color 0.15s ease;
}
.doc-type-filter.active { background: var(--blue-500); color: var(--white); border-color: var(--blue-500); }
.staff-role-filter.active, .bob-role-filter.active { background: var(--blue-500); color: var(--white); border-color: var(--blue-500); }
.bob-role-filter { padding: 4px 12px; border-radius: 6px; border: 1px solid var(--gray-200); background: var(--white); cursor: pointer; font-size: 12px; font-weight: 500; }
.getting-started-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; }
.getting-started-item:last-child { border-bottom: none; }
.getting-started-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--gray-300); display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.getting-started-check.done { background: var(--green-500); border-color: var(--green-500); color: white; }
.integration-status-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius); border: 1px solid var(--gray-200); font-size: 13px; font-weight: 500; }
.integration-status-badge .status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.integration-status-badge .status-dot.connected { background: var(--green-500); }
.integration-status-badge .status-dot.disconnected { background: var(--gray-300); }

.sidebar-toggle-btn {
  display: none; position: fixed; top: 12px; left: 12px; z-index: 201;
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--gray-200);
  background: var(--white); color: var(--navy); cursor: pointer;
  align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}
.sidebar-toggle-btn:hover { background: var(--gray-50); }
.sidebar-toggle-btn svg { width: 18px; height: 18px; }
.sidebar-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3);
  z-index: 149; opacity: 0; transition: opacity 0.3s ease;
}
.sidebar-backdrop.active { display: block; opacity: 1; }

@media (max-width: 1100px) {
  .sidebar-toggle-btn { display: flex; }
  .sidebar {
    position: fixed; left: -270px; top: 0; bottom: 0; width: 260px;
    z-index: 150; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.2);
  }
  .sidebar.sidebar-open { left: 0; }
  .content-area { padding: 24px 20px; margin-left: 0; }
  .main-header { padding: 16px 20px; }
  .main-header h1 { font-size: 18px; }
}
@media (max-width: 768px) {
  .sidebar { display: none; }
  .sidebar.sidebar-open { display: flex; }
  .content-area { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .config-form .form-row { grid-template-columns: 1fr; }
  .login-card { margin: 16px; padding: 32px 24px; }
  .main-header h1 { font-size: 16px; }
  .card-header { padding: 14px 16px; }
  .card-body { padding: 16px; }
  .dashboard-welcome { padding: 20px !important; }
  .dashboard-welcome h2 { font-size: 18px !important; }
  .quick-action-grid { grid-template-columns: 1fr !important; }
  .dashboard-bottom-grid { grid-template-columns: 1fr !important; }
  #sec-analytics > div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  #sec-hawksoft-metrics > div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  #sec-book-of-business > div > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  #bobOverviewGrid { grid-template-columns: repeat(2, 1fr) !important; }
  .hs-gauge-container { flex-direction: column; }
  .hs-rt-grid { grid-template-columns: 1fr 1fr; }
  .bob-drawer { width: 100% !important; max-width: 480px; }
  .bob-matrix-wrap { overflow-x: auto; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .content-area { padding: 12px; }
  #bobOverviewGrid { grid-template-columns: 1fr !important; }
  .hs-rt-grid { grid-template-columns: 1fr; }
}
.bob-skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 37%, var(--gray-100) 63%);
  background-size: 800px 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: 8px;
}
.bob-date-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 0; margin-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}
.bob-date-btn {
  padding: 6px 16px; border-radius: 8px; border: 1px solid var(--gray-200);
  background: var(--white); cursor: pointer; font-size: 13px; font-weight: 500;
  color: var(--gray-600); transition: all 0.15s ease;
}
.bob-date-btn:hover { border-color: var(--blue-300); color: var(--blue-600); }
.bob-date-btn.active { background: var(--blue-500); color: var(--white); border-color: var(--blue-500); }
.bob-stat-card {
  background: var(--white); border-radius: 12px; padding: 20px 24px;
  border: 1px solid var(--gray-200); position: relative; overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.bob-stat-card::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.04) 0%, transparent 70%);
  transform: translate(15px, -15px); pointer-events: none;
}
.bob-stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.bob-stat-card .icon-wrap {
  width: 42px; height: 42px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px;
  transition: transform 0.2s ease;
}
.bob-stat-card:hover .icon-wrap { transform: scale(1.05); }
.bob-stat-card .stat-val { font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.bob-stat-card .stat-lbl { font-size: 12px; color: var(--gray-500); margin-top: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; }
.bob-panel {
  background: var(--white); border-radius: 12px; border: 1px solid var(--gray-200);
  margin-bottom: 20px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease;
}
.bob-panel:hover { box-shadow: var(--shadow-md); }
.bob-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--gray-100);
}
.bob-panel-header h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin: 0; }
.bob-panel-body { padding: 0; }
.bob-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bob-table thead th {
  text-align: left; padding: 10px 16px; color: var(--gray-500);
  font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 2px solid var(--gray-200); white-space: nowrap;
}
.bob-table tbody tr { border-bottom: 1px solid var(--gray-50); transition: background 0.1s ease; }
.bob-table tbody tr:hover { background: var(--gray-50); }
.bob-table tbody tr.clickable { cursor: pointer; }
.bob-table tbody tr.clickable:hover { background: #eff6ff; }
.bob-table tbody td { padding: 10px 16px; }
.bob-drawer-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.3); z-index: 999; opacity: 0;
  transition: opacity 0.25s ease; pointer-events: none;
}
.bob-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.bob-drawer {
  position: fixed; top: 0; right: -640px; bottom: 0; width: 620px;
  background: var(--white); z-index: 1000; box-shadow: -8px 0 30px rgba(0,0,0,0.12);
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1); display: flex; flex-direction: column;
}
.bob-drawer.open { right: 0; }
.bob-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--gray-200);
}
.bob-drawer-head h3 { font-size: 16px; font-weight: 700; margin: 0; }
.bob-drawer-close {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--gray-200);
  background: var(--white); cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 16px; color: var(--gray-500);
  transition: all 0.15s ease;
}
.bob-drawer-close:hover { background: var(--gray-50); color: var(--navy); }
.bob-drawer-body { flex: 1; overflow-y: auto; padding: 24px; }
.bob-matrix-wrap { overflow-x: auto; }
.bob-matrix { width: 100%; border-collapse: collapse; font-size: 12px; }
.bob-matrix th, .bob-matrix td { padding: 8px 10px; text-align: right; white-space: nowrap; }
.bob-matrix th { font-weight: 600; color: var(--gray-500); font-size: 11px; text-transform: uppercase; }
.bob-matrix th:first-child, .bob-matrix td:first-child { text-align: left; position: sticky; left: 0; background: var(--white); z-index: 1; font-weight: 600; }
.bob-matrix tbody tr:hover { background: var(--gray-50); }
.bob-matrix tbody tr:hover td:first-child { background: var(--gray-50); }
.bob-matrix .heat-0 { background: transparent; }
.bob-matrix .heat-1 { background: #eff6ff; }
.bob-matrix .heat-2 { background: #dbeafe; }
.bob-matrix .heat-3 { background: #bfdbfe; }
.bob-matrix .heat-4 { background: #93c5fd; }
.bob-matrix .heat-5 { background: #60a5fa; color: white; }
.bob-section-title {
  font-size: 13px; font-weight: 700; color: var(--gray-400); text-transform: uppercase;
  letter-spacing: 0.8px; margin: 28px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-100);
}
.bob-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
  border-radius: 6px; font-size: 11px; font-weight: 600;
}
.bob-mini-chart { height: 200px; position: relative; }

.role-hidden { display: none !important; }

.role-picker-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(15,23,42,0.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease;
}
.role-picker-card {
  background: #fff; border-radius: 20px; padding: 40px 36px 36px;
  max-width: 640px; width: 90vw; box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  animation: slideUp 0.4s cubic-bezier(0.16,1,0.3,1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.role-picker-header {
  text-align: center; margin-bottom: 28px;
}
.role-picker-header h2 {
  font-size: 22px; font-weight: 700; color: var(--gray-900); margin: 0 0 6px;
}
.role-picker-header p {
  font-size: 14px; color: var(--gray-500); margin: 0;
}
.role-picker-options {
  display: flex; flex-direction: column; gap: 12px;
}
.role-picker-option {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border: 2px solid var(--gray-100); border-radius: 14px;
  background: #fff; cursor: pointer; text-align: left;
  transition: all 0.2s ease; width: 100%; font-family: inherit;
}
.role-picker-option:hover {
  border-color: var(--blue-500); background: var(--blue-50);
  box-shadow: 0 4px 16px rgba(59,130,246,0.12);
  transform: translateY(-1px);
}
.role-picker-icon {
  font-size: 28px; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-50); border-radius: 12px; flex-shrink: 0;
}
.role-picker-option:hover .role-picker-icon {
  background: var(--blue-100);
}
.role-picker-info { flex: 1; min-width: 0; }
.role-picker-name {
  font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 2px;
}
.role-picker-tagline {
  font-size: 12px; font-weight: 600; color: var(--blue-600); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.3px;
}
.role-picker-desc {
  font-size: 13px; color: var(--gray-500); line-height: 1.4;
}
.role-picker-arrow {
  font-size: 18px; color: var(--gray-300); flex-shrink: 0;
  transition: transform 0.2s;
}
.role-picker-option:hover .role-picker-arrow {
  color: var(--blue-500); transform: translateX(3px);
}

.role-switcher {
  position: relative; margin-bottom: 6px;
}
.role-switcher-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 8px 12px; border: none; border-radius: 8px;
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.75);
  font-size: 12px; font-family: inherit; cursor: pointer;
  transition: background 0.15s;
}
.role-switcher-btn:hover {
  background: rgba(255,255,255,0.12); color: #fff;
}
.role-switcher-chevron {
  font-size: 10px; opacity: 0.5;
}
.role-switcher-menu {
  position: absolute; bottom: calc(100% + 6px); left: 0; right: 0;
  background: #1e293b; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 4px; z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.role-menu-item {
  display: block; width: 100%; padding: 8px 12px; border: none;
  border-radius: 6px; background: transparent; color: rgba(255,255,255,0.7);
  font-size: 12px; font-family: inherit; cursor: pointer;
  text-align: left; transition: background 0.15s;
}
.role-menu-item:hover {
  background: rgba(255,255,255,0.1); color: #fff;
}
.role-menu-item.active {
  background: rgba(59,130,246,0.2); color: var(--blue-400);
}
@media (max-width:600px) {
  .role-picker-card { padding: 28px 20px 24px; }
  .role-picker-option { padding: 14px 14px; gap: 12px; }
  .role-picker-icon { width: 40px; height: 40px; font-size: 22px; }
  .role-picker-desc { display: none; }
}
