/* =============================================================
   CAMAS — Corporate Activities Monitoring & Assessment System
   Energy Commission of Nigeria

   Ported from the approved prototype (prototype/camas_final.html).
   Plain CSS on purpose: no build step is required to deploy, which
   keeps cPanel releases to a file copy.
   ============================================================= */

/* ===== CSS VARIABLES ===== */
/* The Commission's colours, sampled from the crest in public/img: the deep
   green of the lettering (#01522B–#0F6F49) and the amber of the sun
   (#F4971A). The semantic four — success, warning, danger, info — are left
   alone: green still has to mean "good" when the whole system is green, and
   the brand green is a darker forest than the emerald used for success. */
:root {
  --navy: #06301D;            /* sidebar and dark panels */
  --slate: #10402A;           /* hover on those panels */
  --primary: #0F6E45;
  --primary-dark: #06482B;
  --primary-light: #E4F1EA;
  --accent: #F4971A;          /* the sun in the crest */
  --focus: rgba(15, 110, 69, 0.14);
  --bg: #F2F6F3;
  --card: #FFFFFF;
  --text: #1B2B23;
  --text2: #5C6B63;
  --success: #059669;
  --warning: #D97706;
  --danger: #DC2626;
  --info: #2563EB;
  --border: #DDE7E1;
  --purple: #7C3AED;
  --orange: #F4971A;
  --pink: #DB2777;
  --indigo: #4F46E5;
  --font-h: 'Outfit', sans-serif;
  --font-b: 'DM Sans', sans-serif;
  --font-c: 'JetBrains Mono', monospace;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-b); background: var(--bg); color: var(--text); }

/* ===== LOGIN SCREEN ===== */
#loginScreen {
  position: fixed; inset: 0; background: var(--bg);
  z-index: 500; display: flex; align-items: center; justify-content: center;
}
.login-card {
  background: white; width: 440px; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12); padding: 40px;
}
.login-logo {
  font-family: var(--font-h); font-size: 32px; font-weight: 800;
  color: var(--navy); letter-spacing: 2px; margin-bottom: 4px;
}
.login-logo span { color: var(--primary); }
.login-subtitle { font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.login-ecn {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--primary); font-weight: 600; margin-bottom: 28px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.login-label { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 5px; display: block; }
.login-input {
  width: 100%; height: 44px; border: 1px solid #C6D4CB;
  border-radius: 8px; padding: 0 14px; font-size: 13.5px;
  font-family: var(--font-b); color: var(--text); margin-bottom: 14px;
  transition: all 0.2s; background: white;
}
.login-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus); }
.pw-wrap { position: relative; margin-bottom: 22px; }
.pw-wrap .login-input { margin-bottom: 0; padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  cursor: pointer; color: var(--text2); font-size: 16px; background: none; border: none;
}
.login-btn {
  width: 100%; height: 44px; background: var(--primary); color: white;
  border: none; border-radius: 10px; font-size: 14px; font-weight: 700;
  font-family: var(--font-h); cursor: pointer; transition: all 0.2s; margin-bottom: 24px;
}
.login-btn:hover { background: var(--primary-dark); }
.login-divider {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text2); text-align: center; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; border-top: 1px solid var(--border);
}
.quick-roles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.quick-roles .full { grid-column: 1 / -1; }
.role-btn {
  padding: 8px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
  font-family: var(--font-b); cursor: pointer; background: white;
  border: 1.5px solid; transition: all 0.2s; text-align: left;
  display: flex; flex-direction: column; gap: 1px;
}
.role-btn:hover { opacity: 0.85; }
.role-btn .rb-name { font-weight: 700; font-size: 11.5px; }
.role-btn .rb-email { font-size: 10px; font-weight: 400; opacity: 0.75; font-family: var(--font-c); }
.login-creds {
  margin-top: 14px; padding: 10px 14px; background: #F6FAF7;
  border-radius: 8px; font-size: 11px; color: var(--text2); text-align: center;
}

/* ===== APP SHELL ===== */
.app { display: none; }
.app.show { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: 250px; background: var(--navy); position: fixed;
  height: 100vh; top: 0; left: 0; display: flex;
  flex-direction: column; z-index: 100; overflow-y: auto;
}
.sidebar .brand { padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar .brand h1 {
  font-family: var(--font-h); font-size: 22px; font-weight: 800;
  color: white; letter-spacing: 1px;
}
.sidebar .brand p { font-size: 10px; color: var(--text2); margin-top: 3px; }
.sidebar .brand .ecn-tag {
  font-size: 9px; color: var(--primary); text-transform: uppercase;
  letter-spacing: 0.5px; font-weight: 600; margin-top: 2px;
}
.sidebar nav { flex: 1; padding: 10px 0; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 20px;
  color: #9BB3A4; font-size: 13.5px; font-weight: 500; text-decoration: none;
  border-left: 3px solid transparent; cursor: pointer; transition: all 0.2s;
  user-select: none;
}
.sidebar nav a:hover { background: var(--slate); color: white; }
.sidebar nav a.active {
  background: rgba(255,255,255,0.10); color: white;
  border-left-color: var(--accent); font-weight: 600;
}
.sidebar nav a .badge-count {
  margin-left: auto; background: var(--danger); color: white;
  font-size: 10px; font-weight: 700; border-radius: 50%;
  width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
}
.sidebar-footer {
  padding: 16px 18px; border-top: 1px solid rgba(255,255,255,0.08);
}
.logout-btn {
  display: flex; align-items: center; gap: 8px; color: #9BB3A4;
  font-size: 13px; cursor: pointer; padding: 8px 0; transition: color 0.2s;
  background: none; border: none; font-family: var(--font-b); width: 100%;
}
.logout-btn:hover { color: white; }

/* ===== HEADER ===== */
.header {
  height: 60px; background: white; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: fixed; top: 0; left: 250px; right: 0; z-index: 90;
}
.header-left { display: flex; align-items: center; gap: 16px; }
.header-right { display: flex; align-items: center; gap: 16px; }
.page-title { font-family: var(--font-h); font-size: 18px; font-weight: 700; color: var(--text); }
.user-pill { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-family: var(--font-h);
  font-weight: 700; font-size: 13px; color: white; flex-shrink: 0;
}
.user-info .uname { font-size: 13px; font-weight: 600; }
.user-info .urole { font-size: 11px; color: var(--text2); }
.period-select {
  border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px;
  font-size: 12.5px; font-family: var(--font-b); color: var(--text); background: white; cursor: pointer;
}

/* ===== ROLE SWITCHER ===== */
.role-switcher { position: relative; }
.role-pill {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: 999px; border: 2px solid; cursor: pointer;
  font-size: 12.5px; font-weight: 600; font-family: var(--font-b);
  background: white; transition: all 0.2s;
}
.role-dropdown {
  position: absolute; top: 44px; right: 0; width: 240px; background: white;
  border-radius: 12px; border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12); display: none; z-index: 200;
  overflow: hidden; padding: 6px;
}
.role-dropdown.show { display: block; animation: fadeDown 0.15s ease; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.role-option {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500;
  transition: background 0.15s;
}
.role-option:hover { background: var(--bg); }
.role-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ===== NOTIFICATIONS ===== */
.notif-wrap { position: relative; }
.notif-bell {
  cursor: pointer; position: relative; font-size: 18px; color: var(--text2);
  padding: 6px; display: flex; align-items: center; justify-content: center;
}
.notif-bell .dot {
  position: absolute; top: 2px; right: 2px; width: 16px; height: 16px;
  background: var(--danger); border-radius: 50%; font-size: 9px;
  font-weight: 700; color: white; display: flex; align-items: center; justify-content: center;
}
.notif-dropdown {
  position: absolute; top: 44px; right: 0; width: 320px; background: white;
  border-radius: 12px; border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12); display: none; z-index: 200; overflow: hidden;
}
.notif-dropdown.show { display: block; }
.notif-header {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 13px; display: flex; justify-content: space-between;
}
.notif-item { padding: 11px 16px; border-bottom: 1px solid #F6FAF7; font-size: 12.5px; line-height: 1.45; }
.notif-time { font-size: 10px; color: var(--text2); margin-top: 2px; }

/* ===== MAIN CONTENT ===== */
.main { margin-left: 250px; margin-top: 60px; padding: 24px 28px; min-height: calc(100vh - 60px); }

/* ===== PAGE TRANSITIONS ===== */
.page { display: none; }
.page.active { display: block; animation: fadeUp 0.25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== CARDS ===== */
.card {
  background: var(--card); border-radius: 12px; border: 1px solid var(--border);
  padding: 20px 22px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); transform: translateY(-1px); transition: all 0.2s; }
.card h3 {
  font-family: var(--font-h); font-size: 15px; font-weight: 700;
  margin-bottom: 14px; color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
}

/* ===== STAT CARDS ===== */
.stats-row { display: grid; gap: 16px; margin-bottom: 22px; }
.cols-5 { grid-template-columns: repeat(5, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: 1fr 1fr; }
.stat-card {
  background: white; border-radius: 12px; border: 1px solid var(--border);
  padding: 18px 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  cursor: default; transition: all 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.stat-card .sc-label {
  font-size: 12px; color: var(--text2); font-weight: 500;
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.stat-card .sc-value { font-family: var(--font-h); font-size: 28px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-card .sc-trend { font-size: 11.5px; font-weight: 600; margin-top: 5px; }
.sc-trend.up { color: var(--success); }
.sc-trend.down { color: var(--danger); }
.sc-trend.warn { color: var(--warning); }
.sc-trend.neutral { color: var(--text2); }

/* ===== GRID LAYOUTS ===== */
.row { display: grid; gap: 20px; margin-bottom: 22px; }
.row-6040 { grid-template-columns: 3fr 2fr; }
.row-4060 { grid-template-columns: 2fr 3fr; }
.row-50 { grid-template-columns: 1fr 1fr; }
.row-334 { grid-template-columns: 3fr 3fr 4fr; }

/* ===== CHART WRAPPERS (prevents infinite scroll) ===== */
.chart-wrap { position: relative; }
.chart-wrap-280 { position: relative; height: 280px; }
.chart-wrap-260 { position: relative; height: 260px; }
.chart-wrap-240 { position: relative; height: 240px; }
.chart-wrap-220 { position: relative; height: 220px; }
.chart-wrap-200 { position: relative; height: 200px; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.b-ok { background: #DCFCE7; color: #166534; }
.b-warn { background: #FEF3C7; color: #92400E; }
.b-err { background: #FEE2E2; color: #991B1B; }
.b-info { background: #DBEAFE; color: #1E40AF; }
.b-orange { background: #FFEDD5; color: #9A3412; }
.b-gray { background: #EFF5F1; color: #40544A; }
.b-purple { background: #EDE9FE; color: #5B21B6; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px;
  border-radius: 8px; font-size: 13px; font-weight: 600; font-family: var(--font-b);
  cursor: pointer; border: none; transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: white; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-secondary:hover { background: var(--primary-light); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { opacity: 0.9; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { opacity: 0.9; }
.btn-ghost { background: transparent; color: var(--text2); }
.btn-ghost:hover { background: var(--bg); }
.btn-sm { padding: 5px 14px; font-size: 12px; border-radius: 6px; }
.btn-xs { padding: 3px 10px; font-size: 11px; border-radius: 5px; }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--text2);
  border-bottom: 2px solid var(--border); white-space: nowrap;
}
tbody td { padding: 11px 14px; border-bottom: 1px solid #F6FAF7; color: var(--text); }
tbody tr:hover td { background: #F6FAF7; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; height: 40px; border: 1px solid #C6D4CB; border-radius: 8px;
  padding: 0 12px; font-size: 13px; font-family: var(--font-b); color: var(--text);
  background: white; transition: all 0.2s;
}
.form-group textarea { height: 100px; padding: 10px 12px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus);
}
.form-group .field-error { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(220,38,38,0.1) !important; }
.form-group .err-msg { color: var(--danger); font-size: 11px; margin-top: 3px; display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.radio-group { display: flex; gap: 20px; margin-top: 6px; }
.radio-group label { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 13px; cursor: pointer; }
.radio-group input[type="radio"] { accent-color: var(--primary); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center; z-index: 300;
}
.modal-overlay.show { display: flex; }
.modal {
  background: white; border-radius: 16px; max-width: 680px; width: 92%;
  max-height: 85vh; overflow-y: auto; padding: 30px; position: relative;
  animation: scaleIn 0.2s ease;
}
@keyframes scaleIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 16px; right: 18px; font-size: 22px; cursor: pointer;
  color: var(--text2); background: none; border: none; line-height: 1;
}

/* ===== DRAWER ===== */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: none; z-index: 250;
}
.drawer-overlay.show { display: block; }
.drawer {
  position: fixed; top: 0; right: -480px; width: 460px; height: 100vh;
  background: white; z-index: 260; overflow-y: auto; padding: 28px;
  box-shadow: -4px 0 30px rgba(0,0,0,0.15); transition: right 0.3s ease;
}
.drawer.open { right: 0; }
.drawer-close {
  position: absolute; top: 16px; right: 18px; font-size: 22px;
  cursor: pointer; color: var(--text2); background: none; border: none;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 400;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 12px 18px; border-radius: 10px; color: white; font-size: 13px;
  font-weight: 500; min-width: 280px; display: flex; align-items: center;
  gap: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  animation: slideInRight 0.3s ease;
}
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-ok { background: var(--success); }
.toast-warn { background: var(--warning); }
.toast-err { background: var(--danger); }
.toast-info { background: var(--info); }

/* ===== PROGRESS BARS ===== */
.prog-bar { height: 6px; background: #DDE7E1; border-radius: 3px; overflow: hidden; }
.prog-bar .fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }

/* ===== AI OUTPUT ===== */
.ai-output {
  background: #F0FDFA; border: 1px solid #99F6E4; border-radius: 10px;
  padding: 18px; font-size: 13.5px; line-height: 1.75; color: var(--text); margin: 14px 0;
}
.ai-steps { display: flex; gap: 6px; margin: 12px 0; }
.ai-step {
  padding: 4px 14px; font-size: 11px; font-weight: 600;
  border-radius: 4px; background: #DDE7E1; color: var(--text2);
}
.ai-step.done { background: #DCFCE7; color: #166534; }
.ai-step.active { background: #DBEAFE; color: #1E40AF; }

/* ===== KPI CARDS ===== */
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpi-card { background: white; border-radius: 12px; border: 1px solid var(--border); padding: 16px 18px; }
.kpi-area-tag { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; display: inline-block; margin-bottom: 8px; }
.kpi-name { font-family: var(--font-h); font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.kpi-vals { display: flex; align-items: baseline; gap: 8px; }
.kpi-actual { font-family: var(--font-h); font-size: 26px; font-weight: 800; }
.kpi-target { font-size: 12px; color: var(--text2); }

/* ===== KANBAN ===== */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kanban-col { background: #F6FAF7; border-radius: 10px; padding: 14px; min-height: 200px; }
.kanban-col-header {
  font-family: var(--font-h); font-size: 12px; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.kanban-count {
  background: var(--border); border-radius: 50%; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text);
}
.proj-card {
  background: white; border-radius: 10px; border: 1px solid var(--border);
  padding: 14px; margin-bottom: 10px; cursor: pointer; transition: all 0.15s;
}
.proj-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.08); transform: translateY(-1px); }

/* ===== UNIT CARDS ===== */
.unit-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.unit-card {
  background: white; border-radius: 12px; border: 1px solid var(--border);
  padding: 20px; cursor: pointer; transition: all 0.2s;
}
.unit-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.unit-score { font-family: var(--font-h); font-size: 32px; font-weight: 800; }

/* ===== REPORT CARDS ===== */
.report-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.report-card { background: white; border-radius: 12px; border: 1px solid var(--border); padding: 22px; text-align: center; }
.report-icon { font-size: 36px; margin-bottom: 10px; }
.report-title { font-family: var(--font-h); font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.report-desc { font-size: 12px; color: var(--text2); margin-bottom: 16px; line-height: 1.5; }

/* ===== SPINNER ===== */
.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.35);
  border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== PAGE HEADERS ===== */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.page-header h2 { font-family: var(--font-h); font-size: 22px; font-weight: 700; }
.filters-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.filters-bar select, .filters-bar input {
  height: 36px; border: 1px solid var(--border); border-radius: 6px;
  padding: 0 10px; font-size: 12.5px; font-family: var(--font-b); background: white; color: var(--text);
}

/* ===== INFO GRIDS ===== */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13px; }
.info-item strong { color: var(--text2); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.3px; display: block; margin-bottom: 2px; }

/* ===== ALERT ITEMS ===== */
.alert-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 8px; margin-bottom: 8px; font-size: 13px; line-height: 1.4; }
.alert-warn { background: #FEF3C7; color: #92400E; }
.alert-err { background: #FEE2E2; color: #991B1B; }
.alert-info { background: #DBEAFE; color: #1E40AF; }
.alert-ok { background: #DCFCE7; color: #166534; }

/* ===== SCORE COLORS ===== */
.score-good { color: var(--success); }
.score-warn { color: var(--warning); }
.score-bad { color: var(--danger); }
.bg-score-good { background: #DCFCE7; }
.bg-score-warn { background: #FEF3C7; }
.bg-score-bad { background: #FEE2E2; }

/* ===== MISC ===== */
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab { padding: 10px 22px; font-size: 13.5px; font-weight: 600; color: var(--text2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; font-family: var(--font-b); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.banner {
  background: var(--navy); border-left: 4px solid var(--primary); border-radius: 12px;
  padding: 20px 24px; margin-bottom: 22px; display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.banner-title { color: white; font-family: var(--font-h); font-size: 20px; font-weight: 700; }
.banner-sub { color: #9BB3A4; font-size: 13px; margin-top: 3px; }
.banner-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; padding: 6px 14px; text-align: center;
}
.chip .ch-val { color: white; font-family: var(--font-h); font-size: 18px; font-weight: 800; }
.chip .ch-label { color: #9BB3A4; font-size: 10px; margin-top: 1px; }
.summary-item {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 8px; cursor: pointer; transition: background 0.15s;
}
.summary-item:hover { background: #F6FAF7; }
.summary-item .si-title { font-weight: 600; font-size: 13px; }
.summary-item .si-meta { font-size: 11px; color: var(--text2); margin-top: 3px; display: flex; gap: 8px; align-items: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar { width: 60px; }
  .sidebar .brand p, .sidebar .brand .ecn-tag, .sidebar nav a span { display: none; }
  .sidebar .brand h1 { font-size: 14px; }
  .header { left: 60px; }
  .main { margin-left: 60px; }
  .stats-row.cols-5, .stats-row.cols-4 { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kanban { grid-template-columns: 1fr; }
  .report-cards { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .row-6040, .row-4060, .row-50 { grid-template-columns: 1fr; }
  .unit-cards { grid-template-columns: 1fr; }
}
