:root {
  --navy: #091a2e;
  --navy-light: #162b43;
  --navy-accent: #1e3e62;
  --blue: #005299;
  --blue2: #0077cc;
  --green: #10b981;
  --green2: #059669;
  --orange: #f59e0b;
  --purple: #8b5cf6;
  --red: #ef4444;
  --teal: #14b8a6;
  --bg: #f3f6f9;
  --line: #e2e8f0;
  --ink: #0f172a;
  --muted: #64748b;
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-card: 16px;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 20px 30px -10px rgba(0, 0, 0, 0.08);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--ink);
  font-size: 13.5px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.hidden {
  display: none !important;
}

/* ============ LOGIN ============ */
#login {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, #0a2e5c 0%, #001933 50%, #000c1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: hidden;
}

#login::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(58, 160, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  top: -100px;
  left: -100px;
  border-radius: 50%;
  pointer-events: none;
  animation: floatBg 18s ease-in-out infinite alternate;
}

#login::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(39, 174, 96, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: -100px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
  animation: floatBg2 15s ease-in-out infinite alternate;
}

@keyframes floatBg {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 60px) scale(1.1); }
}

@keyframes floatBg2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, -50px) scale(1.08); }
}

.login-card {
  position: relative;
  background: #ffffff;
  width: 480px;
  max-width: 94vw;
  border-radius: 20px;
  padding: 38px 40px 32px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2);
  animation: cardin 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  overflow: hidden;
  z-index: 10;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #003366 0%, #005299 35%, #27ae60 70%, #0077cc 100%);
}

@keyframes cardin {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.logo-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 76px;
  transition: transform 0.25s ease;
}

.logo-item:hover {
  transform: translateY(-3px);
}

.logo-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  letter-spacing: .5px;
  transition: box-shadow 0.25s ease;
}

.logo-item:hover .logo-badge {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.logo-item small {
  font-size: 8.5px;
  color: #55687d;
  line-height: 1.25;
  text-align: center;
  font-weight: 700;
  letter-spacing: .2px;
}

.login-card h1 {
  font-size: 21px;
  color: #002244;
  letter-spacing: 1px;
  font-weight: 800;
  margin-top: 4px;
}

.login-card .sub {
  font-size: 12px;
  color: #4a5a70;
  margin: 6px 0 12px;
  line-height: 1.6;
}

.login-card .sub b {
  color: #003366;
  font-size: 12.5px;
}

.wb-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 22px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .8px;
  color: #15652e;
  background: #eaf7ed;
  border: 1px solid #bce6c7;
  border-radius: 20px;
  padding: 5px 16px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(26, 122, 58, 0.08);
}

.wb-line::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: #27ae60;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.25);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(39, 174, 96, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

.input-field-group {
  text-align: left;
  margin-bottom: 14px;
  position: relative;
}

.input-field-group label {
  font-size: 12px;
  font-weight: 700;
  color: #1a2a3a;
  display: block;
  margin-bottom: 6px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 15px;
  color: #8898aa;
  pointer-events: none;
  transition: color 0.2s ease;
}

.login-card input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid #cfdbe8;
  border-radius: 10px;
  font-size: 13.5px;
  background: #f8fafc;
  color: #1a2332;
  transition: all 0.2s ease;
}

.login-card input:focus {
  outline: none;
  background: #ffffff;
  border-color: #005299;
  box-shadow: 0 0 0 4px rgba(0, 82, 153, 0.12);
}

.login-card input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: #005299;
}

.pw-toggle-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 15px;
  color: #8898aa;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  line-height: 1;
}

.pw-toggle-btn:hover {
  color: #005299;
}

.login-card button.primary {
  width: 100%;
  margin-top: 14px;
  background: linear-gradient(135deg, #00284f 0%, #004a8a 100%);
  color: #fff;
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3px;
  box-shadow: 0 6px 18px rgba(0, 40, 79, 0.25);
  transition: all 0.2s ease;
}

.login-card button.primary:hover {
  background: linear-gradient(135deg, #001f3f 0%, #003b70 100%);
  box-shadow: 0 8px 24px rgba(0, 40, 79, 0.35);
  transform: translateY(-1px);
}

.login-card button.primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 40, 79, 0.2);
}

.login-err {
  color: #c0392b;
  font-size: 12px;
  margin-top: 8px;
  min-height: 18px;
  font-weight: 600;
}

.login-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e9f0f8;
  font-size: 12.5px;
}

.login-actions a {
  color: #005299;
  font-weight: 700;
  transition: color 0.2s ease;
  position: relative;
  text-decoration: none;
}

.login-actions a:hover {
  color: #00284f;
  text-decoration: underline;
}

.restricted-note {
  margin-top: 18px;
  padding: 12px 14px;
  background: #f4f8fc;
  border: 1px solid #e1ebf5;
  border-radius: 10px;
  font-size: 10.5px;
  color: #5b6e85;
  line-height: 1.55;
  text-align: left;
}

.restricted-note b {
  color: #003366;
  font-weight: 700;
}

.quick-accts {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.quick-accts p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.qa-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: #f3f7fc;
  border: 1px solid #e0e9f4;
  border-radius: 7px;
  padding: 8px 11px;
  margin-bottom: 6px;
  font-size: 12px;
}

.qa-btn:hover {
  background: #e8f1fb;
}

.qa-btn b {
  color: var(--navy);
}

/* ============ APP SHELL ============ */
#app {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  width: 240px;
  background: #071527;
  color: #94a3b8;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.sb-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sb-brand h2 {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.sb-brand span {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.sb-profile-wrapper {
  display: none;
  position: relative;
  margin: 12px 12px 6px 12px;
}

.sb-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sb-profile:hover, .sb-profile.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.sb-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #0b1a2d;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  padding: 8px;
  z-index: 300;
  animation: dropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sb-pd-header {
  font-size: 11px;
  color: #94a3b8;
  padding: 8px 10px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

.sb-pd-header b {
  color: #38bdf8;
}

.sb-pd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sb-pd-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sb-pd-item.logout {
  color: #f87171;
}

.sb-pd-item.logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.sb-pd-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

.sb-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #005299 0%, #0077cc 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 82, 153, 0.35);
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.sb-user-info {
  flex: 1;
  min-width: 0;
}

.sb-user-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.sb-user-role {
  font-size: 10.5px;
  color: #38bdf8;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.sb-user-arrow {
  font-size: 10px;
  color: #64748b;
  transition: transform 0.25s ease, color 0.2s ease;
}

.sb-profile:hover .sb-user-arrow {
  color: #ffffff;
  transform: rotate(45deg);
}

.sb-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px 80px 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9.5px 14px;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.nav-item .ic {
  width: 20px;
  text-align: center;
  font-size: 15px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: translateX(3px);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(0, 82, 153, 0.25) 100%);
  color: #ffffff;
  border-left-color: #38bdf8;
  font-weight: 700;
  box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.08);
}

.nav-sec {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
  color: #475569;
  padding: 16px 14px 6px;
}

.sb-foot {
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #64748b;
  background: rgba(0, 0, 0, 0.2);
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.topbar .search {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.topbar .search input {
  width: 100%;
  padding: 9.5px 14px 9.5px 36px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 13px;
  background: #f8fafc;
  color: #0f172a;
  transition: all 0.2s ease;
}

.topbar .search input:focus {
  outline: none;
  background: #ffffff;
  border-color: #005299;
  box-shadow: 0 0 0 4px rgba(0, 82, 153, 0.12);
}

.topbar .search .mag {
  position: absolute;
  left: 12px;
  top: 10px;
  color: #94a3b8;
  font-size: 14px;
}

.search-results {
  position: absolute;
  top: 46px;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  max-height: 340px;
  overflow-y: auto;
  z-index: 80;
}

.sr-item {
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sr-item:hover {
  background: #f0f7ff;
}

.sr-item .tag {
  font-size: 10px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 8px;
  font-weight: 700;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.period-bar {
  display: flex;
  gap: 4px;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 4px 6px;
}

.period-bar select {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  color: #003366;
  cursor: pointer;
  padding: 2px 4px;
  outline: none;
}

.pbtn {
  background: transparent;
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  transition: all 0.2s ease;
}

.pbtn:hover {
  color: #0f172a;
}

.pbtn.on {
  background: #091a2e;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(9, 26, 46, 0.25);
}

@media(max-width:900px) {
  .period-bar select {
    font-size: 11px
  }

  .pbtn {
    padding: 3px 7px;
    font-size: 10px
  }
}

.bell {
  position: relative;
  font-size: 18px;
  color: #475569;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.bell:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.bell .dot {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 5px;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

.usr {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.usr:hover {
  background: #f1f5f9;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #005299 0%, #0077cc 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13.5px;
  box-shadow: 0 4px 10px rgba(0, 82, 153, 0.25);
}

.usr .nm {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

.usr .rl {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 500;
}

.content {
  padding: 28px 32px;
  flex: 1;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-head h1 {
  font-size: 22px;
  font-weight: 800;
  color: #091a2e;
  letter-spacing: -0.02em;
}

.page-head p {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 4px;
}

/* KPI CARDS */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.kpi {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--blue);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kpi:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.kpi.green {
  border-top-color: var(--green);
}

.kpi.orange {
  border-top-color: var(--orange);
}

.kpi.purple {
  border-top-color: var(--purple);
}

.kpi.red {
  border-top-color: var(--red);
}

.kpi.teal {
  border-top-color: var(--teal);
}

.kpi .num {
  font-size: 30px;
  font-weight: 800;
  color: #091a2e;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.kpi.green .num {
  color: #059669;
}

.kpi.orange .num {
  color: #d97706;
}

.kpi.purple .num {
  color: #7c3aed;
}

.kpi.red .num {
  color: #dc2626;
}

.kpi.teal .num {
  color: #0d9488;
}

.kpi .lbl {
  font-size: 11px;
  color: #475569;
  margin-top: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi .sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
  font-weight: 500;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid #e2e8f0;
}

.card h3 {
  font-size: 13px;
  font-weight: 800;
  color: #091a2e;
  border-left: 4px solid #005299;
  padding-left: 12px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chart-wrap {
  position: relative;
  height: 260px;
}

.chart-wrap.sm {
  height: 210px;
}

.note {
  font-size: 11.5px;
  color: #64748b;
  font-style: italic;
  margin-top: 10px;
}

/* progress bars */
.ind-row {
  margin-bottom: 16px;
}

.ind-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.ind-n {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  max-width: 76%;
  line-height: 1.35;
}

.ind-p {
  font-size: 13px;
  font-weight: 800;
  color: #091a2e;
}

.ind-p.high {
  color: #059669;
}

.ind-p.zero {
  color: #dc2626;
}

.track {
  background: #e2e8f0;
  border-radius: 8px;
  height: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fill.blue {
  background: linear-gradient(90deg, #005299, #0077cc);
}

.fill.green {
  background: linear-gradient(90deg, #10b981, #059669);
}

.fill.orange {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.fill.red {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.ind-d {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

/* BANNERS */
.banner {
  background: #f0f7ff;
  border: 1px solid #cce3de;
  border-left: 4px solid #005299;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 12.5px;
  color: #1e3a8a;
  margin-bottom: 22px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 2px 6px rgba(0, 82, 153, 0.05);
}

.banner .ic {
  font-size: 18px;
}

/* TABLES */
table.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
  border-radius: 12px;
  overflow: hidden;
}

table.tbl th {
  background: #091a2e;
  color: #ffffff;
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
}

table.tbl td {
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #334155;
}

table.tbl tr:nth-child(even) td {
  background: #f8fafc;
}

table.tbl tr:hover td {
  background: #f0f7ff;
}

.pill {
  padding: 3.5px 10px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-block;
  letter-spacing: 0.2px;
}

.comp-tag {
  font-size: 10px;
  color: #005299;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.btn {
  background: linear-gradient(135deg, #091a2e 0%, #1e3e62 100%);
  color: #fff;
  padding: 8.5px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 6px rgba(9, 26, 46, 0.15);
  transition: all 0.2s ease;
}

.btn:hover {
  background: linear-gradient(135deg, #05101f 0%, #152d48 100%);
  box-shadow: 0 4px 12px rgba(9, 26, 46, 0.25);
  transform: translateY(-1px);
}

.btn.sm {
  padding: 5.5px 12px;
  font-size: 11.5px;
  border-radius: 8px;
}

.btn.ghost {
  background: #f1f5f9;
  color: #0f172a;
  box-shadow: none;
  border: 1px solid #cbd5e1;
}

.btn.ghost:hover {
  background: #e2e8f0;
  color: #091a2e;
}

.btn.green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.btn.green:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn.red {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}

.btn.red:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  background: #fff;
  padding: 13px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  align-items: center;
}

.filters select,
.filters input {
  padding: 7px 10px;
  border: 1px solid #d5deea;
  border-radius: 7px;
  font-size: 12px;
  background: #f8fafd;
}

.filters label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-right: -4px;
}

/* modal */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 45, .55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1300;
  padding: 40px 16px;
  overflow-y: auto;
}

.modal {
  background: #fff;
  border-radius: 13px;
  width: 760px;
  max-width: 96vw;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
}

.modal-h {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-h h2 {
  font-size: 16px;
  color: var(--navy);
}

.modal-h .x {
  font-size: 22px;
  color: #889;
  cursor: pointer;
  line-height: 1;
}

.modal-b {
  padding: 22px 24px;
}

.modal-f {
  padding: 15px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f8fafd;
  border-radius: 0 0 13px 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fld {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fld input,
.fld select,
.fld textarea {
  max-width: 100%;
  box-sizing: border-box;
}

.fld.full {
  grid-column: 1/-1;
}

.fld label {
  font-size: 11.5px;
  font-weight: 600;
  color: #445;
  margin-bottom: 5px;
}

.fld input,
.fld select,
.fld textarea {
  padding: 9px 11px;
  border: 1px solid #d5deea;
  border-radius: 7px;
  font-size: 13px;
  font-family: inherit;
}

.fld textarea {
  resize: vertical;
  min-height: 60px;
}

/* toast */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #1a2332;
  color: #fff;
  padding: 12px 18px;
  border-radius: 9px;
  font-size: 13px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .3);
  border-left: 4px solid var(--green2);
  animation: slidein .3s;
}

.toast.err {
  border-left-color: var(--red);
}

@keyframes slidein {
  from {
    transform: translateX(40px);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

/* dropdown panels */
.panel {
  position: absolute;
  top: 52px;
  right: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .2);
  width: 340px;
  z-index: 120;
}

.panel h4 {
  font-size: 12.5px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}

.panel .ni {
  padding: 11px 16px;
  border-bottom: 1px solid #f0f4f8;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  gap: 10px;
}

.panel .ni:hover {
  background: #f6f9fc;
}

.panel .ni .dt {
  font-size: 16px;
}

.panel .ni small {
  color: var(--muted);
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
}

.banner {
  background: #fffbe6;
  border: 1px solid #ffe08a;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12px;
  color: #7a5b00;
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.banner .ic {
  font-size: 16px;
}

.lock-note {
  background: #eef6ff;
  border: 1px solid #cfe4fb;
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 11.5px;
  color: #2a5580;
  margin-top: 10px;
}

/* permission manager */
.pm-group {
  margin-bottom: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}

.pm-group h4 {
  background: #f3f7fc;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--navy);
}

.pm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  padding: 8px 14px;
}

.sw {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  padding: 5px 0;
  cursor: pointer;
}

.sw input {
  appearance: none;
  -webkit-appearance: none;
  width: 34px;
  height: 19px;
  background: #cdd7e3;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: .2s;
  flex-shrink: 0;
  margin: 0;
}

.sw input:checked {
  background: var(--green2);
}

.sw input:before {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: .2s;
}

.sw input:checked:before {
  left: 17px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef3f9;
  border: 1px solid #dbe6f2;
  border-radius: 14px;
  padding: 3px 10px;
  font-size: 11.5px;
  margin: 0 6px 6px 0;
}

.chip b {
  cursor: pointer;
  color: var(--red);
}

.avatar-big {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 28px;
  overflow: hidden;
}

.avatar-big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tab {
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.tab.active {
  color: var(--navy);
  border-bottom-color: var(--blue);
}

#map {
  height: 520px;
  border-radius: 11px;
  z-index: 1;
}

.leaflet-popup-content {
  font-size: 12px;
}

/* presentation */
#present {
  position: fixed;
  inset: 0;
  background: #0a1626;
  z-index: 1100;
  display: none;
  flex-direction: column;
  color: #fff;
}

.slide {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 70px;
  text-align: center;
}

.slide h1 {
  font-size: 40px;
  color: #fff;
  margin-bottom: 14px;
}

.slide h2 {
  font-size: 26px;
  color: #7fc0ff;
  margin-bottom: 26px;
}

.slide .big {
  font-size: 88px;
  font-weight: 800;
  color: #3aa0ff;
}

.slide ul {
  text-align: left;
  font-size: 20px;
  line-height: 2;
  list-style: none;
}

.slide ul li:before {
  content: "▸ ";
  color: #3aa0ff;
}

.slide table {
  color: #fff;
  font-size: 18px;
  border-collapse: collapse;
}

.slide table td,
.slide table th {
  padding: 8px 20px;
  border-bottom: 1px solid #2a466a;
}

.pres-ctrl {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
}

.pres-ctrl button {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14px;
}

.pres-ctrl button:hover {
  background: rgba(255, 255, 255, .26);
}

.pres-dots {
  position: absolute;
  top: 24px;
  right: 30px;
  font-size: 13px;
  color: #9fc4ea;
}

.pres-slide-charts {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.pres-chart-box {
  width: 420px;
  height: 300px;
  background: #0f2036;
  border-radius: 12px;
  padding: 14px;
}

/* ==========================================================================
   ULTRA-RESPONSIVE ENTERPRISE SUITE (Desktop, Laptop, Tablet, Mobile)
   ========================================================================== */

.menu-btn {
  display: none;
  background: #f1f5f9;
  color: #091a2e;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 17px;
  line-height: 1;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
}

.menu-btn:hover {
  background: #e2e8f0;
}

/* Sidebar Backdrop Overlay for Mobile Drawer */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 26, 46, 0.65);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Table Responsive Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 18px;
}

/* Tablet & Large Mobile (<= 1080px) */
@media (max-width: 1080px) {
  .content {
    padding: 22px 24px;
  }

  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .chart-wrap {
    height: 240px;
  }
}

/* Mobile & Small Tablet (<= 768px) */
@media (max-width: 768px) {
  .topbar {
    padding: 10px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
  }

  .topbar .search {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    margin-top: 4px;
  }

  .topbar .search input {
    padding: 9px 14px 9px 36px;
    font-size: 12.5px;
  }

  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    bottom: 0;
    width: 250px;
    z-index: 999;
    height: 100vh;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.35);
  }

  .sidebar.open {
    left: 0;
  }

  .period-bar {
    order: 2;
    overflow-x: auto;
    max-width: calc(100vw - 140px);
    white-space: nowrap;
    padding: 3px 4px;
  }

  .usr .nm,
  .usr .rl {
    display: none;
  }

  .topbar .usr {
    display: none !important;
  }

  .sb-profile-wrapper {
    display: block !important;
  }

  .page-head {
    margin-bottom: 16px;
  }

  .page-head h1 {
    font-size: 19px;
  }

  table.tbl {
    min-width: 580px;
  }

  /* Modals responsiveness */
  .modal-box {
    width: 94vw !important;
    max-width: 94vw !important;
    max-height: 90vh !important;
    margin: 16px auto !important;
    border-radius: 16px !important;
  }

  .modal-body {
    max-height: calc(90vh - 120px) !important;
    overflow-y: auto !important;
    padding: 16px !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .fld.full {
    grid-column: span 1 !important;
  }
}

/* Small Smartphones (<= 480px) */
@media (max-width: 480px) {
  .content {
    padding: 14px 12px;
  }

  .kpi-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .kpi {
    padding: 16px 18px;
  }

  .kpi .num {
    font-size: 25px;
  }

  .login-card {
    padding: 28px 20px 22px;
    border-radius: 16px;
  }

  .logo-row {
    gap: 10px;
    margin-bottom: 14px;
  }

  .logo-badge {
    width: 44px;
    height: 44px;
    font-size: 11px;
    border-radius: 10px;
  }

  .logo-item {
    width: 64px;
  }

  .login-card h1 {
    font-size: 18px;
  }

  .login-card .sub {
    font-size: 11px;
  }

  #fb-btn {
    bottom: 14px !important;
    left: 14px !important;
    padding: 9px 14px !important;
    font-size: 11px !important;
  }
}
