/* Summit CRM - Premium Stylesheet */

:root {
  --summit-dark: #0f1629;
  --summit-navy: #1a2744;
  --summit-blue: #1e3a8a;
  --summit-accent: #3b82f6;
  --summit-sky: #0ea5e9;
  --summit-green: #10b981;
  --summit-amber: #f59e0b;
  --summit-red: #ef4444;
  --summit-purple: #8b5cf6;
  --summit-gray: #64748b;
  --summit-light: #f1f5f9;
  --sidebar-w: 260px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f0f4f8;
  color: #1e293b;
  min-height: 100vh;
}

/* ─── SIDEBAR ─── */
#sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w);
  background: var(--summit-dark);
  display: flex; flex-direction: column;
  z-index: 100; overflow: hidden;
  box-shadow: 4px 0 24px rgba(0,0,0,0.3);
}

.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 12px;
}

.sidebar-logo .logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: white; font-weight: 800; flex-shrink: 0;
}

.sidebar-logo h1 { color: white; font-size: 17px; font-weight: 700; line-height: 1.2; }
.sidebar-logo span { color: rgba(255,255,255,0.45); font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; }

.sidebar-user {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 10px;
}

.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white; flex-shrink: 0;
}

.sidebar-user .user-info { flex: 1; min-width: 0; }
.sidebar-user .user-name { color: white; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .user-role { color: rgba(255,255,255,0.45); font-size: 11px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.nav-section-label {
  padding: 10px 20px 4px;
  color: rgba(255,255,255,0.3);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 16px;
  margin: 1px 8px;
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}

.nav-item:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
.nav-item.active { background: linear-gradient(135deg, #3b82f680, #1d4ed880); color: white; font-weight: 600; }
.nav-item.active .nav-icon { color: #60a5fa; }
.nav-icon { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }

.nav-badge {
  margin-left: auto;
  background: var(--summit-red);
  color: white; font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 10px; min-width: 18px; text-align: center;
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 8px;
}

.quick-add-btn {
  flex: 1;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white; border: none; border-radius: 8px;
  padding: 9px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 7px;
  transition: all 0.2s;
}
.quick-add-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,130,246,0.4); }

/* ─── MAIN CONTENT ─── */
#main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* ─── TOPBAR ─── */
#topbar {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 24px;
  height: 58px;
  display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.topbar-breadcrumb { font-size: 13px; color: var(--summit-gray); flex: 1; }
.topbar-breadcrumb span { color: #1e293b; font-weight: 600; }

.topbar-search {
  position: relative; width: 300px;
}

.topbar-search input {
  width: 100%; padding: 8px 12px 8px 36px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 8px; font-size: 13px; color: #1e293b;
  outline: none; transition: all 0.2s;
}
.topbar-search input:focus { border-color: var(--summit-accent); background: white; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.topbar-search .search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 13px; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.topbar-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: transparent; border: 1px solid #e2e8f0;
  color: #64748b; cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; position: relative;
}
.topbar-btn:hover { background: #f1f5f9; color: #1e293b; }
.notif-dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; background: var(--summit-red); border-radius: 50%; border: 1.5px solid white; }

/* ─── PAGE CONTENT ─── */
#page-content { flex: 1; padding: 24px; }

/* ─── SECTION HEADER ─── */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px; gap: 16px;
}
.page-title { font-size: 24px; font-weight: 700; color: #0f172a; line-height: 1.2; }
.page-subtitle { font-size: 13px; color: var(--summit-gray); margin-top: 3px; }
.page-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--summit-accent); color: white; }
.btn-primary:hover { background: #2563eb; box-shadow: 0 4px 12px rgba(59,130,246,0.35); }
.btn-secondary { background: white; color: #374151; border: 1px solid #d1d5db; }
.btn-secondary:hover { background: #f9fafb; border-color: #9ca3af; }
.btn-success { background: var(--summit-green); color: white; }
.btn-danger { background: var(--summit-red); color: white; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.btn-ghost { background: transparent; color: var(--summit-accent); border: 1px solid #e0e7ff; }
.btn-ghost:hover { background: #eff6ff; }

/* ─── CARDS ─── */
.card {
  background: white; border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.card-header {
  padding: 16px 20px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 14px; font-weight: 700; color: #0f172a; }
.card-subtitle { font-size: 12px; color: var(--summit-gray); margin-top: 2px; }
.card-body { padding: 16px 20px 20px; }

/* ─── KPI CARDS ─── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.kpi-blue::before { background: linear-gradient(90deg, #3b82f6, #0ea5e9); }
.kpi-green::before { background: linear-gradient(90deg, #10b981, #34d399); }
.kpi-amber::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.kpi-red::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.kpi-purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.kpi-sky::before { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }

.kpi-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 12px;
}
.kpi-blue .kpi-icon { background: #eff6ff; color: #3b82f6; }
.kpi-green .kpi-icon { background: #f0fdf4; color: #10b981; }
.kpi-amber .kpi-icon { background: #fffbeb; color: #f59e0b; }
.kpi-red .kpi-icon { background: #fef2f2; color: #ef4444; }
.kpi-purple .kpi-icon { background: #f5f3ff; color: #8b5cf6; }
.kpi-sky .kpi-icon { background: #f0f9ff; color: #0ea5e9; }

.kpi-value { font-size: 28px; font-weight: 800; color: #0f172a; line-height: 1; }
.kpi-label { font-size: 12px; color: var(--summit-gray); margin-top: 4px; font-weight: 500; }
.kpi-delta {
  font-size: 11px; font-weight: 600; margin-top: 8px;
  display: flex; align-items: center; gap: 4px;
}
.kpi-delta.up { color: var(--summit-green); }
.kpi-delta.down { color: var(--summit-red); }

/* ─── TABLES ─── */
.data-table-wrap { overflow-x: auto; border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead th {
  background: #f8fafc;
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.data-table tbody tr { border-bottom: 1px solid #f1f5f9; transition: background 0.15s; }
.data-table tbody tr:hover { background: #f8fafc; }
.data-table tbody td { padding: 11px 14px; color: #334155; vertical-align: middle; }
.data-table tbody tr:last-child { border-bottom: none; }

/* ─── TABLE TOOLBAR ─── */
.table-toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.search-input {
  flex: 1; min-width: 200px;
  padding: 8px 12px 8px 34px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 8px; font-size: 13px;
  outline: none; position: relative;
}
.search-input:focus { border-color: var(--summit-accent); background: white; }

.search-wrap { position: relative; flex: 1; min-width: 200px; }
.search-wrap .si { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 13px; }
.search-wrap input { width: 100%; padding: 8px 12px 8px 32px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; font-size: 13px; outline: none; }
.search-wrap input:focus { border-color: var(--summit-accent); background: white; }

.filter-select {
  padding: 8px 12px; background: #f8fafc;
  border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 12px; color: #374151; cursor: pointer; outline: none;
}
.filter-select:focus { border-color: var(--summit-accent); }

/* ─── BADGES / STATUS ─── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge-blue { background: #eff6ff; color: #2563eb; }
.badge-green { background: #f0fdf4; color: #16a34a; }
.badge-amber { background: #fffbeb; color: #d97706; }
.badge-red { background: #fef2f2; color: #dc2626; }
.badge-purple { background: #f5f3ff; color: #7c3aed; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-sky { background: #f0f9ff; color: #0284c7; }
.badge-teal { background: #f0fdfa; color: #0d9488; }
.badge-orange { background: #fff7ed; color: #c2410c; }

/* ─── PROGRESS BAR ─── */
.progress-bar { background: #e2e8f0; border-radius: 4px; height: 6px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; transition: width 0.5s; }

/* ─── CHARTS ─── */
.chart-container { position: relative; }
canvas { max-width: 100%; }

/* ─── KANBAN BOARD ─── */
.kanban-wrap { overflow-x: auto; padding-bottom: 16px; }
.kanban-board { display: flex; gap: 14px; min-width: max-content; align-items: flex-start; }

.kanban-column {
  width: 240px; flex-shrink: 0;
  background: #f8fafc; border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.kanban-col-header {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: space-between;
}
.kanban-col-title { font-size: 12px; font-weight: 700; color: #374151; }
.kanban-count {
  background: white; border: 1px solid #e2e8f0;
  color: #64748b; font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 10px;
}
.kanban-cards { padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 80px; }

.kanban-card {
  background: white; border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 12px; cursor: grab;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.kanban-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-1px); border-color: #c7d2fe; }
.kanban-card:active { cursor: grabbing; }
.kanban-card-title { font-size: 12.5px; font-weight: 600; color: #1e293b; margin-bottom: 6px; }
.kanban-card-company { font-size: 11px; color: #64748b; margin-bottom: 8px; }
.kanban-card-meta { display: flex; align-items: center; justify-content: space-between; }
.kanban-card-value { font-size: 12px; font-weight: 700; color: #059669; }
.kanban-card-owner { display: flex; align-items: center; gap: 5px; }

/* ─── TIMELINE ─── */
.timeline { position: relative; padding: 0; list-style: none; }
.timeline::before {
  content: ''; position: absolute; left: 16px; top: 0; bottom: 0;
  width: 2px; background: #e2e8f0;
}
.timeline-item {
  position: relative; padding-left: 44px; margin-bottom: 20px;
}
.timeline-dot {
  position: absolute; left: 8px; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid white;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
}
.timeline-dot.call { background: #3b82f6; color: white; }
.timeline-dot.email { background: #8b5cf6; color: white; }
.timeline-dot.note { background: #f59e0b; color: white; }
.timeline-dot.meeting { background: #10b981; color: white; }
.timeline-dot.walk { background: #0ea5e9; color: white; }
.timeline-dot.stage { background: #64748b; color: white; }
.timeline-dot.internal { background: #6366f1; color: white; }

.timeline-content { background: #f8fafc; border-radius: 8px; padding: 10px 12px; border: 1px solid #e2e8f0; }
.timeline-meta { font-size: 11px; color: #94a3b8; margin-top: 4px; display: flex; gap: 10px; }
.timeline-text { font-size: 13px; color: #374151; }
.timeline-type-label { font-size: 11px; font-weight: 700; color: #64748b; margin-bottom: 2px; }

/* ─── FORMS ─── */
.form-grid { display: grid; gap: 16px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 12px; font-weight: 600; color: #374151; }
.form-input, .form-select, .form-textarea {
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px; font-size: 13px; color: #1e293b;
  background: white; outline: none; transition: all 0.2s;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--summit-accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-textarea { resize: vertical; min-height: 80px; }

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,22,41,0.6);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }

.modal {
  background: white; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-width: 640px; width: 92%; max-height: 88vh;
  overflow-y: auto; transform: scale(0.95);
  transition: transform 0.2s;
}
.modal-overlay.show .modal { transform: scale(1); }
.modal-lg { max-width: 800px; }
.modal-xl { max-width: 1000px; }

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: flex-start; justify-content: space-between;
  position: sticky; top: 0; background: white; z-index: 1;
}
.modal-title { font-size: 17px; font-weight: 700; color: #0f172a; }
.modal-body { padding: 20px 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  position: sticky; bottom: 0; background: white;
}
.modal-close {
  background: none; border: none; cursor: pointer;
  color: #94a3b8; font-size: 18px; padding: 4px;
  border-radius: 4px; transition: color 0.15s;
}
.modal-close:hover { color: #1e293b; }

/* ─── TABS ─── */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid #e2e8f0; margin-bottom: 20px; }
.tab-btn {
  padding: 10px 18px; font-size: 13px; font-weight: 600;
  color: #64748b; background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  cursor: pointer; transition: all 0.15s; border-radius: 6px 6px 0 0;
}
.tab-btn:hover { color: #1e293b; background: #f8fafc; }
.tab-btn.active { color: var(--summit-accent); border-bottom-color: var(--summit-accent); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── GRID LAYOUTS ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

/* ─── STAT ROW ─── */
.stat-row { display: flex; gap: 6px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.stat-row:last-child { border-bottom: none; }
.stat-label { color: #64748b; flex: 1; }
.stat-value { font-weight: 600; color: #1e293b; }

/* ─── ALERT BOXES ─── */
.alert {
  padding: 12px 16px; border-radius: 8px;
  font-size: 13px; display: flex; gap: 10px; align-items: flex-start;
  border-left: 3px solid;
}
.alert-warning { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.alert-danger { background: #fef2f2; border-color: #ef4444; color: #991b1b; }
.alert-info { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }
.alert-success { background: #f0fdf4; border-color: #10b981; color: #065f46; }

/* ─── PIPELINE STAGE BAR ─── */
.stage-flow { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.stage-chip {
  padding: 5px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  background: #f1f5f9; color: #64748b;
  border: 1px solid #e2e8f0; cursor: pointer;
  transition: all 0.15s;
}
.stage-chip:hover { background: #e0e7ff; color: #4338ca; border-color: #c7d2fe; }
.stage-chip.active { background: #3b82f6; color: white; border-color: #3b82f6; }

/* ─── CHARTS GRID ─── */
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.chart-card { background: white; border-radius: 12px; border: 1px solid #e2e8f0; padding: 20px; }
.chart-card-title { font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.chart-card-sub { font-size: 12px; color: #64748b; margin-bottom: 16px; }

/* ─── DETAIL PANEL ─── */
.detail-header {
  background: linear-gradient(135deg, var(--summit-navy), var(--summit-dark));
  border-radius: 12px; padding: 28px;
  color: white; margin-bottom: 24px;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.detail-co-name { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.detail-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.detail-meta-item { font-size: 13px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 5px; }

.detail-body { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.detail-main { display: flex; flex-direction: column; gap: 20px; }
.detail-side { display: flex; flex-direction: column; gap: 20px; }

/* ─── LEADERBOARD ─── */
.leader-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.leader-row:last-child { border-bottom: none; }
.leader-rank { font-size: 14px; font-weight: 800; color: #94a3b8; width: 20px; text-align: center; }
.leader-rank.gold { color: #f59e0b; }
.leader-rank.silver { color: #94a3b8; }
.leader-rank.bronze { color: #b45309; }
.leader-info { flex: 1; }
.leader-name { font-size: 13px; font-weight: 600; color: #1e293b; }
.leader-metric { font-size: 11px; color: #64748b; }
.leader-value { font-size: 14px; font-weight: 800; color: #0f172a; }

/* ─── NOTIFICATION ITEMS ─── */
.notif-item {
  display: flex; gap: 12px; padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9; transition: background 0.15s;
  cursor: pointer;
}
.notif-item:hover { background: #f8fafc; }
.notif-item.unread { background: #f0f9ff; }
.notif-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.notif-icon.alert { background: #fef2f2; color: #dc2626; }
.notif-icon.info { background: #eff6ff; color: #2563eb; }
.notif-icon.success { background: #f0fdf4; color: #16a34a; }
.notif-icon.warning { background: #fffbeb; color: #d97706; }
.notif-text { flex: 1; }
.notif-title { font-size: 13px; font-weight: 600; color: #1e293b; }
.notif-msg { font-size: 12px; color: #64748b; margin-top: 2px; }
.notif-time { font-size: 11px; color: #94a3b8; flex-shrink: 0; margin-top: 2px; }

/* ─── EMPTY STATES ─── */
.empty-state {
  text-align: center; padding: 48px 24px;
  color: #94a3b8;
}
.empty-state i { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: #64748b; margin-bottom: 6px; }
.empty-state p { font-size: 13px; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
  .detail-body { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  #sidebar { transform: translateX(-260px); transition: transform 0.3s; }
  #sidebar.mobile-open { transform: translateX(0); width: 260px; }
  .grid-2, .grid-3, .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  #topbar { padding: 0 16px; }
  #page-content { padding: 16px; }
  .topbar-search { width: 180px; }
}

@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .page-header { flex-direction: column; }
  .kanban-board { min-width: unset; flex-direction: column; }
  .kanban-column { width: 100%; }
  .modal { max-width: calc(100vw - 32px); }
}

/* ─── MISC UTILS ─── */
.text-right { text-align: right; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.color-gray { color: #64748b; }
.color-green { color: #10b981; }
.color-red { color: #ef4444; }
.color-blue { color: #3b82f6; }
.color-amber { color: #f59e0b; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ─── PAGE TRANSITIONS ─── */
.page-enter { animation: pageSlideIn 0.2s ease-out; }
@keyframes pageSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── DRAG OVER ─── */
.kanban-column.drag-over { background: #eff6ff; border-color: #93c5fd; }
.kanban-card.dragging { opacity: 0.5; transform: rotate(2deg); }

/* ─── SCORE CIRCLES ─── */
.score-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white;
}
.score-high { background: #10b981; }
.score-med { background: #f59e0b; }
.score-low { background: #ef4444; }

/* ─── FEATURE FLAGS ─── */
.flag-strategic { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #7c3aed; }
.flag-national { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #0284c7; }

/* ─── ACTIVITY FEED ─── */
.activity-feed { list-style: none; }
.activity-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; margin-top: 1px; }
.activity-icon.call { background: #eff6ff; color: #3b82f6; }
.activity-icon.email { background: #f5f3ff; color: #8b5cf6; }
.activity-icon.note { background: #fffbeb; color: #f59e0b; }
.activity-icon.stage { background: #f1f5f9; color: #64748b; }
.activity-icon.walk { background: #f0f9ff; color: #0ea5e9; }
.activity-icon.internal { background: #eef2ff; color: #6366f1; }
.activity-text { flex: 1; font-size: 12.5px; color: #374151; }
.activity-meta { font-size: 11px; color: #94a3b8; flex-shrink: 0; }
