/* ==========================================
   SCHOOL TRANSPORT MANAGEMENT SYSTEM - STYLE
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-dark: #111827;
  --color-income: #2563EB;
  --color-expense: #DC2626;
  --color-profit: #16A34A;
  --color-bg: #F8FAFC;
  --color-card: #FFFFFF;
  --color-border: #E2E8F0;
  --color-text-primary: #0F172A;
  --color-text-secondary: #64748B;
  
  --badge-expired-bg: #FEE2E2;
  --badge-expired-text: #991B1B;
  --badge-warning-bg: #FFEDD5;
  --badge-warning-text: #9A3412;
  --badge-upcoming-bg: #DCFCE7;
  --badge-upcoming-text: #166534;
  --badge-neutral-bg: #E2E8F0;
  --badge-neutral-text: #334155;
  
  --sidebar-width: 260px;
  --header-height: 70px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--color-bg);
  color: var(--color-text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================
   AUTHENTICATION LAYOUT
   ========================================== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.auth-wrapper::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(0,0,0,0) 70%);
  top: -150px;
  right: -150px;
  border-radius: 50%;
  pointer-events: none;
}

.auth-container {
  width: 100%;
  max-width: 960px;
  background: var(--color-card);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.top-header {
  height: 76px;
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  flex-wrap: nowrap;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  white-space: nowrap;
}

#header-active-financial-year {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #ffffff;
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  flex-shrink: 0;
  white-space: nowrap;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--color-text-primary);
  cursor: pointer;
}

.page-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  white-space: nowrap;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.auth-brand div {
  display: flex;
  flex-direction: column;
}

.auth-brand span {
  font-size: 13px;
  font-weight: 500;
  color: #93c5fd;
  letter-spacing: normal;
  margin-top: 2px;
}

.auth-brand i {
  font-size: 32px;
  color: #60a5fa;
}

.auth-hero-text h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.auth-hero-text p {
  color: #93c5fd;
  font-size: 14px;
  line-height: 1.6;
}

.auth-footer-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.auth-form-box {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-box h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.auth-subtext {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-secondary);
  font-size: 16px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.input-with-icon .form-control {
  padding-left: 42px;
}

.form-control:focus {
  border-color: var(--color-income);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.forgot-link {
  color: var(--color-income);
  text-decoration: none;
  font-weight: 600;
}

.forgot-link:hover {
  text-decoration: underline;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn-primary {
  width: 100%;
  background: var(--color-income);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-primary:active {
  transform: scale(0.99);
}

.demo-credentials-box {
  margin-top: 24px;
  padding: 14px;
  background: #f1f5f9;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  font-size: 12px;
}

.demo-credentials-box h4 {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-dark);
}

.demo-pill-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.demo-pill {
  padding: 4px 8px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  color: var(--color-text-secondary);
  transition: all 0.15s;
}

.demo-pill:hover {
  border-color: var(--color-income);
  color: var(--color-income);
}

/* ==========================================
   APP MAIN LAYOUT (DESKTOP & RESPONSIVE)
   ========================================== */
#app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--color-dark);
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  height: var(--header-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
  width: 36px;
  height: 36px;
  background: var(--color-income);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
}

.sidebar-title span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

.sidebar-menu {
  padding: 16px 12px;
  flex: 1;
  overflow-y: auto;
}

.menu-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #475569;
  padding: 12px 12px 6px 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 10px;
  margin-bottom: 4px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.nav-item i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.nav-item.active {
  background: var(--color-income);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Main Container */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top Header */
.top-header {
  height: 76px;
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  flex-wrap: nowrap;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  white-space: nowrap;
}

#header-active-financial-year {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #ffffff;
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  flex-shrink: 0;
  white-space: nowrap;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--color-text-primary);
  cursor: pointer;
}

.page-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-date-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 999px;
}

.notification-bell-btn {
  position: relative;
  background: #f1f5f9;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-primary);
  transition: background 0.2s;
}

.notification-bell-btn:hover {
  background: #e2e8f0;
}

.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--color-expense);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 4px;
  border-radius: 12px;
  transition: background 0.15s;
  position: relative;
}

.user-profile-menu:hover {
  background: #f1f5f9;
}

.user-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.user-info {
  line-height: 1.2;
}

.user-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-dark);
}

.user-role {
  font-size: 11.5px;
  color: var(--color-text-secondary);
}

/* Content Area */
.content-body {
  padding: 28px;
  flex: 1;
}

/* ==========================================
   REQUIRED CSS FOUNDATION & CARD STYLES
   ========================================== */
.card {
  background: white;
  border-radius: 16px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.04),
    0 4px 20px rgba(0,0,0,0.03);
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow:
    0 4px 24px rgba(0,0,0,0.06);
}

.metric-card {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #f8fafc 100%
  );
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.metric-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.metric-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.metric-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.metric-sub {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-secondary);
}

.metric-sub.positive {
  color: var(--color-profit);
}

.nav-btn {
  transition: all 0.15s ease;
}

.nav-btn:hover {
  transform: translateY(-1px);
}

.table-row {
  transition: background 0.15s ease;
}

.table-row:hover {
  background: #f1f5f9;
  cursor: pointer;
}

.badge-paid {
  background: #dcfce7;
  color: #166534;
}

.badge-due {
  background: #fee2e2;
  color: #991b1b;
}

.badge-partial {
  background: #fef3c7;
  color: #92400e;
}

.progress-track {
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  height: 8px;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   METRIC COLOR VARIANTS
   ========================================== */
.metric-black .metric-value { color: var(--color-dark); }
.metric-black .metric-icon-box { background: #f1f5f9; color: var(--color-dark); }

.metric-blue .metric-value { color: var(--color-income); }
.metric-blue .metric-icon-box { background: #eff6ff; color: var(--color-income); }

.metric-red .metric-value { color: var(--color-expense); }
.metric-red .metric-icon-box { background: #fef2f2; color: var(--color-expense); }

.metric-green .metric-value { color: var(--color-profit); }
.metric-green .metric-icon-box { background: #f0fdf4; color: var(--color-profit); }

/* Grid Layouts */
.metrics-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.metrics-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.charts-grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.charts-grid-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-dark);
}

.section-header p {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ==========================================
   TABLE DESIGN & STATUS BADGES
   ========================================== */
.table-container {
  overflow-x: auto;
  border-radius: 12px;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.custom-table th {
  background: #f8fafc;
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
}

.custom-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
  vertical-align: middle;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Renewal Urgency Badges */
.badge-expired {
  background: var(--badge-expired-bg);
  color: var(--badge-expired-text);
}

.badge-due-today {
  background: #fee2e2;
  color: #b91c1c;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.badge-under-10 {
  background: var(--badge-warning-bg);
  color: var(--badge-warning-text);
}

.badge-under-30 {
  background: #fef9c3;
  color: #854d0e;
}

.badge-upcoming {
  background: var(--badge-upcoming-bg);
  color: var(--badge-upcoming-text);
}

.badge-active {
  background: #dcfce7;
  color: #15803d;
}

.badge-maintenance {
  background: #fef3c7;
  color: #b45309;
}

.badge-inactive {
  background: #fee2e2;
  color: #dc2626;
}

.badge-fitness-test {
  background: #dbeafe;
  color: #1d4ed8;
}

/* Buttons & Actions */
.btn-sm {
  padding: 6px 14px !important;
  font-size: 12.5px !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
}

.btn-secondary {
  width: auto;
  background: #f1f5f9;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: var(--color-dark);
}

.btn-danger {
  width: auto;
  background: #fef2f2;
  color: var(--color-expense);
  border: 1px solid #fecaca;
}

.btn-danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.icon-btn:hover {
  color: var(--color-income);
  background: #eff6ff;
}

.icon-btn.delete:hover {
  color: var(--color-expense);
  background: #fef2f2;
}

/* ==========================================
   FILTER & SEARCH CONTROLS
   ========================================== */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  min-width: 240px;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-secondary);
}

.search-box input {
  padding-left: 38px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-pills {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  gap: 2px;
}

.tab-pill {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-text-secondary);
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.tab-pill.active {
  background: white;
  color: var(--color-dark);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--color-text-secondary);
}

.empty-state i {
  font-size: 40px;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.empty-state h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 4px;
}

/* ==========================================
   MODAL WINDOWS
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #f1f5f9;
  color: var(--color-dark);
}

.modal-body {
  padding: 24px;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 0 0 0;
  background: transparent;
  border-top: none;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#generic-modal-body .modal-footer {
  padding: 16px 0 0 0;
  background: transparent;
  border-top: none;
}

/* Dropdown menus (Notifications & User Profile) */
.dropdown-panel {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  width: 320px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border: 1px solid var(--color-border);
  display: none;
  z-index: 150;
  animation: fadeIn 0.2s ease;
  overflow: hidden;
}

.dropdown-panel.active {
  display: block;
}

.dropdown-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-body {
  max-height: 280px;
  overflow-y: auto;
}

.dropdown-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.dropdown-item:hover {
  background: #f8fafc;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: white;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-left: 4px solid var(--color-income);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  min-width: 280px;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success { border-left-color: var(--color-profit); }
.toast.error { border-left-color: var(--color-expense); }
.toast.warning { border-left-color: #f59e0b; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================
   RESPONSIVE LAYOUT MEDIA QUERIES
   ========================================== */
@media (max-width: 1200px) {
  .metrics-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .metrics-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .charts-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .metrics-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .charts-grid-equal {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
  }
  .mobile-menu-btn {
    display: block;
  }
  .metrics-grid-5, .metrics-grid-4 {
    grid-template-columns: 1fr;
  }
  .top-header {
    padding: 0 16px;
  }
  .content-body {
    padding: 16px;
  }
  .auth-container {
    display: flex;
    flex-direction: column;
    margin: 10px;
    width: auto;
  }
  .auth-banner {
    display: flex;
    padding: 24px;
  }
  .auth-form-box {
    padding: 24px;
  }
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-card {
    width: 95%;
    max-width: 95%;
    margin: 10px;
  }
  .form-row, .form-group.grid, .grid-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    width: 100%;
  }
}

/* ==========================================
   STRICT OVERRIDES FOR BUS NUMBER STYLING
   ========================================== */
.custom-table td a,
.custom-table td strong,
.custom-table td span.bus-no-text,
.custom-table tr td:first-child * {
  color: #111827 !important;
  text-decoration: none !important;
}

.custom-table td a:hover,
.custom-table td strong:hover {
  text-decoration: none !important;
}

/* ==========================================
   PRINT STYLES FOR CLEAN REPORT EXPORT
   ========================================== *//* ==========================================
   UNIFIED CENTRALIZED SYSTEM PRINT ARCHITECTURE
   ========================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 10mm;
  }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  * {
    box-sizing: border-box;
  }

  /* Hide application chrome only — NEVER hide parent containers containing reports */
  #auth-view,
  .sidebar,
  .top-header,
  .modal-overlay,
  .toast-container,
  .no-print,
  .btn-primary,
  .btn-secondary,
  .btn-danger,
  .btn-sm,
  .mobile-menu-btn,
  #notif-dropdown,
  #profile-dropdown,
  .controls-bar,
  .action-buttons,
  .report-toolbar,
  .filter-section,
  .print-controls,
  .notification-bell-btn {
    display: none !important;
  }

  table {
    border-collapse: collapse;
  }

  thead {
    display: table-header-group;
  }

  tfoot {
    display: table-footer-group;
  }

  tr,
  .report-section,
  .report-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  /* Reset wrapper layout offsets for full 100% printable width */
  .main-wrapper,
  .content-body,
  .app-layout,
  .page-container,
  #app-layout {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    margin-bottom: 16px !important;
  }

  #consolidated-preview-content,
  .table-container,
  .matrix-page {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  /* ----------------------------------------------------
     DEDICATED FORMAL REPORT PRINT CONTAINER ISOLATION
     ---------------------------------------------------- */
  body.printing-statement-active > *:not(#statement-print-container):not(#dedicated-print-container),
  body.printing-executive-active > *:not(#executive-print-container),
  body.printing-consolidated-active > *:not(#consolidated-print-container) {
    display: none !important;
  }

  body.printing-statement-active #statement-print-container,
  body.printing-statement-active #dedicated-print-container,
  body.printing-executive-active #executive-print-container,
  body.printing-consolidated-active #consolidated-print-container {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    width: 100% !important;
  }

  .a4-statement-page,
  .executive-a4-page,
  .matrix-page {
    break-after: page;
    page-break-after: always;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .a4-statement-page:last-child,
  .executive-a4-page:last-child,
  .matrix-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }
}

/* ==========================================
   PREMIUM MOTION DESIGN & MICRO-INTERACTION LAYER
   ========================================== */

:root {
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Page Transitions */
.page {
  display: none;
  opacity: 0;
  will-change: opacity, transform;
}

.page.active {
  display: block;
  animation: pageEntrance 0.35s var(--ease-spring) forwards;
}

@keyframes pageEntrance {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 2. Staggered Entrances for Cards & Grids */
.motion-stagger-in {
  animation: cardStagger 0.4s var(--ease-spring) both;
  will-change: opacity, transform;
}

@keyframes cardStagger {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3. Metric Cards & Micro-Elevations */
.metric-card {
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring), border-color 0.25s ease;
  will-change: transform, box-shadow;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

.metric-icon-box {
  transition: transform 0.3s var(--ease-spring), background-color 0.2s ease, color 0.2s ease;
}

.metric-card:hover .metric-icon-box {
  transform: scale(1.12) rotate(-3deg);
}

.metric-card:hover .metric-icon-box i {
  animation: iconPulse 0.4s var(--ease-spring);
}

@keyframes iconPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.metric-value {
  transition: color 0.2s ease;
}

/* 4. Sidebar & Navigation Micro-interactions */
.nav-item {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease-spring), background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-item:hover {
  transform: translateX(4px);
}

.nav-item i {
  transition: transform 0.2s var(--ease-spring);
}

.nav-item:hover i {
  transform: scale(1.15);
}

.nav-item.active {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  animation: activeNavPop 0.3s var(--ease-spring);
}

@keyframes activeNavPop {
  0% { transform: scale(0.97); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* 5. Buttons & Action Press Feedback */
.btn-primary, .btn-secondary, .btn-danger, .btn-sm, .demo-pill, .header-back-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease-spring), background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}

.btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover i {
  transform: translateX(3px);
}

.btn-primary i {
  transition: transform 0.2s var(--ease-spring);
}

.btn-secondary:hover, .btn-danger:hover, .demo-pill:hover, .header-back-btn:hover {
  transform: translateY(-1px);
}

.btn-primary:active, .btn-secondary:active, .btn-danger:active, .demo-pill:active, .header-back-btn:active, .icon-btn:active {
  transform: scale(0.96) !important;
}

/* 6. Ripple Effect */
.motion-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleAnimation 0.55s linear;
  pointer-events: none;
}

.btn-secondary .motion-ripple, .demo-pill .motion-ripple, .icon-btn .motion-ripple, .header-back-btn .motion-ripple {
  background: rgba(37, 99, 235, 0.2);
}

@keyframes rippleAnimation {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* 7. Input Micro-Focus & Icons */
.form-group, .input-with-icon {
  transition: transform 0.2s var(--ease-spring);
}

.form-control {
  transition: border-color 0.2s ease, box-shadow 0.2s var(--ease-spring), transform 0.2s ease;
}

.input-with-icon i {
  transition: transform 0.2s var(--ease-spring), color 0.2s ease;
}

.input-with-icon.focused-within i {
  color: var(--color-income);
  transform: translateY(-50%) scale(1.18);
}

.search-box input {
  transition: padding 0.2s ease, box-shadow 0.25s var(--ease-spring), border-color 0.2s ease;
}

.search-box input:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 4px 12px rgba(0,0,0,0.03);
}

.search-box i {
  transition: transform 0.2s var(--ease-spring), color 0.2s ease;
}

.search-box:focus-within i {
  color: var(--color-income);
  transform: translateY(-50%) scale(1.15);
}

/* 8. Table Rows & Action Buttons */
.table-row {
  transition: background-color 0.2s ease, transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
}

.table-row:hover {
  background-color: #f8fafc !important;
  transform: translateY(-1px);
}

.icon-btn {
  transition: transform 0.2s var(--ease-spring), color 0.2s ease, background-color 0.2s ease;
}

.icon-btn:hover {
  transform: scale(1.2) rotate(4deg);
}

.icon-btn.delete:hover {
  transform: scale(1.2) rotate(-6deg);
}

/* 9. Dropdown Panels & Scale Animations */
.dropdown-panel {
  transform-origin: top right;
  opacity: 0;
  transform: scale(0.92) translateY(-10px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease-spring), transform 0.2s var(--ease-spring), visibility 0.2s;
  visibility: hidden;
}

.dropdown-panel.active {
  display: block;
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  visibility: visible;
  animation: dropdownPop 0.25s var(--ease-spring) forwards;
}

@keyframes dropdownPop {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dropdown-item {
  transition: background-color 0.15s ease, transform 0.15s var(--ease-spring);
}

.dropdown-item:hover {
  transform: translateX(4px);
}

/* 10. Notification Bell Wiggle & Badges */
.notification-bell-btn:hover i {
  animation: bellWiggle 0.6s var(--ease-spring);
}

@keyframes bellWiggle {
  0% { transform: rotate(0); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-15deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-4deg); }
  100% { transform: rotate(0); }
}

.notif-badge {
  animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.badge {
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
}

.badge:hover {
  transform: scale(1.06);
}

.badge-due-today, .badge-expired {
  animation: alertGlow 1.8s infinite ease-in-out;
}

@keyframes alertGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

/* 11. Modal Dialog Spring Scale & Backdrop Blur */
.modal-overlay {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.25s var(--ease-spring), visibility 0.25s;
}

.modal-card {
  transform: scale(0.92) translateY(16px);
  transition: transform 0.3s var(--ease-spring), opacity 0.25s ease;
  will-change: transform, opacity;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
  animation: modalSpring 0.35s var(--ease-spring) forwards;
}

@keyframes modalSpring {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  transition: transform 0.2s var(--ease-spring), background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.1);
}

/* 12. Toast Notifications */
.toast {
  position: relative;
  overflow: hidden;
  animation: toastEntrance 0.35s var(--ease-bounce) forwards;
  transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

@keyframes toastEntrance {
  0% {
    opacity: 0;
    transform: translateX(100px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(37, 99, 235, 0.4);
  width: 100%;
  animation: toastProgressAnim 3.5s linear forwards;
}

.toast.success .toast-progress { background: rgba(22, 163, 74, 0.5); }
.toast.error .toast-progress { background: rgba(220, 38, 38, 0.5); }
.toast.warning .toast-progress { background: rgba(245, 158, 11, 0.5); }

@keyframes toastProgressAnim {
  from { width: 100%; }
  to { width: 0%; }
}

/* 13. Form Error Shake */
.motion-shake {
  animation: errorShake 0.4s var(--ease-smooth);
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* 14. Scroll Reveal */
.motion-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s var(--ease-out-quint), transform 0.45s var(--ease-out-quint);
}

.motion-reveal.motion-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 15. REDUCED MOTION SUPPORT ACCORDING TO USER ACCESSIBILITY PREFERENCES */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .page.active, .motion-stagger-in, .metric-card, .modal-card, .toast {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }


/* ==========================================
   13-INCH DISPLAY OPTIMIZATION & NON-WRAPPING DATA FIELDS
   ========================================== */
.bus-no-text,
.vehicle-no-text,
.license-no-text,
.phone-no-text,
.driver-name-text,
.nowrap-single-line {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

@media screen and (max-width: 1400px) {
  .metrics-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 1280px) {
  .sidebar {
    width: 230px;
  }
  .main-wrapper {
    margin-left: 230px;
  }
  .content-body {
    padding: 20px;
  }
  .metrics-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .metrics-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .custom-table {
    font-size: 12.5px;
  }
  .custom-table th, .custom-table td {
    padding: 10px 12px;
  }
}

/* ==========================================
   OFFICIAL A4 PRINT RULES FOR SCHOOL BUS STATEMENT
   ========================================== */
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-15deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-4deg); }
  100% { transform: rotate(0); }
}

.notif-badge {
  animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.badge {
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
}

.badge:hover {
  transform: scale(1.06);
}

.badge-due-today, .badge-expired {
  animation: alertGlow 1.8s infinite ease-in-out;
}

@keyframes alertGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

/* 11. Modal Dialog Spring Scale & Backdrop Blur */
.modal-overlay {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.25s var(--ease-spring), visibility 0.25s;
}

.modal-card {
  transform: scale(0.92) translateY(16px);
  transition: transform 0.3s var(--ease-spring), opacity 0.25s ease;
  will-change: transform, opacity;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
  animation: modalSpring 0.35s var(--ease-spring) forwards;
}

@keyframes modalSpring {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  transition: transform 0.2s var(--ease-spring), background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.1);
}

/* 12. Toast Notifications */
.toast {
  position: relative;
  overflow: hidden;
  animation: toastEntrance 0.35s var(--ease-bounce) forwards;
  transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

@keyframes toastEntrance {
  0% {
    opacity: 0;
    transform: translateX(100px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(37, 99, 235, 0.4);
  width: 100%;
  animation: toastProgressAnim 3.5s linear forwards;
}

.toast.success .toast-progress { background: rgba(22, 163, 74, 0.5); }
.toast.error .toast-progress { background: rgba(220, 38, 38, 0.5); }
.toast.warning .toast-progress { background: rgba(245, 158, 11, 0.5); }

@keyframes toastProgressAnim {
  from { width: 100%; }
  to { width: 0%; }
}

/* 13. Form Error Shake */
.motion-shake {
  animation: errorShake 0.4s var(--ease-smooth);
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* 14. Scroll Reveal */
.motion-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s var(--ease-out-quint), transform 0.45s var(--ease-out-quint);
}

.motion-reveal.motion-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 15. REDUCED MOTION SUPPORT ACCORDING TO USER ACCESSIBILITY PREFERENCES */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .page.active, .motion-stagger-in, .metric-card, .modal-card, .toast {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ==========================================
   13-INCH DISPLAY OPTIMIZATION & NON-WRAPPING DATA FIELDS
   ========================================== */
.bus-no-text,
.vehicle-no-text,
.license-no-text,
.phone-no-text,
.driver-name-text,
.nowrap-single-line {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

@media screen and (max-width: 1400px) {
  .metrics-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 1280px) {
  .sidebar {
    width: 230px;
  }
  .main-wrapper {
    margin-left: 230px;
  }
  .content-body {
    padding: 20px;
  }
  .metrics-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .metrics-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .custom-table {
    font-size: 12.5px;
  }
  .custom-table th, .custom-table td {
    padding: 10px 12px;
  }
}

/* ==========================================
   OFFICIAL A4 PRINT RULES FOR SCHOOL BUS STATEMENT
   ========================================== */
.a4-statement-page {
  border: none !important;
  box-shadow: none !important;
}

#statement-print-container,
#dedicated-print-container,
#executive-print-container,
#consolidated-print-container,
#report-print-container {
  display: none !important;
}

@media (max-width: 1024px) {
  .report-builder-layout {
    grid-template-columns: 1fr !important;
  }
}

.builder-module-card.builder-active {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16), 0 4px 12px rgba(37, 99, 235, 0.12);
  background: #eff6ff !important;
}
