:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --navy: #081b44;
  --navy-mid: #0e2b68;
  --royal: #1d3e8a;
  --royal-bright: #1d4ed8;
  --gold: #e5a91c;
  --gold-bright: #f0b933;
  --gold-deep: #d99b16;
  --sidebar: #081b44;
  --sidebar-hover: rgba(255, 255, 255, 0.08);
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #1d3e8a;
  --primary-hover: #0e2b68;
  --crimson: #b91c1c;
  --success: #15803d;
  --warning: #b45309;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; margin: 0; }
.mono, td.num, th.num { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* Crest */
.crest-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #ffffff;
  border: 2px solid rgba(229, 169, 28, 0.45);
  box-shadow: 0 4px 14px rgba(8, 27, 68, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.crest-box.lg {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 auto;
}
.crest-box.sm { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); box-shadow: none; }
.crest-img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.crest-fallback {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: var(--primary);
  font-size: 15px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(8, 27, 68, 0.04);
}
.gold-hairline {
  border-top: 2px solid var(--gold);
}

/* Landing Page (Classic Editorial Split) */
.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.landing-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.landing-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.landing-nav {
  display: none;
  align-items: center;
  gap: 24px;
}
@media (min-width: 900px) {
  .landing-nav { display: flex; }
}
.landing-nav a {
  text-decoration: none;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.15s ease;
}
.landing-nav a:hover { color: var(--navy); }
.landing-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
.landing-hero-section {
  padding: 40px 0 48px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f6fa 100%);
  border-bottom: 1px solid var(--border);
}
.landing-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 1024px) {
  .landing-hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
  }
}
.landing-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--crimson);
  margin-bottom: 10px;
}
.landing-hero-title {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.landing-hero-sub {
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
  margin-top: 14px;
  max-width: 560px;
}
.login-card {
  width: 100%;
  max-width: 470px;
  margin-top: 24px;
  padding: 26px;
  box-shadow: 0 12px 32px rgba(8, 27, 68, 0.08);
  border-top: 3px solid var(--navy);
}
.campus-showcase {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 18px 42px rgba(8, 27, 68, 0.16);
}
.campus-showcase-media {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.campus-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.campus-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 27, 68, 0.06) 35%, rgba(8, 27, 68, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}
.campus-showcase-body {
  padding: 20px 22px 22px;
  background: linear-gradient(155deg, #081b44 0%, #0e2b68 100%);
}
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.coverage-tile {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
}
.features-section {
  padding: 48px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 24px;
}
@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}
.feature-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 2px 6px rgba(8, 27, 68, 0.03);
}
.feature-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--royal);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.sections-strip {
  padding: 0 0 54px;
}
.landing-footer {
  margin-top: auto;
  background: var(--navy);
  color: #cbd5e1;
  border-top: 3px solid var(--gold);
  padding: 28px 24px;
}
.landing-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* Authenticated Portal Shell */
.portal-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 272px;
  background: linear-gradient(180deg, #071638 0%, #0b2358 55%, #081b44 100%);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-brand-center {
  padding: 22px 18px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-school-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #ffffff;
  margin-top: 10px;
  letter-spacing: 0.01em;
}
.sidebar-motto {
  font-size: 11px;
  font-style: italic;
  color: var(--gold-bright);
  margin-top: 2px;
  letter-spacing: 0.05em;
}
.sidebar-user-strip {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
}
.sidebar-role-tag {
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 2px;
}
.sidebar-nav {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  overflow-y: auto;
}
.nav-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #cbd5e1;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  min-height: 40px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-btn:hover { background: var(--sidebar-hover); color: #ffffff; }
.nav-btn.active {
  background: linear-gradient(90deg, var(--gold-bright) 0%, var(--gold-deep) 100%);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(229, 169, 28, 0.25);
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-logout {
  background: rgba(185, 28, 28, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.32);
  color: #fecaca;
}
.btn-logout:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #ffffff;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 27, 68, 0.55);
  z-index: 40;
}
.sidebar-backdrop.open { display: block; }

.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.topbar-contact {
  font-size: 11px;
  color: var(--muted);
  display: none;
}
@media (min-width: 900px) {
  .topbar-contact { display: block; }
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.user-avatar-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--border);
  cursor: pointer;
}
.user-avatar-chip:hover {
  border-color: var(--royal);
  background: #eff6ff;
}
.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-bright);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.user-avatar-circle img,
.avatar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-thumb {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--navy);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-thumb.lg {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  font-size: 18px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.filter-bar .input,
.filter-bar select {
  width: auto;
  min-width: 160px;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 13px;
}
.filter-bar .search-input {
  flex: 1;
  min-width: 210px;
}
.sign-preview-box {
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px 16px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sign-preview-text {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 20px;
  color: var(--navy);
}
.sign-preview-img {
  max-height: 44px;
  max-width: 200px;
  object-fit: contain;
}
.content {
  padding: 22px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  border-top: 2px solid var(--gold);
  padding: 14px 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  color: var(--navy);
}
@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
  .sidebar-backdrop { display: none !important; }
}
@media (max-width: 1023px) {
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 50;
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .content { padding: 14px; }
}

/* Welcome Hero Banner with Campus Photo Backdrop */
.welcome-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy);
  color: #ffffff;
  margin-bottom: 18px;
  min-height: 138px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(8, 27, 68, 0.12);
  border-bottom: 3px solid var(--gold);
}
.welcome-banner-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  object-fit: cover;
  opacity: 0.85;
  pointer-events: none;
}
.welcome-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #081b44 0%, #0e2d6e 50%, rgba(14, 45, 110, 0.58) 78%, rgba(8, 27, 68, 0.42) 100%);
  pointer-events: none;
}
.welcome-banner-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}
.welcome-banner-eyebrow {
  font-size: 12px;
  font-style: italic;
  color: #fde68a;
  font-weight: 600;
}
.welcome-banner-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}
.welcome-banner-sub {
  font-size: 13px;
  color: #dbeafe;
  margin-top: 4px;
}
.welcome-banner-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.session-gold-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 27, 68, 0.85);
  border: 1px solid rgba(240, 185, 51, 0.65);
  color: var(--gold-bright);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-5 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.split-pane { display: grid; grid-template-columns: 1fr; gap: 16px; }
.analytics-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.bottom-widgets-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1024px) {
  .split-pane { grid-template-columns: 320px 1fr; }
  .analytics-grid { grid-template-columns: 1.25fr 1fr; }
  .bottom-widgets-grid { grid-template-columns: 1.15fr 1fr 0.95fr; }
}

/* KPI Cards with Circular Icon Badges */
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(8, 27, 68, 0.04);
}
.kpi-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #0b2358;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(240, 185, 51, 0.35);
}
.kpi-icon-badge.gold { background: #fef3c7; color: #92400e; box-shadow: inset 0 0 0 1px #fcd34d; }
.kpi-icon-badge.royal { background: #eff6ff; color: var(--royal); box-shadow: inset 0 0 0 1px #bfdbfe; }
.kpi-icon-badge.crimson { background: #fef2f2; color: var(--crimson); box-shadow: inset 0 0 0 1px #fecaca; }
.kpi-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.kpi-value { font-size: 24px; font-weight: 800; margin-top: 2px; color: var(--navy); line-height: 1.15; }

/* Academic Performance Bar Chart */
.chart-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #334155;
  font-weight: 600;
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.perf-bars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 14px;
  margin-top: 10px;
  border-top: 1px dashed var(--border);
}
.perf-metric-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.perf-bars-row {
  height: 150px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 0 6px;
  border-bottom: 1px solid var(--border);
}
.perf-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  flex: 1;
  max-width: 34px;
}
.perf-bar-val {
  font-size: 10px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 3px;
}
.perf-bar-fill {
  width: 100%;
  min-height: 4px;
  border-radius: 5px 5px 0 0;
  transition: height 0.25s ease;
}
.perf-metric-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 8px;
  text-align: center;
}

/* Enrolment Capacity Progress Bars */
.cap-row { margin-bottom: 12px; }
.cap-row:last-child { margin-bottom: 0; }
.cap-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  margin-bottom: 5px;
}
.cap-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.cap-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--royal) 0%, var(--gold-bright) 100%);
}

/* Activity Feed */
.activity-list { display: flex; flex-direction: column; gap: 10px; }
.activity-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}
.activity-item:last-child { padding-bottom: 0; border-bottom: 0; }
.activity-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--royal-bright);
  margin-top: 6px;
  flex-shrink: 0;
}

/* Deep Navy Quick Actions Card */
.quick-actions-card {
  background: linear-gradient(155deg, #071638 0%, #0d2660 100%);
  color: #ffffff;
  border: 1px solid rgba(240, 185, 51, 0.35);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(8, 27, 68, 0.14);
}
.quick-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.quick-action-btn:hover {
  background: rgba(240, 185, 51, 0.18);
  border-color: rgba(240, 185, 51, 0.55);
  color: #fef3c7;
}
.quick-action-btn:last-child { margin-bottom: 0; }

.section-card {
  border-radius: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  background: #f8fafc;
}
.hero-banner {
  background: linear-gradient(125deg, #081b44 0%, #1d3e8a 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.subtabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.subtab-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  min-height: 38px;
  white-space: nowrap;
}
.subtab-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 600; color: #334155; }
.input, select, textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
.input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(29, 62, 138, 0.2);
  border-color: var(--primary);
}
.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pw-wrap .input { padding-right: 68px; }
.pw-toggle {
  position: absolute;
  right: 8px;
  background: transparent;
  border: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { min-height: 32px; padding: 4px 10px; font-size: 12px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--royal); }
.btn-gold { background: var(--gold-bright); color: var(--navy); font-weight: 700; }
.btn-gold:hover { background: var(--gold); }
.btn-success { background: var(--success); color: #fff; }
.btn-secondary { background: #fff; border-color: var(--border); color: var(--text); }
.btn-secondary:hover { background: #f8fafc; }
.btn-dark { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #f1f5f9; }
.btn-dark:hover { background: rgba(255, 255, 255, 0.16); }
.btn-danger { background: var(--crimson); color: #fff; }
.btn-soft-danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

.status-text {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-published, .status-active { color: #15803d; }
.status-approved { color: #1e40af; }
.status-submitted, .status-reviewed { color: #b45309; }
.status-rejected, .status-inactive { color: #b91c1c; }
.status-draft { color: #64748b; }

.login-notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
}
.login-notice-title {
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 2px;
}
.login-notice.tone-warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}
.login-notice.tone-urgent {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}
.login-policy-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: #334155;
  font-size: 12.5px;
}
.delete-impact-summary {
  white-space: pre-line;
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 11px; border-bottom: 1px solid var(--border); text-align: left; }
th { background: #f1f5f9; font-weight: 700; color: #334155; font-size: 12px; }
tfoot td, tfoot th { background: #f8fafc; font-weight: 700; }
td.num, th.num { text-align: right; }

.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; border: 1px solid var(--border); font-size: 13px; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }

.list-item-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  margin-bottom: 6px;
}
.list-item-btn.active {
  background: #eff6ff;
  border-color: var(--primary);
}

.ward-checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}
@media (min-width: 640px) {
  .ward-checklist { grid-template-columns: repeat(2, 1fr); }
}
.ward-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
}
.ward-item input { width: auto; min-height: auto; }

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 27, 68, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 80;
}
.modal-dialog {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 20px 45px rgba(8, 27, 68, 0.25);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.modal-dialog-wide {
  max-width: 720px;
}
.modal-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.bulk-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}
@media (min-width: 640px) {
  .bulk-steps-grid { grid-template-columns: repeat(2, 1fr); }
}
.bulk-step-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.bulk-step-download {
  border-color: #bfdbfe;
  background: #f8fbff;
}
.bulk-step-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
.bulk-step-card:not(.bulk-step-download) .bulk-step-eyebrow {
  color: #475569;
}
.bulk-report-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12px;
  border: 1px solid var(--border);
}
.bulk-report-ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.bulk-report-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.bulk-report-box ul { margin: 6px 0 0 18px; }
.modal-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.letterhead {
  text-align: center;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

/* Official Report Sheet (Standard & Early Years Continuous Assessment) */
.report-sheet-page {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
  color: #0f172a;
  box-shadow: 0 2px 10px rgba(8, 27, 68, 0.05);
}
.rs-letterhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #cbd5e1;
}
.rs-letterhead-early {
  border-bottom: 4px solid #081B44;
}
.rs-crest {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}
.rs-head-center {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.rs-school-name {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #020617;
}
.rs-school-addr {
  font-size: 11px;
  text-transform: uppercase;
  color: #1e293b;
  margin-top: 2px;
}
.rs-letterhead-early .rs-school-addr {
  color: #B91C1C;
  font-weight: 700;
}
.rs-school-contact {
  font-size: 11px;
  color: #334155;
  margin-top: 2px;
}
.rs-school-motto {
  font-size: 11.5px;
  font-weight: 800;
  color: #020617;
  margin-top: 2px;
}
.rs-report-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #081B44;
  margin-top: 5px;
}
.rs-passport {
  width: 72px;
  height: 88px;
  border: 1px solid #94a3b8;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  flex-shrink: 0;
  overflow: hidden;
}
.rs-passport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rs-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 14px;
  font-size: 11px;
  padding: 6px 4px 10px;
  line-height: 1.55;
}
.rs-meta-pos {
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.rs-early-strip {
  display: grid;
  grid-template-columns: 2fr 2fr 1.2fr 1.2fr;
  border: 1px solid #1e293b;
  font-size: 11px;
  margin-bottom: 10px;
}
.rs-early-strip > div {
  padding: 6px 8px;
  border-right: 1px solid #1e293b;
  line-height: 1.45;
}
.rs-early-strip > div:last-child { border-right: 0; }

.rs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}
.rs-grid > div {
  min-width: 0;
}
.rs-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.rs-scroll-hint {
  font-size: 11px;
  color: #475569;
  margin-bottom: 5px;
  font-weight: 600;
}
.rs-sticky-subject {
  position: sticky;
  left: 0;
  z-index: 2;
}
.rs-navy .rs-sticky-subject {
  background: #081B44 !important;
}
tbody .rs-sticky-subject {
  background: #ffffff;
}

@media (min-width: 1100px) {
  .rs-grid-early { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (min-width: 1280px) {
  .rs-grid-std { grid-template-columns: minmax(0, 1fr) 235px; }
}
@media (min-width: 1480px) {
  .rs-scroll-hint { display: none; }
}
@media (max-width: 1479px) {
  .rs-table-t2, .rs-table-t3 { min-width: 800px; }
}
@media (max-width: 1099px) {
  .rs-table-t1 { min-width: 560px; }
}
@media (max-width: 639px) {
  .report-sheet-page { padding: 12px; }
  .rs-letterhead { flex-wrap: wrap; gap: 8px; }
  .rs-crest { width: 52px; height: 52px; order: 1; }
  .rs-passport { width: 52px; height: 64px; order: 2; }
  .rs-head-center { order: 3; flex: 0 0 100%; width: 100%; }
  .rs-school-name { font-size: 16px; }
  .rs-report-title { letter-spacing: 0.06em; font-size: 10px; }
  .rs-meta { grid-template-columns: 1fr; gap: 4px; }
  .rs-meta-pos { text-align: left; justify-content: flex-start; }
  .rs-early-strip { grid-template-columns: 1fr; }
  .rs-early-strip > div { border-right: 0; border-bottom: 1px solid #1e293b; }
  .rs-early-strip > div:last-child { border-bottom: 0; }
  .rs-summary-box { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; font-size: 10px; }
  .rs-sign-row { grid-template-columns: 1fr !important; gap: 6px; }
}

.rs-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #334155;
  font-size: 10px;
}
.rs-table th, .rs-table td {
  border: 1px solid #94a3b8;
  padding: 3px 5px;
  overflow-wrap: break-word;
}
.rs-navy th {
  background: #081B44 !important;
  color: #ffffff !important;
  border-color: #475569 !important;
  font-weight: 700;
  text-align: center;
}
.rs-navy th.rs-th-left { text-align: left; font-size: 11.5px; }
.rs-vert {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  display: inline-block;
  line-height: 1.05;
  padding: 3px 1px;
  font-size: 9.5px;
}
.rs-num { text-align: right; font-variant-numeric: tabular-nums; }
.rs-ctr { text-align: center; }
.rs-pass { color: #1e40af; font-weight: 700; }
.rs-grade-pass { color: #047857; font-weight: 700; }
.rs-fail { color: #b91c1c; font-weight: 700; }
.rs-avg-col { color: #1e40af; font-weight: 700; }

.rs-term-avg-wrap { margin-top: 10px; font-size: 11px; }
.rs-term-avg-head { display: flex; gap: 22px; font-weight: 800; margin-bottom: 4px; flex-wrap: wrap; }
.rs-summary-box {
  border: 1px solid #334155;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 6px 10px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.rs-traits-box {
  border: 1px solid #334155;
  font-size: 9.5px;
  background: #ffffff;
}
.rs-crimson {
  background: #B91C1C !important;
  color: #ffffff !important;
  font-weight: 700;
  text-align: center;
  padding: 4px 6px;
  text-transform: uppercase;
}
.rs-traits-key {
  padding: 5px 6px;
  text-align: center;
  border-bottom: 1px solid #94a3b8;
  line-height: 1.3;
  font-size: 9px;
}
.rs-traits-tbl {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 9.5px;
}
.rs-traits-tbl th {
  background: #B91C1C !important;
  color: #ffffff !important;
  border: 1px solid #94a3b8;
  padding: 3px 5px;
  font-size: 9px;
}
.rs-traits-tbl td {
  border: 1px solid #cbd5e1;
  padding: 2.5px 5px;
  overflow-wrap: break-word;
}

.rs-early-sec-hdr td {
  background: #f1f5f9 !important;
  font-weight: 800;
}
.rs-early-tot-row td {
  background: #f8fafc !important;
  font-weight: 700;
}
.rs-early-avg-row td {
  background: #eff6ff !important;
  font-weight: 800;
}
.rs-obs-tbl {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #1e293b;
  font-size: 10px;
}
.rs-obs-tbl th, .rs-obs-tbl td {
  border: 1px solid #94a3b8;
  padding: 3px 5px;
}
.rs-grading-key {
  text-align: center;
  font-size: 10.5px;
  color: #1e293b;
  margin-top: 10px;
}
.rs-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #cbd5e1;
  font-size: 11px;
}
.rs-promo-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.rs-promo-box {
  border: 1px solid #1e293b;
  padding: 2px 24px;
  font-weight: 800;
  min-width: 165px;
  text-align: center;
}
.rs-sign-row {
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(0, 3fr);
  gap: 12px;
  align-items: end;
  margin-top: 6px;
}
.rs-sign-line {
  border-bottom: 1px solid #475569;
  min-height: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
  font-family: Georgia, serif;
  font-style: italic;
  color: #081B44;
}
.rs-sign-img {
  max-height: 28px;
  max-width: 145px;
  object-fit: contain;
  display: block;
}

/* Confirmation Warning Dialog */
.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 27, 68, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.confirm-dialog {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(8, 27, 68, 0.28);
  overflow: hidden;
  animation: confirmPop 0.14s ease-out;
}
@keyframes confirmPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.confirm-head {
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e2e8f0;
}
.confirm-head.warn {
  background: #fffbeb;
  border-bottom-color: #fde68a;
}
.confirm-head.danger {
  background: #fef2f2;
  border-bottom-color: #fecaca;
}
.confirm-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.confirm-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 18px;
}
.confirm-icon-wrap.warn {
  background: #fef3c7;
  color: #b45309;
}
.confirm-icon-wrap.danger {
  background: #fee2e2;
  color: #b91c1c;
}
.confirm-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.confirm-eyebrow.warn { color: #b45309; }
.confirm-eyebrow.danger { color: #b91c1c; }
.confirm-title {
  margin: 2px 0 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #081B44;
}
.confirm-close {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.confirm-close:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #081B44;
}
.confirm-body {
  padding: 18px;
}
.confirm-msg {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #334155;
  white-space: pre-line;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.print-only { display: none; }
@media print {
  @page { size: A4 portrait; margin: 6mm; }
  @page master-landscape { size: A4 landscape; margin: 6mm; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  html, body {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    font-size: 10px;
  }
  #app, .modal-backdrop, #confirm-root, .rs-scroll-hint { display: none !important; }
  .print-only { display: block !important; width: 100% !important; }
  .report-sheet-page {
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    page-break-after: always;
    break-after: page;
  }
  .report-sheet-page:last-child {
    page-break-after: auto;
    break-after: auto;
  }
  .rs-letterhead {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    padding-bottom: 6px !important;
    margin-bottom: 6px !important;
    break-inside: avoid;
  }
  .rs-crest { width: 58px !important; height: 58px !important; order: 0 !important; }
  .rs-passport { width: 58px !important; height: 70px !important; order: 0 !important; }
  .rs-head-center { order: 0 !important; flex: 1 !important; width: auto !important; }
  .rs-school-name { font-size: 17px !important; }
  .rs-school-addr, .rs-school-contact, .rs-school-motto { font-size: 9.5px !important; }
  .rs-report-title { font-size: 10px !important; letter-spacing: 0.1em !important; margin-top: 3px !important; }
  .rs-meta {
    display: grid !important;
    grid-template-columns: 1.2fr 1.1fr 0.7fr !important;
    gap: 4px 10px !important;
    font-size: 9.5px !important;
    padding: 3px 2px 6px !important;
    break-inside: avoid;
  }
  .rs-meta-pos { text-align: right !important; justify-content: flex-end !important; }
  .rs-early-strip {
    display: grid !important;
    grid-template-columns: 2fr 2fr 1.2fr 1.2fr !important;
    font-size: 9.5px !important;
    margin-bottom: 6px !important;
    break-inside: avoid;
  }
  .rs-early-strip > div {
    border-right: 1px solid #1e293b !important;
    border-bottom: 0 !important;
    padding: 4px 6px !important;
  }
  .rs-early-strip > div:last-child { border-right: 0 !important; }
  .rs-table-wrap { overflow: visible !important; width: 100% !important; }
  .rs-sticky-subject { position: static !important; left: auto !important; }
  .rs-grid {
    display: grid !important;
    align-items: start !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .rs-grid-std { grid-template-columns: minmax(0, 1fr) 172px !important; }
  .rs-grid-early { grid-template-columns: minmax(0, 1fr) 225px !important; }
  .rs-grid > div {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .rs-table-std {
    table-layout: fixed !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    font-size: 7.2px !important;
    line-height: 1.15 !important;
  }
  .rs-table-std th, .rs-table-std td { padding: 1.5px 1.5px !important; }
  .rs-table-std .rs-vert { font-size: 6.8px !important; padding: 1px 0 !important; line-height: 1 !important; }
  .rs-table-early { font-size: 8px !important; line-height: 1.15 !important; }
  .rs-table-early th, .rs-table-early td { padding: 1.5px 4px !important; }
  .rs-summary-box {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    font-size: 8.5px !important;
    padding: 4px 6px !important;
    break-inside: avoid;
  }
  .rs-term-avg-wrap { margin-top: 5px !important; font-size: 9px !important; break-inside: avoid; }
  .rs-traits-box { font-size: 7.4px !important; width: 100% !important; break-inside: avoid; }
  .rs-traits-key { font-size: 7px !important; padding: 3px 4px !important; }
  .rs-traits-tbl { table-layout: fixed !important; width: 100% !important; font-size: 7.4px !important; }
  .rs-traits-tbl th, .rs-traits-tbl td { padding: 1.5px 3px !important; overflow-wrap: break-word !important; }
  .rs-obs-tbl { font-size: 8px !important; break-inside: avoid; }
  .rs-obs-tbl th, .rs-obs-tbl td { padding: 1.5px 4px !important; }
  .rs-grading-key { font-size: 8.5px !important; margin-top: 5px !important; break-inside: avoid; }
  .rs-footer { margin-top: 5px !important; padding-top: 5px !important; font-size: 9px !important; break-inside: avoid; }
  .rs-sign-row {
    display: grid !important;
    grid-template-columns: minmax(0, 9fr) minmax(0, 3fr) !important;
    gap: 8px !important;
    margin-top: 3px !important;
  }
  .rs-sign-line { min-height: 22px !important; }

  /* Master Sheet Landscape Print */
  .ms-print-wrap {
    page: master-landscape;
    width: 100% !important;
    background: #fff !important;
  }
  .ms-print-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 2px solid #081B44;
    padding-bottom: 6px;
    margin-bottom: 8px;
  }
  .ms-print-kpis {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
  }
  .ms-print-kpis.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .ms-print-kpi-box {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 5px 8px;
    background: #f8fafc !important;
  }
  .ms-print-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 7.8px;
  }
  .ms-print-tbl th, .ms-print-tbl td {
    border: 1px solid #94a3b8;
    padding: 2.5px 3px;
  }
  .ms-print-tbl thead th {
    background: #081B44 !important;
    color: #fff !important;
  }
}
