@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Roboto+Condensed:wght@400;500;600;700&display=swap');

/* ─── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  /* ── Centralized Global Design Tokens (Source of Truth) ── */
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-primary-light: #EFF6FF;
  --color-sidebar: #0B1730;
  --color-sidebar-gradient: linear-gradient(180deg, #0B1730 0%, #0d1e3d 100%);
  --color-background: #F4F7FB;
  --color-surface: #FFFFFF;
  --color-surface-hover: #F8FAFC;
  --color-border: #E2E8F0;
  --color-border-subtle: #F1F5F9;
  --color-border-strong: #CBD5E1;

  --color-text-primary: #111827;
  --color-text-secondary: #64748B;
  --color-text-muted: #94A3B8;
  --color-text-inverse: #FFFFFF;
  --color-text-inverse-muted: #CBD5E1;

  /* Semantic Status Tokens */
  --color-success: #16A34A;
  --color-success-hover: #15803D;
  --color-success-bg: #DCFCE7;
  --color-success-border: #86EFAC;
  --color-success-text: #166534;

  --color-warning: #D97706;
  --color-warning-hover: #B45309;
  --color-warning-bg: #FEF3C7;
  --color-warning-border: #FCD34D;
  --color-warning-text: #92400E;

  --color-error: #DC2626;
  --color-error-hover: #B91C1C;
  --color-error-bg: #FEE2E2;
  --color-error-border: #FCA5A5;
  --color-error-text: #991B1B;

  --color-info: #2563EB;
  --color-info-hover: #1D4ED8;
  --color-info-bg: #EFF6FF;
  --color-info-border: #BFDBFE;
  --color-info-text: #1E40AF;

  --color-neutral: #64748B;
  --color-neutral-bg: #F1F5F9;
  --color-neutral-border: #E2E8F0;
  --color-neutral-text: #475569;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 56px rgba(0, 0, 0, 0.14), 0 8px 16px rgba(0, 0, 0, 0.08);
  --shadow-primary: 0 4px 16px rgba(37, 99, 235, 0.35);

  /* Focus Ring */
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.25);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Legacy & Framework Compatibility Aliases */
  --brand-900: var(--color-sidebar);
  --brand-800: #0d1e3d;
  --brand-700: #112852;
  --brand-600: #16366e;
  --brand-500: var(--color-primary);
  --brand-50:  #eff6ff;

  --accent-600: var(--color-primary-hover);
  --accent-500: var(--color-primary);
  --accent-400: #3b82f6;
  --accent-300: #60a5fa;
  --accent-glow: rgba(37, 99, 235, 0.35);

  --success-500: var(--color-success);
  --danger-500: var(--color-error);
  --warning-500: var(--color-warning);

  --surface-bg: var(--color-background);
  --surface-card: var(--color-surface);
  --surface-sidebar: var(--color-sidebar);

  --text-primary: var(--color-text-primary);
  --text-secondary: var(--color-text-secondary);
  --text-muted: var(--color-text-muted);
  --text-inverse: var(--color-text-inverse);
  --text-inverse-muted: var(--color-text-inverse-muted);

  --border-default: var(--color-border);
  --border-subtle: var(--color-border-subtle);
  --border-strong: var(--color-border-strong);

  --canvas: var(--color-background);
  --surface: var(--color-surface);
  --ink: var(--color-text-primary);
  --muted: var(--color-text-secondary);
  --line: var(--color-border);
  --forest: var(--color-primary);
  --forest-deep: var(--color-primary-hover);
  --teal: var(--color-primary);
  --teal-deep: var(--color-primary-hover);

  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--color-text-primary);
  background: var(--color-background);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--surface-bg);
  color: var(--text-primary);
}

button, input, select, textarea { font: inherit; }

/* ==========================================================================
   APNA CAMPUS GLOBAL BUTTON RESET & NORMALIZATION
   Guarantees NO button ever falls back to the default 1995 grey 3D buttonface
   ========================================================================== */
button {
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  background-color: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  line-height: 1.25;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

button:active:not(:disabled) {
  transform: scale(0.98);
}

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* Universal Native Select & Date Picker Option Visibility Fix for Chromium / Windows Dark Mode */
select {
  color-scheme: light;
}

select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

input[type="date"] {
  color-scheme: light;
}

html[data-theme="dark"] select,
html.dark-mode select,
html.dark select {
  color-scheme: dark;
}

html[data-theme="dark"] select option,
html.dark-mode select option,
html.dark select option {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ─── Modern Keyframes & Animations ────────────────────────────────────────── */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}

/* Modern Micro-Interaction Keyframes */
@keyframes campusSlideUpFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes campusFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes campusScalePop {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }
  70% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes campusPulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
}

@keyframes campusBellWiggle {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(14deg); }
  40% { transform: rotate(-12deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-6deg); }
}

@keyframes campusFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Page, View & Tab Entry Animation */
.campus-portal-wrapper {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: none !important;
  filter: none !important;
}

.campus-page-enter {
  animation: campusFadeIn 0.2s ease-out;
  transform: none !important;
}

.apna-main-content,
.portal-main,
.student-portal-main,
.campus-os-body,
.portal-feature-page {
  animation: campusFadeIn 0.22s ease-out;
}

/* ==============================================================================
   UNIVERSAL CARD ELEVATION & HOVER ENGINE
   Silky smooth 60fps micro-interactions across every module and portal.
   ============================================================================== */
.card,
.dash-card,
.dashboard-card,
.stat-card,
.stats-card,
.portal-card,
.adm-card,
.admin-card,
.matrix-card,
.overview-card,
.institution-exam-bulletin-card,
.notice-card,
.academic-card,
.fee-card,
.attendance-card,
.event-card,
.bulletin-card,
.role-card,
.staff-card,
.warden-card,
.dossier-card,
.student-card,
.erp-stat-card,
.erp-panel,
.institution-notif-card,
.accounts-kpi-card,
.acc-kpi-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              background-color 0.2s ease;
  will-change: transform, box-shadow;
}

.card:hover,
.dash-card:hover,
.dashboard-card:hover,
.stat-card:hover,
.stats-card:hover,
.portal-card:hover,
.adm-card:hover,
.admin-card:hover,
.matrix-card:hover,
.overview-card:hover,
.institution-exam-bulletin-card:hover,
.notice-card:hover,
.academic-card:hover,
.fee-card:hover,
.attendance-card:hover,
.event-card:hover,
.bulletin-card:hover,
.role-card:hover,
.staff-card:hover,
.warden-card:hover,
.dossier-card:hover,
.student-card:hover,
.erp-stat-card:hover,
.institution-notif-card:hover,
.accounts-kpi-card:hover,
.acc-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  border-color: rgba(37, 99, 235, 0.28);
}

/* Active click depression on clickable cards */
a.card:active,
button.card:active,
[role="button"].card:active,
.institution-exam-bulletin-card:active,
.institution-notif-card:active,
.clickable:active {
  transform: translateY(-1px) scale(0.995);
  transition-duration: 0.06s !important;
}

/* Universal Table Rows Smooth Hover */
table tbody tr,
.data-table tbody tr,
.adm-table tbody tr,
.erp-table tbody tr {
  transition: background-color 0.16s ease, transform 0.16s ease;
}

table tbody tr:hover,
.data-table tbody tr:hover,
.adm-table tbody tr:hover,
.erp-table tbody tr:hover {
  background-color: rgba(37, 99, 235, 0.035);
}

/* Interactive Badges & Tags Hover Lift */
.badge,
.pill,
.chip,
.tag,
.status-badge,
.dash-chip,
.notice-tag-badge,
.institution-exam-card-tag {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.18s ease,
              filter 0.18s ease;
  will-change: transform;
}

.badge:hover,
.pill:hover,
.chip:hover,
.tag:hover,
.status-badge:hover,
.dash-chip:hover {
  transform: scale(1.05);
}

/* Smooth Focus Glow on Form Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
select,
textarea {
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.15s ease,
              transform 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
}

/* Universal Enterprise Modal, Drawer & Dropdown Animations */
.modal-overlay,
.dialog-overlay,
.apna-modal-overlay,
.drawer-backdrop,
.campus-whatsapp-drawer-overlay,
.institution-notif-backdrop,
.institution-notif-detail-backdrop,
.preview-modal-overlay {
  animation: campusFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modal-content,
.dialog-content,
.apna-modal-container,
.apna-modal-card,
.account-activation-modal,
.smart-complaint-modal,
.student-dossier-modal,
.institution-notif-detail,
.doc-preview-modal {
  animation: campusScalePop 0.26s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}

/* Right-side Slide-in Drawers */
.drawer-content,
.drawer-right,
.institution-notif-panel,
.campus-whatsapp-drawer,
.notif-drawer-panel {
  animation: campusDrawerSlideRight 0.26s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform;
}

@keyframes campusDrawerSlideRight {
  from {
    transform: translateX(100%);
    opacity: 0.8;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Dropdown Menus Fade and Vertical Movement */
.dropdown-menu,
.menu-dropdown,
.select-dropdown,
.apna-dropdown-content,
.profile-dropdown-menu,
.action-dropdown-list {
  animation: campusDropdownSlide 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-origin: top center;
  will-change: transform, opacity;
}

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

/* Universal Enterprise Skeleton Loading States */
.skeleton,
.skeleton-box,
.table-skeleton,
.dash-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: campusShimmer 1.5s infinite;
  border-radius: var(--radius-sm, 6px);
}

/* Expandable row / accordion details */
details[open] summary ~ * {
  animation: campusSlideUpFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.table-expanded-details,
.row-details-accordion {
  animation: campusSlideUpFade 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Inline validation error animation */
.form-error,
.field-error,
.input-error-msg,
.validation-msg {
  animation: campusSlideUpFade 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Multi-step form step transition */
.wizard-step,
.form-step,
.tab-pane {
  animation: campusFadeIn 0.2s ease-out;
}

/* Button Loading Spinner Animation */
.btn-loading-spinner,
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: campusSpin 0.7s linear infinite;
}

@keyframes campusSpin {
  to { transform: rotate(360deg); }
}

/* Toast Notifications Slide & Fade */
.toast,
.toast-item,
.apna-toast,
.notification-toast {
  animation: campusToastSlideIn 0.26s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.toast.toast-dismissing,
.toast-item.is-exiting {
  animation: campusToastSlideOut 0.22s ease-in both;
}

@keyframes campusToastSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ========================================================
   GLOBAL HIGH-CONTRAST TYPOGRAPHY SYSTEM
   Ensures crystal-clear legibility across light & dark surfaces.
   ======================================================== */
body {
  font-weight: 500;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.015em;
  color: inherit;
}

b, strong {
  font-weight: 800;
}

/* ==============================================================================
   UNIVERSAL SMOOTH BUTTON & FAST INTERACTION ENGINE
   - Hardware-accelerated GPU transforms (will-change)
   - Zero tap delay on touch devices (touch-action: manipulation)
   - Immediate tactile click response (active: scale(0.97))
   - Smooth cubic-bezier physics for hover, focus, and state transitions
   - Instant visual response across all roles, portals, and components
   ============================================================================== */

button,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"] {
  cursor: pointer;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
  font-weight: 700;
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  outline: none;
}

/* Instant Tactile Button Depression upon Click (0ms Delay) */
button:active:not(:disabled),
[role="button"]:active:not([aria-disabled="true"]),
input[type="button"]:active:not(:disabled),
input[type="submit"]:active:not(:disabled) {
  transform: scale(0.97) translateY(1px);
  filter: brightness(0.95);
  transition-duration: 0.05s !important;
}

/* Disabled State Clean Handling */
button:disabled,
[role="button"][aria-disabled="true"],
input[type="button"]:disabled,
input[type="submit"]:disabled {
  cursor: not-allowed !important;
  opacity: 0.55 !important;
  transform: none !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

/* Smooth Focus Ring */
button:focus-visible,
[role="button"]:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible {
  outline: 2px solid #2563eb !important;
  outline-offset: 2px !important;
}

/* Universal Button Class Standards */
.btn,
.admin-btn,
.portal-btn,
.action-btn,
.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: manipulation;
  border-radius: var(--radius-md, 10px);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.btn:hover:not(:disabled),
.admin-btn:hover:not(:disabled),
.portal-btn:hover:not(:disabled),
.action-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.08));
}

.btn:active:not(:disabled),
.admin-btn:active:not(:disabled),
.portal-btn:active:not(:disabled),
.action-btn:active:not(:disabled) {
  transform: scale(0.97) translateY(1px) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  transition-duration: 0.05s !important;
}

/* Primary Button */
.btn-primary,
.admin-btn-primary {
  background: var(--color-primary, #2563eb);
  color: #ffffff;
  border-color: transparent;
}

.btn-primary:hover:not(:disabled),
.admin-btn-primary:hover:not(:disabled) {
  background: var(--color-primary-hover, #1d4ed8);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

/* Secondary Button */
.btn-secondary,
.admin-btn-secondary {
  background: #ffffff;
  color: var(--color-text-primary, #0f172a);
  border: 1px solid var(--color-border, #e2e8f0);
}

.btn-secondary:hover:not(:disabled),
.admin-btn-secondary:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Danger Button */
.btn-danger,
.admin-btn-danger {
  background: #dc2626;
  color: #ffffff;
  border-color: transparent;
}

.btn-danger:hover:not(:disabled),
.admin-btn-danger:hover:not(:disabled) {
  background: #b91c1c;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
}

/* Success Button */
.btn-success,
.admin-btn-success {
  background: #16a34a;
  color: #ffffff;
  border-color: transparent;
}

.btn-success:hover:not(:disabled),
.admin-btn-success:hover:not(:disabled) {
  background: #15803d;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
}

/* Pill & Tab Buttons Smoothness */
.pill-tab,
.nav-tab,
.dash-filter-btn {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: manipulation;
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.15s ease,
              border-color 0.15s ease,
              color 0.15s ease,
              box-shadow 0.15s ease;
  will-change: transform;
}

.pill-tab:hover,
.nav-tab:hover,
.dash-filter-btn:hover {
  transform: translateY(-1px);
}

.pill-tab:active,
.nav-tab:active,
.dash-filter-btn:active {
  transform: scale(0.96) translateY(1px);
  transition-duration: 0.05s !important;
}

/* Table Row Actions Smoothness */
.table-action-btn,
.admin-table-action-btn {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: manipulation;
  transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.15s ease,
              color 0.15s ease;
  will-change: transform;
}

.table-action-btn:hover,
.admin-table-action-btn:hover {
  transform: scale(1.08);
}

.table-action-btn:active,
.admin-table-action-btn:active {
  transform: scale(0.92);
  transition-duration: 0.05s !important;
}

/* Light Surfaces Defaults */
.admin-table th, .hod-table th, .faculty-table th, .accounts-table th {
  font-weight: 800 !important;
  color: #1e293b !important;
  background: #f8fafc !important;
}

.admin-table td strong, .hod-table td strong, .faculty-table td strong, .accounts-table td strong {
  font-weight: 800 !important;
  color: #0f172a !important;
}

.fee-val, .bio-card-val, .metric-value {
  font-weight: 800 !important;
  color: #0f172a;
}

/* ─── DARK SURFACES & HERO BANNER HIGH CONTRAST (Login, Exam Cell, Placement, Super Admin, Library, Transport, Staff) ─── */
.login-page .campus-scene,
.login-page .campus-scene h1,
.login-page .campus-scene h2,
.login-page .campus-scene h3,
.login-page .campus-scene h4,
.login-page .campus-scene strong,
.login-page .campus-scene a,
.login-page .campus-scene p,
.login-page .top-brand span {
  color: #ffffff !important;
}

.login-page .hero-title {
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6) !important;
}

.login-page .hero-title span {
  background: linear-gradient(120deg, #fbbf24, #60a5fa) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.login-page .hero-description {
  color: #f1f5f9 !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7) !important;
  font-weight: 600 !important;
}

.login-page .hero-stat strong {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
  font-weight: 900 !important;
}

.login-page .hero-stat small {
  color: #e2e8f0 !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6) !important;
}

.login-page .hero-badge {
  color: #bfdbfe !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border-color: rgba(147, 197, 253, 0.5) !important;
  font-weight: 700 !important;
}

/* ─── CLEAN WHITE SAAS PORTALS (Super Admin, Exam Cell, Placement, Library, Transport, Staff, Accounts, Admin Ops, Faculty, HOD) ─── */
.erp-main-content {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.erp-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.erp-header-title h1 {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.erp-header-title p {
  color: #475569 !important;
  font-weight: 600 !important;
}

.erp-panel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

.erp-panel-title h3 {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.erp-panel-title p {
  color: #475569 !important;
  font-weight: 500 !important;
}

.erp-table th {
  color: #0f172a !important;
  background: #f1f5f9 !important;
  font-weight: 800 !important;
  border-bottom: 2px solid #cbd5e1 !important;
}

.erp-table td {
  color: #1e293b !important;
  font-weight: 500 !important;
}

.erp-table td strong {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.erp-stat-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

.erp-stat-val {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.erp-stat-card-title {
  color: #475569 !important;
  font-weight: 700 !important;
}

.erp-stat-note {
  color: #64748b !important;
  font-weight: 600 !important;
}

/* ========================================================
   STANDARDIZED SIDEBAR THEME ACROSS ALL USER ROLES
   Exact Student Dashboard blue midnight gradient theme:
   background: linear-gradient(180deg, #091326 0%, #0b1a36 100%)
   ======================================================== */
.erp-sidebar,
.admin-sidebar,
.mgmt-sidebar,
.accounts-sidebar,
.hostel-sidebar,
.canteen-sidebar,
.faculty-sidebar,
.hod-sidebar,
.principal-sidebar,
.superadmin-sidebar,
.transport-sidebar,
.placement-sidebar,
.exam-cell-sidebar,
.library-sidebar,
.campus-os-sidebar {
  background: #091326 !important;
  background: linear-gradient(180deg, #091326 0%, #0b1a36 100%) !important;
  border-right: 1px solid #1a2a44 !important;
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.4) !important;
  box-sizing: border-box !important;
  overscroll-behavior: contain !important;
}

/* Consistent Scrollbar Across All Sidebars */
.erp-sidebar::-webkit-scrollbar,
.admin-sidebar::-webkit-scrollbar,
.mgmt-sidebar::-webkit-scrollbar,
.accounts-sidebar::-webkit-scrollbar,
.hostel-sidebar::-webkit-scrollbar,
.canteen-sidebar::-webkit-scrollbar,
.faculty-sidebar::-webkit-scrollbar,
.hod-sidebar::-webkit-scrollbar,
.principal-sidebar::-webkit-scrollbar,
.superadmin-sidebar::-webkit-scrollbar,
.transport-sidebar::-webkit-scrollbar,
.placement-sidebar::-webkit-scrollbar,
.exam-cell-sidebar::-webkit-scrollbar,
.library-sidebar::-webkit-scrollbar,
.campus-os-sidebar::-webkit-scrollbar,
.campus-os-nav::-webkit-scrollbar {
  width: 5px;
}

.erp-sidebar::-webkit-scrollbar-thumb,
.admin-sidebar::-webkit-scrollbar-thumb,
.mgmt-sidebar::-webkit-scrollbar-thumb,
.accounts-sidebar::-webkit-scrollbar-thumb,
.hostel-sidebar::-webkit-scrollbar-thumb,
.canteen-sidebar::-webkit-scrollbar-thumb,
.faculty-sidebar::-webkit-scrollbar-thumb,
.hod-sidebar::-webkit-scrollbar-thumb,
.principal-sidebar::-webkit-scrollbar-thumb,
.superadmin-sidebar::-webkit-scrollbar-thumb,
.transport-sidebar::-webkit-scrollbar-thumb,
.placement-sidebar::-webkit-scrollbar-thumb,
.exam-cell-sidebar::-webkit-scrollbar-thumb,
.library-sidebar::-webkit-scrollbar-thumb,
.campus-os-sidebar::-webkit-scrollbar-thumb,
.campus-os-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

/* ── Universal Sidebar Positioning Stability & Independent Scrolling ── */
.erp-sidebar {
  height: 100vh !important;
  max-height: 100vh !important;
  position: sticky !important;
  top: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.erp-sidebar-brand {
  flex-shrink: 0 !important;
}

.erp-sidebar-nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  padding-right: 4px !important;
}

.erp-sidebar-footer {
  flex-shrink: 0 !important;
  margin-top: auto !important;
}

.admin-sidebar,
.accounts-sidebar,
.hostel-sidebar,
.canteen-sidebar,
.faculty-sidebar,
.hod-sidebar {
  position: sticky !important;
  top: 65px !important;
  height: calc(100vh - 65px) !important;
  max-height: calc(100vh - 65px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  flex-shrink: 0 !important;
}

.campus-os-sidebar {
  position: sticky !important;
  top: 24px !important;
  height: calc(100vh - 48px) !important;
  max-height: calc(100vh - 48px) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  flex-shrink: 0 !important;
  overscroll-behavior: contain !important;
}

.campus-os-brand {
  flex-shrink: 0 !important;
}

.campus-os-nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
}

.campus-os-role-card {
  flex-shrink: 0 !important;
  margin-top: auto !important;
}

/* Sidebar Brand Titles */
.erp-sidebar .erp-brand-text h2,
.erp-sidebar .erp-sidebar-brand h2,
.mgmt-sidebar .mgmt-brand-text h2,
.admin-sidebar .admin-brand-text h2 {
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* Sidebar Navigation Items - Normal State */
.campus-os-nav a,
.campus-os-nav button,
.erp-nav-item,
.admin-nav-btn,
.hod-nav-btn,
.faculty-nav-btn,
.accounts-nav-btn,
.hostel-nav-btn,
.canteen-nav-btn,
.mgmt-nav-item {
  cursor: pointer !important;
  color: #cbd5e1 !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.campus-os-nav a svg,
.campus-os-nav button svg,
.erp-nav-item svg,
.admin-nav-btn svg,
.hod-nav-btn svg,
.faculty-nav-btn svg,
.accounts-nav-btn svg,
.hostel-nav-btn svg,
.canteen-nav-btn svg,
.mgmt-nav-item svg {
  color: #94a3b8 !important;
  transition: color 0.2s ease !important;
}

/* Sidebar Navigation Items - Hover State */
.campus-os-nav a:hover,
.campus-os-nav button:hover,
.erp-nav-item:hover,
.admin-nav-btn:hover,
.hod-nav-btn:hover,
.faculty-nav-btn:hover,
.accounts-nav-btn:hover,
.hostel-nav-btn:hover,
.canteen-nav-btn:hover,
.mgmt-nav-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.campus-os-nav a:hover svg,
.campus-os-nav button:hover svg,
.erp-nav-item:hover svg,
.admin-nav-btn:hover svg,
.hod-nav-btn:hover svg,
.faculty-nav-btn:hover svg,
.accounts-nav-btn:hover svg,
.hostel-nav-btn:hover svg,
.canteen-nav-btn:hover svg,
.mgmt-nav-item:hover svg {
  color: #ffffff !important;
}

/* Sidebar Navigation Items - Active State */
.campus-os-nav a.active,
.campus-os-nav button.active,
.erp-nav-item.active,
.admin-nav-btn.active,
.hod-nav-btn.active,
.faculty-nav-btn.active,
.accounts-nav-btn.active,
.hostel-nav-btn.active,
.canteen-nav-btn.active,
.mgmt-nav-item.active {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45) !important;
  border-radius: 14px !important;
}

.campus-os-nav a.active svg,
.campus-os-nav button.active svg,
.erp-nav-item.active svg,
.admin-nav-btn.active svg,
.hod-nav-btn.active svg,
.faculty-nav-btn.active svg,
.accounts-nav-btn.active svg,
.hostel-nav-btn.active svg,
.canteen-nav-btn.active svg,
.mgmt-nav-item.active svg {
  color: #ffffff !important;
}

/* ─── Global Hamburger Menu Toggle Button (3-Line Icon) ─── */
.campus-nav-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #1e293b;
  border-radius: 12px;
  cursor: pointer !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  flex-shrink: 0;
}

.campus-nav-toggle-btn:hover {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.hod-layout.sidebar-closed,
.faculty-layout.sidebar-closed,
.accounts-layout.sidebar-closed,
.hostel-layout.sidebar-closed,
.canteen-layout.sidebar-closed,
.admin-layout.sidebar-closed {
  grid-template-columns: 1fr !important;
}

/* ========================================================
   GLOBAL CAMPUS OS TOP-RIGHT USER PROFILE PILL & SIGN OUT
   Matches Image 2 reference design across all roles & portals.
   ======================================================== */
.campus-user-pill {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 5px 10px 5px 6px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.2s ease !important;
  cursor: default;
}

.campus-user-pill:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

.campus-user-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

.campus-user-passport {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 2px solid #2563eb !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f1f5f9 !important;
}

.campus-user-passport-img {
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: cover !important;
     object-fit: cover !important;
}

.campus-user-details {
  display: flex !important;
  flex-direction: column !important;
  text-align: left !important;
  line-height: 1.2 !important;
}

.campus-user-details strong {
  display: block !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
}

.campus-user-details small {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  color: #2563eb !important;
  line-height: 1.2 !important;
}

.campus-logout-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 6px !important;
  color: #64748b !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  margin-left: 4px !important;
}

.campus-logout-btn:hover {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
  transform: scale(1.05) !important;
}

/* Hide any legacy bottom sidebar sign out buttons across all portals */
.erp-sidebar-footer,
.mgmt-sidebar-footer {
  display: none !important;
}

/* ========================================================
   GLOBAL HIGH-CONTRAST LEGIBILITY & ACCESSIBLE FONT SIZES
   Eliminates tiny, washed-out or low-contrast text across
   all student views, widgets, tables, cards and profiles.
   ======================================================== */
.student-portal,
.student-profile-page {
  font-size: 13px !important;
  color: #0f172a !important;
}

.student-detail-row dt {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  min-width: 0;
}

.student-detail-row dd {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.student-profile-name {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.portal-brand-copy small {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  letter-spacing: 0.05em !important;
}

.portal-brand-copy strong {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.portal-user-copy strong {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.portal-user-copy small {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #2563eb !important;
}

.fee-bar strong {
  font-size: 13px !important;
  font-weight: 800 !important;
}

.fee-bar span {
  font-size: 11px !important;
  font-weight: 600 !important;
}

.notice-copy strong {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

.notice-copy small {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.95) !important;
}

.notice-tag {
  font-size: 10px !important;
  font-weight: 800 !important;
}

.birthday-list strong {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.birthday-list small {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #475569 !important;
}

.birthday-date {
  font-size: 11px !important;
  font-weight: 800 !important;
}

.calendar-weekdays span {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

.calendar-days > span {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
}

.calendar-controls strong {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.calendar-legend {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #334155 !important;
}

.holiday-row > * {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
}

.holiday-heading > * {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.portal-footer {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #64748b !important;
}

/* Student Profile Page Legibility */
.profile-breadcrumb {
  font-size: 12px !important;
  color: #475569 !important;
}

.profile-breadcrumb strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.profile-title-row h1 {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.profile-return {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

.profile-summary-row dt {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #475569 !important;
}

.profile-summary-row dd {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
}

.profile-tabs button {
  font-size: 12.5px !important;
  font-weight: 700 !important;
}

.profile-data-field > span {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  background: #f1f5f9 !important;
}

.profile-data-field > strong {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
}

.qualification-table th,
.qualification-table td,
.attendance-summary-table th,
.attendance-summary-table td,
.subject-attendance-table th,
.subject-attendance-table td,
.fee-data-table th,
.fee-data-table td {
  font-size: 12px !important;
  color: #0f172a !important;
}

.qualification-table thead th,
.attendance-summary-table thead th,
.subject-attendance-table thead th,
.fee-data-table thead th {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

.fee-overview p {
  font-size: 12px !important;
  color: #1e293b !important;
}

.fee-notice {
  font-size: 12px !important;
  color: #78350f !important;
}

.profile-overview-label {
  font-size: 11px !important;
  font-weight: 800 !important;
}

.profile-overview-copy p {
  font-size: 13.5px !important;
  color: #e0e7ff !important;
}

.profile-overview-facts small {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #bfdbfe !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  line-height: 1.25 !important;
  overflow: visible !important;
}

.profile-overview-facts strong {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

.registry-summary-title,
.registry-summary-title span,
.profile-registry-summary summary span {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
}

.profile-quick-links button {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #1d4ed8;
}

.profile-quick-links button:not(.active) {
  color: #1d4ed8 !important;
}

.profile-quick-links button.active,
.profile-quick-links button.active span,
.profile-quick-links button.active .quick-link-text {
  color: #ffffff !important;
}

.profile-quick-links button.active svg {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

/* ==========================================================================
   UNIVERSAL ENTERPRISE PRINT ENGINE
   Ensures crystal-clear, zero-blank printing across all modals, slips,
   passes, cards, receipts, dossiers, and reports.
   ========================================================================== */
@media print {
  @page {
    margin: 10mm 12mm;
    size: auto;
  }

  /* Reset document background & contrast */
  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-family: inherit !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Hide screen chrome, navigation, headers, footers & action buttons */
  .admin-sidebar,
  .erp-sidebar,
  .hostel-sidebar,
  .campus-sidebar,
  .admin-header,
  .erp-header,
  .hostel-header,
  .role-dash-header,
  .campus-nav-toggle-btn,
  .campus-logout-btn,
  .admin-modal-footer,
  .role-modal-footer,
  .erp-modal-footer,
  .lib-modal-footer,
  .exam-modal-footer,
  .admin-table-action-btn,
  .role-notif-close,
  .role-dossier-print-btn,
  .portal-quick-actions,
  .no-print {
    display: none !important;
  }

  /* When an admin modal is open (e.g. Hostel Resident Slip, Fee Receipt, Digital Pass):
     Hide background portal chrome and tables so only the modal slip prints on clean paper */
  body:has(.admin-modal-backdrop) .hostel-header,
  body:has(.admin-modal-backdrop) .hostel-layout,
  body:has(.admin-modal-backdrop) .admin-portal-header,
  body:has(.admin-modal-backdrop) .admin-sidebar,
  body:has(.admin-modal-backdrop) .admin-main-wrap,
  body:has(.admin-modal-backdrop) .admin-portal-content,
  body:has(.admin-modal-backdrop) .erp-sidebar,
  body:has(.admin-modal-backdrop) .erp-header,
  body:has(.admin-modal-backdrop) .erp-main,
  body:has(.admin-modal-backdrop) .erp-layout,
  body:has(.role-modal-overlay) .role-dash-page > *:not(.role-modal-overlay),
  body:has(.erp-modal-overlay) .erp-main,
  body:has(.erp-modal-overlay) .erp-header,
  body:has(.erp-modal-overlay) .erp-sidebar {
    display: none !important;
  }

  /* Universal Modal Backdrop Reset for Clean Printing */
  .admin-modal-backdrop,
  .role-modal-overlay,
  .erp-modal-overlay {
    position: static !important;
    inset: auto !important;
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    z-index: auto !important;
  }

  /* Universal Modal Card & Slip Print Styling */
  .admin-modal-card,
  .role-modal-card,
  .role-dossier-modal-card,
  .erp-modal-card,
  .digital-pass-card,
  .printable-admit-sheet,
  .lib-receipt-box,
  .bonafide-document-sheet {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    page-break-inside: avoid !important;
    -moz-column-break-inside: avoid !important;
         break-inside: avoid !important;
  }

  .admin-modal-body,
  .role-modal-body,
  .erp-modal-body {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    padding: 1.25rem !important;
  }

  .admin-modal-header,
  .role-modal-header,
  .erp-modal-header {
    border-bottom: 1.5px solid #cbd5e1 !important;
    padding: 1rem 1.25rem !important;
    background: #f8fafc !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Card and table print clarity */
  .admin-card,
  .admin-table-container {
    box-shadow: none !important;
    page-break-inside: avoid !important;
    -moz-column-break-inside: avoid !important;
         break-inside: avoid !important;
    border-color: #cbd5e1 !important;
  }

  /* Preserve all colored tags, badges, and avatars in print */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}


/* ==========================================================================
   COMPLETE COMPREHENSIVE DARK THEME SYSTEM FOR ALL CMS ROLES
   Automatically applies attractive, high-contrast, professional styling
   when Dark Mode is activated across every dashboard and component.
   ========================================================================== */
html[data-theme="dark"],
html.dark-mode,
html.dark,
body.dark-theme,
body.dark-mode {
  --color-background: #0b1120;
  --color-surface: #1e293b;
  --color-surface-hover: #334155;
  --color-border: #334155;
  --color-border-subtle: #1e293b;
  --color-border-strong: #475569;
  --color-text-primary: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-sidebar: #060d1a;
  --color-sidebar-gradient: linear-gradient(180deg, #060d1a 0%, #0b1730 100%);
  --d-ink: #f8fafc;
  --d-ink-2: #cbd5e1;
  --d-muted: #94a3b8;
  --d-line: #334155;
  --d-bg: #0b1120;
  --d-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.45);
  --bg-primary: #0b1120;
  --bg-secondary: #1e293b;
  --card-bg: #1e293b;
  --border-color: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  background-color: #0b1120 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] body,
html.dark-mode body,
body.dark-theme {
  background-color: #0b1120 !important;
  color: #f8fafc !important;
}

/* 1. Header & Navigation */
html[data-theme="dark"] .apna-topbar,
html.dark-mode .apna-topbar {
  background-color: #0f172a !important;
  border-bottom: 1px solid #1e293b !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .apna-topbar-title,
html.dark-mode .apna-topbar-title {
  color: #f8fafc !important;
}

html[data-theme="dark"] .apna-topbar-icon-btn,
html.dark-mode .apna-topbar-icon-btn {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .apna-topbar-icon-btn:hover,
html.dark-mode .apna-topbar-icon-btn:hover {
  background: #334155 !important;
  color: #ffffff !important;
  border-color: #475569 !important;
}

html[data-theme="dark"] .apna-search-input,
html.dark-mode .apna-search-input {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .apna-search-input::-moz-placeholder, html.dark-mode .apna-search-input::-moz-placeholder {
  color: #64748b !important;
}

html[data-theme="dark"] .apna-search-input::placeholder,
html.dark-mode .apna-search-input::placeholder {
  color: #64748b !important;
}

html[data-theme="dark"] .apna-user-pill-btn,
html.dark-mode .apna-user-pill-btn {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .apna-user-name,
html.dark-mode .apna-user-name {
  color: #f8fafc !important;
}

html[data-theme="dark"] .apna-breadcrumb-bar,
html.dark-mode .apna-breadcrumb-bar {
  background-color: #0f172a !important;
  border-bottom-color: #1e293b !important;
}

html[data-theme="dark"] .apna-user-menu,
html[data-theme="dark"] .apna-lang-menu,
html.dark-mode .apna-user-menu,
html.dark-mode .apna-lang-menu {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .apna-user-menu-item,
html[data-theme="dark"] .apna-lang-menu-item,
html.dark-mode .apna-user-menu-item,
html.dark-mode .apna-lang-menu-item {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .apna-user-menu-item:hover,
html[data-theme="dark"] .apna-lang-menu-item:hover,
html.dark-mode .apna-user-menu-item:hover,
html.dark-mode .apna-lang-menu-item:hover {
  background-color: #334155 !important;
  color: #f8fafc !important;
}

/* 2. Workspace, Dashboards, and Layout Bodies */
html[data-theme="dark"] .apna-layout-body,
html[data-theme="dark"] .apna-main-workspace,
html[data-theme="dark"] .apna-page-content,
html[data-theme="dark"] .role-dash-wrapper,
html[data-theme="dark"] .dash,
html[data-theme="dark"] .portal-body,
html[data-theme="dark"] .fac-portal-wrapper,
html[data-theme="dark"] .student-portal-container,
html[data-theme="dark"] .portal-layout,
html.dark-mode .apna-layout-body,
html.dark-mode .apna-main-workspace,
html.dark-mode .apna-page-content,
html.dark-mode .role-dash-wrapper,
html.dark-mode .dash,
html.dark-mode .portal-body,
html.dark-mode .fac-portal-wrapper,
html.dark-mode .student-portal-container {
  background-color: #0b1120 !important;
  color: #f8fafc !important;
}

/* 3. Cards across ALL Roles & Dashboards */
html[data-theme="dark"] .dash-card,
html[data-theme="dark"] .dash-stat,
html[data-theme="dark"] .dash-info,
html[data-theme="dark"] .portal-card,
html[data-theme="dark"] .portal-panel,
html[data-theme="dark"] .fac-card,
html[data-theme="dark"] .fac-profile-card,
html[data-theme="dark"] .fac-kpi-card,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .hostel-card,
html[data-theme="dark"] .hostel-kpi-card,
html[data-theme="dark"] .fee-card,
html[data-theme="dark"] .library-card,
html[data-theme="dark"] .transport-card,
html[data-theme="dark"] .placement-card,
html[data-theme="dark"] .exam-card,
html[data-theme="dark"] .canteen-card,
html[data-theme="dark"] .dash-stats-2x2 .dash-stat,
html[data-theme="dark"] .dash-card.dash-info,
html.dark-mode .dash-card,
html.dark-mode .dash-stat,
html.dark-mode .dash-info,
html.dark-mode .portal-card,
html.dark-mode .portal-panel,
html.dark-mode .fac-card,
html.dark-mode .fac-profile-card,
html.dark-mode .fac-kpi-card,
html.dark-mode .admin-card,
html.dark-mode .hostel-card,
html.dark-mode .hostel-kpi-card,
html.dark-mode .dash-stats-2x2 .dash-stat {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 4px 18px -4px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .dash-card-head,
html[data-theme="dark"] .fac-card-header,
html[data-theme="dark"] .portal-panel-heading,
html.dark-mode .dash-card-head,
html.dark-mode .fac-card-header,
html.dark-mode .portal-panel-heading {
  border-bottom-color: #334155 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .dash-card-head h3,
html[data-theme="dark"] .fac-card-title,
html[data-theme="dark"] .portal-panel-title,
html.dark-mode .dash-card-head h3,
html.dark-mode .fac-card-title,
html.dark-mode .portal-panel-title {
  color: #f8fafc !important;
}

html[data-theme="dark"] .dash-stat-label,
html[data-theme="dark"] .dash-stat-foot,
html[data-theme="dark"] .dash-stat-desc,
html.dark-mode .dash-stat-label,
html.dark-mode .dash-stat-foot,
html.dark-mode .dash-stat-desc {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .dash-stat-value,
html.dark-mode .dash-stat-value,
html[data-theme="dark"] .fac-profile-name,
html.dark-mode .fac-profile-name,
html[data-theme="dark"] .fac-detail-value,
html.dark-mode .fac-detail-value,
html[data-theme="dark"] .fac-kpi-number,
html.dark-mode .fac-kpi-number {
  color: #f8fafc !important;
}

html[data-theme="dark"] .fac-detail-label,
html.dark-mode .fac-detail-label {
  color: #94a3b8 !important;
}

/* 4. Tables and Grids across all Roles */
html[data-theme="dark"] table,
html[data-theme="dark"] .dash-table,
html[data-theme="dark"] .dash-overview-table,
html[data-theme="dark"] .admin-table,
html[data-theme="dark"] .hostel-table,
html[data-theme="dark"] .portal-table,
html.dark-mode table,
html.dark-mode .dash-table,
html.dark-mode .dash-overview-table,
html.dark-mode .admin-table,
html.dark-mode .hostel-table {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] thead tr,
html[data-theme="dark"] th,
html.dark-mode thead tr,
html.dark-mode th {
  background-color: #0f172a !important;
  color: #94a3b8 !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] tbody tr,
html[data-theme="dark"] td,
html.dark-mode tbody tr,
html.dark-mode td {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] tbody tr:hover,
html[data-theme="dark"] tbody tr:hover td,
html.dark-mode tbody tr:hover,
html.dark-mode tbody tr:hover td {
  background-color: #283548 !important;
}

/* 5. Inputs, Dropdowns, Textareas, and Forms */
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html.dark-mode input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
html.dark-mode select,
html.dark-mode textarea {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus,
html.dark-mode input:focus,
html.dark-mode select:focus,
html.dark-mode textarea:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

/* 6. Calendar Widget in Dark Mode */
html[data-theme="dark"] .dash-calendar,
html.dark-mode .dash-calendar {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .dash-cal-controls strong,
html.dark-mode .dash-cal-controls strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .dash-cal-controls button,
html.dark-mode .dash-cal-controls button {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .dash-cal-controls button:hover,
html.dark-mode .dash-cal-controls button:hover {
  background: #334155 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .dash-day,
html.dark-mode .dash-day {
  color: #cbd5e1;
}

html[data-theme="dark"] .dash-day:hover,
html.dark-mode .dash-day:hover {
  background: #334155;
  color: #ffffff;
}

html[data-theme="dark"] .dash-day.is-outside,
html.dark-mode .dash-day.is-outside {
  color: #475569;
}

html[data-theme="dark"] .dash-day.is-sunday,
html.dark-mode .dash-day.is-sunday {
  color: #fb7185;
}

html[data-theme="dark"] .dash-day.is-holiday,
html.dark-mode .dash-day.is-holiday {
  background: #451a03 !important;
  color: #fed7aa !important;
  box-shadow: inset 0 0 0 1px #7c2d12 !important;
}

html[data-theme="dark"] .dash-legend,
html.dark-mode .dash-legend {
  color: #94a3b8 !important;
}

/* 7. Modals, Popups, and Notification Drawers */
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .calendar-reminder-modal,
html[data-theme="dark"] .notification-drawer,
html[data-theme="dark"] .role-modal-card,
html.dark-mode .modal-content,
html.dark-mode .calendar-reminder-modal,
html.dark-mode .notification-drawer,
html.dark-mode .role-modal-card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
}

/* 8. Announcements, Lists, and Quick Actions */
html[data-theme="dark"] .dash-announcement,
html[data-theme="dark"] .dash-holiday,
html[data-theme="dark"] .dash-action,
html[data-theme="dark"] .dash-quick-link,
html.dark-mode .dash-announcement,
html.dark-mode .dash-holiday,
html.dark-mode .dash-action,
html.dark-mode .dash-quick-link {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .dash-announcement:hover,
html[data-theme="dark"] .dash-holiday:hover,
html[data-theme="dark"] .dash-action:hover,
html.dark-mode .dash-announcement:hover,
html.dark-mode .dash-holiday:hover,
html.dark-mode .dash-action:hover {
  background-color: #283548 !important;
}

html[data-theme="dark"] .dash-filter-pill,
html.dark-mode .dash-filter-pill {
  background-color: #0f172a !important;
  color: #94a3b8 !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .dash-filter-pill.active,
html.dark-mode .dash-filter-pill.active {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

/* 9. Comprehensive Dark Palette Variables & Dashboard Systems */
html[data-theme="dark"],
html.dark-mode {
  --d-ink: #f8fafc;
  --d-ink-2: #cbd5e1;
  --d-muted: #94a3b8;
  --d-line: #334155;
  --d-line-soft: #1e293b;
  --d-bg: #0b1120;
  --d-surface: #1e293b;
  --d-surface-alt: #0f172a;
  color-scheme: dark;
}

/* 10. Universal Headings & Text Clarity */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6 {
  color: #f8fafc !important;
}

/* 11. Role Dashboards, Staff Roster, Indents & Warden Modules */
html[data-theme="dark"] .staff-card,
html[data-theme="dark"] .warden-card,
html[data-theme="dark"] .hostel-indent-container,
html[data-theme="dark"] .requisition-table-wrap,
html[data-theme="dark"] .photo-upload-zone,
html[data-theme="dark"] .avatar-preset-btn,
html[data-theme="dark"] .dossier-card,
html[data-theme="dark"] .doc-preview-modal,
html[data-theme="dark"] .preview-modal-overlay,
html.dark-mode .staff-card,
html.dark-mode .warden-card,
html.dark-mode .hostel-indent-container,
html.dark-mode .requisition-table-wrap,
html.dark-mode .photo-upload-zone {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

/* 12. Inline White / Light Container Overrides */
html[data-theme="dark"] [style*="background: white"],
html[data-theme="dark"] [style*="background:white"],
html[data-theme="dark"] [style*="background-color: white"],
html[data-theme="dark"] [style*="background-color:white"],
html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background:#fff"],
html[data-theme="dark"] [style*="background: #ffffff"],
html[data-theme="dark"] [style*="background:#ffffff"],
html[data-theme="dark"] [style*="background-color: #fff"],
html[data-theme="dark"] [style*="background-color:#fff"],
html[data-theme="dark"] [style*="background-color: #ffffff"],
html[data-theme="dark"] [style*="background-color:#ffffff"],
html.dark-mode [style*="background: white"],
html.dark-mode [style*="background-color: white"],
html.dark-mode [style*="background: #fff"],
html.dark-mode [style*="background-color: #fff"] {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

/* 13. High-Contrast Text Overrides for Inline Dark Text */
html[data-theme="dark"] [style*="color: #1e293b"],
html[data-theme="dark"] [style*="color:#1e293b"],
html[data-theme="dark"] [style*="color: #0f172a"],
html[data-theme="dark"] [style*="color:#0f172a"],
html[data-theme="dark"] [style*="color: #111827"],
html[data-theme="dark"] [style*="color:#111827"],
html[data-theme="dark"] [style*="color: #334155"],
html[data-theme="dark"] [style*="color:#334155"],
html.dark-mode [style*="color: #1e293b"],
html.dark-mode [style*="color: #0f172a"],
html.dark-mode [style*="color: #111827"] {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] [style*="color: #64748b"],
html[data-theme="dark"] [style*="color:#64748b"],
html[data-theme="dark"] [style*="color: #475569"],
html[data-theme="dark"] [style*="color:#475569"],
html.dark-mode [style*="color: #64748b"],
html.dark-mode [style*="color: #475569"] {
  color: #94a3b8 !important;
}

/* 14. Warning & Notice Banners in Dark Mode */
html[data-theme="dark"] .alert-warning,
html[data-theme="dark"] .warning-banner,
html[data-theme="dark"] [style*="background: rgb(254, 242, 242)"],
html[data-theme="dark"] [style*="background-color: rgb(254, 242, 242)"],
html[data-theme="dark"] [style*="background: #fef2f2"],
html[data-theme="dark"] [style*="background-color: #fef2f2"],
html.dark-mode [style*="background: #fef2f2"],
html.dark-mode [style*="background-color: #fef2f2"] {
  background-color: #450a0a !important;
  border-color: #991b1b !important;
  color: #fecaca !important;
}

/* 15. Smooth Dark Scrollbars */
html[data-theme="dark"] ::-webkit-scrollbar,
html.dark-mode ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
html[data-theme="dark"] ::-webkit-scrollbar-track,
html.dark-mode ::-webkit-scrollbar-track {
  background: #0f172a;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb,
html.dark-mode ::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover,
html.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* ==============================================================================
   APNA CAMPUS — COMPLETE RESPONSIVE ENTERPRISE DESIGN SYSTEM
   Full Breakpoints Support:
     - Small mobile:    320px–374px
     - Standard mobile: 375px–479px
     - Large mobile:    480px–767px
     - Tablet:          768px–1023px
     - Small desktop:   1024px–1279px
     - Desktop:         1280px–1535px
     - Large desktop:   1536px+
   Zero layout shifts, zero horizontal overflow, fluid touch-first UX.
   ============================================================================== */

/* 1. Global Viewport & Horizontal Overflow Prevention */
html,
body,
#root,
.apna-app-layout,
.student-portal,
.login-page {
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

html:has(.apna-app-layout),
body:has(.apna-app-layout) {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

/* 2. Universal Table Responsiveness & Controlled Scrolling */
.table-responsive,
.table-container,
.data-table-wrap,
.admin-table-wrap,
.erp-table-wrap,
.accounts-table-wrap,
.accounts-table-container,
.student-doc-table-wrap,
.hostel-indent-container,
.requisition-table-wrap,
.overflow-x-auto,
div[style*="overflow-x: auto"],
div[style*="overflow-x:auto"] {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-x: contain !important;
}

table {
  border-collapse: collapse;
}

/* 3. Universal Recharts & Analytics Responsiveness */
.recharts-responsive-container {
  min-width: 0 !important;
  max-width: 100% !important;
}

/* 4. Touch-Friendly Interactive Targets (>= 44px on touch devices) */
@media (pointer: coarse), (max-width: 768px) {
  button:not(.btn-sm):not(.table-action-btn),
  .btn:not(.btn-sm),
  .admin-btn,
  .portal-btn,
  .action-btn,
  .pill-tab,
  .nav-tab,
  .apna-sidebar-item,
  .apna-hamburger-btn,
  .apna-notification-trigger,
  .campus-nav-toggle-btn {
    min-height: 42px;
  }

  /* Prevent automatic iOS Safari zoom-in on input focus */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  select,
  textarea {
    font-size: 16px !important;
    min-height: 42px;
  }
}

/* ─────────────────────────────────────────────────────────────
   BREAKPOINT: TABLET & BELOW (<= 1024px)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Dashboard Grids */
  .overview-grid,
  .grid-cols-4,
  .grid-cols-3,
  .accounts-kpi-grid,
  .role-dash-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  /* Split Panes Collapse */
  .dash-hero-split,
  .portal-primary-grid,
  .admin-erp-split {
    grid-template-columns: 1fr !important;
  }

  /* Main Workspace Padding Adjustment */
  .apna-main-workspace {
    padding: 1.25rem 1rem 2.5rem !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   BREAKPOINT: LARGE MOBILE (<= 768px)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Topbar Adjustments */
  .apna-topbar {
    padding: 0 1rem;
  }

  /* Form Layouts */
  .form-row,
  .form-grid,
  .grid-form,
  .form-fields-duo {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Dashboard Action Bars */
  .dash-hero {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 20px 18px !important;
    gap: 16px !important;
  }

  .dash-hero-meta {
    align-items: flex-start !important;
    width: 100% !important;
  }

  /* Filter & Tab Controls - Smooth Horizontal Touch Scroll */
  .dash-filter-bar,
  .tab-nav-bar,
  .apna-tabs-row,
  .notices-cats {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 6px !important;
    scrollbar-width: none !important;
  }

  .dash-filter-bar::-webkit-scrollbar,
  .tab-nav-bar::-webkit-scrollbar,
  .apna-tabs-row::-webkit-scrollbar,
  .notices-cats::-webkit-scrollbar {
    display: none !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   BREAKPOINT: STANDARD & SMALL MOBILE (<= 640px)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* KPI Cards Stack */
  .overview-grid,
  .grid-cols-4,
  .grid-cols-3,
  .grid-cols-2,
  .accounts-kpi-grid,
  .role-dash-kpi-grid,
  .dash-stats,
  .dash-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Compact Padding on Main Area */
  .apna-main-workspace {
    padding: 0.75rem 0.65rem 2rem !important;
  }

  /* Responsive Modals & Dialogs */
  .modal-content,
  .dialog-content,
  .apna-modal-container,
  .apna-modal-card,
  .account-activation-modal,
  .smart-complaint-modal,
  .student-dossier-modal {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 28px) !important;
    padding: 16px !important;
    margin: 10px auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 16px !important;
  }

  /* Full-width Notification Drawer */
  .institution-notif-panel,
  .notif-drawer-panel {
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
  }

  .institution-notif-header {
    padding: 12px 14px !important;
  }

  .institution-notif-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 10px 14px !important;
  }

  .institution-notif-summary > div {
    padding: 8px 6px !important;
  }

  .institution-notif-summary strong {
    font-size: 1rem !important;
  }

  .institution-notif-search,
  .institution-notif-filters,
  .institution-notif-list {
    padding-left: 14px !important;
    padding-right: 14px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Headings & Typography */
  h1 {
    font-size: 1.45rem !important;
  }
  h2 {
    font-size: 1.25rem !important;
  }
  h3 {
    font-size: 1.1rem !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   BREAKPOINT: ULTRA-COMPACT MOBILE (320px–374px)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 374px) {
  .apna-topbar {
    padding: 0 0.5rem !important;
  }

  .apna-topbar-title {
    font-size: 0.8rem !important;
  }

  .dash-stat {
    padding: 16px 14px !important;
  }

  .dash-stat-value {
    font-size: 1.35rem !important;
  }

  .institution-notif-summary {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  .apna-sidebar {
    width: 88vw !important;
  }
}

/* ==============================================================================
   UNIVERSAL SYSTEM-WIDE MODAL ELEVATION & FULL-SCREEN OVERLAY ENGINE
   Guarantees that EVERY modal across EVERY portal and page renders on top of
   the entire screen (above sidebar, header, breadcrumbs) and centers in viewport.
   ============================================================================== */
.mm-modal-backdrop,
.admin-modal-backdrop,
.admin-modal-overlay,
.payment-modal-backdrop,
.notes-modal-backdrop,
.academics-modal-backdrop,
.admit-confirm-backdrop,
.admit-doc-backdrop,
.canteen-modal-overlay,
.erp-diagnostics-overlay,
.erp-modal-overlay,
.exam-modal-overlay,
.fac-modal-backdrop,
.lib-modal-overlay,
.mgmt-modal-backdrop,
.mgmt-modal-overlay,
.principal-modal-overlay,
.reg-wizard-overlay,
.role-modal-overlay,
.sch-modal-overlay,
.scholarship-modal-overlay,
.smart-complaint-backdrop,
.std-docs-modal-backdrop,
.asf-modal-overlay,
.adm-modal-backdrop,
.bonafide-modal-backdrop,
.preview-modal-overlay,
.portal-modal-backdrop,
.modal-backdrop,
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  margin: 0 !important;
  padding: 16px !important;
}

/* Ensure modal content cards stay fully accessible, centered, and above backdrop */
.mm-modal-backdrop > *,
.admin-modal-backdrop > *,
.admin-modal-overlay > *,
.payment-modal-backdrop > *,
.notes-modal-backdrop > *,
.academics-modal-backdrop > *,
.admit-confirm-backdrop > *,
.admit-doc-backdrop > *,
.canteen-modal-overlay > *,
.erp-modal-overlay > *,
.exam-modal-overlay > *,
.fac-modal-backdrop > *,
.lib-modal-overlay > *,
.mgmt-modal-backdrop > *,
.mgmt-modal-overlay > *,
.principal-modal-overlay > *,
.reg-wizard-overlay > *,
.sch-modal-overlay > *,
.scholarship-modal-overlay > *,
.std-docs-modal-backdrop > *,
.asf-modal-overlay > *,
.adm-modal-backdrop > *,
.modal-backdrop > *,
.modal-overlay > * {
  position: relative !important;
  z-index: 1000000 !important;
  margin: auto !important;
  max-height: calc(100vh - 32px) !important;
}




/* ==========================================================================
   APNA CAMPUS — CENTRALIZED ACCESSIBILITY & WCAG 2.2 AA DESIGN SYSTEM
   ========================================================================== */

/* ── 1. Text Display Scaling ────────────────────────────────────────────── */
:root {
  --app-font-size: 16px;
}

html {
  font-size: var(--app-font-size, 16px);
}

html.font-size-small,
html[data-font-size="small"],
html[data-scale="small"] {
  --app-font-size: 14px;
  font-size: 14px !important;
}

html.font-size-normal,
html[data-font-size="normal"],
html[data-scale="normal"] {
  --app-font-size: 16px;
  font-size: 16px !important;
}

html.font-size-large,
html[data-font-size="large"],
html[data-scale="large"] {
  --app-font-size: 18px;
  font-size: 18px !important;
}

html.font-size-xlarge,
html[data-font-size="xlarge"],
html[data-scale="xlarge"] {
  --app-font-size: 20px;
  font-size: 20px !important;
}

/* ── 2. Screen Reader Utilities & Skip Links ────────────────────────────── */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-to-main-link {
  position: fixed !important;
  top: -120px !important;
  left: 1.25rem !important;
  z-index: 9999999 !important;
  padding: 0.75rem 1.25rem !important;
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
  transition: top 0.2s ease !important;
  border: 2px solid #ffffff !important;
}

.skip-to-main-link:focus,
.skip-to-main-link:focus-visible {
  top: 1.25rem !important;
  outline: 3px solid #ffbf00 !important;
  outline-offset: 3px !important;
}

/* ── 3. Visible Focus Indicators (WCAG 2.2 Success Criterion 2.4.7 & 2.4.11) ─ */
*:focus-visible {
  outline: 2.5px solid #2563eb !important;
  outline-offset: 2px !important;
}

/* ── 4. Reduced Motion (WCAG 2.2 Success Criterion 2.3.3) ─────────────────── */
html.reduced-motion *,
html.reduced-motion *::before,
html.reduced-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* ── 5. Dark Mode Design Tokens & Adjustments ───────────────────────────── */
html.dark,
[data-theme='dark'] {
  --color-background: #0b1329;
  --color-surface: #111d38;
  --color-surface-hover: #19274a;
  --color-border: #1e3158;
  --color-border-subtle: #172647;
  --color-border-strong: #2a4374;

  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-text-inverse: #0f172a;

  --surface-bg: #0b1329;
  --surface-card: #111d38;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  background-color: #0b1329 !important;
  color: #f8fafc !important;
}

html.dark body,
body.dark-theme {
  background-color: #0b1329 !important;
  color: #f8fafc !important;
}

html.dark .apna-main-workspace,
html.dark .apna-layout,
html.dark .apna-page-content {
  background-color: #0b1329 !important;
  color: #f8fafc !important;
}

html.dark .apna-topbar,
html.dark .apna-header {
  background-color: #111d38 !important;
  border-bottom-color: #1e3158 !important;
  color: #f8fafc !important;
}

html.dark .dash-card,
html.dark .apna-card,
html.dark .card,
html.dark .overview-card,
html.dark .role-dash-kpi-card,
html.dark .modal-content,
html.dark .dialog-content {
  background-color: #111d38 !important;
  border-color: #1e3158 !important;
  color: #f8fafc !important;
}

html.dark table {
  background-color: #111d38 !important;
  color: #f8fafc !important;
}

html.dark table th {
  background-color: #0e172e !important;
  color: #cbd5e1 !important;
  border-bottom-color: #1e3158 !important;
}

html.dark table td {
  border-top-color: #1e3158 !important;
  color: #e2e8f0 !important;
}

html.dark input,
html.dark select,
html.dark textarea {
  background-color: #0b1329 !important;
  border-color: #2a4374 !important;
  color: #f8fafc !important;
}

html.dark input::-moz-placeholder, html.dark textarea::-moz-placeholder {
  color: #64748b !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #64748b !important;
}

html.dark *:focus-visible {
  outline: 2.5px solid #60a5fa !important;
}

/* ── 6. High Contrast Mode (WCAG 2.2 AAA Target: Contrast >= 7:1) ────────── */
html.high-contrast,
[data-contrast='high'] {
  --color-background: #000000;
  --color-surface: #0a0a0a;
  --color-surface-hover: #171717;
  --color-border: #ffffff;
  --color-border-subtle: #ffffff;
  --color-border-strong: #ffffff;

  --color-text-primary: #ffffff;
  --color-text-secondary: #ffffff;
  --color-text-muted: #e2e8f0;
  --color-text-inverse: #000000;

  --color-primary: #38bdf8;
  --color-primary-hover: #7dd3fc;
  --focus-ring: 0 0 0 3px #ffff00;

  background-color: #000000 !important;
  color: #ffffff !important;
}

html.high-contrast body {
  background-color: #000000 !important;
  color: #ffffff !important;
}

html.high-contrast .apna-main-workspace,
html.high-contrast .apna-layout,
html.high-contrast .apna-page-content {
  background-color: #000000 !important;
  color: #ffffff !important;
}

html.high-contrast .apna-topbar,
html.high-contrast .apna-header {
  background-color: #000000 !important;
  border-bottom: 2px solid #ffffff !important;
  color: #ffffff !important;
}

html.high-contrast .dash-card,
html.high-contrast .apna-card,
html.high-contrast .card,
html.high-contrast .overview-card,
html.high-contrast .role-dash-kpi-card,
html.high-contrast .modal-content,
html.high-contrast .dialog-content {
  background-color: #000000 !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html.high-contrast table {
  background-color: #000000 !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
}

html.high-contrast table th {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
  font-weight: 900 !important;
}

html.high-contrast table td {
  border: 1px solid #ffffff !important;
  color: #ffffff !important;
}

html.high-contrast input,
html.high-contrast select,
html.high-contrast textarea {
  background-color: #000000 !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
}

html.high-contrast input:focus,
html.high-contrast select:focus,
html.high-contrast textarea:focus {
  border-color: #ffff00 !important;
}

html.high-contrast button {
  border: 2px solid #ffffff !important;
}

html.high-contrast *:focus-visible {
  outline: 3.5px solid #ffff00 !important;
  outline-offset: 3px !important;
}

/* Ensure dashboard cards, calendar widget, and holiday list have matching 18px 4-corner curve like .fac-card */
.dash-card,
.dash-calendar,
.dash-holidays {
  border-radius: 18px;
  overflow: hidden;
}
/* ════════════════════════════════════════════════════════════════════
   APNA CAMPUS — MODERN ENTERPRISE UNIVERSITY ERP SPLIT LOGIN
   Design:
     - Left Panel (~58%): Sunset collegiate campus photo with dark navy vignette,
       "A Smarter Campus Experience." with cyan accent, category pills,
       circular feature indicators, and bottom 3-stat counter with vertical dividers.
     - Right Panel (~42%): Clean white floating card with "Welcome Back",
       soft pill inputs, "Login →" gradient button, "OR" divider,
       and 3 "Try a Demo Account" role cards (Administration, Academics, Campus Services).
   ════════════════════════════════════════════════════════════════════ */

:root {
  --erp-primary-navy: #0f172a;
  --erp-blue-accent: #0077c8;
  --erp-cyan-accent: #00a8ff;
  --erp-text-main: #0f172a;
  --erp-text-muted: #64748b;
  --erp-border: #e2e8f0;
  --erp-input-bg: #f8fafc;
  --erp-radius-card: 26px;
  --erp-radius-input: 14px;
}

/* ── Split Layout Container ─────────────────────────────────────── */
.erp-split-page {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  display: grid;
  grid-template-columns: 58fr 42fr;
  background-image: url('/campus_background.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.erp-split-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 18, 36, 0.72) 0%,
    rgba(10, 24, 48, 0.54) 32%,
    rgba(12, 28, 54, 0.22) 58%,
    rgba(15, 32, 60, 0.0) 80%
  );
  pointer-events: none;
  z-index: 1;
}

/* ── Left Hero Panel (~58% Viewport) ────────────────────────────── */
.erp-hero-panel {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  z-index: 2;
  background: transparent;
}

.erp-hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  padding: 36px 44px;
  box-sizing: border-box;
}

/* ── Hero Top Header ────────────────────────────────────────────── */
.erp-top-brand-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.erp-top-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.erp-logo-box {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 10px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
}

.erp-campus-logo {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.erp-brand-titles {
  display: flex;
  flex-direction: column;
}

.erp-brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.15;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.erp-brand-tagline {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #e2e8f0;
  text-transform: uppercase;
  margin-top: 3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.erp-accreditation-chip {
  position: absolute;
  top: 36px;
  right: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(10, 22, 40, 0.65);
  border: none;
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.erp-chip-icon {
  color: #f59e0b;
}

/* ── Hero Center / Lower Body ───────────────────────────────────── */
.erp-hero-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 520px;
  width: 100%;
}

.erp-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #f1f5f9;
  margin-bottom: 12px;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.erp-kicker-sep {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.erp-hero-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(34px, 3.8vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.80), 0 1px 3px rgba(0, 0, 0, 0.95);
}

.erp-cyan-text {
  color: #38bdf8;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.95);
}

/* Institutional Descriptor Row — Perfectly flush left aligned */
.erp-hero-pills-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  width: 100%;
}

.erp-hero-pills-row span:not(.erp-dot) {
  color: #ffffff;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.erp-dot {
  color: #38bdf8;
  font-size: 12px;
}

/* Feature indicators — Equal 3-column grid perfectly aligned */
.erp-feature-indicators {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.erp-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(10, 22, 40, 0.55);
  border: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  box-sizing: border-box;
  width: 100%;
}

.erp-feature-item:hover {
  background: rgba(10, 22, 40, 0.75);
  transform: translateY(-1px);
}

.erp-feature-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.16);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
}

.erp-feature-text {
  font-size: 11.5px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom Stats Row — Matches exact width and alignment of feature cards */
.erp-stats-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(10, 22, 40, 0.55);
  border: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.erp-stat-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.erp-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.erp-stat-plus {
  color: #14b8a6;
  font-size: 18px;
  margin-left: 2px;
}

.erp-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
}

.erp-stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.18);
}

/* Clickable Smart Timetable Card */
.erp-feature-timetable-clickable {
  cursor: pointer;
}

.erp-feature-timetable-clickable:hover {
  background: rgba(10, 22, 40, 0.85);
  transform: translateY(-2px);
}

/* ── Right Panel — Login Section (~42% Viewport) ─────────────────── */
.erp-login-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 44px 24px 12px;
  background-color: transparent;
  height: 100%;
  width: 100%;
  overflow-y: auto;
  box-sizing: border-box;
  z-index: 2;
}

/* ── Floating White Login Card ───────────────────────────────────── */
.erp-login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 32px 34px 24px;
  border-radius: var(--erp-radius-card);
  background: #ffffff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22),
              0 0 1px 1px rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  animation: cardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Header */
.erp-card-brand-header {
  text-align: left;
  margin-bottom: 20px;
}

.erp-card-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--erp-text-main);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.erp-card-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--erp-text-muted);
  margin: 0;
}

/* Form */
.erp-login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.erp-field-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.erp-input-wrapper {
  position: relative;
  width: 100%;
  height: 46px;
  border-radius: var(--erp-radius-input);
  background: var(--erp-input-bg);
  border: 1px solid var(--erp-border);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.erp-input-wrapper:focus-within {
  background: #ffffff;
  border-color: #00a8ff;
  box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.15);
}

.erp-input-icon {
  color: #64748b;
  flex-shrink: 0;
}

.erp-input-wrapper input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--erp-text-main);
  padding: 0;
}

.erp-input-wrapper input::-moz-placeholder {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 400;
}

.erp-input-wrapper input::placeholder {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 400;
}

.erp-password-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 3px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.erp-password-toggle:hover {
  color: var(--erp-text-main);
}

/* Options row */
.erp-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 18px;
  font-size: 12.5px;
}

.erp-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  cursor: pointer;
  font-weight: 500;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.erp-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: #0077c8;
  cursor: pointer;
}

.erp-text-link {
  background: none;
  border: none;
  color: #0077c8;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.erp-text-link:hover {
  text-decoration: underline;
}

/* Feedback Alert */
.erp-alert-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.erp-alert-box.is-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.erp-alert-box.is-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.erp-alert-close {
  background: none;
  border: none;
  font-size: 16px;
  line-height: 1;
  color: inherit;
  cursor: pointer;
  padding: 0 0 0 8px;
  opacity: 0.7;
}

/* Primary Button (Solid Blue like screenshot) */
.erp-primary-btn {
  width: 100%;
  height: 46px;
  border-radius: var(--erp-radius-input);
  border: none;
  outline: none;
  background: #0084ff;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 132, 255, 0.35);
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.15s ease,
              box-shadow 0.15s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: manipulation;
  will-change: transform;
}

.erp-primary-btn:hover:not(:disabled) {
  background: #0077ee;
  box-shadow: 0 6px 20px rgba(0, 132, 255, 0.45);
  transform: translateY(-1.5px);
}

.erp-primary-btn:active:not(:disabled) {
  transform: scale(0.975) translateY(1px);
  filter: brightness(0.95);
  transition-duration: 0.05s !important;
}

.erp-primary-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.erp-spin {
  animation: spin 0.85s linear infinite;
}

/* Sublink row */
.erp-sublink-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12.5px;
}

.erp-sublink-text {
  color: var(--erp-text-muted);
}

.erp-highlight-link {
  background: none;
  border: none;
  color: #0077c8;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
}

.erp-highlight-link:hover {
  text-decoration: underline;
}

/* Section Divider with OR */
.erp-section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 14px;
  position: relative;
  text-align: center;
}

.erp-section-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
  z-index: 0;
}

.erp-section-divider span {
  position: relative;
  z-index: 1;
  background: #ffffff;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

/* Try a Demo Account Section */
.erp-demo-section {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.erp-demo-header {
  text-align: left;
  margin-bottom: 10px;
}

.erp-demo-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--erp-text-main);
  margin: 0 0 2px;
}

.erp-demo-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--erp-text-muted);
  margin: 0;
}

/* 3 Category Cards Grid */
.erp-category-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}

.erp-cat-card {
  background: var(--cat-bg);
  border: 1px solid var(--cat-border);
  border-radius: 12px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.18s ease;
  height: 68px;
  box-sizing: border-box;
  text-align: left;
}

.erp-cat-card:hover,
.erp-cat-card.active {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  border-color: var(--cat-color);
  transform: translateY(-1.5px);
}

.erp-cat-card:active {
  transform: scale(0.97) translateY(1px);
  filter: brightness(0.96);
  transition-duration: 0.05s !important;
}

.erp-cat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.erp-cat-icon-box {
  color: var(--cat-color);
  display: flex;
  align-items: center;
}

.erp-cat-arrow {
  color: #64748b;
  transition: transform 0.15s ease;
}

.erp-cat-card:hover .erp-cat-arrow,
.erp-cat-card.active .erp-cat-arrow {
  transform: translateX(2px);
  color: var(--cat-color);
}

.erp-cat-bottom {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  margin-top: 4px;
}

.erp-cat-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--erp-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.erp-cat-count {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--erp-text-muted);
  margin-top: 1px;
}

/* Expanded Roles Drawer */
.erp-expanded-roles-drawer {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 6px;
  animation: fadeIn 0.18s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.erp-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--erp-text-main);
  margin-bottom: 6px;
}

.erp-drawer-close {
  background: none;
  border: none;
  font-size: 16px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0;
}

.erp-drawer-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.erp-drawer-role-pill {
  padding: 5px 9px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.12s ease;
}

.erp-drawer-role-pill:hover {
  border-color: #0077c8;
  background: #f0f9ff;
  color: #0077c8;
  transform: translateY(-1px);
}

.erp-drawer-role-pill:active {
  transform: scale(0.96) translateY(1px);
  filter: brightness(0.96);
  transition-duration: 0.05s !important;
}

/* Footer */
.erp-card-footer {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--erp-text-muted);
}

.erp-footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.erp-footer-links a {
  color: var(--erp-text-muted);
  text-decoration: none;
  font-weight: 500;
}

.erp-footer-links a:hover {
  color: var(--erp-text-main);
}

.erp-footer-bar {
  color: #cbd5e1;
}

.erp-footer-copyright {
  margin: 0;
  font-weight: 500;
  color: var(--erp-text-muted);
}

/* ── Responsive Adaptations ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .erp-split-page {
    grid-template-columns: 1fr 1fr;
  }
  .erp-hero-content {
    padding: 24px 28px;
  }
}

@media (max-width: 768px) {
  .erp-split-page {
    grid-template-columns: 1fr;
    position: relative;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .erp-hero-panel {
    display: flex;
    height: auto;
    padding: 24px 20px 12px;
    z-index: 2;
  }
  .erp-hero-content {
    padding: 0;
    gap: 16px;
    height: auto;
  }
  .erp-top-brand-wrapper {
    flex-wrap: wrap;
    gap: 10px;
  }
  .erp-accreditation-chip {
    position: static;
    margin-top: 4px;
  }
  .erp-hero-body {
    padding: 8px 0;
  }
  .erp-hero-title {
    font-size: clamp(26px, 6.5vw, 34px);
    margin-bottom: 12px;
  }
  .erp-hero-pills-row {
    font-size: 12px;
    padding: 6px 14px;
    gap: 7px;
    margin-bottom: 16px;
  }
  .erp-feature-indicators {
    gap: 12px;
    margin-bottom: 20px;
  }
  .erp-feature-item {
    padding: 8px 12px;
  }
  .erp-stats-row {
    gap: 16px;
    padding: 8px 16px;
  }
  .erp-stat-num {
    font-size: 20px;
  }
  .erp-login-section {
    padding: 16px 16px 40px;
    height: auto;
    min-height: auto;
    z-index: 2;
  }
  .erp-login-card {
    max-width: 440px;
    padding: 24px 20px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .erp-hero-panel {
    padding: 18px 16px 4px;
  }
  .erp-feature-indicators,
  .erp-stats-row {
    display: none;
  }
  .erp-hero-body {
    padding: 0;
  }
  .erp-hero-title {
    font-size: 1.55rem;
    margin-bottom: 6px;
  }
  .erp-hero-pills-row {
    margin-bottom: 8px;
    font-size: 11px;
    padding: 5px 10px;
  }
  .erp-login-section {
    padding: 10px 12px 32px;
  }
  .erp-login-card {
    width: 100%;
    max-width: 100%;
    padding: 20px 14px;
    border-radius: 18px;
  }
}

@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;
  }
}

/* ════════════════════════════════════════════════════════════════════
   DASHBOARD PAGE  (Faculty / Admin)
   ════════════════════════════════════════════════════════════════════ */

.dashboard-page {
  min-height: 100svh;
  background: var(--surface-bg);
}

.dashboard-header {
  display: flex;
  height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid var(--border-default);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 10;
}

.dashboard-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dashboard-brand .gift-mark {
  width: 38px;
  height: 38px;
}

.logout-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.logout-button:hover {
  border-color: var(--danger-400);
  color: var(--danger-500);
  background: #fef2f2;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  max-width: 1200px;
  margin: 0 auto;
  gap: 0;
  min-height: calc(100svh - 68px);
}

.dashboard-account-rail {
  padding: 40px 28px;
  border-right: 1px solid var(--border-subtle);
  background: var(--surface-card);
  animation: slide-in-left 400ms ease both;
}

.dashboard-rail-emblem {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--accent-500);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-account-rail h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dashboard-rail-detail {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.dashboard-rail-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-bg);
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.dashboard-rail-details>div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dashboard-rail-details dt {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.dashboard-rail-details dd {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.dashboard-rail-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-500);
  font-size: 12px;
  font-weight: 600;
  width: -moz-fit-content;
  width: fit-content;
}

.dashboard-rail-status>span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success-500);
  animation: pulse-dot 2s ease-in-out infinite;
}

.dashboard-content {
  padding: 48px 48px 80px;
  animation: fade-in 450ms ease both;
}

.welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.welcome-row h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.welcome-detail {
  color: var(--text-muted);
  font-size: 14px;
}

.today-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.overview-section {
  margin-top: 8px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading .eyebrow {
  margin-bottom: 4px;
  font-size: 10px;
}

.section-heading h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.live-status>span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success-500);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.overview-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: default;
}

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

.overview-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius-md);
}

.overview-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-500);
}

.overview-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-500);
}

.overview-icon.gold {
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold-500);
}

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

.overview-copy>span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.overview-copy strong {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.overview-copy small {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 4px;
}

.overview-arrow {
  flex: 0 0 auto;
  color: var(--gray-300);
  margin-top: 4px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.overview-item:hover .overview-arrow {
  color: var(--accent-400);
  transform: translateX(3px);
}

/* ── Animations ── */
@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.4);
  }
}

/* ── Responsive Login (Completely Fixed & Fitted) ── */
@media (max-width: 1024px) {
  .login-split-page {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    grid-template-columns: 1fr;
    grid-template-rows: 220px 1fr;
    overflow: hidden;
  }

  .campus-hero-content {
    padding: 16px 24px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-description,
  .hero-feature-tags,
  .hero-stats-glass {
    display: none;
  }

  .login-card-section {
    padding: 8px;
    height: 100%;
    overflow: hidden;
  }
}

@media (max-width: 680px) {
  .campus-scene {
    display: none;
  }

  .login-split-page {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
  }

  .login-card-section {
    padding: 10px;
    width: 100%;
  }

  .neumorph-login-card {
    padding: 16px 18px 12px;
    border-radius: 22px;
    max-width: 340px;
  }
}

/* ── Responsive Dashboard ── */
@media (max-width: 900px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-account-rail {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px 20px;
  }

  .dashboard-rail-details {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .dashboard-content {
    padding: 28px 20px 60px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .welcome-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
   LANDING PAGE THEME SWITCHER & LANGUAGE SELECTOR
   ════════════════════════════════════════════════════════════════════ */
.landing-top-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 440px;
  gap: 12px;
  z-index: 10;
  box-sizing: border-box;
}

.landing-theme-toggle-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  gap: 2px;
}

.landing-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.landing-theme-btn:hover {
  color: #0f172a;
}

.landing-theme-btn.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.landing-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: all 0.18s ease;
}

.landing-lang-btn:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.landing-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 175px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  padding: 6px;
  z-index: 100;
  animation: cardFadeIn 0.15s ease-out;
}

.landing-lang-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
  transition: all 0.15s ease;
}

.landing-lang-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.landing-lang-item.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
}

/* ════════════════════════════════════════════════════════════════════
   GLOBAL DARK THEME STYLING FOR LANDING PAGE & LOGIN
   ════════════════════════════════════════════════════════════════════ */
html[data-theme="dark"] .erp-login-card,
body.dark-theme .erp-login-card {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .erp-card-title,
body.dark-theme .erp-card-title {
  color: #f8fafc !important;
}

html[data-theme="dark"] .erp-card-subtitle,
body.dark-theme .erp-card-subtitle {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .erp-input-wrapper,
body.dark-theme .erp-input-wrapper {
  background: #1e293b !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .erp-input-wrapper:focus-within,
body.dark-theme .erp-input-wrapper:focus-within {
  background: #1e293b !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

html[data-theme="dark"] .erp-input-wrapper input,
body.dark-theme .erp-input-wrapper input {
  color: #f8fafc !important;
}

html[data-theme="dark"] .erp-input-wrapper input::-moz-placeholder, body.dark-theme .erp-input-wrapper input::-moz-placeholder {
  color: #64748b !important;
}

html[data-theme="dark"] .erp-input-wrapper input::placeholder,
body.dark-theme .erp-input-wrapper input::placeholder {
  color: #64748b !important;
}

html[data-theme="dark"] .erp-input-icon,
body.dark-theme .erp-input-icon {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .erp-checkbox-label span,
body.dark-theme .erp-checkbox-label span {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .erp-text-link,
body.dark-theme .erp-text-link {
  color: #38bdf8 !important;
}

html[data-theme="dark"] .erp-section-divider::before,
html[data-theme="dark"] .erp-section-divider::after,
body.dark-theme .erp-section-divider::before,
body.dark-theme .erp-section-divider::after {
  background: #334155 !important;
}

html[data-theme="dark"] .erp-section-divider span,
body.dark-theme .erp-section-divider span {
  color: #94a3b8 !important;
  background: #0f172a !important;
}

html[data-theme="dark"] .erp-demo-title,
body.dark-theme .erp-demo-title {
  color: #f8fafc !important;
}

html[data-theme="dark"] .erp-demo-subtitle,
body.dark-theme .erp-demo-subtitle {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .erp-cat-card,
body.dark-theme .erp-cat-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .erp-cat-name,
body.dark-theme .erp-cat-name {
  color: #f8fafc !important;
}

html[data-theme="dark"] .erp-cat-count,
body.dark-theme .erp-cat-count {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .erp-expanded-roles-drawer,
body.dark-theme .erp-expanded-roles-drawer {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .erp-role-chip,
body.dark-theme .erp-role-chip {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .erp-role-chip:hover,
body.dark-theme .erp-role-chip:hover {
  background: #1e3a8a !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .landing-theme-toggle-group,
body.dark-theme .landing-theme-toggle-group {
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(51, 65, 85, 0.8) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .landing-theme-btn,
body.dark-theme .landing-theme-btn {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .landing-theme-btn:hover,
body.dark-theme .landing-theme-btn:hover {
  color: #f8fafc !important;
}

html[data-theme="dark"] .landing-theme-btn.active,
body.dark-theme .landing-theme-btn.active {
  background: #1e293b !important;
  color: #38bdf8 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .landing-lang-btn,
body.dark-theme .landing-lang-btn {
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(51, 65, 85, 0.8) !important;
  color: #f8fafc !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .landing-lang-menu,
body.dark-theme .landing-lang-menu {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .landing-lang-item,
body.dark-theme .landing-lang-item {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .landing-lang-item:hover,
body.dark-theme .landing-lang-item:hover {
  background: #1e293b !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .landing-lang-item.active,
body.dark-theme .landing-lang-item.active {
  background: #1e3a8a !important;
  color: #38bdf8 !important;
}/* ── Centralized Accessibility Panel Styles ───────────────────────── */
.acc-backdrop {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  overscroll-behavior: contain;
  animation: accFadeIn 0.2s ease-out;
}

@keyframes accFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.acc-panel {
  background: var(--color-surface, #ffffff);
  color: var(--color-text-primary, #0f172a);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  margin: auto;
  border-radius: 18px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--color-border, #e2e8f0);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: accSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes accSlideUp {
  from { transform: translateY(18px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Header */
.acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
  background: var(--color-surface, #ffffff);
}

.acc-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.acc-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acc-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: inherit;
}

.acc-header p {
  font-size: 0.82rem;
  color: var(--color-text-secondary, #64748b);
  margin: 2px 0 0 0;
}

.acc-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: var(--color-text-secondary, #64748b);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.acc-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Body */
.acc-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.acc-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.acc-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary, #2563eb);
}

.acc-section-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text-primary, #0f172a);
}

.acc-section-hint {
  font-size: 0.8rem;
  color: var(--color-text-secondary, #64748b);
  margin: 0;
}

/* Pills Grid (Font size & Theme) */
.acc-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
}

.acc-pill-btn {
  background: #f8fafc;
  border: 1.5px solid var(--color-border, #e2e8f0);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: all 0.15s ease;
  position: relative;
  color: inherit;
}

.acc-pill-btn:hover {
  border-color: #93c5fd;
  background: #ffffff;
}

.acc-pill-btn.active {
  border-color: var(--color-primary, #2563eb);
  background: #eff6ff;
  color: var(--color-primary, #2563eb);
  box-shadow: 0 0 0 1px var(--color-primary, #2563eb);
}

.pill-title {
  font-size: 0.88rem;
  font-weight: 700;
}

.pill-sub {
  font-size: 0.72rem;
  color: var(--color-text-secondary, #64748b);
  margin-top: 3px;
}

.acc-pill-btn.active .pill-sub {
  color: #1d4ed8;
}

.pill-check {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* Toggles Grid */
.acc-toggles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 640px) {
  .acc-toggles-grid {
    grid-template-columns: 1fr;
  }
}

.acc-toggle-card {
  background: #f8fafc;
  border: 1.5px solid var(--color-border, #e2e8f0);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.acc-toggle-info {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.acc-toggle-icon {
  color: var(--color-primary, #2563eb);
  margin-top: 2px;
}

.acc-toggle-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
}

.acc-toggle-info p {
  font-size: 0.72rem;
  color: var(--color-text-secondary, #64748b);
  margin: 3px 0 0 0;
  line-height: 1.35;
}

/* Switch */
.acc-switch {
  width: 44px;
  height: 24px;
  border-radius: 9999px;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  padding: 2px;
  transition: background 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

.acc-switch.checked {
  background: var(--color-primary, #2563eb);
}

.switch-thumb {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.acc-switch.checked .switch-thumb {
  transform: translateX(20px);
}

/* Segmented select */
.acc-segmented-select {
  display: flex;
  background: #e2e8f0;
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}

.segmented-btn {
  background: transparent;
  border: none;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  color: #475569;
  transition: all 0.15s ease;
}

.segmented-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Voice Navigator styling */
.voice-nav-container {
  background: #f8fafc;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.voice-nav-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.voice-mic-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1.5px solid #2563eb;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.voice-mic-toggle-btn.active {
  background: #ef4444;
  border-color: #ef4444;
}

.voice-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: voicePulse 1.2s infinite ease-in-out;
}

@keyframes voicePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

.voice-feedback-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.voice-transcript-row {
  display: flex;
  gap: 6px;
}

.transcript-label {
  font-weight: 700;
  color: #64748b;
}

.transcript-value {
  color: #0f172a;
  font-style: italic;
}

.voice-action-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #059669;
}

.voice-error-banner {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.voice-nav-unsupported {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Accordion for voice commands */
.acc-commands-accordion {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.acc-accordion-trigger {
  width: 100%;
  padding: 0.65rem 1rem;
  background: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
}

.acc-commands-table-wrap {
  max-height: 180px;
  overflow-y: auto;
  border-top: 1px solid #e2e8f0;
}

.acc-commands-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.acc-commands-table th {
  background: #f8fafc;
  padding: 6px 12px;
  text-align: left;
  font-weight: 700;
  color: #475569;
}

.acc-commands-table td {
  padding: 6px 12px;
  border-top: 1px solid #f1f5f9;
}

.acc-commands-table code {
  background: #f1f5f9;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 700;
  color: #0f172a;
}

/* Shortcuts Grid */
.acc-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem;
}

.acc-shortcut-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--color-text-primary, #0f172a);
}

.acc-shortcut-item kbd {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 0 #cbd5e1;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  color: #1e293b;
}

/* Footer */
.acc-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border, #e2e8f0);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.acc-compliance-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #059669;
}

.acc-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.acc-reset-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #475569;
  transition: all 0.15s ease;
}

.acc-reset-btn:hover {
  background: #ffffff;
  color: #0f172a;
}

.acc-done-btn {
  background: var(--color-primary, #2563eb);
  border: 1px solid var(--color-primary, #2563eb);
  color: #ffffff;
  border-radius: 8px;
  padding: 0.45rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.acc-done-btn:hover {
  background: #1d4ed8;
}

/* ── Dark Mode Adaptations for Accessibility Panel ─────────────────── */
.dark .acc-panel {
  background: #0f172a !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

.dark .acc-header {
  background: #0f172a !important;
  border-color: #334155 !important;
}

.dark .acc-icon-wrap {
  background: #1e293b !important;
  color: #60a5fa !important;
}

.dark .acc-section-header h3 {
  color: #f8fafc !important;
}

.dark .acc-pill-btn {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

.dark .acc-pill-btn.active {
  background: #1e3a8a !important;
  border-color: #3b82f6 !important;
  color: #93c5fd !important;
}

.dark .acc-pill-btn.active .pill-sub {
  color: #bfdbfe !important;
}

.dark .acc-toggle-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}

.dark .acc-segmented-select {
  background: #334155 !important;
}

.dark .segmented-btn {
  color: #cbd5e1 !important;
}

.dark .segmented-btn.active {
  background: #0f172a !important;
  color: #ffffff !important;
}

.dark .voice-nav-container {
  background: #1e293b !important;
  border-color: #334155 !important;
}

.dark .voice-feedback-card {
  background: #0f172a !important;
  border-color: #334155 !important;
}

.dark .transcript-value {
  color: #f8fafc !important;
}

.dark .acc-commands-accordion {
  border-color: #334155 !important;
}

.dark .acc-accordion-trigger {
  background: #1e293b !important;
  color: #60a5fa !important;
}

.dark .acc-commands-table th {
  background: #0f172a !important;
  color: #94a3b8 !important;
}

.dark .acc-commands-table td {
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

.dark .acc-commands-table code {
  background: #0f172a !important;
  color: #f8fafc !important;
}

.dark .acc-shortcut-item {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

.dark .acc-shortcut-item kbd {
  background: #0f172a !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}

.dark .acc-footer {
  background: #0b1120 !important;
  border-color: #334155 !important;
}

.dark .acc-reset-btn {
  border-color: #475569 !important;
  color: #cbd5e1 !important;
}

/* ── High Contrast Adaptations for Accessibility Panel ──────────────── */
.high-contrast .acc-panel {
  background: #000000 !important;
  color: #ffffff !important;
  border: 3px solid #ffffff !important;
}

.high-contrast .acc-header {
  border-bottom: 2px solid #ffffff !important;
  background: #000000 !important;
}

.high-contrast .acc-pill-btn {
  background: #000000 !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
}

.high-contrast .acc-pill-btn.active {
  background: #ffffff !important;
  color: #000000 !important;
  border: 3px solid #ffff00 !important;
}

.high-contrast .acc-pill-btn.active .pill-sub {
  color: #000000 !important;
}

.high-contrast .acc-toggle-card {
  background: #000000 !important;
  border: 2px solid #ffffff !important;
}

.high-contrast .acc-switch.checked {
  background: #ffff00 !important;
}

.high-contrast .acc-switch.checked .switch-thumb {
  background: #000000 !important;
}

.high-contrast .acc-done-btn {
  background: #ffff00 !important;
  color: #000000 !important;
  border: 2px solid #ffffff !important;
  font-weight: 900 !important;
}

/* ==============================================================================
   Apna Campus ERP — Universal Navigation & Layout System (Navigation.css)
   Clean, modern, responsive architecture across all 15+ portals & roles.
   ============================================================================== */

:root {
  --topbar-height: 3.75rem;
  --breadcrumb-height: 2.5rem;
  --sidebar-expanded-width: 17rem;
  --sidebar-collapsed-width: 4.5rem;
  --sidebar-width: var(--sidebar-expanded-width);
  --sidebar-bg: #071124;
  --sidebar-bg-dark: #0b1830;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-text: #94a3b8;
  --sidebar-text-hover: #ffffff;
  --sidebar-active-bg: #2563eb;
  --sidebar-active-text: #ffffff;
  --content-bg: #f8fafc;
  --header-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
}

.apna-app-layout.sidebar-open {
  --sidebar-width: var(--sidebar-expanded-width);
}

.apna-app-layout.sidebar-closed {
  --sidebar-width: 0rem;
}

/* Master Layout Container */
.apna-app-layout {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background: var(--content-bg);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

.campus-portal-wrapper {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: none !important;
  filter: none !important;
}

/* ─────────────────────────────────────────────────────────────
   1. GLOBAL TOP BAR
   ───────────────────────────────────────────────────────────── */
.apna-topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topbar-height);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: left 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.apna-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.apna-hamburger-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #f8fafc;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.15s ease,
              border-color 0.15s ease,
              color 0.15s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: manipulation;
  will-change: transform;
}

.apna-hamburger-btn:hover {
  background: #e2e8f0;
  color: #1e40af;
  border-color: #cbd5e1;
}

.apna-hamburger-btn:active {
  transform: scale(0.92);
  transition-duration: 0.05s !important;
}

.apna-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.apna-topbar-logo {
  height: 32px;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.apna-topbar-brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.apna-topbar-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.apna-topbar-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.apna-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.apna-notification-trigger {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: #475569;
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.15s ease,
              color 0.15s ease,
              border-color 0.15s ease,
              box-shadow 0.18s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: manipulation;
  will-change: transform;
}

.apna-notification-trigger:hover {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

.apna-notification-trigger:hover svg {
  animation: campusBellWiggle 0.6s ease-in-out;
}

.apna-notification-trigger:active {
  transform: scale(0.92);
  transition-duration: 0.05s !important;
}

.apna-notification-trigger:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.35);
  outline-offset: 2px;
}

.apna-notification-count {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #dc2626;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 13px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
  animation: campusPulseGlow 2.5s infinite;
}

.apna-user-pill-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.15s ease,
              border-color 0.15s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: manipulation;
  will-change: transform;
}

.apna-user-pill-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.apna-user-pill-btn:active {
  transform: scale(0.97);
  transition-duration: 0.05s !important;
}

.apna-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.apna-user-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.apna-user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apna-user-role {
  font-size: 0.7rem;
  font-weight: 600;
  color: #2563eb;
  text-transform: uppercase;
}

/* User Menu Popover */

/* Language Dropdown Menu */
.apna-lang-menu {
  position: absolute;
  top: calc(var(--topbar-height) + 6px);
  right: 0;
  width: auto;
  min-width: 160px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  padding: 6px;
  z-index: 220;
  animation: apna-fade-in 0.15s ease-out;
}

.apna-lang-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.apna-lang-menu-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.apna-lang-menu-item.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
}

.apna-user-menu {
  position: absolute;
  top: calc(var(--topbar-height) + 6px);
  right: 1.25rem;
  width: auto;
  min-width: 230px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  padding: 6px;
  z-index: 200;
  animation: apna-fade-in 0.15s ease-out;
}

.apna-user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  border: none;
  background: transparent;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.apna-user-menu-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.apna-user-menu-item.logout {
  color: #dc2626;
  border: none;
  margin: 0;
  padding: 10px 14px;
  font-weight: 700;
}

.apna-user-menu-item.logout:hover {
  background: #fef2f2;
  color: #b91c1c;
}

/* ─────────────────────────────────────────────────────────────
   2. BREADCRUMB ROW
   ───────────────────────────────────────────────────────────── */
.apna-app-layout.no-breadcrumbs {
  --breadcrumb-height: 0px;
}

.apna-app-layout.no-breadcrumbs .apna-breadcrumb-bar {
  position: fixed;
  top: var(--topbar-height);
  left: var(--sidebar-width);
  right: 0;
  height: var(--breadcrumb-height);
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  z-index: 90;
  transition: left 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.apna-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.apna-breadcrumbs::-webkit-scrollbar {
  display: none;
}

.apna-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  border: none;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: inherit;
  font-family: inherit;
  cursor: default;
  transition: color 0.15s ease;
}

button.apna-breadcrumb-item {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: manipulation;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
  will-change: transform;
}

button.apna-breadcrumb-item:hover {
  color: #2563eb;
  background: #f1f5f9;
}

button.apna-breadcrumb-item:active {
  transform: scale(0.96);
  transition-duration: 0.05s !important;
}

.apna-breadcrumb-item.active {
  color: #0f172a;
  font-weight: 700;
}

.apna-breadcrumb-separator {
  color: #cbd5e1;
  font-size: 0.75rem;
}

/* ─────────────────────────────────────────────────────────────
   3. STRUCTURAL BODY & SIDEBAR
   ───────────────────────────────────────────────────────────── */
.apna-layout-body {
  display: flex;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
}

.apna-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #071124 0%, #0b1830 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  z-index: 120;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  flex-shrink: 0;
  overscroll-behavior: contain;
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.24s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease,
    visibility 0.24s;
}

/* Open state on Desktop */
@media (min-width: 1025px) {
  .apna-app-layout.sidebar-open .apna-sidebar,
  .apna-sidebar.desktop-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
  }

  .apna-app-layout.sidebar-closed .apna-sidebar,
  .apna-sidebar.desktop-closed {
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    box-shadow: none;
  }
}

.apna-sidebar::-webkit-scrollbar {
  width: 5px;
}

.apna-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Sidebar Top Identity Header */
.apna-sidebar-header {
  height: var(--topbar-height);
  min-height: var(--topbar-height);
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  box-sizing: border-box;
}

.apna-sidebar-brand-btn {
  background: transparent;
  border: none;
  padding: 4px 6px;
  margin: -4px -6px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  flex: 1;
  min-width: 0;
  border-radius: 8px;
  transition: opacity 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.apna-sidebar-brand-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.apna-sidebar-brand-btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.apna-sidebar-logo-frame {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ffffff;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.apna-sidebar-logo {
  height: 28px;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.apna-sidebar-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: opacity 0.15s ease;
}

.apna-sidebar-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apna-sidebar-subtitle {
  font-size: 0.7rem;
  color: #60a5fa;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Navigation List */
.apna-sidebar-nav {
  padding: 0.75rem 0.625rem;
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.apna-sidebar-section {
  margin-top: 10px;
  margin-bottom: 4px;
}

.apna-sidebar-section-title {
  font-size: 0.72rem;
  font-weight: 900;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  margin: 0;
  line-height: 1.35;
  flex: 1;
  transition: color 0.15s ease;
}

.apna-sidebar-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(100, 116, 139, 0.08);
  border: 1px solid rgba(100, 116, 139, 0.18);
  padding: 1px 0;
  margin-bottom: 4px;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: manipulation;
  will-change: transform;
}

.apna-sidebar-section-toggle:hover {
  background: rgba(100, 116, 139, 0.16);
  border-color: rgba(148, 163, 184, 0.35);
}

.apna-sidebar-section-toggle:active {
  transform: scale(0.985);
  transition-duration: 0.05s !important;
}

.apna-sidebar-section-toggle:hover .apna-sidebar-section-title {
  color: #cbd5e1;
}

.apna-sidebar-section-chevron {
  color: #64748b;
  padding-right: 10px;
  display: flex;
  align-items: center;
  transition: color 0.15s ease, transform 0.15s ease;
}

.apna-sidebar-section-toggle:hover .apna-sidebar-section-chevron {
  color: #cbd5e1;
}

.apna-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9.5px 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.15s ease,
              border-color 0.15s ease,
              transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.15s ease;
  position: relative;
  box-sizing: border-box;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: manipulation;
  will-change: transform;
  outline: none;
}

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

.apna-sidebar-item:active {
  transform: scale(0.97) translateX(1px);
  background: rgba(255, 255, 255, 0.14);
  transition-duration: 0.05s !important;
}

.apna-sidebar-item.active {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transform: translateX(0);
}

.apna-sidebar-item.active:hover {
  background: #1d4ed8 !important;
  transform: translateX(2px);
}

.apna-sidebar-item.active:active {
  transform: scale(0.975);
  transition-duration: 0.05s !important;
}

@keyframes apnaSubmenuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.apna-sidebar-section .apna-sidebar-item {
  animation: apnaSubmenuSlideDown 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.apna-sidebar-item-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
}

.apna-sidebar-item:hover .apna-sidebar-item-icon {
  transform: scale(1.12);
  color: #60a5fa;
}

.apna-sidebar-item.active .apna-sidebar-item-icon {
  transform: scale(1.06);
  color: #ffffff;
}

.apna-sidebar-item-label {
  flex: 1;
  white-space: normal;
  line-height: 1.25;
  word-break: break-word;
  transition: opacity 0.15s ease;
}

.apna-sidebar-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.apna-sidebar-badge.danger {
  background: #dc2626;
  color: #ffffff;
}

.apna-sidebar-badge.warning {
  background: #d97706;
  color: #ffffff;
}

.apna-sidebar-badge.success {
  background: #16a34a;
  color: #ffffff;
}

/* Sidebar Footer / User identity card */
.apna-sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.apna-sidebar-role-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 8px 10px;
}

.apna-sidebar-role-kicker {
  font-size: 0.62rem;
  font-weight: 800;
  color: #60a5fa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.apna-sidebar-role-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─────────────────────────────────────────────────────────────
   4. MAIN WORKSPACE & PAGE HEADER
   ───────────────────────────────────────────────────────────── */
.apna-main-workspace {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-width);
  margin-top: calc(var(--topbar-height) + var(--breadcrumb-height));
  height: calc(100vh - (var(--topbar-height) + var(--breadcrumb-height)));
  height: calc(100dvh - (var(--topbar-height) + var(--breadcrumb-height)));
  min-height: calc(100vh - (var(--topbar-height) + var(--breadcrumb-height)));
  width: calc(100% - var(--sidebar-width));
  padding: 1.5rem 2rem 3rem;
  background: var(--content-bg);
  box-sizing: border-box;
  transition: margin-left 0.24s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto !important;
  overflow-x: hidden;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

.apna-page-content {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: campusFadeIn 0.2s ease-out;
}

.apna-app-layout.no-breadcrumbs .apna-main-workspace {
  margin-top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  height: calc(100dvh - var(--topbar-height));
  min-height: calc(100vh - var(--topbar-height));
}

.apna-main-workspace::-webkit-scrollbar {
  width: 8px;
}

.apna-main-workspace::-webkit-scrollbar-track {
  background: transparent;
}

.apna-main-workspace::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 4px;
}

.apna-main-workspace::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.75);
}

.apna-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.apna-page-title-group h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.apna-page-title-group p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.apna-page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─────────────────────────────────────────────────────────────
   6. RESPONSIVE MOBILE DRAWER (<= 1024px)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .apna-topbar {
    left: 0 !important;
  }

  .apna-breadcrumb-bar {
    left: 0 !important;
  }

  .apna-sidebar {
    top: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: min(85vw, 18rem) !important;
    z-index: 1000;
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    box-shadow: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.2s ease,
      visibility 0.25s;
  }

  .apna-sidebar.mobile-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    box-shadow: 12px 0 40px rgba(2, 6, 23, 0.6);
  }

  .apna-main-workspace {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 1rem 1rem 2.5rem;
    height: calc(100vh - (var(--topbar-height) + var(--breadcrumb-height)));
    height: calc(100dvh - (var(--topbar-height) + var(--breadcrumb-height)));
    overflow-y: auto !important;
    overflow-x: hidden;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .apna-app-layout.no-breadcrumbs .apna-main-workspace {
    margin-top: var(--topbar-height);
    height: calc(100vh - var(--topbar-height));
    height: calc(100dvh - var(--topbar-height));
  }

  .apna-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 999;
    animation: apna-fade-in 0.2s ease-out;
  }

  .apna-topbar-brand-info {
    display: none;
  }

  .apna-user-meta {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --topbar-height: 52px;
    --breadcrumb-height: 36px;
  }
  .apna-topbar {
    padding: 0 0.75rem;
  }
  .apna-topbar-left {
    gap: 8px;
  }
  .apna-topbar-logo {
    height: 28px;
  }
  .apna-topbar-title {
    font-size: 0.85rem;
  }
  .apna-main-workspace {
    padding: 0.75rem 0.65rem 2.5rem !important;
  }
  .apna-breadcrumb-row {
    padding: 0 0.75rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .apna-breadcrumb-row::-webkit-scrollbar {
    display: none;
  }
  .apna-sidebar {
    width: min(290px, 86vw) !important;
  }
}

@media (max-width: 380px) {
  .apna-topbar-badge {
    display: none;
  }
  .apna-user-pill-btn span {
    display: none;
  }
  .apna-user-pill-btn {
    padding: 3px;
  }
}

@keyframes apna-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ─────────────────────────────────────────────────────────────
   7. NORMALIZATION OF LEGACY CONFLICTING STYLES
   ───────────────────────────────────────────────────────────── */
/* Ensure no legacy portal header or layout breaks the unified positioning */
.apna-app-layout .hod-header,
.apna-app-layout .admin-header,
.apna-app-layout .erp-header,
.apna-app-layout .campus-os-header,
.apna-app-layout .accounts-header,
.apna-app-layout .mgmt-header,
.apna-app-layout .canteen-header,
.apna-app-layout .hostel-header {
  display: none !important;
}

.apna-app-layout .hod-sidebar,
.apna-app-layout .admin-sidebar,
.apna-app-layout .erp-sidebar,
.apna-app-layout .campus-os-sidebar,
.apna-app-layout .accounts-sidebar,
.apna-app-layout .mgmt-sidebar,
.apna-app-layout .canteen-sidebar,
.apna-app-layout .hostel-sidebar {
  display: none !important;
}

.apna-app-layout .hod-layout,
.apna-app-layout .admin-layout,
.apna-app-layout .erp-exam-layout,
.apna-app-layout .campus-os-container,
.apna-app-layout .mgmt-layout {
  display: block !important;
  width: 100% !important;
  min-height: auto !important;
  grid-template-columns: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.apna-app-layout .hod-main,
.apna-app-layout .admin-main,
.apna-app-layout .erp-main-content,
.apna-app-layout .campus-os-main,
.apna-app-layout .mgmt-main {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* ─────────────────────────────────────────────────────────────
   8. SIDEBAR CLOSE BUTTON & LOGOUT CONFIRMATION MODAL
   ───────────────────────────────────────────────────────────── */
.apna-sidebar-close-btn {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.apna-sidebar-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.apna-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  animation: apna-modal-fade-in 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.apna-modal-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.2), 0 10px 10px -5px rgba(15, 23, 42, 0.1);
  border: 1px solid var(--border-color);
  max-width: 440px;
  width: 100%;
  padding: 1.75rem;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: apna-modal-scale-in 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.apna-modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.apna-modal-close-btn:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

.apna-modal-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.apna-modal-icon-badge.danger {
  background: #fee2e2;
  color: #dc2626;
  border: 2px solid #fecaca;
}

.apna-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
}

.apna-modal-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0 0 1.5rem 0;
  line-height: 1.45;
}

.apna-modal-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.apna-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.apna-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.apna-btn-secondary:hover:not(:disabled) {
  background: #e2e8f0;
  color: #0f172a;
}

.apna-btn-danger {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

.apna-btn-danger:hover:not(:disabled) {
  background: #b91c1c;
  border-color: #b91c1c;
}

.apna-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@keyframes apna-modal-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes apna-modal-scale-in {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* ─────────────────────────────────────────────────────────────
   GLOBAL TOPBAR & SIDEBAR MODERN ENHANCEMENTS
   ───────────────────────────────────────────────────────────── */
.apna-topbar-center {
  flex: 1;
  max-width: 480px;
  margin: 0 1.5rem;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .apna-topbar-center {
    display: none;
  }
}

.apna-global-search {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 5px 14px;
  transition: all 0.2s ease;
}

.apna-global-search:focus-within {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.apna-search-icon {
  color: #94a3b8;
  flex-shrink: 0;
}

.apna-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  color: #0f172a;
  outline: none;
}

.apna-search-input::-moz-placeholder {
  color: #94a3b8;
}

.apna-search-input::placeholder {
  color: #94a3b8;
}

.apna-search-kbd {
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.apna-notif-dark-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  white-space: nowrap;
}

.apna-notif-dark-pill:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .apna-notif-dark-pill {
    display: none;
  }
}

.apna-user-avatar-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 1.5px solid #2563eb;
}

/* Sidebar Online Status Badge & Duty Strip */
.apna-sidebar-duty-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  padding: 4px 6px;
}

.apna-sidebar-duty-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: all 0.15s ease;
}

.apna-sidebar-duty-chip.active {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
}

.apna-sidebar-duty-chip.active:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
}

.apna-sidebar-duty-chip.inactive {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #b45309;
}

.apna-sidebar-duty-chip.inactive:hover {
  background: #fde68a;
}

.apna-sidebar-duty-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.apna-sidebar-duty-pulse.active {
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: apna-duty-pulse 2s infinite;
}

.apna-sidebar-duty-pulse.inactive {
  background: #f59e0b;
}

@keyframes apna-duty-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.apna-sidebar-online-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.15s ease;
}

.apna-sidebar-online-pill.online {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.apna-sidebar-online-pill.offline {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.apna-sidebar-online-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  padding: 4px 6px;
}

.apna-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.apna-status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: pulse-online 2s infinite ease-in-out;
}

.apna-status-dot.offline {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  animation: pulse-offline 2s infinite ease-in-out;
}

@keyframes pulse-online {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-offline {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.apna-status-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: #10b981;
  letter-spacing: 0.02em;
}

.apna-status-label.offline {
  color: #ef4444;
}

.apna-version-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

.apna-sidebar-sync-time {
  font-size: 0.68rem;
  color: #64748b;
  padding: 0 6px 10px;
}


/* ==========================================================================
   GLOBAL DARK THEME SUPPORT ACROSS ALL ROLES & MODULES
   ========================================================================== */
html[data-theme="dark"],
html.dark-mode,
body.dark-theme {
  --color-background: #0b1120;
  --color-surface: #1e293b;
  --color-surface-hover: #334155;
  --color-border: #334155;
  --color-border-subtle: #1e293b;
  --color-border-strong: #475569;
  --color-text-primary: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-sidebar: #060d1a;
  --color-sidebar-gradient: linear-gradient(180deg, #060d1a 0%, #0b1730 100%);
  background-color: #0b1120;
  color: #f8fafc;
}

html[data-theme="dark"] body,
html.dark-mode body {
  background-color: #0b1120;
  color: #f8fafc;
}

/* Header in dark mode */
html[data-theme="dark"] .apna-topbar,
html.dark-mode .apna-topbar {
  background: #0f172a !important;
  border-bottom-color: #1e293b !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .apna-topbar-icon-btn,
html.dark-mode .apna-topbar-icon-btn {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .apna-topbar-icon-btn:hover,
html.dark-mode .apna-topbar-icon-btn:hover {
  background: #334155 !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}

html[data-theme="dark"] .apna-search-input,
html.dark-mode .apna-search-input {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .apna-user-pill-btn,
html.dark-mode .apna-user-pill-btn {
  background: #1e293b !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .apna-user-name,
html.dark-mode .apna-user-name {
  color: #f8fafc !important;
}

html[data-theme="dark"] .apna-user-menu,
html[data-theme="dark"] .apna-lang-menu,
html.dark-mode .apna-user-menu,
html.dark-mode .apna-lang-menu {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .apna-user-menu-item,
html[data-theme="dark"] .apna-lang-menu-item,
html.dark-mode .apna-user-menu-item,
html.dark-mode .apna-lang-menu-item {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .apna-user-menu-item:hover,
html[data-theme="dark"] .apna-lang-menu-item:hover,
html.dark-mode .apna-user-menu-item:hover,
html.dark-mode .apna-lang-menu-item:hover {
  background: #334155 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .apna-lang-menu-item.active,
html.dark-mode .apna-lang-menu-item.active {
  background: rgba(37, 99, 235, 0.25) !important;
  color: #60a5fa !important;
}

/* Breadcrumbs in dark mode */
html[data-theme="dark"] .apna-breadcrumb-bar,
html.dark-mode .apna-breadcrumb-bar {
  background: #0f172a !important;
  border-bottom-color: #1e293b !important;
}

/* Main workspace & cards */
html[data-theme="dark"] .apna-main-workspace,
html[data-theme="dark"] .apna-page-content,
html[data-theme="dark"] .role-dash-wrapper,
html[data-theme="dark"] .portal-body,
html[data-theme="dark"] .fac-portal-wrapper,
html[data-theme="dark"] .student-portal-container,
html.dark-mode .apna-main-workspace,
html.dark-mode .apna-page-content,
html.dark-mode .role-dash-wrapper,
html.dark-mode .portal-body,
html.dark-mode .fac-portal-wrapper,
html.dark-mode .student-portal-container {
  background-color: #0b1120 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .dash-card,
html[data-theme="dark"] .role-hero-banner,
html[data-theme="dark"] .portal-panel,
html[data-theme="dark"] .portal-card,
html[data-theme="dark"] .fac-card,
html.dark-mode .dash-card,
html.dark-mode .role-hero-banner,
html.dark-mode .portal-panel,
html.dark-mode .portal-card,
html.dark-mode .fac-card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .dash-day,
html.dark-mode .dash-day {
  color: #cbd5e1;
}

html[data-theme="dark"] .dash-day:hover,
html.dark-mode .dash-day:hover {
  background: #334155;
  color: #f8fafc;
}

/* Tables in dark mode */
html[data-theme="dark"] table,
html[data-theme="dark"] tr,
html[data-theme="dark"] td,
html.dark-mode table,
html.dark-mode tr,
html.dark-mode td {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] th,
html.dark-mode th {
  background-color: #0f172a !important;
  color: #94a3b8 !important;
  border-color: #334155 !important;
}

/* Inputs and Forms in dark mode */
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html.dark-mode input:not([type="checkbox"]):not([type="radio"]),
html.dark-mode select,
html.dark-mode textarea {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

/* Centralized Institutional Notification Center CSS */
/* Enterprise-grade Academic ERP Styling matching Reference UI */

.nc-root {
  min-height: 100%;
  background: #f8fafc;
  color: #0f172a;
  font-family: inherit;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* 1. Top Navbar / Breadcrumb Row */
.nc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.nc-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.nc-breadcrumbs span.active {
  color: #0f172a;
  font-weight: 700;
}

.nc-topbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nc-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nc-search-input-wrap svg {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  pointer-events: none;
}

.nc-search-input {
  width: 280px;
  padding: 8px 65px 8px 36px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.82rem;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.nc-search-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.nc-kbd-shortcut {
  position: absolute;
  right: 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
  pointer-events: none;
}

.nc-bell-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nc-bell-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

.nc-bell-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.nc-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 4px 12px 4px 6px;
  border-radius: 20px;
}

.nc-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #4338ca;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.nc-user-info {
  display: flex;
  flex-direction: column;
}

.nc-user-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.nc-user-role {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.1;
}

/* 2. Notification Center Header */
.nc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.nc-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nc-header-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ede9fe;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12);
}

.nc-header-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.nc-header-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin: 2px 0 0;
}

.nc-create-notice-btn {
  background: #6366f1;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.28);
  transition: all 0.2s ease;
}

.nc-create-notice-btn:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

/* 3. Soft Pastel Statistics Cards Grid */
.nc-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.nc-stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.nc-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

.nc-stat-card.active {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px #6366f1;
}

.nc-stat-card.card-blue {
  background: linear-gradient(135deg, #ffffff 60%, #eff6ff 100%);
  border-color: #e0f2fe;
}

.nc-stat-card.card-purple {
  background: linear-gradient(135deg, #ffffff 60%, #faf5ff 100%);
  border-color: #f3e8ff;
}

.nc-stat-card.card-red {
  background: linear-gradient(135deg, #ffffff 60%, #fff1f2 100%);
  border-color: #ffe4e6;
}

.nc-stat-card.card-green {
  background: linear-gradient(135deg, #ffffff 60%, #f0fdf4 100%);
  border-color: #dcfce7;
}

.nc-stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nc-stat-card.card-blue .nc-stat-icon-wrap {
  background: #e0f2fe;
  color: #0284c7;
}

.nc-stat-card.card-purple .nc-stat-icon-wrap {
  background: #f3e8ff;
  color: #9333ea;
}

.nc-stat-card.card-red .nc-stat-icon-wrap {
  background: #ffe4e6;
  color: #e11d48;
}

.nc-stat-card.card-green .nc-stat-icon-wrap {
  background: #dcfce7;
  color: #16a34a;
}

.nc-stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.nc-stat-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 4px;
}

/* 4. Navigation Tabs & Mark All as Read */
.nc-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1.25rem;
}

.nc-tabs {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nc-tab-btn {
  background: transparent;
  border: none;
  padding: 10px 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.nc-tab-btn:hover {
  color: #0f172a;
}

.nc-tab-btn.active {
  color: #6366f1;
  font-weight: 800;
}

.nc-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #6366f1;
  border-radius: 2px;
}

.nc-mark-read-btn {
  background: transparent;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6366f1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nc-mark-read-btn:hover {
  background: #ede9fe;
}

/* 6. Main 2-Column Layout (Feed + Right Filter Panel) */
.nc-main-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 1.5rem;
  align-items: flex-start;
}

/* Feed Column */
.nc-feed-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Individual Notice Card (Reference Image Design) */
.nc-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  border-left-width: 5px;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
  position: relative;
}

.nc-card:hover {
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.nc-card.urgent {
  border-left-color: #ef4444;
}

.nc-card.important {
  border-left-color: #f59e0b;
}

.nc-card.general {
  border-left-color: #3b82f6;
}

.nc-card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nc-card.urgent .nc-card-icon-box {
  background: #fee2e2;
  color: #dc2626;
}

.nc-card.important .nc-card-icon-box {
  background: #fef3c7;
  color: #d97706;
}

.nc-card.general .nc-card-icon-box {
  background: #eff6ff;
  color: #2563eb;
}

.nc-card-content {
  flex: 1;
  min-width: 0;
}

.nc-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.nc-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nc-badge-priority {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nc-badge-priority.urgent {
  background: #dc2626;
  color: #ffffff;
}

.nc-badge-priority.important {
  background: #f59e0b;
  color: #ffffff;
}

.nc-badge-priority.general {
  background: #2563eb;
  color: #ffffff;
}

.nc-badge-category {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: #ede9fe;
  color: #6d28d9;
}

.nc-badge-new {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
  background: #ef4444;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.nc-pin-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nc-pin-btn:hover {
  color: #0f172a;
}

.nc-pin-btn.pinned {
  color: #059669;
}

.nc-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.35;
  cursor: pointer;
}

.nc-card-title:hover {
  color: #6366f1;
}

.nc-card-desc {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 12px;
}

.nc-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.nc-card-meta-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #64748b;
}

.nc-card-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nc-card-expires-badge {
  background: #fee2e2;
  color: #b91c1c;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.nc-card-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nc-attachment-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.75rem;
  color: #334155;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nc-attachment-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.nc-view-notice-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #6366f1;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.nc-view-notice-btn:hover {
  background: #ede9fe;
  border-color: #c7d2fe;
}

/* 7. Right Filter Panel (Modernized UI/UX) */
.nc-filter-panel {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  position: sticky;
  top: 1.25rem;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  transition: box-shadow 0.2s ease;
}

.nc-filter-panel::-webkit-scrollbar {
  width: 5px;
}
.nc-filter-panel::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.nc-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.nc-filter-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nc-filter-icon-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nc-filter-title-text {
  font-weight: 800;
  font-size: 0.98rem;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.nc-filter-active-pill {
  background: #4f46e5;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 12px;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3);
}

.nc-clear-all-btn {
  background: transparent;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: not-allowed;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nc-clear-all-btn.active {
  color: #4f46e5;
  cursor: pointer;
  font-weight: 700;
}

.nc-clear-all-btn.active:hover {
  background: #f5f3ff;
  text-decoration: underline;
}

/* Sections */
.nc-filter-section {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f8fafc;
}

.nc-filter-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
}

.nc-filter-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  border-radius: 8px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: background 0.15s ease;
}

.nc-filter-section-header:hover {
  background: #f8fafc;
}

.nc-section-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #1e293b;
}

.nc-section-count-dot {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.nc-section-chevron {
  color: #94a3b8;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nc-section-chevron.open {
  transform: rotate(180deg);
  color: #4f46e5;
}

/* Options List & Rows */
.nc-filter-options-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.nc-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: all 0.15s ease;
}

.nc-checkbox-row:hover {
  background: #f8fafc;
  border-color: #f1f5f9;
}

.nc-checkbox-row.checked {
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.nc-checkbox-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

/* Custom Checkbox */
.nc-custom-check {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.nc-checkbox-row:hover .nc-custom-check {
  border-color: #94a3b8;
}

.nc-custom-check.checked {
  background: #4f46e5;
  border-color: #4f46e5;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.25);
}

.nc-native-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.nc-cat-icon-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.nc-checkbox-row.checked .nc-cat-icon-tag {
  color: #4f46e5;
}

.nc-filter-label-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.nc-checkbox-row.checked .nc-filter-label-text {
  font-weight: 600;
  color: #1e1b4b;
}

.nc-count-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 1px 7px;
  border-radius: 10px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.nc-count-pill.checked {
  background: #e0e7ff;
  color: #4338ca;
  font-weight: 700;
}

/* Priority Row Variations */
.priority-row.urgent.checked {
  background: #fef2f2;
  border-color: #fecaca;
}
.priority-row.urgent .nc-custom-check.checked {
  background: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.25);
}
.priority-row.urgent.checked .nc-count-pill {
  background: #fee2e2;
  color: #b91c1c;
}

.priority-row.important.checked {
  background: #fffbeb;
  border-color: #fde68a;
}
.priority-row.important .nc-custom-check.checked {
  background: #f59e0b;
  border-color: #f59e0b;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.25);
}
.priority-row.important.checked .nc-count-pill {
  background: #fef3c7;
  color: #b45309;
}

.priority-row.normal.checked {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.priority-row.normal .nc-custom-check.checked {
  background: #3b82f6;
  border-color: #3b82f6;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.25);
}
.priority-row.normal.checked .nc-count-pill {
  background: #dbeafe;
  color: #1d4ed8;
}

.nc-prio-colored-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

/* Show More / Show Less Button */
.nc-filter-show-more {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #4f46e5;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 6px;
  transition: all 0.15s ease;
}

.nc-filter-show-more:hover {
  background: #f5f3ff;
  border-color: #c7d2fe;
}

/* Date Range UI */
.nc-date-range-content {
  margin-top: 8px;
}

.nc-date-presets-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 8px;
}

.nc-date-preset-pill {
  padding: 5px 6px;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nc-date-preset-pill:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}

.nc-date-preset-pill.active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.25);
}

.nc-custom-date-box {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-top: 6px;
}

.nc-date-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nc-date-field label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
}

.nc-date-input {
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.76rem;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: all 0.15s ease;
}

.nc-date-input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.12);
}

.nc-date-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nc-date-input-wrap:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.nc-date-input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.78rem;
  color: #334155;
  cursor: pointer;
  font-weight: 500;
}

.nc-date-icon {
  color: #64748b;
  flex-shrink: 0;
  margin-left: 6px;
}

/* Notice Lifecycle Callout Card (Reference UI) */
.nc-lifecycle-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 1.25rem;
}

.nc-lifecycle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.nc-lifecycle-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #15803d;
}

.nc-lifecycle-text {
  font-size: 0.74rem;
  color: #166534;
  line-height: 1.45;
  margin: 0;
}

/* Empty State */
.nc-empty-state {
  background: #ffffff;
  border-radius: 14px;
  border: 1px dashed #cbd5e1;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #64748b;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .nc-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nc-main-layout {
    grid-template-columns: 1fr;
  }
  .nc-filter-panel {
    display: none; /* Can be opened as drawer on tablet/mobile */
  }
}

@media (max-width: 640px) {
  .nc-root {
    padding: 1rem;
  }
  .nc-stats-grid {
    grid-template-columns: 1fr;
  }
  .nc-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .nc-create-notice-btn {
    width: 100%;
    justify-content: center;
  }
  .nc-search-input {
    width: 100%;
  }
  .nc-topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .nc-topbar-controls {
    justify-content: space-between;
  }
  .nc-card {
    flex-direction: column;
    padding: 1rem;
  }
  .nc-card-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .nc-card-meta-right {
    width: 100%;
    justify-content: space-between;
  }
}
.institution-notif-layer {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.institution-notif-backdrop,
.institution-notif-detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(15, 23, 42, 0.38);
}

.institution-notif-panel {
  position: absolute;
  inset: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  width: min(580px, 100vw);
  background: #f8fafc;
  box-shadow: -16px 0 48px rgba(15, 23, 42, 0.18);
  animation: institution-notif-slide-in 180ms ease-out;
}

.institution-notif-layer.is-center .institution-notif-panel {
  inset: 2vh 2vw;
  width: min(1360px, 96vw);
  height: 96vh;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 70px -15px rgba(15, 23, 42, 0.4);
}

.institution-notif-fullcenter-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #f8fafc;
}

.institution-notif-fullcenter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.institution-notif-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.institution-notif-back-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.institution-notif-fullcenter-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.institution-notif-board-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.institution-notif-board-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.institution-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.institution-notif-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.institution-notif-heading-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: #1d4ed8;
  background: #eff6ff;
}

.institution-notif-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 750;
}

.institution-notif-heading p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.75rem;
}

.institution-notif-icon-btn {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  color: #475569;
  background: #fff;
  cursor: pointer;
}

.institution-notif-icon-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.institution-notif-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 20px;
}

.institution-notif-summary > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fff;
}

.institution-notif-summary strong {
  color: #0f172a;
  font-size: 1.15rem;
}

.institution-notif-summary span {
  color: #64748b;
  font-size: 0.72rem;
}

.institution-notif-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 20px 12px;
}

.institution-notif-actions button,
.institution-notif-state button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  color: #334155;
  background: #fff;
  font-size: 0.76rem;
  font-weight: 650;
  cursor: pointer;
}

.institution-notif-actions button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.institution-notif-actions .institution-notif-view-all {
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.institution-notif-search {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 20px 12px;
  padding: 0 11px;
  min-height: 40px;
  border: 1px solid #dbe3ee;
  border-radius: 9px;
  color: #64748b;
  background: #fff;
}

.institution-notif-search:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.institution-notif-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #0f172a;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
}

.institution-notif-search button {
  display: grid;
  padding: 4px;
  border: 0;
  color: #64748b;
  background: transparent;
  cursor: pointer;
}

.institution-notif-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 20px 12px;
  border-bottom: 1px solid #e2e8f0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.institution-notif-filters::-webkit-scrollbar {
  display: none;
}

.institution-notif-filters button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #475569;
  background: #fff;
  font-size: 0.72rem;
  cursor: pointer;
}

.institution-notif-filters button.active {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
  font-weight: 700;
}

.institution-notif-filters button span {
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  color: #1e40af;
  background: #dbeafe;
  text-align: center;
  font-size: 0.65rem;
}

.institution-notif-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 20px;
}

.institution-notif-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              background-color 0.2s ease;
  will-change: transform;
}

.institution-notif-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.institution-notif-card:active {
  transform: translateY(0) scale(0.99);
  transition-duration: 0.06s !important;
}

.institution-notif-card.unread {
  border-color: #bfdbfe;
  box-shadow: inset 3px 0 #3b82f6, 0 1px 3px rgba(37, 99, 235, 0.05);
}

.institution-notif-card.unread:hover {
  box-shadow: inset 3px 0 #2563eb, 0 8px 24px rgba(37, 99, 235, 0.12);
}

.institution-notif-category {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 5px;
  color: #1d4ed8;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.institution-notif-category.examination { color: #a16207; }
.institution-notif-category.academic,
.institution-notif-category.assignment { color: #1d4ed8; }
.institution-notif-category.admission { color: #7e22ce; }
.institution-notif-category.placement { color: #15803d; }
.institution-notif-category.fees { color: #0f766e; }
.institution-notif-category.hostel { color: #c2410c; }
.institution-notif-category.transport { color: #0e7490; }
.institution-notif-category.system,
.institution-notif-category.security { color: #475569; }

.institution-notif-priority {
  justify-self: end;
  color: #b91c1c;
  font-size: 0.68rem;
  font-weight: 750;
}

.institution-notif-card-content {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.institution-notif-card-content strong {
  color: #0f172a;
  font-size: 0.88rem;
  line-height: 1.35;
}

.institution-notif-card-content span {
  display: -webkit-box;
  overflow: hidden;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.institution-notif-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 0.7rem;
}

.institution-notif-attachment,
.institution-notif-detail-attachment {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #475569;
  font-size: 0.73rem;
}

.institution-notif-attachment span {
  overflow: hidden;
  flex: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.institution-notif-attachment a {
  display: inline-flex;
  color: #2563eb;
}

.institution-notif-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  background: #fff;
  font-size: 0.73rem;
}

.institution-notif-pagination div {
  display: flex;
  gap: 6px;
}

.institution-notif-pagination button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #334155;
  background: #fff;
  cursor: pointer;
}

.institution-notif-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.institution-notif-state {
  display: flex;
  min-height: 200px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #64748b;
  text-align: center;
}

.institution-notif-state strong {
  color: #334155;
  font-size: 0.88rem;
}

.institution-notif-state p {
  max-width: 320px;
  margin: 0;
  font-size: 0.78rem;
}

.institution-notif-state.error { color: #b91c1c; }

.institution-notif-loading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.institution-notif-loading span:not(.sr-only) {
  display: block;
  height: 92px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(90deg, #fff 25%, #f1f5f9 50%, #fff 75%);
  background-size: 200% 100%;
  animation: institution-notif-shimmer 1.2s ease-in-out infinite;
}

.institution-notif-detail-backdrop {
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 18px;
}

.institution-notif-detail {
  width: min(620px, 100%);
  max-height: min(80vh, 760px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
}

.institution-notif-detail > header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.institution-notif-detail h2 {
  margin: 10px 0 0;
  color: #0f172a;
  font-size: 1.2rem;
  line-height: 1.35;
}

.institution-notif-detail-byline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 16px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.76rem;
}

.institution-notif-detail-byline strong { color: #334155; }

.institution-notif-detail-message {
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.institution-notif-detail-attachment {
  margin: 16px 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  color: #1d4ed8;
  text-decoration: none;
}

.institution-notif-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 13px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #2563eb;
  font-weight: 700;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes institution-notif-slide-in {
  from { transform: translateX(14px); opacity: 0.7; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes institution-notif-shimmer {
  to { background-position: -200% 0; }
}

@media (max-width: 640px) {
  .institution-notif-panel,
  .institution-notif-layer.is-center .institution-notif-panel {
    inset: 0;
    width: 100vw;
    border-radius: 0;
  }

  .institution-notif-header { padding: 14px 16px; }
  .institution-notif-summary { gap: 7px; padding: 11px 14px; }
  .institution-notif-summary > div { padding: 9px 10px; }
  .institution-notif-actions { padding-right: 14px; padding-left: 14px; }
  .institution-notif-search { margin-right: 14px; margin-left: 14px; }
  .institution-notif-filters { padding-right: 14px; padding-left: 14px; }
  .institution-notif-list { padding-right: 14px; padding-left: 14px; }
  .institution-notif-pagination { padding-right: 14px; padding-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .institution-notif-panel,
  .institution-notif-loading span:not(.sr-only) {
    animation: none;
  }
}


/* ============================================================ */
/* OFFICIAL EXAMINATION & CAMPUS BULLETINS SPOTLIGHT SECTION    */
/* ============================================================ */
.institution-exam-bulletins {
  margin: 12px 20px 8px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.05);
}

.institution-exam-bulletins-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.institution-exam-bulletins-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.institution-exam-bulletins-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.institution-exam-bulletins-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 750;
  color: #0f172a;
}

.institution-exam-bulletins-subtitle {
  margin: 2px 0 0;
  font-size: 0.74rem;
  color: #64748b;
}

.institution-exam-bulletins-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.institution-exam-bulletins-view-all {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.74rem;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.institution-exam-bulletins-view-all:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.institution-exam-bulletins-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.institution-exam-bulletin-card {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              background-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  will-change: transform;
}

.institution-exam-bulletin-card:hover {
  border-color: #60a5fa;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  transform: translateY(-3px) scale(1.01);
}

.institution-exam-bulletin-card:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 0.06s !important;
}

.institution-exam-bulletin-card:hover .institution-exam-card-title {
  color: #2563eb;
}

.institution-exam-bulletin-card:hover .institution-exam-card-read svg {
  transform: translateX(4px);
}

.institution-exam-bulletin-card:hover .institution-exam-card-read {
  color: #1d4ed8;
}

.institution-exam-card-tag {
  font-size: 0.65rem;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 5px;
  background: #ede9fe;
  color: #6d28d9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.institution-exam-card-date {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 500;
}

.institution-exam-card-title {
  margin: 6px 0 4px;
  font-size: 0.84rem;
  font-weight: 650;
  color: #0f172a;
  line-height: 1.35;
}

.institution-exam-card-snippet {
  margin: 0;
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.institution-exam-card-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.institution-exam-card-authority {
  font-size: 0.7rem;
  color: #0284c7;
  font-weight: 600;
}

.institution-exam-card-read {
  font-size: 0.72rem;
  color: #2563eb;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}


.student-portal {
  min-height: 100vh;
  background: #f8faff;
  color: #303743;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-size: 12px;
}

.portal-header {
  position: relative;
  z-index: 5;
  display: flex;
  height: 57px;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-top: 4px solid #2563eb;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.portal-menu-button,
.portal-icon-button,
.portal-signout {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  background: transparent;
  color: #454c56;
  cursor: pointer;
}

.portal-menu-button:hover,
.portal-icon-button:hover,
.portal-signout:hover {
  background: #edf4fa;
  color: #087bb8;
}

.portal-brand {
  display: flex;
  min-width: 194px;
  align-items: center;
  gap: 8px;
  color: #35404e;
  text-decoration: none;
}

.portal-gift-mark {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border: 3px solid #e34124;
  border-radius: 50%;
  background: #ffcb29;
  color: #174c99;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.portal-brand-copy,
.portal-user-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.portal-brand-copy strong {
  color: #32404f;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 13px;
  line-height: 1.1;
}

.portal-brand-copy small {
  margin-top: 2px;
  color: #83909f;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.portal-header-actions {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.portal-search {
  display: flex;
  width: min(260px, 30vw);
  height: 30px;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid #e3e6eb;
  color: #84909d;
}

.portal-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #344052;
  font-size: 10px;
}

.portal-search input::-moz-placeholder { color: #96a1ad; }

.portal-search input::placeholder { color: #96a1ad; }

.portal-icon-button { position: relative; }

.notification-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #ee5549;
}

.notification-popover {
  position: absolute;
  z-index: 8;
  top: 38px;
  right: 165px;
  display: flex;
  width: 230px;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  border: 1px solid #dbe2e9;
  background: #fff;
  box-shadow: 0 8px 24px rgba(27, 42, 57, 0.16);
  font-size: 10px;
}

.notification-popover strong { color: #23364b; font-size: 11px; }
.notification-popover span { color: #66778a; line-height: 1.5; }

.portal-user {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding-left: 6px;
}

.portal-avatar-small,
.portal-avatar-large,
.student-profile-photo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #a6cfbd, #4b9074);
  color: #fff;
  font-weight: 700;
}

.portal-avatar-small { width: 29px; height: 29px; font-size: 10px; }
.portal-user-copy strong { max-width: 135px; overflow: hidden; color: #364454; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.portal-user-copy small { margin-top: 2px; color: #84909c; font-size: 8px; }
.portal-signout { margin-left: 4px; }

.portal-frame {
  display: grid;
  min-height: calc(100vh - 57px);
  grid-template-columns: 196px minmax(0, 1fr);
}

.portal-sidebar {
  position: relative;
  display: flex;
  height: calc(100vh - 57px);
  min-height: calc(100vh - 57px);
  flex-direction: column;
  padding: 13px 9px 12px;
  overflow-y: auto;
  background: #303030;
  color: #d5d9dd;
}

.sidebar-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 5px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-seal {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 2px solid #efaa26;
  border-radius: 50%;
  background: radial-gradient(circle, #df382a 0 44%, #f7be26 46% 63%, #bd2924 65%);
  color: #fff4bc;
}

.sidebar-trust strong {
  color: #f1f2f3;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 9px;
  text-align: center;
}

.sidebar-student {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 4px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-campus-mark .portal-gift-mark {
  width: 27px;
  height: 27px;
  font-size: 15px;
}

.portal-avatar-large { width: 34px; height: 34px; border: 2px solid rgba(255,255,255,.8); font-size: 11px; }
.sidebar-student > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.sidebar-student strong { overflow: hidden; color: #fff; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-student small { color: #aeb5bc; font-size: 9px; }

.sidebar-caption {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 9px 7px;
  color: #388cb6;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.portal-nav { display: flex; flex-direction: column; gap: 3px; }

.portal-nav a,
.sidebar-bottom a {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 10px;
  padding: 0 9px;
  color: #c5cbd1;
  font-size: 10px;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}

.portal-nav a:hover,
.portal-nav a.active { background: #2563eb !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important; font-weight: 600; }

.portal-nav a.active { background: #2563eb !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important; font-weight: 600; }
.portal-nav a svg,
.sidebar-bottom a svg { flex: 0 0 auto; color: #9eabb8; }
.portal-nav a.active svg { color: #ffffff !important; }
.portal-nav .nav-chevron { margin-left: auto; }
.sidebar-bottom { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.sidebar-version { padding: 6px 9px 0; color: #929ba4; font-size: 8px; }

.portal-main {
  min-width: 0;
  padding: 10px 12px 16px;
  overflow: hidden;
}

.portal-breadcrumb {
  display: flex;
  min-height: 23px;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #7d8895;
  font-size: 9px;
}

.portal-breadcrumb svg { color: #1381c4; }
.portal-breadcrumb strong { color: #596676; font-weight: 600; }
.breadcrumb-spacer { flex: 1; }

.day-message {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 11px;
  border-left: 2px solid #2a9cce;
  background: #eaf5fc;
  color: #42637d;
  font-size: 9px;
}

.day-message > div { display: flex; align-items: center; gap: 8px; }
.day-message svg { flex: 0 0 auto; color: #168ac0; }
.day-message strong { color: #0874aa; font-size: 9px; }
.day-message > span { flex: 0 0 auto; color: #66798c; font-size: 8px; }

.transfer-panel {
  margin-top: 10px;
  padding: 9px 10px 8px;
  border: 1px solid #e1e3e6;
  background: #fff;
}

.transfer-alert {
  margin: 0 0 8px;
  color: #c83b3b;
  font-size: 9px;
  line-height: 1.5;
}

.transfer-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 8px;
  color: #576473;
  font-size: 8px;
  line-height: 1.4;
}

.transfer-confirmation input { width: 12px; height: 12px; flex: 0 0 auto; margin: 0; accent-color: #08aeca; }

.transfer-fields {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(170px, 2fr) 120px 96px;
  gap: 8px;
}

.portal-select-wrap { position: relative; }
.portal-select-wrap select,
.transfer-city {
  width: 100%;
  height: 29px;
  padding: 0 9px;
  border: 1px solid #cfd5dc;
  border-radius: 0;
  background: #fff;
  color: #5e6873;
  font-size: 9px;
}

.portal-select-wrap select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 28px; }
.portal-select-wrap > svg { position: absolute; top: 8px; right: 8px; pointer-events: none; color: #6f7c89; }
.transfer-city::-moz-placeholder { color: #929ca7; }
.transfer-city::placeholder { color: #929ca7; }
.transfer-submit,
.transfer-reset {
  height: 29px;
  border: 1px solid #cfd5dc;
  border-radius: 0;
  background: #fff;
  color: #4d5b68;
  cursor: pointer;
  font-size: 9px;
}
.transfer-submit { border-color: #06b6d7; background: #08b8d9; color: #fff; font-weight: 700; }
.transfer-submit:hover { background: #079fbe; }
.transfer-reset:hover { background: #f2f4f6; }
.transfer-feedback { margin: 7px 0 0; color: #21804f; font-size: 9px; }

.portal-primary-grid,
.portal-secondary-grid,
.portal-bottom-grid {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  align-items: stretch;
}

.portal-primary-grid { grid-template-columns: minmax(270px, 1.08fr) minmax(220px, 1fr) minmax(230px, 1.08fr); }
.portal-secondary-grid { grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr); }
.portal-bottom-grid { grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); }

.portal-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe2e6;
  border-top: 2px solid #159fd0;
  background: #fff;
}

.fees-panel { border-top-color: #f1a319; }
.linkedin-panel { border-top-color: #209ed2; }
.birthday-panel { border-top-color: #d6a642; }
.holiday-panel { border-top-color: #d4a446; }

.portal-panel-heading {
  display: flex;
  min-height: 27px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
  border-bottom: 1px solid #edf0f2;
}

.portal-panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin: 0;
  color: #36404b;
  font-size: 9px;
  font-weight: 600;
}

.portal-panel-heading h2 svg { flex: 0 0 auto; color: #168bc2; }

.student-profile {
  display: flex;
  min-height: 61px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-bottom: 1px solid #e4e6e9;
}

.student-profile-photo {
  width: 39px;
  height: 39px;
  border: 2px solid #edf0f1;
  font-size: 12px;
}

.student-profile-name { color: #364251; font-size: 8px; font-weight: 600; }
.student-details-table { margin: 0; }
.student-detail-row { display: grid; min-height: 18px; grid-template-columns: 35% minmax(0, 1fr); border-bottom: 1px solid #e5e7e9; }
.student-detail-row:nth-child(odd) { background: #f4f5f6; }
.student-detail-row dt,
.student-detail-row dd { display: flex; min-width: 0; align-items: center; margin: 0; padding: 3px 7px; color: #303943; font-size: 8px; line-height: 1.35; }
.student-detail-row dt { font-weight: 600; }
.student-detail-row dd { overflow-wrap: anywhere; }
.status-pill { padding: 1px 7px; background: #5ab968; color: #fff; font-size: 7px; font-weight: 700; }
.profile-edit-link,
.fee-link { display: flex; width: -moz-fit-content; width: fit-content; align-items: center; gap: 3px; margin: 5px 7px 6px auto; color: #4d6a82; font-size: 8px; text-decoration: none; }
.profile-edit-link:hover,
.fee-link:hover { color: #067eae; text-decoration: underline; }

.fee-stack { display: flex; flex-direction: column; gap: 4px; padding: 7px 7px 0; }
.fee-bar { position: relative; display: flex; min-height: 33px; flex-direction: column; justify-content: center; overflow: hidden; padding: 3px 28px 3px 8px; color: #fff; }
.fee-bar.cyan { background: #08b8d9; }
.fee-bar.amber { background: #f5a20b; }
.fee-bar.coral { background: #fa6854; }
.fee-bar strong { font-size: 11px; line-height: 1.1; }
.fee-bar span { margin-top: 2px; font-size: 7px; }
.fee-bar svg { position: absolute; top: 4px; right: 4px; opacity: 0.18; }

.linkedin-brand { display: flex; align-items: center; gap: 4px; padding: 10px 9px 4px; color: #39424a; font-size: 9px; }
.linkedin-brand > span { display: grid; width: 13px; height: 13px; place-items: center; background: #0a78ac; color: #fff; font-size: 8px; font-weight: 700; }
.linkedin-brand strong { font-size: 9px; }
.linkedin-brand strong span { color: #087eae; }
.linkedin-empty { display: flex; min-height: 164px; flex-direction: column; align-items: center; justify-content: center; padding: 8px 14px 13px; text-align: center; }
.linkedin-illustration { position: relative; display: flex; width: 92px; height: 54px; align-items: flex-end; justify-content: center; margin-bottom: 7px; border-bottom: 1px solid #9bd7ed; background: linear-gradient(160deg, transparent 46%, #dff5fc 47%); color: #48a2c6; }
.linkedin-illustration span { position: absolute; bottom: 0; width: 15px; height: 12px; background: #b4e0ef; }
.linkedin-illustration span:nth-child(2) { left: 9px; }
.linkedin-illustration span:nth-child(3) { right: 9px; width: 21px; height: 8px; }
.linkedin-empty > strong { color: #596773; font-size: 9px; }
.linkedin-empty p { max-width: 205px; margin: 4px 0 7px; color: #84909b; font-size: 8px; line-height: 1.4; }
.linkedin-empty a { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border: 1px solid #c4dce7; color: #247da0; font-size: 8px; text-decoration: none; }
.linkedin-empty a:hover { background: #eff9fc; }

.notice-actions { display: flex; height: 100%; align-items: center; gap: 2px; }
.notice-actions button { min-height: 24px; padding: 0 7px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #6b7784; cursor: pointer; font-size: 8px; }
.notice-actions button.selected { border-bottom-color: #1a9acc; color: #167ca8; font-weight: 700; }
.notice-list { display: flex; flex-direction: column; gap: 4px; padding: 7px; }
.notice-item { display: flex; min-height: 31px; align-items: center; gap: 7px; padding: 5px 7px; border: 0; background: #08b8d9; color: #fff; cursor: pointer; text-align: left; }
.notice-item:hover { background: #079fbe; }
.notice-tag { flex: 0 0 auto; padding: 2px 4px; background: rgba(255,255,255,.25); font-size: 6px; font-weight: 700; }
.notice-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.notice-copy strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.notice-copy small { overflow: hidden; font-size: 7px; line-height: 1.3; opacity: .9; text-overflow: ellipsis; white-space: nowrap; }
.notice-item.expanded { align-items: flex-start; }
.notice-item.expanded .notice-copy small { display: block; white-space: normal; }
.notice-item.expanded > svg { transform: rotate(90deg); }
.notice-item > svg { flex: 0 0 auto; opacity: .8; }
.empty-list { padding: 15px; color: #7b8793; font-size: 9px; text-align: center; }

.birthday-empty { display: flex; min-height: 130px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #82909c; text-align: center; }
.birthday-mark { color: #e5a746; font-size: 20px; }
.birthday-empty strong { color: #596777; font-size: 9px; }
.birthday-empty > span:last-child { font-size: 8px; }
.birthday-list { display: flex; flex-direction: column; padding: 5px 9px; }
.birthday-list > div { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #edf0f2; }
.birthday-list > div:last-child { border-bottom: 0; }
.birthday-date { display: grid; width: 38px; height: 28px; place-items: center; background: #fff5e4; color: #a76f1b; font-size: 7px; font-weight: 700; }
.birthday-list > div > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.birthday-list strong { color: #4e5a67; font-size: 8px; }
.birthday-list small { color: #86919b; font-size: 7px; }

.calendar-controls { display: flex; align-items: center; gap: 6px; }
.calendar-controls button { display: grid; width: 22px; height: 20px; place-items: center; border: 1px solid #e0e5e9; background: #fff; color: #657281; cursor: pointer; }
.calendar-controls button:hover { border-color: #53a8cb; color: #087eae; }
.calendar-controls strong { min-width: 95px; color: #485564; font-size: 8px; text-align: center; }
.calendar-weekdays,
.calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { min-height: 24px; align-items: center; border-bottom: 1px solid #e0e4e8; }
.calendar-weekdays span { color: #4e5966; font-size: 7px; font-weight: 700; text-align: center; }
.calendar-days > span { display: grid; min-height: 25px; place-items: center; border-right: 1px solid #e9ecef; border-bottom: 1px solid #e9ecef; color: #697581; font-size: 7px; }
.calendar-days > span:nth-child(7n) { border-right: 0; }
.calendar-days > span.outside-month { color: #bdc4ca; }
.calendar-days > span.today { background: #fff8df; color: #4f6e27; font-weight: 700; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 10px; padding: 7px 8px; color: #74808c; font-size: 7px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 4px; }
.calendar-legend i { width: 6px; height: 6px; border-radius: 50%; }
.legend-holiday { background: #55bb8a; }
.legend-event { background: #efb546; }
.legend-today { background: #168fc0; }

.holiday-table { max-height: 215px; overflow: auto; }
.holiday-row { display: grid; min-height: 24px; grid-template-columns: minmax(95px, 0.8fr) minmax(0, 1.6fr); align-items: center; border-bottom: 1px solid #e5e8eb; }
.holiday-row > * { overflow: hidden; padding: 4px 7px; color: #53606c; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.holiday-heading { position: sticky; top: 0; background: #fff; }
.holiday-heading > * { color: #36414d; font-weight: 700; }

.portal-footer { display: flex; justify-content: center; gap: 7px; padding: 13px 0 2px; color: #8a949e; font-size: 8px; }
.portal-footer span { color: #b1b9c1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1050px) {
  .portal-primary-grid { grid-template-columns: minmax(250px, 1.2fr) minmax(210px, 1fr); }
  .linkedin-panel { grid-column: 1 / -1; }
  .linkedin-empty { min-height: 120px; }
  .portal-header { gap: 8px; padding-inline: 10px; }
  .portal-brand { min-width: 178px; }
  .portal-frame { grid-template-columns: 176px minmax(0, 1fr); }
  .transfer-fields { grid-template-columns: minmax(130px, .8fr) minmax(145px, 1.5fr) 110px 72px; }
}

@media (max-width: 720px) {
  .portal-header { height: 54px; gap: 5px; padding: 0 7px; }
  .portal-brand { min-width: 0; gap: 5px; }
  .portal-gift-mark { width: 26px; height: 26px; font-size: 15px; }
  .portal-brand-copy strong { font-size: 10px; }
  .portal-brand-copy small { font-size: 6px; }
  .portal-header-actions { gap: 2px; }
  .portal-search { width: 31px; padding: 0 7px; border-color: transparent; }
  .portal-search:focus-within { width: min(155px, 38vw); border-color: #dce3e9; }
  .portal-search input { width: 0; }
  .portal-search:focus-within input { width: 100%; }
  .portal-user { gap: 4px; }
  .portal-user-copy { display: none; }
  .portal-user > svg { display: none; }
  .portal-avatar-small { width: 25px; height: 25px; }
  .portal-signout { width: 27px; margin-left: 0; }
  .portal-frame { display: block; min-height: calc(100vh - 54px); }
  .portal-sidebar { position: fixed; z-index: 7; top: 54px; bottom: 0; left: 0; width: 230px; height: auto; min-height: 0; overflow-y: auto; transform: translateX(-100%); transition: transform 180ms ease; }
  .portal-sidebar.is-open { transform: translateX(0); }
  .portal-scrim { position: fixed; z-index: 6; inset: 54px 0 0; border: 0; background: rgba(18, 27, 37, .28); }
  .portal-main { padding: 8px 8px 16px; }
  .portal-breadcrumb { font-size: 8px; }
  .day-message { align-items: flex-start; flex-direction: column; gap: 4px; padding: 8px; }
  .day-message > div { flex-wrap: wrap; }
  .day-message > span { padding-left: 23px; }
  .transfer-panel { padding: 8px; }
  .transfer-fields { grid-template-columns: 1fr 1fr; }
  .portal-primary-grid,
  .portal-secondary-grid,
  .portal-bottom-grid { grid-template-columns: minmax(0, 1fr); }
  .linkedin-panel { grid-column: auto; }
  .student-info-panel { order: 0; }
  .fees-panel { order: 1; }
  .linkedin-panel { order: 2; }
  .portal-panel-heading { min-height: 31px; }
  .student-detail-row { min-height: 22px; }
  .student-detail-row dt,
  .student-detail-row dd { font-size: 9px; }
  .fee-bar { min-height: 39px; }
  .notice-item { min-height: 39px; }
  .notice-copy strong { font-size: 9px; }
  .notice-copy small { font-size: 8px; }
  .calendar-days > span { min-height: 34px; font-size: 8px; }
  .holiday-table { max-height: 245px; }
  .holiday-row { min-height: 30px; }
  .portal-footer { flex-wrap: wrap; font-size: 7px; }
}

@media (max-width: 380px) {
  .portal-brand-copy small { letter-spacing: 0; }
  .transfer-fields { grid-template-columns: 1fr; }
  .portal-user { display: none; }
  .student-detail-row { grid-template-columns: 36% minmax(0, 1fr); }
}

.student-portal {
  --portal-bg: #f3f6f3;
  --portal-ink: #24373a;
  --portal-muted: #687a7b;
  --portal-line: #dce5df;
  --portal-teal: #246f68;
  --portal-teal-dark: #19544f;
  --portal-teal-soft: #e7f2ee;
  --portal-gold: #bf8c3e;
  background: var(--portal-bg);
  color: var(--portal-ink);
  font-size: 14px;
}
.portal-header { height: 66px; gap: 15px; padding-inline: 20px; border-top: 4px solid #294448; border-bottom-color: var(--portal-line); box-shadow: 0 2px 9px rgba(30, 55, 47, .04); }
.portal-menu-button,
.portal-icon-button,
.portal-signout { width: 36px; height: 36px; border-radius: 7px; color: #516668; }
.portal-menu-button:hover,
.portal-icon-button:hover,
.portal-signout:hover { background: var(--portal-teal-soft); color: var(--portal-teal-dark); }
.portal-brand { min-width: 220px; gap: 10px; color: #25484a; }
.portal-gift-mark { width: 36px; height: 36px; font-size: 20px; }
.portal-brand-copy strong { color: #263f42; font-size: 15px; }
.portal-brand-copy small { color: #718482; font-size: 9px; }
.portal-header-actions { gap: 11px; }
.portal-search { width: min(290px, 30vw); height: 37px; padding-inline: 11px; border-color: #d9e4de; border-radius: 6px; background: #fbfcfa; }
.portal-search input { color: var(--portal-ink); font-size: 12px; }
.portal-search input::-moz-placeholder { color: #849390; }
.portal-search input::placeholder { color: #849390; }
.notification-dot { width: 8px; height: 8px; top: 4px; right: 4px; background: #c6913e; }
.notification-popover { top: 43px; width: 260px; padding: 15px; border-color: var(--portal-line); border-radius: 8px; box-shadow: 0 12px 30px rgba(31, 55, 50, .14); font-size: 12px; }
.notification-popover strong { color: var(--portal-ink); font-size: 13px; }
.notification-popover span { color: var(--portal-muted); }
.portal-user { gap: 8px; padding-left: 8px; }
.portal-avatar-small { width: 33px; height: 33px; font-size: 11px; }
.portal-user-copy strong { color: #31494a; font-size: 10px; }
.portal-user-copy small { color: #71827f; font-size: 9px; }

.portal-frame { min-height: calc(100vh - 66px); grid-template-columns: 226px minmax(0, 1fr); }
.portal-sidebar { height: calc(100vh - 66px); min-height: calc(100vh - 66px); padding: 16px 12px 14px; background: #ffffff; color: #334155; border-right: 1px solid #e2e8f0; }
.sidebar-trust { gap: 6px; padding-bottom: 12px; border-bottom-color: #f1f5f9; }
.trust-seal { width: 48px; height: 48px; border-color: #2563eb; background: radial-gradient(circle, #a84b3b 0 44%, #d6af5d 46% 63%, #88473c 65%); }
.sidebar-trust strong { color: #1e293b; font-size: 10px; }
.sidebar-student { gap: 8px; padding: 12px 4px 15px; border-bottom-color: #f1f5f9; }
.sidebar-campus-mark .portal-gift-mark { width: 30px; height: 30px; font-size: 16px; }
.portal-avatar-large { width: 37px; height: 37px; font-size: 12px; }
.sidebar-student strong { color: #0f172a; font-size: 11px; }
.sidebar-student small { color: #64748b; font-size: 10px; }
.sidebar-caption { margin: 16px 9px 9px; color: #2563eb; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.portal-nav { gap: 4px; }
.portal-nav a,
.sidebar-bottom a { min-height: 40px; gap: 10px; padding-inline: 10px; border-radius: 6px; color: #d4dfda; font-size: 12px; line-height: 1.35; }
.portal-nav a:hover { background: #eff6ff; color: #2563eb; }
.portal-nav a.active { background: #2563eb !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important; font-weight: 600; }
.portal-nav a svg,
.sidebar-bottom a svg { color: #abc0b8; }
.portal-nav a.active svg { color: #ffffff !important; }
.sidebar-bottom { gap: 8px; }
.sidebar-version { padding: 8px 10px 0; color: #a7b9b4; font-size: 9px; }

.portal-main { padding: 18px clamp(16px, 2vw, 26px) 28px; }
.portal-breadcrumb { min-height: 29px; gap: 8px; margin-bottom: 10px; color: #778684; font-size: 11px; }
.portal-breadcrumb svg { color: var(--portal-teal); }
.portal-breadcrumb strong { color: #405656; }
.day-message { min-height: 52px; gap: 12px; padding: 10px 14px; border-left: 3px solid #2563eb; border-radius: 6px; background: #eff6ff; color: #334155; font-size: 11px; }
.day-message > div { gap: 9px; }
.day-message svg { color: #2563eb; }
.day-message strong { color: #1e293b; font-size: 11px; }
.day-message > span { color: #6d807a; font-size: 9px; }
.transfer-panel { margin-top: 13px; padding: 14px; border-color: var(--portal-line); border-radius: 7px; background: #fff; box-shadow: 0 2px 10px rgba(37, 61, 53, .035); }
.transfer-alert { margin-bottom: 10px; color: #a64e42; font-size: 11px; }
.transfer-confirmation { gap: 8px; margin-bottom: 10px; color: #596b68; font-size: 10px; }
.transfer-confirmation input { width: 15px; height: 15px; accent-color: var(--portal-teal); }
.transfer-fields { gap: 8px; }
.portal-select-wrap select,
.transfer-city { height: 36px; padding-inline: 10px; border-color: #e2e8f0; border-radius: 5px; color: #415654; font-size: 11px; }
.portal-select-wrap > svg { top: 11px; }
.transfer-submit,
.transfer-reset { height: 36px; border-radius: 5px; font-size: 10px; }
.transfer-submit { border-color: var(--portal-teal); background: var(--portal-teal); }
.transfer-submit:hover { background: var(--portal-teal-dark); }
.transfer-feedback { font-size: 10px; }

.portal-primary-grid,
.portal-secondary-grid,
.portal-bottom-grid { gap: 13px; margin-top: 13px; }
.portal-panel { border-color: #e2e8f0; border-top-width: 3px; border-radius: 7px; box-shadow: 0 2px 10px rgba(35, 61, 52, .04); }
.portal-panel-heading { min-height: 39px; padding-inline: 12px; border-bottom-color: #edf1ee; }
.portal-panel-heading h2 { gap: 7px; color: #30494a; font-size: 11px; }
.portal-panel-heading h2 svg { color: var(--portal-teal); }
.fees-panel { border-top-color: #c99443; }
.linkedin-panel { border-top-color: #588e87; }
.birthday-panel { border-top-color: #c99443; }
.holiday-panel { border-top-color: #6d947a; }
.student-profile { min-height: 78px; gap: 5px; border-bottom-color: #e5ece7; }
.student-profile-photo { width: 50px; height: 50px; border-color: #e3eee7; font-size: 14px; }
.student-profile-name { color: #30494a; font-size: 10px; }
.student-detail-row { min-height: 25px; grid-template-columns: 35% minmax(0, 1fr); border-bottom-color: #e6ece8; }
.student-detail-row:nth-child(odd) { background: #f7f9f7; }
.student-detail-row dt,
.student-detail-row dd { padding: 5px 8px; color: #405555; font-size: 10px; }
.student-detail-row dt { color: #526563; }
.status-pill { padding: 3px 8px; border-radius: 12px; background: #e7f2e9; color: #397651; font-size: 9px; }
.profile-edit-link,
.fee-link { gap: 5px; margin: 7px 9px 8px auto; color: var(--portal-teal); font-size: 10px; }
.profile-edit-link:hover,
.fee-link:hover { color: var(--portal-teal-dark); }
.fee-stack { gap: 6px; padding: 10px 10px 0; }
.fee-bar { min-height: 43px; padding: 5px 32px 5px 10px; border-radius: 4px; }
.fee-bar strong { font-size: 13px; }
.fee-bar span { font-size: 9px; }
.fee-bar.cyan { background: #337f78; }
.fee-bar.amber { background: #c28c39; }
.fee-bar.coral { background: #bd6656; }
.fee-bar svg { top: 8px; right: 7px; }
.linkedin-brand { gap: 6px; padding: 12px 10px 5px; font-size: 10px; }
.linkedin-brand > span { width: 16px; height: 16px; font-size: 9px; }
.linkedin-brand strong { font-size: 10px; }
.linkedin-empty { min-height: 168px; padding: 10px 13px 14px; }
.linkedin-empty > strong { color: #526866; font-size: 10px; }
.linkedin-empty p { color: #738482; font-size: 9px; }
.linkedin-empty a { padding: 6px 9px; border-color: #cadbd4; border-radius: 4px; color: var(--portal-teal); font-size: 9px; }
.linkedin-empty a:hover { background: #edf4ef; }
.notice-actions { gap: 4px; }
.notice-actions button { min-height: 28px; padding-inline: 9px; font-size: 9px; }
.notice-actions button.selected { border-bottom-color: var(--portal-teal); color: var(--portal-teal-dark); }
.notice-list { gap: 5px; padding: 9px; }
.notice-item { min-height: 42px; gap: 9px; padding: 7px 9px; border-radius: 4px; background: #367e78; }
.notice-item:hover { background: #2b6964; }
.notice-tag { padding: 3px 5px; border-radius: 2px; font-size: 7px; }
.notice-copy strong { font-size: 10px; }
.notice-copy small { font-size: 9px; }
.empty-list { font-size: 10px; }
.birthday-empty { min-height: 146px; gap: 6px; }
.birthday-empty strong { color: #506463; font-size: 10px; }
.birthday-empty > span:last-child { font-size: 9px; }
.birthday-list { padding: 6px 10px; }
.birthday-list > div { gap: 9px; padding: 8px 0; }
.birthday-date { width: 42px; height: 30px; border-radius: 4px; background: #f8f0e2; color: #986c2d; font-size: 8px; }
.birthday-list strong { color: #435856; font-size: 9px; }
.birthday-list small { font-size: 8px; }
.calendar-controls { gap: 7px; }
.calendar-controls button { width: 28px; height: 26px; border-color: #dbe4df; border-radius: 4px; color: #536966; }
.calendar-controls button:hover { border-color: var(--portal-teal); color: var(--portal-teal); }
.calendar-controls strong { min-width: 110px; color: #435b58; font-size: 9px; }
.calendar-weekdays { min-height: 28px; background: #f6f8f6; }
.calendar-weekdays span { color: #566966; font-size: 8px; }
.calendar-days > span { min-height: 32px; border-color: #e8ede9; color: #586d69; font-size: 8px; }
.calendar-days > span.today { background: #e7f0e7; color: #3d704f; }
.calendar-legend { gap: 12px; padding: 8px 10px; color: #71817e; font-size: 8px; }
.calendar-legend i { width: 7px; height: 7px; }
.holiday-table { max-height: 245px; }
.holiday-row { min-height: 29px; grid-template-columns: minmax(105px, .8fr) minmax(0, 1.6fr); border-bottom-color: #e8ede9; }
.holiday-row > * { padding: 5px 9px; color: #4f6461; font-size: 8px; }
.holiday-heading { background: #f5f8f6; }
.portal-footer { gap: 8px; padding: 16px 0 3px; color: #758481; font-size: 9px; }

@media (max-width: 1050px) {
  .portal-frame { grid-template-columns: 204px minmax(0, 1fr); }
  .portal-sidebar { padding-inline: 10px; }
  .portal-main { padding-inline: 15px; }
}

@media (max-width: 720px) {
  .portal-header { height: 58px; gap: 5px; padding-inline: 9px; }
  .portal-brand { min-width: 0; gap: 6px; }
  .portal-gift-mark { width: 30px; height: 30px; font-size: 17px; }
  .portal-brand-copy strong { font-size: 11px; }
  .portal-brand-copy small { font-size: 7px; }
  .portal-header-actions { gap: 3px; }
  .portal-search { width: 32px; height: 33px; padding-inline: 8px; }
  .portal-search:focus-within { width: min(160px, 40vw); }
  .portal-avatar-small { width: 28px; height: 28px; }
  .portal-frame { min-height: calc(100vh - 58px); }
  .portal-sidebar { top: 58px; }
  .portal-scrim { inset: 58px 0 0; }
  .portal-main { padding: 12px 10px 20px; }
  .day-message { min-height: 0; padding: 10px; font-size: 10px; }
  .day-message strong { font-size: 10px; }
  .transfer-fields { grid-template-columns: 1fr 1fr; }
  .portal-primary-grid,
  .portal-secondary-grid,
  .portal-bottom-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .student-detail-row dt,
  .student-detail-row dd { font-size: 9px; }
  .notice-item { min-height: 44px; }
  .calendar-days > span { min-height: 36px; }
  .holiday-row { min-height: 32px; }
}

@media (max-width: 380px) {
  .portal-main { padding-inline: 8px; }
  .portal-user { display: none; }
}

/* Student workspace refresh */
.student-portal {
  background: #f4f5f0;
  color: #263a35;
  font-size: 14px;
}

.portal-header {
  height: 70px;
  padding-inline: 24px;
  border-top: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.portal-menu-button,
.portal-icon-button,
.portal-signout { width: 38px; height: 38px; border-radius: 4px; color: #475569; }
.portal-menu-button:hover,
.portal-icon-button:hover,
.portal-signout:hover { background: #eff6ff; color: #1d4ed8; }
.portal-brand { min-width: 230px; color: #1d4ed8; }
.portal-gift-mark { border: 2px solid #2563eb; background: #2563eb; color: #fff; }
.portal-brand-copy strong { color: #0f172a; font-family: 'Manrope', sans-serif; font-size: 14px; }
.portal-brand-copy small { color: #7a8982; font-size: 8px; letter-spacing: .08em; }
.portal-header-actions { gap: 12px; }
.portal-search { height: 38px; border-color: #e2e8f0; border-radius: 4px; background: #f8fafc; }
.portal-search input { font-size: 12px; }
.portal-user-copy strong { color: #0f172a; font-size: 10px; }
.portal-avatar-small,
.portal-avatar-large { background: #2563eb; }
.notification-popover { border-radius: 4px; }

.portal-frame { grid-template-columns: 244px minmax(0, 1fr); }
.portal-sidebar {
  height: calc(100vh - 70px);
  min-height: calc(100vh - 70px);
  padding: 18px 14px 16px;
  background: #ffffff; border-right: 1px solid #e2e8f0;
}
.sidebar-trust { padding-bottom: 15px; }
.trust-seal { border-color: #2563eb; background: #2563eb; }
.sidebar-trust strong { font-family: 'Manrope', sans-serif; font-size: 9px; letter-spacing: .06em; }
.sidebar-student { padding-block: 14px 17px; }
.sidebar-caption { color: #2563eb; letter-spacing: .1em; }
.portal-nav { gap: 3px; }
.portal-nav a,
.sidebar-bottom a { min-height: 39px; border-radius: 4px; font-size: 11px; }
.portal-nav a:hover { background: #eff6ff; color: #2563eb; }
.portal-nav a.active { background: #2563eb !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important; font-weight: 600; }
.portal-nav a.active svg { color: #ffffff !important; }
.sidebar-version { font-size: 9px; }

.portal-main { padding: 22px clamp(18px, 2.3vw, 34px) 30px; }
.portal-breadcrumb { min-height: 30px; margin-bottom: 12px; font-size: 11px; }
.portal-breadcrumb svg { color: #2563eb; }
.day-message { min-height: 50px; border-left: 3px solid #2563eb; border-radius: 3px; background: #eff6ff; color: #334155; font-size: 11px; }
.day-message strong { color: #1e293b; font-size: 11px; }
.day-message svg { color: #2563eb; }
.transfer-panel { padding: 14px 16px; border-color: #e2e8f0; border-radius: 4px; box-shadow: 0 3px 12px rgba(34, 57, 47, .035); }
.transfer-alert { color: #a45140; font-size: 11px; }
.transfer-confirmation { font-size: 10px; }
.transfer-fields { grid-template-columns: minmax(150px, .8fr) minmax(170px, 1.6fr) 140px 84px; }
.portal-select-wrap select,
.transfer-city { height: 37px; border-radius: 3px; font-size: 11px; }
.transfer-submit,
.transfer-reset { height: 37px; border-radius: 3px; font-size: 10px; }
.transfer-submit { border-color: #2563eb; background: #2563eb; }
.transfer-submit:hover { background: #1d4ed8; }

.portal-primary-grid,
.portal-secondary-grid,
.portal-bottom-grid { gap: 14px; margin-top: 14px; }
.portal-panel { border: 1px solid #e2e8f0; border-top: 3px solid #2563eb; border-radius: 4px; box-shadow: 0 3px 14px rgba(36, 58, 48, .04); }
.fees-panel { border-top-color: #2563eb; }
.linkedin-panel { border-top-color: #3b82f6; }
.birthday-panel { border-top-color: #2563eb; }
.holiday-panel { border-top-color: #3b82f6; }
.portal-panel-heading { min-height: 42px; padding-inline: 13px; }
.portal-panel-heading h2 { color: #0f172a; font-family: 'Manrope', sans-serif; font-size: 11px; }
.portal-panel-heading h2 svg { color: #2563eb; }
.student-profile { min-height: 84px; }
.student-profile-photo { width: 48px; height: 48px; }
.student-profile-name { color: #0f172a; font-size: 10px; }
.student-detail-row { min-height: 27px; border-bottom-color: #e6ebe6; }
.student-detail-row:nth-child(odd) { background: #f8fafc; }
.student-detail-row dt,
.student-detail-row dd { padding: 6px 9px; color: #42554e; font-size: 10px; }
.status-pill { padding: 3px 8px; border-radius: 9px; background: #e6f0e8; color: #3b7955; font-size: 9px; }
.profile-edit-link,
.fee-link { margin: 8px 10px 9px auto; color: #286d5d; font-size: 10px; }
.fee-stack { gap: 7px; padding: 11px 11px 0; }
.fee-bar { min-height: 45px; border-radius: 3px; }
.fee-bar.cyan { background: #34796d; }
.fee-bar.amber { background: #bc8734; }
.fee-bar.coral { background: #b96350; }
.fee-bar strong { font-size: 13px; }
.fee-bar span { font-size: 9px; }
.linkedin-empty { min-height: 175px; }
.linkedin-empty > strong { color: #496159; font-size: 10px; }
.linkedin-empty p { font-size: 9px; }
.linkedin-empty a { border-radius: 3px; color: #286d5d; }
.notice-actions button { font-size: 9px; }
.notice-actions button.selected { border-bottom-color: #2563eb; color: #245d52; }
.notice-list { gap: 0; padding: 4px 12px; }
.notice-item { min-height: 55px; padding: 9px 4px; border-bottom: 1px solid #e6ebe6; border-radius: 0; background: #fff; color: #0f172a; }
.notice-item:hover { background: #f8fafc; }
.notice-tag { padding: 4px 6px; background: #f4eddd; color: #896527; font-size: 7px; }
.notice-copy strong { color: #314a41; font-size: 10px; }
.notice-copy small { color: #74817b; font-size: 9px; opacity: 1; }
.notice-item > svg { color: #8c9992; }
.birthday-date { background: #f6efdf; color: #916b2b; }
.birthday-empty strong,
.birthday-list strong { color: #40584e; }
.calendar-controls button { border-radius: 3px; }
.calendar-controls strong { color: #3f5a4f; font-size: 9px; }
.calendar-weekdays { background: #f4f7f3; }
.calendar-weekdays span { font-size: 8px; }
.calendar-days > span { min-height: 34px; color: #566a61; font-size: 9px; }
.calendar-days > span.today { background: #e5efe8; color: #276750; }
.calendar-legend { font-size: 8px; }
.holiday-heading { background: #f4f7f3; }
.holiday-row > * { font-size: 9px; }
.portal-footer { color: #76837c; font-size: 9px; }

/* Shared navigation and feature-page usability */
.portal-nav a,
.sidebar-bottom a {
  min-height: 42px;
  font-size: 12px;
}

.portal-nav a:focus-visible,
.sidebar-bottom a:focus-visible,
.portal-icon-button:focus-visible,
.portal-menu-button:focus-visible,
.portal-signout:focus-visible,
.portal-panel button:focus-visible,
.portal-feature-page button:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
  box-shadow: none;
}

.portal-feature-page { min-width: 0; }
.portal-feature-page > .portal-breadcrumb { margin-bottom: 12px; }

@media (max-width: 720px) {
  .portal-nav a,
  .sidebar-bottom a { min-height: 44px; font-size: 12px; }
  .portal-feature-page > .portal-breadcrumb { margin-bottom: 8px; }
}

@media (max-width: 1050px) {
  .portal-frame { grid-template-columns: 214px minmax(0, 1fr); }
  .portal-main { padding-inline: 18px; }
  .portal-primary-grid { grid-template-columns: minmax(0, 1.1fr) minmax(210px, .9fr); }
  .transfer-fields { grid-template-columns: minmax(130px, .9fr) minmax(145px, 1.4fr) 125px 74px; }
}

@media (max-width: 720px) {
  .portal-header { height: 58px; padding-inline: 9px; }
  .portal-frame { min-height: calc(100vh - 58px); }
  .portal-sidebar { top: 58px; width: 244px; height: auto; min-height: 0; }
  .portal-scrim { inset: 58px 0 0; }
  .portal-main { padding: 12px 10px 20px; }
  .portal-brand-copy strong { font-size: 11px; }
  .portal-brand-copy small { font-size: 7px; }
  .transfer-fields { grid-template-columns: 1fr 1fr; }
  .portal-primary-grid,
  .portal-secondary-grid,
  .portal-bottom-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .student-detail-row dt,
  .student-detail-row dd { font-size: 10px; }
  .notice-item { min-height: 48px; }
}

@media (max-width: 390px) {
  .portal-main { padding-inline: 8px; }
  .portal-user { display: none; }
  .transfer-fields { grid-template-columns: 1fr; }
}

.portal-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 0 21px;
}
.portal-page-heading h1 { margin: 5px 0 1px; color: #203b34; font-family: 'Manrope', sans-serif; font-size: 30px; line-height: 1.2; }
.portal-page-kicker { margin: 13px 0 0; color: #a27932; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.portal-page-caption { margin: 4px 0 0; color: #78857e; font-size: 12px; }
.portal-heading-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; color: #77847d; font-size: 10px; }
.portal-heading-meta time { color: #65736c; }
.portal-term-chip { display: flex; gap: 7px; padding: 6px 9px; border: 1px solid #dce4dc; border-radius: 3px; background: #fff; font-size: 8px; letter-spacing: .05em; }
.portal-term-chip strong { color: #356c5c; }
.portal-breadcrumb { margin-bottom: 3px; }
.day-message { margin-bottom: 14px; }
.portal-snapshot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.portal-snapshot article { display: grid; min-height: 102px; grid-template-columns: 1fr auto; align-content: center; -moz-column-gap: 12px; column-gap: 12px; padding: 15px 18px; border: 1px solid #e2e8f0; border-radius: 4px; background: #fff; }
.portal-snapshot article > span { grid-column: 1; color: #718078; font-size: 10px; }
.portal-snapshot article > strong { grid-column: 1; grid-row: 2; margin-top: 3px; color: #27473d; font-family: 'Manrope', sans-serif; font-size: 24px; line-height: 1.2; }
.portal-snapshot article > strong em { color: #8b978f; font-size: 11px; font-style: normal; }
.portal-snapshot article > small { display: flex; grid-column: 2; grid-row: 1 / span 2; align-items: center; gap: 6px; color: #74827a; font-size: 9px; }
.portal-snapshot article > small svg { color: #41816d; }
.portal-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(275px, .85fr); align-items: start; gap: 15px; }
.portal-feed-column,
.portal-context-column { display: flex; min-width: 0; flex-direction: column; gap: 14px; }
.portal-schedule-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(200px, .85fr); gap: 14px; }
.portal-dashboard-grid .portal-panel { margin: 0; }
.portal-dashboard-grid .linkedin-empty { min-height: 150px; }
.portal-dashboard-grid .student-profile { flex-direction: row; justify-content: flex-start; padding: 12px; }
.portal-dashboard-grid .student-profile-name { font-size: 12px; }
.portal-dashboard-grid .student-profile-photo { width: 43px; height: 43px; }
.portal-dashboard-grid .student-info-panel .student-detail-row { min-height: 31px; }
.portal-dashboard-grid .student-info-panel .student-detail-row dt,
.portal-dashboard-grid .student-info-panel .student-detail-row dd { padding-block: 7px; font-size: 9px; }

@media (max-width: 1050px) {
  .portal-dashboard-grid { grid-template-columns: minmax(0, 1.35fr) minmax(255px, .9fr); }
  .portal-schedule-grid { grid-template-columns: 1fr; }
  .portal-snapshot article { padding-inline: 12px; }
  .portal-snapshot article > small { font-size: 8px; }
}

@media (max-width: 720px) {
  .portal-page-heading { align-items: flex-start; flex-direction: column; gap: 12px; padding-bottom: 15px; }
  .portal-page-heading h1 { font-size: 25px; }
  .portal-heading-meta { width: 100%; align-items: flex-start; flex-direction: row; justify-content: space-between; }
  .portal-snapshot { grid-template-columns: 1fr; gap: 8px; }
  .portal-snapshot article { min-height: 78px; grid-template-columns: minmax(0, 1fr) auto; padding: 11px 14px; }
  .portal-snapshot article > strong { font-size: 21px; }
  .portal-dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .portal-feed-column,
  .portal-context-column { gap: 11px; }
  .portal-schedule-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Universal Blue & White Overrides */
.student-portal { background: #f8faff !important; color: #1e293b !important; }
.portal-header { background: #ffffff !important; border-bottom: 1px solid #e2e8f0 !important; border-top: 3px solid #2563eb !important; }
.portal-sidebar { background: #ffffff !important; border-right: 1px solid #e2e8f0 !important; color: #334155 !important; }
.portal-nav a { color: #475569 !important; }
.portal-nav a:hover { background: #eff6ff !important; color: #2563eb !important; }
.portal-nav a.active { background: #2563eb !important; color: #ffffff !important; border-radius: 8px !important; }
.portal-nav a.active svg { color: #ffffff !important; }
.portal-brand-copy strong { color: #0f172a !important; }
.portal-gift-mark { background: #2563eb !important; border-color: #2563eb !important; color: #ffffff !important; }
.portal-avatar-small, .portal-avatar-large { background: #2563eb !important; color: #ffffff !important; }
.trust-seal { background: #eff6ff !important; border-color: #93c5fd !important; color: #2563eb !important; }
.sidebar-trust strong { color: #1e293b !important; }
.sidebar-student strong { color: #0f172a !important; }
.sidebar-caption { color: #2563eb !important; }
.portal-panel { border-color: #e2e8f0 !important; border-top-color: #2563eb !important; background: #ffffff !important; box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important; }
.portal-panel-heading h2 { color: #0f172a !important; }
.portal-panel-heading h2 svg { color: #2563eb !important; }


/* ========================================================
   HIGH-CONTRAST BOLD TYPOGRAPHY UPGRADE
   ======================================================== */

.student-portal {
  font-weight: 600 !important;
  color: #0f172a !important;
  -webkit-font-smoothing: antialiased;
}

/* Header typography */
.portal-brand-copy strong {
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  color: #0f172a !important;
}
.portal-brand-copy small {
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  color: #2563eb !important;
}
.portal-user-copy strong {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
.portal-user-copy small {
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #2563eb !important;
}

/* Sidebar typography */
.sidebar-trust strong {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  color: #0f172a !important;
}
.sidebar-student strong {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
.sidebar-student small {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  color: #64748b !important;
}
.sidebar-caption {
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  color: #2563eb !important;
}

/* Sidebar navigation links */
.portal-nav a,
.sidebar-bottom a {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  padding: 8px 12px !important;
}
.portal-nav a svg,
.sidebar-bottom a svg {
  stroke-width: 2.3px !important;
}
.portal-nav a:hover {
  color: #2563eb !important;
  font-weight: 700 !important;
}
.portal-nav a.active {
  font-weight: 800 !important;
  color: #ffffff !important;
  background: #2563eb !important;
}
.portal-nav a.active svg {
  color: #ffffff !important;
  stroke-width: 2.5px !important;
}

/* Breadcrumbs & Kicker */
.portal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  margin-bottom: 12px;
}

.portal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #ffffff;
  color: #1e293b !important;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-back-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #2563eb !important;
  transform: translateX(-2px);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.18);
}

.portal-back-btn:active {
  transform: scale(0.96) translateX(-1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition-duration: 0.05s !important;
}

.portal-back-btn svg {
  color: inherit !important;
  transition: transform 0.2s ease;
}

.portal-back-btn:hover svg {
  transform: translateX(-2px);
}

.portal-breadcrumb-sep {
  color: #cbd5e1 !important;
  margin: 0 2px;
  font-size: 13px;
}

.portal-breadcrumb-home {
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  color: #64748b !important;
  border-radius: 6px;
  transition: transform 0.12s ease, color 0.15s ease, background-color 0.15s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: manipulation;
  will-change: transform;
}

.portal-breadcrumb-home:active {
  transform: scale(0.92);
  transition-duration: 0.05s !important;
}

.portal-breadcrumb-home:hover {
  color: #2563eb !important;
  background: #eff6ff;
}

.portal-breadcrumb-slash {
  color: #94a3b8 !important;
  margin: 0 2px;
  font-size: 13px;
}

.portal-breadcrumb-current,
.portal-breadcrumb strong {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

/* Headings & Card Titles - Scoped to Portal content only */
.portal-panel h1, .portal-panel h2, .portal-panel h3, .portal-panel h4, .portal-panel strong, .portal-panel dt,
.portal-card h1, .portal-card h2, .portal-card h3, .portal-card h4, .portal-card strong, .portal-card dt,
.portal-main h1, .portal-main h2, .portal-main h3, .portal-main h4, .portal-main strong, .portal-main dt,
.portal-content h1, .portal-content h2, .portal-content h3, .portal-content h4, .portal-content strong, .portal-content dt,
.campus-os-card h1, .campus-os-card h2, .campus-os-card h3, .campus-os-card h4, .campus-os-card strong, .campus-os-card dt {
  font-weight: 800 !important;
  color: #0f172a !important;
}

/* WhatsApp / Campus Connect Dark Theme Isolation */
:is(.cc-container, .universal-wa-drawer, .campus-whatsapp-drawer) :is(h1, h2, h3, h4, h5, h6) {
  color: #ffffff !important;
}

:is(.cc-container, .universal-wa-drawer, .campus-whatsapp-drawer) strong {
  color: inherit !important;
}

.portal-panel-heading h2 {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

/* Search and Inputs */
.portal-search input {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
}
.portal-search input::-moz-placeholder {
  font-weight: 600 !important;
  color: #94a3b8 !important;
}
.portal-search input::placeholder {
  font-weight: 600 !important;
  color: #94a3b8 !important;
}

/* Buttons */
button, .btn-pay-now, .btn-receipt, .btn-notice-action {
  font-weight: 700 !important;
}


/* ========================================================
   CAMPUS OS SHELL & DASHBOARD THEME (EXACT MATCH)
   ======================================================== */

.campus-os-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background: #f8fafc;
  color: #0f172a;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.campus-os-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* Fixed & Stable Sidebar Card */
.campus-os-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #091326;
  background: linear-gradient(180deg, #091326 0%, #0b1a36 100%);
  border: 1px solid #1a2a44;
  border-radius: 28px;
  padding: 22px 18px 18px 22px;
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.4);
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  overscroll-behavior: contain;
  z-index: 30;
}

.campus-os-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.campus-os-nav {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

.campus-os-nav::-webkit-scrollbar {
  width: 5px;
}

.campus-os-nav::-webkit-scrollbar-track {
  background: transparent;
}

.campus-os-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.campus-os-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

.campus-os-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #94a3b8;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.18s ease,
              color 0.18s ease,
              box-shadow 0.18s ease;
  will-change: transform;
}

.campus-os-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(4px);
}

.campus-os-nav a:active {
  transform: scale(0.98) translateX(2px);
  transition-duration: 0.05s !important;
}

.campus-os-nav a.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
  transform: translateX(0);
}

.campus-os-nav a.active:hover {
  background: #1d4ed8 !important;
  transform: translateX(2px);
}
.campus-os-nav a svg {
  flex-shrink: 0;
}

.campus-nav-chat-bubble {
  flex-shrink: 0;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2px !important;
}

.campus-os-nav a.active svg {
  color: #ffffff !important;
}

.campus-os-role-card {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.campus-role-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #93c5fd;
  margin: 0;
  text-transform: uppercase;
}

.campus-role-val {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 0;
}

.campus-role-sub {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  display: block;
}

/* Floating Main Content Card */
.campus-os-main {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  min-height: calc(100vh - 48px);
}

.campus-os-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.campus-header-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #2563eb;
  margin: 0;
  text-transform: uppercase;
}

.campus-header-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 4px 0 2px;
  letter-spacing: -0.02em;
}

.campus-header-subtitle {
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  margin: 0;
}

.campus-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  flex-wrap: wrap;
}

.campus-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  width: 220px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              box-shadow 0.2s ease,
              background-color 0.2s ease;
}

.campus-search-box:focus-within {
  width: 260px;
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.campus-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  width: 100%;
}

.campus-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.15s ease,
              color 0.15s ease,
              border-color 0.15s ease,
              box-shadow 0.18s ease;
  will-change: transform;
}

.campus-icon-btn:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.campus-icon-btn:hover svg {
  animation: campusBellWiggle 0.6s ease-in-out;
}

.campus-icon-btn:active {
  transform: scale(0.92) translateY(0);
  transition-duration: 0.05s !important;
}

.campus-bell-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  background: #2563eb;
  border-radius: 50%;
  animation: campusPulseGlow 2s infinite;
}

.campus-whatsapp-header-btn {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #10b981;
}

.campus-whatsapp-header-btn:hover {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.whatsapp-header-icon {
  color: #10b981;
}

.campus-whatsapp-header-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

/* WhatsApp Slide-out Drawer */
.campus-whatsapp-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1200;
  display: flex;
  justify-content: flex-end;
  animation: fadeInDrawer 0.2s ease;
}

@keyframes fadeInDrawer {
  from { opacity: 0; }
  to { opacity: 1; }
}

.campus-whatsapp-drawer {
  width: 540px;
  max-width: 100vw;
  height: 100vh;
  background: #0b0f19;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  animation: slideDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes slideDrawer {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.whatsapp-drawer-header {
  padding: 14px 18px;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.whatsapp-drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-drawer-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.whatsapp-drawer-title h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
}

.whatsapp-drawer-title p {
  margin: 2px 0 0 0;
  font-size: 0.72rem;
  color: #cbd5e1;
}

.whatsapp-drawer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.whatsapp-drawer-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.whatsapp-drawer-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.whatsapp-drawer-body {
  flex: 1;
  overflow: hidden;
  display: flex;
}


.campus-notif-popover {
  position: absolute;
  top: 48px;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  width: 360px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  animation: notif-slide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes notif-slide {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.notif-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.notif-popover-head strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.notif-count-badge {
  background: #dbeafe;
  color: #1e40af;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.notif-close-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: all 0.15s;
}

.notif-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.notif-popover-body {
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notif-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.notif-item:hover {
  background: #f1f5f9;
}

.notif-item.is-unread {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.notif-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.notif-tag-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}

.notif-tag-scholarship { background: #dcfce7; color: #15803d; }
.notif-tag-exam { background: #fee2e2; color: #b91c1c; }
.notif-tag-library { background: #fef3c7; color: #b45309; }
.notif-tag-accounts { background: #e0e7ff; color: #4338ca; }
.notif-tag-faculty { background: #fef3c7; color: #b45309; }
.notif-tag-urgent { background: #fee2e2; color: #b91c1c; font-weight: 800; border: 1px solid #fca5a5; }

.notif-time {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
}

.notif-title {
  margin: 0 0 3px 0;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.notif-message {
  margin: 0;
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
}

.notif-popover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.notif-mark-read-btn,
.notif-view-all-btn {
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;
}

.notif-mark-read-btn {
  color: #64748b;
}

.notif-mark-read-btn:hover {
  color: #0f172a;
}

.notif-view-all-btn {
  color: #2563eb;
}

.notif-view-all-btn:hover {
  color: #1d4ed8;
}

.campus-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
}

.campus-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.campus-user-details strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.campus-user-details small {
  font-size: 10.5px;
  font-weight: 600;
  color: #2563eb;
}

.campus-logout-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 6px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.campus-logout-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.campus-os-body {
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .campus-os-container {
    flex-direction: column;
    gap: 16px;
  }
  .campus-os-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    max-width: 85vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0 24px 24px 0;
    z-index: 1000;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.6);
    animation: sidebarDrawerIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes sidebarDrawerIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Dark Blue Sidebar Explicit Color Overrides */
.campus-os-sidebar h1,
.campus-os-sidebar h2,
.campus-os-sidebar h3,
.campus-os-sidebar h4,
.campus-os-sidebar strong,
.campus-os-sidebar .campus-brand-title {
  color: #ffffff !important;
}

.campus-os-sidebar .campus-brand-kicker {
  color: #60a5fa !important;
}

.campus-os-sidebar .campus-role-kicker {
  color: #93c5fd !important;
}

.campus-os-sidebar .campus-role-val {
  color: #ffffff !important;
}

.campus-os-sidebar .campus-os-nav a {
  color: #cbd5e1 !important;
}

.campus-os-sidebar .campus-os-nav a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.campus-os-sidebar .campus-os-nav a.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45) !important;
}

.campus-os-sidebar .campus-os-nav a.active svg {
  color: #ffffff !important;
}

/* Toggle Navigation Button */
.campus-nav-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #1e293b;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  flex-shrink: 0;
}

.campus-nav-toggle-btn:hover {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.campus-nav-toggle-btn.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
}

/* Campus Connect Sidebar Section Styling */
.campus-os-nav-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}

.campus-os-nav-section-title {
  font-size: 10px;
  font-weight: 800;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px 2px;
  margin: 0;
}

.cc-nav-badge {
  margin-left: auto;
  background: #06b6d4;
  color: #0b0f19;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
  line-height: 1.3;
  box-shadow: 0 2px 6px rgba(6, 182, 212, 0.4);
}

/* ==========================================================
   Dashboard Home — modern redesign (scoped to .dash)
   ========================================================== */
.dash {
  --d-ink: #0f172a;
  --d-ink-2: #334155;
  --d-muted: #64748b;
  --d-line: #e8edf5;
  --d-bg: #f6f8fc;
  --d-blue: #2563eb;
  --d-blue-2: #4f46e5;
  --d-radius: 18px;
  --d-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--d-ink);
  animation: dash-fade 0.45s ease both;
}

@keyframes dash-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

/* ---------- Hero ---------- */
.dash-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 30px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(1200px 300px at 100% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(120deg, #1e3a8a 0%, #2563eb 48%, #4f46e5 100%);
  box-shadow: 0 18px 40px -18px rgba(37, 99, 235, 0.55);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.dash-hero.dash-hero-morning {
  background:
    radial-gradient(1200px 300px at 100% 0%, rgba(254, 215, 170, 0.3), transparent 60%),
    linear-gradient(120deg, #0369a1 0%, #0284c7 40%, #2563eb 80%, #4338ca 100%);
  box-shadow: 0 18px 40px -18px rgba(2, 132, 199, 0.55);
}

.dash-hero.dash-hero-afternoon {
  background:
    radial-gradient(1200px 300px at 100% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(120deg, #1d4ed8 0%, #2563eb 48%, #0ea5e9 100%);
  box-shadow: 0 18px 40px -18px rgba(37, 99, 235, 0.55);
}

.dash-hero.dash-hero-evening {
  background:
    radial-gradient(1200px 300px at 100% 0%, rgba(244, 114, 182, 0.25), transparent 60%),
    linear-gradient(120deg, #1e1b4b 0%, #312e81 35%, #4338ca 70%, #6366f1 100%);
  box-shadow: 0 18px 40px -18px rgba(49, 46, 129, 0.65);
}

.dash-hero.dash-hero-night {
  background:
    radial-gradient(1200px 300px at 100% 0%, rgba(147, 197, 253, 0.16), transparent 60%),
    linear-gradient(120deg, #0b0f19 0%, #0f172a 40%, #1e1b4b 80%, #312e81 100%);
  box-shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.75);
}

.dash-hero-glow {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
  pointer-events: none;
}

.dash-hero-main {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.dash-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c7d2fe;
}

.dash-hero-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.dash-hero-caption {
  margin: 6px 0 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.dash-motd {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  font-size: 12.5px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease,
              border-color 0.2s ease;
  will-change: transform;
}

.dash-motd:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.38);
}

.dash-motd-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--d-blue);
  transition: transform 0.2s ease;
}

.dash-motd:hover .dash-motd-icon {
  transform: rotate(12deg) scale(1.08);
}

.dash-motd strong {
  font-weight: 800;
  color: #fff;
}

.dash-motd span:last-child {
  color: rgba(255, 255, 255, 0.88);
}

.dash-hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.dash-chip {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e0e7ff;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease;
  will-change: transform;
}

.dash-chip:hover {
  transform: translateY(-1px) scale(1.03);
  background: rgba(255, 255, 255, 0.24);
}

.dash-chip strong {
  margin-left: 4px;
  color: #fff;
}

.dash-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Stats ---------- */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* ---------- Hero Split Layout (1st Image on Left + 2nd Image on Right - 50% each) ---------- */
.dash-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.dash-stats-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
  height: 100%;
}

@media (max-width: 680px) {
  .dash-stats-2x2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 12px;
  }
}

.dash-stats-2x2 .dash-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 22px 18px;
  height: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid var(--d-line);
  border-radius: 18px;
  box-shadow: 0 4px 18px -6px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: manipulation;
  will-change: transform;
}

.dash-stats-2x2 .dash-stat:nth-child(1) { animation: campusFadeIn 0.22s ease-out 0.04s both; }
.dash-stats-2x2 .dash-stat:nth-child(2) { animation: campusFadeIn 0.22s ease-out 0.08s both; }
.dash-stats-2x2 .dash-stat:nth-child(3) { animation: campusFadeIn 0.22s ease-out 0.12s both; }
.dash-stats-2x2 .dash-stat:nth-child(4) { animation: campusFadeIn 0.22s ease-out 0.16s both; }

.dash-stats-2x2 .dash-stat:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tone) 35%, transparent);
  box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--tone) 25%, transparent);
}

.dash-stats-2x2 .dash-stat:active {
  transform: scale(0.98) translateY(1px);
  transition-duration: 0.05s !important;
}

/* Academic CGPA Sparkline & Trend Card inside 2x2 Stats Grid */
.cgpa-chart-wrapper {
  margin: 6px 0 8px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cgpa-sparkline-svg {
  width: 100%;
  height: 52px;
  overflow: visible;
}

.cgpa-sem-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  padding: 0 2px;
  gap: 4px;
}

.cgpa-sem-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 10px;
  color: #475569;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cgpa-sem-pill b {
  font-weight: 800;
  color: #0f172a;
}

.cgpa-sem-pill.active {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #7c3aed;
  font-weight: 800;
}

.cgpa-sem-pill.active b {
  color: #7c3aed;
}

.cgpa-sem-pill i {
  font-style: normal;
  font-weight: 700;
  color: #059669;
}

/* Fees Details 3-Tier Card inside 2x2 Stats Grid */
.dash-stat.dash-stat-fees-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: 100% !important;
  padding: 16px 18px !important;
  border-top: 3px solid #f59e0b !important;
  box-sizing: border-box !important;
}

.dash-stat.dash-stat-fees-card > div {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
}

.dash-stat-fees-card .fees-card-header {
  flex: 0 0 auto !important;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

.dash-stat-fees-card .fees-card-body {
  flex: 1 1 auto !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
  width: 100% !important;
}

.dash-stat-fees-card .fees-banner-row {
  width: 100% !important;
  flex: 1;
  min-height: 52px;
  border-radius: 4px;
  padding: 9px 14px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dash-stat-fees-card .fees-banner-row:hover {
  transform: translateY(-1px);
}

.dash-stat-fees-card .fees-banner-row.tone-cyan {
  background: #00b0f0;
  box-shadow: 0 2px 8px rgba(0, 176, 240, 0.25);
}

.dash-stat-fees-card .fees-banner-row.tone-amber {
  background: #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.dash-stat-fees-card .fees-banner-row.tone-red {
  background: #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.dash-stat-fees-card .fees-amount {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.dash-stat-fees-card .fees-label {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.95;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.dash-stat-fees-card .fees-watermark {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.32);
  line-height: 1;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.dash-stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.dash-stat-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-stat-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tone-blue-badge {
  background: #eff6ff;
  color: #1d4ed8;
}

.tone-green-badge {
  background: #ecfdf5;
  color: #047857;
}

.tone-violet-badge {
  background: #f5f3ff;
  color: #6d28d9;
}

.tone-amber-badge {
  background: #fffbeb;
  color: #b45309;
}

.dash-stat-body {
  margin: 12px 0 10px;
  width: 100%;
}

.dash-stat-desc {
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.dash-stat-ratio {
  font-size: 12px;
  font-weight: 700;
  color: #059669;
}

.dash-stat-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  width: 100%;
}

.dash-stat-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
}

.tone-green-pill {
  background: #dcfce7;
  color: #15803d;
}

.text-green {
  color: #059669;
  font-weight: 600;
}

.dash-info-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.dash-info-hero .dash-info-list {
  padding: 4px 18px;
  flex: 1;
}

.dash-info-hero .dash-info-list .student-detail-row {
  padding: 8px 0;
}

.dash-info-hero .dash-info-btn {
  margin: 14px 18px 18px;
  width: calc(100% - 36px);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #4338ca, #3b82f6);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dash-info-hero .dash-info-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.45);
}

/* ---------- Student Passport Photo Frame (Exact 35mm x 45mm ratio, never a rectangle) ---------- */
.dash-passport-photo-frame {
  position: relative;
  width: 72px;
  height: 94px;
  min-width: 72px;
  max-width: 72px;
  min-height: 94px;
  max-height: 94px;
  aspect-ratio: 35 / 45;
  border-radius: 8px;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18), 0 0 0 1px #cbd5e1;
  overflow: hidden;
  flex: 0 0 72px;
  background: #f1f5f9;
}

.dash-passport-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center top;
     object-position: center top;
  display: block;
}

.campus-user-passport {
  overflow: hidden;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1.5px solid #2563eb;
  flex-shrink: 0;
  background: #e2e8f0;
}

.campus-user-passport-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

/* ---------- 2-Column Grid for Calendar & Holiday List Side-by-Side ---------- */
.dash-grid-duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 1080px) {
  .dash-hero-split {
    grid-template-columns: 1fr;
  }

  .dash-grid-duo {
    grid-template-columns: 1fr;
  }
}

.dash-stat {
  --tone: #2563eb;
  --tone-soft: #eff6ff;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--d-line);
  border-radius: var(--d-radius);
  box-shadow: var(--d-shadow);
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.15s ease,
              border-color 0.15s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: manipulation;
  will-change: transform;
}

.dash-stat:hover {
  transform: translateY(-2.5px);
  border-color: color-mix(in srgb, var(--tone) 30%, transparent);
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--tone) 35%, transparent);
}

.dash-stat:active {
  transform: scale(0.98) translateY(1px);
  transition-duration: 0.05s !important;
}

.dash-stat>div {
  min-width: 0;
  flex: 1;
}

.tone-blue {
  --tone: #2563eb;
  --tone-soft: #eff6ff;
}

.tone-green {
  --tone: #059669;
  --tone-soft: #ecfdf5;
}

.tone-violet {
  --tone: #7c3aed;
  --tone-soft: #f5f3ff;
}

.tone-amber {
  --tone: #d97706;
  --tone-soft: #fffbeb;
}

.dash-stat-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--tone-soft);
  color: var(--tone);
}

.dash-stat-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--d-muted);
}

.dash-stat-value {
  display: block;
  margin: 2px 0 4px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--d-ink);
  line-height: 1.15;
}

.dash-stat-value em {
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  color: var(--d-muted);
}

.dash-stat-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--d-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tone-green .dash-stat-sub {
  color: #059669;
}

.dash-progress {
  height: 6px;
  margin: 2px 0 8px;
  border-radius: 99px;
  background: #e2e8f0;
  overflow: hidden;
}

.dash-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #059669);
  animation: dash-grow 1s ease-out both;
}

@keyframes dash-grow {
  from {
    width: 0 !important;
  }
}

/* ---------- Generic card ---------- */
.dash-card {
  background: #fff;
  border: 1px solid var(--d-line, #e2e8f0);
  border-radius: var(--d-radius, 18px);
  box-shadow: var(--d-shadow, 0 2px 10px rgba(15, 23, 42, 0.04));
  overflow: hidden;
}

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--d-line);
}

.dash-card-head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--d-ink);
}

.dash-head-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--d-blue);
}

.dash-head-icon.tone-amber {
  background: #fffbeb;
  color: #d97706;
}

.dash-count {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 700;
  color: var(--d-muted);
}

/* ---------- Buttons ---------- */
.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dash-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--d-blue), var(--d-blue-2));
  box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.6);
}

.dash-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px -8px rgba(37, 99, 235, 0.7);
}

.dash-btn-ghost {
  color: var(--d-ink-2);
  background: #fff;
  border-color: #dbe2ec;
}

.dash-btn-ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* ---------- Transfer form ---------- */
.dash-transfer {
  padding: 20px;
}

.dash-transfer-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.dash-transfer-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #ea580c;
}

.dash-transfer-head h3 {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 800;
}

.dash-transfer-head p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--d-muted);
}

.dash-transfer-head p strong {
  color: #c2410c;
}

.dash-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--d-bg);
  font-size: 12.5px;
  color: var(--d-ink-2);
  cursor: pointer;
}

.dash-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--d-blue);
  cursor: pointer;
}

.dash-transfer-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto auto;
  gap: 10px;
}

.dash-select,
.dash-input {
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
  border: 1px solid #dbe2ec;
  border-radius: 12px;
  background: #fff;
  color: var(--d-muted);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dash-select:focus-within,
.dash-input:focus-within {
  border-color: var(--d-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.dash-select>svg:first-of-type,
.dash-input>svg {
  position: absolute;
  left: 13px;
  pointer-events: none;
}

.dash-select>svg:last-of-type {
  position: absolute;
  right: 13px;
  pointer-events: none;
}

.dash-select select,
.dash-input input {
  width: 100%;
  height: 100%;
  padding: 0 36px 0 38px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--d-ink);
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  cursor: pointer;
}

.dash-input input {
  padding-right: 14px;
  cursor: text;
}

.dash-feedback {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- Main grid ---------- */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: 16px;
  align-items: stretch;
}

/* Calendar */
.dash-calendar {
  display: flex;
  flex-direction: column;
}

.dash-cal-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-cal-controls strong {
  min-width: 108px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--d-ink-2);
}

.dash-cal-controls button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--d-line);
  border-radius: 9px;
  background: #fff;
  color: var(--d-ink-2);
  cursor: pointer;
  transition: all 0.2s;
}

.dash-cal-controls button:hover {
  background: var(--d-blue);
  border-color: var(--d-blue);
  color: #fff;
}

.dash-cal-weekdays,
.dash-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 0 14px;
}

.dash-cal-weekdays {
  padding-top: 14px;
  padding-bottom: 6px;
}

.dash-cal-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.dash-cal-weekdays span:first-child {
  color: #f43f5e;
}

.dash-cal-days {
  flex: 1;
  align-content: start;
}

.dash-day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-height: 44px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--d-ink-2);
  cursor: default;
  transition: background 0.15s, color 0.15s;
}

.dash-day:hover {
  background: #f1f5f9;
}

.dash-day.is-sunday {
  color: #e11d48;
}

.dash-day.is-outside {
  color: #cbd5e1;
}

.dash-day.is-outside.is-sunday {
  color: #fecdd3;
}

.dash-day.is-holiday {
  background: #fff7ed;
  color: #c2410c;
  box-shadow: inset 0 0 0 1px #fed7aa;
  font-weight: 800;
  cursor: help;
}

.dash-day.is-today {
  background: linear-gradient(135deg, var(--d-blue, #2563eb), var(--d-blue-2, #1d4ed8)) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 14px -4px rgba(37, 99, 235, 0.75) !important;
}

.dash-legend {
  display: flex;
  gap: 16px;
  padding: 14px 18px 16px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--d-muted, #64748b);
}

.dash-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dash-legend i {
  width: 10px;
  height: 10px;
  border-radius: 4px;
  display: inline-block;
}

.lg-holiday {
  background: #fdba74;
}

.lg-sunday {
  background: #fda4af;
}

.lg-today {
  background: var(--d-blue, #2563eb) !important;
}

/* Holidays */
.dash-holidays {
  display: flex;
  flex-direction: column;
}

.dash-holiday-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-holiday-filter-pills {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
}

.dash-filter-pill {
  border: none;
  background: transparent;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--d-muted);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.2;
}

.dash-filter-pill:hover {
  color: var(--d-ink);
}

.dash-filter-pill.active {
  background: #ffffff;
  color: #1e40af;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.dash-holiday-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-holiday-scroll {
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.dash-holiday-scroll::-webkit-scrollbar {
  width: 6px;
}

.dash-holiday-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.dash-holiday-scroll::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 999px;
}

.dash-holiday-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8;
}

.dash-holiday {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 12px;
  transition: background 0.15s;
}

.dash-holiday:hover {
  background: #f8fafc;
}

.dash-holiday-date {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f1f5f9;
  line-height: 1;
}

.dash-holiday-date strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--d-ink);
}

.dash-holiday-date small {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--d-muted);
}

.dash-holiday-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.dash-holiday-info strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--d-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-holiday-info small {
  font-size: 11px;
  color: var(--d-muted);
}

.dash-holiday-badge {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eff6ff;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--d-blue);
}

.dash-holiday.is-next {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.dash-holiday.is-next .dash-holiday-date {
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.dash-holiday.is-next .dash-holiday-date strong,
.dash-holiday.is-next .dash-holiday-date small {
  color: #fff;
}

.dash-holiday.is-next .dash-holiday-badge {
  background: #f97316;
  color: #fff;
}

.dash-holiday.is-past {
  opacity: 0.5;
}

.dash-holiday.is-past .dash-holiday-badge {
  background: #f1f5f9;
  color: var(--d-muted);
}

/* Info card */
.dash-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dash-info-cover {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  background:
    radial-gradient(400px 120px at 100% 0%, rgba(79, 70, 229, 0.12), transparent 70%),
    linear-gradient(180deg, #eef4ff, #ffffff);
  border-bottom: 1px solid var(--d-line);
}

.dash-info-cover>div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.dash-info-cover strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--d-ink);
}

.dash-info-cover small {
  font-size: 12px;
  font-weight: 600;
  color: var(--d-muted);
}

.dash-info-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--d-blue), var(--d-blue-2));
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.8);
}

.dash-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  font-size: 11px;
  font-weight: 700;
  color: #047857;
}

.dash-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.dash-info-list {
  margin: 0;
  padding: 6px 18px;
  flex: 1;
}

.dash-info-list .student-detail-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--d-line);
}

.dash-info-list .student-detail-row:last-child {
  border-bottom: 0;
}

.dash-info-list dt {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--d-muted);
}

.dash-info-list dd {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--d-ink);
  word-break: break-word;
}

.dash-info-btn {
  margin: 4px 18px 18px;
}

/* Footer */
.dash-footer {
  padding: 10px 0 4px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.dash-footer span {
  margin: 0 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-info {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .dash-hero {
    flex-direction: column;
    padding: 22px;
  }

  .dash-hero-meta {
    align-items: flex-start;
  }

  .dash-stats,
  .dash-grid {
    grid-template-columns: 1fr;
  }

  .dash-transfer-fields {
    grid-template-columns: 1fr;
  }
}

/* ---------- Overrides for legacy global styles ---------- */
.dash .dash-hero h2.dash-hero-title {
  color: #ffffff !important;
}

.dash .dash-hero .dash-motd strong,
.dash .dash-hero .dash-chip strong {
  color: #ffffff !important;
}

.dash .dash-hero .dash-motd span:last-child {
  color: rgba(255, 255, 255, 0.9) !important;
}

.dash .dash-info-list .student-detail-row {
  background: transparent !important;
  padding: 9px 0 !important;
  border: 0 !important;
  border-bottom: 1px dashed var(--d-line) !important;
  align-items: center;
}

.dash .dash-info-list .student-detail-row:last-child {
  border-bottom: 0 !important;
}

.dash .dash-info-list .student-detail-row dt {
  padding: 0 !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--d-muted) !important;
}

.dash .dash-info-list .student-detail-row dd {
  padding: 0 !important;
  background: transparent !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: var(--d-ink) !important;
}.student-profile-page {
  min-width: 0;
  color: #34404c;
}

.profile-breadcrumb {
  display: flex;
  min-height: 27px;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: #88939d;
  font-size: 9px;
  white-space: nowrap;
}

.profile-breadcrumb button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1680b9;
  cursor: pointer;
  font-size: inherit;
}

.profile-breadcrumb strong {
  overflow: hidden;
  color: #566474;
  font-weight: 500;
  text-overflow: ellipsis;
}

.profile-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 9px 0 8px;
}

.profile-title-row h1 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #354353;
  font-size: 17px;
  font-weight: 500;
}

.profile-title-row h1 svg { color: #277a9c; }

.profile-return {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid #d9e0e6;
  background: #fff;
  color: #5d6d7c;
  cursor: pointer;
  font-size: 9px;
}

.profile-return:hover { border-color: #138fbd; color: #087da9; }

.profile-layout {
  display: grid;
  grid-template-columns: minmax(245px, 320px) minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.profile-summary-card,
.profile-detail-panel {
  min-width: 0;
  border: 1px solid #e1e4e7;
  background: #fff;
}

.profile-photo-wrap {
  display: flex;
  min-height: 106px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e4e6e8;
  background: #fbfbfb;
}

.profile-photo {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #b4d9a0, #4e9a58 54%, #d2a17e 55%, #f1d0b3);
  box-shadow: 0 1px 4px rgba(23, 40, 55, .35);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.profile-summary-table { margin: 0; }

.profile-summary-row {
  display: grid;
  min-height: 22px;
  grid-template-columns: 29% minmax(0, 1fr);
  border-bottom: 1px solid #e2e4e6;
}

.profile-summary-row.row-class-attendance,
.profile-summary-row:first-child { 
  background: #faeede !important; 
}
.profile-summary-row.row-class-attendance dt {
  color: #333333 !important;
}
.profile-summary-row.row-class-attendance dd {
  color: #245494 !important;
  font-weight: 800 !important;
}

.profile-summary-row.row-hostel-attendance { 
  background: #fbf0eb !important; 
}
.profile-summary-row.row-hostel-attendance dt {
  color: #333333 !important;
}
.profile-summary-row.row-hostel-attendance dd {
  color: #245494 !important;
  font-weight: 800 !important;
}

.profile-summary-row:nth-child(even) { background: #f3f4f5; }
.profile-summary-row dt,
.profile-summary-row dd {
  min-width: 0;
  margin: 0;
  padding: 5px 6px;
  color: #36414d;
  font-size: 8px;
  line-height: 1.35;
}

.profile-summary-row dt { font-weight: 600; }
.profile-summary-row dd { overflow-wrap: anywhere; }
.profile-summary-row dd a { color: #1775ad; text-decoration: none; }
.profile-summary-row dd a:hover { text-decoration: underline; }

.profile-active {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 5px;
  background: #57b76c;
  color: #fff;
  font-size: 7px;
  font-weight: 700;
}

.profile-main-column { min-width: 0; }

.profile-quick-links {
  display: flex;
  min-height: 77px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 5px 9px;
}

.profile-quick-links button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 1px 0;
  border: 0;
  background: transparent;
  color: #1873df;
  cursor: pointer;
  font-size: 9px;
  text-align: left;
}

.profile-quick-links button:hover { color: #074fa8; text-decoration: underline; }

.profile-tabs {
  display: flex;
  min-height: 31px;
  align-items: stretch;
  overflow-x: auto;
  border-bottom: 2px solid #08acd0;
  scrollbar-width: thin;
}

.profile-tabs button {
  display: inline-flex;
  min-width: -moz-max-content;
  min-width: max-content;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: #fff;
  color: #48718d;
  cursor: pointer;
  font-size: 8px;
}

.profile-tabs button:hover { background: #f3f8fb; color: #087cad; }
.profile-tabs button.active { margin-bottom: -2px; border-bottom-color: #08acd0; background: #08b4d2; color: #fff; }

.profile-detail-panel { border-top: 0; }

.profile-detail-panel > h2 {
  display: flex;
  min-height: 31px;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0 8px;
  border-bottom: 1px solid #e4e7e9;
  color: #3d4853;
  font-size: 12px;
  font-weight: 500;
}

.profile-detail-panel > h2 svg { color: #416172; }

.profile-status-message {
  margin: 7px 8px;
  padding: 7px 9px;
  border-left: 2px solid #199ac1;
  background: #eef7fa;
  color: #48606d;
  font-size: 8px;
}

.profile-data-table { min-width: 0; }

.profile-data-row {
  display: grid;
  min-height: 29px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #e1e3e5;
}

.profile-data-field {
  display: grid;
  grid-column: span 2;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-data-field + .profile-data-field { border-left: 1px solid #e1e3e5; }
.profile-data-field > span,
.profile-data-field > strong { display: flex; min-width: 0; align-items: center; padding: 6px 8px; font-size: 8px; line-height: 1.35; }
.profile-data-field > span { background: #f2f3f4; color: #586470; }
.profile-data-field > strong { overflow-wrap: anywhere; color: #38434e; font-weight: 400; }
.profile-data-row:nth-child(even) .profile-data-field > strong { background: #faf7e9; }
.profile-data-row.wide-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-data-row.wide-row .profile-data-field { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
.profile-data-row.wide-row .profile-data-field > strong { background: #fff; }

.academic-details { min-width: 0; }
.academic-data-table .profile-data-row.wide-row .profile-data-field { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.qualification-table-wrap { overflow-x: auto; border-bottom: 1px solid #e1e3e5; }
.qualification-table { width: 100%; min-width: 530px; border-collapse: collapse; table-layout: fixed; }
.qualification-table th,
.qualification-table td { height: 26px; padding: 5px 7px; border: 1px solid #e1e3e5; color: #46525d; font-size: 8px; text-align: left; }
.qualification-table thead th { background: #f2f3f4; font-weight: 700; }
.qualification-table tbody tr:nth-child(even) { background: #f5f6f7; }
.qualification-table tbody th { font-weight: 600; }
.qualification-table th:first-child { width: 19%; }
.qualification-table th:nth-child(2) { width: 55%; }
.qualification-table th:nth-child(3) { width: 18%; }
.qualification-table th:nth-child(4) { width: 8%; }
.academic-status-table .profile-data-row:first-child .profile-data-field > span { font-weight: 600; }

.attendance-view { min-width: 0; }
.attendance-table-wrap { width: 100%; overflow-x: auto; }
.attendance-summary-table,
.subject-attendance-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.attendance-summary-table th,
.attendance-summary-table td,
.subject-attendance-table th,
.subject-attendance-table td { height: 29px; padding: 5px 7px; border: 1px solid #dfe2e5; color: #303b46; font-size: 8px; text-align: left; }
.attendance-summary-table thead th,
.subject-attendance-table thead th { background: #f0f1f2; font-weight: 700; }
.attendance-summary-table th:first-child { width: 23%; }
.attendance-summary-table th:nth-child(2) { width: 28%; }
.attendance-summary-table th:nth-child(3) { width: 35%; }
.attendance-summary-table th:nth-child(4) { width: 14%; }
.attendance-summary-table tbody tr:nth-child(even),
.subject-attendance-table tbody tr:nth-child(even) { background: #f4f5f6; }
.attendance-summary-table tbody tr.selected { background: #fff; }
.attendance-summary-table tbody th { font-weight: 500; }
.attendance-summary-table tbody th button { padding: 0; border: 0; background: transparent; color: #d63737; cursor: pointer; font-size: inherit; font-weight: 600; text-align: left; }
.attendance-summary-table tbody th button:hover { text-decoration: underline; }
.attendance-percent,
.subject-attendance-table tfoot td:last-child { color: #173ed4 !important; font-weight: 700; }
.attendance-action-row { display: flex; justify-content: center; padding: 12px 0 7px; }
.attendance-detail-toggle { min-height: 26px; padding: 0 9px; border: 0; border-radius: 2px; background: #f29a0a; color: #fff; cursor: pointer; font-size: 8px; font-weight: 700; }
.attendance-detail-toggle:hover { background: #dc8500; }
.subject-attendance { margin-top: 9px; border: 1px solid #e0e3e6; }
.subject-attendance h3 { margin: 0; padding: 6px 8px; border-bottom: 1px solid #e0e3e6; color: #d63737; font-size: 9px; }
.subject-attendance-table th:first-child { width: 48%; }
.subject-attendance-table th:nth-child(2) { width: 18%; }
.subject-attendance-table th:nth-child(3) { width: 21%; }
.subject-attendance-table th:nth-child(4) { width: 13%; }
.subject-attendance-table tbody th,
.subject-attendance-table tfoot th { font-weight: 600; }
.subject-attendance-table tfoot { background: #f2f3f4; font-weight: 700; }

.fees-details-view { min-width: 0; }
.fee-overview { display: flex; flex-direction: column; gap: 2px; padding: 4px 2px 8px; border-bottom: 2px solid #19bdd7; }
.fee-overview p { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; color: #34414d; font-size: 9px; line-height: 1.45; }
.fee-overview p > span { font-weight: 600; }
.fee-overview p > strong { font-weight: 500; }
.fee-overview p:last-child strong { color: #bb7215; }
.fee-notice { margin: 8px 0 13px; padding: 9px 10px; border: 1px solid #f0e2b8; border-left: 3px solid #e5a62c; background: #fff9e8; color: #6c634f; font-size: 8px; line-height: 1.5; }
.fee-notice a { color: #1676b6; }
.fee-table-section { min-width: 0; margin-top: 12px; border-top: 2px solid #12a9cf; }
.fee-table-section h3 { min-height: 27px; margin: 0; padding: 6px 2px 4px; color: #3e4a56; font-size: 10px; font-weight: 500; }
.fee-demand-section { border-top-color: #ed9718; }
.payment-history-section { border-top-color: #45b97a; }
.legacy-receipt-section { border-top-color: #ed9718; }
.refund-history-section { border-top-color: #49b67a; }
.fee-table-wrap { width: 100%; overflow-x: auto; }
.fee-data-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.fee-data-table th,
.fee-data-table td { height: 25px; padding: 4px 6px; border: 1px solid #dfe2e5; color: #34404c; font-size: 7px; text-align: left; white-space: nowrap; }
.fee-data-table thead th { background: #f0f1f2; color: #28668f; font-weight: 700; }
.fee-data-table tbody tr:nth-child(even) { background: #f3f4f5; }
.fee-data-table tbody th { font-weight: 600; }
.fee-data-table tfoot { background: #f4f5f6; font-weight: 700; }
.fee-data-table tfoot th,
.fee-data-table tfoot td { font-weight: 700; }
.demand-table { min-width: 550px; }
.demand-table th:first-child { width: 34px; }
.demand-table th:nth-child(2) { width: 38%; }
.demand-table th:nth-child(3) { width: 40%; }
.payment-table { min-width: 1050px; }
.payment-table th:first-child { width: 28px; }
.fee-receipt-button { display: grid; width: 20px; height: 19px; place-items: center; border: 0; background: transparent; color: #2485b8; cursor: pointer; }
.fee-receipt-button:hover { background: #eaf5fa; }
.fee-receipt-message { margin: 0; padding: 6px 8px; background: #eef7fa; color: #506978; font-size: 8px; }
.legacy-table,
.refund-table { min-width: 650px; }
.legacy-table tbody td,
.refund-table tbody td { height: 31px; color: #78838d; }
.refund-table { min-width: 900px; }

@media (max-width: 620px) {
  .fee-overview p { font-size: 8px; }
  .fee-notice { font-size: 8px; }
  .fee-table-section h3 { min-height: 30px; }
  .fee-data-table th,
  .fee-data-table td { height: 29px; }
}

.profile-statement-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 8px;
  color: #1974ad;
  font-size: 9px;
  text-decoration: none;
}
.profile-statement-link:hover { text-decoration: underline; }

.profile-attendance-track {
  height: 6px;
  margin: 8px;
  background: #e9edf0;
}
.profile-attendance-track span { display: block; height: 100%; background: #38a879; }

.profile-documents { display: flex; flex-direction: column; padding: 5px 8px; }
.profile-document-row { display: flex; min-height: 35px; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #e5e8ea; }
.profile-document-row > span { display: inline-flex; align-items: center; gap: 7px; color: #4a5865; font-size: 9px; }
.profile-document-row > span svg { color: #3187b1; }
.profile-document-row button { padding: 4px 9px; border: 1px solid #d6e2e9; background: #fff; color: #1976a6; cursor: pointer; font-size: 8px; }
.profile-document-row button:hover { background: #eef8fb; }

.profile-id-card {
  display: grid;
  width: min(100% - 24px, 330px);
  min-height: 165px;
  grid-template-columns: 42px 1fr 62px;
  align-content: start;
  align-items: center;
  gap: 8px;
  margin: 12px;
  padding: 12px;
  border: 1px solid #d8e1e7;
  background: linear-gradient(135deg, #fff 0 68%, #eef6fa 68%);
  box-shadow: 0 3px 9px rgba(35, 55, 70, .08);
}

.profile-id-mark { display: grid; width: 36px; height: 36px; grid-row: span 2; place-items: center; border: 3px solid #e64729; border-radius: 50%; background: #f8cd32; color: #17509d; font-size: 19px; font-weight: 700; }
.profile-id-copy { display: flex; flex-direction: column; gap: 3px; }
.profile-id-copy strong { color: #245081; font-size: 10px; }
.profile-id-copy small { color: #778591; font-size: 7px; }
.profile-id-avatar { display: grid; width: 52px; height: 58px; grid-column: 3; grid-row: 1 / span 3; place-items: center; background: linear-gradient(145deg, #add89c, #519857 53%, #d4a17e 54%, #f1d0b3); color: white; font-size: 11px; font-weight: 700; }
.profile-id-name { grid-column: 1 / 3; color: #35495b; font-size: 10px; }
.profile-id-card > span:last-child,
.profile-id-card > span:nth-last-child(2) { grid-column: 1 / -1; color: #586979; font-size: 8px; }

.profile-extra-links { display: flex; justify-content: space-between; gap: 8px; padding: 8px 2px; color: #87939e; font-size: 8px; }
.profile-extra-links span { display: inline-flex; align-items: center; gap: 4px; }
.profile-extra-links svg { color: #52839e; }

@media (max-width: 850px) {
  .profile-layout { grid-template-columns: minmax(205px, .8fr) minmax(0, 1.5fr); }
  .profile-summary-row { grid-template-columns: 35% minmax(0, 1fr); }
  .profile-data-row { grid-template-columns: minmax(0, 1fr); }
  .profile-data-field + .profile-data-field { border-left: 0; border-top: 1px solid #e7e9eb; }
  .profile-data-field,
  .profile-data-row.wide-row .profile-data-field { grid-column: 1 / -1; grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr); }
}

@media (max-width: 620px) {
  .profile-breadcrumb { gap: 5px; font-size: 8px; }
  .profile-title-row { margin-top: 6px; }
  .profile-title-row h1 { font-size: 15px; }
  .profile-layout { grid-template-columns: minmax(0, 1fr); }
  .profile-photo-wrap { min-height: 90px; }
  .profile-main-column { grid-row: 1; }
  .profile-summary-card { grid-row: 2; }
  .profile-quick-links { min-height: 69px; }
  .profile-tabs { margin-top: 3px; }
  .profile-tabs button { padding-inline: 8px; }
  .profile-data-field { grid-template-columns: minmax(96px, .78fr) minmax(0, 1.22fr); }
  .profile-data-field > span,
  .profile-data-field > strong { padding: 7px 6px; font-size: 8px; }
  .profile-extra-links { flex-wrap: wrap; }
}

.student-profile-page { color: var(--ink, #24373a); }
.profile-breadcrumb { min-height: 32px; gap: 8px; color: #748381; font-size: 10px; }
.profile-breadcrumb button { color: var(--teal, #246f68); font-weight: 600; }
.profile-breadcrumb strong { color: #3b5252; }
.profile-title-row { margin: 8px 0 14px; }
.profile-title-row h1 { gap: 8px; color: #273f41; font-size: 22px; font-weight: 600; }
.profile-title-row h1 svg { color: var(--teal, #246f68); }
.profile-return { gap: 7px; padding: 8px 11px; border-color: #d7e2dc; border-radius: 5px; color: #536867; font-size: 10px; }
.profile-return:hover { border-color: #8eb6a9; color: var(--teal-deep, #19544f); }
.profile-layout { grid-template-columns: minmax(270px, 320px) minmax(0, 1fr); gap: 14px; }
.profile-summary-card,
.profile-detail-panel { border-color: #dce6e0; border-radius: 6px; box-shadow: 0 2px 9px rgba(35, 58, 49, .035); }
.profile-photo-wrap { min-height: 118px; border-bottom-color: #e5ece7; background: linear-gradient(135deg, #f9fbf8, #edf4ef); }
.profile-photo { width: 80px; height: 80px; box-shadow: 0 3px 10px rgba(34, 64, 50, .15); font-size: 18px; }
.profile-summary-row { min-height: 28px; grid-template-columns: 36% minmax(0, 1fr); border-bottom-color: #e5ebe7; }
.profile-summary-row:first-child { background: #faf4e8; }
.profile-summary-row:nth-child(even) { background: #f6f8f6; }
.profile-summary-row dt,
.profile-summary-row dd { padding: 6px 8px; color: #405451; font-size: 9px; line-height: 1.4; }
.profile-summary-row dt { font-weight: 600; }
.profile-active { gap: 4px; padding: 2px 7px; border-radius: 10px; background: #e5f1e7; color: #3e7651; font-size: 8px; }
.profile-main-column { min-width: 0; }
.profile-quick-links { min-height: 78px; gap: 4px; padding: 6px 9px; }
.profile-quick-links button { min-height: 24px; gap: 8px; padding: 2px 5px; border-radius: 4px; color: #276f68; font-size: 10px; text-decoration: none; }
.profile-quick-links button:hover { background: #e8f2ed; color: #174f4c; text-decoration: none; }
.profile-tabs { min-height: 39px; border-bottom-color: #377e75; }
.profile-tabs button { gap: 5px; padding-inline: 10px; border-radius: 4px 4px 0 0; color: #536d6b; font-size: 9px; }
.profile-tabs button:hover { background: #edf4f0; color: #255c55; }
.profile-tabs button.active { border-bottom-color: #377e75; background: #377e75; color: #fff; }
.profile-detail-panel { overflow: hidden; border-top: 0; border-radius: 0 0 6px 6px; }
.profile-detail-panel > h2 { min-height: 42px; gap: 7px; padding-inline: 12px; border-bottom-color: #e3ebe6; color: #2f4a49; font-size: 14px; font-weight: 600; }
.profile-detail-panel > h2 svg { color: var(--teal, #246f68); }
.profile-status-message { margin: 9px 11px; padding: 9px 11px; border-left-color: #478b7c; border-radius: 0 4px 4px 0; background: #edf4ef; color: #4b625e; font-size: 9px; }
.profile-data-row { min-height: 36px; border-bottom-color: #e1e9e4; }
.profile-data-field > span,
.profile-data-field > strong { padding: 8px 10px; color: #465a58; font-size: 9px; line-height: 1.45; }
.profile-data-field > span { background: #f1f5f2; color: #4f6460; font-weight: 600; }
.profile-data-field > strong { color: #344a49; }
.profile-data-row:nth-child(even) .profile-data-field > strong { background: #faf9f4; }
.profile-data-row.wide-row .profile-data-field > strong { background: #fff; }
.qualification-table th,
.qualification-table td { height: 32px; padding: 7px 9px; border-color: #dfe7e2; color: #415653; font-size: 9px; }
.qualification-table thead th { background: #edf3ef; color: #415b56; }
.qualification-table tbody tr:nth-child(even) { background: #f6f8f6; }
.attendance-summary-table th,
.attendance-summary-table td,
.subject-attendance-table th,
.subject-attendance-table td { height: 35px; padding: 7px 9px; border-color: #dfe7e2; color: #415653; font-size: 9px; }
.attendance-summary-table thead th,
.subject-attendance-table thead th { background: #edf3ef; color: #415b56; }
.attendance-summary-table tbody tr.selected { background: #f1f7f3; }
.attendance-summary-table tbody th button { color: #a64e42; font-weight: 700; }
.attendance-percent,
.subject-attendance-table tfoot td:last-child { color: #285b9c !important; }
.attendance-action-row { padding: 13px 0 8px; }
.attendance-detail-toggle { min-height: 34px; padding-inline: 13px; border-radius: 4px; background: #bf8c3e; font-size: 9px; }
.attendance-detail-toggle:hover { background: #a9752e; }
.subject-attendance { margin-top: 11px; border-color: #dfe7e2; border-radius: 5px; overflow: hidden; }
.subject-attendance h3 { padding: 8px 10px; border-bottom-color: #e1e9e4; color: #a64e42; font-size: 10px; }

.fee-overview { gap: 4px; padding: 8px 10px 11px; border-bottom-color: #5a9a8f; }
.fee-overview p { gap: 6px; color: #415754; font-size: 10px; }
.fee-overview p > span { min-width: 155px; color: #354d4b; }
.fee-overview p:last-child strong { color: #a8752f; }
.fee-notice { margin: 10px 0 14px; padding: 10px 12px; border-radius: 5px; font-size: 9px; }
.fee-table-section { margin-top: 14px; border-top-width: 3px; }
.fee-table-section h3 { min-height: 34px; padding: 8px 2px 6px; color: #304a49; font-size: 12px; font-weight: 600; }
.fee-data-table th,
.fee-data-table td { height: 31px; padding: 6px 8px; border-color: #e0e7e3; color: #405552; font-size: 8px; }
.fee-data-table thead th { background: #edf3ef; color: #415d59; }
.fee-data-table tbody tr:nth-child(even) { background: #f6f8f6; }
.fee-data-table tfoot { background: #f0f5f1; }
.payment-history-section { border-top-color: #568e76; }
.legacy-receipt-section { border-top-color: #c39247; }
.refund-history-section { border-top-color: #568e76; }
.fee-receipt-button { width: 25px; height: 24px; border-radius: 4px; color: var(--teal, #246f68); }
.fee-receipt-button:hover { background: #e8f2ed; }
.fee-receipt-message { padding: 8px 10px; background: #edf4ef; color: #4a635d; font-size: 9px; }

.profile-quick-record-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 4px; }
.profile-quick-record-heading .profile-status-message { flex: 1; margin: 0; }
.profile-quick-record .attendance-table-wrap { margin-top: 6px; }
.profile-quick-record .attendance-summary-table th,
.profile-quick-record .attendance-summary-table td { height: 36px; }

@media (max-width: 850px) {
  .profile-layout { grid-template-columns: minmax(235px, .8fr) minmax(0, 1.5fr); gap: 11px; }
  .profile-data-row { min-height: 34px; }
}

@media (max-width: 620px) {
  .profile-layout { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .profile-main-column { grid-row: 1; }
  .profile-summary-card { grid-row: 2; }
  .profile-title-row h1 { font-size: 19px; }
  .profile-summary-row { min-height: 30px; }
  .profile-summary-row dt,
  .profile-summary-row dd { font-size: 9px; }
  .profile-tabs { min-height: 39px; }
  .profile-tabs button { padding-inline: 9px; font-size: 9px; }
  .profile-data-row { min-height: 35px; }
  .profile-data-field > span,
  .profile-data-field > strong { padding: 8px 7px; font-size: 9px; }
  .fee-data-table th,
  .fee-data-table td { height: 32px; font-size: 8px; }
  .profile-quick-record-heading { align-items: flex-start; flex-direction: column; }
  .profile-quick-record-heading .profile-return { align-self: flex-end; }
}

/* Student record workspace refresh */
.student-profile-page { color: #263a35; }
.profile-breadcrumb { min-height: 34px; color: #74827b; font-size: 10px; }
.profile-breadcrumb button { color: #286d5d; }
.profile-breadcrumb strong { color: #40574e; }
.profile-title-row { margin: 9px 0 15px; }
.profile-title-row h1 { color: #234239; font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 700; }
.profile-title-row h1 svg { color: #347768; }
.profile-return { padding: 8px 11px; border-color: #d7e1d9; border-radius: 3px; color: #4e655a; font-size: 10px; }
.profile-return:hover { border-color: #85a99a; color: #174b43; }
.profile-layout { grid-template-columns: minmax(260px, 310px) minmax(0, 1fr); gap: 15px; }
.profile-summary-card,
.profile-detail-panel { border-color: #dfe6df; border-radius: 4px; box-shadow: 0 3px 12px rgba(36, 58, 48, .04); }
.profile-photo-wrap { min-height: 120px; border-bottom-color: #e5ebe5; background: #eff4ef; }
.profile-photo { border-color: #fff; background: linear-gradient(145deg, #8cb99c, #347763 58%, #d4a984 59%, #e9c7a8); }
.profile-summary-row { min-height: 29px; border-bottom-color: #e6ebe6; }
.profile-summary-row:first-child { background: #f7f0df; }
.profile-summary-row:nth-child(even) { background: #f6f8f5; }
.profile-summary-row dt,
.profile-summary-row dd { padding: 6px 8px; color: #40564d; font-size: 9px; }
.profile-summary-row dd a { color: #286d5d; }
.profile-active { border-radius: 9px; background: #e5f0e7; color: #397250; }
.profile-quick-links { min-height: 78px; gap: 5px; padding: 7px 10px; }
.profile-quick-links button { min-height: 25px; padding: 3px 6px; border-radius: 3px; color: #286d5d; font-size: 10px; }
.profile-quick-links button:hover { background: #e7f0ea; color: #174b43; }
.profile-tabs { min-height: 40px; border-bottom-color: #347768; }
.profile-tabs button { gap: 5px; padding-inline: 11px; border-radius: 3px 3px 0 0; color: #52675e; font-size: 9px; }
.profile-tabs button:hover { background: #eef4ef; color: #245d52; }
.profile-tabs button.active { border-bottom-color: #347768; background: #347768; color: #fff; }
.profile-detail-panel { border-radius: 0 0 4px 4px; }
.profile-detail-panel > h2 { min-height: 43px; padding-inline: 13px; color: #304a40; font-family: 'Manrope', sans-serif; font-size: 13px; }
.profile-detail-panel > h2 svg { color: #347768; }
.profile-status-message { border-left-color: #c9973f; border-radius: 0 3px 3px 0; background: #f7f0df; color: #66583e; font-size: 9px; }
.profile-data-row { min-height: 37px; border-bottom-color: #e3e9e3; }
.profile-data-field > span,
.profile-data-field > strong { padding: 8px 10px; color: #42574e; font-size: 9px; }
.profile-data-field > span { background: #f0f4f0; color: #52665d; font-weight: 600; }
.profile-data-field > strong { color: #354c42; }
.profile-data-row:nth-child(even) .profile-data-field > strong { background: #faf9f4; }
.qualification-table th,
.qualification-table td,
.attendance-summary-table th,
.attendance-summary-table td,
.subject-attendance-table th,
.subject-attendance-table td { border-color: #e0e7e0; color: #41564d; font-size: 9px; }
.qualification-table thead th,
.attendance-summary-table thead th,
.subject-attendance-table thead th { background: #edf3ee; color: #415b50; }
.attendance-percent,
.subject-attendance-table tfoot td:last-child { color: #286d5d !important; }
.attendance-detail-toggle { border-radius: 3px; background: #c18b35; }
.attendance-detail-toggle:hover { background: #a8752e; }
.fee-overview { border-bottom-color: #347768; }
.fee-overview p { color: #41574e; }
.fee-overview p:last-child strong { color: #9a702d; }
.fee-notice { border-radius: 3px; }
.fee-table-section { border-top-color: #347768; }
.fee-table-section h3 { color: #304a40; font-family: 'Manrope', sans-serif; }
.fee-data-table th,
.fee-data-table td { border-color: #e0e7e0; color: #40564c; }
.fee-data-table thead th { background: #edf3ee; color: #415b50; }
.fee-data-table tbody tr:nth-child(even) { background: #f6f8f5; }
.fee-receipt-button { color: #286d5d; }
.fee-receipt-message { background: #edf4ef; color: #496158; }
.profile-document-row > span svg { color: #347768; }
.profile-document-row button { border-radius: 3px; color: #286d5d; }
.profile-document-row button:hover { background: #eef4ef; }
.profile-id-card { border-color: #d7e1d9; border-radius: 4px; background: linear-gradient(135deg, #fff 0 68%, #edf4ef 68%); }
.profile-id-mark { border-color: #2563eb; background: #184b43; color: #fff; }
.profile-id-copy strong { color: #245b4e; }
.profile-extra-links { color: #7b8981; }
.profile-extra-links svg { color: #618b77; }

@media (max-width: 850px) {
  .profile-layout { grid-template-columns: minmax(230px, .8fr) minmax(0, 1.5fr); gap: 12px; }
}

@media (max-width: 620px) {
  .profile-layout { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .profile-title-row h1 { font-size: 19px; }
  .profile-tabs { min-height: 40px; }
  .profile-tabs button { padding-inline: 9px; font-size: 9px; }
  .profile-summary-row { min-height: 30px; }
  .profile-summary-row dt,
  .profile-summary-row dd { font-size: 9px; }
  .profile-data-field > span,
  .profile-data-field > strong { padding: 8px 7px; font-size: 9px; }
}

.profile-overview-strip { position: relative; display: grid; grid-template-columns: 72px minmax(180px, 1fr) minmax(300px, 1.45fr) auto; align-items: center; gap: 18px; margin-bottom: 18px; padding: 20px 22px; border: 1px solid #dfe6df; border-left: 4px solid #347768; background: #fff; }
.profile-overview-strip > .profile-photo { width: 68px; height: 68px; border: 0; box-shadow: none; }
.profile-overview-copy { min-width: 0; }
.profile-overview-label { color: #a27932; font-size: 8px; font-weight: 700; letter-spacing: .09em; }
.profile-overview-copy h2 { margin: 5px 0 1px; color: #234239; font-family: 'Manrope', sans-serif; font-size: 19px; }
.profile-overview-copy p { margin: 0; color: #74817a; font-size: 10px; }
.profile-overview-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.profile-overview-facts > span { display: flex; min-width: 0; flex-direction: column; gap: 4px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; }
.profile-overview-facts small { color: #bfdbfe; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.profile-overview-facts strong { color: #ffffff; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.profile-registry-summary { position: relative; min-width: 130px; }
.profile-registry-summary summary { display: flex; height: 100%; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.2); color: #ffffff; cursor: pointer; font-size: 11px; font-weight: 700; list-style: none; border-radius: 12px; outline: none; }
.registry-summary-title,
.registry-summary-title span { border: none !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
.profile-registry-summary summary::-webkit-details-marker { display: none; }
.profile-registry-summary summary:hover { background: rgba(255, 255, 255, 0.2); }
.profile-registry-summary[open] { position: relative; z-index: 3; }
.profile-registry-summary[open] summary { position: static; }
.profile-registry-summary .profile-summary-table { width: 100%; }
.profile-layout { display: block; }
.profile-main-column { display: grid; grid-template-columns: minmax(0, 1fr); }
.profile-quick-links { display: grid; min-height: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 0 13px; }
.profile-quick-links button { min-height: 39px; justify-content: center; padding: 7px 9px; border: 1px solid #dfe6df; background: #fff; font-size: 9px; }
.profile-tabs { min-height: 43px; border: 1px solid #dfe6df; border-bottom: 2px solid #347768; background: #fff; }
.profile-tabs button { flex: 1 0 auto; padding-inline: 12px; }
.profile-detail-panel { margin-top: 0; border: 1px solid #dfe6df; border-top: 0; }
.profile-extra-links { padding-top: 12px; }

@media (max-width: 900px) {
  .profile-overview-strip { grid-template-columns: 60px minmax(150px, 1fr) minmax(0, 1.4fr); gap: 13px; padding: 16px; }
  .profile-overview-strip > .profile-photo { width: 58px; height: 58px; }
  .profile-registry-summary { grid-column: 1 / -1; min-height: 36px; }
  .profile-overview-facts { gap: 6px; }
}

@media (max-width: 620px) {
  .profile-overview-strip { grid-template-columns: 54px minmax(0, 1fr); gap: 10px 12px; padding: 14px; }
  .profile-overview-strip > .profile-photo { width: 52px; height: 52px; }
  .profile-overview-copy h2 { font-size: 17px; }
  .profile-overview-facts { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .profile-registry-summary { grid-column: 1 / -1; }
  .profile-registry-summary[open] { width: 100%; max-height: 70vh; }
  .profile-quick-links { grid-template-columns: 1fr 1fr; }
  .profile-quick-links button { justify-content: flex-start; }
  .profile-tabs { max-width: calc(100vw - 36px); }
}

/* ========================================================
   ERP OFFICIAL TABLE STYLES (MATCHING USER SCREENSHOTS)
   ======================================================== */
.erp-tab-content {
  padding: 12px 16px 28px;
  background: #ffffff;
}

.erp-profile-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #212529;
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.erp-profile-header .erp-info-icon {
  color: #1e293b;
}

.erp-cyan-divider-bar {
  width: 100%;
  height: 3px;
  background: #00bcd4;
  margin: -6px 0 16px;
  border-radius: 1px;
}

.erp-section-subhead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.erp-section-subhead {
  color: #2c3e50;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.erp-gold-divider-line {
  width: 100%;
  height: 2px;
  background: #f59e0b;
  margin-bottom: 12px;
}

.erp-emergency-contact-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.erp-badge-orange {
  display: inline-block;
  padding: 2px 7px;
  background: #f97316;
  color: #ffffff;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.erp-table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #f1f5f9;
  border-radius: 4px;
}

.erp-grid-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.erp-grid-table td {
  padding: 10px 14px;
  font-size: 0.88rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.erp-grid-table tr:hover {
  background: #fafbfc;
}

.erp-th-cell {
  width: 18%;
  color: #334155;
  font-weight: 600;
  background: #ffffff;
}

.erp-th-blue {
  color: #1e3a5f;
  font-weight: 700;
}

.erp-td-cell {
  width: 32%;
  color: #1e293b;
  font-weight: 400;
  background: #ffffff;
}

.erp-td-yellow {
  background: #fef9e7 !important;
  color: #333333;
  font-weight: 500;
}

.erp-qualification-grid-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.erp-qualification-grid-table th,
.erp-qualification-grid-table td {
  padding: 10px 14px;
  font-size: 0.88rem;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.erp-qualification-grid-table thead th {
  background: #f8fafc;
  color: #1e293b;
  font-weight: 700;
}

.erp-qualification-grid-table tbody td {
  color: #334155;
}

.erp-qual-name {
  font-weight: 600;
  color: #1e293b;
}

/* ==========================================================
   Student Profile — modern refresh (scoped to .sp-modern)
   Visual-only overrides; no markup/behaviour changes.
   ========================================================== */
.student-profile-page.sp-modern {
  --p-ink: #0f172a;
  --p-ink-2: #334155;
  --p-muted: #64748b;
  --p-line: #e8edf5;
  --p-soft: #f6f8fc;
  --p-blue: #2563eb;
  --p-blue-2: #4f46e5;
  --p-radius: 18px;
  --p-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
  color: var(--p-ink);
  animation: sp-fade 0.25s ease-out;
}

@keyframes sp-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Breadcrumb + title ---------- */
.student-profile-page.sp-modern .profile-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--p-muted);
}

.student-profile-page.sp-modern .profile-breadcrumb button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--p-blue);
  cursor: pointer;
}

.student-profile-page.sp-modern .profile-breadcrumb button:hover { text-decoration: underline; }
.student-profile-page.sp-modern .profile-breadcrumb strong { color: var(--p-ink); font-weight: 700; }

.student-profile-page.sp-modern .profile-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 18px;
}

.student-profile-page.sp-modern .profile-title-row h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--p-ink);
}

.student-profile-page.sp-modern .profile-title-row h1 svg {
  box-sizing: content-box;
  padding: 8px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--p-blue);
}

.student-profile-page.sp-modern .profile-return {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #dbe2ec;
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--p-ink-2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.student-profile-page.sp-modern .profile-return:hover {
  border-color: var(--p-blue);
  background: var(--p-blue);
  color: #fff;
  transform: translateX(-2px);
}

/* ---------- Identity hero ---------- */
.student-profile-page.sp-modern .profile-overview-strip {
  overflow: visible;
  display: grid;
  grid-template-columns: 80px minmax(200px, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(900px 300px at 90% 0%, rgba(129, 140, 248, 0.25), transparent 70%),
    linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #4338ca 100%);
  box-shadow: 0 18px 40px -16px rgba(30, 58, 138, 0.5), 0 4px 14px rgba(0, 0, 0, 0.08);
}

.student-profile-page.sp-modern .profile-overview-strip > .profile-photo {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border: 3px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #dbeafe);
  box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.45);
}

.student-profile-page.sp-modern .profile-overview-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(110, 231, 183, 0.5);
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  color: #a7f3d0 !important;
}

.student-profile-page.sp-modern .profile-overview-label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.3);
}

.student-profile-page.sp-modern .profile-overview-copy h2 {
  margin: 6px 0 2px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.student-profile-page.sp-modern .profile-overview-copy p {
  margin: 0;
  font-size: 13.5px !important;
  font-weight: 500;
  color: #e0e7ff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* 4 Identical Fact / Action Boxes */
.student-profile-page.sp-modern .profile-overview-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  align-items: center;
}

.student-profile-page.sp-modern .profile-overview-facts > span,
.student-profile-page.sp-modern .profile-registry-summary summary {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 135px;
  height: 66px !important;
  box-sizing: border-box !important;
  padding: 8px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.13) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  list-style: none !important;
  outline: none !important;
}

.student-profile-page.sp-modern .profile-overview-facts small {
  display: block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #bfdbfe !important; /* Luminous soft sky blue */
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  margin: 0 0 2px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

.student-profile-page.sp-modern .profile-overview-facts strong {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #ffffff !important; /* Brilliant crisp white */
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
  line-height: 1.25 !important;
}

/* Box 4: Full registry interactive summary */
.student-profile-page.sp-modern .profile-registry-summary {
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 135px;
}

.student-profile-page.sp-modern .profile-registry-summary summary::-webkit-details-marker {
  display: none !important;
}

.student-profile-page.sp-modern .profile-registry-summary summary {
  cursor: pointer !important;
  outline: none !important;
}

.student-profile-page.sp-modern .profile-registry-summary summary:focus,
.student-profile-page.sp-modern .profile-registry-summary summary:focus-visible {
  outline: none !important;
}

.student-profile-page.sp-modern .profile-registry-summary summary:hover,
.student-profile-page.sp-modern .profile-registry-summary[open] summary {
  background: rgba(255, 255, 255, 0.24) !important;
  border-color: rgba(255, 255, 255, 0.48) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
  transform: translateY(-2px);
}

.student-profile-page.sp-modern .registry-summary-title,
.student-profile-page.sp-modern .registry-summary-title span,
.student-profile-page.sp-modern .profile-registry-summary summary span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #ffffff !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
}

.student-profile-page.sp-modern .registry-caret {
  transition: transform 0.2s ease;
  color: #bfdbfe;
  margin-left: auto;
}

.student-profile-page.sp-modern .profile-registry-summary[open] .registry-caret {
  transform: rotate(180deg);
}

/* Full registry dropdown table */
.student-profile-page.sp-modern .profile-registry-summary .profile-summary-table {
  display: none;
}

.student-profile-page.sp-modern .profile-registry-summary[open] .profile-summary-table {
  display: block !important;
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  z-index: 100 !important;
  width: min(520px, 92vw) !important;
  max-height: 65vh !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 50px -10px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
  color: #0f172a !important;
  padding: 0 !important;
  margin: 0 !important;
  animation: registry-dropdown-fade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes registry-dropdown-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.student-profile-page.sp-modern .profile-summary-row {
  background: #fff !important;
  border-bottom: 1px solid var(--p-line);
}

.student-profile-page.sp-modern .profile-summary-row:nth-child(even) { background: #fafbfd !important; }

/* Custom colors from user screenshot for Class Attendance & Hostel Attendance */
.student-profile-page.sp-modern .profile-summary-row.row-class-attendance {
  background: #faeede !important;
  border-bottom: 1px solid #ebd9c5 !important;
}

.student-profile-page.sp-modern .profile-summary-row.row-class-attendance dt {
  color: #333333 !important;
  font-weight: 600 !important;
}

.student-profile-page.sp-modern .profile-summary-row.row-class-attendance dd {
  color: #245494 !important;
  font-weight: 800 !important;
}

.student-profile-page.sp-modern .profile-summary-row.row-hostel-attendance {
  background: #fbf0eb !important;
  border-bottom: 1px solid #ecd9d0 !important;
}

.student-profile-page.sp-modern .profile-summary-row.row-hostel-attendance dt {
  color: #333333 !important;
  font-weight: 600 !important;
}

.student-profile-page.sp-modern .profile-summary-row.row-hostel-attendance dd {
  color: #245494 !important;
  font-weight: 800 !important;
}

.student-profile-page.sp-modern .profile-summary-row dt,
.student-profile-page.sp-modern .profile-summary-row dd {
  padding: 10px 14px;
  font-size: 12.5px;
}

.student-profile-page.sp-modern .profile-summary-row dt { color: var(--p-muted); font-weight: 600; }
.student-profile-page.sp-modern .profile-summary-row dd { color: var(--p-ink); font-weight: 700; }

.student-profile-page.sp-modern .profile-active {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 700;
}

/* ---------- Quick links ---------- */
.student-profile-page.sp-modern .profile-quick-links {
  gap: 12px;
  padding: 0 0 16px;
}

.student-profile-page.sp-modern .profile-quick-links button {
  gap: 10px;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid var(--p-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--p-shadow);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--p-ink-2);
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s;
}

.student-profile-page.sp-modern .profile-quick-links button svg {
  box-sizing: content-box;
  padding: 7px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--p-blue);
  transition: all 0.2s ease;
}

.student-profile-page.sp-modern .profile-quick-links button:nth-child(2) svg { background: #f5f3ff; color: #7c3aed; }
.student-profile-page.sp-modern .profile-quick-links button:nth-child(3) svg { background: #ecfdf5; color: #059669; }
.student-profile-page.sp-modern .profile-quick-links button:nth-child(4) svg { background: #fff7ed; color: #ea580c; }

.student-profile-page.sp-modern .profile-quick-links button:hover {
  transform: translateY(-2px);
  border-color: #c7d7fe;
  background: #fff;
  box-shadow: 0 14px 28px -14px rgba(37, 99, 235, 0.45);
}

.student-profile-page.sp-modern .profile-quick-links button.active {
  border-color: #2563eb !important;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px -8px rgba(37, 99, 235, 0.55) !important;
}

.student-profile-page.sp-modern .profile-quick-links button.active,
.student-profile-page.sp-modern .profile-quick-links button.active span,
.student-profile-page.sp-modern .profile-quick-links button.active .quick-link-text {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.student-profile-page.sp-modern .profile-quick-links button.active svg {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

/* ---------- Tabs (Single line in 100% screen size) ---------- */
.student-profile-page.sp-modern .profile-tabs {
  display: flex;
  flex-wrap: nowrap !important;
  gap: 4px;
  min-height: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 8px;
  border: 1px solid var(--p-line);
  border-radius: 18px 18px 0 0;
  border-bottom: 1px solid var(--p-line);
  background: var(--p-soft);
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  -webkit-overflow-scrolling: touch;
}

.student-profile-page.sp-modern .profile-tabs::-webkit-scrollbar {
  height: 4px;
}

.student-profile-page.sp-modern .profile-tabs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.student-profile-page.sp-modern .profile-tabs button {
  flex: 1 0 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--p-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.student-profile-page.sp-modern .profile-tabs button svg { width: 14px; height: 14px; flex-shrink: 0; }

.student-profile-page.sp-modern .profile-tabs button:hover {
  background: #fff;
  border-color: var(--p-line);
  color: var(--p-ink);
}

.student-profile-page.sp-modern .profile-tabs button.active {
  margin: 0;
  border-color: transparent;
  background: linear-gradient(135deg, var(--p-blue), var(--p-blue-2));
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.65);
}

/* ---------- Detail panel ---------- */
.student-profile-page.sp-modern .profile-detail-panel {
  margin-top: 0;
  overflow: hidden;
  border: 1px solid var(--p-line);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: #fff;
  box-shadow: var(--p-shadow);
}

.student-profile-page.sp-modern .profile-detail-panel.has-embedded-page {
  padding: 24px 22px;
}

/* ---------- College Marks Complete 4-Sided Attractive Border Frame ---------- */
.student-profile-page.sp-modern .profile-detail-panel.has-college-marks-view,
.student-profile-page.sp-modern .profile-detail-panel.has-quick-view {
  margin-top: 16px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.1), 0 3px 12px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
  transition: all 0.25s ease !important;
}

.student-profile-page.sp-modern .profile-detail-panel.has-college-marks-view > h2 {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 16px 24px !important;
  background: #ffffff !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
}

.profile-embedded-marks-wrap {
  padding: 22px 26px 32px !important;
  background: #ffffff !important;
}

.profile-marks-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  flex-wrap: wrap;
  gap: 14px;
}

.profile-marks-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.profile-marks-header-info h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.profile-marks-header-info p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.45;
}

.portal-feature-page#marks {
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 20px !important;
  padding: 24px 26px 32px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 38px -12px rgba(15, 23, 42, 0.09), 0 3px 10px rgba(0, 0, 0, 0.04) !important;
  margin-bottom: 30px !important;
}

.student-profile-page.sp-modern .profile-detail-panel > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--p-line);
  background: #fff;
  font-size: 16px;
  font-weight: 800;
  color: var(--p-ink);
}

.student-profile-page.sp-modern .profile-detail-panel > h2 svg {
  box-sizing: content-box;
  padding: 6px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--p-blue);
}

.student-profile-page.sp-modern .profile-status-message {
  margin: 14px 20px;
  padding: 10px 14px;
  border: 0;
  border-left: 3px solid #f59e0b;
  border-radius: 10px;
  background: #fffbeb;
  font-size: 12.5px;
  color: #92400e;
}

/* Key/value data grid */
.student-profile-page.sp-modern .profile-data-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 8px 20px 16px;
}

.student-profile-page.sp-modern .profile-data-row {
  display: contents;
}

.student-profile-page.sp-modern .profile-data-field,
.student-profile-page.sp-modern .profile-data-row.wide-row .profile-data-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  grid-column: auto;
  min-height: 62px;
  padding: 12px 14px;
  border: 0 !important;
  border-bottom: 1px dashed var(--p-line) !important;
  border-radius: 0;
  transition: background 0.15s ease;
}

.student-profile-page.sp-modern .profile-data-field:hover { background: #f8fafc; }

.student-profile-page.sp-modern .profile-data-field > span,
.student-profile-page.sp-modern .profile-data-field > strong,
.student-profile-page.sp-modern .profile-data-row:nth-child(even) .profile-data-field > strong,
.student-profile-page.sp-modern .profile-data-row.wide-row .profile-data-field > strong {
  display: block;
  padding: 0;
  background: transparent;
  line-height: 1.4;
}

.student-profile-page.sp-modern .profile-data-field > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.student-profile-page.sp-modern .profile-data-field > strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--p-ink);
}

/* Academic tab: single-column key/value list reads better */
.student-profile-page.sp-modern .academic-data-table { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.student-profile-page.sp-modern .academic-status-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Profile-owned tables (qualifications, quick records) */
.student-profile-page.sp-modern .qualification-table-wrap,
.student-profile-page.sp-modern .profile-quick-record .attendance-table-wrap {
  margin: 8px 20px 16px;
  overflow-x: auto;
  border: 1px solid var(--p-line);
  border-radius: 14px;
}

.student-profile-page.sp-modern .qualification-table,
.student-profile-page.sp-modern .profile-quick-record .attendance-summary-table {
  width: 100%;
  border-collapse: collapse;
}

.student-profile-page.sp-modern .qualification-table th,
.student-profile-page.sp-modern .qualification-table td,
.student-profile-page.sp-modern .profile-quick-record .attendance-summary-table th,
.student-profile-page.sp-modern .profile-quick-record .attendance-summary-table td {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--p-line);
  font-size: 13px;
  text-align: left;
  color: var(--p-ink-2);
}

.student-profile-page.sp-modern .qualification-table thead th,
.student-profile-page.sp-modern .profile-quick-record .attendance-summary-table thead th {
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--p-muted);
}

.student-profile-page.sp-modern .qualification-table tbody tr:hover,
.student-profile-page.sp-modern .profile-quick-record .attendance-summary-table tbody tr:hover { background: #f8fafc; }

.student-profile-page.sp-modern .qualification-table tbody tr:last-child th,
.student-profile-page.sp-modern .qualification-table tbody tr:last-child td,
.student-profile-page.sp-modern .profile-quick-record tbody tr:last-child th,
.student-profile-page.sp-modern .profile-quick-record tbody tr:last-child td { border-bottom: 0; }

.student-profile-page.sp-modern .qualification-table tbody th,
.student-profile-page.sp-modern .profile-quick-record tbody th { font-weight: 700; color: var(--p-ink); }

.student-profile-page.sp-modern .profile-quick-record-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 20px;
}

/* Documents */
.student-profile-page.sp-modern .profile-documents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 20px;
}

.student-profile-page.sp-modern .profile-document-row {
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--p-line);
  border-radius: 14px;
  background: #fff;
  transition: all 0.2s ease;
}

.student-profile-page.sp-modern .profile-document-row:hover {
  border-color: #c7d7fe;
  box-shadow: 0 10px 24px -14px rgba(37, 99, 235, 0.5);
}

.student-profile-page.sp-modern .profile-document-row > span {
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--p-ink);
}

.student-profile-page.sp-modern .profile-document-row > span svg {
  box-sizing: content-box;
  padding: 9px;
  border-radius: 11px;
  background: #eff6ff;
  color: var(--p-blue);
}

.student-profile-page.sp-modern .profile-document-row button {
  padding: 8px 16px;
  border: 1px solid #dbe2ec;
  border-radius: 10px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--p-blue);
  transition: all 0.2s ease;
}

.student-profile-page.sp-modern .profile-document-row button:hover {
  border-color: var(--p-blue);
  background: var(--p-blue);
  color: #fff;
}

/* ID card */
.student-profile-page.sp-modern .profile-id-card {
  width: min(420px, calc(100% - 40px));
  margin: 24px auto;
  padding: 24px;
  gap: 8px 16px;
  border: 0;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(400px 160px at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, #1e3a8a, #2563eb 55%, #4f46e5);
  box-shadow: 0 24px 50px -20px rgba(37, 99, 235, 0.7);
}

.student-profile-page.sp-modern .profile-id-mark {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: #fff;
  color: var(--p-blue);
  font-weight: 800;
}

.student-profile-page.sp-modern .profile-id-copy strong { font-size: 14px; color: #fff; letter-spacing: 0.04em; }
.student-profile-page.sp-modern .profile-id-copy small { font-size: 10.5px; color: #c7d2fe; }

.student-profile-page.sp-modern .profile-id-avatar {
  width: 72px;
  height: 84px;
  border: 3px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #dbeafe);
  color: var(--p-blue);
  font-size: 22px;
  font-weight: 800;
}

.student-profile-page.sp-modern .profile-id-name { margin-top: 8px; font-size: 18px; color: #fff; }

.student-profile-page.sp-modern .profile-id-card > span:last-child,
.student-profile-page.sp-modern .profile-id-card > span:nth-last-child(2) {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
}

/* Footer meta */
.student-profile-page.sp-modern .profile-extra-links {
  padding: 14px 4px 0;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.student-profile-page.sp-modern .profile-extra-links svg { color: var(--p-blue); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .student-profile-page.sp-modern .profile-overview-strip {
    grid-template-columns: 84px minmax(0, 1fr) auto;
  }
  .student-profile-page.sp-modern .profile-overview-facts { grid-column: 1 / -1; grid-row: 2; }
  .student-profile-page.sp-modern .academic-data-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .student-profile-page.sp-modern .profile-overview-strip {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 20px;
  }
  .student-profile-page.sp-modern .profile-overview-strip > .profile-photo { width: 60px; height: 60px; font-size: 20px; }
  .student-profile-page.sp-modern .profile-overview-facts { grid-template-columns: 1fr; }
  .student-profile-page.sp-modern .profile-registry-summary { grid-column: 1 / -1; }
  .student-profile-page.sp-modern .profile-quick-links { grid-template-columns: 1fr 1fr; }
  .student-profile-page.sp-modern .profile-data-table,
  .student-profile-page.sp-modern .academic-data-table,
  .student-profile-page.sp-modern .academic-status-table,
  .student-profile-page.sp-modern .profile-documents { grid-template-columns: 1fr; }
}
.attendance-page { animation: fade-in 0.25s ease; }
.attendance-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.att-kicker { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-500); text-transform: uppercase; margin: 0 0 6px; }
.attendance-header h2 { font-size: 22px; font-weight: 700; font-family: 'Outfit', sans-serif; margin: 0 0 4px; color: var(--text-primary); }
.att-caption { font-size: 12px; color: var(--text-secondary); margin: 0; }
.att-overall-badge { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); flex-shrink: 0; }
.att-overall-badge div { display: flex; flex-direction: column; gap: 2px; }
.att-overall-badge strong { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.att-overall-badge small { font-size: 11px; color: var(--text-secondary); }
.att-pct-circle { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 16px; font-weight: 800; font-family: 'Outfit', sans-serif; flex-shrink: 0; }
.att-pct-circle.good { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; border: 2px solid #6ee7b7; }
.att-pct-circle.warn { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; border: 2px solid #fbbf24; }
.att-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.att-stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 10px;
  border-radius: 14px;
  text-align: center;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  min-height: 104px;
}

.att-stat-card::before {
  content: '';
  position: absolute;
  top: -18px;
  right: -18px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.att-stat-card::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: -15px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.att-stat-card:hover {
  transform: translateY(-3px) scale(1.015);
}

.att-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease;
  margin-bottom: 2px;
  position: relative;
  z-index: 2;
}

.att-stat-card:hover .att-stat-icon {
  transform: scale(1.1);
}

.att-stat-card strong {
  font-size: 22px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  line-height: 1.1;
  color: #ffffff !important;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}

.att-stat-card span {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  line-height: 1.2;
}

.att-stat-card small {
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9) !important;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 2;
  line-height: 1.2;
  white-space: nowrap;
}

/* Card 1: Classes Held - Rich Royal Blue Gradient */
.att-stat-card.blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  box-shadow: 0 10px 22px -4px rgba(37, 99, 235, 0.4), 0 4px 8px -2px rgba(37, 99, 235, 0.25) !important;
}
.att-stat-card.blue:hover {
  box-shadow: 0 16px 30px -4px rgba(37, 99, 235, 0.55), 0 6px 12px -2px rgba(37, 99, 235, 0.3) !important;
}

/* Card 2: Attended - Vibrant Emerald Green Gradient */
.att-stat-card.green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 10px 22px -4px rgba(16, 185, 129, 0.4), 0 4px 8px -2px rgba(16, 185, 129, 0.25) !important;
}
.att-stat-card.green:hover {
  box-shadow: 0 16px 30px -4px rgba(16, 185, 129, 0.55), 0 6px 12px -2px rgba(16, 185, 129, 0.3) !important;
}

/* Card 3: Missed - Coral Rose Red Gradient */
.att-stat-card.red {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
  box-shadow: 0 10px 22px -4px rgba(244, 63, 94, 0.4), 0 4px 8px -2px rgba(244, 63, 94, 0.25) !important;
}
.att-stat-card.red:hover {
  box-shadow: 0 16px 30px -4px rgba(244, 63, 94, 0.55), 0 6px 12px -2px rgba(244, 63, 94, 0.3) !important;
}

/* Card 4: Rate - Modern Royal Violet Gradient */
.att-stat-card.purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
  box-shadow: 0 10px 22px -4px rgba(139, 92, 246, 0.4), 0 4px 8px -2px rgba(139, 92, 246, 0.25) !important;
}
.att-stat-card.purple:hover {
  box-shadow: 0 16px 30px -4px rgba(139, 92, 246, 0.55), 0 6px 12px -2px rgba(139, 92, 246, 0.3) !important;
}

.att-stat-card.emerald {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 10px 22px -4px rgba(5, 150, 105, 0.4) !important;
}

.att-stat-card.amber {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  box-shadow: 0 10px 22px -4px rgba(245, 158, 11, 0.4) !important;
}
.att-alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; background: #fef3c7; border: 1px solid #fbbf24; border-radius: var(--radius-md); margin-bottom: 16px; font-size: 12px; }
.att-alert svg { color: #d97706; flex-shrink: 0; margin-top: 1px; }
.att-alert div { display: flex; flex-direction: column; gap: 2px; }
.att-alert strong { font-weight: 700; color: #92400e; font-size: 12px; }
.att-alert span { color: #78350f; }
.att-tabs { display: flex; gap: 4px; background: var(--gray-100); padding: 4px; border-radius: var(--radius-md); margin-bottom: 16px; width: -moz-fit-content; width: fit-content; }
.att-tabs button { padding: 6px 16px; border: 0; background: transparent; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: all var(--transition-base); }
.att-tabs button.active { background: var(--surface-card); color: var(--accent-500); box-shadow: var(--shadow-sm); }
.att-subject-list { display: flex; flex-direction: column; gap: 10px; }
.att-subject-card { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition-base); }
.att-subject-card:hover { box-shadow: var(--shadow-md); }
.att-subject-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.att-subject-meta > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.att-type-tag { display: inline-block; padding: 2px 8px; border-radius: var(--radius-full); font-size: 9px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 2px; }
.att-type-tag.theory { background: #dbeafe; color: #1d4ed8; }
.att-type-tag.lab { background: #d1fae5; color: #065f46; }
.att-type-tag.project { background: #ede9fe; color: #5b21b6; }
.att-subject-meta strong { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.att-subject-meta small { font-size: 11px; color: var(--text-secondary); }
.att-subject-numbers { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.att-pct-badge { padding: 3px 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; }
.att-pct-badge.excellent { background: #d1fae5; color: #065f46; }
.att-pct-badge.good { background: #dbeafe; color: #1d4ed8; }
.att-pct-badge.warn { background: #fef3c7; color: #92400e; }
.att-pct-badge.danger { background: #fee2e2; color: #991b1b; }
.att-subject-numbers small { font-size: 11px; color: var(--text-secondary); }
.att-bar-track { position: relative; height: 8px; background: var(--gray-100); border-radius: var(--radius-full); overflow: visible; }
.att-bar-fill { height: 100%; border-radius: var(--radius-full); transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }
.att-bar-fill.excellent { background: linear-gradient(90deg, #10b981, #34d399); }
.att-bar-fill.good { background: linear-gradient(90deg, var(--accent-500), var(--accent-400)); }
.att-bar-fill.warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.att-bar-fill.danger { background: linear-gradient(90deg, var(--danger-500), #f87171); }
.att-threshold-marker { position: absolute; top: -3px; bottom: -3px; width: 2px; background: rgba(239,68,68,0.5); border-radius: 1px; }
.att-needed-note { display: flex; align-items: center; gap: 4px; margin: 6px 0 0; font-size: 11px; color: var(--danger-500); }
.att-calendar-section { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); }
.att-calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.att-calendar-nav button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--border-default); background: var(--surface-card); border-radius: var(--radius-sm); cursor: pointer; color: var(--text-secondary); }
.att-calendar-nav button:hover { background: var(--gray-100); color: var(--accent-500); }
.att-calendar-nav strong { font-size: 13px; font-weight: 700; }
.att-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px; }
.att-cal-day-label { text-align: center; font-size: 10px; font-weight: 700; color: var(--text-secondary); padding: 4px 0; text-transform: uppercase; }
.att-cal-cell { text-align: center; padding: 6px 4px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; }
.att-cal-cell.present { background: #d1fae5; color: #065f46; }
.att-cal-cell.absent { background: #fee2e2; color: #991b1b; }
.att-cal-cell.holiday { background: #fef3c7; color: #92400e; }
.att-cal-cell.weekend { color: var(--text-muted); }
.att-cal-legend { display: flex; gap: 16px; flex-wrap: wrap; }
.att-cal-legend span { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-secondary); }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.legend-dot.present { background: #10b981; }
.legend-dot.absent { background: var(--danger-500); }
.legend-dot.holiday { background: var(--gold-500); }
.legend-dot.weekend { background: var(--gray-300); }
.att-trend-section { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); }
.att-trend-caption { font-size: 12px; color: var(--text-secondary); margin: 0 0 20px; }
.att-bar-chart { display: flex; align-items: flex-end; gap: 20px; height: 180px; padding-bottom: 24px; border-bottom: 1px solid var(--border-default); margin-bottom: 20px; }
.att-bar-chart-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; height: 100%; }
.att-bar-chart-label { font-size: 11px; font-weight: 700; color: var(--text-primary); }
.att-bar-chart-track { position: relative; flex: 1; width: 100%; background: var(--gray-100); border-radius: 4px 4px 0 0; overflow: visible; display: flex; align-items: flex-end; }
.att-bar-chart-fill { width: 100%; border-radius: 4px 4px 0 0; transition: height 0.6s ease; }
.att-bar-chart-fill.excellent { background: linear-gradient(180deg, #10b981, #34d399); }
.att-bar-chart-fill.good { background: linear-gradient(180deg, var(--accent-500), var(--accent-400)); }
.att-bar-chart-fill.warn { background: linear-gradient(180deg, #f59e0b, #fbbf24); }
.att-bar-chart-threshold { position: absolute; left: -4px; right: -4px; height: 2px; background: rgba(239,68,68,0.4); }
.att-bar-chart-month { font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.att-trend-summary { display: flex; flex-direction: column; gap: 8px; }
.att-trend-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--gray-50); border-radius: var(--radius-sm); }
.att-trend-row strong { font-size: 12px; font-weight: 600; flex: 1; }
.att-delta { display: flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; }
.att-delta.up { color: #059669; }
.att-delta.down { color: var(--danger-500); }

/* Subject Date-Wise Class History Table & Toggle Button */
.att-history-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 4px 10px;
  background: var(--gray-100, #f1f5f9);
  border: 1px solid var(--border-default, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-600, #2563eb);
  cursor: pointer;
  transition: all 0.2s ease;
}

.att-history-toggle:hover {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.att-history-toggle.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
}

.att-history-container {
  margin-top: 14px;
  padding: 14px;
  background: var(--gray-50, #f8fafc);
  border: 1px solid var(--border-default, #e2e8f0);
  border-radius: var(--radius-md, 8px);
}

.att-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.att-history-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.att-history-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
}

.att-history-table-wrapper {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--border-default, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  background: var(--surface-card, #ffffff);
}

.att-history-table-wrapper::-webkit-scrollbar {
  width: 6px;
}
.att-history-table-wrapper::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.att-history-table-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.att-history-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.att-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.att-history-table th {
  position: sticky;
  top: 0;
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  z-index: 2;
}

.att-history-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-default, #f1f5f9);
  color: var(--text-primary, #0f172a);
}

.att-history-table tr:last-child td {
  border-bottom: none;
}

.att-history-table tr:hover {
  background: rgba(241, 245, 249, 0.6);
}

.att-history-table .sl-col {
  font-weight: 600;
  color: var(--text-secondary, #64748b);
}

.att-history-table .date-col {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.att-history-table .date-col svg {
  color: var(--text-muted, #94a3b8);
}

.att-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.att-status-badge.present {
  background: #d1fae5;
  color: #065f46;
}

.att-status-badge.absent {
  background: #fee2e2;
  color: #991b1b;
}

.att-history-table tr.row-absent {
  background: rgba(254, 226, 226, 0.25);
}

@media (max-width: 640px) {
  .att-summary-strip { grid-template-columns: repeat(2, 1fr); }
  .attendance-header { flex-direction: column; }
}

/* FacultyClassSelector.css - Premium Modern Class Selection UI */

.faculty-class-selector-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.2s ease;
}

.fcs-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.fcs-module-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.fcs-module-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0.2rem 0 0 0;
}

.fcs-actions-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Quick Assignment Switcher Pills */
.fcs-pills-scroll-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.fcs-pills-scroll-container::-webkit-scrollbar {
  height: 4px;
}

.fcs-pills-scroll-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.fcs-pills-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  white-space: nowrap;
}

.fcs-sparkle-icon {
  color: #2563eb;
}

.fcs-pills-track {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.fcs-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fcs-pill-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.fcs-pill-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
}

.fcs-pill-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fcs-pill-btn.active .fcs-pill-code {
  color: #dbeafe;
}

.fcs-pill-details {
  opacity: 0.9;
}

.fcs-pill-count {
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
}

.fcs-pill-btn.active .fcs-pill-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.fcs-consolidated-pill {
  background: #fdf4ff;
  border-color: #f0abfc;
  color: #86198f;
}

.fcs-consolidated-pill:hover {
  background: #fae8ff;
  border-color: #e879f9;
  color: #701a75;
}

.fcs-consolidated-pill.active {
  background: linear-gradient(135deg, #a21caf, #7e22ce);
  border-color: #7e22ce;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(162, 28, 175, 0.3);
}

/* Filter Row: Dependent Dropdowns */
.fcs-filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  align-items: flex-end;
}

.fcs-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fcs-subject-field {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .fcs-subject-field {
    grid-column: span 1.5;
  }
}

.fcs-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #475569;
}

.fcs-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.fcs-select {
  width: 100%;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.fcs-select:hover:not(:disabled) {
  background: #ffffff;
  border-color: #94a3b8;
}

.fcs-select:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.fcs-select:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.75;
}

.fcs-chevron {
  position: absolute;
  right: 0.75rem;
  pointer-events: none;
  color: #64748b;
}

/* Active Academic Context Status Banner */
.fcs-context-banner {
  background: linear-gradient(90deg, #f0f7ff 0%, #f8fafc 100%);
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  transition: all 0.25s ease;
}

.fcs-context-banner.consolidated {
  background: linear-gradient(90deg, #faf5ff 0%, #fdf4ff 100%);
  border-color: #f5d0fe;
}

.fcs-context-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.fcs-context-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fcs-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: fcsPulse 2s infinite;
}

.fcs-context-banner.consolidated .fcs-pulse-dot {
  background: #a855f7;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.25);
}

@keyframes fcsPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.fcs-context-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e3a8a;
}

.fcs-context-banner.consolidated .fcs-context-heading {
  color: #6b21a8;
}

.fcs-context-meta {
  font-size: 0.74rem;
  color: #475569;
}

.fcs-context-meta strong {
  color: #1e293b;
}

.fcs-context-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fcs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
}

.fcs-badge-students {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.fcs-badge-warning {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.fcs-badge-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.fcs-badge-faculty {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .faculty-class-selector-card {
    padding: 1rem;
  }
  .fcs-filter-row {
    grid-template-columns: 1fr;
  }
  .fcs-context-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ==========================================================
   Marks Management Module Stylesheet (scoped to .mm-root-shell)
   Modern, ultra-clean ERP aesthetic matching Apna Campus design
   ========================================================== */

:root,
.mm-root-shell,
.mm-modal-backdrop,
.mm-modal-window {
  --mm-ink: #0f172a;
  --mm-ink-secondary: #334155;
  --mm-muted: #64748b;
  --mm-border: #e2e8f0;
  --mm-border-subtle: #f1f5f9;
  --mm-bg-soft: #f8fafc;
  --mm-card: #ffffff;
  --mm-blue: #2563eb;
  --mm-blue-deep: #1d4ed8;
  --mm-blue-soft: #eff6ff;
  --mm-green: #059669;
  --mm-green-soft: #ecfdf5;
  --mm-amber: #d97706;
  --mm-amber-soft: #fffbeb;
  --mm-purple: #7c3aed;
  --mm-purple-soft: #f5f3ff;
  --mm-radius-lg: 18px;
  --mm-radius-md: 12px;
  --mm-radius-sm: 8px;
  --mm-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
}

.mm-root-shell {
  color: var(--mm-ink);
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: mm-fade-in 0.3s ease;
  position: relative;
}

@keyframes mm-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Top Role Bar & Module Identity ── */
.mm-top-role-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: var(--mm-card);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-lg);
  box-shadow: var(--mm-shadow);
  flex-wrap: wrap;
}

.mm-role-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mm-module-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mm-blue), #4f46e5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -6px rgba(37, 99, 235, 0.5);
  flex-shrink: 0;
}

.mm-module-title {
  margin: 0 0 2px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mm-ink);
}

.mm-module-subtitle {
  margin: 0;
  font-size: 12px;
  color: var(--mm-muted);
}

.mm-role-switcher {
  display: flex;
  align-items: center;
  background: var(--mm-bg-soft);
  padding: 4px;
  border-radius: var(--mm-radius-md);
  border: 1px solid var(--mm-border);
  gap: 4px;
}

.mm-role-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--mm-radius-sm);
  border: none;
  background: transparent;
  color: var(--mm-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mm-role-btn:hover {
  color: var(--mm-ink);
}

.mm-role-btn.active {
  background: var(--mm-card);
  color: var(--mm-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-weight: 700;
}

/* ── Section 1: KPI Statistics Overview Grid ── */
.mm-stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.mm-kpi-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--mm-card);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-md);
  box-shadow: var(--mm-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mm-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.mm-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mm-kpi-card.tone-blue .mm-kpi-icon { background: #eff6ff; color: #2563eb; }
.mm-kpi-card.tone-purple .mm-kpi-icon { background: #f5f3ff; color: #7c3aed; }
.mm-kpi-card.tone-green .mm-kpi-icon { background: #ecfdf5; color: #059669; }
.mm-kpi-card.tone-amber .mm-kpi-icon { background: #fffbeb; color: #d97706; }
.mm-kpi-card.tone-teal .mm-kpi-icon { background: #f0fdfa; color: #0d9488; }
.mm-kpi-card.tone-indigo .mm-kpi-icon { background: #eef2ff; color: #4f46e5; }

.mm-kpi-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--mm-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mm-kpi-value {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--mm-ink);
  line-height: 1.15;
  margin: 3px 0 2px;
}

.mm-kpi-sub {
  display: block;
  font-size: 11px;
  color: var(--mm-muted);
  white-space: nowrap;
}

/* ── Section 1 & 8: Global Filter Bar ── */
.mm-filter-bar-card {
  background: var(--mm-card);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-lg);
  padding: 16px 20px;
  box-shadow: var(--mm-shadow);
}

.mm-filter-bar-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: flex-end;
}

.mm-select-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--mm-ink-secondary);
  margin-bottom: 6px;
}

.mm-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.mm-select-wrap select {
  width: 100%;
  padding: 9px 34px 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mm-ink);
  background: var(--mm-bg-soft);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-sm);
  outline: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mm-select-wrap select:focus {
  border-color: var(--mm-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.mm-select-arrow {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: var(--mm-muted);
}

.mm-filter-reset-wrap {
  display: flex;
  align-items: flex-end;
}

/* ── Buttons & Standard Utilities ── */
.mm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--mm-radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mm-btn-primary {
  background: linear-gradient(135deg, var(--mm-blue), var(--mm-blue-deep));
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.mm-btn-primary:hover {
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.mm-btn-secondary {
  background: var(--mm-bg-soft);
  border-color: var(--mm-border);
  color: var(--mm-ink-secondary);
}

.mm-btn-secondary:hover {
  background: #e2e8f0;
  color: var(--mm-ink);
}

.mm-btn-outline {
  background: #fff;
  border-color: var(--mm-border);
  color: var(--mm-ink-secondary);
}

.mm-btn-outline:hover {
  border-color: var(--mm-blue);
  color: var(--mm-blue);
  background: var(--mm-blue-soft);
}

.mm-btn-ghost {
  background: transparent;
  border-color: var(--mm-border);
  color: var(--mm-muted);
}

.mm-btn-ghost:hover {
  color: var(--mm-ink);
  background: var(--mm-bg-soft);
}

/* ── Module View Navigation Tabs ── */
.mm-view-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--mm-border);
  padding-bottom: 2px;
  overflow-x: auto;
}

.mm-vnav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  background: transparent;
  color: var(--mm-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mm-vnav-btn:hover {
  color: var(--mm-blue);
}

.mm-vnav-btn.active {
  color: var(--mm-blue);
  border-bottom-color: var(--mm-blue);
  font-weight: 700;
}

/* ── Teacher Overview Section 11 ── */
.mm-teacher-overview {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mm-welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: var(--mm-radius-lg);
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 16px 36px -12px rgba(37, 99, 235, 0.45);
}

.mm-welcome-copy {
  max-width: 620px;
}

.mm-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #dbeafe;
  margin-bottom: 12px;
}

.mm-welcome-copy h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}

.mm-welcome-copy p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 18px;
  line-height: 1.5;
}

.mm-welcome-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mm-academic-pill {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.mm-welcome-metrics {
  display: flex;
  gap: 12px;
}

.mm-metric-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--mm-radius-md);
  color: #fff;
}

.mm-metric-box strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.mm-metric-box span {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 3px;
}

.mm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 -8px;
}

.mm-section-head h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 3px;
  color: var(--mm-ink);
}

.mm-section-head p {
  font-size: 12.5px;
  color: var(--mm-muted);
  margin: 0;
}

.mm-sem-dropdown-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mm-sem-select-label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.mm-sem-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.mm-sem-select-box {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background: #f8fafc url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 10px center;
  background-size: 14px;
  padding: 6px 32px 6px 12px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.mm-sem-select-box:hover {
  border-color: #94a3b8;
  background-color: #ffffff;
}

.mm-sem-select-box:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ── 6 Subject Cards Grid ── */
.mm-subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mm-subject-card {
  background: var(--mm-card);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-lg);
  padding: 20px;
  box-shadow: var(--mm-shadow);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.mm-subject-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.mm-subject-card.is-selected {
  border-color: var(--mm-blue);
  box-shadow: 0 0 0 2px var(--mm-blue-soft), 0 8px 24px rgba(37, 99, 235, 0.15);
}

.mm-subject-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mm-subject-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mm-subject-icon.tone-blue { background: #eff6ff; color: #2563eb; }
.mm-subject-icon.tone-green { background: #ecfdf5; color: #059669; }
.mm-subject-icon.tone-purple { background: #f5f3ff; color: #7c3aed; }
.mm-subject-icon.tone-amber { background: #fffbeb; color: #d97706; }

.mm-subject-code-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mm-subj-code {
  font-size: 13px;
  font-weight: 800;
  color: var(--mm-ink);
}

.mm-subj-credits {
  font-size: 11px;
  color: var(--mm-muted);
}

.mm-subject-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--mm-ink);
  margin: 0 0 4px;
}

.mm-subject-meta {
  font-size: 12px;
  color: var(--mm-muted);
  margin: 0 0 16px;
}

.mm-subject-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mm-ink-secondary);
  font-weight: 600;
  margin-bottom: 8px;
}

.mm-stat-mini {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mm-progress-track {
  height: 7px;
  background: var(--mm-border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

.mm-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.mm-progress-fill.tone-green { background: #10b981; }
.mm-progress-fill.tone-blue { background: #2563eb; }
.mm-progress-fill.tone-purple { background: #7c3aed; }
.mm-progress-fill.tone-amber { background: #f59e0b; }

.mm-subject-footer {
  margin-top: auto;
}

.mm-btn-manage {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px;
  border-radius: var(--mm-radius-sm);
  border: 1px solid var(--mm-border);
  background: var(--mm-bg-soft);
  color: var(--mm-ink-secondary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mm-btn-manage:hover,
.mm-btn-manage.active {
  background: var(--mm-blue);
  color: #fff;
  border-color: var(--mm-blue);
}

/* ── Section 2 & 3: Teacher Marks Entry Table View ── */
.mm-teacher-table-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--mm-card);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-lg);
  padding: 20px;
  box-shadow: var(--mm-shadow);
}

.mm-tabs-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--mm-border);
  padding-bottom: 14px;
}

.mm-assessment-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.mm-tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--mm-border);
  background: #fff;
  color: var(--mm-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mm-tab-btn:hover {
  background: var(--mm-bg-soft);
  color: var(--mm-ink);
}

.mm-tab-btn.active {
  background: var(--mm-blue);
  color: #fff;
  border-color: var(--mm-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.mm-tab-count {
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
}

.mm-tab-btn.active .mm-tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Sub-chips for Quiz 1 to 6 / Mod 1 to 2 */
.mm-sub-chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.mm-sub-chip-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--mm-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mm-sub-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--mm-radius-sm);
  background: var(--mm-bg-soft);
  border: 1px solid var(--mm-border);
  color: var(--mm-ink);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mm-sub-chip:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--mm-blue);
}

.mm-sub-chip small {
  color: var(--mm-muted);
}

.mm-dot-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.mm-dot-indicator.status-finalized { background: #10b981; }
.mm-dot-indicator.status-draft { background: #f59e0b; }
.mm-dot-indicator.status-pending { background: #ef4444; }

/* Control bar */
.mm-table-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mm-controls-left,
.mm-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mm-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--mm-bg-soft);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-sm);
  width: 280px;
}

.mm-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--mm-ink);
  width: 100%;
}

.mm-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mm-muted);
}

.mm-select-inline {
  padding: 6px 10px;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-sm);
  background: #fff;
  font-size: 12.5px;
  color: var(--mm-ink);
  outline: none;
}

/* ── Matrix Table with Sticky Columns and Header ── */
.mm-matrix-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-md);
  max-height: 580px;
  position: relative;
  background: #fff;
}

.mm-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  text-align: left;
}

.mm-data-table thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: var(--mm-ink-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid var(--mm-border);
  white-space: nowrap;
  z-index: 10;
}

.mm-data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--mm-border-subtle);
  color: var(--mm-ink);
  vertical-align: middle;
}

.mm-data-table tbody tr:hover td {
  background: rgba(241, 245, 249, 0.7);
}

/* Sticky column styling */
.sticky-col {
  position: sticky !important;
  background: #ffffff;
}

.mm-data-table thead th.sticky-col {
  background: #f8fafc !important;
}

.mm-data-table tbody tr:hover td.sticky-col {
  background: #f1f5f9 !important;
}

.col-roll {
  width: 60px;
  min-width: 60px;
  border-right: 1px solid var(--mm-border-subtle);
}

.col-name {
  width: 220px;
  min-width: 220px;
  border-right: 2px solid var(--mm-border);
  box-shadow: 4px 0 6px -3px rgba(0, 0, 0, 0.04);
}

.mm-roll-text {
  font-weight: 800;
  color: var(--mm-muted);
}

.mm-student-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mm-mini-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--mm-blue);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mm-name-text {
  display: block;
  font-size: 13px;
  color: var(--mm-ink);
  white-space: nowrap;
}

.mm-sub-reg {
  display: block;
  font-size: 11px;
  color: var(--mm-muted);
}

/* Interactive assessment column headers */
.mm-col-header-interactive {
  cursor: pointer;
  padding: 4px;
  border-radius: var(--mm-radius-sm);
  transition: all 0.15s ease;
}

.mm-col-header-interactive:hover {
  background: #e2e8f0;
  color: var(--mm-blue);
}

.mm-th-top {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mm-th-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--mm-muted);
  margin-top: 1px;
}

.mm-th-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.mm-th-status-dot.status-finalized { background: #10b981; }
.mm-th-status-dot.status-draft { background: #f59e0b; }
.mm-th-status-dot.status-pending { background: #ef4444; }

/* Inline editable cells in matrix */
.col-assessment-cell {
  text-align: center;
  padding: 4px 6px !important;
}

.mm-matrix-input {
  width: 54px;
  height: 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--mm-ink);
  outline: none;
  transition: all 0.15s ease;
}

.mm-matrix-input:hover {
  background: #fff;
  border-color: #cbd5e1;
}

.mm-matrix-input:focus {
  background: #fff;
  border-color: var(--mm-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.mm-matrix-input.empty {
  color: #64748b;
  font-weight: 500;
  background: rgba(241, 245, 249, 0.4);
}

.mm-matrix-input.high {
  color: #047857;
}

.mm-matrix-input.low {
  color: #b91c1c;
}

/* Total & Pct columns */
.col-total {
  width: 90px;
  border-left: 2px solid var(--mm-border);
}

.mm-cell-total {
  font-size: 14px;
  font-weight: 800;
  color: var(--mm-ink);
}

.mm-cell-max {
  color: var(--mm-muted);
  font-size: 11px;
}

.col-pct {
  width: 90px;
}

.mm-pct-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.mm-pct-badge.high { background: #d1fae5; color: #065f46; }
.mm-pct-badge.mid { background: #eff6ff; color: #1e40af; }
.mm-pct-badge.low { background: #fee2e2; color: #991b1b; }

/* Table legend & guidance footer */
.mm-table-legend-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mm-muted);
  padding-top: 4px;
  flex-wrap: wrap;
  gap: 12px;
}

.mm-legend-strip {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mm-legend-label {
  font-weight: 700;
  color: var(--mm-ink-secondary);
}

.mm-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mm-legend-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mm-legend-item .dot.status-finalized { background: #10b981; }
.mm-legend-item .dot.status-draft { background: #f59e0b; }
.mm-legend-item .dot.status-pending { background: #ef4444; }

.mm-footer-tips {
  display: flex;
  align-items: center;
  gap: 6px;
  font-style: italic;
}

/* ── Section 4: Individual Assessment Page ── */
.mm-indiv-assessment {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--mm-card);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-lg);
  padding: 24px;
  box-shadow: var(--mm-shadow);
}

.mm-indiv-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mm-assessment-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mm-btn-icon-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-sm);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--mm-ink-secondary);
  cursor: pointer;
}

.mm-btn-icon-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mm-current-nav-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--mm-ink);
}

.mm-indiv-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--mm-bg-soft);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-md);
  flex-wrap: wrap;
}

.mm-indiv-title-block h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 6px 0 10px;
  color: var(--mm-ink);
}

.mm-subject-pill-tag {
  font-size: 12px;
  color: var(--mm-muted);
}

.mm-subject-pill-tag strong {
  color: var(--mm-ink);
}

.mm-indiv-meta-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mm-badge-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--mm-border);
  font-size: 12px;
  color: var(--mm-ink-secondary);
}

.mm-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.mm-badge-status.status-finalized { background: #d1fae5; color: #065f46; }
.mm-badge-status.status-draft { background: #fef3c7; color: #92400e; }
.mm-badge-status.status-pending { background: #fee2e2; color: #991b1b; }

.mm-indiv-stats-strip {
  display: flex;
  gap: 12px;
}

.mm-stat-box {
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-sm);
  text-align: center;
  min-width: 90px;
}

.mm-stat-box span {
  font-size: 11px;
  color: var(--mm-muted);
  font-weight: 600;
}

.mm-stat-box strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--mm-ink);
  margin-top: 2px;
}

.mm-stat-box strong.text-amber { color: #d97706; }
.mm-stat-box strong.text-green { color: #059669; }

/* Individual Assessment Toolbar */
.mm-indiv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mm-status-filter-pills {
  display: flex;
  gap: 6px;
}

.mm-pill-filter {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--mm-border);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--mm-muted);
  cursor: pointer;
}

.mm-pill-filter.active {
  background: var(--mm-ink);
  color: #fff;
  border-color: var(--mm-ink);
}

.mm-action-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Individual table */
.mm-indiv-table td {
  padding: 12px;
}

.mm-bold-roll {
  font-size: 14px;
  font-weight: 800;
  color: var(--mm-ink);
}

.mm-section-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  background: var(--mm-bg-soft);
  border-radius: 4px;
  color: var(--mm-muted);
}

.mm-input-cell-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mm-mark-input {
  width: 70px;
  height: 38px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  border: 2px solid var(--mm-border);
  border-radius: var(--mm-radius-sm);
  background: #fff;
  color: var(--mm-ink);
  outline: none;
  transition: all 0.2s ease;
}

.mm-mark-input:focus {
  border-color: var(--mm-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.mm-mark-input.empty {
  border-style: dashed;
  background: var(--mm-bg-soft);
}

.mm-max-sub {
  font-size: 12px;
  color: var(--mm-muted);
}

.mm-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.mm-status-pill.success {
  background: #d1fae5;
  color: #047857;
}

.mm-status-pill.pending {
  background: #fee2e2;
  color: #b91c1c;
}

.mm-bottom-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--mm-bg-soft);
  border-radius: var(--mm-radius-md);
  border: 1px solid var(--mm-border);
  flex-wrap: wrap;
  gap: 12px;
}

.mm-bottom-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--mm-muted);
}

.mm-bottom-btns {
  display: flex;
  gap: 10px;
}

/* ── Section 5 & 6: Student Marks View ── */
.mm-student-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mm-student-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-radius: var(--mm-radius-lg);
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 16px 36px -12px rgba(37, 99, 235, 0.45);
  flex-wrap: wrap;
}

.mm-student-hero-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mm-student-avatar-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  color: var(--mm-blue);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.mm-student-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #c7d2fe;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.mm-student-hero-details h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #fff;
}

.mm-student-hero-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.mm-student-overall-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--mm-radius-md);
}

.mm-overall-score-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--mm-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.mm-overall-score-circle strong {
  font-size: 15px;
  font-weight: 800;
}

.mm-overall-score-circle small {
  font-size: 9px;
  color: var(--mm-muted);
}

.mm-overall-copy strong {
  display: block;
  font-size: 14px;
  color: #fff;
}

.mm-overall-copy span {
  display: block;
  font-size: 11.5px;
  color: #c7d2fe;
}

/* 6 Student Subject Cards */
.mm-student-subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mm-student-card {
  background: var(--mm-card);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-lg);
  padding: 22px;
  box-shadow: var(--mm-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.2s ease;
}

.mm-student-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.1);
}

.mm-student-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.mm-card-code {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--mm-blue);
  display: block;
  margin-bottom: 2px;
}

.mm-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--mm-ink);
  margin: 0 0 4px;
}

.mm-card-faculty {
  font-size: 12px;
  color: var(--mm-muted);
}

.mm-badge-pct {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.mm-badge-pct.tone-green { background: #d1fae5; color: #065f46; }
.mm-badge-pct.tone-blue { background: #eff6ff; color: #1e40af; }
.mm-badge-pct.tone-amber { background: #fef3c7; color: #92400e; }
.mm-badge-pct.tone-purple { background: #f5f3ff; color: #6b21a8; }
.mm-badge-pct.tone-neutral { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

.mm-score-stat-line {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 8px;
}

.mm-score-stat-line span {
  color: var(--mm-muted);
}

.mm-score-stat-line strong {
  color: var(--mm-ink);
}

.mm-progress-bar-wrapper {
  margin-bottom: 12px;
}

.mm-progress-bar-bg {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.mm-progress-bar-bg.mini {
  height: 6px;
}

.mm-progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.mm-progress-bar-fill.tone-green { background: linear-gradient(90deg, #10b981, #059669); }
.mm-progress-bar-fill.tone-blue { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.mm-progress-bar-fill.tone-purple { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
.mm-progress-bar-fill.tone-amber { background: linear-gradient(90deg, #f59e0b, #d97706); }

.mm-mini-indicators {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--mm-muted);
  flex-wrap: wrap;
}

.mm-mini-indicators span {
  background: var(--mm-bg-soft);
  padding: 3px 8px;
  border-radius: 4px;
}

.mm-btn-view-details {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: var(--mm-radius-sm);
  background: #fff;
  border: 1px solid var(--mm-border);
  color: var(--mm-ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mm-btn-view-details:hover {
  background: var(--mm-blue);
  color: #fff;
  border-color: var(--mm-blue);
}

/* ── Section 6: Subject Details Breakdown Modal ── */
.mm-modal-backdrop,
.mm-root-shell.mm-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  margin: 0 !important;
  gap: 0 !important;
}

.mm-modal-window {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 65px -12px rgba(15, 23, 42, 0.35);
  border: 1px solid #e2e8f0;
  width: 100%;
  max-width: 740px;
  max-height: min(88vh, 840px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: auto !important;
  animation: mm-modal-pop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.mm-subject-details-modal {
  max-width: 720px;
}

@keyframes mm-modal-pop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.mm-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.mm-modal-title-stack h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 6px 0 4px;
  color: #0f172a;
}

.mm-modal-title-stack p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.mm-pill-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 11.5px;
  font-weight: 700;
}

.mm-modal-close-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mm-modal-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  transform: rotate(90deg);
}

.mm-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #f8fafc;
}

.mm-breakdown-section {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.mm-breakdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.mm-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mm-icon-wrap.blue { background: #eff6ff; color: #2563eb; }
.mm-icon-wrap.green { background: #ecfdf5; color: #059669; }
.mm-icon-wrap.purple { background: #f5f3ff; color: #7c3aed; }
.mm-icon-wrap.amber { background: #fffbeb; color: #d97706; }
.mm-icon-wrap.teal { background: #f0fdfa; color: #0d9488; }

.mm-breakdown-header h4 {
  font-size: 14.5px;
  font-weight: 800;
  margin: 0;
  color: #0f172a;
}

.mm-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mm-breakdown-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.mm-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13.5px;
  transition: all 0.15s ease;
}

.mm-breakdown-row:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.mm-row-label {
  color: #334155;
  font-weight: 600;
}

.mm-row-val {
  font-weight: 800;
  color: #0f172a;
  font-size: 14.5px;
}

.mm-row-val small {
  font-weight: 500;
  color: #64748b;
  font-size: 12.5px;
}

.mm-overall-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #ffffff;
  border: 1.5px solid #dbeafe;
  border-radius: 14px;
  margin-top: 4px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.mm-overall-summary-card span {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.mm-overall-summary-card h3 {
  font-size: 28px;
  font-weight: 900;
  color: #2563eb;
  margin: 3px 0;
}

.mm-overall-summary-card small {
  font-size: 13px;
  color: #475569;
  font-weight: 500;
}

.mm-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
  border: none !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
}

.mm-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
  transform: translateY(-1px) !important;
}

/* ── Section 7: Marks Analytics ── */
.mm-analytics-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mm-analytics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--mm-card);
  padding: 20px 24px;
  border-radius: var(--mm-radius-lg);
  border: 1px solid var(--mm-border);
  box-shadow: var(--mm-shadow);
  flex-wrap: wrap;
}

.mm-analytics-header h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 3px;
  color: var(--mm-ink);
}

.mm-analytics-header p {
  font-size: 12.5px;
  color: var(--mm-muted);
  margin: 0;
}

.mm-analytics-subject-select {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mm-analytics-subject-select label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mm-ink-secondary);
}

.mm-select {
  padding: 8px 14px;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-sm);
  background: var(--mm-bg-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--mm-ink);
  outline: none;
}

.mm-analytics-card {
  background: var(--mm-card);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-lg);
  padding: 22px 24px;
  box-shadow: var(--mm-shadow);
}

.mm-card-head-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mm-card-head-simple h4 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 3px;
  color: var(--mm-ink);
}

.mm-card-head-simple p {
  font-size: 12px;
  color: var(--mm-muted);
  margin: 0;
}

.mm-pill-badge {
  font-size: 11.5px;
  font-weight: 700;
  background: var(--mm-bg-soft);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--mm-muted);
  border: 1px solid var(--mm-border);
}

/* Horizontal subject comparison bars */
.mm-chart-bars-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mm-bar-item {
  cursor: pointer;
  padding: 8px;
  border-radius: var(--mm-radius-sm);
  transition: all 0.15s ease;
}

.mm-bar-item:hover,
.mm-bar-item.highlighted {
  background: var(--mm-bg-soft);
}

.mm-bar-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.mm-bar-labels strong {
  width: 50px;
  font-weight: 800;
  color: var(--mm-ink);
}

.mm-bar-full-name {
  flex: 1;
  color: var(--mm-muted);
  font-size: 12px;
  margin-left: 8px;
}

.mm-bar-pct-val {
  font-weight: 800;
  color: var(--mm-ink);
}

.mm-bar-track-outer {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.mm-bar-track-inner {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.mm-analytics-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Category cards grid */
.mm-cat-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mm-cat-card {
  padding: 12px 14px;
  background: var(--mm-bg-soft);
  border-radius: var(--mm-radius-sm);
  border: 1px solid var(--mm-border-subtle);
}

.mm-cat-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.mm-cat-sub {
  font-size: 11px;
  color: var(--mm-muted);
  display: block;
  margin-top: 6px;
}

/* Grade cohort list */
.mm-grade-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mm-grade-row {
  display: grid;
  grid-template-columns: 170px 1fr 60px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.mm-grade-label-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mm-grade-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mm-grade-name {
  font-weight: 700;
  color: var(--mm-ink);
}

.mm-grade-desc {
  color: var(--mm-muted);
}

.mm-grade-counts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.mm-grade-counts strong {
  font-weight: 800;
  color: var(--mm-ink);
}

.mm-grade-counts small {
  color: var(--mm-muted);
}

/* Leaderboard */
.mm-leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.mm-leaderboard-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 14px;
  background: var(--mm-bg-soft);
  border: 1px solid var(--mm-border-subtle);
  border-radius: var(--mm-radius-md);
  gap: 8px;
}

.mm-rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 800;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 6px;
  border-radius: 4px;
}

.mm-leaderboard-card .mm-mini-avatar {
  width: 44px;
  height: 44px;
  font-size: 14px;
  margin-top: 4px;
}

.mm-lead-info strong {
  display: block;
  font-size: 13px;
  color: var(--mm-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.mm-lead-info small {
  font-size: 11px;
  color: var(--mm-muted);
}

.mm-lead-score {
  margin-top: 2px;
}

.mm-lead-pct {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--mm-blue);
  line-height: 1;
}

.mm-lead-score small {
  font-size: 10px;
  color: var(--mm-muted);
}

/* ── Section 9: Bulk Upload Modal ── */
.mm-upload-modal {
  max-width: 680px;
}

.mm-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 24px;
  border: 2px dashed #cbd5e1;
  border-radius: var(--mm-radius-lg);
  background: #f8fafc;
  text-align: center;
  transition: all 0.2s ease;
}

.mm-dropzone:hover {
  border-color: var(--mm-blue);
  background: #eff6ff;
}

.mm-dropzone-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--mm-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.mm-dropzone h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--mm-ink);
}

.mm-dropzone p {
  font-size: 12.5px;
  color: var(--mm-muted);
  margin: 0 0 18px;
}

.mm-dropzone-actions {
  display: flex;
  gap: 12px;
}

.mm-btn-file {
  position: relative;
  cursor: pointer;
}

.mm-template-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-md);
  margin-top: 14px;
  gap: 14px;
}

.mm-template-callout strong {
  display: block;
  font-size: 13px;
  color: var(--mm-ink);
}

.mm-template-callout p {
  font-size: 12px;
  color: var(--mm-muted);
  margin: 2px 0 0;
}

/* Import Preview */
.mm-import-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mm-file-meta-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--mm-bg-soft);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-sm);
  font-size: 12.5px;
  color: var(--mm-ink);
}

.mm-link-btn {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--mm-blue);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.mm-preview-summary-card {
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-md);
  padding: 18px;
  background: #fff;
}

.mm-preview-summary-card h4 {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--mm-ink);
}

.mm-preview-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.mm-pstat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--mm-radius-sm);
}

.mm-pstat.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.mm-pstat.warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.mm-pstat strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.mm-pstat span {
  display: block;
  font-size: 11px;
}

.mm-error-toggle-row {
  display: flex;
  justify-content: flex-end;
}

.mm-btn-error-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #d97706;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.mm-errors-list {
  margin-top: 12px;
}

.mm-errors-table-wrap {
  border: 1px solid #fed7aa;
  border-radius: var(--mm-radius-sm);
  overflow-x: auto;
  max-height: 160px;
}

.mm-errors-table {
  width: 100%;
  font-size: 11.5px;
  border-collapse: collapse;
}

.mm-errors-table th {
  background: #fff7ed;
  color: #9a3412;
  padding: 6px 10px;
  text-align: left;
}

.mm-errors-table td {
  padding: 6px 10px;
  border-top: 1px solid #ffedd5;
}

.mm-error-msg {
  color: #c2410c;
  font-weight: 600;
}

.mm-error-note {
  display: block;
  font-size: 11px;
  color: var(--mm-muted);
  margin-top: 8px;
}

.mm-modal-actions-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
}

/* ── Toast Alert ── */
.mm-toast-alert {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--mm-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  font-size: 13.5px;
  font-weight: 700;
  z-index: 2000;
  animation: mm-toast-slide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mm-toast-slide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.mm-toast-success {
  background: #065f46;
  color: #ffffff;
}

.mm-toast-info {
  background: #1e3a8a;
  color: #ffffff;
}

/* ── Responsive Queries ── */
@media (max-width: 1200px) {
  .mm-stats-overview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mm-subjects-grid,
  .mm-student-subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mm-filter-bar-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mm-analytics-two-col {
    grid-template-columns: 1fr;
  }
  .mm-leaderboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .mm-top-role-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .mm-role-switcher {
    width: 100%;
  }
  .mm-role-btn {
    flex: 1;
    justify-content: center;
  }
  .mm-stats-overview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mm-subjects-grid,
  .mm-student-subjects-grid {
    grid-template-columns: 1fr;
  }
  .mm-filter-bar-grid {
    grid-template-columns: 1fr;
  }
  .mm-welcome-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .mm-welcome-metrics {
    width: 100%;
    flex-direction: column;
  }
  .mm-indiv-header-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .mm-indiv-stats-strip {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    display: grid;
  }
  .mm-leaderboard-grid {
    grid-template-columns: 1fr;
  }
  .mm-breakdown-grid,
  .mm-breakdown-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   OFFICIAL COLLEGE EXAMINATION CIRCULAR & TIMETABLE STYLES
   Exact reproduction of autonomous college notification letterhead
   ========================================================================== */

.gift-notice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  animation: giftFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes giftFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.gift-notice-dialog {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.8);
  overflow: hidden;
}

/* Control Topbar */
.gift-notice-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: #0f172a;
  color: #ffffff;
  border-bottom: 1px solid #1e293b;
  flex-shrink: 0;
}

.gift-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gift-official-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 9999px;
}

.gift-ref-pill {
  font-size: 0.76rem;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 3px 8px;
  border-radius: 4px;
}

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

.gift-btn-secondary,
.gift-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.gift-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.gift-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gift-btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.gift-btn-primary:hover {
  background: #1d4ed8;
}

.gift-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gift-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Notice Sheet (Document Container) */
.gift-notice-sheet {
  padding: 2rem 2.25rem;
  overflow-y: auto;
  background: #f8fafc;
  color: #0f172a;
}

/* Email Meta Header (Recreating exact gmail dispatch line) */
.gift-email-meta-strip {
  display: flex;
  gap: 16px;
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.gift-email-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #bfdbfe;
}

.gift-email-info {
  flex: 1;
  min-width: 0;
}

.gift-email-subject {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.gift-email-subject h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.gift-inbox-tag {
  font-size: 0.72rem;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.gift-email-sender-line {
  font-size: 0.86rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.gift-email-address {
  color: #64748b;
  font-size: 0.8rem;
}

.gift-email-date {
  color: #64748b;
  font-size: 0.8rem;
}

.gift-email-to-line {
  font-size: 0.78rem;
  color: #64748b;
}

.gift-email-to-line code {
  color: #475569;
  font-family: inherit;
  font-weight: 500;
}

/* Official Letterhead */
.gift-letterhead {
  text-align: center;
  padding: 1.25rem 0 1rem;
}

.gift-crest-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.gift-crest-emblem {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.gift-institution-title h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1e3a8a;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.gift-subtitle {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #64748b;
  margin: 0 0 4px;
}

.gift-coe-office {
  font-size: 0.88rem;
  font-weight: 700;
  color: #b91c1c;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.gift-letterhead-rule {
  height: 2px;
  background: linear-gradient(90deg, transparent, #2563eb, transparent);
  margin-top: 1rem;
}

/* Circular Text */
.gift-circular-body {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  line-height: 1.6;
}

.gift-greeting {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 8px;
}

.gift-lead-text {
  font-size: 0.92rem;
  color: #334155;
  margin: 0 0 8px;
}

.gift-date-highlight {
  font-weight: 700;
  color: #1e3a8a;
  background: #dbeafe;
  padding: 2px 6px;
  border-radius: 4px;
}

.gift-advisory-note {
  font-size: 0.88rem;
  color: #475569;
  font-style: italic;
  margin: 0;
}

/* Schedule Header Banner */
.gift-schedule-banner {
  background: #0f172a;
  color: #ffffff;
  border-radius: 8px 8px 0 0;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
}

.gift-schedule-banner h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gift-slot-badge {
  background: #2563eb;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
}

/* Branch Filter Navigation */
.gift-branch-nav {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: none;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gift-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gift-filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
}

.gift-search-wrap {
  flex: 1;
  max-width: 320px;
}

.gift-search-input {
  width: 100%;
  padding: 5px 10px;
  font-size: 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
}

.gift-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.gift-branch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gift-branch-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gift-branch-btn:hover {
  background: #e2e8f0;
}

.gift-branch-btn.active {
  background: #1e3a8a;
  color: #ffffff;
  border-color: #1e3a8a;
}

.gift-branch-btn.my-branch {
  border-color: #f59e0b;
}

.gift-my-tag {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
}

/* Examination Timetable Table */
.gift-table-container {
  background: #ffffff;
  border: 2px solid #000000;
  overflow-x: auto;
}

.gift-exam-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.gift-exam-table th {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 9px 12px;
  border: 1px solid #000000;
  text-align: center;
}

.gift-exam-table td {
  padding: 8px 12px;
  border: 1px solid #000000;
  vertical-align: middle;
}

.gift-branch-col {
  background: #f8fafc;
  font-weight: 800;
  text-align: center;
  border-left-width: 4px !important;
  color: #0f172a;
}

.gift-branch-sticky strong {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 2px;
}

.gift-branch-badge {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}

.gift-code-col {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}

.gift-name-col {
  color: #0f172a;
  font-weight: 600;
}

.gift-date-col {
  text-align: center;
  white-space: nowrap;
}

.gift-date-val {
  display: block;
  font-weight: 700;
  color: #0f172a;
}

.gift-day-val {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
}

.gift-time-col {
  text-align: center;
  white-space: nowrap;
}

.gift-time-pill {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.8rem;
}

.gift-row-focused {
  background: #fefce8;
}

.gift-empty-cell {
  text-align: center;
  padding: 2rem;
  color: #64748b;
  font-style: italic;
}

/* Lab Notice Box */
.gift-lab-notice-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}

.gift-lab-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1e40af;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.gift-lab-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #334155;
  font-size: 0.85rem;
  line-height: 1.55;
}

.gift-lab-list li {
  margin-bottom: 4px;
}

/* Official Signatory Strip */
.gift-signatory-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed #cbd5e1;
  gap: 2rem;
}

.gift-signatory-copy-info {
  flex: 1;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.4;
}

.gift-signature-block {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.gift-seal-stamp {
  width: 80px;
  height: 80px;
  border: 2px dashed #b91c1c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transform: rotate(-10deg);
  opacity: 0.85;
}

.gift-seal-inner {
  font-size: 0.65rem;
  font-weight: 800;
  color: #b91c1c;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.1;
}

.gift-sign-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gift-thanks {
  font-size: 0.82rem;
  color: #475569;
}

.gift-sign-name {
  font-size: 1rem;
  color: #0f172a;
  font-weight: 800;
}

.gift-sign-desig {
  font-size: 0.84rem;
  font-weight: 700;
  color: #2563eb;
}

.gift-sign-inst {
  font-size: 0.8rem;
  color: #475569;
}

.gift-sign-contact {
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.gift-sign-contact a {
  color: #2563eb;
  text-decoration: underline;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  .gift-notice-overlay {
    position: static;
    background: transparent;
    padding: 0;
  }
  .gift-notice-dialog {
    max-width: 100%;
    max-height: none;
    box-shadow: none;
    border: none;
  }
  .gift-notice-sheet {
    padding: 0;
    background: #ffffff;
  }
  .gift-exam-table {
    border: 2px solid #000000;
  }
  .gift-exam-table th,
  .gift-exam-table td {
    border: 1px solid #000000 !important;
  }
}
/* ── Examination Page ── */
.examination-page { padding: 0; }

.examination-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.examination-kicker {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 4px;
  color: #8b3020;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}

.examination-header h2 { margin: 0 0 4px; color: #0f172a; font-size: 22px; font-weight: 600; }
.examination-caption { margin: 0; color: #78857e; font-size: 11px; }

.exam-cgpa-strip {
  display: flex;
  gap: 16px;
  padding: 12px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  flex-shrink: 0;
}

.exam-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.exam-stat strong { font-size: 18px; color: #2a5c40; }
.exam-stat small { color: #88978d; font-size: 9px; }

.examination-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}

.examination-tabs button {
  padding: 8px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.examination-tabs button.active {
  border-bottom-color: #2563eb;
  color: #2563eb;
  font-weight: 600;
}

.examination-tabs button:hover { color: #2563eb; }

.exam-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 14px;
  margin-bottom: 14px;
  border: 1px solid #fce4b2;
  border-radius: 6px;
  background: #eff6ff;
  color: #7a5a10;
  font-size: 11px;
}

.exam-alert svg { flex-shrink: 0; margin-top: 1px; }

.exam-table-wrap { overflow-x: auto; }

.exam-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.exam-table th {
  padding: 10px 14px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  white-space: nowrap;
}

.exam-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.exam-table td svg { vertical-align: middle; margin-right: 4px; color: #64748b; }

.exam-table strong { color: #0f172a; }
.exam-table code {
  padding: 3px 6px;
  border-radius: 4px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-family: inherit;
  font-weight: 600;
}

.exam-status-tag {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 600;
}

.exam-status-tag.upcoming { background: #fff3cd; color: #856404; }
.exam-status-tag.completed { background: #d4edda; color: #155724; }
.exam-status-tag.ongoing { background: #d1ecf1; color: #0c5460; }

.exam-admit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid #dce0dc;
  border-radius: 6px;
  background: #f8faf7;
  font-size: 11px;
  color: #556055;
}

.exam-admit-row svg { color: #4a7a5a; flex-shrink: 0; }
.exam-admit-row span { flex: 1; }

.exam-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: 1px solid #c8d8c2;
  border-radius: 4px;
  background: #eff6ff;
  color: #1e40af;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
}

.exam-download-btn:disabled { opacity: .5; cursor: not-allowed; }
.exam-download-btn:not(:disabled):hover { background: #d4edda; }

/* Results */
.exam-semester-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.exam-semester-tabs button {
  padding: 6px 14px;
  border: 1px solid #d8d0d0;
  border-radius: 20px;
  background: #fff;
  color: #6b6060;
  cursor: pointer;
  font-size: 11px;
}

.exam-semester-tabs button.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

.exam-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.exam-result-header h3 { margin: 0 0 2px; font-size: 14px; color: #0f172a; font-weight: 700; }
.exam-result-header p { margin: 0; font-size: 11px; color: #64748b; }

.exam-result-summary { display: flex; align-items: center; gap: 8px; }

.exam-sgpa-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid #c8d8c2;
  border-radius: 20px;
  background: #eff6ff;
  color: #2e6045;
  font-size: 12px;
  font-weight: 700;
}

.exam-result-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.exam-result-pill.passed { background: #d4edda; color: #155724; }

.result-table th { background: #f4f2f2; color: #5a4040; }

/* Grade Card */
.grade-card-view {}

.grade-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.grade-card-header svg { color: #2563eb; flex-shrink: 0; }
.grade-card-header h3 { margin: 0 0 2px; font-size: 13px; color: #2d4a38; }
.grade-card-header p { margin: 0; font-size: 10px; color: #88978d; }
.grade-card-header .exam-download-btn { margin-left: auto; flex-shrink: 0; }

.grade-table th { background: #f4f7f2; }

.grade-card-footer { margin-top: 12px; padding: 10px 14px; background: #f8faf7; border-radius: 6px; }

.grade-scale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #64748b;
}

.grade-scale strong { margin-right: 4px; color: #0f172a; }
.grade-scale span { display: flex; align-items: center; gap: 4px; }
.fees-page { animation: fade-in 0.25s ease; }
.fees-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.fees-title { font-family: var(--font-display, 'Outfit', sans-serif); font-size: 1.65rem; font-weight: 700; color: #0a0f1e; margin: 0 0 6px; }
.fees-subtitle { color: #64748b; font-size: 0.92rem; margin: 0; }

.fees-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 24px; }
.fee-metric-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); display: flex; align-items: center; gap: 16px; }
.fee-metric-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fee-metric-icon.blue { background: #eff6ff; color: #2563eb; }
.fee-metric-icon.green { background: #ecfdf5; color: #10b981; }
.fee-metric-icon.indigo { background: #eef2ff; color: #4f46e5; }
.fee-metric-icon.amber { background: #fffbeb; color: #f59e0b; }
.fee-metric-icon.purple { background: #faf5ff; color: #8b5cf6; }
.fee-metric-card.interactive { cursor: pointer; transition: all 0.2s ease; position: relative; }
.fee-metric-card.interactive:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(79, 70, 229, 0.15); border-color: #a5b4fc; }
.fee-metric-body h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; margin: 0 0 4px; }
.fee-metric-body .fee-val { font-size: 1.35rem; font-weight: 700; color: #0a0f1e; }
.fee-metric-body .fee-sub { font-size: 0.76rem; color: #64748b; font-weight: 500; }

.fees-tabs { display: flex; gap: 8px; border-bottom: 2px solid #e2e8f0; margin-bottom: 22px; }
.fee-tab-btn { background: none; border: none; padding: 10px 18px; font-weight: 600; font-size: 0.92rem; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.fee-tab-btn:hover { color: #2563eb; }
.fee-tab-btn.active { color: #2563eb; border-bottom-color: #2563eb; }

.fees-section-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 22px 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); margin-bottom: 24px; }
.fee-sec-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.fee-sec-header h3 { font-size: 1.15rem; font-weight: 700; color: #0a0f1e; margin: 0; }

.fee-table-wrap { overflow-x: auto; }
.fee-table { width: 100%; border-collapse: collapse; text-align: left; }
.fee-table th { background: #f8fafc; color: #475569; font-weight: 600; font-size: 0.82rem; padding: 12px 14px; border-bottom: 1px solid #e2e8f0; text-transform: uppercase; letter-spacing: 0.03em; }
.fee-table td { padding: 14px; border-bottom: 1px solid #f1f5f9; font-size: 0.88rem; color: #1e293b; }
.fee-table tr:hover { background: #f8fafc; }

.fee-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 0.76rem; font-weight: 600; }
.fee-badge.paid { background: #ecfdf5; color: #059669; }
.fee-badge.due { background: #fff1f2; color: #e11d48; }
.fee-badge.partial { background: #fffbeb; color: #d97706; }

.btn-receipt { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #f1f5f9; color: #1e293b; border-radius: 8px; font-size: 0.8rem; font-weight: 600; border: 1px solid #cbd5e1; cursor: pointer; transition: all 0.2s; }
.btn-receipt:hover { background: #2563eb; color: #ffffff; border-color: #2563eb; }

.btn-pay-now { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #ffffff; border-radius: 10px; font-size: 0.9rem; font-weight: 600; border: none; cursor: pointer; box-shadow: 0 3px 10px rgba(37,99,235,0.25); transition: all 0.2s; }
.btn-pay-now:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(37,99,235,0.35); }

.payment-modal-backdrop { position: fixed; inset: 0; background: rgba(10,15,30,0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 999; padding: 20px; }
.payment-modal { background: #ffffff; border-radius: 18px; max-width: 480px; width: 100%; padding: 28px; box-shadow: 0 12px 35px rgba(0,0,0,0.18); position: relative; }
.payment-modal-close { position: absolute; top: 18px; right: 18px; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #94a3b8; }
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.pay-opt-btn { border: 2px solid #e2e8f0; border-radius: 12px; padding: 14px; text-align: center; cursor: pointer; background: #ffffff; font-weight: 600; font-size: 0.88rem; transition: all 0.2s; }
.pay-opt-btn.active { border-color: #2563eb; background: #eff6ff; color: #2563eb; }

.fee-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.fee-input:focus {
  border-color: #4338ca;
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.12);
}

.fees-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 10000;
  animation: slide-in 0.3s ease;
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* -------------------------------------------------------------
   BANK & QR DETAILS SECTION STYLING
   ------------------------------------------------------------- */
.bank-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.bank-qr-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.2s, transform 0.2s;
}

.bank-qr-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.bank-qr-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.bank-qr-header h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bank-qr-header p {
  margin: 0;
  font-size: 0.84rem;
  color: #64748b;
}

/* QR Code Area */
.qr-display-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  margin-bottom: 18px;
  position: relative;
}

.qr-image-container {
  background: #ffffff;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: inline-block;
  margin-bottom: 12px;
}

.qr-caption-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 6px 0;
}

.qr-subcaption-text {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
}

.qr-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.btn-qr-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-qr-action.download {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #1d4ed8;
}

.btn-qr-action.download:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-qr-action.view {
  background: #ffffff;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
}

.btn-qr-action.view:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.qr-reminder-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: #92400e;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Bank Details Rows */
.bank-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.bank-detail-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  gap: 10px;
}

.bank-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bank-detail-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bank-detail-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.bank-detail-value.monospace {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.96rem;
  color: #2563eb;
  letter-spacing: 0.05em;
}

.btn-copy-mini {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
  flex-shrink: 0;
}

.btn-copy-mini:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.btn-copy-mini.copied {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

.bank-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 6px;
}

.bank-notice-card {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: #1e40af;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}


.biometric-page { animation: fade-in 0.25s ease; }
.biometric-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.biometric-title { font-family: var(--font-display, 'Outfit', sans-serif); font-size: 1.65rem; font-weight: 700; color: #0a0f1e; margin: 0 0 6px; }
.biometric-subtitle { color: #64748b; font-size: 0.92rem; margin: 0; }

.biometric-status-bar { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.bio-indicator { display: flex; align-items: center; gap: 12px; }
.bio-dot { width: 14px; height: 14px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,0.2); animation: pulse 2s infinite; }
.bio-status-text strong { display: block; font-size: 1rem; color: #0a0f1e; }
.bio-status-text small { color: #64748b; font-size: 0.8rem; }

.bio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 24px; }
.bio-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.bio-card-title { font-size: 0.78rem; text-transform: uppercase; color: #64748b; margin: 0 0 6px; font-weight: 600; }
.bio-card-val { font-size: 1.3rem; font-weight: 700; color: #0a0f1e; margin-bottom: 4px; }
.bio-card-sub { font-size: 0.78rem; color: #64748b; font-weight: 500; }

.bio-log-table { width: 100%; border-collapse: collapse; text-align: left; }
.bio-log-table th { background: #f8fafc; color: #475569; font-weight: 600; font-size: 0.82rem; padding: 12px 14px; border-bottom: 1px solid #e2e8f0; }
.bio-log-table td { padding: 13px 14px; border-bottom: 1px solid #f1f5f9; font-size: 0.88rem; }
.bio-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.bio-badge.in { background: #ecfdf5; color: #047857; }
.bio-badge.out { background: #eff6ff; color: #1d4ed8; }
/* ==========================================================================
   STUDENT CANTEEN PORTAL STYLES (APNA CAMPUS ENTERPRISE ERP)
   ========================================================================== */

.canteen-student-page {
  animation: fadeInPage 0.25s ease-out;
  padding: 1.25rem 0.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Banner */
.student-canteen-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid #334155;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.2);
}

.student-profile-chip {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar-chip {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  -o-object-fit: cover;
     object-fit: cover;
  border: 2px solid #38bdf8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.student-welcome-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.student-meta-sub {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.canteen-balance-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  text-align: right;
  min-width: 220px;
}

.balance-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8;
  display: block;
}

.balance-amount {
  font-size: 1.75rem;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1.1;
  margin: 0.25rem 0 0.5rem;
}

.btn-pay-balance-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #38bdf8;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-pay-balance-sm:hover {
  background: #7dd3fc;
  transform: translateY(-1px);
}

/* Tabs */
.student-canteen-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.canteen-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.canteen-nav-tab:hover {
  color: #0284c7;
}

.canteen-nav-tab.active {
  color: #0284c7;
  border-bottom-color: #0284c7;
}

.tab-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
}

.tab-badge.amber { background: #fef3c7; color: #b45309; }
.tab-badge.green { background: #dcfce7; color: #15803d; }
.tab-badge.blue { background: #dbeafe; color: #1d4ed8; }

/* Meal Status Widgets */
.meal-status-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.meal-status-widget .widget-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

/* Application overview card */
.app-status-overview-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.empty-application-state {
  background: #ffffff;
  border-radius: 14px;
  padding: 3rem 1.5rem;
  border: 1px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Active sub card */
.active-sub-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #86efac;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

/* Formula Breakdown Card (Section 9.2) */
.canteen-fee-formula-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.formula-boxes-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.formula-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.formula-box.highlight {
  background: #eff6ff;
  border-color: #93c5fd;
}

.formula-box.alert {
  background: #fef2f2;
  border-color: #fca5a5;
}

.formula-box.cleared {
  background: #f0fdf4;
  border-color: #86efac;
}

.formula-operator {
  font-size: 1.4rem;
  font-weight: 900;
  color: #94a3b8;
  padding: 0 0.25rem;
}

.box-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  display: block;
}

.box-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  display: block;
  margin: 0.2rem 0;
}

.box-val.amber { color: #d97706; }
.box-val.emerald { color: #16a34a; }
.box-val.red { color: #dc2626; }

.box-sub {
  font-size: 0.7rem;
  color: #94a3b8;
  display: block;
}

.btn-order-dish {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-order-dish:hover {
  background: #0369a1;
  transform: translateY(-1px);
}
.health-page { animation: fade-in 0.25s ease; }
.health-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.health-title { font-family: var(--font-display, 'Outfit', sans-serif); font-size: 1.65rem; font-weight: 700; color: #0a0f1e; margin: 0 0 6px; }
.health-subtitle { color: #64748b; font-size: 0.92rem; margin: 0; }

.health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 24px; }
.health-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 22px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.health-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; border-bottom: 1px solid #f1f5f9; padding-bottom: 12px; }
.health-card-header h3 { font-size: 1.05rem; font-weight: 700; color: #0a0f1e; margin: 0; display: flex; align-items: center; gap: 8px; }

.health-info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f8fafc; font-size: 0.88rem; }
.health-info-row .label { color: #64748b; font-weight: 500; }
.health-info-row .value { color: #0f172a; font-weight: 600; }

.emergency-contact-box { background: #fef2f2; border: 1px solid #fee2e2; border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.emergency-phone { font-size: 1.1rem; font-weight: 700; color: #dc2626; }
/* Centralized Academic Marks View CSS - Enterprise Grade ERP Styling */
.univ-marks-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  animation: fadeInMarks 0.25s ease-out;
  box-sizing: border-box;
}

@keyframes fadeInMarks {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 1. Institutional Hero Banner */
.univ-hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

.univ-hero-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.univ-crest-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  flex-shrink: 0;
}

.univ-affiliation-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4f46e5;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.univ-hero-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.univ-hero-subtitle {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.4;
}

.univ-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.univ-action-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.univ-action-back-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.univ-action-download-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
  transition: all 0.15s ease;
}

.univ-action-download-all:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.35);
}

/* 2. Executive Academic Standing Dashboard (Hero KPI Grid) */
.univ-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.univ-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.univ-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.kpi-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-cgpa .kpi-icon-wrap {
  background: #eef2ff;
  color: #4f46e5;
}

.kpi-sgpa .kpi-icon-wrap {
  background: #ecfeff;
  color: #0891b2;
}

.kpi-credits .kpi-icon-wrap {
  background: #fdf4ff;
  color: #c026d3;
}

.kpi-standing .kpi-icon-wrap {
  background: #ecfdf5;
  color: #059669;
}

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

.kpi-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 4px;
}

.kpi-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.kpi-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.kpi-scale {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}

.kpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  width: -moz-fit-content;
  width: fit-content;
}

.badge-distinction {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-clear {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.kpi-subtext {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 5px;
}

.kpi-progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
}

.kpi-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #c026d3 0%, #e879f9 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* 3. Controls & Filter Bar */
.univ-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.univ-sem-selector-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.univ-selector-legend {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.univ-sem-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.univ-sem-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 20px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.81rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.univ-sem-pill:hover {
  border-color: #4f46e5;
  color: #4f46e5;
  background: #f5f3ff;
}

.univ-sem-pill.active {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.28);
}

.univ-pill-count {
  background: rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
}

.univ-sem-pill:not(.active) .univ-pill-count {
  background: #f1f5f9;
  color: #64748b;
}

.sem-pill-title {
  font-weight: 700;
}

.sem-pill-gpa {
  font-size: 0.72rem;
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.univ-sem-pill:not(.active) .sem-pill-gpa {
  border-left-color: #cbd5e1;
  color: #64748b;
}

/* Search and Type Filter */
.univ-search-filter-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.univ-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.univ-search-icon {
  position: absolute;
  left: 10px;
  color: #94a3b8;
  pointer-events: none;
}

.univ-search-input {
  width: 270px;
  padding: 7px 30px 7px 32px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.8rem;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.15s ease;
}

.univ-search-input:focus {
  background: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.univ-clear-search-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 4px;
}

.univ-type-filters {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 10px;
}

.univ-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.univ-type-pill.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

/* 4. Semesters Cards List */
.univ-semesters-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

.univ-semester-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.univ-semester-card:hover {
  border-color: #cbd5e1;
}

/* Elevated Semester Header */
.univ-sem-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 1rem;
}

.univ-sem-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.univ-sem-emblem {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  color: #1e40af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  flex-shrink: 0;
}

.univ-sem-header-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.univ-sem-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.univ-sem-heading {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.univ-sem-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 9px;
  border-radius: 12px;
}

.univ-sem-subinfo {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.univ-bullet-sep {
  color: #cbd5e1;
}

.univ-sem-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.univ-sem-stat-chips {
  display: flex;
  align-items: center;
  gap: 8px;
}

.univ-sgpa-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}

.univ-sgpa-chip .chip-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #166534;
  text-transform: uppercase;
}

.univ-sgpa-chip .chip-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #15803d;
}

.univ-credit-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.univ-credit-chip .chip-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.univ-credit-chip .chip-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e293b;
}

.univ-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.79rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.2);
  transition: all 0.15s ease;
}

.univ-download-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
}

.univ-collapse-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.univ-collapse-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Modern Subject Table */
.univ-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.univ-marks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
  background: #ffffff;
}

.univ-marks-table thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.univ-marks-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.univ-marks-table tbody tr:hover {
  background: #fbfcfe;
}

.univ-marks-table tbody tr:last-child td {
  border-bottom: none;
}

.col-idx {
  width: 40px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.75rem;
}

.col-code {
  width: 160px;
}

.univ-code-pill {
  display: inline-block;
  padding: 3px 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.col-name {
  min-width: 280px;
}

.univ-subject-title-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.univ-subject-title-text {
  font-weight: 600;
  color: #0f172a;
}

.univ-noncredit-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9333ea;
  background: #faf5ff;
  border: 1px solid #f3e8ff;
  padding: 1px 6px;
  border-radius: 6px;
}

.col-type {
  width: 130px;
}

.univ-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.univ-type-tag.theory {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
}

.univ-type-tag.practical {
  background: #faf5ff;
  border: 1px solid #f3e8ff;
  color: #7e22ce;
}

.col-credit {
  width: 70px;
  text-align: center;
}

.univ-credit-badge {
  display: inline-block;
  font-weight: 700;
  font-size: 0.82rem;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 6px;
}

.col-grade {
  width: 140px;
}

.univ-grade-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
}

.grade-letter {
  font-size: 0.82rem;
}

.grade-desc {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.9;
}

.grade-pill-o {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  color: #7e22ce;
}

.grade-pill-e {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.grade-pill-a {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.grade-pill-b {
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  color: #0e7490;
}

.grade-pill-c {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}

.col-points {
  width: 100px;
  text-align: center;
}

.univ-points-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}

.col-status {
  width: 80px;
  text-align: center;
}

.univ-pass-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  background: #f0fdf4;
  padding: 2px 7px;
  border-radius: 6px;
}

/* Elevated Semester Footer */
.univ-sem-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.univ-footer-breakdown {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  color: #475569;
  flex-wrap: wrap;
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breakdown-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.breakdown-dot.theory {
  background: #2563eb;
}

.breakdown-dot.practical {
  background: #9333ea;
}

.breakdown-item strong {
  color: #0f172a;
}

.breakdown-item.text-muted {
  color: #94a3b8;
  font-style: italic;
  font-size: 0.74rem;
}

.univ-footer-gpa-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.univ-gpa-card {
  display: flex;
  flex-direction: column;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid;
}

.univ-gpa-card.card-sgpa {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.univ-gpa-card.card-cgpa {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.gpa-card-title {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gpa-card-number {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

/* Empty Search State */
.univ-empty-search {
  background: #ffffff;
  border-radius: 14px;
  border: 1px dashed #cbd5e1;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #64748b;
}

.univ-empty-search h3 {
  margin: 10px 0 6px;
  color: #0f172a;
  font-size: 1.05rem;
}

.univ-empty-search p {
  margin: 0 0 16px;
  font-size: 0.82rem;
}

.univ-reset-search-btn {
  padding: 6px 14px;
  background: #4f46e5;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .univ-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .univ-kpi-grid {
    grid-template-columns: 1fr;
  }
  .univ-hero-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .univ-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .univ-search-box {
    width: 100%;
  }
  .univ-search-input {
    width: 100%;
  }
  .univ-sem-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ── Academics Page ── */
.academics-page { padding: 0; }

.academics-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.academics-kicker {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 4px;
  color: #a27932;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}

.academics-header h2 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 600;
}

.academics-caption { margin: 0; color: #78857e; font-size: 11px; }

.academics-cgpa-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid #d8e8d2;
  border-radius: 8px;
  background: linear-gradient(135deg, #edf7ea, #f7fcf6);
  color: #2563eb;
  flex-shrink: 0;
}

.academics-cgpa-badge strong { font-size: 22px; line-height: 1; }
.academics-cgpa-badge small { color: #6a9478; font-size: 11px; }

.academics-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}

.academics-tabs button {
  padding: 8px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: color .15s, border-color .15s;
}

.academics-tabs button.active {
  border-bottom-color: #2563eb;
  color: #1e40af;
  font-weight: 600;
}

.academics-tabs button:hover { color: #2563eb; }

.tab-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 12px;
  transition: all 0.15s ease;
}

.academics-tabs button.active .tab-pill-badge {
  background: #2563eb;
  color: #ffffff;
}

.btn-sub-notes-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid #c7d2fe;
  background: #e0e7ff;
  color: #3730a3;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sub-notes-badge:hover {
  background: #c7d2fe;
  transform: translateY(-1px);
}

.btn-sub-notes-badge.verified {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}

.btn-sub-notes-badge.verified:hover {
  background: #bbf7d0;
}

.btn-sub-notes-upload {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sub-notes-upload:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.academics-notes-portal-wrap {
  margin-top: 6px;
}

/* Semester Accordion */
.semester-accordion {
  margin-bottom: 8px;
  border: 1px solid #dfe6db;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.semester-accordion.current { border-color: #93c5fd; }

.semester-accordion-head {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 0;
  background: #f8faf7;
  color: #0f172a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

.semester-accordion.current .semester-accordion-head { background: #eff6ff; }
.semester-accordion-head:hover { background: #eef4ec; }

.semester-label { display: flex; align-items: center; gap: 8px; flex: 1; }

.semester-badge {
  padding: 2px 7px;
  border-radius: 20px;
  background: #27ae6020;
  color: #27ae60;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
}

.semester-meta { color: #88978d; font-size: 10px; }

.semester-accordion-head svg.rotated { transform: rotate(180deg); }
.semester-accordion-head svg { color: #94a3b8; transition: transform .2s; }

.semester-accordion-body { padding: 12px; }

.subject-table-wrap { overflow-x: auto; }

.subject-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.subject-table th {
  padding: 8px 10px;
  background: #f4f7f2;
  color: #475569;
  font-size: 10px;
  font-weight: 600;
  text-align: left;
}

.subject-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #edf0eb;
  color: #0f172a;
}

.subject-table tr:last-child td { border-bottom: 0; }

.subject-table code {
  padding: 2px 6px;
  border-radius: 3px;
  background: #edf2ff;
  color: #3a5db5;
  font-size: 10px;
}

.subject-type-tag {
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 600;
}

.subject-type-tag.theory { background: #e8f0fe; color: #2b5cb5; }
.subject-type-tag.lab { background: #fdf3e3; color: #a76f18; }
.subject-type-tag.project { background: #eff6ff; color: #2e7d4a; }

.grade-pill {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
}

.grade-pill.grade-Ap { background: #d4edda; color: #155724; }
.grade-pill.grade-A { background: #d1ecf1; color: #0c5460; }
.grade-pill.grade-Bp { background: #fff3cd; color: #856404; }
.grade-pill.grade-B { background: #fde2e2; color: #b33030; }

.syllabus-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid #c8d8c2;
  border-radius: 4px;
  background: #eff6ff;
  color: #2563eb;
  cursor: pointer;
  font-size: 10px;
}

.no-syllabus { color: #c0c8c0; }

/* Results */
.results-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.results-summary-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
}

.results-summary-card svg { color: #2563eb; }
.results-summary-card strong { font-size: 22px; }
.results-summary-card span { color: #64748b; font-size: 10.5px; font-weight: 600; }

.result-semester-table-wrap { overflow-x: auto; }

.result-semester-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.result-semester-table th {
  padding: 9px 12px;
  background: #f4f7f2;
  color: #475569;
  font-size: 10px;
  font-weight: 600;
  text-align: left;
}

.result-semester-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf0eb;
}

.sgpa-chip {
  padding: 2px 8px;
  border-radius: 12px;
  background: #d4f5e4;
  color: #1a7843;
  font-size: 10px;
  font-weight: 700;
}

.result-status {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
}

.result-status.passed { background: #d4edda; color: #155724; }
.result-status.progress { background: #fff3cd; color: #856404; }

.marksheet-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid #c8d8c2;
  border-radius: 4px;
  background: #eff6ff;
  color: #2563eb;
  cursor: pointer;
  font-size: 10px;
}

/* Syllabus Grid */
.syllabus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.syllabus-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.syllabus-card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
}

.syllabus-card-copy strong { display: block; color: #0f172a; font-size: 12px; margin-bottom: 2px; }
.syllabus-card-copy small { color: #88978d; font-size: 10px; }

.syllabus-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid #93c5fd;
  border-radius: 4px;
  background: #eff6ff;
  color: #1e40af;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  margin-top: auto;
}

.syllabus-download-btn:hover { background: #d4edda; }

/* ── Academics Class Notes & Verification Additions ── */
.btn-academic-upload-notes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #4338ca, #3730a3);
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(67, 56, 202, 0.22);
  transition: all 0.2s ease;
}
.btn-academic-upload-notes:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(67, 56, 202, 0.32);
}

.btn-sub-notes-upload {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-sub-notes-upload:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.academic-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.academic-note-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}
.academic-note-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.07);
  border-color: #cbd5e1;
}

.note-subject-tag {
  font-size: 0.7rem;
  font-weight: 700;
  background: #e0e7ff;
  color: #3730a3;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.academic-badge-verified {
  font-size: 0.72rem;
  font-weight: 700;
  background: #dcfce7;
  color: #15803d;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #86efac;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.academic-badge-pending {
  font-size: 0.72rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 12px;
}

.btn-view-academic-note {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-view-academic-note:hover {
  background: #4338ca;
  color: #ffffff;
}

.academics-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}
.academics-modal-card {
  background: #ffffff;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.18);
  position: relative;
}
.academics-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #94a3b8;
}

.academic-form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}
.academic-form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  box-sizing: border-box;
}
.academic-form-input:focus {
  border-color: #4338ca;
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.12);
}

.btn-academic-primary {
  padding: 8px 18px;
  background: #4338ca;
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.btn-academic-secondary {
  padding: 8px 18px;
  background: #f1f5f9;
  color: #334155;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  cursor: pointer;
}

/* Verified Note Card Highlight */
.note-card-verified {
  border-color: #6ee7b7 !important;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.18), 0 4px 16px rgba(16, 185, 129, 0.1) !important;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 60%) !important;
}

.academics-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 10000;
}

/* ══════════════════════════════════════════════════════════════════
   ADMIT CARD DOWNLOAD SECTION (MATCHES SCREENSHOTS 2, 3, 4, 5)
   ══════════════════════════════════════════════════════════════════ */
.admit-card-container {
  padding: 0;
  margin-top: 4px;
}

.admit-section-header {
  margin-bottom: 12px;
}

.admit-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admit-header-icon-wrap {
  display: inline-flex;
  color: #1e293b;
}

.admit-header-title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.admit-table-card {
  background: #ffffff;
  border: 1px solid #d8e2dc;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.admit-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admit-main-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  color: #1e293b;
  text-align: left;
}

.admit-head-row th {
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
  font-size: 12px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
}

.admit-filter-row th {
  background: #f8fafc;
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  font-weight: normal;
}

.admit-filter-input {
  width: 100%;
  height: 24px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 11.5px;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
}

.admit-filter-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 1px #0284c7;
}

.admit-filter-select {
  cursor: pointer;
}

.admit-exam-row td {
  padding: 10px 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.admit-exam-row:hover td {
  background: #f8fafc;
}

.admit-exam-row.row-expanded td {
  background: #f1f8fc;
}

.btn-admit-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admit-toggle-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #64748b;
  border-radius: 3px;
  background: #ffffff;
  color: #0f172a;
  transition: transform 0.15s, border-color 0.15s;
}

.admit-toggle-box:hover {
  border-color: #0284c7;
  color: #0284c7;
}

.btn-admit-collapse-tag {
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-admit-collapse-tag:hover {
  border-color: #0284c7;
  color: #0284c7;
}

.exam-name-text {
  font-weight: 600;
  color: #0f172a;
}

/* Expanded schedule section matching Image 3 */
.admit-expanded-cell {
  background: #f4f9fd !important;
  padding: 12px 14px 16px !important;
  border: 1px solid #e2e8f0;
}

.admit-schedule-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: 2.5px solid #00bcd4; /* Light cyan line matching screenshot 3 */
  border-radius: 4px;
  padding: 12px 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.admit-schedule-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admit-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  text-align: left;
}

.admit-schedule-table thead th {
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
}

.admit-schedule-table tbody td {
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}

.admit-schedule-table tbody tr:hover td {
  background: #f8fafc;
}

.admit-sub-code {
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.admit-sub-name {
  font-weight: 600;
  color: #0f172a;
}

.btn-admit-row-print {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
}

.btn-admit-row-print:hover {
  background: #e0f2fe;
  transform: scale(1.1);
}

/* ══════════════════════════════════════════════════════════════════
   CONFIRMATION MODAL (MATCHES SCREENSHOT 4)
   ══════════════════════════════════════════════════════════════════ */
.admit-confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}

.admit-confirm-card {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 440px;
  max-width: 95%;
  padding: 20px 24px;
  position: relative;
  animation: admitFadeIn 0.2s ease-out;
}

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

.admit-confirm-close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
}

.admit-confirm-close-btn:hover {
  color: #334155;
}

.admit-confirm-text {
  font-size: 13.5px;
  color: #334155;
  margin: 12px 0 24px;
  font-weight: 500;
}

.admit-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-admit-modal-cancel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-admit-modal-cancel:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-admit-modal-ok {
  background: #2b78e4; /* Primary blue button matching screenshot 4 */
  border: none;
  border-radius: 4px;
  padding: 6px 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(43, 120, 228, 0.25);
  transition: all 0.15s;
}

.btn-admit-modal-ok:hover {
  background: #1d65ca;
}

/* ══════════════════════════════════════════════════════════════════
   AUTHENTIC ADMIT CARD PREVIEW & PRINT MODAL (SCREENSHOT 5)
   ══════════════════════════════════════════════════════════════════ */
.admit-doc-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 10001;
  padding: 24px 16px;
  overflow-y: auto;
}

.admit-doc-card {
  max-width: 820px;
  width: 100%;
  margin: 0 auto 30px;
}

.admit-doc-toolbar {
  background: #0f172a;
  border-radius: 10px 10px 0 0;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-official-verified {
  background: #059669;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.btn-toolbar-print {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-toolbar-download {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-toolbar-close {
  background: #334155;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Authentic Admit Card Paper Sheet matching Screenshot 5 */
.admit-paper-sheet {
  background: #ffffff;
  border-radius: 0 0 10px 10px;
  padding: 32px 36px 36px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #000000;
  overflow: hidden;
}

.admit-paper-watermark {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  text-align: center;
}

.admit-paper-watermark img {
  width: 250px;
  height: 250px;
}

.admit-paper-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
}

.admit-paper-logo {
  width: 68px;
  flex-shrink: 0;
}

.admit-paper-logo img {
  width: 64px;
  height: 64px;
  -o-object-fit: contain;
     object-fit: contain;
}

.admit-paper-titles {
  flex-grow: 1;
  text-align: center;
  padding-right: 64px; /* balance out the logo on left */
}

.admit-paper-titles h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #000000;
  letter-spacing: 0.02em;
}

.admit-card-title-underlined {
  margin: 4px 0 2px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  color: #000000;
}

.admit-paper-titles h4 {
  margin: 2px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #000000;
}

.admit-paper-candidate-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.admit-candidate-table {
  flex-grow: 1;
  border-collapse: collapse;
  font-size: 11px;
  border: 1px solid #000000;
}

.admit-candidate-table td {
  border: 1px solid #000000;
  padding: 4px 8px;
  color: #000000;
}

.candidate-field-label {
  width: 140px;
  font-weight: 700;
}

.candidate-field-val {
  font-weight: 700;
}

.admit-candidate-photo-box {
  width: 86px;
  flex-shrink: 0;
  text-align: center;
}

.candidate-photo-frame {
  width: 78px;
  height: 94px;
  border: 1px solid #000000;
  margin: 0 auto 4px;
  overflow: hidden;
  background: #f1f5f9;
}

.candidate-photo-frame img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.candidate-sig-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.admit-paper-schedule-title {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #000000;
}

.admit-paper-sched-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  border: 1px solid #000000;
  margin-bottom: 14px;
}

.admit-paper-sched-table th {
  border: 1px solid #000000;
  padding: 4px 6px;
  font-weight: 700;
  background: #f8fafc;
  color: #000000;
}

.admit-paper-sched-table td {
  border: 1px solid #000000;
  padding: 3.5px 6px;
  color: #000000;
}

.admit-paper-signatures-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 16px 0 16px;
}

.admit-sig-block {
  width: 175px;
  text-align: center;
}

.admit-sig-img {
  width: 120px;
  height: 48px;
  -o-object-fit: contain;
     object-fit: contain;
  margin-bottom: 4px;
}

.admit-stamp-box {
  border: 1.5px solid #6b21a8;
  background: rgba(243, 232, 255, 0.4);
  padding: 4px 8px;
  border-radius: 3px;
  text-align: center;
}

.admit-stamp-box .stamp-title {
  font-size: 10px;
  font-weight: 800;
  color: #581c87;
}

.admit-stamp-box .stamp-sub {
  font-size: 8.5px;
  font-weight: 700;
  color: #6b21a8;
}

.admit-paper-instructions {
  font-size: 9px;
  line-height: 1.45;
  color: #000000;
  margin-bottom: 14px;
}

.instructions-title {
  font-weight: 800;
  font-size: 10.5px;
  margin-bottom: 4px;
}

.instructions-list {
  margin: 0;
  padding-left: 18px;
  list-style-type: lower-roman;
}

.instructions-list li {
  margin-bottom: 3.5px;
}

.admit-paper-footer {
  border-top: 1.5px solid #000000;
  padding-top: 5px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  color: #000000;
}

@media print {
  .printable-admit-sheet {
    position: static !important;
    width: 100% !important;
    padding: 20px !important;
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
  }
  .no-print {
    display: none !important;
  }
}




/* ==========================================================================
   APNA CAMPUS ENTERPRISE ACADEMICS PORTAL — NEW PRODUCTION MODULE STYLING
   ========================================================================== */

.academics-header-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.academics-stat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.academics-stat-pill.tone-purple {
  background: #fbfbfe;
  border-color: #ddd6fe;
  color: #6d28d9;
}

.academics-stat-pill.tone-green {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.academics-stat-pill.tone-red {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.academics-stat-pill small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #64748b;
}

.academics-stat-pill strong {
  font-size: 0.95rem;
  font-weight: 800;
  display: block;
}

/* ── Primary Tab Navigation Bar ── */
.academics-tabs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  scrollbar-width: thin;
}

.academics-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #f8fafc;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.academics-tab-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.academics-tab-pill.active {
  background: #1e3a8a;
  color: #ffffff;
  border-color: #1e3a8a;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.2);
}

.academics-tab-counter {
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

.academics-tab-pill.active .academics-tab-counter {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.academics-tab-dot-alert {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
}

/* ── Overview Dashboard Cards Grid (Section 2) ── */
.academics-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.overview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.overview-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.overview-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.overview-card-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

.overview-card-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 4px;
}

.overview-card-sub {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.overview-card-featured {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border-color: #bfdbfe;
}

.academics-quick-banner {
  background: #0f172a;
  color: #ffffff;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.academics-quick-banner h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: #ffffff;
}

.academics-quick-banner p {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.quick-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-quick-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-quick-action:hover {
  background: #334155;
}

.btn-quick-action.primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.btn-quick-action.primary:hover {
  background: #1d4ed8;
}

/* ── View Intro Bar ── */
.view-intro-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.view-intro-bar h3 {
  margin: 0 0 3px;
  font-size: 1.12rem;
  color: #0f172a;
}

.view-intro-bar p {
  margin: 0;
  font-size: 0.84rem;
  color: #64748b;
}

.badge-reg-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ── Universal Academics Data Table ── */
.academics-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.86rem;
  background: #ffffff;
}

.academics-data-table th {
  background: #f8fafc;
  padding: 11px 14px;
  font-weight: 700;
  color: #475569;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.academics-data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.academics-data-table tbody tr:last-child td {
  border-bottom: none;
}

.academics-data-table tbody tr:hover td {
  background: #f8fafc;
}

.code-badge {
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 5px;
  color: #1e40af;
  font-family: monospace;
  font-size: 0.82rem;
  border: 1px solid #e2e8f0;
}

.sub-name-cell {
  display: flex;
  flex-direction: column;
}

.sub-name-cell small {
  color: #64748b;
  font-size: 0.74rem;
}

.type-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 700;
}

.type-pill.type-theory {
  background: #eff6ff;
  color: #1d4ed8;
}

.type-pill.type-lab {
  background: #ecfdf5;
  color: #047857;
}

.type-pill.type-project {
  background: #fbfbfe;
  color: #6d28d9;
}

.faculty-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #334155;
  font-weight: 500;
}

.sub-actions-cell {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.btn-sub-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sub-action:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-sub-action.syllabus:hover {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.btn-sub-action.notes:hover {
  background: #fbfbfe;
  color: #6d28d9;
  border-color: #c4b5fd;
}

.btn-sub-action.download {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.btn-sub-action.download:hover {
  background: #1d4ed8;
}

/* ── Progression Timeline Strip ── */
.progression-timeline-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.timeline-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-step-card.completed {
  border-color: #86efac;
  background: #f0fdf4;
}

.timeline-step-card.enrolled {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.timeline-step-card .step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-step-card.completed .step-badge {
  background: #22c55e;
  color: #ffffff;
}

.timeline-step-card.enrolled .step-badge {
  background: #2563eb;
  color: #ffffff;
}

.timeline-step-card strong {
  font-size: 0.8rem;
  color: #0f172a;
}

.timeline-step-card small {
  font-size: 0.68rem;
  color: #64748b;
  margin-bottom: 4px;
}

.step-sgpa {
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 1px 6px;
  border-radius: 8px;
}

.step-sgpa.pending {
  background: #f1f5f9;
  color: #64748b;
}

.row-active-enrolled td {
  background: #fafcff !important;
  font-weight: 500;
}

.sub-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.sub-breakdown-table th {
  background: #f1f5f9;
  padding: 6px 10px;
  text-align: left;
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
}

.sub-breakdown-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
}

.grade-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f3e8ff;
  color: #7e22ce;
  font-weight: 800;
}

/* ── Section 5: Study Materials Category Pills & Cards ── */
.material-category-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  scrollbar-width: thin;
}

.category-pill {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.category-pill:hover {
  background: #f8fafc;
  color: #0f172a;
}

.category-pill.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.materials-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  flex-grow: 1;
  max-width: 400px;
}

.filter-search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.84rem;
}

.filter-dropdowns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  background: #ffffff;
  color: #1e293b;
  outline: none;
}

.materials-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.material-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}

.material-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.material-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.material-subject-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 4px;
}

.material-type-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.material-type-pill.faculty-verified {
  background: #ecfdf5;
  color: #059669;
}

.material-type-pill.peer-shared {
  background: #f1f5f9;
  color: #64748b;
}

.material-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #0f172a;
  line-height: 1.35;
}

.material-desc {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
  flex-grow: 1;
}

.material-meta-row {
  display: flex;
  justify-content: space-between;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  margin-bottom: 12px;
}

.material-meta-row small {
  display: block;
  color: #94a3b8;
  font-size: 0.65rem;
  font-weight: 700;
}

.material-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

.material-specs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #64748b;
}

.btn-helpful-vote {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.btn-helpful-vote:hover {
  background: #eff6ff;
  color: #2563eb;
}

.material-actions {
  display: flex;
  gap: 4px;
}

.btn-mat-action {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-mat-action:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-mat-action.download:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* ── Section 6: Admit Card Dashboard ── */
.admit-dashboard-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admit-exam-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 18px;
}

.exam-type-pill {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

.admit-exam-hero h4 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  color: #0f172a;
}

.admit-exam-hero p {
  margin: 0;
  font-size: 0.84rem;
  color: #64748b;
}

.admit-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.eligibility-checklist-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.checklist-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.check-item.valid {
  border-color: #bbf7d0;
}

.check-item.valid .check-icon {
  color: #16a34a;
}

.check-item.invalid {
  border-color: #fecaca;
}

.check-item.invalid .check-icon {
  color: #dc2626;
}

.check-item strong {
  display: block;
  font-size: 0.8rem;
  color: #0f172a;
}

.check-item p {
  margin: 2px 0 0;
  font-size: 0.74rem;
  color: #64748b;
}

.sitting-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.72rem;
  font-weight: 700;
}

.venue-pill {
  font-size: 0.78rem;
  color: #475569;
  font-weight: 600;
}

/* ── Section 7: Results & Digital Marksheets ── */
.marksheet-sheet-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.marksheet-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 2px solid #0f172a;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.marksheet-sheet-header h4 {
  margin: 0;
  font-size: 1.15rem;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.marksheet-sheet-header p {
  margin: 3px 0 0;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 700;
}

.marksheet-student-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 18px;
}

.marksheet-student-bar small {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 700;
}

.marksheet-student-bar strong {
  font-size: 0.85rem;
  color: #0f172a;
}

.marksheet-totals-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f5f9;
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.marksheet-totals-strip strong {
  font-size: 1.1rem;
  margin-left: 6px;
}

.grading-legend-box {
  margin-top: 14px;
  padding: 10px 14px;
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 8px;
  color: #854d0e;
  font-size: 0.74rem;
  line-height: 1.4;
}

/* ── Academic Transcript Sheet ── */
.transcript-preview-sheet {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.transcript-hero-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 2px solid #0f172a;
  margin-bottom: 20px;
}

.transcript-logo {
  width: 60px;
  height: 60px;
  -o-object-fit: contain;
     object-fit: contain;
}

.transcript-hero-header h4 {
  margin: 0;
  font-size: 1.2rem;
  color: #0f172a;
}

.transcript-hero-header h5 {
  margin: 3px 0;
  font-size: 0.95rem;
  color: #1e3a8a;
  letter-spacing: 0.5px;
}

.transcript-hero-header p {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
}

.transcript-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  background: #f8fafc;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.transcript-meta-grid small {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 700;
}

.transcript-summary-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: #f8fafc;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-top: 18px;
}

/* ── Calendar Events Timeline ── */
.calendar-events-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calendar-event-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.event-date-box {
  width: 140px;
  flex-shrink: 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.event-date-box strong {
  font-size: 0.8rem;
  color: #0f172a;
}

.event-cat-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.event-cat-tag.academic {
  background: #eff6ff;
  color: #1d4ed8;
}

.event-cat-tag.exam {
  background: #fef2f2;
  color: #dc2626;
}

.event-cat-tag.holiday {
  background: #fefce8;
  color: #854d0e;
}

/* ── Backlog & Supplementary Views ── */
.backlog-status-summary-card {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.backlog-status-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.backlog-status-main h4 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: #0f172a;
}

.backlog-status-main p {
  margin: 0;
  font-size: 0.84rem;
  color: #475569;
}

.backlog-metric {
  text-align: right;
}

.backlog-metric small {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 700;
}

.backlog-metric strong {
  font-size: 1.4rem;
}

.supplementary-guidelines-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
}

.supplementary-guidelines-card h5 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: #0f172a;
}

.supplementary-guidelines-card ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.6;
}

/* ── Syllabus Progress Tracker ── */
.syllabus-tracker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.syllabus-progress-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.progress-track-bg {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

.progress-fill-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.syllabus-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #64748b;
}

/* ── Academic Notices ── */
.notices-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.academic-notice-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.notice-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.notice-circ-tag {
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: monospace;
  font-weight: 700;
  color: #1e3a8a;
}

.notice-dept-tag {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
}

.notice-urgency-tag {
  background: #fee2e2;
  color: #dc2626;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
}

.notice-date {
  font-size: 0.78rem;
  color: #94a3b8;
}

.notice-title {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #0f172a;
}

.notice-body {
  margin: 0;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.5;
}

/* ── Universal Modals & Overlays ── */
.unit-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.unit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 0.84rem;
}

.unit-hours {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 1px 6px;
  border-radius: 4px;
}

.unit-topics {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

.learning-outcomes-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 14px;
  margin-top: 14px;
}

.learning-outcomes-box h5 {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: #166534;
}

.learning-outcomes-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.78rem;
  color: #15803d;
  line-height: 1.5;
}

.document-preview-viewport {
  background: #0f172a;
  border-radius: 10px;
  padding: 32px 20px;
  text-align: center;
  margin-bottom: 14px;
}

.btn-doc-download, .btn-doc-print {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-doc-download {
  background: #2563eb;
  color: #ffffff;
}

.btn-doc-print {
  background: #334155;
  color: #ffffff;
}

.material-detail-desc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.45;
}

.file-drop-card {
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
}
/* ==========================================================================
   Student Feedback & Appraisal Page Styling
   Theory Subjects & Laboratory / Practical Tables with 1-10 Ratings
   ========================================================================== */

.feedback-appraisal-page {
  padding: 0;
  color: #1e293b;
  font-family: inherit;
}

/* ── Floating Toast Banner ── */
.feedback-toast-banner {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #0f172a;
  color: #ffffff;
  border-left: 4px solid #22c55e;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 13px;
  font-weight: 700;
  animation: feedback-toast-slide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes feedback-toast-slide {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Main Top Section Tabs (Two Separate Sections) ── */
.feedback-section-tabs-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feedback-main-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.feedback-main-tab:hover {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.feedback-main-tab.active {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #ffffff !important;
  border-color: #1d4ed8;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.38);
}

.feedback-main-tab.active svg {
  color: #ffffff !important;
}

.feedback-main-tab-grievance.active {
  background: linear-gradient(135deg, #065f46 0%, #059669 100%) !important;
  border-color: #047857 !important;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.38) !important;
}

.tab-pill-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.07);
  color: inherit;
}

.feedback-main-tab.active .tab-pill-badge {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

/* ── Top Header Hero Card ── */
.feedback-top-card {
  margin-bottom: 22px;
  padding: 22px 26px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
  border-radius: 16px;
  color: #ffffff;
  box-shadow: 0 12px 28px -10px rgba(37, 99, 235, 0.45);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.grievance-hero-card {
  background: linear-gradient(135deg, #064e3b 0%, #059669 55%, #10b981 100%) !important;
  box-shadow: 0 12px 28px -10px rgba(5, 150, 105, 0.45) !important;
}

.grievance-badge-pill {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}

.feedback-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(52, 211, 153, 0.45);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #a7f3d0;
  width: -moz-fit-content;
  width: fit-content;
}

.feedback-top-main h1 {
  margin: 8px 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.feedback-top-desc {
  margin: 0;
  font-size: 13px;
  color: #e0e7ff;
  line-height: 1.5;
  max-width: 860px;
}

.feedback-top-desc strong {
  color: #ffffff;
}

/* Quick Navigation Links */
.feedback-quick-nav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.feedback-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.feedback-nav-chip:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #ffffff;
  transform: translateY(-1px);
}

.feedback-nav-chip-grievance {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(52, 211, 153, 0.55);
  color: #ecfdf5;
}

.feedback-nav-chip-grievance:hover {
  background: rgba(16, 185, 129, 0.42);
  border-color: #34d399;
  color: #ffffff;
}

/* Quick Presets Bar */
.feedback-quick-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
}

.preset-label {
  font-weight: 700;
  color: #bfdbfe;
}

.preset-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preset-buttons button {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-buttons button:hover {
  background: #ffffff;
  color: #1e3a8a;
  transform: translateY(-1px);
}

.feedback-saved-indicator {
  margin-left: auto;
  font-size: 11px;
  color: #a7f3d0;
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────
   FEEDBACK TABLE SECTION (EXACT REPLICA OF USER SCREENSHOTS)
   ───────────────────────────────────────────────────────────── */
.feedback-table-section {
  margin-bottom: 26px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* Table Header Bar (Solid Blue) */
.feedback-table-header-bar {
  background: #1e60aa;
  color: #ffffff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feedback-table-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feedback-table-title h2 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: 0.01em;
}

.feedback-table-counter {
  font-size: 11px;
  font-weight: 600;
  color: #e0f2fe;
}

/* Table Scroll Wrapper */
.feedback-table-wrapper {
  overflow-x: auto;
  width: 100%;
  background: #ffffff;
}

/* Main Data Table */
.feedback-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}

.feedback-data-table th,
.feedback-data-table td {
  border: 1px solid #d1d5db;
  padding: 6px 8px;
}

/* Table Head */
.feedback-data-table thead th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
  font-size: 10.5px;
  vertical-align: top;
  line-height: 1.32;
  padding: 8px 6px;
}

.col-idx {
  width: 30px;
  min-width: 30px;
  text-align: center;
  font-weight: 700;
  color: #475569;
}

.col-teacher {
  min-width: 155px;
  max-width: 185px;
  color: #0f172a;
  font-weight: 700;
  font-size: 11.5px;
}

.col-subject {
  min-width: 150px;
  max-width: 190px;
  color: #334155;
  font-size: 11px;
  font-weight: 500;
}

.col-question {
  min-width: 140px;
  max-width: 170px;
  vertical-align: top;
}

.question-header-text {
  font-size: 11px;
  font-weight: 700;
  color: #1e60aa;
  line-height: 1.38;
  white-space: normal;
  word-break: normal;
  overflow: visible;
  display: block;
  text-align: left;
}

/* Table Body Rows */
.feedback-data-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.feedback-data-table tbody tr:hover {
  background: #eef6ff;
}

.col-rating-cell {
  text-align: center;
  vertical-align: middle;
  padding: 4px;
}

/* ── Dropdown Select Box (Rating 1 to 10) ── */
.feedback-rating-select {
  width: 62px;
  height: 28px;
  padding: 2px 4px;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  background-color: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.feedback-rating-select:hover {
  border-color: #3b82f6;
  background-color: #f8fafc;
}

.feedback-rating-select:focus {
  border-color: #2563eb;
  outline: 2px solid rgba(37, 99, 235, 0.25);
  background-color: #ffffff;
}

/* ── Table Footer Actions Bar ([Update] & [Back]) ── */
.feedback-table-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #ffffff;
  border-top: 1px solid #cbd5e1;
}

.feedback-btn-submit,
.feedback-btn-update {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: #1f77b4;
  border: 1px solid #1a659a;
  border-radius: 4px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease;
}

.feedback-btn-submit:hover,
.feedback-btn-update:hover {
  background: #186397;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(31, 119, 180, 0.3);
}

.feedback-btn-submit:active,
.feedback-btn-update:active {
  transform: translateY(0);
}

.feedback-btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  background: #ef4444;
  border: 1px solid #dc2626;
  border-radius: 4px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease;
}

.feedback-btn-back:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.3);
}

.feedback-btn-back:active {
  transform: translateY(0);
}

/* ── Confidentiality Footer Note ── */
.feedback-confidential-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  color: #1e40af;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.feedback-confidential-note strong {
  color: #1e3a8a;
}
/* ==========================================================================
   Grievance Redressal Section Styles
   Exact replica of user screenshots for Apna Campus ERP Student Role
   ========================================================================== */

.grievance-redressal-container {
  margin-top: 26px;
  margin-bottom: 30px;
  font-family: inherit;
  color: #222222;
}

/* ── Top Section: Do you have any grievance? ── */
.grievance-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  padding: 4px 0 10px 0;
}

.grievance-accordion-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: #2c3e50;
  letter-spacing: -0.01em;
}

.grievance-accordion-title .toggle-icon {
  font-size: 20px;
  font-weight: 700;
  color: #333333;
  line-height: 1;
}

/* Green top accent line spanning full card width */
.grievance-card-divider {
  height: 2px;
  background-color: #00a65a;
  width: 100%;
  margin-bottom: 0;
}

/* Form Card Container */
.grievance-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 24px 28px 26px 28px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  margin-bottom: 28px;
}

.grievance-form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.grievance-form-label {
  font-size: 13px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.grievance-required-star {
  color: #e53935;
  font-weight: 800;
}

/* Select and Textarea inputs matching ERP screenshots */
.grievance-select-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  color: #333333;
  background-color: #ffffff;
  border: 1px solid #337ab7;
  border-radius: 3px;
  outline: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  cursor: pointer;
  -webkit-appearance: auto;
     -moz-appearance: auto;
          appearance: auto;
}

.grievance-select-input:focus {
  border-color: #23527c;
  box-shadow: 0 0 0 2px rgba(51, 122, 183, 0.25);
}

.grievance-textarea-input {
  width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  color: #333333;
  background-color: #ffffff;
  border: 1px solid #337ab7;
  border-radius: 3px;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.grievance-textarea-input:focus {
  border-color: #23527c;
  box-shadow: 0 0 0 2px rgba(51, 122, 183, 0.25);
}

/* Attached file preview chip */
.grievance-attached-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 5px 12px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 4px;
  font-size: 12px;
  color: #166534;
  font-weight: 600;
  width: -moz-fit-content;
  width: fit-content;
}

.grievance-attached-remove {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  padding: 0 2px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
}

/* Button Actions Bar */
.grievance-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-attach-document {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 24px;
  background-color: #2b88ad;
  color: #ffffff;
  border: 1px solid #236f8d;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-attach-document:hover {
  background-color: #236f8d;
}

.btn-request-grievance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 36px;
  background-color: #00a65a;
  color: #ffffff;
  border: 1px solid #008d4c;
  border-radius: 3px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-request-grievance:hover {
  background-color: #008d4c;
}

.btn-reset-grievance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 36px;
  background-color: #ffffff;
  color: #555555;
  border: 1px solid #d2d6de;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-reset-grievance:hover {
  background-color: #f4f4f4;
  border-color: #a6a6a6;
  color: #333333;
}

/* ── Bottom Section: Grievance History ── */
.grievance-history-section {
  margin-top: 32px;
}

.grievance-history-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.grievance-history-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: #333333;
}

.grievance-history-title svg {
  color: #222222;
}

.grievance-export-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-export-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 20px;
  background-color: #f39c12;
  color: #ffffff;
  border: 1px solid #e08e0b;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background-color 0.15s ease;
}

.btn-export-pdf:hover {
  background-color: #e08e0b;
}

.btn-export-excel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 20px;
  background-color: #3498db;
  color: #ffffff;
  border: 1px solid #2980b9;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background-color 0.15s ease;
}

.btn-export-excel:hover {
  background-color: #2980b9;
}

/* ── History Table ── */
.grievance-table-wrapper {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid #d2d6de;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.grievance-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.grievance-data-table th,
.grievance-data-table td {
  border: 1px solid #e7ebee;
  padding: 8px 10px;
  vertical-align: middle;
}

/* Primary Header Row */
.grievance-data-table thead tr.header-row th {
  background-color: #f9fbfd;
  color: #1e60aa;
  font-weight: 700;
  font-size: 12px;
  padding: 10px 8px;
  white-space: nowrap;
}

/* Filter Sub-Header Row */
.grievance-data-table thead tr.filter-row th {
  background-color: #ffffff;
  padding: 6px 6px;
  border-top: none;
}

.grievance-filter-input {
  width: 100%;
  height: 28px;
  padding: 2px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  font-size: 11.5px;
  color: #333333;
  box-sizing: border-box;
  outline: none;
}

.grievance-filter-input:focus {
  border-color: #337ab7;
  box-shadow: 0 0 2px rgba(51, 122, 183, 0.4);
}

.grievance-filter-select {
  width: 100%;
  height: 28px;
  padding: 2px 4px;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  font-size: 11.5px;
  color: #333333;
  background-color: #ffffff;
  box-sizing: border-box;
  outline: none;
  cursor: pointer;
}

.grievance-filter-select:focus {
  border-color: #337ab7;
}

/* Table Body */
.grievance-data-table tbody tr {
  transition: background-color 0.1s ease;
}

.grievance-data-table tbody tr:nth-child(even) {
  background-color: #fbfcfd;
}

.grievance-data-table tbody tr:hover {
  background-color: #f0f7ff;
}

.grievance-no-records {
  padding: 16px 14px !important;
  color: #4b5563;
  font-size: 12.5px;
  text-align: left;
  background-color: #ffffff;
}

/* Cell Column Specifics */
.col-num {
  text-align: center;
  font-weight: 700;
  width: 36px;
  min-width: 36px;
  color: #475569;
}

.col-nature {
  min-width: 160px;
  font-weight: 600;
  color: #0f172a;
}

.col-desc {
  min-width: 200px;
  color: #334155;
  line-height: 1.4;
}

.col-earlier {
  min-width: 110px;
  text-align: center;
}

.col-attach {
  min-width: 100px;
  text-align: center;
}

.col-creator {
  min-width: 140px;
  font-weight: 500;
}

.col-status {
  min-width: 120px;
  text-align: center;
}

.col-resolver {
  min-width: 140px;
  color: #475569;
}

.col-action {
  min-width: 170px;
  color: #334155;
  font-size: 11.5px;
}

/* Status Badges */
.badge-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-status-pending {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-status-review {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-status-resolved {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.badge-status-rejected {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Attachment link */
.grievance-attach-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  font-size: 11px;
}

.grievance-attach-none {
  color: #94a3b8;
  font-style: italic;
  font-size: 11px;
}

/* Toast Banner */
.grievance-alert-banner {
  padding: 10px 16px;
  border-radius: 4px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  animation: grievance-fade 0.2s ease-in-out;
}

.grievance-alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.grievance-alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes grievance-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .grievance-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-attach-document,
  .btn-request-grievance,
  .btn-reset-grievance {
    width: 100%;
  }
}
/* ==========================================================================
   Internship Student Profile CSS
   Exact match to User Screenshots (Info, Attendance, Marks, ID Card)
   ========================================================================== */

.isp-container {
  background: #ffffff;
  border: 1px solid #c7d8ed;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 24px;
  font-family: inherit;
  color: #1e293b;
}

/* ── Top Header Bar ── */
.isp-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #edf6ff 0%, #e1effe 100%);
  border-bottom: 1px solid #bfdbfe;
  padding: 12px 20px;
}

.isp-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.isp-header-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

.isp-header-left h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.2;
}

.isp-header-left p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #475569;
  font-weight: 500;
}

.isp-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.isp-btn-back:hover {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #94a3b8;
}

/* ── Main 2-Column Body Layout ── */
.isp-main-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 20px;
  padding: 18px 20px 24px;
  background: #fdfefe;
}

@media (max-width: 960px) {
  .isp-main-layout {
    grid-template-columns: 1fr;
  }
}

/* ── Left Column: Student Bio Card ── */
.isp-left-card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.04);
}

.isp-avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  margin-bottom: 12px;
  overflow: hidden;
}

.isp-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  background: #eff6ff;
}

.isp-student-name {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.isp-student-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.isp-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}

.isp-status-wrap {
  margin-bottom: 14px;
}

.isp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
}

/* Bio Info Table */
.isp-bio-table-card {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.isp-bio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}

.isp-bio-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  padding: 7px 8px;
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #e2e8f0;
  width: 44%;
  white-space: nowrap;
}

.isp-bio-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
  word-break: break-all;
}

.isp-bio-table tr:last-child th,
.isp-bio-table tr:last-child td {
  border-bottom: none;
}

.isp-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 10px;
}

.isp-link:hover {
  text-decoration: underline;
}

.isp-mobile-text {
  color: #1d4ed8;
  font-weight: 700;
}

/* ── Right Column: Tabs Navigation ── */
.isp-right-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.isp-tabs-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 2px solid #e2e8f0;
}

.isp-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 6px 6px 0 0;
}

.isp-tab-btn:hover {
  color: #2563eb;
  background: #f8fafc;
}

.isp-tab-btn.active {
  color: #1d4ed8;
  border-bottom-color: #2563eb;
  background: #eff6ff;
  font-weight: 700;
}

/* ── TAB 1: INFO ── */
.isp-details-box {
  background: #ffffff;
  border: 1.5px solid #93c5fd;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.05);
}

.isp-details-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 12px;
}

.isp-details-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.isp-subtle-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f7ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
}

.isp-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

/* 2x2 Grid Cards */
.isp-info-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 640px) {
  .isp-info-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

.isp-card-block {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.isp-card-block-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.isp-field-row {
  display: flex;
  align-items: flex-start;
  font-size: 11.5px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.isp-field-row:last-child {
  margin-bottom: 0;
}

.isp-field-label {
  width: 130px;
  color: #64748b;
  font-weight: 600;
  flex-shrink: 0;
}

.isp-field-val {
  color: #0f172a;
  font-weight: 600;
}

/* ── TAB 2 & 3: BLUE TITLE RIBBON ── */
.isp-blue-ribbon {
  background: #1f77b4;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px 6px 0 0;
  margin-bottom: 14px;
}

.isp-sub-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
}

/* Attendance Table */
.isp-table-wrap {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #ffffff;
}

.isp-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: center;
}

.isp-data-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
}

.isp-data-table td {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}

.isp-data-table tbody tr:hover {
  background: #f8fafc;
}

.isp-btn-toggle-view {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.isp-btn-toggle-view:hover {
  background: #e2e8f0;
}

/* Day-wise Status Badges */
.status-badge-p {
  color: #16a34a;
  font-weight: 700;
}

.status-badge-a {
  color: #dc2626;
  font-weight: 700;
}

.status-badge-h {
  color: #64748b;
  font-weight: 700;
}

/* Evaluation / Marks Table */
.marks-subject-cell {
  text-align: left;
}

.marks-subject-name {
  font-weight: 700;
  color: #0f172a;
  display: block;
}

.marks-category {
  font-size: 11px;
  color: #475569;
  display: block;
}

.marks-batch-tag {
  font-size: 10px;
  color: #64748b;
  display: block;
}

/* ── TAB 4: ID CARD ── */
.isp-idcard-tab-wrap {
  display: flex;
  flex-direction: column;
}

.isp-idcard-top-action {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.isp-btn-download-idcard {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #034694;
  color: #ffffff;
  border: 1px solid #02336d;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(3, 70, 148, 0.25);
  transition: all 0.15s ease;
}

.isp-btn-download-idcard:hover {
  background: #02336d;
}

.isp-idcard-center-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 30px;
}

/* Physical ID Card Badge Graphic */
.isp-id-badge {
  width: 360px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-family: inherit;
}

.isp-id-badge-header {
  background: #004b87;
  color: #ffffff;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.isp-id-header-text {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.isp-id-badge-body {
  display: flex;
  gap: 12px;
  padding: 14px 12px;
  background: #ffffff;
}

.isp-id-photo-frame {
  width: 78px;
  height: 96px;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.isp-id-photo {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.isp-id-fields-list {
  display: flex;
  flex-direction: column;
  gap: 2.5px;
  font-size: 9.5px;
  color: #1e293b;
  line-height: 1.35;
}

.isp-id-fields-list strong {
  color: #0f172a;
}

.isp-id-badge-footer {
  background: #dc2626;
  color: #ffffff;
  text-align: center;
  padding: 6px 8px;
}

.isp-id-footer-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.isp-id-footer-sub {
  display: block;
  font-size: 8px;
  opacity: 0.9;
}
/* ── Internship Page ── */
.internship-page { padding: 0; }

.internship-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.internship-kicker {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 4px;
  color: #1a5a8a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}

.internship-header h2 { margin: 0 0 4px; color: #0f172a; font-size: 22px; font-weight: 600; }
.internship-caption { margin: 0; color: #78857e; font-size: 11px; }

.internship-stats {
  display: flex;
  gap: 16px;
  padding: 12px 18px;
  border: 1px solid #c8dcea;
  border-radius: 8px;
  background: #f4f9fd;
  flex-shrink: 0;
}

.internship-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.internship-stats strong { font-size: 20px; color: #1a4a7a; }
.internship-stats small { font-size: 9px; color: #7090a0; }

.internship-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}

.internship-tabs button {
  padding: 8px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.internship-tabs button.active {
  border-bottom-color: #1a5a8a;
  color: #1a4a7a;
  font-weight: 600;
}

.internship-apply-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  background: #eff6ff;
  color: #2a6040;
  font-size: 11px;
}

.internship-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}

.internship-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 12px; }

.internship-list { display: flex; flex-direction: column; gap: 10px; }

.internship-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d0dcea;
  border-radius: 10px;
  background: #fff;
  transition: box-shadow .2s;
}

.internship-card:hover { box-shadow: 0 2px 10px rgba(30,80,140,.08); }
.internship-card.closed { opacity: .7; }

.internship-card-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.internship-card-body { flex: 1; min-width: 0; }

.internship-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.internship-card-top h3 { margin: 0 0 3px; font-size: 13px; color: #1e3050; }

.internship-company {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 11px;
  color: #7090a0;
}

.internship-status-tag {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 600;
  flex-shrink: 0;
}

.internship-status-tag.open { background: #d4edda; color: #155724; }
.internship-status-tag.closed { background: #f1f5f9; color: #64748b; font-weight: 600; }

.internship-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 10.5px;
  color: #475569;
  font-weight: 500;
  margin-bottom: 8px;
}

.internship-meta span { display: flex; align-items: center; gap: 4px; }

.internship-skills { display: flex; flex-wrap: wrap; gap: 5px; }

.skill-tag {
  padding: 2px 8px;
  border-radius: 12px;
  background: #edf2ff;
  color: #3a5db5;
  font-size: 9px;
  font-weight: 500;
}

.internship-card-action { flex-shrink: 0; }

.internship-apply-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border: 0;
  border-radius: 6px;
  background: #1a5a8a;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.internship-apply-btn:hover { background: #144a7a; }

.internship-applied {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #27ae60;
  font-size: 11px;
  font-weight: 600;
}

.internship-closed-tag { font-size: 10px; color: #999; }

.internship-empty { padding: 30px; text-align: center; color: #88978d; }

.internship-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px;
  color: #88978d;
}

.internship-empty-state svg { color: #c0d0d8; }
.internship-empty-state strong { color: #4a6370; font-size: 13px; }
.internship-empty-state p { margin: 0; font-size: 11px; }

/* Applications */
.application-list { display: flex; flex-direction: column; gap: 10px; }

.application-card {
  padding: 16px;
  border: 1px solid #d0dcea;
  border-radius: 8px;
  background: #fff;
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.app-card-header h3 { margin: 0 0 3px; font-size: 13px; color: #1e3050; }
.app-card-header p { margin: 0; display: flex; align-items: center; gap: 4px; font-size: 11px; color: #7090a0; }

.app-status-tag {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

.app-status-tag.under_review { background: #fff3cd; color: #856404; }
.app-status-tag.selected { background: #d4edda; color: #155724; }
.app-status-tag.rejected { background: #fdeaea; color: #c0392b; }

.app-card-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 10px; color: #7090a0; }
.app-card-meta span { display: flex; align-items: center; gap: 4px; }

/* Documents */
.documents-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border: 1px solid #d0dcea;
  border-radius: 6px;
  background: #f4f9fd;
  color: #4a6a80;
  font-size: 11px;
}

.document-upload-list { display: flex; flex-direction: column; gap: 8px; }

.document-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.document-row-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.document-row-left svg { color: #4a7a5a; flex-shrink: 0; }
.document-row-left strong { display: block; font-size: 12px; color: #1e3028; }
.document-row-left small { font-size: 9px; color: #88978d; }

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

.document-uploaded {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #27ae60;
  font-weight: 600;
}

.document-update-btn,
.document-upload-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: 1px solid #d0dcea;
  border-radius: 4px;
  background: #f4f9fd;
  color: #3a5a7a;
  cursor: pointer;
  font-size: 10px;
}

.document-upload-btn {
  border-color: #1a5a8a;
  background: #eaf4ff;
  color: #1a5a8a;
}

/* ==========================================================================
   Horizontal Row Format Navigation (Matching Screenshot)
   ========================================================================== */
.internship-row-nav-wrapper {
  margin-bottom: 22px;
}

.internship-row-nav-bar {
  display: flex;
  align-items: center;
  background-color: #2b2c30;
  border: 1px solid #3c3d42;
  border-radius: 8px;
  padding: 6px 10px;
  gap: 4px;
  overflow-x: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  scrollbar-width: thin;
}

.internship-row-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 7px 14px 7px 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  margin-right: 4px;
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.internship-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
}

.internship-brand-text {
  letter-spacing: 0.01em;
}

.internship-brand-chevron {
  color: #9ca3af;
  margin-left: 2px;
}

.internship-row-items {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.internship-row-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d1d5db;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.internship-row-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.internship-row-btn.active {
  background-color: #1e3a5f;
  color: #93c5fd;
  border-color: #3b82f6;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.internship-row-btn .sec-chevron {
  font-weight: 700;
  color: #9ca3af;
  font-size: 13.5px;
  transition: color 0.15s ease;
}

.internship-row-btn.active .sec-chevron {
  color: #60a5fa;
}

.internship-row-btn .sec-bell-icon {
  color: #fbbf24;
  flex-shrink: 0;
}

.internship-row-btn.active .sec-bell-icon {
  color: #fde047;
}

/* ==========================================================================
   Sub-sections Layout & Styling
   ========================================================================== */
.internship-sub-header {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.internship-sub-header h3 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.internship-sub-header p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

/* KPI Strip */
.internship-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.internship-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.kpi-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-body strong {
  display: block;
  font-size: 17px;
  color: #0f172a;
  font-weight: 700;
}

.kpi-body small {
  font-size: 11px;
  color: #64748b;
}

/* Active Internship Card */
.active-internship-spotlight {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 18px;
  border: 1px solid #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.active-internship-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.active-internship-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.active-internship-details h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
}

.active-internship-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 6px;
}

/* Form Card */
.internship-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-group-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group-item label {
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
}

.form-input-field,
.form-select-field,
.form-textarea-field {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  color: #0f172a;
  outline: none;
  background: #ffffff;
  transition: border-color 0.15s ease;
}

.form-input-field:focus,
.form-select-field:focus,
.form-textarea-field:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.form-textarea-field {
  min-height: 80px;
  resize: vertical;
}

.form-actions-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.btn-primary-internship {
  background: #1e3a5f;
  color: #ffffff;
  border: 1px solid #1e3a5f;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-primary-internship:hover {
  background: #152b47;
}

.btn-secondary-internship {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

/* Tables in Subsections */
.internship-data-table-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
}

.internship-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.internship-data-table th {
  background: #f8fafc;
  color: #1e3a5f;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.internship-data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.internship-data-table tbody tr:hover {
  background: #f8fafc;
}

/* Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 600;
}

.badge-status.approved {
  background: #dcfce7;
  color: #15803d;
}

.badge-status.pending {
  background: #fef3c7;
  color: #b45309;
}

/* Rating Stars / Numbers */
.rating-pills-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.rating-pill-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.rating-pill-btn:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.rating-pill-btn.active {
  background: #1e3a5f;
  color: #ffffff;
  border-color: #1e3a5f;
}

/* Certificate Card */
.certificate-display-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 2px dashed #93c5fd;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.cert-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cert-icon-seal {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eff6ff;
  color: #1e40af;
  border: 2px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Quiz Card */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.quiz-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quiz-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Exam Viva Box */
.exam-defense-banner {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #ffffff;
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 12px rgba(49, 46, 129, 0.2);
}

/* ==========================================================================
   ERP STYLES MATCHING THE 3 USER SCREENSHOTS
   (Image 1: Bonafide, Image 2: Certificate, Image 3: Enrollment)
   ========================================================================== */

.erp-bonafide-container,
.erp-certificate-container,
.erp-enrollment-container {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Header Row Image 1: ✹ My Bonafide Certificate */
.erp-bonafide-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.erp-bonafide-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 500;
  color: #2b2b2b;
  letter-spacing: -0.01em;
}

.erp-starburst-icon {
  color: #1e1e1e;
  width: 22px;
  height: 22px;
}

/* Cyan Divider Line matching Image 1 */
.erp-cyan-divider {
  width: 100%;
  height: 2px;
  background-color: #67c2ef;
  margin: 8px 0 16px 0;
}

/* Header Row Images 2 & 3: := My Internship Certificates / My Enrollments */
.erp-section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.erp-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 500;
  color: #2b2b2b;
}

.erp-list-icon {
  color: #2b2b2b;
  width: 20px;
  height: 20px;
}

/* Notice Banner matching Image 2 */
.erp-notice-banner {
  background-color: #fffdf0;
  border: 1px solid #faebcc;
  border-radius: 4px;
  padding: 14px 20px;
  margin-bottom: 18px;
  color: #8a6d3b;
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

.erp-notice-banner strong {
  color: #6d552e;
  font-weight: 700;
}

/* Top Action/Search Bar matching Image 3 */
.erp-enrollment-bar {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  padding: 8px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
}

/* Counter: Showing 1-2 of 2 items. */
.erp-table-counter {
  font-size: 12px;
  color: #737373;
  margin: 10px 0 8px 0;
}

/* Buttons matching screenshots */
.erp-btn-green {
  background-color: #00a65a;
  color: #ffffff;
  border: 1px solid #008d4c;
  border-radius: 3px;
  padding: 6px 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.erp-btn-green:hover {
  background-color: #008d4c;
}

.erp-btn-blue {
  background-color: #337ab7;
  color: #ffffff;
  border: 1px solid #2e6da4;
  border-radius: 3px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease;
}

.erp-btn-blue:hover {
  background-color: #286090;
}

.erp-btn-primary-action {
  background-color: #1e3a5f;
  color: #ffffff;
  border: 1px solid #1e3a5f;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.erp-btn-primary-action:hover {
  background-color: #152b47;
}

/* Table Responsive Wrap */
.erp-table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}

/* The Classic ERP Table */
.erp-portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  background: #ffffff;
  text-align: left;
}

.erp-portal-table th {
  border: 1px solid #e5e7eb;
  padding: 9px 12px;
  color: #317eac;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  background-color: #ffffff;
  letter-spacing: 0.02em;
}

.erp-portal-table td {
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  color: #333333;
  vertical-align: middle;
}

.erp-portal-table tbody tr:hover {
  background-color: #f9fbfe;
}

/* Subheader Filter Row with Inputs */
.erp-table-filter-row td {
  padding: 5px 8px;
  background-color: #ffffff;
}

.erp-table-filter-input {
  width: 100%;
  height: 28px;
  padding: 2px 8px;
  font-size: 11.5px;
  color: #333333;
  border: 1px solid #cccccc;
  border-radius: 3px;
  background-color: #ffffff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.erp-table-filter-input:focus {
  border-color: #66afe9;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px rgba(102, 175, 233, 0.5);
}

/* Status Badges */
.erp-status-approved-thumb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #16a34a;
  font-weight: 700;
  font-size: 12.5px;
}

.erp-thumb-emoji {
  font-size: 14px;
}

.erp-badge-status {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
}

.erp-badge-status.approved {
  color: #16a34a;
}

.erp-badge-status.pending {
  color: #d97706;
}

/* Empty row matching Image 1: No results found. */
.erp-no-results-row td {
  padding: 14px 16px;
  color: #4b5563;
  font-size: 13px;
  background-color: #ffffff;
}

/* ─────────────────────────────────────────────────────────────
   ERP MODALS (Apply, Upload, Enroll, Printables)
   ───────────────────────────────────────────────────────────── */
.erp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.erp-modal-card {
  background: #ffffff;
  border-radius: 10px;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid #cbd5e1;
  max-height: 90vh;
  overflow-y: auto;
  animation: erpModalFadeIn 0.2s ease-out;
}

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

.erp-modal-header {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
}

.erp-modal-close {
  background: transparent;
  border: 0;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.erp-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.erp-modal-notice {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  padding: 10px 16px;
  margin: 16px 22px 0;
  font-size: 12px;
  color: #1e40af;
  border-radius: 0 4px 4px 0;
}

.erp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px 22px 8px;
}

.erp-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.erp-form-group label {
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
}

.erp-form-input,
.erp-form-select {
  padding: 7px 11px;
  font-size: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  outline: none;
  background: #ffffff;
  color: #0f172a;
  transition: border-color 0.15s ease;
}

.erp-form-input:focus,
.erp-form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.erp-form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 22px 14px;
  font-size: 11.5px;
  color: #475569;
}

.erp-form-checkbox-row input {
  margin-top: 2px;
}

.erp-modal-footer {
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  border-bottom-left-radius: 9px;
  border-bottom-right-radius: 9px;
}

.erp-btn-secondary {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.erp-btn-primary {
  background: #1e3a5f;
  color: #ffffff;
  border: 1px solid #1e3a5f;
  padding: 7px 18px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.erp-btn-primary:hover {
  background: #152b47;
}

/* Enrollment Mode Radios */
.erp-enroll-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 22px 0;
}

.erp-mode-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #ffffff;
}

.erp-mode-radio-card.active {
  border-color: #2563eb;
  background: #f0f7ff;
}

.erp-mode-radio-card input {
  margin-top: 3px;
}

.erp-mode-radio-card strong {
  display: block;
  font-size: 12px;
  color: #0f172a;
}

.erp-mode-radio-card small {
  font-size: 10.5px;
  color: #64748b;
  display: block;
  margin-top: 2px;
}

/* Printable Document Sheet */
.erp-cert-preview-card {
  max-width: 680px;
}

.bonafide-document-sheet {
  background: #ffffff;
  border: 1px solid #d1d5db;
  padding: 30px;
  margin: 18px 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: 'Times New Roman', Times, serif, sans-serif;
}

.bonafide-doc-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bonafide-college-logo {
  font-size: 40px;
}

.bonafide-college-meta h3 {
  margin: 0 0 2px;
  font-size: 16px;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.bonafide-college-meta p {
  margin: 0;
  font-size: 11px;
  color: #475569;
}

.bonafide-college-meta small {
  display: block;
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
}

.bonafide-doc-line {
  border: 0;
  border-top: 2px solid #0f172a;
  margin: 12px 0 14px;
}

.bonafide-doc-ref-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #334155;
  margin-bottom: 20px;
}

.bonafide-doc-title {
  text-align: center;
  margin-bottom: 22px;
}

.bonafide-doc-title h2 {
  margin: 0 0 4px;
  font-size: 18px;
  color: #0f172a;
  text-decoration: underline;
  letter-spacing: 0.03em;
}

.bonafide-doc-title span {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.08em;
}

.bonafide-doc-body {
  font-size: 13.5px;
  line-height: 1.8;
  color: #1e293b;
  text-align: justify;
}

.bonafide-doc-body p {
  margin: 0 0 10px;
}

.bonafide-doc-sign-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 36px;
  padding-top: 10px;
}

.official-round-seal {
  width: 90px;
  height: 90px;
  border: 2px dashed #dc2626;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  font-size: 7.5px;
  font-weight: 700;
  text-align: center;
  transform: rotate(-12deg);
  opacity: 0.85;
}

.official-round-seal strong {
  font-size: 9px;
  margin: 2px 0;
}

.bonafide-signature-box {
  text-align: center;
}

.signature-font {
  font-family: 'Brush Script MT', cursive, sans-serif;
  font-size: 22px;
  color: #1e3a5f;
  margin-bottom: 4px;
}

@media print {
  .no-print {
    display: none !important;
  }
  .erp-modal-overlay {
    position: static;
    background: transparent;
    padding: 0;
  }
  .erp-modal-card {
    border: none;
    box-shadow: none;
    max-width: 100%;
  }
  .bonafide-document-sheet {
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
  }
}

/* ── Library Page ── */
.library-page { padding: 0; }

.library-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.library-kicker {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 4px;
  color: #2563eb;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}

.library-header h2 { margin: 0 0 4px; color: #0f172a; font-size: 22px; font-weight: 600; }
.library-caption { margin: 0; color: #64748b; font-size: 11px; }

.library-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e40af;
  flex-shrink: 0;
}

.library-hours strong { display: block; font-size: 11px; margin-bottom: 1px; }
.library-hours small { font-size: 9px; color: #3b82f6; }

.library-summary-strip {
  display: flex;
  gap: 20px;
  padding: 12px 16px;
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.library-summary-strip > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #475569;
}

.library-summary-strip svg { color: #2563eb; }
.library-summary-strip strong { font-size: 16px; color: #0f172a; }
.library-summary-strip small { font-size: 9.5px; color: #64748b; font-weight: 500; }

.library-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}

.library-tabs button {
  padding: 8px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.library-tabs button.active {
  border-bottom-color: #2563eb;
  color: #1d4ed8;
  font-weight: 600;
}

.library-reserve-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 11px;
}

/* Catalog */
.catalog-controls { margin-bottom: 14px; }

.library-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #64748b;
}

.library-search svg { flex-shrink: 0; }
.library-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 12px; color: #0f172a; }

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catalog-filters button {
  padding: 4px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  font-size: 10px;
}

.catalog-filters button.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.book-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  transition: box-shadow .2s;
}

.book-card:hover { box-shadow: 0 2px 10px rgba(37,99,235,0.08); }
.book-card.unavailable { opacity: .75; }

.book-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
}

.book-category {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 8.5px;
  font-weight: 600;
  margin-bottom: 3px;
}

.book-card-body h3 { margin: 0 0 4px; font-size: 12px; color: #0f172a; line-height: 1.4; }

.book-author {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 6px;
  font-size: 10px;
  color: #94a3b8;
}

.book-availability { display: flex; align-items: center; gap: 5px; font-size: 10px; }
.book-availability .available { color: #27ae60; font-weight: 600; }
.book-availability .not-available { color: #c0392b; font-weight: 600; }
.book-availability small { color: #b0c0b8; }

.book-card-actions { display: flex; gap: 6px; margin-top: auto; }

.book-reserve-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid #2563eb;
  border-radius: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
}

.book-reserve-btn:disabled { border-color: #d0d8d0; background: #f8faf7; color: #aaa; cursor: not-allowed; }
.book-reserve-btn:not(:disabled):hover { background: #f5e8c0; }

.book-reserved {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #27ae60;
  font-size: 10px;
  font-weight: 600;
  flex: 1;
}

.book-detail-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f8faf7;
  color: #64748b;
  cursor: pointer;
  font-size: 10px;
}

.library-empty { color: #64748b; font-size: 12px; font-weight: 500; padding: 20px; text-align: center; grid-column: 1/-1; }

/* Issued Books */
.issued-list { display: flex; flex-direction: column; gap: 10px; }

.issued-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.issued-card.overdue { border-color: #f5c6c6; background: #fff9f9; }

.issued-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  flex-shrink: 0;
}

.issued-card.overdue .issued-icon { background: #fdeaea; color: #c0392b; }

.issued-body { flex: 1; min-width: 0; }
.issued-body h3 { margin: 0 0 5px; font-size: 12px; color: #0f172a; }

.issued-meta { display: flex; gap: 14px; font-size: 10.5px; color: #64748b; font-weight: 500; }

.issued-fine {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-size: 10px;
  color: #c0392b;
}

.issued-status-tag {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

.issued-status-tag.issued { background: #d4edda; color: #155724; }
.issued-status-tag.overdue { background: #fdeaea; color: #c0392b; }

.issued-total-fine {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #f5c6c6;
  border-radius: 6px;
  background: #fff9f9;
  font-size: 11px;
  color: #8b2020;
}

.issued-total-fine svg { color: #c0392b; }
.issued-total-fine span { flex: 1; }

.pay-fine-btn {
  padding: 5px 12px;
  border: 1px solid #c0392b;
  border-radius: 4px;
  background: #c0392b;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}

.library-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px;
  color: #94a3b8;
  text-align: center;
}

.library-empty-state svg { color: #c0d0c8; }
.library-empty-state strong { color: #4a6356; font-size: 13px; }
.library-empty-state p { margin: 0; font-size: 11px; }

/* History */
.history-table-wrap { overflow-x: auto; }

.library-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.library-table th {
  padding: 9px 12px;
  background: #f4f7ee;
  color: #5a6840;
  font-size: 10px;
  font-weight: 600;
  text-align: left;
}

.library-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf0e8;
  color: #3d4030;
}

.history-status {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
}

.history-status.returned { background: #d4edda; color: #155724; }

/* Blue & White Library Styling Overrides */
.library-hours { background: #eff6ff !important; border: 1px solid #bfdbfe !important; color: #1e40af !important; border-radius: 10px !important; }
.library-hours strong { color: #1e3a8a !important; }
.library-summary-strip { background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-radius: 12px !important; box-shadow: 0 2px 6px rgba(0,0,0,0.02) !important; }
.library-summary-strip svg { color: #2563eb !important; }
.library-summary-strip strong { color: #0f172a !important; }
.book-card { background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-radius: 14px !important; box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important; }
.book-card:hover { border-color: #93c5fd !important; box-shadow: 0 8px 20px rgba(37,99,235,0.08) !important; transform: translateY(-2px); }
.book-card-icon { background: #eff6ff !important; color: #2563eb !important; border-radius: 10px !important; }
.book-category { background: #eff6ff !important; color: #2563eb !important; font-weight: 600 !important; }
.book-reserve-btn { background: #2563eb !important; color: #ffffff !important; border: 1px solid #2563eb !important; border-radius: 8px !important; font-weight: 600 !important; transition: all 0.2s; }
.book-reserve-btn:hover { background: #1d4ed8 !important; }
.book-ecopy-btn { background: #ffffff !important; color: #475569 !important; border: 1px solid #cbd5e1 !important; border-radius: 8px !important; font-weight: 500 !important; }
.book-ecopy-btn:hover { background: #eff6ff !important; color: #2563eb !important; border-color: #93c5fd !important; }
.catalog-filters button.active { background: #2563eb !important; color: #ffffff !important; border-color: #2563eb !important; box-shadow: 0 2px 6px rgba(37,99,235,0.2) !important; }
.library-tabs button.active { border-bottom-color: #2563eb !important; color: #2563eb !important; font-weight: 700 !important; }


/* ========================================================
   HIGH-CONTRAST BOLD LIBRARY PAGE TYPOGRAPHY
   ======================================================== */

.library-header h2 {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em;
}
.library-kicker {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #2563eb !important;
  letter-spacing: 0.12em !important;
}
.library-caption {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #475569 !important;
}

.library-hours strong {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #1e3a8a !important;
}
.library-hours small {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #2563eb !important;
}

.library-summary-strip > div {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #334155 !important;
}
.library-summary-strip strong {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.library-tabs button {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #475569 !important;
}
.library-tabs button.active {
  font-weight: 800 !important;
  color: #2563eb !important;
  border-bottom-width: 3px !important;
}

.catalog-filters button {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #334155 !important;
}
.catalog-filters button.active {
  font-weight: 800 !important;
  color: #ffffff !important;
}

.library-search input {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
}

.book-card-body h3 {
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  color: #0f172a !important;
}
.book-category {
  font-size: 9.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
}
.book-author {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #475569 !important;
}
.book-availability {
  font-size: 11.5px !important;
  font-weight: 700 !important;
}
.book-reserve-btn, .book-ecopy-btn {
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}
/* ==========================================================================
   Library Books View Styles
   Matches User Screenshots (Issued Books & Available Books in Library)
   ========================================================================== */

.library-books-erp-container {
  margin-top: 14px;
  margin-bottom: 24px;
  font-family: inherit;
  color: #222222;
}

/* ── Top Bar with "View Library of Books" Button (Image 1) ── */
.library-erp-top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.btn-view-library-books {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #333333;
  color: #ffffff;
  border: 1px solid #222222;
  border-radius: 3px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn-view-library-books:hover {
  background-color: #1a1a1a;
  transform: translateY(-1px);
}

.btn-view-issued-books {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #2b88ad;
  color: #ffffff;
  border: 1px solid #1f6f8d;
  border-radius: 3px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn-view-issued-books:hover {
  background-color: #1f6f8d;
  transform: translateY(-1px);
}

/* ── Header Title (Image 2: := Available Books in Library) ── */
.library-available-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.library-available-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #222222;
}

.library-available-title svg {
  color: #333333;
}

/* ── Table Card & Wrapper ── */
.library-table-card {
  background: #ffffff;
  border: 1px solid #d2d6de;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
  margin-bottom: 16px;
}

.library-erp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.library-erp-table th,
.library-erp-table td {
  border: 1px solid #e7ebee;
  padding: 8px 10px;
  vertical-align: middle;
}

/* Table Headers (Blue Text Matching Screenshot) */
.library-erp-table thead tr.header-row th {
  background-color: #f9fbfd;
  color: #2b88ad;
  font-weight: 700;
  font-size: 12px;
  padding: 10px 8px;
  white-space: nowrap;
}

.library-erp-table thead tr.header-row th.sortable-th {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.library-erp-table thead tr.header-row th.sortable-th:hover {
  background-color: #eef6ff;
  color: #1a6080;
}

/* Sub-Header Filter Row (Image 2) */
.library-erp-table thead tr.filter-row th {
  background-color: #ffffff;
  padding: 6px 6px;
  border-top: none;
}

.lib-filter-input {
  width: 100%;
  height: 26px;
  padding: 2px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  font-size: 11.5px;
  color: #333333;
  box-sizing: border-box;
  outline: none;
}

.lib-filter-input:focus {
  border-color: #2b88ad;
  box-shadow: 0 0 2px rgba(43, 136, 173, 0.4);
}

.lib-filter-select {
  width: 100%;
  height: 26px;
  padding: 2px 4px;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  font-size: 11.5px;
  color: #333333;
  background-color: #ffffff;
  box-sizing: border-box;
  outline: none;
  cursor: pointer;
}

.lib-filter-select:focus {
  border-color: #2b88ad;
}

/* Table Body */
.library-erp-table tbody tr {
  transition: background-color 0.1s ease;
}

.library-erp-table tbody tr:nth-child(even) {
  background-color: #fbfcfd;
}

.library-erp-table tbody tr:hover {
  background-color: #f0f7ff;
}

/* Empty State ("No books issued yet." from Image 1) */
.library-empty-cell {
  padding: 14px 12px !important;
  color: #333333;
  font-size: 12px;
  background-color: #ffffff;
  text-align: left;
}

/* Ghost Grid Rows to match empty ERP table */
.library-ghost-row td {
  height: 28px;
  background-color: #ffffff;
}

/* Column Widths & Alignments */
.col-lib-num {
  width: 36px;
  min-width: 36px;
  text-align: center;
  font-weight: 700;
  color: #475569;
}

.col-lib-bookno {
  min-width: 90px;
  font-weight: 600;
  color: #1e293b;
}

.col-lib-title {
  min-width: 280px;
  color: #0f172a;
  font-weight: 500;
}

.col-lib-author {
  min-width: 160px;
  color: #334155;
  font-weight: 500;
}

.col-lib-cost {
  min-width: 95px;
  color: #1e293b;
  font-weight: 600;
  white-space: nowrap;
}

.col-lib-almira {
  min-width: 70px;
  color: #1e293b;
  font-weight: 600;
  text-align: center;
}

/* ── Pagination Row (Image 2) ── */
.library-pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 10px;
  margin-bottom: 20px;
}

.library-pagination {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 3px;
  border: 1px solid #d2d6de;
  overflow: hidden;
}

.library-pagination button {
  background-color: #ffffff;
  color: #337ab7;
  border: none;
  border-right: 1px solid #d2d6de;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 32px;
}

.library-pagination button:last-child {
  border-right: none;
}

.library-pagination button:hover:not(:disabled):not(.active) {
  background-color: #eeeeee;
  color: #23527c;
}

.library-pagination button.active {
  background-color: #337ab7;
  color: #ffffff;
  cursor: default;
}

.library-pagination button:disabled {
  color: #999999;
  cursor: not-allowed;
  background-color: #fbfbfb;
}

/* Category Pill Badges */
.lib-cat-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  margin-left: 6px;
}
/* ── Online Exam Page ── */
.online-exam-page { padding: 0; min-height: 400px; }

.online-exam-header { margin-bottom: 20px; }

.online-exam-kicker {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 4px;
  color: #4a1fa0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}

.online-exam-header h2 { margin: 0 0 4px; color: #0f172a; font-size: 22px; font-weight: 600; }
.online-exam-caption { margin: 0; color: #78857e; font-size: 11px; }

.online-exam-list { display: flex; flex-direction: column; gap: 12px; }

.online-exam-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #ddd8f0;
  border-radius: 10px;
  background: #fff;
  transition: box-shadow .2s;
}

.online-exam-card:hover { box-shadow: 0 2px 10px rgba(80,60,160,.08); }
.online-exam-card.completed { opacity: .85; border-color: #c8d8c2; }

.oec-subject { display: flex; flex-direction: column; align-items: center; gap: 3px; flex-shrink: 0; width: 52px; }

.oec-code {
  padding: 2px 6px;
  border-radius: 3px;
  background: #ede8ff;
  color: #5a3aac;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  font-family: monospace;
}

.oec-subject-name { font-size: 9.5px; font-weight: 600; color: #475569; text-align: center; line-height: 1.2; }

.oec-body { flex: 1; min-width: 0; }
.oec-body h3 { margin: 0 0 6px; font-size: 13px; color: #2a2050; }

.oec-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 10px;
  color: #7a7090;
}

.oec-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.oec-action { flex-shrink: 0; }

.oec-start-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  border: 0;
  border-radius: 6px;
  background: #5b3fd4;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background .2s;
}

.oec-start-btn:hover { background: #4a2fb8; }

.oec-completed {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2e7d4a;
}

.oec-completed svg { color: #27ae60; }
.oec-completed strong { font-size: 14px; color: #1e5c38; }
.oec-completed small { font-size: 9px; color: #7a9a80; display: block; }

/* Instructions */
.exam-instructions {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid #ddd8f0;
  border-radius: 12px;
  background: #fff;
}

.instructions-header {
  text-align: center;
  margin-bottom: 24px;
}

.instructions-header svg { color: #5b3fd4; margin-bottom: 10px; }
.instructions-header h2 { margin: 0 0 4px; color: #2a2050; font-size: 20px; }
.instructions-header p { margin: 0; color: #64748b; font-size: 12.5px; font-weight: 500; }

.instructions-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.instructions-meta-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border: 1px solid #e0d8f8;
  border-radius: 8px;
  background: #f8f6ff;
  font-size: 10px;
  color: #7060a0;
}

.instructions-meta-grid > div svg { color: #5b3fd4; }
.instructions-meta-grid > div strong { font-size: 14px; color: #2a2050; }

.instructions-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.instructions-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #4a4060;
}

.instructions-list svg { color: #27ae60; flex-shrink: 0; margin-top: 1px; }

.instructions-actions { display: flex; gap: 10px; justify-content: center; }

.instructions-cancel {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 20px;
  border: 1px solid #d0c8e8;
  border-radius: 6px;
  background: #fff;
  color: #7060a0;
  cursor: pointer;
  font-size: 12px;
}

.instructions-start {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 24px;
  border: 0;
  border-radius: 6px;
  background: #5b3fd4;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.instructions-start:hover { background: #4a2fb8; }

/* Exam Active */
.exam-active { background: #f6f4ff; min-height: 100vh; }

.exam-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid #d8d0f0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(80,60,180,.08);
}

.exam-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font-size: 12px;
  color: #5a4080;
  font-weight: 500;
}

.exam-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid #e0d8f8;
  border-radius: 20px;
  background: #f0ecff;
  color: #2a2050;
  font-size: 14px;
}

.exam-timer strong { font-variant-numeric: tabular-nums; font-weight: 700; }

.exam-submit-btn {
  padding: 7px 18px;
  border: 0;
  border-radius: 6px;
  background: #c0392b;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.exam-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  padding: 16px;
  align-items: start;
}

.exam-question-area { background: #fff; border: 1px solid #ddd8f0; border-radius: 10px; padding: 20px; }

.exam-question-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 8px;
}

.exam-progress-bar {
  height: 4px;
  border-radius: 2px;
  background: #e8e4f8;
  margin-bottom: 20px;
  overflow: hidden;
}

.exam-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: #5b3fd4;
  transition: width .3s;
}

.exam-question-card {}

.exam-question-text {
  margin: 0 0 16px;
  font-size: 14px;
  color: #1e1840;
  line-height: 1.6;
}

.q-number { font-weight: 700; color: #5b3fd4; margin-right: 6px; }

.exam-options { display: flex; flex-direction: column; gap: 8px; }

.exam-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid #e0d8f8;
  border-radius: 8px;
  background: #fafaff;
  color: #3a3060;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  transition: border-color .15s, background .15s;
}

.exam-option:hover { border-color: #8b6fdc; background: #f5f0ff; }
.exam-option.selected { border-color: #5b3fd4; background: #ede8ff; font-weight: 500; }
.exam-option input[type=radio] { display: none; }

.opt-letter { font-weight: 700; color: #8b6fdc; min-width: 14px; }

.exam-nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.exam-nav-buttons button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  border: 1px solid #d0c8e8;
  border-radius: 6px;
  background: #fff;
  color: #5b3fd4;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.exam-nav-buttons button:disabled { opacity: .4; cursor: not-allowed; }
.exam-nav-buttons button:not(:disabled):hover { background: #f0ecff; }

/* Question Palette */
.exam-palette {
  background: #fff;
  border: 1px solid #ddd8f0;
  border-radius: 10px;
  padding: 14px;
}

.exam-palette > p { margin: 0 0 10px; font-size: 11px; color: #6a60a0; font-weight: 600; }

.palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-bottom: 12px;
}

.palette-btn {
  padding: 6px 4px;
  border: 1px solid #d8d0f0;
  border-radius: 4px;
  background: #fafaff;
  color: #5a4a80;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}

.palette-btn.answered { background: #27ae60; border-color: #27ae60; color: #fff; }
.palette-btn.current { background: #5b3fd4; border-color: #5b3fd4; color: #fff; }

.palette-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 9.5px;
  color: #475569;
  font-weight: 500;
}

.palette-answered::before { content: '●'; color: #27ae60; margin-right: 4px; }
.palette-not-answered::before { content: '●'; color: #94a3b8; margin-right: 4px; }
.palette-current::before { content: '●'; color: #5b3fd4; margin-right: 4px; }

/* Result */
.exam-result-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid #ddd8f0;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.result-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.result-icon.excellent { background: #d4f5e4; color: #1e7a43; }
.result-icon.good { background: #fff3cd; color: #856404; }
.result-icon.average { background: #fdeaea; color: #c0392b; }

.exam-result-card h2 { margin: 0 0 4px; color: #1e1840; font-size: 20px; }
.exam-result-card > p { margin: 0 0 20px; color: #64748b; font-size: 13px; }

.result-score-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 4px;
}

.result-score-display strong { font-size: 52px; color: #1e7a43; font-weight: 700; line-height: 1; }
.result-score-display span { font-size: 20px; color: #64748b; font-weight: 600; }
.result-percentage { margin-bottom: 20px; color: #334155; font-size: 14px; font-weight: 600; }

.result-review {
  text-align: left;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-q-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 11px;
}

.result-q-row.correct { background: #edfaf3; color: #1e5c38; }
.result-q-row.incorrect { background: #fdeaea; color: #8b2020; }

.result-q-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.result-q-row.correct .result-q-icon { background: #27ae60; color: #fff; }
.result-q-row.incorrect .result-q-icon { background: #c0392b; color: #fff; }
/* =========================================================================
   APNA CAMPUS RECRUITMENT & CAREER DEVELOPMENT PORTAL STYLESHEET
   Enterprise UI/UX • Clean Typography • Modern Glassmorphic & Shadow Accents
   ========================================================================= */

.placement-page-container {
  padding: 24px;
  max-width: 1440px;
  margin: 0 auto;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
}

/* ── FLOATING TOAST ── */
.placement-floating-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideToastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.placement-floating-toast svg {
  color: #38bdf8;
  flex-shrink: 0;
}

@keyframes slideToastIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ── TOP HEADER ── */
.placement-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.header-left {
  flex: 1;
  min-width: 280px;
}

.placement-kicker-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.placement-page-title {
  margin: 0 0 6px 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.placement-page-sub {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

/* Candidate Profile Capsule */
.placement-candidate-capsule {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.candidate-avatar-wrap {
  position: relative;
}

.candidate-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.candidate-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.candidate-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.candidate-name-row strong {
  font-size: 0.92rem;
  color: #0f172a;
}

.candidate-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.candidate-academic-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #64748b;
}

.dot-divider {
  color: #cbd5e1;
}

.candidate-cgpa-pill,
.candidate-attendance-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.text-amber {
  color: #d97706;
}

.text-emerald {
  color: #059669;
}

.text-rose {
  color: #e11d48;
}

.text-blue {
  color: #2563eb;
}

/* ── BROADCAST BANNER ── */
.placement-broadcast-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: linear-gradient(90deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.broadcast-icon-box {
  width: 40px;
  height: 40px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.broadcast-text {
  flex: 1;
  min-width: 250px;
}

.broadcast-text strong {
  display: block;
  font-size: 0.9rem;
  color: #1e3a8a;
  margin-bottom: 2px;
}

.broadcast-text p {
  margin: 0;
  font-size: 0.82rem;
  color: #3b82f6;
  line-height: 1.4;
}

.btn-broadcast-channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-broadcast-channel:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ── KPI GRID ── */
.placement-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.placement-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.placement-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.kpi-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.kpi-sub {
  font-size: 0.74rem;
  color: #94a3b8;
}

.tone-blue { border-left: 4px solid #3b82f6; }
.tone-blue .kpi-header svg { color: #3b82f6; }
.tone-emerald { border-left: 4px solid #10b981; }
.tone-emerald .kpi-header svg { color: #10b981; }
.tone-purple { border-left: 4px solid #8b5cf6; }
.tone-purple .kpi-header svg { color: #8b5cf6; }
.tone-amber { border-left: 4px solid #f59e0b; }
.tone-amber .kpi-header svg { color: #f59e0b; }
.tone-rose { border-left: 4px solid #f43f5e; }
.tone-rose .kpi-header svg { color: #f43f5e; }
.tone-slate { border-left: 4px solid #64748b; }
.tone-slate .kpi-header svg { color: #64748b; }

/* ── TAB BAR ── */
.placement-tab-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.placement-tab-bar::-webkit-scrollbar {
  display: none;
}

.placement-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  margin-bottom: -2px;
}

.placement-tab-btn:hover {
  color: #2563eb;
}

.placement-tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 700;
}

.tab-pill-count {
  padding: 2px 8px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.tab-pill-count.highlight {
  background: #dbeafe;
  color: #1e40af;
}

/* ── FILTER BOX ── */
.placement-filter-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.search-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-input-wrap {
  flex: 1;
  min-width: 280px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 38px 10px 42px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.88rem;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.search-input:focus {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.btn-clear-search {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.filter-select {
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.84rem;
  background: #ffffff;
  color: #1e293b;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-select:focus {
  border-color: #3b82f6;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-item label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}

.filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.results-count {
  font-size: 0.82rem;
  color: #64748b;
}

.results-count strong {
  color: #0f172a;
}

.btn-reset-filters {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.btn-reset-filters:hover {
  background: #fef2f2;
}

/* ── DRIVES CARDS GRID ── */
.drives-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.company-drive-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.company-drive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
  border-color: #cbd5e1;
}

.company-drive-card.drive-closed {
  opacity: 0.72;
  background: #f8fafc;
}

.drive-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.logo-and-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drive-company-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.tier-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.company-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.btn-bookmark {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.15s;
}

.btn-bookmark:hover {
  color: #2563eb;
  background: #eff6ff;
}

.btn-bookmark.saved {
  color: #2563eb;
}

/* Role & CTC Row */
.role-and-ctc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
}

.role-wrap {
  flex: 1;
}

.role-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.role-title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  color: #1e293b;
}

.ctc-pill {
  text-align: right;
  flex-shrink: 0;
}

.ctc-label {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}

.ctc-amount {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #059669;
}

/* Meta Grid */
.drive-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #475569;
}

.meta-pill svg {
  color: #64748b;
  flex-shrink: 0;
}

/* Skills Row */
.drive-skills-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.skills-heading {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
}

.skill-pill {
  padding: 3px 8px;
  background: #f1f5f9;
  color: #334155;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
}

.skill-pill.more {
  background: #e2e8f0;
  color: #475569;
}

/* Eligibility Snapshot Strip */
.drive-eligibility-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #fdfdfe;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  font-size: 0.78rem;
}

.criteria-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.crit-title {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}

.crit-val {
  font-weight: 700;
}

.crit-val.pass {
  color: #059669;
}

.crit-val.fail {
  color: #dc2626;
}

.crit-val.branches-text {
  color: #1e293b;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Footer Status & Actions */
.drive-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.status-pill.registered {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.status-pill.eligible {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.status-pill.ineligible {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.status-pill.closed {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.card-action-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-view-details {
  padding: 7px 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-view-details:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-action-apply {
  padding: 7px 14px;
  border: none;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action-apply.eligible {
  background: #2563eb;
  color: #ffffff;
}

.btn-action-apply.eligible:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.btn-action-apply.registered {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.btn-action-apply.registered:hover {
  background: #d1fae5;
}

.btn-action-apply.ineligible {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.btn-action-apply.disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

/* ── EMPTY STATES ── */
.placement-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  margin: 20px 0;
}

.empty-icon {
  color: #94a3b8;
  margin-bottom: 14px;
}

.placement-empty-state h3 {
  margin: 0 0 8px 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.placement-empty-state p {
  margin: 0 0 18px 0;
  font-size: 0.88rem;
  color: #64748b;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================================
   MY APPLICATIONS & ATS TRACKER (TAB 2)
   ========================================================================= */

.applications-overview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.applications-overview-banner h3 {
  margin: 0 0 4px 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.applications-overview-banner p {
  margin: 0;
  font-size: 0.84rem;
  color: #64748b;
}

.apps-count-badge {
  padding: 8px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: 0.84rem;
  color: #1d4ed8;
}

.my-applications-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.application-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.application-card.selected {
  border-color: #a7f3d0;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1);
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.app-comp-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-logo-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.app-id-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.app-company-name {
  margin: 2px 0 3px 0;
  font-size: 1.12rem;
  color: #0f172a;
}

.app-role-subtitle {
  font-size: 0.82rem;
  color: #475569;
}

.app-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.app-date-info {
  font-size: 0.78rem;
  color: #64748b;
}

.app-date-info strong {
  color: #0f172a;
  margin-left: 4px;
}

.app-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.app-status-badge.in-progress {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.app-status-badge.selected {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.app-status-badge.rejected {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* ── ATS VISUAL PROGRESS TIMELINE ── */
.ats-timeline-container {
  padding: 16px 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.ats-timeline-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 580px;
  position: relative;
}

.ats-timeline-track::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.ats-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
  flex: 1;
}

.ats-step-node {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.ats-step-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
}

.ats-step.done .ats-step-node {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.ats-step.done .ats-step-label {
  color: #059669;
  font-weight: 700;
}

.ats-step.current .ats-step-node {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.ats-step.current .ats-step-label {
  color: #1d4ed8;
  font-weight: 700;
}

/* Interview Notice Box */
.interview-notice-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.interview-icon-col {
  width: 42px;
  height: 42px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.interview-info-col {
  flex: 1;
  min-width: 250px;
}

.interview-info-col strong {
  display: block;
  font-size: 0.88rem;
  color: #1e40af;
  margin-bottom: 2px;
}

.interview-info-col p {
  margin: 0 0 6px 0;
  font-size: 0.82rem;
  color: #334155;
}

.interview-checklist {
  display: flex;
  gap: 14px;
  font-size: 0.74rem;
  color: #2563eb;
  font-weight: 600;
  flex-wrap: wrap;
}

.btn-view-interview {
  padding: 8px 16px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

/* Offer Celebration Banner */
.offer-celebration-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1.5px solid #6ee7b7;
  border-radius: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.celebration-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 260px;
}

.trophy-icon {
  font-size: 2.2rem;
}

.celebration-left h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  color: #065f46;
}

.celebration-left p {
  margin: 0;
  font-size: 0.84rem;
  color: #047857;
}

.celebration-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-download-offer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #059669;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-download-offer:hover {
  background: #047857;
}

.btn-respond-offer {
  padding: 8px 16px;
  background: #ffffff;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-respond-offer:hover {
  background: #f0fdf4;
}

/* Card Actions Footer */
.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.notes-snippet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #64748b;
}

.app-footer-buttons {
  display: flex;
  gap: 8px;
}

.btn-app-secondary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.btn-app-secondary:hover {
  background: #f1f5f9;
}

/* =========================================================================
   SKILL DEVELOPMENT TRACKS (TAB 3)
   ========================================================================= */

.courses-header-banner {
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 24px;
}

.courses-header-banner h3 {
  margin: 0 0 4px 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.courses-header-banner p {
  margin: 0;
  font-size: 0.84rem;
  color: #64748b;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.skill-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.skill-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-category-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
}

.course-status-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 9999px;
}

.course-status-tag.active {
  background: #eff6ff;
  color: #2563eb;
}

.course-status-tag.done {
  background: #ecfdf5;
  color: #059669;
}

.course-card-title {
  margin: 0;
  font-size: 1.05rem;
  color: #0f172a;
}

.course-card-desc {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}

.course-meta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: #475569;
}

.course-meta-list div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-progress-wrapper {
  margin-top: 4px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #64748b;
  margin-bottom: 4px;
}

.progress-bar-track {
  height: 6px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #10b981;
  border-radius: 9999px;
}

.skill-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.btn-course-action {
  flex: 1;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-course-action.enroll {
  background: #2563eb;
  color: #ffffff;
}

.btn-course-action.continue {
  background: #10b981;
  color: #ffffff;
}

.btn-course-action.completed {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.btn-syllabus-link {
  padding: 8px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

/* =========================================================================
   PLACEMENT RECORDS & ANALYTICS (TAB 4)
   ========================================================================= */

.records-header-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.records-header-box h3 {
  margin: 0 0 4px 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.records-header-box p {
  margin: 0;
  font-size: 0.84rem;
  color: #64748b;
}

.year-selector-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
}

.tier-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.tier-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-box h4 {
  margin: 0;
  font-size: 0.94rem;
  color: #0f172a;
}

.tier-numbers {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.tier-numbers strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
}

.tier-numbers span {
  font-size: 0.82rem;
  color: #64748b;
}

.tier-box p {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
}

.tier-box.super-dream { border-top: 4px solid #8b5cf6; }
.tier-box.dream { border-top: 4px solid #3b82f6; }
.tier-box.core { border-top: 4px solid #10b981; }

.records-table-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.table-heading {
  margin: 0 0 16px 0;
  font-size: 1.05rem;
  color: #0f172a;
}

.placement-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.placement-data-table th,
.placement-data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.placement-data-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.badge-rate {
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.badge-rate.high {
  background: #ecfdf5;
  color: #059669;
}

.badge-rate.mid {
  background: #eff6ff;
  color: #2563eb;
}

.partners-showcase-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
}

.partners-showcase-box h4 {
  margin: 0 0 14px 0;
  font-size: 1rem;
  color: #0f172a;
}

.partner-badges-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.partner-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

/* =========================================================================
   OFFICIAL NOTICES & GUIDELINES (TAB 5)
   ========================================================================= */

.notices-intro-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 24px;
}

.notices-intro-card h3 {
  margin: 0 0 4px 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.notices-intro-card p {
  margin: 0;
  font-size: 0.84rem;
  color: #64748b;
}

.notices-list-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.placement-notice-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notice-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-badge {
  padding: 2px 8px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.notice-badge.urgent {
  background: #fef2f2;
  color: #dc2626;
}

.notice-date {
  font-size: 0.76rem;
  color: #94a3b8;
}

.placement-notice-item h4 {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
}

.placement-notice-item p {
  margin: 0;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.5;
}

/* =========================================================================
   MODAL WINDOWS & WIZARDS
   ========================================================================= */

.placement-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.placement-modal-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.placement-modal-card.large {
  max-width: 820px;
}

@keyframes scaleUp {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.placement-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #64748b;
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s;
}

.placement-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Modal Headers */
.drive-detail-banner {
  padding: 24px 28px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.drive-detail-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.drive-detail-title-col h2 {
  margin: 3px 0 4px 0;
  font-size: 1.35rem;
  color: #0f172a;
}

.modal-tier-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
}

.modal-role-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-role-row strong {
  font-size: 0.94rem;
  color: #334155;
}

.modal-ctc-tag {
  padding: 2px 8px;
  background: #ecfdf5;
  color: #059669;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.82rem;
}

.modal-specs-bar {
  display: flex;
  gap: 16px;
  padding: 12px 28px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.78rem;
  color: #64748b;
  flex-wrap: wrap;
}

.modal-specs-bar div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-specs-bar strong {
  color: #0f172a;
}

.modal-scroll-body {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Eligibility Evaluation Box */
.eligibility-evaluation-box {
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
}

.eligibility-evaluation-box.pass {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.eligibility-evaluation-box.fail {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.eligibility-evaluation-box.registered {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.eligibility-evaluation-box.closed {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

.eval-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.94rem;
}

.eval-criteria-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
}

.crit-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crit-item.pass {
  color: #059669;
}

.crit-item.fail {
  color: #dc2626;
}

.modal-section-block h4 {
  margin: 0 0 10px 0;
  font-size: 0.96rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section-block p {
  margin: 0;
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.55;
}

.modal-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-skill-chip {
  padding: 5px 12px;
  background: #f1f5f9;
  color: #334155;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.modal-criteria-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.modal-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-table tr:last-child td {
  border-bottom: none;
}

.modal-table td:first-child {
  width: 35%;
  background: #f8fafc;
  color: #475569;
}

/* Modal Recruitment Timeline */
.modal-stages-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.timeline-node {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.node-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 800;
  flex-shrink: 0;
}

.timeline-node strong {
  display: block;
  font-size: 0.8rem;
  color: #0f172a;
}

.timeline-node small {
  font-size: 0.72rem;
  color: #64748b;
}

/* Modal Footers */
.placement-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 28px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.footer-left-buttons,
.footer-right-buttons {
  display: flex;
  gap: 10px;
}

.btn-modal-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-modal-secondary:hover {
  background: #f1f5f9;
}

.btn-modal-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-modal-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-modal-disabled {
  padding: 9px 18px;
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: not-allowed;
}

/* =========================================================================
   7-STEP APPLICATION WIZARD (SECTION 5)
   ========================================================================= */

.wizard-modal {
  max-width: 650px;
}

.wizard-header {
  padding: 24px 28px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.wizard-step-indicator {
  font-size: 0.76rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
}

.wizard-title {
  margin: 4px 0 14px 0;
  font-size: 1.25rem;
  color: #0f172a;
}

.wizard-progress-track {
  display: flex;
  gap: 8px;
}

.step-dot {
  flex: 1;
  height: 5px;
  background: #e2e8f0;
  border-radius: 9999px;
  transition: background 0.2s ease;
}

.step-dot.active {
  background: #2563eb;
}

.step-dot.completed {
  background: #10b981;
}

.wizard-step-body {
  padding: 24px 28px;
  min-height: 260px;
}

.step-intro-text {
  margin: 0 0 16px 0;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
}

.alert-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.alert-box.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.alert-box.error {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.alert-box strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.alert-box p {
  margin: 0;
  font-size: 0.82rem;
}

.wizard-criteria-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wizard-crit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.wizard-crit-item.pass {
  color: #059669;
}

.wizard-crit-item.fail {
  color: #dc2626;
}

.profile-verify-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.verify-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.verify-item label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.verify-item input {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.84rem;
  outline: none;
}

.resume-select-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resume-choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.resume-choice-card:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.resume-choice-card.selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.resume-choice-text strong {
  display: block;
  font-size: 0.86rem;
  color: #0f172a;
}

.resume-choice-text small {
  font-size: 0.74rem;
  color: #64748b;
}

.doc-upload-box {
  padding: 30px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
}

.doc-upload-box svg {
  color: #2563eb;
}

.review-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.review-row:last-child {
  border-bottom: none;
}

.review-row span {
  color: #64748b;
}

.review-row strong {
  color: #0f172a;
}

.declarations-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.declaration-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: #334155;
  cursor: pointer;
  line-height: 1.45;
}

.declaration-label input {
  margin-top: 3px;
  cursor: pointer;
}

.wizard-confirmation-view {
  text-align: center;
  padding: 20px 0;
}

.confirmation-icon {
  color: #10b981;
  margin-bottom: 10px;
}

.wizard-confirmation-view h3 {
  margin: 0 0 6px 0;
  font-size: 1.35rem;
  color: #0f172a;
}

.confirmation-id {
  font-size: 0.94rem;
  color: #2563eb;
  margin: 0 0 10px 0;
}

.confirmation-msg {
  font-size: 0.86rem;
  color: #475569;
  max-width: 480px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.confirmation-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

/* Modals 3, 4, 5 */
.interview-modal-header,
.offer-modal-header,
.course-modal-header {
  padding: 20px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.interview-modal-header h3,
.offer-modal-header h3,
.course-modal-header h3 {
  margin: 0 0 2px 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.interview-modal-header p,
.offer-modal-header p,
.course-modal-header p {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

.interview-modal-body,
.offer-modal-body,
.course-modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.detail-item-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-item-box label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.detail-item-box strong {
  font-size: 0.9rem;
  color: #0f172a;
}

.meeting-link-anchor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.interview-guidelines-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 12px 16px;
}

.interview-guidelines-box h4 {
  margin: 0 0 6px 0;
  font-size: 0.84rem;
  color: #1e40af;
}

.interview-guidelines-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.45;
}

.offer-terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.offer-terms-grid label {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
}

.offer-terms-grid strong {
  font-size: 0.94rem;
  color: #0f172a;
}

.offer-disclaimer {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

.btn-decline-offer {
  padding: 8px 16px;
  background: #ffffff;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-decline-offer:hover {
  background: #fef2f2;
}

.btn-accept-offer {
  padding: 8px 18px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-accept-offer:hover {
  background: #059669;
}

.syllabus-modules-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.module-item {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.module-item strong {
  display: block;
  font-size: 0.86rem;
  color: #0f172a;
  margin-bottom: 2px;
}

.module-item p {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
}

/* =========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================= */

@media (max-width: 900px) {
  .placement-page-container {
    padding: 16px;
  }

  .placement-top-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .placement-candidate-capsule {
    width: 100%;
    box-sizing: border-box;
  }

  .drives-cards-grid {
    grid-template-columns: 1fr;
  }

  .profile-verify-grid {
    grid-template-columns: 1fr;
  }

  .modal-stages-timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .placement-page-title {
    font-size: 1.35rem;
  }

  .placement-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .sort-select {
    flex: 1;
  }

  .drive-meta-grid {
    grid-template-columns: 1fr;
  }

  .app-header-right {
    align-items: flex-start;
  }

  .offer-terms-grid {
    grid-template-columns: 1fr;
  }
}
/* ════════════════════════════════════════════════════════════════════
   APNA CAMPUS — TIMETABLE STYLES
   Exact visual match to college timetable system
   ════════════════════════════════════════════════════════════════════ */

.apna-public-timetable-wrapper {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #f1f5f9;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1e293b;
  display: flex;
  flex-direction: column;
}

.apna-public-timetable-wrapper.is-embedded {
  position: relative;
  inset: auto;
  z-index: 1;
  width: 100%;
  min-height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #cbd5e1;
  margin-top: 12px;
  margin-bottom: 24px;
  overflow: visible;
}

/* ── Top Gray Navigation Bar ────────────────────────────── */
.apna-tt-top-nav {
  background: #60686f;
  border-bottom: 2px solid #4a5259;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 14px;
  flex-wrap: wrap;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.apna-tt-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
}

.apna-tt-nav-tab {
  background: #7a8288;
  border: 1px solid #4e555b;
  color: #ffffff;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  border-radius: 2px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.apna-tt-nav-tab:hover {
  background: #4e555b;
  color: #ffffff;
}

.apna-tt-nav-tab.active {
  background: #394046;
  color: #f8fafc;
  border-color: #212529;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.apna-tt-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.apna-tt-action-btn {
  background: #4a5259;
  border: 1px solid #343a40;
  color: #ffffff;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s ease;
}

.apna-tt-action-btn:hover {
  background: #343a40;
}

.apna-tt-action-btn.close-btn {
  background: #dc2626;
  border-color: #b91c1c;
}

.apna-tt-action-btn.close-btn:hover {
  background: #b91c1c;
}

/* ── Main Frame Box (White box with dark border) ────────── */
.apna-tt-card-container {
  max-width: 1180px;
  width: 96%;
  margin: 16px auto 30px;
  background: #ffffff;
  border: 2px solid #2b3e50;
  border-radius: 3px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  padding: 24px 28px 36px;
  flex: 1;
}

/* ── Centered Header ────────────────────────────────────── */
.apna-tt-header-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
}

.apna-tt-logo-center {
  margin-bottom: 6px;
}

.college-gear-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.college-gear-svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.apna-tt-college-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #1e578a;
  margin: 4px 0;
  letter-spacing: -0.01em;
}

.apna-tt-routine-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #1e293b;
  margin: 4px 0 0;
  letter-spacing: -0.01em;
}

.apna-tt-category-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #f59e0b;
  margin: 4px 0 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── View A: Routine Grid Toolbar & Table ───────────────── */
.apna-tt-grid-frame {
  margin-top: 10px;
}

.apna-tt-routine-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.routine-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 4px;
}

.routine-quick-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.routine-quick-switch select {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  background: #ffffff;
  outline: none;
}

.apna-tt-table-responsive {
  overflow-x: auto;
  border: 1px solid #94a3b8;
  background: #ffffff;
}

.apna-routine-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, Helvetica, sans-serif;
  min-width: 860px;
}

.apna-routine-table thead th {
  background: #e2e8f0;
  color: #1e293b;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 8px;
  border: 1px solid #94a3b8;
  text-align: center;
}

.apna-routine-table thead th.th-time {
  width: 140px;
}

.apna-routine-table thead th.th-day {
  width: calc((100% - 140px) / 6);
}

.apna-routine-table tbody td {
  border: 1px solid #94a3b8;
  padding: 4px 6px;
  font-size: 11px;
  line-height: 1.25;
  vertical-align: top;
}

.apna-routine-table .td-time {
  background: #f8fafc;
  color: #1e293b;
  font-weight: 700;
  text-align: center;
  font-size: 10.5px;
  white-space: nowrap;
  vertical-align: middle;
}

.apna-routine-table .td-empty {
  background: #ffffff;
}

.apna-routine-table .td-class {
  background: #ffffff;
}

.apna-routine-table .class-subj {
  font-size: 11.5px;
  font-weight: 700;
  color: #6b21a8;
  margin-bottom: 1px;
}

.apna-routine-table .lab-subj {
  color: #991b1b;
}

.apna-routine-table .class-room {
  font-size: 10.5px;
  color: #475569;
  font-weight: 600;
  margin-bottom: 1px;
}

.apna-routine-table .class-faculty {
  font-size: 10px;
  color: #581c87;
  font-weight: 600;
}

.apna-routine-table .td-special {
  text-align: center;
  vertical-align: middle;
  background: #fafafa;
}

.apna-routine-table .td-lunch {
  color: #b91c1c;
  font-weight: 700;
  font-style: italic;
  font-size: 11.5px;
}

.apna-routine-table .td-library {
  color: #dc2626;
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.apna-routine-table .td-hobby {
  color: #2563eb;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.05em;
  background: #eff6ff;
}

.apna-routine-footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-back-to-sections {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-back-to-sections:hover {
  background: #1d4ed8;
}

.routine-footnote {
  font-size: 11px;
  color: #64748b;
  font-style: italic;
}

/* ── View B: List Table (Image 2 style) ─────────────────── */
.apna-tt-list-frame {
  margin-top: 8px;
}

.apna-list-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #7f9db9;
}

.apna-list-table tr {
  border-bottom: 1px solid #7f9db9;
}

.apna-list-table tr:hover {
  background: #f0f7ff;
}

.apna-list-table td {
  padding: 7px 12px;
  font-size: 13px;
  border-right: 1px solid #7f9db9;
}

.apna-list-table .col-sl {
  width: 50px;
  text-align: center;
  font-weight: 700;
  color: #1e293b;
}

.apna-list-table .col-name {
  color: #0000ee;
  font-weight: 700;
}

.apna-list-table .col-spacer {
  width: 25px;
}

.btn-class-link {
  background: none;
  border: none;
  color: #0000ee;
  text-decoration: underline;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.btn-class-link:hover {
  color: #d35400;
}

/* ── View C & D: Data Tables (Images 1 & 3 style) ───────── */
.apna-data-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #7f9db9;
  font-family: Arial, Helvetica, sans-serif;
}

.apna-data-table thead th {
  background: #8fa4b8;
  color: #1f2d3d;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  border: 1px solid #7f9db9;
  text-align: center;
}

.apna-data-table tbody td {
  border: 1px solid #7f9db9;
  padding: 6px 10px;
  font-size: 12.5px;
  color: #1e293b;
}

.apna-data-table tbody tr:nth-child(even) {
  background: #f4f8fb;
}

.apna-data-table tbody tr:hover {
  background: #e8f2fc;
}

.btn-item-link {
  background: none;
  border: none;
  color: #0000ee;
  text-decoration: underline;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.btn-item-link:hover {
  color: #d35400;
}

.text-center {
  text-align: center;
}

.bold {
  font-weight: 700;
}

.text-success {
  color: #15803d;
}

/* ── Bottom Footer ──────────────────────────────────────── */
.apna-tt-bottom-footer {
  text-align: center;
  padding: 14px 20px 24px;
  font-size: 12px;
  color: #64748b;
  background: transparent;
}

/* ── Student Profile & Live Status Banner ───────────────── */
.student-profile-timetable-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #ffffff;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
  border: 1px solid #1d4ed8;
}

.student-banner-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.student-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.18);
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  width: -moz-fit-content;
  width: fit-content;
}

.student-banner-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.student-banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: #dbeafe;
}

.student-banner-meta strong {
  color: #ffffff;
}

.btn-view-my-routine {
  background: #f59e0b;
  color: #78350f;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-view-my-routine:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

/* ── Today's Live Schedule Strip ───────────────────────── */
.student-live-schedule-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0284c7;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-strip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.live-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.live-indicator-pill.active {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.live-indicator-pill.break {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.live-indicator-pill.idle {
  background: #e2e8f0;
  color: #475569;
}

.next-class-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  padding: 3px 10px;
  border-radius: 4px;
}

.today-timeline-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 2px;
}

.timeline-pill {
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 5px 9px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  min-width: 115px;
}

.timeline-pill.current {
  border-color: #16a34a;
  background: #f0fdf4;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.timeline-pill .tp-time {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
}

.timeline-pill .tp-subj {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  margin: 1px 0;
}

.timeline-pill .tp-room {
  font-size: 9.5px;
  color: #0284c7;
  font-weight: 600;
}

/* ── My Section Row Badge & View Action ──────────────────── */
.my-section-badge {
  background: #16a34a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

.btn-action-view {
  background: #2563eb;
  color: #ffffff;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-action-view:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* ── Timetable Search Bar ───────────────────────────────── */
.tt-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  padding: 6px 12px;
  max-width: 440px;
}

.tt-search-bar input {
  border: none;
  outline: none;
  font-size: 12.5px;
  width: 100%;
  color: #1e293b;
}

.tt-search-bar input::-moz-placeholder {
  color: #94a3b8;
}

.tt-search-bar input::placeholder {
  color: #94a3b8;
}

/* ── Read-Only Notice Badge ─────────────────────────────── */
.read-only-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ── Faculty Personal Timetable Styles ──────────────────── */
.faculty-profile-banner {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  color: #ffffff;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.15);
  border: 1px solid #059669;
}

.faculty-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.2);
  color: #a7f3d0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  width: -moz-fit-content;
  width: fit-content;
}

.faculty-banner-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.faculty-banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: #d1fae5;
}

.faculty-banner-meta strong {
  color: #ffffff;
}

.faculty-lecture-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.faculty-lecture-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}

.faculty-lecture-card:hover {
  border-color: #047857;
  box-shadow: 0 4px 10px rgba(4, 120, 87, 0.1);
}

.faculty-lecture-card.is-live {
  border: 2px solid #16a34a;
  background: #f0fdf4;
}

.flc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flc-time {
  font-size: 11px;
  font-weight: 700;
  color: #047857;
}

.flc-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

.flc-tag.lab {
  background: #fee2e2;
  color: #991b1b;
}

.flc-tag.theory {
  background: #e0e7ff;
  color: #3730a3;
}

.flc-tag.seminar {
  background: #fef3c7;
  color: #92400e;
}

.flc-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.flc-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11.5px;
  color: #475569;
}

.flc-room {
  font-weight: 600;
  color: #0284c7;
}

.faculty-badge-you {
  background: #047857;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
}

/* ── HOD Summary KPI Cards ──────────────────────────────── */
.hod-summary-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.hod-kpi-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-top: 3px solid #2563eb;
}

.hod-kpi-card.success {
  border-top-color: #16a34a;
}

.hod-kpi-card.warning {
  border-top-color: #f59e0b;
}

.hod-kpi-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hod-kpi-val {
  font-size: 19px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.hod-kpi-sub {
  font-size: 10px;
  color: #059669;
  font-weight: 600;
}

/* ── HOD Action Toolbar ─────────────────────────────────── */
.hod-action-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.hod-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-hod-generate {
  background: #2563eb;
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-hod-generate:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-hod-publish {
  background: #059669;
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-hod-publish:hover {
  background: #047857;
  transform: translateY(-1px);
}

.btn-hod-draft {
  background: #f59e0b;
  color: #78350f;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── Section Wise Filter Toolbar ────────────────────────── */
.hod-section-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.hod-filter-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hod-filter-group label {
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
}

.hod-filter-group select {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  background: #ffffff;
  color: #1e293b;
  min-width: 140px;
}

/* ── Responsive Rules (Optimized down to 360px mobile viewports) ── */
@media (max-width: 768px) {
  .apna-tt-top-nav {
    padding: 6px 10px;
  }

  .apna-tt-nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .apna-tt-top-actions {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
    flex-wrap: wrap;
  }

  .apna-tt-card-container {
    padding: 14px 10px 24px;
    width: 98%;
  }

  .apna-tt-college-title {
    font-size: 18px;
  }

  .apna-tt-routine-title {
    font-size: 15px;
  }

  .apna-tt-category-title {
    font-size: 15px;
  }

  .hod-summary-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hod-section-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .student-profile-timetable-banner,
  .faculty-profile-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .student-banner-actions {
    width: 100%;
  }

  .btn-view-my-routine {
    width: 100%;
    justify-content: center;
  }

  .apna-tt-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .apna-routine-table {
    min-width: 720px;
  }
}

@media (max-width: 480px) {
  .hod-summary-kpi-grid {
    grid-template-columns: 1fr;
  }

  .apna-tt-action-btn {
    font-size: 11px;
    padding: 4px 8px;
  }

  .apna-tt-nav-tab {
    font-size: 11px;
    padding: 5px 10px;
  }

  .flc-details {
    font-size: 11px;
  }
}

/* ════════════════════════════════════════════════════════════════
   PRINT STYLESHEET (@media print)
   Produces clean institutional printouts with college crest & tables
   ════════════════════════════════════════════════════════════════ */
@media print {
  @page {
    size: landscape;
    margin: 8mm;
  }

  /* Reset layout wrapper */
  .apna-public-timetable-wrapper {
    position: static !important;
    background: #ffffff !important;
    color: #000000 !important;
    overflow: visible !important;
    height: auto !important;
    inset: auto !important;
  }

  /* Hide interactive controls that should not appear on physical paper */
  .apna-tt-top-nav,
  .apna-tt-routine-toolbar,
  .apna-routine-footer-links,
  .tt-search-bar,
  .hod-action-toolbar,
  .hod-section-filter-bar,
  .student-banner-actions,
  .btn-action-view,
  .btn-item-link,
  .btn-class-link,
  .btn-back-to-sections {
    display: none !important;
  }

  /* Ensure card container expands fully on paper */
  .apna-tt-card-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* Keep header centered and crisp */
  .apna-tt-header-box {
    margin-bottom: 14px !important;
  }

  .apna-tt-college-title {
    color: #1e578a !important;
    font-size: 20px !important;
  }

  .apna-tt-routine-title,
  .apna-tt-category-title {
    color: #000000 !important;
    font-size: 15px !important;
  }

  /* Table borders must be crisp black/dark gray */
  .apna-routine-table,
  .apna-data-table,
  .apna-list-table {
    width: 100% !important;
    border: 1px solid #333333 !important;
    border-collapse: collapse !important;
    page-break-inside: avoid !important;
  }

  .apna-routine-table th,
  .apna-routine-table td,
  .apna-data-table th,
  .apna-data-table td,
  .apna-list-table td {
    border: 1px solid #444444 !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .apna-routine-table thead th,
  .apna-data-table thead th {
    background: #e2e8f0 !important;
    color: #000000 !important;
  }

  /* Student/Faculty Banners on print */
  .student-profile-timetable-banner,
  .faculty-profile-banner {
    background: #f1f5f9 !important;
    color: #000000 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
  }

  .student-banner-title,
  .faculty-banner-title {
    color: #000000 !important;
  }

  .student-banner-meta,
  .faculty-banner-meta {
    color: #334155 !important;
  }

  .student-banner-meta strong,
  .faculty-banner-meta strong {
    color: #000000 !important;
  }

  /* Footer on print */
  .apna-tt-bottom-footer {
    display: block !important;
    font-size: 9.5px !important;
    color: #64748b !important;
    padding: 8px 0 0 !important;
    margin-top: 10px !important;
    border-top: 1px solid #e2e8f0 !important;
  }
}
.notices-page { animation: fade-in 0.25s ease; }
.notices-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.notices-title { font-family: var(--font-display, 'Outfit', sans-serif); font-size: 1.65rem; font-weight: 700; color: #0a0f1e; margin: 0 0 6px; }
.notices-subtitle { color: #64748b; font-size: 0.92rem; margin: 0; }

.notices-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.notices-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.notices-cat-btn { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 7px 16px; font-size: 0.85rem; font-weight: 600; color: #64748b; cursor: pointer; transition: all 0.2s; }
.notices-cat-btn:hover { border-color: #cbd5e1; color: #1e293b; }
.notices-cat-btn.active { background: #2563eb; color: #ffffff; border-color: #2563eb; box-shadow: 0 2px 8px rgba(37,99,235,0.25); }

.notices-search-box { display: flex; align-items: center; gap: 8px; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px 14px; width: 280px; }
.notices-search-box input { border: none; outline: none; width: 100%; font-size: 0.88rem; background: transparent; }

.notices-list { display: flex; flex-direction: column; gap: 14px; }
.notice-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); transition: all 0.2s; display: flex; flex-direction: column; gap: 12px; }
.notice-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.06); border-color: #cbd5e1; }
.notice-card.pinned { border-left: 4px solid #f59e0b; background: #fffdfa; }

.notice-meta-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.notice-tag-badge { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; letter-spacing: 0.05em; }
.notice-tag-badge.academic { background: #eff6ff; color: #1d4ed8; }
.notice-tag-badge.exam { background: #fef2f2; color: #b91c1c; }
.notice-tag-badge.scholarship { background: #ecfdf5; color: #047857; }
.notice-tag-badge.placement { background: #faf5ff; color: #7e22ce; }
.notice-tag-badge.event { background: #fffbeb; color: #b45309; }
.notice-tag-badge.faculty { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; font-weight: 800; }

.notice-card-body h3 { font-size: 1.15rem; font-weight: 700; color: #0a0f1e; margin: 0 0 8px; cursor: pointer; }
.notice-card-body h3:hover { color: #2563eb; }
.notice-card-body p { color: #475569; font-size: 0.9rem; line-height: 1.5; margin: 0; }

.notice-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f1f5f9; padding-top: 12px; margin-top: 4px; font-size: 0.8rem; color: #64748b; font-weight: 500; }
.notice-actions { display: flex; gap: 10px; }
.btn-notice-action { background: none; border: none; color: #2563eb; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; }
.btn-notice-action:hover { text-decoration: underline; }
.idcard-page { animation: fade-in 0.25s ease; }
.idcard-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.idcard-title { font-family: var(--font-display, 'Outfit', sans-serif); font-size: 1.65rem; font-weight: 700; color: #0a0f1e; margin: 0 0 6px; }
.idcard-subtitle { color: #64748b; font-size: 0.92rem; margin: 0; }

.idcard-wrapper { display: flex; justify-content: center; margin: 20px 0 40px; }
.idcard-badge-container { width: 100%; max-width: 480px; background: linear-gradient(135deg, #0a0f1e 0%, #1e293b 100%); border-radius: 20px; padding: 24px; color: #ffffff; box-shadow: 0 16px 36px rgba(10,15,30,0.22); border: 1px solid rgba(255,255,255,0.12); position: relative; overflow: hidden; }
.idcard-badge-container::before { content: ""; position: absolute; top: -50px; right: -50px; width: 150px; height: 150px; background: radial-gradient(circle, rgba(37,99,235,0.3) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }

.idcard-top-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 14px; margin-bottom: 18px; }
.idcard-inst-name { font-size: 1rem; font-weight: 800; letter-spacing: 0.05em; color: #60a5fa; }
.idcard-validity { font-size: 0.74rem; background: rgba(16,185,129,0.2); color: #34d399; padding: 3px 8px; border-radius: 20px; font-weight: 600; }

.idcard-main-info { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.idcard-photo-box { width: 100px; height: 120px; background: #334155; border-radius: 12px; border: 2px solid #60a5fa; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.75rem; color: #94a3b8; flex-shrink: 0; }
.idcard-details { flex: 1; }
.idcard-name { font-size: 1.3rem; font-weight: 700; margin: 0 0 4px; color: #ffffff; }
.idcard-reg { font-family: monospace; font-size: 0.95rem; color: #93c5fd; margin-bottom: 10px; }
.idcard-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 0.78rem; }
.idcard-info-grid span { color: #cbd5e1; font-weight: 500; }
.idcard-info-grid strong { color: #f8fafc; }

.idcard-bottom-bar { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 14px; font-size: 0.75rem; }
.idcard-barcode { font-family: 'Libre Barcode 39', monospace, sans-serif; font-size: 1.4rem; letter-spacing: 4px; color: #e2e8f0; }

.idcard-instructions { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 22px; max-width: 750px; margin: 0 auto; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.idcard-instructions h4 { margin: 0 0 10px; font-size: 1.05rem; color: #0a0f1e; }
.idcard-instructions ul { margin: 0; padding-left: 20px; color: #475569; font-size: 0.88rem; line-height: 1.7; }
/* Student Hostel Page Styles - Seamless with StudentPortal */

.student-hostel-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.student-hostel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.student-hostel-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
}

.student-hostel-header p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.hostel-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.hostel-info-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.roommate-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* ── Enhanced Complaint Card ── */
.complaint-card-enhanced {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.complaint-card-enhanced:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.complaint-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.complaint-description-block {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
}

.complaint-image-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.complaint-thumb {
  width: 120px;
  height: 80px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.complaint-thumb:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ── Complaint Modal ── */
.complaint-modal {
  max-width: 560px;
  width: 100%;
}

/* ── Upload Zone ── */
.complaint-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 2px dashed #c4b5fd;
  border-radius: 10px;
  padding: 1.5rem;
  cursor: pointer;
  background: #faf5ff;
  transition: background 0.15s, border-color 0.15s;
  text-align: center;
}

.complaint-upload-zone:hover {
  background: #f3e8ff;
  border-color: #a78bfa;
}

/* ── Image Preview ── */
.complaint-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.complaint-preview-img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

/* Legacy (keep for compatibility) */
.complaint-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  gap: 1rem;
}

/* ── AI Classifier & Automatic Assignment Styles ── */
.ai-preview-box {
  background: linear-gradient(135deg, #f5f3ff, #ecfeff);
  border: 1px solid #c4b5fd;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ai-confidence-bar-bg {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.ai-confidence-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.staff-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  gap: 10px;
  flex-wrap: wrap;
}

.staff-avatar-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #7c3aed;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.staff-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #10b981;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s;
}

.staff-call-btn:hover {
  background: #059669;
}

.complaint-progress-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0 4px;
  border-top: 1px dashed #e2e8f0;
  flex-wrap: wrap;
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
}

.stepper-step.active {
  color: #7c3aed;
}

.stepper-step.done {
  color: #059669;
}

/* ── 72-Hour Deadline & Escalation Badges ── */
.deadline-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  letter-spacing: 0.01em;
}

.deadline-badge.safe {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.deadline-badge.approaching {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  animation: pulseApproaching 2s infinite ease-in-out;
}

.deadline-badge.exceeded {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-weight: 800;
}

.deadline-badge.resolved {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

@keyframes pulseApproaching {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.escalated-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.escalation-history-strip {
  background: #fff1f2;
  border-left: 4px solid #ef4444;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.79rem;
  color: #9f1239;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Work Completion Verification Action Box ── */
.student-verification-box {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.student-verification-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-confirm-completed {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}

.btn-confirm-completed:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.btn-problem-unresolved {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  color: #dc2626;
  border: 1.5px solid #f87171;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-problem-unresolved:hover {
  background: #fef2f2;
  border-color: #dc2626;
}

/* ── Verified Feedback Banner & Flow Indicator ── */
.student-feedback-recorded-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #10b981;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feedback-stars-row {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-size: 0.92rem;
  font-weight: 700;
}

.flow-dispatch-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  padding: 3px 8px;
  border-radius: 6px;
  width: -moz-fit-content;
  width: fit-content;
}

/* ══════════════════════════════════════════════════════
   STUDENT OVERNIGHT LEAVE SECTION & REJECTION DISPLAY
   ══════════════════════════════════════════════════════ */

.student-leaves-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* High-priority warden rejection banner for student */
.student-leave-rejection-banner {
  background: #fff1f2;
  border: 1.5px solid #fecdd3;
  border-left: 5px solid #e11d48;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: pulseSubtle 3s infinite ease-in-out;
}

@keyframes pulseSubtle {
  0%, 100% { border-color: #fecdd3; }
  50% { border-color: #fda4af; }
}

.rejection-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rejection-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #9f1239;
}

.rejection-banner-time {
  font-size: 0.78rem;
  color: #be123c;
  font-weight: 600;
}

.rejection-quote-box {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #fee2e2;
  border-left: 4px solid #be123c;
  padding: 0.9rem 1.1rem;
}

.rejection-quote-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #9f1239;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.rejection-quote-text {
  margin: 0;
  font-size: 0.95rem;
  color: #881337;
  font-weight: 600;
  line-height: 1.5;
  font-style: italic;
}

.rejection-banner-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #9f1239;
}

/* Student Leave Table & Filter */
.student-leave-card-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.student-leave-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.student-leave-filter-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.student-leave-filter-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.student-leave-filter-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.student-leave-filter-btn.rejected-active {
  background: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
}

/* Leave Status Badges */
.badge-leave-approved {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-leave-pending {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-leave-rejected {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecdd3;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-leave-away {
  display: inline-block;
  margin-left: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-leave-returned {
  display: inline-block;
  margin-left: 6px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* In-table Rejection Reason Callout */
.student-leave-reason-chip {
  margin-top: 6px;
  background: #fef2f2;
  border: 1px solid #fecdd3;
  border-left: 3px solid #e11d48;
  border-radius: 6px;
  padding: 6px 9px;
  text-align: left;
  max-width: 320px;
}

.student-leave-reason-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #991b1b;
  text-transform: uppercase;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.student-leave-reason-text {
  font-size: 0.78rem;
  color: #7f1d1d;
  font-style: italic;
  font-weight: 600;
  line-height: 1.35;
}

.student-leave-reason-by {
  font-size: 0.68rem;
  color: #be123c;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════
   ROOM ALLOCATION & MAINTENANCE SECTION (MY HOSTEL RESIDENCE)
   ══════════════════════════════════════════════════════ */

.hostel-residence-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hostel-header-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.hostel-header-banner h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.01em;
}

.hostel-header-banner p {
  font-size: 0.86rem;
  color: #64748b;
  margin: 0;
}

.btn-lodge-complaint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #6366f1;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all 0.2s ease;
}

.btn-lodge-complaint:hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

/* Top 3 KPI Cards Grid */
.hostel-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .hostel-kpi-row {
    grid-template-columns: 1fr;
  }
}

.hostel-kpi-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
}

.hostel-kpi-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.hostel-kpi-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.hostel-kpi-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.hostel-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  width: -moz-fit-content;
  width: fit-content;
}

.hostel-badge-chip.green {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.hostel-badge-chip.blue {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.warden-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px 9px;
  border-radius: 6px;
  width: -moz-fit-content;
  width: fit-content;
  transition: all 0.15s;
}

.warden-phone-link:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

/* Middle 2 Cards Grid */
.hostel-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 850px) {
  .hostel-sub-grid {
    grid-template-columns: 1fr;
  }
}

.hostel-sub-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.hostel-sub-card h3 {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1rem 0;
}

.roommate-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.8rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  border: 1px solid #f1f5f9;
}

.roommate-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #6366f1;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.roommate-details-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.roommate-details-sub {
  font-size: 0.74rem;
  color: #64748b;
}

.hostel-rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hostel-rules-list li {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.hostel-rules-list li::before {
  content: "•";
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1;
}

/* Complaints Section */
.hostel-complaints-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hostel-complaints-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hostel-complaints-header h2 {
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.complaint-count-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

/* Individual Complaint Card matching Image 1 */
.complaint-ticket-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.complaint-ticket-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.complaint-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.complaint-title-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.complaint-main-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
}

.complaint-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.complaint-pill.high {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.complaint-pill.medium {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.complaint-pill.low {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.complaint-pill.category {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.complaint-pill.ai {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.complaint-pill.deadline {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.complaint-status-chip {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
}

.complaint-status-chip.in-progress {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.complaint-status-chip.assigned {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.complaint-status-chip.submitted {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.complaint-status-chip.awaiting {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
}

.complaint-status-chip.resolved {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.complaint-meta-line {
  font-size: 0.75rem;
  color: #64748b;
}

.complaint-meta-line strong {
  color: #334155;
}

.complaint-warden-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #334155;
  padding-bottom: 0.2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.warden-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #2563eb;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}

.warden-call-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.complaint-desc-box {
  background: #faf5ff;
  border: 1px solid #f3e8ff;
  border-radius: 8px;
  padding: 0.65rem 0.95rem;
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.45;
}

.complaint-technician-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-info-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tech-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #6366f1;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.tech-role {
  font-size: 0.74rem;
  color: #64748b;
}

.tech-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #10b981;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.15s;
}

.tech-call-btn:hover {
  background: #059669;
}

/* 5-Step Pipeline Tracker */
.complaint-pipeline-stepper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 0.4rem 0;
  flex-wrap: wrap;
}

.pipeline-step {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 4px;
}

.pipeline-step.active {
  color: #6366f1;
  font-weight: 800;
  background: #f5f3ff;
}

.pipeline-step.done {
  color: #059669;
  font-weight: 700;
}

.pipeline-arrow {
  color: #cbd5e1;
  font-weight: 700;
}

.complaint-status-log {
  font-size: 0.76rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
  border-top: 1px dashed #f1f5f9;
  padding-top: 0.4rem;
}




/* Student Gate Pass Section & Digital Pass Styling */

.gate-pass-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.gate-pass-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 2rem 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(49, 46, 129, 0.35);
  position: relative;
  overflow: hidden;
}

.gate-pass-hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.gate-pass-hero-text h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gate-pass-hero-text p {
  font-size: 0.95rem;
  color: #c7d2fe;
  margin: 0;
  max-width: 600px;
  line-height: 1.5;
}

.gate-pass-apply-hero-btn {
  background: #ffffff;
  color: #312e81;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.gate-pass-apply-hero-btn:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.gate-pass-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gate-pass-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease;
}

.gate-pass-stat-card:hover {
  transform: translateY(-2px);
}

.gate-pass-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.gate-pass-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.gate-pass-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Applications Table & Cards */
.gate-pass-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.gate-pass-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gate-pass-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.gate-pass-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.gate-pass-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.gate-pass-table td {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.gate-pass-table tr:hover td {
  background: #f8fafc;
}

/* Status Badges */
.gp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.gp-badge-pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  animation: pulse-border 2s infinite;
}

.gp-badge-approved {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.gp-badge-rejected {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@keyframes pulse-border {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
  }
}

/* Document pill */
.gp-doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gp-doc-badge:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Printable Official Digital Gate Pass */
.digital-pass-card {
  background: #ffffff;
  border: 2px dashed #4338ca;
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.digital-pass-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(34, 197, 94, 0.08);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.digital-pass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.digital-pass-barcode {
  background: #0f172a;
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}

.digital-pass-stamps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px dashed #cbd5e1;
}

.official-stamp-box {
  border: 2px solid #16a34a;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  text-align: center;
  background: #f0fdf4;
  position: relative;
}

.official-stamp-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.official-stamp-seal {
  font-size: 1.05rem;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 0.02em;
}

.official-stamp-sub {
  font-size: 0.72rem;
  color: #475569;
  margin-top: 0.2rem;
}

@media print {
  .digital-pass-card {
    position: static !important;
    width: 100% !important;
    max-width: 620px !important;
    margin: 0 auto !important;
    border: 2px solid #000 !important;
    box-shadow: none !important;
  }
}

/* Rejection reason chip in student gate pass table */
.gp-rejection-reason-chip {
  margin-top: 5px;
  background: #fef2f2;
  border: 1px solid #fecdd3;
  border-left: 3px solid #e11d48;
  border-radius: 6px;
  padding: 5px 7px;
  text-align: left;
}

.gp-rejection-chip-header {
  font-size: 0.68rem;
  font-weight: 700;
  color: #991b1b;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 2px;
}

.gp-rejection-chip-body {
  font-size: 0.72rem;
  color: #7f1d1d;
  line-height: 1.35;
  font-weight: 500;
  font-style: italic;
}

.gp-rejection-chip-footer {
  font-size: 0.65rem;
  color: #b91c1c;
  margin-top: 3px;
}


/* Authentic Handwritten Letter & Scanned Document Styling */

.handwritten-letter-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

.handwritten-paper {
  width: 100%;
  max-width: 680px;
  background-color: #fdfbf7;
  /* Lined notebook ruled lines */
  background-image: 
    linear-gradient(90deg, transparent 58px, #fca5a5 58px, #fca5a5 60px, transparent 60px),
    repeating-linear-gradient(transparent, transparent 31px, #cbd5e1 31px, #cbd5e1 32px);
  background-size: 100% 32px;
  background-position: 0 8px;
  border-radius: 6px;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 10px 25px rgba(0, 0, 0, 0.1),
    inset 0 0 40px rgba(0, 0, 0, 0.02);
  border: 1px solid #e2e8f0;
  padding: 2.2rem 1.8rem 2rem 5rem;
  position: relative;
  font-family: 'Caveat', 'Kalam', cursive;
  color: #1e3a8a; /* Royal fountain pen ink */
  font-size: 1.25rem;
  line-height: 32px;
  letter-spacing: 0.015em;
  overflow: hidden;
}

/* Punch holes on the left margin */
.handwritten-punch-hole {
  position: absolute;
  left: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.punch-top {
  top: 40px;
}

.punch-mid {
  top: 50%;
  transform: translateY(-50%);
}

.punch-bottom {
  bottom: 40px;
}

/* Paper header with date */
.handwritten-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.handwritten-date {
  font-size: 1.15rem;
  color: #1e3a8a;
  font-weight: 600;
}

.handwritten-address-block {
  margin-bottom: 0.75rem;
  line-height: 32px;
}

.handwritten-subject {
  margin: 0.5rem 0 0.75rem 0;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #0f2b5c;
}

.handwritten-body-text {
  margin-bottom: 1.25rem;
  text-indent: 1.5rem;
  text-align: justify;
}

/* Signatures section */
.handwritten-signatures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.25rem;
  align-items: flex-end;
}

/* Student signature */
.handwritten-student-sign-box {
  line-height: 26px;
  padding-left: 0.5rem;
}

.cursive-sign-student {
  font-family: 'Dancing Script', cursive;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e40af;
  display: inline-block;
  transform: rotate(-2deg);
  margin-bottom: 4px;
}

.student-meta-handwritten {
  font-size: 1.1rem;
  color: #1e3a8a;
  line-height: 24px;
}

/* Mentor approval & stamp box */
.handwritten-mentor-approval-box {
  border: 2px dashed #15803d;
  background: rgba(240, 253, 244, 0.85);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  position: relative;
  transform: rotate(-1.5deg);
  box-shadow: 2px 3px 8px rgba(22, 101, 52, 0.08);
  font-family: inherit;
  color: #14532d;
  line-height: 24px;
}

.mentor-stamp-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #16a34a;
  color: #ffffff;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.mentor-remarks-handwritten {
  font-size: 1.15rem;
  color: #15803d;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-style: italic;
}

.cursive-sign-mentor {
  font-family: 'Dancing Script', cursive;
  font-size: 1.85rem;
  font-weight: 800;
  color: #166534;
  display: inline-block;
  transform: rotate(-3deg);
  margin-bottom: 2px;
}

.mentor-details-text {
  font-size: 1.05rem;
  color: #166534;
  line-height: 20px;
}

/* Official circular seal watermark */
.mentor-circular-seal {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 76px;
  height: 76px;
  border: 2px solid rgba(22, 163, 74, 0.7);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: system-ui, sans-serif;
  color: #16a34a;
  transform: rotate(12deg);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.seal-ring-inner {
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.seal-center-text {
  font-size: 0.65rem;
  font-weight: 900;
  margin: 2px 0;
  color: #15803d;
}

/* Print optimizations */
@media print {
  .handwritten-paper {
    border: none;
    box-shadow: none;
    max-width: 100%;
    padding: 1rem;
  }
}
/* Smart AI Complaint Submission Modal Styles - Apna Campus */

.smart-complaint-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  animation: scmFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scmFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.smart-complaint-card {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 820px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.8);
  overflow: hidden;
  animation: scmSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scmSlideUp {
  from { transform: translateY(16px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Header */
.smart-complaint-header {
  padding: 1.15rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.smart-complaint-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.smart-complaint-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  color: #7c3aed;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.12);
}

.smart-complaint-header-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.smart-complaint-header-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
}

.smart-complaint-close-btn {
  background: #f1f5f9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #64748b;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.smart-complaint-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Scrollable Body */
.smart-complaint-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

/* Section Container */
.scm-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.75rem;
}

.scm-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.scm-section-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
}

.scm-section-badge.required {
  background: #fff1f2;
  color: #e11d48;
}

.scm-section-badge.ai {
  background: #ede9fe;
  color: #7c3aed;
}

/* Grid Layouts */
.scm-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.scm-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 680px) {
  .scm-grid-2, .scm-grid-3 {
    grid-template-columns: 1fr;
  }
}

.scm-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.scm-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scm-input, .scm-select, .scm-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-size: 0.88rem;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: all 0.15s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.scm-input:focus, .scm-select:focus, .scm-textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.scm-textarea {
  resize: vertical;
  min-height: 85px;
}

/* Upload Zone */
.scm-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  background: #fafafa;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.scm-dropzone:hover, .scm-dropzone.active {
  border-color: #7c3aed;
  background: #faf5ff;
}

.scm-dropzone-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ede9fe;
  color: #7c3aed;
  display: grid;
  place-items: center;
}

.scm-dropzone-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.scm-dropzone-hint {
  font-size: 0.76rem;
  color: #64748b;
}

/* Image Preview Bar */
.scm-preview-container {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem;
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.scm-preview-thumb {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  -o-object-fit: cover;
     object-fit: cover;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  flex-shrink: 0;
}

.scm-preview-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.scm-preview-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scm-preview-meta {
  font-size: 0.74rem;
  color: #64748b;
  display: flex;
  gap: 0.75rem;
}

.scm-preview-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.scm-btn-outline {
  padding: 0.45rem 0.75rem;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.scm-btn-outline:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.scm-btn-danger-outline {
  padding: 0.45rem 0.75rem;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e11d48;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.scm-btn-danger-outline:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}

/* AI Analysis Card */
.scm-ai-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  transition: all 0.2s ease;
}

.scm-ai-card.high {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.scm-ai-card.medium {
  background: #fffbeb;
  border-color: #fde68a;
}

.scm-ai-card.low {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.scm-ai-card.analyzing {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.scm-ai-card.error {
  background: #fef2f2;
  border-color: #fecaca;
}

.scm-ai-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.scm-ai-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.scm-ai-status-pill.high {
  background: #dcfce7;
  color: #15803d;
}

.scm-ai-status-pill.medium {
  background: #fef3c7;
  color: #b45309;
}

.scm-ai-status-pill.low {
  background: #e2e8f0;
  color: #475569;
}

.scm-ai-status-pill.analyzing {
  background: #dbeafe;
  color: #1d4ed8;
}

.scm-ai-status-pill.error {
  background: #fee2e2;
  color: #b91c1c;
}

.scm-ai-disclaimer {
  font-size: 0.74rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.scm-ai-confidence-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin: 0.2rem 0;
}

.scm-ai-confidence-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.scm-ai-confidence-fill.high {
  background: #16a34a;
}

.scm-ai-confidence-fill.medium {
  background: #d97706;
}

.scm-ai-confidence-fill.low {
  background: #94a3b8;
}

.scm-ai-explanation {
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.scm-ai-cues-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.scm-ai-cue-chip {
  font-size: 0.72rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  color: #475569;
}

/* Category Grid Tiles */
.scm-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.65rem;
}

.scm-category-tile {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.scm-category-tile:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.scm-category-tile.selected {
  border-color: #7c3aed;
  background: #faf5ff;
  box-shadow: 0 0 0 1.5px #7c3aed;
}

.scm-category-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scm-category-tile-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #1e293b;
}

.scm-category-tile.selected .scm-category-tile-name {
  color: #6d28d9;
}

.scm-category-tile-desc {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.3;
}

/* Priority Selector */
.scm-priority-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.65rem;
}

.scm-priority-btn {
  padding: 0.6rem 0.5rem;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.scm-priority-btn.selected-low {
  background: #f0fdf4;
  border-color: #16a34a;
  color: #15803d;
}

.scm-priority-btn.selected-medium {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
}

.scm-priority-btn.selected-high {
  background: #fef2f2;
  border-color: #ef4444;
  color: #b91c1c;
}

/* Summary Review Box */
.scm-review-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.scm-review-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.82rem;
  gap: 1rem;
}

.scm-review-label {
  color: #64748b;
  font-weight: 500;
  min-width: 110px;
}

.scm-review-val {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
  flex: 1;
}

/* Footer Actions */
.smart-complaint-footer {
  padding: 1.15rem 1.5rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.scm-footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.scm-draft-status {
  font-size: 0.75rem;
  color: #64748b;
}

.scm-footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.scm-btn-primary {
  background: #7c3aed;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 0.65rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(124, 58, 237, 0.2);
}

.scm-btn-primary:hover:not(:disabled) {
  background: #6d28d9;
}

.scm-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.scm-btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 0.65rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.scm-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Success Confirmation Overlay */
.scm-success-card {
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.scm-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: #dcfce7;
  color: #16a34a;
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
}

.scm-ticket-badge {
  font-size: 1.1rem;
  font-weight: 800;
  color: #7c3aed;
  background: #ede9fe;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  font-family: monospace;
}

/* Animation utilities */
.scm-spin {
  animation: scmSpin 1s linear infinite;
}

@keyframes scmSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* ============================================================================
   BPUT CMS - HOSTEL EXTRA SECTIONS STYLESHEET
   Clean, modern, responsive ERP styling matching APNA_CAMPUS design system.
   ============================================================================ */

.hostel-section-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.hostel-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.hostel-section-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hostel-section-header p {
  margin: 0.25rem 0 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

/* KPI Summary Cards Grid */
.hostel-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.hostel-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.hostel-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.hostel-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}

.hostel-kpi-icon.blue { background: #eff6ff; color: #2563eb; }
.hostel-kpi-icon.emerald { background: #ecfdf5; color: #059669; }
.hostel-kpi-icon.rose { background: #fff1f2; color: #e11d48; }
.hostel-kpi-icon.amber { background: #fffbeb; color: #d97706; }
.hostel-kpi-icon.purple { background: #faf5ff; color: #7c3aed; }
.hostel-kpi-icon.indigo { background: #eef2ff; color: #4f46e5; }
.hostel-kpi-icon.teal { background: #f0fdfa; color: #0d9488; }

.hostel-kpi-info {
  display: flex;
  flex-direction: column;
}

.hostel-kpi-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.hostel-kpi-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.hostel-kpi-subtitle {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Filter Strip */
.hostel-filter-strip {
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hostel-filter-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hostel-search-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.84rem;
  min-width: 260px;
}

.hostel-search-input input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.85rem;
  color: #0f172a;
}

.hostel-select {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  cursor: pointer;
}

.hostel-select:focus {
  border-color: #2563eb;
  background: #ffffff;
}

/* Modern Tab Pill Switcher */
.hostel-tab-pills {
  display: flex;
  gap: 0.4rem;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.hostel-tab-pill {
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hostel-tab-pill:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.5);
}

.hostel-tab-pill.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Data Table Styling */
.hostel-table-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.hostel-table-scroll {
  overflow-x: auto;
  width: 100%;
}

.hostel-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.hostel-data-table thead {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.hostel-data-table th {
  padding: 0.85rem 1rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hostel-data-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.hostel-data-table tbody tr:hover {
  background: #f8faff;
}

.hostel-data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Badges */
.h-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.73rem;
  font-weight: 700;
  white-space: nowrap;
}

.h-badge-present { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.h-badge-absent { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }
.h-badge-leave { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.h-badge-late { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.h-badge-pending { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.h-badge-approved { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.h-badge-rejected { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.h-badge-urgent { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; font-weight: 800; }
.h-badge-critical { background: #7f1d1d; color: #ffffff; border: 1px solid #991b1b; font-weight: 800; }
.h-badge-high { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.h-badge-medium { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.h-badge-low { background: #f8fafc; color: #475569; border: 1px solid #cbd5e1; }
.h-badge-paid { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.h-badge-overdue { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* Grid Cards for Assets, Staff, Incidents */
.hostel-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.hostel-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.2s ease;
}

.hostel-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

/* Button variants */
.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.h-btn-primary {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.h-btn-primary:hover {
  background: #1d4ed8;
}

.h-btn-secondary {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.h-btn-secondary:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.h-btn-success {
  background: #059669;
  color: #ffffff;
}

.h-btn-success:hover {
  background: #047857;
}

.h-btn-danger {
  background: #dc2626;
  color: #ffffff;
}

.h-btn-danger:hover {
  background: #b91c1c;
}

/* Rule Accordion Card */
.hostel-rule-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.hostel-rule-header {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.hostel-rule-header h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hostel-rule-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-top: 1px solid #e2e8f0;
}

/* Rule Item Card & Admin Controls */
.hostel-rule-item-card {
  background: #f8fafc;
  padding: 0.95rem 1.15rem;
  border-radius: 8px;
  border-left: 3.5px solid #2563eb;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.hostel-rule-item-card:hover {
  background: #f1f5f9;
  border-left-color: #1d4ed8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.h-rule-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.h-rule-action-btn.edit {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.h-rule-action-btn.edit:hover {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

.h-rule-action-btn.delete {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.h-rule-action-btn.delete:hover {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.warden-rules-notice-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .hostel-section-header {
    flex-direction: column;
    align-items: stretch;
  }
  .hostel-filter-strip {
    flex-direction: column;
    align-items: stretch;
  }
  .hostel-filter-group {
    flex-direction: column;
    width: 100%;
  }
  .hostel-search-input {
    width: 100%;
    min-width: 100%;
  }
  .hostel-select {
    width: 100%;
  }
}

/* ─────────────────────────────────────────────────────────────
   LEAVE REJECTION REASON MODAL & DISPLAY STYLES
   ───────────────────────────────────────────────────────────── */

.leave-rejection-chip {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.73rem;
  line-height: 1.3;
  margin-top: 5px;
  text-align: left;
  max-width: 200px;
  word-break: break-word;
}

.modal-rejection-card {
  background: #fff1f2;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.85rem;
}

.rejection-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #991b1b;
  font-size: 0.92rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #fecaca;
  margin-bottom: 0.5rem;
}

.rejection-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reason-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #991b1b;
  letter-spacing: 0.03em;
}

.reason-quote {
  margin: 0;
  font-size: 0.88rem;
  color: #7f1d1d;
  font-weight: 600;
  font-style: italic;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #fecaca;
}

.rejection-meta {
  font-size: 0.74rem;
  color: #b91c1c;
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}

/* Rejection Modal */
.reject-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  animation: fadeInBackdrop 0.15s ease-in-out;
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reject-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 600px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid #cbd5e1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: scaleUpCard 0.2s ease-out;
}

@keyframes scaleUpCard {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.reject-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem;
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
}

.reject-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #fca5a5;
}

.reject-modal-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-height: 70vh;
  overflow-y: auto;
}

.reject-summary-banner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
}

.summary-col {
  display: flex;
  gap: 8px;
}

.summary-col .lbl {
  color: #64748b;
  min-width: 140px;
  font-weight: 600;
}

.summary-col strong {
  color: #0f172a;
}

.reject-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.reject-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reject-subtext {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 500;
}

.reject-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.86rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease;
  resize: vertical;
}

.reject-textarea:focus {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.reject-error-msg {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #e11d48;
  font-size: 0.78rem;
  font-weight: 600;
}

.reject-presets-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fdf2f8;
  border: 1px dashed #fbcfe8;
  padding: 0.85rem;
  border-radius: 8px;
}

.presets-label {
  font-size: 0.73rem;
  font-weight: 700;
  color: #9d174d;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.presets-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.preset-chip-btn {
  background: #ffffff;
  border: 1px solid #f472b6;
  color: #be185d;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.preset-chip-btn:hover {
  background: #fbcfe8;
  color: #831843;
}

.reject-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.4rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.h-btn-edit-meal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: #f1f5f9;
  color: #2563eb;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.h-btn-edit-meal:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.h-btn-edit-meal:active {
  transform: scale(0.97);
}
.class-notes-page { animation: fade-in 0.25s ease; }
.notes-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.notes-title { font-family: var(--font-display, 'Outfit', sans-serif); font-size: 1.65rem; font-weight: 700; color: #0a0f1e; margin: 0 0 6px; }
.notes-subtitle { color: #64748b; font-size: 0.92rem; margin: 0; }

.btn-upload-notes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #4338ca, #3730a3);
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.25);
  transition: all 0.2s ease;
}
.btn-upload-notes:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(67, 56, 202, 0.35);
}

/* UGC Disclaimer Banner */
.ugc-disclaimer-banner {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #4338ca;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: #334155;
}
.ugc-icon { color: #4338ca; flex-shrink: 0; margin-top: 1px; }

/* Filter Bar */
.notes-filter-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #475569; display: flex; align-items: center; gap: 4px; }
.filter-select, .filter-input {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s;
}
.filter-select:focus, .filter-input:focus {
  border-color: #4338ca;
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.12);
}
.btn-clear-filters {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
}

/* Notes Grid */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; margin-bottom: 30px; }
.note-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}
.note-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: #cbd5e1;
}

.note-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.note-subject-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: #e0e7ff;
  color: #3730a3;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.note-topic-title { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin: 6px 0 0; }

.badge-faculty-verified {
  font-size: 0.72rem;
  font-weight: 700;
  background: #dcfce7;
  color: #15803d;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #86efac;
}
.badge-student-uploaded {
  font-size: 0.72rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 12px;
}

.note-description { font-size: 0.85rem; color: #475569; margin: 0 0 14px; line-height: 1.5; }

/* Duplicate Sets Bar */
.duplicate-sets-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 14px;
}
.dup-label { font-size: 0.76rem; font-weight: 700; color: #4338ca; display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.dup-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dup-chip-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}
.dup-chip-btn:hover { background: #4338ca; color: #ffffff; border-color: #4338ca; }

.note-card-meta {
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #64748b;
}
.meta-left { display: flex; flex-direction: column; gap: 2px; }

.btn-view-notes {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-view-notes:hover { background: #4338ca; color: #ffffff; }

.notes-empty-state { text-align: center; padding: 60px 20px; grid-column: 1 / -1; color: #64748b; }

/* Modal */
.notes-modal-backdrop { position: fixed; inset: 0; background: rgba(10,15,30,0.65); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 999; padding: 20px; }
.notes-modal-card { background: #ffffff; border-radius: 18px; max-width: 560px; width: 100%; padding: 24px; box-shadow: 0 12px 35px rgba(0,0,0,0.18); position: relative; }
.notes-modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #94a3b8; }
.notes-icon-box { width: 42px; height: 42px; border-radius: 10px; background: #e0e7ff; color: #4338ca; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.form-label { display: block; font-size: 0.78rem; font-weight: 700; color: #334155; margin-bottom: 4px; }
.form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  box-sizing: border-box;
}
.form-input:focus { border-color: #4338ca; box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.12); }

.upload-dropzone { border: 2px dashed #cbd5e1; border-radius: 10px; padding: 18px; text-align: center; background: #f8fafc; }
.note-preview-box { background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 10px; padding: 14px; margin-bottom: 14px; }

.btn-primary { padding: 9px 18px; background: #4338ca; color: #ffffff; border-radius: 8px; font-size: 0.88rem; font-weight: 700; border: none; cursor: pointer; }
.btn-secondary { padding: 9px 18px; background: #f1f5f9; color: #334155; border-radius: 8px; font-size: 0.88rem; font-weight: 600; border: 1px solid #cbd5e1; cursor: pointer; }
.btn-report-flag { background: none; border: 1px solid #fca5a5; color: #dc2626; padding: 4px 8px; border-radius: 6px; font-size: 0.76rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }

.notes-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 10000;
  animation: slide-in 0.3s ease;
}

/* Missed Notes Catch-up Banner */
.missed-notes-banner {
  background: linear-gradient(135deg, #fefce8, #fef9c3);
  border: 1.5px solid #fde047;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.missed-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.missed-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fef08a;
  color: #ca8a04;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.missed-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-missed-quick-pill {
  background: #ffffff;
  border: 1px solid #eab308;
  color: #a16207;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-missed-quick-pill:hover {
  background: #fef08a;
  color: #713f12;
}

/* Note Card Thumbnail & Preview */
.note-thumbnail-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  max-height: 140px;
  background: #0f172a;
  margin-bottom: 12px;
}
.note-thumbnail-img {
  width: 100%;
  max-height: 140px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.note-card:hover .note-thumbnail-img {
  transform: scale(1.03);
}
.note-type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #f8fafc;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.note-pdf-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

/* Meta Actions */
.meta-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-note-action-icon {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-note-action-icon:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.btn-note-action-icon.liked {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}
/* ═══════════════════════════════════════════════════════════════════════════
   APNA CAMPUS — STUDENT SCHOLARSHIPS & FINANCIAL AID PLATFORM
   Uniform Enterprise Design System matching FeesPage, AcademicsPage & AccountsPortal
   ═══════════════════════════════════════════════════════════════════════════ */

.scholarship-page {
  animation: fade-in 0.25s ease;
  padding: 0;
  color: #0f172a;
  font-family: inherit;
  width: 100%;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── 1. Header ──────────────────────────────────────────────────────────── */
.scholarship-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.scholarship-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: #0a0f1e;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.scholarship-subtitle {
  color: #64748b;
  font-size: 0.92rem;
  margin: 0;
  max-width: 680px;
  line-height: 1.45;
}

.scholarship-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ─── 2. KPI Metrics Grid ────────────────────────────────────────────────── */
.scholarship-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.scholarship-metric-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
}

.scholarship-metric-card.interactive {
  cursor: pointer;
}

.scholarship-metric-card.interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
  border-color: #93c5fd;
}

.scholarship-metric-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.scholarship-metric-icon.blue { background: #eff6ff; color: #2563eb; }
.scholarship-metric-icon.green { background: #ecfdf5; color: #10b981; }
.scholarship-metric-icon.purple { background: #faf5ff; color: #8b5cf6; }
.scholarship-metric-icon.amber { background: #fffbeb; color: #f59e0b; }
.scholarship-metric-icon.indigo { background: #eef2ff; color: #4f46e5; }

.scholarship-metric-body h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin: 0 0 4px;
  font-weight: 600;
}

.scholarship-metric-body .metric-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0a0f1e;
  line-height: 1.2;
}

.scholarship-metric-body .metric-sub {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}

/* ─── 3. Navigation Tabs ─────────────────────────────────────────────────── */
.scholarship-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 22px;
  overflow-x: auto;
  white-space: nowrap;
}

.scholarship-tab-btn {
  background: none;
  border: none;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.scholarship-tab-btn:hover {
  color: #2563eb;
}

.scholarship-tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 700;
}

/* ─── 4. Main Section Card ───────────────────────────────────────────────── */
.scholarship-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

.scholarship-sec-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.scholarship-sec-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0a0f1e;
  margin: 0 0 4px;
}

.scholarship-sec-header .sec-sub {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.view-mode-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
  border: 1px solid #e2e8f0;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-toggle-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ─── 5. Filter Toolbar ──────────────────────────────────────────────────── */
.scholarship-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.scholarship-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  flex: 1;
  min-width: 240px;
  transition: border-color 0.2s;
}

.scholarship-search-wrap:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.search-icon {
  color: #94a3b8;
  flex-shrink: 0;
}

.scholarship-search-wrap input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.86rem;
  color: #0f172a;
}

.search-clear-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.scholarship-select {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.84rem;
  color: #1e293b;
  background: #ffffff;
  outline: none;
  font-weight: 500;
  cursor: pointer;
}

.scholarship-select:focus {
  border-color: #2563eb;
}

.filter-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill-btn:hover {
  background: #f8fafc;
  border-color: #93c5fd;
  color: #2563eb;
}

.filter-pill-btn.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
}

.btn-reset-filters {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
}

.btn-reset-filters:hover {
  color: #dc2626;
}

/* ─── 6. Data Table Presentation ─────────────────────────────────────────── */
.scholarship-table-wrap {
  overflow-x: auto;
}

.scholarship-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.scholarship-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.scholarship-table td {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
  color: #1e293b;
  vertical-align: middle;
}

.scholarship-table tr:hover {
  background: #f8fafc;
}

.scheme-title-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 320px;
}

.scheme-title-col strong {
  font-size: 0.92rem;
  color: #0f172a;
}

.scheme-provider-sub {
  font-size: 0.78rem;
  color: #64748b;
}

.ref-code {
  font-family: monospace;
  font-size: 0.82rem;
  color: #2563eb;
}

.cat-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.cat-tag.gov { background: #e0f2fe; color: #0369a1; }
.cat-tag.inst { background: #faf5ff; color: #7e22ce; }
.cat-tag.csr { background: #eef2ff; color: #3730a3; }

.eligibility-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eligibility-col span.pass {
  color: #059669;
  font-weight: 600;
  font-size: 0.84rem;
}

.eligibility-col span.fail {
  color: #475569;
  font-weight: 500;
  font-size: 0.84rem;
}

.eligibility-col small {
  color: #64748b;
  font-size: 0.76rem;
}

.amount-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.amount-col strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #059669;
}

.amount-col small {
  font-size: 0.74rem;
  color: #64748b;
}

.deadline-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 0.84rem;
  white-space: nowrap;
}

.deadline-col small {
  font-size: 0.74rem;
  color: #94a3b8;
}

/* Status Badges */
.scholarship-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.scholarship-badge.open { background: #ecfdf5; color: #059669; }
.scholarship-badge.applied { background: #eff6ff; color: #2563eb; }
.scholarship-badge.closing { background: #fffbeb; color: #d97706; }
.scholarship-badge.closed { background: #f1f5f9; color: #64748b; }

.table-actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Buttons */
.btn-details {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #ffffff;
  color: #1e293b;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-details:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-apply-primary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-apply-primary:hover {
  background: #1d4ed8;
}

.btn-applied-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: #ecfdf5;
  color: #059669;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid #a7f3d0;
  cursor: pointer;
  white-space: nowrap;
}

.btn-closed-pill {
  display: inline-block;
  padding: 5px 10px;
  background: #f1f5f9;
  color: #94a3b8;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.btn-bookmark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-bookmark:hover {
  border-color: #f43f5e;
  color: #f43f5e;
  background: #fff1f2;
}

.btn-bookmark.active {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

.btn-receipt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f1f5f9;
  color: #1e293b;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-receipt:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.btn-pay-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
  transition: all 0.2s;
}

.btn-pay-now:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.35);
}

/* ─── 7. Grid Cards Presentation ─────────────────────────────────────────── */
.scholarship-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.scholarship-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.scholarship-card-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-top-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-scheme-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.card-provider-name {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 8px;
  display: block;
}

.card-scheme-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-info-box {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.8rem;
}

.card-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
}

.card-info-row strong.text-grant {
  color: #059669;
  font-size: 0.92rem;
}

.card-info-row strong.text-pass {
  color: #059669;
}

.card-info-row strong.text-fail {
  color: #475569;
}

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

/* ─── 8. Stepper in Tracker ──────────────────────────────────────────────── */
.stage-stepper-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stage-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
}

.mini-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
}

.step-dot.completed {
  background: #059669;
  color: #ffffff;
}

.step-dot.active {
  background: #2563eb;
  color: #ffffff;
}

.step-bar {
  width: 18px;
  height: 2px;
  background: #e2e8f0;
}

.step-bar.completed {
  background: #059669;
}

/* ─── 9. Guidelines Grid ─────────────────────────────────────────────────── */
.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.guideline-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
}

.guideline-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.guideline-icon.blue { background: #eff6ff; color: #2563eb; }
.guideline-icon.green { background: #ecfdf5; color: #10b981; }
.guideline-icon.amber { background: #fffbeb; color: #f59e0b; }
.guideline-icon.purple { background: #faf5ff; color: #8b5cf6; }

.guideline-card h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.guideline-card p {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}

.guideline-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.5;
}

/* ─── 10. Modals ─────────────────────────────────────────────────────────── */
.payment-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.payment-modal {
  background: #ffffff;
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  padding: 26px 28px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.payment-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
}

.payment-modal-close:hover {
  color: #0f172a;
}

.modal-head-row {
  margin-bottom: 16px;
}

.modal-sub-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #2563eb;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 3px;
}

.modal-main-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.modal-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}

.modal-stat-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-stat-box .lbl {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}

.modal-stat-box .val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.modal-tab-body h4 {
  margin: 14px 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.modal-tab-body h4:first-child {
  margin-top: 0;
}

.modal-tab-body p {
  margin: 0 0 12px;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.45;
}

.modal-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  color: #334155;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 6px;
}

.faqs-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
}

.faq-box strong {
  font-size: 0.84rem;
  color: #0f172a;
  display: block;
  margin-bottom: 4px;
}

.faq-box p {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
}

.modal-footer-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

/* Wizard Stepper in Apply Modal */
.wizard-stepper-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}

.wizard-step span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
}

.wizard-step.active {
  color: #2563eb;
}

.wizard-step.active span {
  background: #2563eb;
  color: #ffffff;
}

.wizard-step.done {
  color: #059669;
}

.wizard-step.done span {
  background: #059669;
  color: #ffffff;
}

.wizard-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
}

.wizard-step-line.done {
  background: #059669;
}

.modal-form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.field-lbl {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.fee-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.86rem;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.fee-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.fee-input[readonly] {
  background: #f8fafc;
  color: #64748b;
}

.upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.upload-dropzone:hover {
  background: #eff6ff;
  border-color: #2563eb;
}

.upload-dropzone strong {
  font-size: 0.88rem;
  color: #0f172a;
}

.upload-dropzone small {
  font-size: 0.76rem;
  color: #64748b;
}

.verified-docs-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.verified-doc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #334155;
}

.verified-doc-item span {
  flex: 1;
}

.verified-tag {
  color: #059669;
  font-size: 0.78rem;
}

.summary-preview-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.82rem;
}

.summary-preview-card strong {
  color: #0f172a;
}

.summary-preview-card p {
  margin: 3px 0;
  color: #475569;
}

.declaration-check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: #334155;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.45;
  cursor: pointer;
}

.declaration-check-row input {
  margin-top: 2px;
}

.modal-success-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 10px;
}

.success-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ecfdf5;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.modal-success-pane h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.modal-success-pane p {
  margin: 0 0 16px;
  font-size: 0.86rem;
  color: #64748b;
  max-width: 440px;
}

.ref-id-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 24px;
  margin-bottom: 18px;
}

.ref-id-pill small {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #64748b;
  display: block;
}

.ref-id-pill strong {
  font-family: monospace;
  font-size: 1.3rem;
  color: #0f172a;
}

.modal-success-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ─── 11. Empty State ─────────────────────────────────────────────────────── */
.scholarship-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.empty-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.scholarship-empty-state h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.scholarship-empty-state p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  max-width: 420px;
}

/* ─── 12. Toast ──────────────────────────────────────────────────────────── */
.fees-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 10000;
  animation: slide-in 0.3s ease;
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ─── 13. Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .scholarship-header {
    flex-direction: column;
    align-items: stretch;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .modal-stats-row {
    grid-template-columns: 1fr 1fr;
  }
}
/* Bonafide Management System - Modal & Component Styles */

.bonafide-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  overflow-y: auto;
}

.bonafide-modal-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: bonafideFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #e2e8f0;
}

.bonafide-modal-large {
  max-width: 900px;
}

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

/* Header */
.bonafide-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.bonafide-modal-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bonafide-modal-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bonafide-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.bonafide-modal-subtitle {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.bonafide-modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bonafide-modal-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Stepper bar */
.bonafide-steps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.bonafide-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}

.bonafide-step-item.active {
  color: #2563eb;
  font-weight: 600;
}

.bonafide-step-item.completed {
  color: #059669;
}

.bonafide-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.bonafide-step-item.active .bonafide-step-number {
  background: #2563eb;
  color: #ffffff;
}

.bonafide-step-item.completed .bonafide-step-number {
  background: #059669;
  color: #ffffff;
}

.bonafide-step-divider {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 12px;
}

/* Error Banner */
.bonafide-error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 500;
}

/* Body */
.bonafide-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

/* Step 1: Purpose Grid */
.bonafide-section-head h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.bonafide-section-head p {
  margin: 0 0 16px 0;
  font-size: 13px;
  color: #64748b;
}

.bonafide-purposes-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.bonafide-purpose-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  background: #ffffff;
}

.bonafide-purpose-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.08);
}

.bonafide-purpose-card.selected {
  border-color: #2563eb;
  background: #f8faff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.bonafide-purpose-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bonafide-purpose-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bonafide-template-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bonafide-purpose-title {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.bonafide-purpose-desc {
  margin: 0 0 14px 0;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
  flex: 1;
}

.bonafide-purpose-flow {
  background: #f1f5f9;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.bonafide-flow-label {
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.bonafide-flow-text {
  color: #1e293b;
  font-weight: 500;
}

.bonafide-purpose-select-indicator {
  display: flex;
  justify-content: flex-end;
}

.bonafide-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
}

/* Step 2: Form layout */
.bonafide-form-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bonafide-purpose-banner {
  background: #f8fafc;
  border-left: 4px solid #2563eb;
  padding: 12px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bonafide-banner-badge {
  font-size: 10px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.bonafide-change-purpose-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bonafide-change-purpose-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.bonafide-form-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
}

.bonafide-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.bonafide-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.bonafide-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.bonafide-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bonafide-field label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.bonafide-field label .req {
  color: #ef4444;
  margin-left: 2px;
}

.bonafide-field input,
.bonafide-field select,
.bonafide-field textarea {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  color: #0f172a;
  background: #ffffff;
  transition: all 0.15s ease;
  outline: none;
  font-family: inherit;
}

.bonafide-field input:focus,
.bonafide-field select:focus,
.bonafide-field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.bonafide-field .readonly-input {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
  cursor: not-allowed;
}

.bonafide-input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.bonafide-input-with-icon svg {
  position: absolute;
  left: 10px;
  color: #94a3b8;
}

.bonafide-input-with-icon input {
  padding-left: 34px;
  width: 100%;
}

.field-hint {
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
}

/* Authoritative Hostel Card */
.bonafide-hostel-verified-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px;
  margin-top: 14px;
}

.bonafide-hostel-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #166534;
  font-weight: 600;
}

.bonafide-hostel-note {
  font-size: 11.5px;
  color: #15803d;
  margin: 4px 0 0 0;
}

/* Residency options for loan fee */
.bonafide-residency-toggle-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px;
  margin: 14px 0;
}

.bonafide-residency-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 8px;
}

.bonafide-residency-options {
  display: flex;
  gap: 12px;
}

.bonafide-residency-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid #d97706;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #78350f;
  transition: all 0.15s ease;
}

.bonafide-residency-pill.active {
  background: #fef3c7;
  border-color: #b45309;
}

/* Fee structure table */
.bonafide-fee-table-wrap {
  margin-top: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.bonafide-fee-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12.5px;
}

.bonafide-fee-currency {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.bonafide-fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.bonafide-fee-table th,
.bonafide-fee-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}

.bonafide-fee-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bonafide-fee-table tr:hover {
  background: #fafafa;
}

.fee-subtotal-row {
  background: #f1f5f9 !important;
}

.hostel-fee-row {
  background: #f0fdf4;
}

.fee-grand-total-row {
  background: #eef2ff !important;
  border-top: 2px solid #6366f1;
}

/* Declaration Box */
.bonafide-declaration-box {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.bonafide-declaration-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  color: #334155;
  line-height: 1.5;
}

.bonafide-declaration-label input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Step 3: Review summary */
.bonafide-review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.bonafide-review-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.bonafide-review-header p {
  margin: 2px 0 0 0;
  font-size: 12.5px;
  color: #64748b;
}

.bonafide-review-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ffffff;
}

.bonafide-review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f8fafc;
  font-size: 13px;
}

.bonafide-review-label {
  color: #64748b;
  font-weight: 500;
}

.bonafide-review-value {
  color: #0f172a;
  text-align: right;
  max-width: 65%;
}

/* Footer buttons */
.bonafide-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
}

.bonafide-footer-left,
.bonafide-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bonafide-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: #2563eb;
  border: 1px solid #1d4ed8;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.15);
}

.bonafide-btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
}

.bonafide-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bonafide-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bonafide-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.bonafide-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bonafide-btn-outline:hover:not(:disabled) {
  background: #f8fafc;
  color: #1e293b;
  border-color: #94a3b8;
}

.bonafide-btn-ghost {
  background: transparent;
  border: none;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
}

.bonafide-btn-ghost:hover:not(:disabled) {
  color: #0f172a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bonafide-purposes-cards {
    grid-template-columns: 1fr;
  }
  .bonafide-grid-2,
  .bonafide-grid-3 {
    grid-template-columns: 1fr;
  }
  .bonafide-residency-options {
    flex-direction: column;
  }
}

/* Status pills */
.bonafide-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-draft { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.status-submitted { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.status-under_review { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.status-approved { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.status-certificate_issued { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.status-changes_requested { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.status-rejected { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }
.status-withdrawn { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }

/* Details Modal Tabs */
.bonafide-details-tabs {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 24px;
  gap: 20px;
}

.bonafide-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 4px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bonafide-tab-btn:hover {
  color: #0f172a;
}

.bonafide-tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

/* Callout Banners */
.bonafide-rejection-callout {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.bonafide-callout-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bonafide-callout-comment {
  margin-top: 8px;
  font-size: 13px;
  color: #7f1d1d;
  background: #fee2e2;
  padding: 8px 12px;
  border-radius: 6px;
}

.bonafide-issued-callout {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-left: 4px solid #10b981;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Timeline Stepper */
.bonafide-timeline-container {
  padding: 10px 0;
}

.bonafide-timeline-steps {
  display: flex;
  flex-direction: column;
}

.bonafide-timeline-item {
  display: flex;
  gap: 16px;
  min-height: 80px;
}

.bonafide-timeline-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
  flex-shrink: 0;
}

.bonafide-timeline-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.bonafide-timeline-step-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bonafide-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
}

.bonafide-timeline-dot.is-red {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 3px #fee2e2;
  border: 1.5px solid #ffffff;
}

.bonafide-timeline-line {
  flex: 1;
  width: 2.5px;
  background: #e2e8f0;
  margin: 4px 0;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.bonafide-timeline-line.is-green {
  background: #10b981;
}

.bonafide-timeline-line.is-pending {
  background: #e2e8f0;
}

.bonafide-timeline-content {
  flex: 1;
  padding-bottom: 24px;
}

.bonafide-timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bonafide-timeline-stage-title {
  font-size: 14px;
  color: #0f172a;
}

.bonafide-timeline-stage-title.is-green {
  color: #0f172a;
  font-weight: 700;
}

.bonafide-timeline-stage-title.is-pending {
  color: #334155;
  font-weight: 600;
}

.bonafide-timeline-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-completed,
.badge-approved {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #86efac !important;
}

.badge-pending,
.badge-pending-red {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fca5a5 !important;
}

.badge-rejected {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #f87171 !important;
}

.badge-changes_requested {
  background: #ffedd5 !important;
  color: #9a3412 !important;
  border: 1px solid #fdba74 !important;
}

.bonafide-timeline-dept {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
}

.bonafide-timeline-review-box {
  margin-top: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
}

.bonafide-timeline-review-box.is-green-box {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.bonafide-timeline-review-box.is-red-box {
  background: #fef2f2;
  border-color: #fecaca;
}

/* Download option card in timeline when all stages completed */
.bonafide-timeline-download-card {
  margin-top: 14px;
  padding: 16px 20px;
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
  animation: bonafideFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bonafide-timeline-download-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bonafide-cert-success-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #d1fae5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #a7f3d0;
}

.bonafide-cert-success-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #065f46;
}

.bonafide-cert-success-subtitle {
  margin: 3px 0 0 0;
  font-size: 12px;
  color: #047857;
}

.bonafide-download-btn-pulse {
  background: #059669 !important;
  border-color: #047857 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 10px 18px !important;
  font-size: 13px !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25) !important;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bonafide-download-btn-pulse:hover {
  background: #047857 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35) !important;
}

.bonafide-timeline-reviewer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #475569;
}

.bonafide-timeline-remarks {
  margin: 6px 0 0 0;
  font-style: italic;
  color: #1e293b;
}

/* Details grid */
.bonafide-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.bonafide-info-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.bonafide-info-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #1e293b;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.bonafide-info-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
}

.info-pair {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.info-pair span {
  color: #64748b;
}

.info-pair strong {
  color: #0f172a;
  text-align: right;
  max-width: 60%;
}

/* Revisions */
.bonafide-revisions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bonafide-revision-item {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  background: #f8fafc;
}

.bonafide-revision-top {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #0f172a;
}

.bonafide-revision-summary {
  margin: 6px 0 0 0;
  font-size: 12px;
  color: #475569;
}

/* ==========================================================================
   SUPPORTIVE DOCUMENT UPLOAD COMPONENT STYLES
   ========================================================================== */

.bonafide-doc-upload-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.bonafide-upload-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.bonafide-upload-label {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bonafide-upload-label .req {
  color: #ef4444;
}

.bonafide-upload-meta-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bonafide-badge-size-limit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.bonafide-badge-size-limit strong {
  color: #2563eb;
  font-weight: 700;
}

.bonafide-badge-formats {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  padding: 3px 8px;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

/* Dropzone */
.bonafide-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.bonafide-dropzone:hover {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.bonafide-dropzone.is-dragging {
  border-color: #2563eb;
  background: #dbeafe;
  transform: scale(1.01);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.bonafide-dropzone-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.bonafide-dropzone-text {
  margin-bottom: 12px;
}

.bonafide-dropzone-main {
  font-size: 13.5px;
  color: #334155;
  margin: 0 0 3px 0;
}

.bonafide-dropzone-main strong {
  color: #2563eb;
}

.bonafide-dropzone-sub {
  font-size: 11.5px;
  color: #64748b;
  margin: 0;
}

.bonafide-dropzone-sub strong {
  color: #0f172a;
}

.bonafide-dropzone-browse-btn {
  background: #ffffff;
  color: #2563eb;
  border: 1.5px solid #bfdbfe;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.bonafide-dropzone-browse-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* Uploaded File Card */
.bonafide-uploaded-file-card {
  background: #ffffff;
  border: 1.5px solid #bfdbfe;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.06);
  animation: bonafideFadeIn 0.2s ease;
}

.bonafide-uploaded-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.bonafide-uploaded-thumb-preview {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
  cursor: pointer;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bonafide-uploaded-thumb-preview img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.2s ease;
}

.bonafide-uploaded-thumb-preview:hover img {
  transform: scale(1.08);
}

.bonafide-uploaded-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.bonafide-uploaded-icon-box.is-pdf {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.bonafide-uploaded-icon-box.is-doc {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.bonafide-uploaded-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bonafide-uploaded-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bonafide-uploaded-filename {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.bonafide-file-size-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 10px;
  letter-spacing: 0.02em;
}

.bonafide-uploaded-subline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bonafide-uploaded-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: #059669;
  font-weight: 500;
}

.bonafide-file-type-pill {
  font-size: 10.5px;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
}

.bonafide-uploaded-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bonafide-upload-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.bonafide-upload-action-btn.view-btn {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.bonafide-upload-action-btn.view-btn:hover {
  background: #dcfce7;
  color: #166534;
}

.bonafide-upload-action-btn.replace-btn {
  background: #f8fafc;
  color: #475569;
  border-color: #cbd5e1;
}

.bonafide-upload-action-btn.replace-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.bonafide-upload-action-btn.remove-btn {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
  padding: 6px 8px;
}

.bonafide-upload-action-btn.remove-btn:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.bonafide-upload-error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Supportive Doc Item in Details Modal and Review Queue */
.bonafide-supportive-doc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-top: 6px;
}

.bonafide-supportive-doc-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bonafide-supportive-doc-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bonafide-supportive-doc-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.bonafide-supportive-doc-sub {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}


/* Bonafide Page - Complete Apna Campus Theme Styles */

.bonafide-page-root {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 8px 4px 32px 4px;
  animation: bonafideFadeIn 0.25s ease-out;
}

/* Header */
.bonafide-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.bonafide-page-header-text {
  max-width: 720px;
}

.bonafide-page-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  border: 1px solid #bfdbfe;
}

.bonafide-page-title {
  margin: 0 0 6px 0;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.bonafide-page-desc {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
}

.bonafide-apply-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #1d4ed8;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.bonafide-apply-primary-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

/* KPI Grid */
.bonafide-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.bonafide-dash-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.bonafide-dash-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.06);
}

.kpi-total { border-left: 4px solid #3b82f6; }
.kpi-total .kpi-icon-container { background: #eff6ff; color: #2563eb; }

.kpi-pending { border-left: 4px solid #f59e0b; }
.kpi-pending .kpi-icon-container { background: #fffbeb; color: #d97706; }

.kpi-approved { border-left: 4px solid #10b981; }
.kpi-approved .kpi-icon-container { background: #ecfdf5; color: #059669; }

.kpi-rejected { border-left: 4px solid #ef4444; }
.kpi-rejected .kpi-icon-container { background: #fef2f2; color: #dc2626; }

.kpi-icon-container {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-content {
  display: flex;
  flex-direction: column;
}

.kpi-heading {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
}

.kpi-number {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin: 2px 0;
}

.kpi-subtext {
  font-size: 11px;
  color: #94a3b8;
}

/* Controls & Filter Bar */
.bonafide-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bonafide-search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 480px;
  display: flex;
  align-items: center;
}

.bonafide-search-input-wrap svg {
  position: absolute;
  left: 12px;
  color: #94a3b8;
}

.bonafide-search-input-wrap input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-size: 13px;
  outline: none;
  background: #ffffff;
  color: #0f172a;
  transition: all 0.15s ease;
}

.bonafide-search-input-wrap input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.bonafide-filters-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bonafide-select-filter select {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  background: #ffffff;
  color: #334155;
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bonafide-select-filter select:focus {
  border-color: #2563eb;
}

.bonafide-refresh-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bonafide-refresh-icon-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Table Card */
.bonafide-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.bonafide-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.bonafide-main-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.bonafide-main-table th {
  background: #f8fafc;
  padding: 13px 16px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.bonafide-main-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.bonafide-main-table tr:hover {
  background: #fafbfc;
}

.bonafide-table-id {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
}

.bonafide-purpose-cell .purpose-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.bonafide-student-name {
  font-weight: 600;
  color: #0f172a;
  display: block;
}

.bonafide-roll-number {
  font-size: 12px;
  color: #64748b;
  font-family: monospace;
}

.bonafide-date {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

.bonafide-stage-cell {
  display: inline-block;
  background: #f1f5f9;
  color: #334155;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

/* Actions Cell */
.bonafide-actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.bonafide-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.view-btn {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.view-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.edit-btn {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.edit-btn:hover {
  background: #ffedd5;
}

.download-btn {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.download-btn:hover {
  background: #d1fae5;
}

/* Empty State */
.bonafide-empty-state {
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}

.bonafide-empty-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.bonafide-empty-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.bonafide-empty-desc {
  margin: 0 0 20px 0;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
}

.bonafide-empty-purposes-quick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.empty-quick-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.empty-quick-item:hover {
  background: #ffffff;
  border-color: #2563eb;
  transform: translateY(-1px);
}

/* No results */
.bonafide-no-results {
  padding: 40px 16px;
  text-align: center;
  color: #64748b;
  font-size: 13.5px;
}

.bonafide-reset-filters-btn {
  margin-top: 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

/* Loading State */
.bonafide-loading-state {
  padding: 60px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #64748b;
  font-size: 13.5px;
}

/* Pagination */
.bonafide-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 12.5px;
}

.pagination-info {
  color: #64748b;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #334155;
  transition: all 0.15s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: #f1f5f9;
  color: #0f172a;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-page {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

/* Responsive */
@media (max-width: 1024px) {
  .bonafide-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bonafide-kpi-grid {
    grid-template-columns: 1fr;
  }
  .bonafide-empty-purposes-quick {
    grid-template-columns: 1fr;
  }
  .bonafide-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .bonafide-search-input-wrap {
    max-width: 100%;
  }
}

:root {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #25302a;
  background: #f3f5f1;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 58px 20px 24px;
  background: radial-gradient(ellipse at 50% 15%, #fff 0, #f3f5f1 63%);
}
.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: white;
  background: #427c55;
  box-shadow: 0 8px 20px #427c5535;
}
.eyebrow {
  margin: 20px 0 14px;
  letter-spacing: 0.22em;
  font-size: 10px;
  font-weight: 750;
  color: #78887a;
}
.landing > h1 {
  font-size: clamp(38px, 7vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  text-align: center;
  margin: 0;
  font-weight: 800;
}
.landing > h1 span,
.welcome-panel h2 span {
  color: #4d805d;
}
.intro {
  color: #778078;
  font-size: 14px;
  margin: 16px 0 30px;
  text-align: center;
}
.login-card {
  width: min(100%, 390px);
  padding: 27px;
  border: 1px solid #e5e9e2;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 18px 55px #26351e0b;
}
.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.card-heading h2 {
  font-size: 19px;
  color: #252b25;
  margin: 0 0 5px;
  letter-spacing: -0.03em;
}
.card-heading p {
  color: #8a928a;
  font-size: 12px;
  margin: 0;
}
.secure-badge {
  border-radius: 20px;
  background: #edf5ed;
  padding: 5px 9px;
  color: #4b8055;
  font-size: 10px;
  font-weight: 700;
}
label {
  display: block;
  color: #454d45;
  font-size: 11px;
  font-weight: 700;
  margin: 16px 0 7px;
}
input,
.group-modal > input {
  color: #252b25;
  width: 100%;
  height: 43px;
  border: 1px solid #e4e8e2;
  border-radius: 9px;
  padding: 0 12px;
  outline: none;
  background: #fff;
  font-size: 12px;
}
input:focus,
textarea:focus {
  border-color: #76a181;
  box-shadow: 0 0 0 3px #76a1811c;
}
input::-moz-placeholder, textarea::-moz-placeholder {
  color: #a4aaa4;
}
input::placeholder,
textarea::placeholder {
  color: #a4aaa4;
}
.input-wrap {
  position: relative;
}
.input-wrap svg {
  position: absolute;
  left: 12px;
  top: 13px;
  color: #919a91;
}
.input-wrap input {
  padding-left: 36px;
}
.primary-button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: #477f58;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  margin-top: 23px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary-button:hover {
  background: #386b49;
  transform: translateY(-1px);
}
.form-error {
  background: #fff0ed;
  color: #a44131;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
}
.dev-note {
  text-align: center;
  color: #929a91;
  font-size: 10px;
  line-height: 1.5;
  margin: 13px 2px 0;
}
.landing footer {
  margin-top: auto;
  padding-top: 35px;
  color: #9ba29a;
  font-size: 10px;
}
.landing footer span {
  padding: 0 6px;
}
.loading-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #728072;
  font-size: 13px;
  background: #f4f5f1;
}

.app-shell {
  --surface: #fff;
  --canvas: #f5f6f2;
  --text: #263128;
  --subtext: #858e85;
  --line: #e9ece7;
  --hover: #f4f7f2;
  display: flex;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  color: var(--text);
  background: var(--canvas);
}
.app-shell.dark {
  --surface: #1f2824;
  --canvas: #171e1b;
  --text: #e7eee8;
  --subtext: #9da9a0;
  --line: #303a34;
  --hover: #29352e;
}
.sidebar {
  width: 355px;
  flex: 0 0 355px;
  display: flex;
  flex-direction: column;
  padding: 0 18px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  z-index: 2;
}
.side-top {
  height: 72px;
  flex: 0 0 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.04em;
}
.app-brand > span:last-child > span {
  color: #558461;
}
.mini-brand {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #4f805b;
  border-radius: 10px;
}
.side-actions {
  display: flex;
  gap: 7px;
}
.icon-button {
  width: 35px;
  height: 35px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--subtext);
  background: transparent;
  transition: 0.15s;
}
.icon-button:hover {
  color: var(--text);
  background: var(--hover);
}
.sidebar-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 3px 19px;
}
.sidebar-welcome p {
  color: #91a090;
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 750;
  margin: 0 0 9px;
}
.sidebar-welcome h1 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  margin: 0;
  font-weight: 720;
}
.avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #4d7858;
  background: #e7f0e7;
  font-size: 12px;
  font-weight: 750;
}
.avatar.small {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 10px;
}
.conversation-row:nth-child(4n + 2) .avatar,
.person-result:nth-child(3n + 2) .avatar {
  color: #8d6b4e;
  background: #f4ede4;
}
.conversation-row:nth-child(4n + 3) .avatar,
.person-result:nth-child(3n + 3) .avatar {
  color: #6871a1;
  background: #ebedf7;
}
.conversation-row:nth-child(4n + 4) .avatar {
  color: #a06271;
  background: #f6eaed;
}
.search-box {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 10px;
  background: var(--canvas);
  padding: 0 11px;
  color: #909a90;
}
.search-box input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  color: var(--text);
  background: transparent;
  font-size: 11px;
}
.search-box input:focus {
  border: 0;
  box-shadow: none;
}
.search-box button {
  border: 0;
  display: grid;
  place-items: center;
  background: none;
  color: var(--subtext);
}
.conversation-title {
  height: 54px;
  display: flex;
  align-items: end;
  gap: 9px;
  padding: 0 2px 11px;
  font-size: 13px;
  font-weight: 700;
}
.conversation-count {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 7px;
  color: #6e886f;
  background: #edf4ed;
  font-size: 9px;
}
.conversation-filters {
  display: flex;
  gap: 6px;
  margin: 2px 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.conversation-filters::-webkit-scrollbar {
  display: none;
}
.conversation-filters button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--subtext);
  background: transparent;
  font-size: 9px;
  font-weight: 650;
}
.conversation-filters button.active {
  border-color: #d4e7d8;
  color: #3e7550;
  background: #edf6ef;
}
.dark .conversation-filters button.active {
  border-color: #315a3b;
  color: #a9d6b0;
  background: #1d3825;
}
.conversation-star {
  color: #c28c2d;
}
.favorite-active {
  color: #c28c2d !important;
}
.conversation-list,
.people-results {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 0 -8px;
  padding: 0 5px;
}
.conversation-row {
  width: 100%;
  min-height: 65px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  text-align: left;
  color: var(--text);
  background: transparent;
}
.conversation-row:hover,
.conversation-row.selected {
  background: var(--hover);
}
.conversation-copy {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}
.conversation-copy strong,
.profile-copy strong,
.person-result strong {
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-copy small {
  overflow: hidden;
  color: var(--subtext);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-meta {
  height: 39px;
  min-width: 32px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  justify-content: space-between;
  color: var(--subtext);
  font-size: 8px;
  padding: 1px 0;
}
.unread-badge {
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: #56815e;
  font-size: 9px;
}
.empty-sidebar {
  height: 100%;
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #8d998e;
}
.empty-sidebar svg {
  color: #79a07e;
}
.empty-sidebar p {
  margin: 10px 0 4px;
  font-size: 12px;
  font-weight: 650;
  color: var(--text);
}
.empty-sidebar small {
  font-size: 10px;
}
.side-footer {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
}
.profile-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.profile-copy small {
  color: var(--subtext);
  font-size: 9px;
  text-transform: capitalize;
}
.chat-panel {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
}
.chat-header {
  min-height: 73px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.header-copy {
  flex: 1;
}
.header-copy h2 {
  margin: 0 0 5px;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.header-copy p {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--subtext);
  margin: 0;
  font-size: 9px;
}
.connection-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4a66a;
  margin-left: 4px;
}
.connection-dot.online {
  background: #5aa36a;
}
.back-button {
  display: none;
}
.message-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 13px;
  overflow-y: auto;
  padding: 25px max(25px, calc((100% - 780px) / 2)) 26px;
}
.day-divider {
  align-self: center;
  margin: 3px 0 17px;
  padding: 7px 12px;
  color: #89918a;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 9px;
}
.message-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 80%;
}
.message-row.own {
  align-self: flex-end;
  justify-content: flex-end;
}
.message-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sender-name {
  color: #67846d;
  padding-left: 4px;
  font-size: 10px;
  font-weight: 700;
}
.role-tag-badge {
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
}
.role-tag-badge.faculty {
  background: #dbeafe !important;
  color: #1e40af !important;
}
.role-tag-badge.hod {
  background: #ede9fe !important;
  color: #6b21a8 !important;
}
.role-tag-badge.student {
  background: #dcfce7 !important;
  color: #15803d !important;
}
.bubble {
  max-width: 100%;
  padding: 11px 12px 7px;
  border: 1px solid var(--line);
  border-radius: 4px 13px 13px 13px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 3px 10px #1a28150a;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message-text {
  margin: 0;
}
.deleted-message {
  color: var(--muted);
  font-style: italic;
}
.chat-attachment {
  display: block;
  max-width: min(360px, 65vw);
  max-height: 320px;
  margin: 0 0 4px;
  border-radius: 9px;
  -o-object-fit: contain;
     object-fit: contain;
  background: #00000010;
}
.image-attachment {
  cursor: zoom-in;
}
.chat-audio {
  display: block;
  width: min(280px, 65vw);
  max-width: 100%;
  margin: 0 0 4px;
}
.attachment-file {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  color: inherit;
  text-decoration: none;
}
.attachment-file span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.attachment-file small {
  opacity: 0.75;
  white-space: nowrap;
}
.attachment-loading,
.attachment-error {
  display: block;
  margin: 2px 0 5px;
  color: inherit;
  font-size: 10px;
}
.own .bubble {
  color: #fff;
  background: #4d805a;
  border-color: #4d805a;
  border-radius: 13px 4px 13px 13px;
}
.message-time {
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: flex-end;
  margin: 3px 0 0 16px;
  color: #9aa29a;
  font-size: 8px;
  white-space: nowrap;
}
.message-time small {
  font-size: 8px;
  font-style: italic;
}
.quoted-message {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  margin: 0 0 7px;
  padding: 7px 9px;
  border: 0;
  border-left: 3px solid #74a77d;
  border-radius: 4px;
  color: var(--text);
  background: var(--hover);
  text-align: left;
}
.quoted-message strong {
  color: #4d805a;
  font-size: 9px;
}
.quoted-message span {
  overflow: hidden;
  max-width: 280px;
  color: var(--subtext);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-actions {
  position: absolute;
  z-index: 3;
  top: 3px;
  right: -34px;
}
.message-row.own .message-actions {
  right: auto;
  left: -34px;
}
.message-menu-trigger {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--subtext);
  background: var(--surface);
  opacity: 0;
  transition: opacity 120ms ease;
}
.message-row:hover .message-menu-trigger,
.message-menu-trigger:focus-visible,
.message-menu-trigger[aria-expanded='true'] {
  opacity: 1;
}
.message-menu {
  position: absolute;
  z-index: 5;
  top: 30px;
  right: 0;
  min-width: 130px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 35px #0002;
}
.message-row.own .message-menu {
  right: auto;
  left: 0;
}
.message-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  background: transparent;
  font-size: 10px;
  text-align: left;
}
.message-menu button:hover {
  background: var(--hover);
}
.message-menu button.destructive-action {
  color: #bd4037;
}
.own .message-time {
  color: #d1e1d3;
}
.own .message-time .read-check {
  color: #53bdeb;
}
.typing-line {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--subtext);
  font-size: 10px;
  padding: 4px;
}
.typing-dots {
  display: flex;
  gap: 3px;
}
.typing-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #73987b;
  animation: blink 1.2s infinite;
}
.typing-dots i:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dots i:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
.composer {
  position: relative;
  width: min(calc(100% - 56px), 780px);
  min-height: 62px;
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 auto 22px;
  padding: 9px 10px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 6px 20px #1721170a;
}
.composer-context {
  order: -1;
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border-left: 3px solid #5a8c64;
  border-radius: 5px;
  color: var(--text);
  background: var(--hover);
}
.composer-context span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.composer-context strong,
.composer-context small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.composer-context strong {
  font-size: 9px;
}
.composer-context small {
  max-width: 500px;
  color: var(--subtext);
  font-size: 8px;
}
.composer-context button {
  display: grid;
  place-items: center;
  border: 0;
  color: var(--subtext);
  background: transparent;
}
.composer-tool {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: var(--subtext);
  background: transparent;
}
.composer-tool:hover {
  color: #4d805a;
  background: var(--hover);
}
.composer-tool.recording {
  color: #b63830;
  background: #ffefed;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.composer textarea {
  flex: 1;
  resize: none;
  height: 28px;
  max-height: 100px;
  padding: 6px 0 0;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
  font-size: 12px;
}
.composer textarea:focus {
  border: 0;
  box-shadow: none;
}
.composer-hint {
  position: absolute;
  bottom: 5px;
  left: 16px;
  color: #a0a8a0;
  font-size: 8px;
}
.send-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #4d805a;
}
.send-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.inline-error {
  display: flex;
  justify-content: center;
  gap: 12px;
  color: #a44131;
  font-size: 11px;
  padding: 6px;
}
.inline-error button {
  border: 0;
  color: #477f58;
  background: transparent;
  font-size: 10px;
}
.welcome-panel {
  width: min(450px, 90%);
  margin: auto;
  text-align: center;
  padding-bottom: 50px;
}
.welcome-art {
  width: 75px;
  height: 75px;
  display: grid;
  place-items: center;
  position: relative;
  margin: 0 auto 24px;
  color: #4f805a;
  background: #e7f0e6;
  border-radius: 24px;
  transform: rotate(-5deg);
}
.welcome-art > span {
  position: absolute;
  right: -6px;
  top: -9px;
  color: #dfa970;
  font-size: 22px;
}
.welcome-panel .eyebrow {
  margin: 0 0 13px;
}
.welcome-panel h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 35px);
  line-height: 1.13;
  letter-spacing: -0.06em;
}
.welcome-panel > p:not(.eyebrow) {
  color: var(--subtext);
  font-size: 12px;
  line-height: 1.7;
  max-width: 300px;
  margin: 14px auto 18px;
}
.welcome-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.welcome-pills span {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--subtext);
  background: var(--surface);
  font-size: 9px;
}
.list-label {
  padding: 11px 9px 5px;
  color: #8d9a8e;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
}
.person-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 0;
  border-radius: 11px;
  text-align: left;
  background: transparent;
  color: var(--subtext);
}
.person-result:hover {
  background: var(--hover);
}
.person-result > span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.person-result small {
  color: var(--subtext);
  font-size: 9px;
  text-transform: capitalize;
}
.quiet-empty {
  padding: 6px 9px;
  color: var(--subtext);
  font-size: 11px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #14201770;
  backdrop-filter: blur(4px);
}
.group-modal {
  width: min(100%, 420px);
  max-height: min(700px, 90vh);
  overflow: auto;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 25px 80px #0002;
}
.forward-modal {
  width: min(100%, 420px);
  max-height: min(620px, 85vh);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 25px 80px #0002;
}
.help-modal {
  width: min(100%, 470px);
  max-height: min(680px, 88vh);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 25px 80px #0002;
}
.help-modal header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.help-modal header h2 {
  margin: 0 0 5px;
  font-size: 17px;
}
.help-modal header p,
.help-items p {
  margin: 0;
  color: var(--subtext);
  font-size: 10px;
  line-height: 1.5;
}
.help-items article {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.help-items strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 11px;
}
.help-modal > .primary-button {
  width: 100%;
  margin-top: 15px;
}
.forward-modal header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.forward-modal header h2 {
  margin: 0 0 5px;
  font-size: 17px;
}
.forward-modal header p,
.empty-forward {
  margin: 0;
  color: var(--subtext);
  font-size: 10px;
}
.forward-destination {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.forward-destination:hover {
  background: var(--hover);
}
.forward-destination > strong {
  flex: 1;
  color: var(--text);
  font-size: 11px;
}
.forward-destination > span {
  color: #4e8058;
  font-size: 10px;
  font-weight: 650;
}
.forward-destination:disabled {
  opacity: 0.6;
  cursor: wait;
}
.empty-forward {
  padding: 12px 4px;
}
.loading-messages {
  padding: 20px;
  color: var(--subtext);
  text-align: center;
  font-size: 11px;
}
.group-modal header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.group-modal header h2 {
  margin: 0 0 5px;
  font-size: 17px;
}
.group-modal header p,
.modal-note {
  margin: 0;
  color: var(--subtext);
  font-size: 10px;
}
.group-modal > label:not(.member-option) {
  color: var(--text);
}
.member-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 7px 0;
  padding: 7px;
  border-radius: 8px;
  background: var(--hover);
  color: var(--text);
}
.member-option input {
  width: 15px;
  height: 15px;
}
.member-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-bottom: 1px solid var(--line);
}
.member-line > span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.member-line strong {
  color: var(--text);
  font-size: 11px;
}
.member-line small {
  color: var(--subtext);
  font-size: 9px;
  text-transform: capitalize;
}
.text-button,
.leave-button {
  border: 0;
  padding: 6px 7px;
  border-radius: 7px;
  color: #4e8058;
  background: transparent;
  font-size: 9px;
  font-weight: 650;
}
.text-button:hover {
  background: var(--hover);
}
.text-button.danger {
  color: #b25948;
}
.leave-button {
  display: block;
  margin: 16px auto 0;
  color: #a84b3d;
}
.leave-button:hover {
  background: #fff0ed;
}
.modal-note {
  margin-top: 10px;
}
.group-modal .primary-button {
  margin-top: 15px;
}
.directory-modal {
  display: flex;
  flex-direction: column;
}
.directory-group-action {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #4d805a;
  background: var(--hover);
  font-size: 11px;
  font-weight: 650;
  text-align: left;
}
.directory-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 7px 0 12px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--subtext);
  background: var(--surface);
}
.directory-search input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 10px 0;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
}
.directory-list {
  max-height: min(390px, 45vh);
  overflow: auto;
}
.directory-list .person-result {
  width: 100%;
}
.directory-more {
  align-self: center;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .sidebar {
    width: 100%;
    flex-basis: 100%;
    border-right: 0;
    padding: 0 17px;
  }
  .sidebar.mobile-hidden {
    display: none;
  }
  .chat-panel {
    display: none;
  }
  .chat-panel.mobile-visible {
    display: flex;
    width: 100%;
  }
  .back-button {
    display: inline-grid;
  }
  .chat-header {
    padding: 0 13px;
  }
  .help-button {
    display: none;
  }
  .message-stage {
    padding: 20px 14px;
  }
  .message-row {
    max-width: 92%;
  }
  .composer {
    width: calc(100% - 22px);
    margin-bottom: 10px;
  }
  .message-menu-trigger {
    opacity: 0.85;
  }
}
@media (max-width: 480px) {
  .landing {
    padding-top: 38px;
  }
  .login-card {
    padding: 22px;
  }
  .composer-hint {
    display: none;
  }
  .composer {
    padding-bottom: 9px;
  }
}

/* ERP & Drawer Embedding Support */
.somesh-chat-root {
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
  position: relative;
  font-family: inherit;
}

.somesh-chat-root.app-shell {
  height: 100% !important;
  max-height: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  overflow: hidden !important;
}

.somesh-chat-root .landing {
  min-height: 100% !important;
  height: 100% !important;
  justify-content: center;
}
/* Apna Campus — Enterprise Report Generation Module Styles */

.rg-container {
  padding: 1.5rem;
  background: #f8fafc;
  min-height: calc(100vh - 70px);
  color: #0f172a;
  font-family: inherit;
}

/* Page Header */
.rg-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.rg-header-text h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.02em;
}

.rg-header-text p {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0;
}

.rg-header-badges {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.rg-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.rg-badge-scope {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.rg-badge-status {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* Filter Panel */
.rg-filter-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-bottom: 1.5rem;
}

.rg-filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.rg-filter-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}

.rg-filter-grid {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

.rg-filter-row {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.rg-filter-row-1 {
  grid-template-columns: repeat(4, 1fr);
}

.rg-filter-row-2 {
  grid-template-columns: repeat(3, 1fr);
}

/* Row 3: Specialized Criteria Filter (e.g. Attendance Criteria & Manual Cutoff %) */
.rg-filter-row-3 {
  grid-template-columns: repeat(3, 1fr);
  background: #f8fafc;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  border-left: 4px solid #2563eb;
  transition: all 0.2s ease;
}

.rg-input-suffix-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.rg-input-suffix-wrap .rg-input {
  padding-right: 2rem;
}

.rg-input-suffix {
  position: absolute;
  right: 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  pointer-events: none;
}

.rg-preset-chips {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.rg-preset-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.rg-preset-chip {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rg-preset-chip:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.rg-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rg-field label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rg-select,
.rg-input {
  width: 100%;
  padding: 0.58rem 0.8rem;
  font-size: 0.85rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: all 0.15s ease;
}

.rg-select:focus,
.rg-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.rg-select:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

.rg-filter-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.rg-btn-primary {
  background: #1e40af;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

.rg-btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.rg-btn-secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

.rg-btn-secondary:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #94a3b8;
}

.rg-btn-excel {
  background: #047857;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(4, 120, 87, 0.25);
}

.rg-btn-excel:hover:not(:disabled) {
  background: #059669;
  transform: translateY(-1px);
}

.rg-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Summary KPI Cards */
.rg-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.rg-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rg-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.rg-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rg-kpi-content {
  flex: 1;
  min-width: 0;
}

.rg-kpi-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.rg-kpi-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.rg-kpi-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

/* Report Table Container */
.rg-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.rg-table-toolbar {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: #ffffff;
}

.rg-toolbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.rg-report-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.rg-filter-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.rg-pill {
  font-size: 0.72rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.rg-pill-sub {
  font-size: 0.72rem;
  font-weight: 700;
  background: #f8fafc;
  color: #475569;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  display: inline-block;
}

.rg-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rg-search-wrap {
  position: relative;
  min-width: 240px;
}

.rg-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.rg-search-input {
  width: 100%;
  padding: 0.52rem 0.75rem 0.52rem 2.25rem;
  font-size: 0.84rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  transition: all 0.15s ease;
}

.rg-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Data Table */
.rg-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.rg-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.84rem;
}

.rg-table thead th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rg-table thead th.sortable {
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.rg-table thead th.sortable:hover {
  background: #f1f5f9;
  color: #1e40af;
}

.rg-th-content {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rg-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.12s ease;
}

.rg-table tbody tr:hover {
  background: #f8fafc;
}

.rg-table tbody td {
  padding: 0.8rem 1rem;
  color: #1e293b;
  vertical-align: middle;
}

.rg-table td.center,
.rg-table th.center {
  text-align: center;
}

.rg-table td.right,
.rg-table th.right {
  text-align: right;
}

.rg-student-cell {
  display: flex;
  flex-direction: column;
}

.rg-student-name {
  font-weight: 700;
  color: #0f172a;
}

.rg-student-id {
  font-size: 0.72rem;
  color: #64748b;
  font-family: monospace;
}

/* Status Badges */
.rg-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.rg-status-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.rg-status-primary {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.rg-status-warning {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.rg-status-danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.rg-status-neutral {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Table Footer & Pagination */
.rg-table-footer {
  padding: 0.9rem 1.5rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.rg-footer-meta {
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rg-pagination {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.rg-page-btn {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rg-page-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #94a3b8;
}

.rg-page-btn.active {
  background: #1e40af;
  border-color: #1e40af;
  color: #ffffff;
}

.rg-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Empty & Loading States */
.rg-state-box {
  padding: 4rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.rg-state-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.rg-state-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.35rem;
}

.rg-state-desc {
  font-size: 0.85rem;
  color: #64748b;
  max-width: 380px;
}

/* Spinner */
.rg-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #1e40af;
  border-radius: 50%;
  animation: rg-spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes rg-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast Message */
.rg-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 99999;
  border-left: 4px solid #10b981;
  animation: rg-toast-in 0.2s ease-out;
}

.rg-toast.error {
  border-left-color: #ef4444;
}

@keyframes rg-toast-in {
  from {
    transform: translateY(-12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .rg-filter-row-1 {
    grid-template-columns: repeat(2, 1fr);
  }
  .rg-filter-row-2 {
    grid-template-columns: repeat(3, 1fr);
  }
  .rg-filter-row-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .rg-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .rg-filter-row-1 {
    grid-template-columns: repeat(2, 1fr);
  }
  .rg-filter-row-2 {
    grid-template-columns: 1fr;
  }
  .rg-filter-row-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rg-container {
    padding: 1rem;
  }
  .rg-filter-row-1,
  .rg-filter-row-2,
  .rg-filter-row-3 {
    grid-template-columns: 1fr;
  }
  .rg-kpi-grid {
    grid-template-columns: 1fr;
  }
  .rg-toolbar-right {
    width: 100%;
  }
  .rg-search-wrap {
    width: 100%;
  }
}
/* ==========================================================================
   RoleDashboardLanding.css
   Universal enterprise dashboard styling matching the Student Dashboard
   aesthetic for all 14 non-student institutional roles.
   ========================================================================== */

.role-dash-wrapper {
  --d-ink: #0f172a;
  --d-ink-2: #334155;
  --d-muted: #64748b;
  --d-line: #e8edf5;
  --d-bg: #f6f8fc;
  --d-blue: #2563eb;
  --d-blue-2: #4f46e5;
  --d-radius: 18px;
  --d-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
  min-height: 100vh;
  background: #f6f8fc;
  color: #0f172a;
  display: flex;
  flex-direction: column;
}

/* Ensure Calendar Today badge is always solid blue with white text */
.dash-calendar .dash-day.is-today,
.role-dash-wrapper .dash-day.is-today {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 14px -4px rgba(37, 99, 235, 0.75) !important;
}

.role-dash-wrapper .dash-legend .lg-today {
  background: #2563eb !important;
}

.role-dash-wrapper .dash-legend .lg-holiday {
  background: #fdba74 !important;
}

.role-dash-wrapper .dash-legend .lg-sunday {
  background: #fda4af !important;
}

.role-dash-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px 36px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==========================================================
   Top Header (.role-dash-header)
   ========================================================== */
.role-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 4px 10px;
  background: transparent;
}

.role-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.role-nav-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.role-nav-toggle-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.role-header-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #2563eb;
  text-transform: uppercase;
  margin: 0 0 2px 0;
}

.role-header-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.2;
}

.role-header-subtitle {
  margin: 3px 0 0 0;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.role-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.role-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.role-icon-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  transform: translateY(-1px);
}

.role-whatsapp-header-btn {
  color: #16a34a;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.role-whatsapp-header-btn:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

.role-bell-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 1.5px solid #ffffff;
}

/* User Profile Pill */
.role-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px 5px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.role-user-pill:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.role-user-avatar-frame {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #2563eb;
  background: #f1f5f9;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-user-avatar-frame img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.role-user-details {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.role-user-details strong {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.role-user-details small {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

.role-logout-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.role-logout-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* ==========================================================
   Quick Actions Bar (.role-quick-actions-bar)
   ========================================================== */
.role-quick-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #ffffff;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  overflow-x: auto;
}

.role-quick-actions-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  white-space: nowrap;
  padding-right: 10px;
  border-right: 1px solid #e2e8f0;
}

.role-quick-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.role-quick-action-pill:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.08);
}

.role-quick-action-pill.active-action {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ==========================================================
   Notification Popover
   ========================================================== */
.role-notif-popover {
  position: absolute;
  top: 48px;
  right: 0;
  width: 360px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.16);
  z-index: 1000;
  overflow: hidden;
  animation: notif-fade-in 0.2s ease;
}

@keyframes notif-fade-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.role-notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #fafbfc;
}

.role-notif-head strong {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.role-notif-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
}

.role-notif-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-notif-close:hover {
  background: #f1f5f9;
  color: #475569;
}

.role-notif-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.role-notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: background 0.15s ease;
}

.role-notif-item:hover {
  background: #f8fafc;
}

.role-notif-item.is-unread {
  background: #f0f7ff;
}

.role-notif-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.role-notif-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.tag-blue {
  background: #dbeafe;
  color: #1e40af;
}

.tag-green {
  background: #dcfce7;
  color: #15803d;
}

.tag-amber {
  background: #fef3c7;
  color: #b45309;
}

.tag-violet {
  background: #ede9fe;
  color: #6d28d9;
}

.tag-rose {
  background: #ffe4e6;
  color: #be123c;
}

.role-notif-time {
  font-size: 11px;
  color: #94a3b8;
}

.role-notif-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px 0;
}

.role-notif-desc {
  font-size: 11.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.role-notif-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid #f1f5f9;
  background: #fafbfc;
}

.role-notif-foot button {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  cursor: pointer;
}

.role-notif-foot button:hover {
  text-decoration: underline;
}

/* ==========================================================
   Table & List Details inside Lower Duo Cards
   ========================================================== */
.role-overview-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.role-overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.role-overview-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e8edf5;
  white-space: nowrap;
}

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

.role-overview-table tr:hover td {
  background: #fcfdfe;
}

.role-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-green {
  background: #dcfce7;
  color: #15803d;
}

.status-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-amber {
  background: #fef3c7;
  color: #b45309;
}

.status-red {
  background: #fee2e2;
  color: #b91c1c;
}

.status-violet {
  background: #ede9fe;
  color: #6d28d9;
}

.status-neutral {
  background: #f1f5f9;
  color: #475569;
}

/* Announcements List */
.role-announcement-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.role-announcement-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.role-announcement-item:last-child {
  border-bottom: none;
}

.role-announcement-item:hover {
  background: #f8fafc;
}

.role-announcement-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.role-announcement-date strong {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.role-announcement-date small {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 1px;
}

.role-announcement-content {
  flex: 1;
  min-width: 0;
}

.role-announcement-content-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.role-announcement-title {
  margin: 0 0 3px 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.role-announcement-desc {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

/* Modal Popup for Quick Actions (Dashboard Shortcut Only) */
.role-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modal-fade 0.2s ease;
}

@keyframes modal-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.role-modal-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.25);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.role-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e8edf5;
}

.role-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.role-modal-body {
  padding: 22px 24px;
}

.role-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px;
  background: #f8fafc;
  border-top: 1px solid #e8edf5;
}

/* ==========================================================
   Faculty & Non-Student Profile Card & Dossier Styles
   ========================================================== */
.dash-passport-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
  color: #4338ca;
  gap: 4px;
  border-radius: 6px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.dash-fallback-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: rgba(67, 56, 202, 0.14);
  color: #4338ca;
  padding: 1.5px 6px;
  border-radius: 4px;
  line-height: 1.2;
}

.dash-officer-dept-line {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Profile Sub-Navigation Tab Pills */
.dash-info-tab-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px 6px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.dash-info-pill {
  flex: 1;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
  outline: none;
}

.dash-info-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.dash-info-pill.active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.12);
}

/* Dossier Modal Card & Print Enhancements */
.role-dossier-modal-card {
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
  border: 1px solid #cbd5e1;
}

.role-dossier-print-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

@media print {
  .role-dossier-modal-card {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    margin: 0 !important;
  }

  .role-dossier-print-btn,
  .role-notif-close {
    display: none !important;
  }
}


@media (max-width: 768px) {
  .dash-info-tab-pills {
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 12px 4px;
  }

  .dash-info-pill {
    font-size: 10.5px;
    padding: 5px 6px;
  }
}/* =====================================================================
   WARDEN EMPLOYEE PROFILE — 2ND IMAGE REPLICA STYLES
   ===================================================================== */

.emp-profile-wrapper {
  padding: 1.5rem;
  max-width: 1440px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #334155;
  background: #f8fafc;
  min-height: calc(100vh - 120px);
}

/* Header Bar */
.emp-profile-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.emp-profile-title-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.emp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.emp-back-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.emp-profile-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.emp-generate-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3);
  transition: all 0.18s ease;
}

.emp-generate-pdf-btn:hover {
  background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
  transform: translateY(-1px);
}

/* Main Two-Column Layout */
.emp-profile-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 1.25rem;
  align-items: start;
}

/* Left Sidebar Summary Card */
.emp-summary-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.emp-photo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.emp-photo-ring {
  position: relative;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  border: 3px solid #0ea5e9;
  padding: 3px;
  background: #ffffff;
}

.emp-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.emp-photo-edit-badge {
  position: absolute;
  bottom: 0px;
  right: 2px;
  width: 32px;
  height: 32px;
  background: #0284c7;
  color: #ffffff;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, background 0.15s ease;
}

.emp-photo-edit-badge:hover {
  transform: scale(1.1);
  background: #0369a1;
}

.emp-summary-table {
  width: 100%;
  border-collapse: collapse;
}

.emp-summary-table td {
  padding: 0.55rem 0.25rem;
  font-size: 0.83rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.emp-summary-label {
  color: #64748b;
  font-weight: 600;
  width: 42%;
}

.emp-summary-val {
  color: #1e293b;
  font-weight: 600;
  width: 58%;
  word-break: break-word;
}

.emp-status-pill {
  display: inline-block;
  background: #10b981;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
}

/* Right Tabs Section */
.emp-tabs-section {
  display: flex;
  flex-direction: column;
}

/* Tabs Bar */
.emp-tabs-nav {
  display: flex;
  gap: 2px;
  border-bottom: none;
  background: transparent;
  overflow-x: auto;
}

.emp-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.65rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.emp-tab-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.emp-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  font-weight: 700;
}

/* Tab Panel Card */
.emp-tab-panel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0 8px 8px 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.emp-tab-inner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.emp-tab-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.emp-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.emp-edit-btn:hover {
  background: #0369a1;
}

/* Personal Details Grid (Matching 2nd Image) */
.emp-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 0.85rem;
  -moz-column-gap: 2rem;
       column-gap: 2rem;
}

.emp-detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.86rem;
}

.emp-detail-row.full-width {
  grid-column: span 2;
}

.emp-detail-label {
  color: #64748b;
  font-weight: 600;
  width: 45%;
}

.emp-detail-value {
  color: #0f172a;
  font-weight: 600;
  width: 55%;
  word-break: break-word;
}

/* Document cards */
.emp-doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.emp-doc-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.emp-doc-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.emp-doc-meta {
  font-size: 0.75rem;
  color: #64748b;
}

.emp-doc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0284c7;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.emp-doc-action-btn:hover {
  background: #f0f9ff;
  border-color: #0284c7;
}

/* Other Info Table (Exact Match to Image 2 & 3) */
.emp-otherinfo-table {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.emp-otherinfo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.86rem;
  transition: background 0.15s ease;
}

.emp-otherinfo-row:last-child {
  border-bottom: none;
}

.emp-otherinfo-row:nth-child(even) {
  background: #fafafa;
}

.emp-otherinfo-row:hover {
  background: #f8fafc;
}

.emp-otherinfo-label {
  color: #334155;
  font-weight: 600;
  width: 42%;
  font-size: 0.85rem;
}

.emp-otherinfo-val {
  color: #0f172a;
  font-weight: 600;
  width: 58%;
  word-break: break-word;
}

/* Modal Form Controls */
.emp-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.emp-form-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.emp-form-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.emp-form-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

/* Responsive */
@media (max-width: 900px) {
  .emp-profile-grid {
    grid-template-columns: 1fr;
  }
  .emp-details-grid {
    grid-template-columns: 1fr;
  }
  .emp-detail-row.full-width {
    grid-column: span 1;
  }
  .emp-otherinfo-label {
    width: 50%;
  }
  .emp-otherinfo-val {
    width: 50%;
  }
}

/* AdminExecutiveDashboard.css - Institutional Executive Command & Administration Dashboard */

.aed-root {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  color: #0f172a;
  font-family: inherit;
}

/* 1. HERO BANNER */
.aed-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 138, 0.88) 100%), url('/campus_background.jpg') center/cover no-repeat;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  color: #ffffff;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.aed-hero-content {
  flex: 1;
  min-width: 280px;
}

.aed-hero-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.aed-hero-crown {
  font-size: 1.4rem;
}

.aed-hero-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  max-width: 720px;
  line-height: 1.5;
  margin: 0;
}

.aed-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.aed-hero-timebox {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}

.aed-hero-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #f8fafc;
}

.aed-hero-time-row.time-clock {
  font-size: 0.96rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.aed-hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aed-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #e2e8f0;
}

.aed-hero-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
}

/* 2. KPI METRIC CARDS (6-column grid) */
.aed-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

@media (max-width: 1400px) {
  .aed-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .aed-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .aed-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.aed-kpi-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.aed-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.aed-kpi-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aed-kpi-icon-wrap.students { background: #e0f2fe; color: #0284c7; }
.aed-kpi-icon-wrap.faculty { background: #f3e8ff; color: #9333ea; }
.aed-kpi-icon-wrap.staff { background: #dcfce7; color: #16a34a; }
.aed-kpi-icon-wrap.courses { background: #fef3c7; color: #d97706; }
.aed-kpi-icon-wrap.revenue { background: #fee2e2; color: #dc2626; }
.aed-kpi-icon-wrap.uptime { background: #e0f2fe; color: #0284c7; }

.aed-kpi-body {
  flex: 1;
  min-width: 0;
}

.aed-kpi-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
  text-transform: capitalize;
}

.aed-kpi-val-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.aed-kpi-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.aed-kpi-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 12px;
  background: #dcfce7;
  color: #16a34a;
}

.aed-kpi-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3. ROW 2: 3-COLUMN CHARTS */
.aed-three-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1fr;
  gap: 16px;
}

@media (max-width: 1200px) {
  .aed-three-grid {
    grid-template-columns: 1fr;
  }
}

.aed-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.aed-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.aed-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.aed-card-title svg {
  color: #2563eb;
}

.aed-select {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  outline: none;
}

.aed-card-link {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
}

.aed-card-link:hover {
  text-decoration: underline;
}

.aed-legend-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.aed-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
}

.aed-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Donut Chart with side legend */
.aed-donut-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 220px;
}

.aed-donut-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  flex-shrink: 0;
}

.aed-donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.aed-donut-center-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.aed-donut-center-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

.aed-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.aed-donut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #475569;
}

.aed-donut-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  display: inline-block;
}

.aed-donut-count {
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

/* 4. ROW 3: APPROVALS, USAGE, NOTICES */
.aed-tabs-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.aed-tab-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.aed-tab-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.aed-approval-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
}

.aed-approval-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.aed-approval-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.aed-approval-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.aed-approval-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
}

.aed-approval-icon.red { background: #fee2e2; color: #dc2626; }
.aed-approval-icon.amber { background: #fef3c7; color: #d97706; }
.aed-approval-icon.green { background: #dcfce7; color: #16a34a; }
.aed-approval-icon.purple { background: #f3e8ff; color: #9333ea; }
.aed-approval-icon.blue { background: #e0f2fe; color: #0284c7; }

.aed-approval-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.aed-approval-title {
  font-size: 0.79rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aed-approval-sub {
  font-size: 0.71rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aed-approval-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: #d97706;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 2px 7px;
  white-space: nowrap;
}

/* System usage mini stats */
.aed-usage-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.aed-usage-mini-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.aed-usage-mini-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aed-usage-mini-icon.blue { background: #e0f2fe; color: #0284c7; }
.aed-usage-mini-icon.green { background: #dcfce7; color: #16a34a; }
.aed-usage-mini-icon.purple { background: #f3e8ff; color: #9333ea; }
.aed-usage-mini-icon.teal { background: #ccfbf1; color: #0d9488; }

.aed-usage-mini-val {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.aed-usage-mini-lbl {
  font-size: 0.65rem;
  color: #64748b;
}

/* Notices list */
.aed-notice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
}

.aed-notice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.15s ease;
}

.aed-notice-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.aed-notice-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.aed-notice-datebox {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.aed-notice-day {
  font-size: 0.82rem;
  font-weight: 800;
}

.aed-notice-month {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.aed-notice-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.aed-notice-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aed-notice-meta {
  font-size: 0.68rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aed-notice-tag {
  font-size: 0.66rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
}

.aed-notice-tag.exam { background: #f3e8ff; color: #9333ea; }
.aed-notice-tag.scholarship { background: #e0f2fe; color: #0284c7; }
.aed-notice-tag.placement { background: #dcfce7; color: #16a34a; }
.aed-notice-tag.library { background: #fef3c7; color: #d97706; }
.aed-notice-tag.holiday { background: #fee2e2; color: #dc2626; }

/* 5. ROW 4: INFRASTRUCTURE & QUICK ACTIONS */
.aed-bottom-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}

@media (max-width: 1024px) {
  .aed-bottom-grid {
    grid-template-columns: 1fr;
  }
}

.aed-infra-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 1200px) {
  .aed-infra-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .aed-infra-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.aed-infra-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.aed-infra-card:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  transform: translateY(-2px);
}

.aed-infra-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aed-infra-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aed-infra-icon.blue { background: #e0f2fe; color: #0284c7; }
.aed-infra-icon.green { background: #dcfce7; color: #16a34a; }
.aed-infra-icon.purple { background: #f3e8ff; color: #9333ea; }
.aed-infra-icon.red { background: #fee2e2; color: #dc2626; }
.aed-infra-icon.pink { background: #fce7f3; color: #db2777; }
.aed-infra-icon.amber { background: #fef3c7; color: #d97706; }

.aed-infra-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.aed-infra-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
}

.aed-infra-status {
  font-size: 0.68rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.aed-infra-status.good { color: #16a34a; }
.aed-infra-status.warn { color: #d97706; }

/* Quick Actions */
.aed-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .aed-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.aed-action-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #0f172a;
}

.aed-action-btn:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.aed-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aed-action-icon.blue { background: #e0f2fe; color: #0284c7; }
.aed-action-icon.green { background: #dcfce7; color: #16a34a; }
.aed-action-icon.orange { background: #ffedd5; color: #ea580c; }
.aed-action-icon.purple { background: #f3e8ff; color: #9333ea; }
.aed-action-icon.red { background: #fee2e2; color: #dc2626; }
.aed-action-icon.grey { background: #f1f5f9; color: #475569; }

.aed-action-lbl {
  font-size: 0.74rem;
  font-weight: 700;
  color: #334155;
  text-align: center;
}

/* Admin Portal Theme - Harmonious with Apna Campus Navy & Slate */

.admin-portal-root {
  min-height: 100vh;
  background: #f8fafc;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  font-family: inherit;
}

.admin-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.admin-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.admin-brand-text h1 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.admin-brand-text p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.admin-user-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.admin-signout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #e11d48;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-signout-btn:hover {
  background: #fff1f2;
  border-color: #fecdd3;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex: 1;
  min-height: calc(100vh - 65px);
}

@media (max-width: 1024px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: fixed;
    top: 65px;
    left: 0;
    bottom: 0;
    width: 260px;
    z-index: 50;
    box-shadow: 4px 0 25px rgba(2, 6, 23, 0.5);
  }
}

/* Sidebar */
.admin-sidebar {
  background: #091326;
  background: linear-gradient(180deg, #091326 0%, #0b1a36 100%);
  border-right: 1px solid #1a2a44;
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: calc(100vh - 65px);
  max-height: calc(100vh - 65px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  box-sizing: border-box;
  position: sticky;
  top: 65px;
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.4);
}

.admin-sidebar::-webkit-scrollbar {
  width: 5px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Sidebar Header Area */
.admin-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.4rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
}

.admin-sidebar-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-sidebar-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.admin-sidebar-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.admin-nav-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}

/* ── Sidebar Collapsible Dropdown Sections ── */
.admin-nav-section-dropdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer !important;
  border-radius: 7px;
  transition: all 0.15s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.admin-nav-section-dropdown:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-nav-section-dropdown > span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.06em;
  cursor: pointer !important;
}

.admin-nav-section-dropdown:hover > span {
  color: #ffffff;
}

/* Chevron arrow — rotates 180° when open */
.roster-chevron {
  color: #94a3b8;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  cursor: pointer !important;
}
.roster-chevron.open {
  transform: rotate(180deg);
}

/* Collapsible items container */
.roster-items {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.22s ease;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.roster-items.expanded {
  max-height: 900px;
  opacity: 1;
}

/* Indented child items with left accent line */
.admin-nav-btn.roster-child {
  padding-left: 1.6rem;
  font-size: 0.84rem;
  position: relative;
  cursor: pointer !important;
}

.admin-nav-btn.roster-child::before {
  content: '';
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.15s;
}

.admin-nav-btn.roster-child:hover::before {
  background: #60a5fa;
}

.admin-nav-btn.roster-child.active::before {
  background: #ffffff;
}

.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer !important;
  transition: all 0.2s ease;
  text-align: left;
}

.admin-nav-btn svg {
  flex-shrink: 0;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.admin-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  cursor: pointer !important;
}

.admin-nav-btn:hover svg {
  color: #ffffff !important;
}

.admin-nav-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45) !important;
  border-radius: 14px !important;
}

.admin-nav-btn.active svg {
  color: #ffffff !important;
}

/* Main Content Area */
.admin-main {
  padding: 1.75rem 2rem;
  overflow-y: auto;
  max-width: 1400px;
}

/* Top bar of views */
.admin-view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-view-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
}

.admin-view-header p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.admin-action-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  transition: background 0.15s;
}

.admin-action-btn-primary:hover {
  background: #1d4ed8;
}

.admin-action-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.admin-action-btn-secondary:hover {
  background: #f8fafc;
}

/* Stat Cards Grid */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.admin-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-kpi-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
}

.admin-kpi-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.admin-kpi-card-icon.blue { background: #eff6ff; color: #2563eb; }
.admin-kpi-card-icon.emerald { background: #ecfdf5; color: #059669; }
.admin-kpi-card-icon.purple { background: #faf5ff; color: #9333ea; }
.admin-kpi-card-icon.amber { background: #fffbeb; color: #d97706; }
.admin-kpi-card-icon.rose { background: #fff1f2; color: #e11d48; }

.admin-kpi-val {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}

.admin-kpi-label {
  font-size: 0.825rem;
  color: #64748b;
  font-weight: 500;
}

/* Card Containers */
.admin-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  margin-bottom: 1.5rem;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.admin-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

/* Filters & Search Toolbar */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-search-wrap {
  position: relative;
  min-width: 280px;
}

.admin-search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.admin-search-input {
  width: 100%;
  padding: 0.55rem 0.75rem 0.55rem 2.25rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.85rem;
  color: #0f172a;
}

.admin-search-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.admin-filters-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-select {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.825rem;
  color: #334155;
  cursor: pointer;
}

/* Modern Tables */
.admin-table-container {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.admin-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: #f8fafc;
}

/* Badges */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-badge.active, .admin-badge.approved {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.admin-badge.inactive, .admin-badge.closed {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.admin-badge.pending, .admin-badge.upcoming {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.admin-badge.rejected {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.admin-badge.boys {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.admin-badge.girls {
  background: #fdf2f8;
  color: #be185d;
  border: 1px solid #fbcfe8;
}

.admin-badge.duty {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.admin-badge.night {
  background: #1e1b4b;
  color: #c7d2fe;
  border: 1px solid #3730a3;
}

.admin-badge.amber {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.admin-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5f9;
  padding: 0.25rem;
  border-radius: 8px;
}

.admin-filter-pill-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-filter-pill-btn:hover {
  color: #0f172a;
}

.admin-filter-pill-btn.active {
  background: #ffffff;
  color: #1e3a8a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}


/* Row Action Buttons */
.admin-table-action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.45rem;
  border-radius: 4px;
  color: #64748b;
  transition: all 0.15s ease;
}

.admin-table-action-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.admin-table-action-btn.delete:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* Modal Styling */
.admin-modal-backdrop,
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  padding: 1rem;
}

.admin-modal-close {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.admin-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.admin-modal-card {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
}

.admin-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.admin-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.admin-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.admin-form-input, .admin-form-select, .admin-input {
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 0.875rem;
  color: #0f172a;
  background: #ffffff;
  box-sizing: border-box;
}

.admin-form-input:focus, .admin-form-select:focus, .admin-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.admin-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #f8fafc;
}

/* Wide modal for comprehensive multi-step student registration */
.admin-modal-card-wide {
  max-width: 860px;
}

.admin-student-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  gap: 0.5rem;
  overflow-x: auto;
}

.admin-step-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.admin-step-btn.active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(37,99,235,0.15);
}

.admin-step-btn.completed {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

.admin-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  background: #e2e8f0;
  color: #475569;
}

.admin-step-btn.active .admin-step-num {
  background: #2563eb;
  color: #ffffff;
}

.admin-step-btn.completed .admin-step-num {
  background: #16a34a;
  color: #ffffff;
}

.admin-compulsory-tag {
  color: #dc2626;
  margin-left: 2px;
  font-weight: bold;
}

.admin-qual-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.admin-qual-table th {
  background: #f1f5f9;
  padding: 0.55rem 0.75rem;
  text-align: left;
  font-weight: 700;
  color: #334155;
  border-bottom: 1px solid #cbd5e1;
}

.admin-qual-table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid #f1f5f9;
}

.admin-qual-table input {
  width: 100%;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

.admin-qual-table input:focus {
  outline: none;
  border-color: #2563eb;
}

/* ── Modern ERP Institutional Analytics & Diagnostics Styles ── */
.admin-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .admin-analytics-grid {
    grid-template-columns: 1fr;
  }
}

.admin-chart-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.admin-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.admin-chart-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.admin-chart-subtitle {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

.admin-user-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.admin-user-status-pill.active {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.admin-user-status-pill.suspended {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.admin-diagnostics-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-diagnostics-badge.nominal {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.admin-diagnostics-badge.degraded {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}


/* Student Documents Table - Premium Glassmorphism & High Contrast Design */

.std-docs-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

/* Toast */
.std-docs-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #0f172a;
  color: #f8fafc;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-left: 4px solid #10b981;
  z-index: 10000;
  animation: slideInRight 0.25s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Header */
.std-docs-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.std-docs-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 0.4rem;
  border: 1px solid #bfdbfe;
}

.std-docs-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.std-docs-subtitle {
  font-size: 0.86rem;
  color: #64748b;
  margin: 0.3rem 0 0 0;
}

.std-docs-header-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.std-docs-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.15rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.std-docs-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.std-docs-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.std-docs-btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

/* KPI Badges */
.std-docs-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.std-docs-kpi-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.std-docs-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}

.std-docs-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.std-docs-kpi-card.blue .std-docs-kpi-icon {
  background: #eff6ff;
  color: #2563eb;
}

.std-docs-kpi-card.indigo .std-docs-kpi-icon {
  background: #eef2ff;
  color: #4f46e5;
}

.std-docs-kpi-card.purple .std-docs-kpi-icon {
  background: #faf5ff;
  color: #9333ea;
}

.std-docs-kpi-card.green .std-docs-kpi-icon {
  background: #f0fdf4;
  color: #16a34a;
}

.std-docs-kpi-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.std-docs-kpi-label {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 3px;
  font-weight: 500;
}

/* Filter Card */
.std-docs-filter-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.std-docs-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.std-docs-filter-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.std-docs-filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.std-docs-select {
  padding: 0.48rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 150px;
}

.std-docs-select:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Gender Pills */
.std-docs-gender-pills {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.std-docs-pill-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.8rem;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.std-docs-pill-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.std-docs-pill-btn.boy.active {
  background: #2563eb;
  color: #ffffff;
}

.std-docs-pill-btn.girl.active {
  background: #9333ea;
  color: #ffffff;
}

/* Search Row */
.std-docs-search-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
}

.std-docs-search-wrapper {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 600px;
}

.std-docs-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.std-docs-search-input {
  width: 100%;
  padding: 0.55rem 2.2rem 0.55rem 2.4rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.85rem;
  color: #0f172a;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.std-docs-search-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.std-docs-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.std-docs-clear-btn:hover {
  color: #0f172a;
}

.std-docs-result-pill {
  font-size: 0.8rem;
  color: #475569;
  background: #f1f5f9;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
}

.std-docs-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  color: #ef4444;
  border: 1px solid #fecaca;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.std-docs-reset-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Master Table */
.std-docs-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.std-docs-table-wrapper {
  overflow-x: auto;
  width: 100%;
}

.std-docs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.85rem;
}

.std-docs-table thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.std-docs-th-content {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.std-docs-tr {
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #f1f5f9;
}

.std-docs-tr:hover {
  background-color: #f8fafc;
}

.std-docs-tr td {
  padding: 0.9rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

/* Student ID Pill */
.std-docs-id-badge {
  font-family: 'Consolas', 'Courier New', monospace;
  font-weight: 700;
  color: #1e293b;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
}

.std-docs-reg-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
}

/* Name Cell */
.std-docs-name-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

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

.std-docs-avatar.large {
  width: 52px;
  height: 52px;
  font-size: 1.25rem;
}

.std-docs-avatar.male {
  background: #eff6ff;
  color: #2563eb;
  border: 2px solid #bfdbfe;
}

.std-docs-avatar.female {
  background: #fdf2f8;
  color: #db2777;
  border: 2px solid #fbcfe8;
}

.std-docs-name {
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.std-docs-dept {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
}

/* Sex / Gender Badge */
.std-docs-gender-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  white-space: nowrap;
}

.std-docs-gender-badge.boy {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.std-docs-gender-badge.girl {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

/* Section & Sem Badges */
.std-docs-section-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
  font-size: 0.76rem;
  padding: 3px 9px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
}

.std-docs-sem-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 3px 9px;
  border-radius: 8px;
  border: 1px solid #bae6fd;
  white-space: nowrap;
}

/* Document Name Entry */
.std-docs-name-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.std-docs-doc-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.std-docs-doc-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.88rem;
  line-height: 1.3;
}

.std-docs-doc-meta {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 3px;
  flex-wrap: wrap;
}

.std-docs-filetype-pill {
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 4px;
}

.std-docs-verified-pill {
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Actions */
.std-docs-actions {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  align-items: center;
}

.std-docs-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.std-docs-action-btn.view {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.std-docs-action-btn.view:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-1px);
}

.std-docs-action-btn.download {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.std-docs-action-btn.download:hover {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
  transform: translateY(-1px);
}

/* Empty State */
.std-docs-empty {
  text-align: center;
  padding: 3.5rem 1.5rem !important;
}

/* Pagination */
.std-docs-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.std-docs-page-info {
  font-size: 0.82rem;
  color: #64748b;
}

.std-docs-page-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.std-docs-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.38rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.std-docs-page-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.std-docs-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.std-docs-current-page {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f172a;
  padding: 0 0.4rem;
}

/* Modal */
.std-docs-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.std-docs-modal-card {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: scaleUp 0.25s ease-out;
}

@keyframes scaleUp {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.std-docs-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.std-docs-modal-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.std-docs-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.std-docs-modal-sub {
  margin: 2px 0 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.std-docs-modal-close {
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s ease;
}

.std-docs-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.std-docs-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.std-docs-preview-student-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
}

.std-docs-preview-sheet {
  background: #ffffff;
  border: 2px solid #0f2b48;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.std-docs-sheet-header {
  border-bottom: 2px solid #dc2626;
  padding-bottom: 0.75rem;
  margin-bottom: 1.15rem;
}

.std-docs-sheet-college {
  font-size: 1rem;
  font-weight: 800;
  color: #0f2b48;
  letter-spacing: -0.01em;
}

.std-docs-sheet-tagline {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
}

.std-docs-sheet-doc-banner {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.std-docs-sheet-doc-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f2b48;
}

.std-docs-sheet-status {
  font-size: 0.75rem;
  font-weight: 700;
  color: #15803d;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.std-docs-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.std-docs-sheet-cell {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.std-docs-sheet-cell .lbl {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

.std-docs-sheet-cell .val {
  font-size: 0.85rem;
  color: #0f172a;
  font-weight: 700;
  margin-top: 2px;
}

.std-docs-watermark-box {
  position: relative;
  border: 1px dashed #cbd5e1;
  background: #fcfcfd;
  border-radius: 8px;
  padding: 1.15rem;
  overflow: hidden;
}

.std-docs-watermark-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(15, 43, 72, 0.05);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.1em;
}

.std-docs-seal-badge {
  background: #eff6ff;
  border: 1px solid #3b82f6;
  color: #1d4ed8;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.std-docs-modal-footer {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .std-docs-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .std-docs-sheet-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   MULTI-DOCUMENT TABLE LAYOUT & COLUMN STYLES
   ======================================================== */
.multi-doc-table {
  min-width: 1450px;
}

.std-docs-col-header {
  background: #f1f5f9 !important;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  padding: 0.75rem 0.85rem !important;
  vertical-align: top;
}

.std-docs-col-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
  color: #0f172a;
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: -0.01em;
}

.std-docs-col-sub {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 500;
  text-transform: none;
  margin-top: 2px;
}

.std-doc-td {
  padding: 0.65rem 0.75rem !important;
  border-left: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  vertical-align: top;
}

.std-doc-cell-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.std-doc-cell-box:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.std-doc-cell-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.std-doc-type-pill {
  font-size: 0.64rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.std-doc-type-pill.pdf {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.std-doc-type-pill.img {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
}

.std-doc-verified-pill {
  font-size: 0.64rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  padding: 1px 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.std-doc-cell-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.std-doc-cell-meta {
  font-size: 0.65rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 3px;
}

.std-doc-cell-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: 2px;
}

.std-doc-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.32rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.std-doc-action-btn.view {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.std-doc-action-btn.view:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-1px);
}

.std-doc-action-btn.download {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.std-doc-action-btn.download:hover {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
  transform: translateY(-1px);
}

.std-doc-cell-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}

.std-doc-empty-badge {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

/* ========================================================
   AUTHENTIC LIVE CERTIFICATES & PASSES VIEW MODALS
   ======================================================== */

/* ── 1. LIVE AADHAAR CARD ── */
.live-cert-aadhaar-container {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

.live-cert-aadhaar-card {
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
}

.aadhaar-tricolor-bar {
  height: 6px;
  display: flex;
  width: 100%;
}

.aadhaar-tricolor-bar .bar-saffron { flex: 1; background: #ff9933; }
.aadhaar-tricolor-bar .bar-white { flex: 1; background: #ffffff; }
.aadhaar-tricolor-bar .bar-green { flex: 1; background: #138808; }

.aadhaar-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem 0.5rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.aadhaar-emblem-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 48px;
}

.emblem-img {
  width: 32px;
  height: auto;
}

.emblem-fallback-text {
  font-size: 0.58rem;
  font-weight: 800;
  color: #334155;
}

.aadhaar-title-block {
  text-align: center;
}

.aadhaar-hi-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

.aadhaar-en-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.04em;
}

.aadhaar-dept {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 600;
}

.aadhaar-logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #dc2626;
}

.aadhaar-flame-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.aadhaar-logo-text {
  font-size: 0.72rem;
  font-weight: 900;
  color: #b91c1c;
}

.aadhaar-body-row {
  display: flex;
  align-items: center;
  padding: 1.15rem 1.25rem;
  gap: 1.25rem;
  background: #ffffff;
}

.aadhaar-photo-box {
  width: 90px;
  height: 108px;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  flex-shrink: 0;
}

.aadhaar-photo-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
}

.aadhaar-photo-avatar.male {
  background: #dbeafe;
  color: #1d4ed8;
}

.aadhaar-photo-avatar.female {
  background: #fce7f3;
  color: #be185d;
}

.aadhaar-photo-tag {
  font-size: 0.6rem;
  font-weight: 800;
  color: #475569;
  margin-top: 6px;
}

.aadhaar-details-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.aadhaar-field {
  display: flex;
  font-size: 0.8rem;
  gap: 0.5rem;
}

.aadhaar-lbl {
  color: #64748b;
  font-weight: 600;
  min-width: 90px;
}

.aadhaar-val {
  color: #0f172a;
}

.aadhaar-val.bold {
  font-weight: 800;
  color: #0f172a;
}

.aadhaar-val.text-sm {
  font-size: 0.74rem;
  line-height: 1.35;
}

.aadhaar-qr-box {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aadhaar-qr-sub {
  font-size: 0.58rem;
  font-weight: 800;
  color: #475569;
  margin-top: 3px;
  letter-spacing: 0.05em;
}

.aadhaar-number-row {
  background: #fafaf9;
  border-top: 1px dashed #cbd5e1;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aadhaar-digits {
  font-family: 'Consolas', monospace;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #0f172a;
  display: flex;
  gap: 0.85rem;
}

.aadhaar-tagline {
  font-size: 0.82rem;
  font-weight: 700;
  color: #b91c1c;
}

.aadhaar-tagline span {
  color: #dc2626;
  font-size: 0.95rem;
}

/* ── 2. LIVE PAN CARD ── */
.live-cert-pan-container {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

.live-cert-pan-card {
  width: 100%;
  max-width: 580px;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 100%);
  border: 2px solid #94a3b8;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  position: relative;
}

.pan-header-row {
  background: #0369a1;
  color: #ffffff;
  padding: 0.65rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pan-dept-text {
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}

.pan-emblem-center {
  text-align: center;
  line-height: 1.2;
}

.pan-right-badge {
  background: #f59e0b;
  color: #78350f;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
}

.pan-body-row {
  display: flex;
  padding: 1.15rem 1.25rem;
  gap: 1.25rem;
  align-items: center;
}

.pan-left-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.pan-photo-box {
  width: 82px;
  height: 96px;
  background: #ffffff;
  border: 1px solid #64748b;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
}

.pan-photo-box.male {
  background: #eff6ff;
  color: #1e40af;
}

.pan-photo-box.female {
  background: #fdf2f8;
  color: #9d174d;
}

.pan-signature-box {
  font-family: 'Brush Script MT', 'Dancing Script', cursive;
  font-size: 1.2rem;
  color: #1e3a8a;
  border-bottom: 1px solid #94a3b8;
  width: 80px;
  text-align: center;
  padding-bottom: 2px;
}

.pan-details-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pan-field {
  display: flex;
  flex-direction: column;
  font-size: 0.74rem;
}

.pan-lbl {
  color: #475569;
  font-weight: 600;
  font-size: 0.68rem;
}

.pan-val {
  color: #0f172a;
}

.pan-val.bold {
  font-weight: 800;
  font-size: 0.82rem;
}

.pan-number-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.pan-holo-square {
  width: 44px;
  height: 30px;
  background: linear-gradient(135deg, #fef08a, #fde047, #f59e0b);
  border: 1px solid #d97706;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pan-card-number {
  font-family: 'Consolas', monospace;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0c4a6e;
  letter-spacing: 0.08em;
}

.pan-qr-col {
  width: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pan-footer-strip {
  background: #0284c7;
  color: #ffffff;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  letter-spacing: 0.06em;
}

/* ── 3. LIVE NPTEL CERTIFICATE ── */
.live-cert-nptel-container {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

.live-cert-nptel-card {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border: 6px double #1e3a8a;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.09);
  position: relative;
}

.nptel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #d97706;
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
}

.nptel-brand-title {
  font-size: 1.7rem;
  font-weight: 900;
  color: #1e3a8a;
  letter-spacing: -0.02em;
}

.nptel-brand-sub {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.nptel-moe {
  font-size: 0.7rem;
  color: #64748b;
  font-style: italic;
}

.nptel-body {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nptel-cert-award {
  font-size: 0.84rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.nptel-recipient {
  font-family: Georgia, serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f2b48;
  margin-bottom: 0.4rem;
}

.nptel-sub-text {
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 0.4rem;
}

.nptel-course-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1d4ed8;
  margin-bottom: 1.25rem;
}

.nptel-scores-wrapper {
  display: flex;
  gap: 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.nptel-score-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nptel-score-item.highlight {
  border-left: 2px solid #d97706;
  padding-left: 1.5rem;
}

.nptel-score-lbl {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}

.nptel-score-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.nptel-score-item.highlight .nptel-score-val {
  color: #b45309;
}

.nptel-elite-rosette {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.nptel-signs-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

.nptel-sign-col {
  text-align: center;
}

.nptel-sign-line.cursive {
  font-family: 'Brush Script MT', cursive;
  font-size: 1.3rem;
  color: #1e3a8a;
}

.nptel-sign-desig {
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 2px;
}

/* ── 4 & 5. CLASS 10 & 12 BOARD CERTIFICATES ── */
.live-cert-board-container {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

.live-cert-board-card {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  padding: 1rem;
}

.board-ornate-border {
  border: 4px solid #b45309;
  outline: 2px dashed #d97706;
  outline-offset: 4px;
  padding: 1.5rem 1.75rem;
  border-radius: 8px;
  background: #fffdfa;
}

.board-ornate-border.royal {
  border-color: #1e40af;
  outline-color: #3b82f6;
  background: #f8fafc;
}

.board-header {
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.85rem;
  margin-bottom: 1.15rem;
}

.board-crest {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.board-authority {
  font-size: 0.84rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.05em;
}

.board-cert-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #92400e;
  margin-top: 4px;
  letter-spacing: -0.01em;
}

.board-ornate-border.royal .board-cert-title {
  color: #1e3a8a;
}

.board-cert-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
}

.board-statement {
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 1rem;
}

.board-highlight {
  color: #0f172a;
  font-size: 0.95rem;
}

.board-division-box {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.board-division-box.royal {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.board-subjects-table {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.subj-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background: #f1f5f9;
  padding: 0.45rem 0.75rem;
  font-weight: 800;
  font-size: 0.72rem;
  color: #475569;
  border-bottom: 1px solid #cbd5e1;
}

.subj-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 0.4rem 0.75rem;
  font-size: 0.74rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

.subj-row .bold {
  font-weight: 800;
  color: #0f172a;
}

.board-footer-signs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
}

.board-sign {
  text-align: center;
}

.board-sign .sign-line.cursive {
  font-family: 'Brush Script MT', cursive;
  font-size: 1.25rem;
  color: #1e293b;
}

.board-sign .sign-role {
  font-size: 0.65rem;
  color: #64748b;
  margin-top: 2px;
}

.board-gold-seal {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #fde047 0%, #d97706 100%);
  border: 2px solid #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(180, 83, 9, 0.2);
}

.board-gold-seal.royal {
  background: radial-gradient(circle, #93c5fd 0%, #1d4ed8 100%);
  border-color: #1e3a8a;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.2);
}

.seal-inner {
  font-size: 0.58rem;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.05em;
}
/* TimetableManager.css - Premium Modern Design for Apna Campus Timetable Suite */

.tt-manager-root {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-family: inherit;
  color: #0f172a;
}

/* Header & Controls */
.tt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tt-title-group h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tt-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

.tt-action-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.tt-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.tt-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
}

.tt-btn-success {
  background: #059669;
  color: #ffffff;
}
.tt-btn-success:hover {
  background: #047857;
}

.tt-btn-warning {
  background: #d97706;
  color: #ffffff;
}
.tt-btn-warning:hover {
  background: #b45309;
}

.tt-btn-danger {
  background: #dc2626;
  color: #ffffff;
}
.tt-btn-danger:hover {
  background: #b91c1c;
}

.tt-btn-secondary {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.tt-btn-secondary:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Stat KPI Cards */
.tt-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.tt-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tt-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tt-kpi-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tt-kpi-icon-blue { background: #eff6ff; color: #2563eb; }
.tt-kpi-icon-green { background: #ecfdf5; color: #059669; }
.tt-kpi-icon-amber { background: #fffbeb; color: #d97706; }
.tt-kpi-icon-purple { background: #faf5ff; color: #7c3aed; }

.tt-kpi-info span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tt-kpi-info h3 {
  margin: 0.15rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

/* Filter Navigation Bar */
.tt-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  background: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.tt-view-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 9px;
}

.tt-tab-btn {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.tt-tab-btn.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.tt-tab-btn:hover:not(.active) {
  color: #0f172a;
}

.tt-filter-selects {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tt-select {
  padding: 0.42rem 0.75rem;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  font-size: 0.82rem;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  cursor: pointer;
}
.tt-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Status Badges */
.tt-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tt-status-draft { background: #f1f5f9; color: #475569; }
.tt-status-validated { background: #e0f2fe; color: #0369a1; }
.tt-status-pending { background: #fef3c7; color: #b45309; }
.tt-status-approved { background: #dcfce7; color: #15803d; }
.tt-status-published { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }
.tt-status-archived { background: #f3f4f6; color: #6b7280; }
.tt-status-rejected { background: #fee2e2; color: #b91c1c; }

/* Conflict Banner Alert */
.tt-conflict-alert {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  color: #9f1239;
}
.tt-conflict-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.83rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* Master Weekly Grid */
.tt-grid-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow-x: auto;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.tt-grid-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.tt-grid-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  text-align: center;
}
.tt-grid-table th.time-col {
  width: 110px;
  text-align: left;
  padding-left: 1rem;
}

.tt-grid-table td {
  padding: 0.6rem;
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  vertical-align: top;
  height: 94px;
  min-width: 135px;
  background: #ffffff;
  transition: background 0.15s ease;
}
.tt-grid-table td:hover {
  background: #f8fafc;
}

.tt-grid-table td.time-cell {
  background: #fafaf9;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #e2e8f0;
}
.tt-grid-table td.time-cell small {
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.7rem;
}

.tt-break-row td {
  background: #fffbeb !important;
  color: #b45309;
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
  height: 38px;
  letter-spacing: 0.05em;
  border-top: 1px solid #fde68a;
  border-bottom: 1px solid #fde68a;
}

/* Session Slot Cards */
.tt-slot-card {
  height: 100%;
  border-radius: 9px;
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  border-left: 4px solid #2563eb;
}
.tt-slot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.tt-slot-card.theory {
  background: #f0f7ff;
  border-left-color: #2563eb;
  border-right: 1px solid #dbeafe;
  border-top: 1px solid #dbeafe;
  border-bottom: 1px solid #dbeafe;
}

.tt-slot-card.lab {
  background: #f0fdf4;
  border-left-color: #059669;
  border-right: 1px solid #bbf7d0;
  border-top: 1px solid #bbf7d0;
  border-bottom: 1px solid #bbf7d0;
}

.tt-slot-card.consecutive {
  background: #f5f3ff;
  border-left-color: #7c3aed;
  border-right: 1px solid #ddd6fe;
  border-top: 1px solid #ddd6fe;
  border-bottom: 1px solid #ddd6fe;
}

.tt-slot-card.lunch {
  background: #fff1f2;
  border-left-color: #f43f5e;
  border-right: 1px solid #fecdd3;
  border-top: 1px solid #fecdd3;
  border-bottom: 1px solid #fecdd3;
}

.tt-slot-card.hobby_club {
  background: #ecfdf5;
  border-left-color: #10b981;
  border-right: 1px solid #a7f3d0;
  border-top: 1px solid #a7f3d0;
  border-bottom: 1px solid #a7f3d0;
}

.tt-slot-card.library {
  background: #fffbeb;
  border-left-color: #f59e0b;
  border-right: 1px solid #fde68a;
  border-top: 1px solid #fde68a;
  border-bottom: 1px solid #fde68a;
}

.tt-slot-card.tutorial {
  background: #eef2ff;
  border-left-color: #6366f1;
  border-right: 1px solid #c7d2fe;
  border-top: 1px solid #c7d2fe;
  border-bottom: 1px solid #c7d2fe;
}

.tt-slot-card.locked-card {
  box-shadow: inset 0 0 0 1px #94a3b8;
}

.tt-slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.tt-sub-code {
  font-weight: 800;
  font-size: 0.82rem;
  color: #1e3a8a;
}
.tt-slot-card.lab .tt-sub-code { color: #065f46; }
.tt-slot-card.consecutive .tt-sub-code { color: #5b21b6; }

.tt-type-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}
.tt-type-pill.th { background: #dbeafe; color: #1e40af; }
.tt-type-pill.lb { background: #d1fae5; color: #065f46; }

.tt-sub-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.25;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tt-slot-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: #64748b;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  padding-top: 0.3rem;
  margin-top: 0.2rem;
}

.tt-slot-rm {
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 2px;
}
.tt-slot-fac {
  color: #475569;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 85px;
}

.tt-empty-slot {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 0.75rem;
  border-radius: 8px;
  border: 1px dashed #e2e8f0;
  transition: all 0.2s ease;
}
.tt-empty-slot:hover {
  border-color: #94a3b8;
  color: #64748b;
  background: #f8fafc;
}

/* Modals */
.tt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.tt-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.tt-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tt-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tt-modal-close {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}
.tt-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.tt-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.tt-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #fafaf9;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  border-radius: 0 0 16px 16px;
}

/* Wizard Steps Indicator */
.tt-step-indicator {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 0.5rem;
}
.tt-step-indicator::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}
.tt-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  z-index: 1;
}
.tt-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.tt-step-node.active .tt-step-circle {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}
.tt-step-node.completed .tt-step-circle {
  border-color: #059669;
  background: #059669;
  color: #ffffff;
}
.tt-step-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
}
.tt-step-node.active .tt-step-label {
  color: #2563eb;
}

/* Form Styles */
.tt-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.tt-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.tt-form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}
.tt-form-input, .tt-form-select {
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.86rem;
  color: #0f172a;
  outline: none;
  background: #ffffff;
}
.tt-form-input:focus, .tt-form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Progress bar */
.tt-progress-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin: 0.5rem 0;
}
.tt-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  transition: width 0.3s ease;
}

/* Conflict Assistant Box */
.tt-assistant-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.83rem;
  color: #1e40af;
}

/* Print Specific */
@media print {
  .tt-action-bar, .tt-nav-bar, .tt-kpi-grid {
    display: none !important;
  }
  .tt-grid-wrapper {
    box-shadow: none !important;
    border: none !important;
  }
}
/* ============================================================================
   APNA CAMPUS ERP - TRANSPORT OPERATIONS & FLEET MANAGEMENT STYLESHEET
   Clean, modern, responsive Enterprise ERP styling matching Apna Campus System.
   ============================================================================ */

/* Root Container */
.trans-section-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Header Card */
.trans-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  background: #ffffff;
  padding: 1.35rem 1.75rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
}

.trans-section-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.02em;
}

.trans-section-header p {
  margin: 0.35rem 0 0 0;
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.45;
}

/* Action Buttons within Header */
.trans-section-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Financial / Security Policy Alert Notice */
.trans-alert-notice {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.86rem;
  color: #166534;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(22, 101, 52, 0.05);
}

.trans-alert-notice.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.trans-alert-notice.info {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

/* KPI Summary Cards Grid */
.trans-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.15rem;
}

.trans-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

.trans-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -3px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.trans-kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}

.trans-kpi-icon.sky { background: #f0f9ff; color: #0284c7; }
.trans-kpi-icon.emerald { background: #ecfdf5; color: #059669; }
.trans-kpi-icon.rose { background: #fff1f2; color: #e11d48; }
.trans-kpi-icon.amber { background: #fffbeb; color: #d97706; }
.trans-kpi-icon.purple { background: #faf5ff; color: #7c3aed; }
.trans-kpi-icon.indigo { background: #eef2ff; color: #4f46e5; }
.trans-kpi-icon.teal { background: #f0fdfa; color: #0d9488; }

.trans-kpi-info {
  display: flex;
  flex-direction: column;
}

.trans-kpi-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.trans-kpi-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.trans-kpi-subtitle {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Filter Strip & Search Bar (supports both .trans-filter-bar and .trans-filter-strip) */
.trans-filter-bar,
.trans-filter-strip {
  background: #ffffff;
  padding: 0.9rem 1.35rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.95rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.trans-filter-group,
.trans-filter-dropdowns {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Search input container (supports both .trans-search-box and .trans-search-input) */
.trans-search-box,
.trans-search-input {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  font-size: 0.86rem;
  min-width: 280px;
  max-width: 480px;
  flex: 1;
  color: #64748b;
  transition: all 0.2s ease;
}

.trans-search-box:focus-within,
.trans-search-input:focus-within {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
  color: #0284c7;
}

.trans-search-box input,
.trans-search-input input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.86rem;
  color: #0f172a;
  font-weight: 500;
}

.trans-search-box input::-moz-placeholder, .trans-search-input input::-moz-placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.trans-search-box input::placeholder,
.trans-search-input input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* Dropdown styling */
.trans-select-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.35rem 0.75rem;
  color: #64748b;
}

.trans-select,
.trans-select-wrap select {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.52rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trans-select-wrap select {
  border: none;
  background: transparent;
  padding: 0.2rem 0.4rem;
}

.trans-select:hover,
.trans-select-wrap:hover {
  border-color: #94a3b8;
  background: #ffffff;
}

.trans-select:focus,
.trans-select-wrap:focus-within {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

/* Modern Tab Pill Switcher */
.trans-tab-pills {
  display: inline-flex;
  gap: 0.4rem;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.trans-tab-pill {
  padding: 0.5rem 1rem;
  border-radius: 9px;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.trans-tab-pill:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}

.trans-tab-pill.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Data Table Styling (supports both .trans-table-card and .trans-table-container) */
.trans-table-card,
.trans-table-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
}

.trans-table-wrap,
.trans-table-scroll {
  overflow-x: auto;
  width: 100%;
}

.trans-table,
.trans-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
  text-align: left;
}

.trans-table thead,
.trans-data-table thead {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.trans-table th,
.trans-data-table th {
  padding: 0.95rem 1.25rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-bottom: 1px solid #e2e8f0;
}

.trans-table td,
.trans-data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
  transition: background-color 0.15s ease;
}

.trans-table tbody tr:hover td,
.trans-data-table tbody tr:hover td {
  background: #f8faff;
}

.trans-table tbody tr:last-child td,
.trans-data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Universal Table & Component Action Button Modernization */
.trans-section-container button,
.erp-transport-layout button {
  font-family: inherit;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  outline: none;
}

/* Button Variants (supports both .trans-btn and .t-btn) */
.trans-btn,
.t-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.52rem 1.05rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}

.trans-btn:disabled,
.t-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.trans-btn-primary,
.t-btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3) !important;
}

.trans-btn-primary:hover:not(:disabled),
.t-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4) !important;
  transform: translateY(-1px);
}

.trans-btn-secondary,
.t-btn-secondary {
  background: #f8fafc !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

.trans-btn-secondary:hover:not(:disabled),
.t-btn-secondary:hover:not(:disabled) {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08) !important;
}

.trans-btn-outline {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.trans-btn-outline:hover:not(:disabled) {
  background: #e0f2fe !important;
  border-color: #7dd3fc !important;
  color: #0369a1 !important;
  transform: translateY(-1px);
}

.trans-btn-success,
.t-btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: 1px solid #059669 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25) !important;
}

.trans-btn-success:hover:not(:disabled),
.t-btn-success:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-1px);
}

.trans-btn-danger,
.t-btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  border: 1px solid #dc2626 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25) !important;
}

.trans-btn-danger:hover:not(:disabled),
.t-btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  transform: translateY(-1px);
}

/* Any button inside table td */
.trans-table td button,
.trans-data-table td button,
.erp-table td button {
  border-radius: 7px !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  padding: 5px 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

/* Badges (supports both .trans-badge, .trans-status-badge, and .t-badge) */
.trans-badge,
.trans-status-badge,
.t-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.72rem;
  border-radius: 9999px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.2;
}

.trans-badge.success,
.trans-status-badge.success,
.t-badge-boarded,
.t-badge-approved,
.t-badge-paid {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.trans-badge.warning,
.trans-status-badge.warning,
.t-badge-pending,
.t-badge-medium {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.trans-badge.danger,
.trans-status-badge.danger,
.t-badge-notboarded,
.t-badge-rejected,
.t-badge-urgent,
.t-badge-critical,
.t-badge-high,
.t-badge-overdue {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.trans-badge.info,
.trans-status-badge.info,
.t-badge-active,
.t-badge-low {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

/* Form Controls & Inputs */
.trans-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.trans-form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.trans-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.62rem 0.95rem;
  font-size: 0.88rem;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.trans-input:hover {
  border-color: #94a3b8;
}

.trans-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

/* Checkbox Toggle Cards */
.trans-checkbox-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.85rem;
  color: #1e293b;
  font-weight: 500;
}

.trans-checkbox-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.trans-checkbox-card input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #0284c7;
  cursor: pointer;
}

/* Announcement Cards */
.trans-notice-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.trans-notice-card:hover {
  box-shadow: 0 8px 20px -3px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

/* Modals */
.trans-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.25rem;
  animation: fadeIn 0.15s ease-out;
}

.trans-modal {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

.trans-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trans-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trans-modal-close {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trans-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.trans-modal-body {
  padding: 1.5rem;
}

.trans-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #f8fafc;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .trans-section-header {
    flex-direction: column;
    align-items: stretch;
  }
  .trans-section-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .trans-filter-bar,
  .trans-filter-strip {
    flex-direction: column;
    align-items: stretch;
  }
  .trans-search-box,
  .trans-search-input {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }
  .trans-filter-group,
  .trans-filter-dropdowns {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .trans-select {
    width: 100%;
  }
}

/* Code Badge */
.trans-code-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #334155;
  display: inline-block;
  white-space: nowrap;
}

/* Modal Card variant */
.trans-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}
/* Transport Fleet Portal Stylesheet - CollegeFlow CMS */
.erp-transport-layout {
  display: flex;
  min-height: 100vh;
  background-color: #f8fafc;
  color: #0f172a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.erp-trans-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  color: #ffffff;
  flex-shrink: 0;
}

/* Sidebar Navigation */
.erp-sidebar {
  width: 260px;
  background: #091326;
  background: linear-gradient(180deg, #091326 0%, #0b1a36 100%);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid #1a2a44;
  min-height: 100vh;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.4);
}

.erp-sidebar::-webkit-scrollbar {
  width: 5px;
}

.erp-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .erp-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
}

.erp-sidebar-brand {
  padding: 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
}

.erp-brand-text h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.erp-brand-text span {
  font-size: 0.76rem;
  font-weight: 600;
  color: #38bdf8;
  display: block;
}

.erp-sidebar-nav {
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.erp-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #94a3b8;
  background: transparent;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.erp-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.erp-nav-item.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

/* Main Content Area */
.erp-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: #f8fafc;
}

.erp-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.erp-header-title h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.erp-header-title p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 2px 0 0 0;
}

.erp-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.erp-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.campus-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  padding: 4px 12px 4px 6px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
}

.campus-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.campus-user-details strong {
  display: block;
  font-size: 0.8rem;
  color: #0f172a;
}

.campus-user-details small {
  font-size: 0.7rem;
  color: #64748b;
}

.campus-logout-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.campus-logout-btn:hover {
  background: #fee2e2;
}

.erp-content-body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Stats KPI Grid */
.erp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.erp-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.erp-stat-card-clickable {
  cursor: pointer;
}

.erp-stat-card-clickable:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.12);
}

.erp-stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.erp-stat-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

.erp-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.erp-stat-note {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* Panels & Cards */
.erp-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.erp-panel-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.erp-panel-title h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.erp-panel-title p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 3px 0 0 0;
}

.erp-panel-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Filter bar */
.erp-filter-bar {
  padding: 0.85rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.erp-search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: #0f172a;
  width: 280px;
}

.erp-search-input input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.85rem;
  background: transparent;
}

/* Buttons */
.erp-btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3) !important;
  transition: all 0.15s ease;
}

.erp-btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4) !important;
}

.erp-btn-secondary {
  background: #f8fafc !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
  transition: all 0.15s ease;
}

.erp-btn-secondary:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08) !important;
}

.erp-btn-sm {
  padding: 5px 10px !important;
  font-size: 0.76rem !important;
  border-radius: 7px !important;
}

.erp-table td button {
  border-radius: 7px !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  padding: 5px 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

/* Table */
.erp-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.erp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.erp-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 10px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.erp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.erp-table tr:hover td {
  background: #f8fafc;
}

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
}

.badge-status.active {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-status.warning {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-status.danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.badge-status.info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* Modals */
.erp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.erp-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.erp-modal-header {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.erp-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.erp-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.erp-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.erp-form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.erp-form-group input,
.erp-form-group select,
.erp-form-group textarea {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease;
}

.erp-form-group input:focus,
.erp-form-group select:focus,
.erp-form-group textarea:focus {
  border-color: #0284c7;
}

.erp-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Printable Digital Bus Pass */
.digital-bus-pass {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  border: 2px solid #38bdf8;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.25);
  position: relative;
  overflow: hidden;
}

.pass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.pass-grid {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 1rem;
}

.pass-field {
  margin-bottom: 0.5rem;
}

.pass-field-label {
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
}

.pass-field-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.pass-qr-box {
  background: #ffffff;
  padding: 8px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pass-qr-box small {
  font-size: 0.62rem;
  color: #0f172a;
  font-weight: 700;
}

/* Telemetry pulse */
.telemetry-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
/* Hostel Modules Stylesheet - Unified Aesthetic & Image 2 Replica */

.hostel-unified-module {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 3rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
}

/* Page Header & Breadcrumb */
.hostel-page-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hostel-breadcrumb {
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hostel-breadcrumb .current {
  color: #0284c7;
  font-weight: 600;
}

.hostel-header-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.hostel-header-title-row h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
}

.hostel-header-title-row p {
  margin: 3px 0 0 0;
  font-size: 0.86rem;
  color: #64748b;
}

.hostel-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.hostel-role-tag.admin-only {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.realtime-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-live 1.8s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Toast Banner */
.hostel-toast-banner {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  animation: slideInRight 0.3s ease;
}

.hostel-toast-banner.success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.hostel-toast-banner.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Live Sync Alert Banner */
.hostel-live-sync-alert {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 5px solid #2563eb;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.live-alert-icon {
  background: #dbeafe;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-alert-text {
  flex: 1;
  font-size: 0.86rem;
  color: #1e3a8a;
}

.live-alert-text strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.dismiss-banner-btn {
  background: transparent;
  border: 1px solid #93c5fd;
  color: #1d4ed8;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.hostel-success-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 5px solid #16a34a;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hostel-success-banner .banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hostel-success-banner strong {
  color: #14532d;
  font-size: 0.94rem;
}

.hostel-success-banner p {
  margin: 2px 0 0 0;
  font-size: 0.82rem;
  color: #166534;
}

/* Main Card Container */
.hostel-card-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Controls Grid */
.attendance-controls-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  align-items: flex-end;
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 1100px) {
  .attendance-controls-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .attendance-controls-grid {
    grid-template-columns: 1fr;
  }
}

.control-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.control-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  height: 18px;
  line-height: 18px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  padding: 0;
}

.input-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0 0.75rem;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  min-width: 0;
}

.input-with-icon svg {
  flex-shrink: 0;
}

.input-with-icon:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.input-with-icon input,
.input-with-icon select {
  border: none;
  outline: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
  color: #0f172a;
  background: transparent;
  font-family: inherit;
  box-sizing: border-box;
  min-width: 0;
  flex: 1;
  line-height: normal;
}

.input-with-icon select {
  cursor: pointer;
}

.input-with-icon input[type="date"] {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.input-with-icon input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.65;
  padding: 0;
  margin: 0;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.input-with-icon input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Summary Toolbar */
.attendance-summary-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.summary-pill.total { background: #f1f5f9; color: #334155; }
.summary-pill.present { background: #ecfdf5; color: #047857; }
.summary-pill.absent { background: #fef2f2; color: #b91c1c; }
.summary-pill.leave { background: #eff6ff; color: #1d4ed8; }

.bulk-actions-group {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.bulk-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.bulk-btn:hover { opacity: 0.9; }
.bulk-btn.mark-present { background: #10b981; color: white; }
.bulk-btn.mark-absent { background: #ef4444; color: white; }
.bulk-btn.reset { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

/* Table Wrapper */
.hostel-table-wrapper {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.hostel-custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}

.hostel-custom-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.hostel-custom-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.hostel-custom-table tr:hover {
  background: #f8fafc;
}

.row-absent-highlight {
  background: #fff5f5 !important;
}

.row-selected-highlight {
  background: #eff6ff !important;
  border-left: 3px solid #2563eb;
}

.no-records-cell {
  text-align: center;
  padding: 2.5rem !important;
  color: #64748b;
  font-style: italic;
}

/* Badges */
.student-name-bold {
  font-weight: 600;
  color: #0f172a;
}

.student-subtext {
  font-size: 0.74rem;
  color: #64748b;
}

.room-badge {
  display: inline-block;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.78rem;
  margin-right: 4px;
}

.bed-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.74rem;
}

.status-toggle-buttons {
  display: inline-flex;
  background: #f1f5f9;
  padding: 2px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.status-btn {
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.status-btn.present.active { background: #10b981; color: #fff; }
.status-btn.absent.active { background: #ef4444; color: #fff; }
.status-btn.leave.active { background: #2563eb; color: #fff; }

.table-inline-input {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.8rem;
  outline: none;
}

.table-inline-input:focus {
  border-color: #2563eb;
}

/* Attendance Submit Footer */
.attendance-submit-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f8fafc;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.remarks-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.remarks-box label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}

.remarks-box input {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.86rem;
  outline: none;
  background: #fff;
}

.submit-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e2e8f0;
}

.submit-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: #475569;
}

.submit-attendance-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 22px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}

.submit-attendance-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.submit-attendance-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ─────────────────────────────────────────────────────────────
   TAKE ATTENDANCE PROMPT CARD (Before Roll-Call is Taken)
   ───────────────────────────────────────────────────────────── */
.take-attendance-prompt-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.take-attendance-prompt-left {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex: 1;
  min-width: 280px;
}

.take-attendance-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #bfdbfe;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.take-attendance-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 1.18rem;
  font-weight: 700;
  color: #0f172a;
}

.take-attendance-ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
}

.live-dot-blue {
  width: 7px;
  height: 7px;
  background: #2563eb;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
  animation: pulseDotBlue 2s infinite ease-in-out;
}

@keyframes pulseDotBlue {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.take-attendance-sub {
  font-size: 0.86rem;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.45;
}

.take-attendance-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-take-attendance-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

.btn-take-attendance-main:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.btn-take-attendance-main.disabled,
.btn-take-attendance-main:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─────────────────────────────────────────────────────────────
   SUBMITTED ATTENDANCE SUMMARY CARD & DISABLED TABLE STATES
   ───────────────────────────────────────────────────────────── */
.hostel-attendance-submitted-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.has-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.has-header-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.has-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #a7f3d0;
}

.has-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.has-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
}

.live-dot-green {
  width: 7px;
  height: 7px;
  background: #16a34a;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.has-header-sub {
  font-size: 0.84rem;
  color: #64748b;
  margin-top: 3px;
}

.has-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.has-update-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.has-update-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.has-toggle-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.has-toggle-view-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Metrics Grid */
.has-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.has-metric-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.has-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.has-metric-card.hostel-name {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-color: #cbd5e1;
}

.has-metric-card.line-numbers {
  background: linear-gradient(135deg, #faf5ff, #f3e8ff);
  border-color: #e9d5ff;
}
.has-metric-card.line-numbers .has-metric-icon {
  background: #e9d5ff;
  color: #7e22ce;
}
.has-metric-card.line-numbers .has-metric-val {
  color: #6b21a8;
}

.has-metric-card.present {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color: #bbf7d0;
}
.has-metric-card.present .has-metric-icon {
  background: #bbf7d0;
  color: #15803d;
}
.has-metric-card.present .has-metric-val {
  color: #15803d;
}

.has-metric-card.absent {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-color: #fecaca;
}
.has-metric-card.absent .has-metric-icon {
  background: #fecaca;
  color: #b91c1c;
}
.has-metric-card.absent .has-metric-val {
  color: #b91c1c;
}

.has-metric-card.leave {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #bfdbfe;
}
.has-metric-card.leave .has-metric-icon {
  background: #bfdbfe;
  color: #1d4ed8;
}
.has-metric-card.leave .has-metric-val {
  color: #1d4ed8;
}

.has-metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.has-metric-info {
  display: flex;
  flex-direction: column;
}

.has-metric-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.has-metric-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

/* Card footer */
.has-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.83rem;
  color: #64748b;
}

.has-footer-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.has-footer-meta code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.8rem;
  color: #334155;
}

.has-locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.76rem;
}

.has-link-btn {
  background: transparent;
  border: none;
  color: #2563eb;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  text-decoration: underline;
}

.has-link-btn:hover {
  color: #1d4ed8;
}

/* Locked & Editing Banners for Table */
.has-locked-table-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  font-size: 0.84rem;
  color: #475569;
  flex-wrap: wrap;
}

.has-editing-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  flex-wrap: wrap;
}

.editing-banner-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.editing-banner-content strong {
  color: #1e3a8a;
  display: block;
}

.editing-banner-content p {
  margin: 0;
  font-size: 0.82rem;
  color: #3b82f6;
}

.has-cancel-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  color: #dc2626;
  border: 1px solid #fca5a5;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.has-cancel-edit-btn:hover {
  background: #fef2f2;
}

/* Disabled table styling */
.hostel-custom-table.table-disabled {
  opacity: 0.72;
}

.status-btn:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.status-btn.disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.table-inline-input:disabled {
  background: #f8fafc;
  cursor: not-allowed;
  color: #64748b;
  border-color: #e2e8f0;
}

.bulk-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.submit-attendance-btn.update-mode {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.submit-attendance-btn.update-mode:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* ─────────────────────────────────────────────────────────────
   VIEW ATTENDANCE CONSOLE
   ───────────────────────────────────────────────────────────── */

.view-attendance-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.toolbar-left {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.filter-item label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  height: 18px;
  line-height: 18px;
  display: flex;
  align-items: center;
  margin: 0;
  white-space: nowrap;
}

.filter-item select,
.filter-item input[type="date"],
.filter-item input[type="text"] {
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.84rem;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  line-height: normal;
}

.filter-item .had-btn,
.filter-item button.had-btn {
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  box-sizing: border-box;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.filter-item input[type="date"] {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.filter-item input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  padding: 0;
  margin: 0;
}

.toolbar-right {
  display: flex;
  gap: 0.5rem;
}

.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
}

.export-btn.excel {
  background: #0284c7;
  color: white;
  transition: background 0.15s ease, transform 0.1s ease;
}
.export-btn.excel:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.export-btn.pdf {
  background: #dc2626;
  color: white;
  transition: background 0.15s ease, transform 0.1s ease;
}
.export-btn.pdf:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.export-btn.print {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  transition: background 0.15s ease, transform 0.1s ease;
}
.export-btn.print:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.h-btn-action-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #10b981;
  color: white;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.session-meta-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  background: #f8fafc;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.meta-item .lbl {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}

.meta-item .val {
  display: block;
  font-size: 0.88rem;
  color: #0f172a;
  margin-top: 2px;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #047857;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.attendance-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.kpi-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.kpi-box.total { border-left: 4px solid #3b82f6; }
.kpi-box.present { border-left: 4px solid #10b981; }
.kpi-box.absent { border-left: 4px solid #ef4444; }
.kpi-box.leave { border-left: 4px solid #8b5cf6; }

.kpi-box .kpi-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
}

.kpi-box.present .kpi-num { color: #059669; }
.kpi-box.absent .kpi-num { color: #dc2626; }
.kpi-box.leave .kpi-num { color: #7c3aed; }

.kpi-box .kpi-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  margin-top: 2px;
}

.kpi-box .kpi-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

.absentee-alert-panel {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.alert-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #991b1b;
  font-size: 0.88rem;
}

.absentee-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.absentee-pill {
  background: #ffffff;
  border: 1px solid #fca5a5;
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.absentee-pill .name { font-weight: 700; color: #991b1b; }
.absentee-pill .room { font-size: 0.74rem; color: #64748b; }

.contact-parent-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fee2e2;
  border: 1px solid #f87171;
  color: #b91c1c;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.table-search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.table-search-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.table-search-header .search-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 4px 8px;
  border-radius: 6px;
}

.table-search-header .search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.82rem;
}

.h-status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.h-status-badge.present { background: #ecfdf5; color: #047857; }
.h-status-badge.absent { background: #fef2f2; color: #b91c1c; }
.h-status-badge.leave { background: #eff6ff; color: #1d4ed8; }
.h-status-badge.review { background: #fef3c7; color: #b45309; }

.h-btn-inspect {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.h-btn-inspect:hover {
  background: #e2e8f0;
}

/* ─────────────────────────────────────────────────────────────
   IMAGE 2 REPLICA: MANAGE HOSTEL(S) STYLING
   ───────────────────────────────────────────────────────────── */

.manage-hostels-replica {
  gap: 1.5rem;
}

.manage-hostel-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.manage-hostel-top-header .breadcrumb-path {
  font-size: 0.88rem;
  color: #64748b;
}

.manage-hostel-top-header .active-path {
  color: #0f172a;
  font-weight: 600;
}

.admin-user-profile-badge {
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* BOX 1: + Add Hostel Card */
.add-hostel-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.add-hostel-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #22c55e;
  display: flex;
  align-items: center;
  gap: 6px;
}

.plus-symbol {
  font-weight: 800;
  font-size: 1.25rem;
  color: #334155;
}

.add-hostel-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-fields-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.required-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ef4444; /* Red asterisk & label like image */
}

.input-group input {
  padding: 8px 12px;
  border: 1px solid #f87171; /* red outline like image 2 */
  border-radius: 4px;
  font-size: 0.9rem;
  outline: none;
  background: #fff;
  color: #0f172a;
}

.input-group:nth-child(3) input {
  border-color: #38bdf8; /* light blue outline for Total Beds like image 2 */
}

.form-buttons-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.create-btn {
  background: #22c55e; /* Vibrant Green like image 2 */
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.create-btn:hover {
  background: #16a34a;
}

.clear-btn {
  background: #ffffff;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 24px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
}

.clear-btn:hover {
  background: #f1f5f9;
}

/* BOX 2: Manage Hostel(s) Table Card */
.manage-hostels-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1.25rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.table-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.25rem 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.header-title-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-icon-bars {
  font-size: 1.2rem;
  color: #334155;
}

.header-title-with-icon h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #334155;
}

.header-actions-group {
  display: flex;
  gap: 0.5rem;
}

.export-action-btn {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  color: #ffffff;
}

.pdf-btn {
  background: #f97316; /* Amber-orange like image 2 */
}

.pdf-btn:hover {
  background: #ea580c;
}

.excel-btn {
  background: #0ea5e9; /* Light blue like image 2 */
}

.excel-btn:hover {
  background: #0284c7;
}

.matrix-table-scroll {
  overflow-x: auto;
  width: 100%;
}

.manage-hostels-grid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.manage-hostels-grid-table th {
  background: #f8fafc;
  color: #0284c7; /* Blue text in headers like Image 2 */
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 2px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  white-space: nowrap;
}

.manage-hostels-grid-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  white-space: nowrap;
}

.manage-hostels-grid-table tr:hover {
  background: #f8fafc;
}

.sortable-th {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.sort-indicator {
  font-size: 0.75rem;
  margin-left: 3px;
}

.center-cell {
  text-align: center;
}

.hostel-name-cell {
  font-weight: 600;
  color: #1e293b;
}

.code-cell {
  font-weight: 700;
  color: #2563eb;
}

.beds-cell {
  font-weight: 700;
  color: #0f172a;
}

.bed-spec-cell {
  color: #94a3b8; /* '(not set)' styling like Image 2 */
  font-style: italic;
  font-size: 0.8rem;
}

.bed-spec-cell.highlight {
  color: #0284c7;
  font-style: normal;
  font-weight: 600;
}

.delete-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.delete-icon-btn:hover {
  background: #fee2e2;
}

/* ─────────────────────────────────────────────────────────────
   ROOM ALLOTMENT GRID & CARDS
   ───────────────────────────────────────────────────────────── */

.room-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.room-card-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.room-card-box.has-vacancy {
  border-top: 3px solid #10b981;
}

.room-card-box.full {
  border-top: 3px solid #f59e0b;
}

.room-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.room-occ-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.room-occ-badge.vacant { background: #ecfdf5; color: #047857; }
.room-occ-badge.full { background: #fef3c7; color: #b45309; }

.room-beds-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bed-slot-item {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bed-slot-item.occupied {
  background: #f8fafc;
  border-left: 3px solid #3b82f6;
}

.bed-slot-item.vacant {
  background: #fafafa;
  border-left: 3px dashed #10b981;
}

.bed-slot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.bed-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #334155;
}

.bed-status-indicator.occ { color: #2563eb; font-weight: 700; }
.bed-status-indicator.vac { color: #10b981; font-weight: 700; }

.resident-details-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.resident-name {
  font-size: 0.82rem;
  color: #0f172a;
}

.resident-meta {
  font-size: 0.72rem;
  color: #64748b;
}

.bed-quick-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 4px;
}

.bed-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.bed-action-btn.transfer {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.bed-action-btn.vacate {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.vacant-slot-cta {
  font-size: 0.76rem;
  color: #059669;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  text-align: center;
}

.vacant-slot-cta:hover {
  text-decoration: underline;
}

/* Modals */
.hostel-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9999;
}

.hostel-modal-box {
  background: #ffffff;
  border-radius: 10px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.hostel-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hostel-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #0f172a;
}

.hostel-modal-header p {
  margin: 3px 0 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

.close-modal-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748b;
  padding: 4px;
}

.hostel-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}

.form-group-field input,
.form-group-field select {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.88rem;
  outline: none;
}

.hostel-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.h-btn-secondary {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.modal-profile-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f8fafc;
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.avatar-circle {
  width: 44px;
  height: 44px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.modal-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-info-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-info-card h5 {
  margin: 0 0 0.35rem 0;
  font-size: 0.85rem;
  color: #2563eb;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.35rem;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.info-lbl {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
}

.info-row strong {
  font-size: 0.84rem;
  color: #0f172a;
}

.cgpa-pill {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────
   ENHANCEMENT 1: SEPARATE STUDENT & PARENT CONTACT CELLS
   ───────────────────────────────────────────────────────────── */

.contact-cell-box {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.contact-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 3px 6px;
  border-radius: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.contact-phone-link:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.contact-phone-link.parent {
  background: #fefce8;
  border-color: #fef08a;
  color: #854d0e;
}

.contact-phone-link.parent:hover {
  background: #fef9c3;
  border-color: #fde047;
  color: #713f12;
}

.contact-icon {
  flex-shrink: 0;
}

.contact-icon.student {
  color: #3b82f6;
}

.contact-icon.parent {
  color: #ca8a04;
}

.contact-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: -0.2px;
}

.contact-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.contact-copy-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.contact-unavailable {
  font-size: 0.78rem;
  color: #94a3b8;
  font-style: italic;
}

.copied-tag {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  animation: fadeInOut 0.2s ease-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

@keyframes fadeInOut {
  from { opacity: 0; transform: translate(-50%, 4px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ─────────────────────────────────────────────────────────────
   ENHANCEMENT 2: VIEW STUDENT COLUMN & BUTTON
   ───────────────────────────────────────────────────────────── */

.view-student-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.view-student-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.view-student-btn:active {
  transform: translateY(0);
}

/* Warden Student Dashboard Inspection Overlay */
.warden-student-dashboard-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.warden-student-nav-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  flex-wrap: wrap;
}

.warden-student-nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.warden-back-attendance-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.warden-back-attendance-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.warden-viewing-student-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.warden-badge-inspect {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1d4ed8;
  letter-spacing: 0.3px;
}

.warden-student-name {
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 700;
}

.warden-student-meta {
  font-size: 0.8rem;
  color: #64748b;
}

.warden-student-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.warden-sync-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
}

.live-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-live 1.8s infinite;
}

.warden-student-portal-embed {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

/* ─────────────────────────────────────────────────────────────
   ENHANCEMENT 3: ALERT PARENTS OF ABSENT STUDENTS BUTTON & MODAL
   ───────────────────────────────────────────────────────────── */

.has-parent-alert-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: 1px solid #b45309;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.has-parent-alert-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
  transform: translateY(-1px);
}

.has-parent-alert-btn:disabled {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.all-present-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.alerts-dispatched-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #86efac;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Modal Overlay & Card */
.parent-alert-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeIn 0.2s ease-out;
}

.parent-alert-modal {
  background: #ffffff;
  width: 100%;
  max-width: 820px;
  max-height: 92vh;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleIn 0.22s ease-out;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.parent-alert-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: #fafafa;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header-title-box h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header-title-box p {
  margin: 4px 0 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.modal-close-icon-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.modal-close-icon-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.parent-alert-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* Stats Ribbon inside Modal */
.alert-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.alert-stat-card {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alert-stat-card.absent {
  background: #fef2f2;
  border-color: #fecaca;
}

.alert-stat-card.valid {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.alert-stat-card.missing {
  background: #fffbeb;
  border-color: #fde68a;
}

.alert-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.3px;
}

.alert-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.alert-stat-card.absent .alert-stat-val { color: #dc2626; }
.alert-stat-card.valid .alert-stat-val { color: #16a34a; }
.alert-stat-card.missing .alert-stat-val { color: #d97706; }

/* Recipient Table inside Modal */
.alert-table-box {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  max-height: 220px;
  overflow-y: auto;
}

.alert-recipients-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.alert-recipients-table th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 2;
}

.alert-recipients-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.alert-recipients-table tr:hover {
  background: #f8fafc;
}

.badge-absent-pill {
  display: inline-block;
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.badge-missing-phone {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Template Box */
.alert-template-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.alert-template-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.alert-template-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #1e293b;
  white-space: pre-line;
  background: #ffffff;
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  margin: 0;
}

/* Transparent Gateway Notice */
.alert-disclaimer-card {
  display: flex;
  gap: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #1e40af;
  line-height: 1.45;
}

.alert-disclaimer-card strong {
  color: #1e3a8a;
}

.alert-disclaimer-icon {
  flex-shrink: 0;
  color: #2563eb;
  margin-top: 2px;
}

/* Modal Actions Footer */
.parent-alert-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #fafafa;
  border-top: 1px solid #e2e8f0;
}

.modal-btn-cancel {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-btn-cancel:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.modal-btn-confirm {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: 1px solid #b45309;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.modal-btn-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

.modal-btn-confirm:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Post-Dispatch Summary inside Submitted Attendance Card */
.has-alert-dispatch-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.alert-dispatch-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #92400e;
}

.alert-dispatch-info strong {
  color: #78350f;
}

.alert-dispatch-meta {
  font-size: 0.78rem;
  color: #b45309;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 11-Column Standard Attendance Table Styling */
.branch-pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.reg-no-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}



/* Quick Add Bed & Action Buttons for Room Allotment Section */
.quick-add-bed-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-add-bed-btn:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
}

.quick-reduce-bed-btn {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-reduce-bed-btn:hover {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
}

.h-btn-action-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.h-btn-action-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.h-btn-action-reduce {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.h-btn-action-reduce:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #b91c1c;
}
/* Apna Campus — Warden Management Module Styles */

.wm-container {
  padding: 1.5rem;
  background: #f8fafc;
  min-height: calc(100vh - 80px);
  color: #1e293b;
}

.wm-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.wm-title h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wm-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: #ede9fe;
  color: #7c3aed;
  text-transform: uppercase;
}

/* Tabs Bar */
.wm-tabs-bar {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.wm-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.wm-tab-btn:hover {
  color: #0f172a;
}

.wm-tab-btn.active {
  color: #7c3aed;
  border-bottom-color: #7c3aed;
}

/* Filter Controls */
.wm-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.wm-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  width: 320px;
}

.wm-search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.85rem;
  color: #0f172a;
}

/* Modal Overlay */
.wm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.wm-modal {
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.wm-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.wm-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.wm-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #f8fafc;
}

/* Form Styles */
.wm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.wm-form-col-2 {
  grid-column: span 2;
}

.wm-form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.wm-form-input, .wm-form-select, .wm-form-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #0f172a;
  outline: none;
  background: #ffffff;
}

.wm-form-input:focus, .wm-form-select:focus, .wm-form-textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

/* Permissions Matrix Grid */
.wm-perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}

.wm-perm-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.wm-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.wm-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.wm-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 24px;
}

.wm-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .wm-slider {
  background-color: #7c3aed;
}

input:checked + .wm-slider:before {
  transform: translateX(20px);
}

/* ========================================================
   DUTY & LEAVE MANAGEMENT DASHBOARD & KPI CARD OVERHAUL
   ======================================================== */

.wm-duty-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.wm-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.wm-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.wm-kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.wm-kpi-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wm-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.wm-kpi-card:hover .wm-kpi-icon {
  transform: scale(1.05);
}

.wm-kpi-icon.green {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.wm-kpi-icon.amber {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.wm-kpi-icon.purple {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.wm-kpi-icon.blue {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.wm-kpi-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.25;
}

.wm-kpi-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.wm-kpi-badge.green {
  background: #ecfdf5;
  color: #047857;
}

.wm-kpi-badge.amber {
  background: #fffbeb;
  color: #b45309;
}

.wm-kpi-badge.purple {
  background: #f5f3ff;
  color: #6d28d9;
}

.wm-kpi-badge.blue {
  background: #eff6ff;
  color: #1d4ed8;
}

.wm-kpi-val {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.35rem 0 0.4rem 0;
}

.wm-kpi-subtext {
  font-size: 0.78rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

/* Duty & Leave Table Cards */
.wm-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 18px -3px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  margin-bottom: 1.75rem;
  transition: border-color 0.15s ease;
}

.wm-table-card-header {
  padding: 1.15rem 1.45rem;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.wm-table-card-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.wm-table-card-header p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0.2rem 0 0 0;
}

/* Table Enhancements */
.wm-avatar-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wm-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  border: 2px solid #ffffff;
}

.wm-avatar-circle.purple {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 2px 6px rgba(109, 40, 217, 0.25);
}

.wm-avatar-circle.teal {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25);
}

.wm-avatar-circle.amber {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.25);
}

.wm-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wm-status-pill.on-duty {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.wm-status-pill.on-leave {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.wm-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.wm-status-pill.on-duty .wm-pulse-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.wm-status-pill.on-leave .wm-pulse-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.wm-phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #0284c7;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  transition: all 0.15s ease;
}

.wm-phone-pill:hover {
  background: #e0f2fe;
  color: #0369a1;
}

.wm-handover-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  margin-top: 0.35rem;
  font-size: 0.76rem;
  color: #334155;
}

.wm-action-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}



/* Clickable Pending Tasks Badge Button */
.wm-pending-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.735rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  line-height: 1.2;
}

.wm-pending-badge-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

.wm-pending-badge-btn.warning {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.wm-pending-badge-btn.warning:hover {
  background: #fde68a;
  color: #92400e;
  border-color: #f59e0b;
}

.wm-pending-badge-btn.neutral {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

.wm-pending-badge-btn.neutral:hover {
  background: #e2e8f0;
  color: #1e293b;
  border-color: #cbd5e1;
}

.wm-pending-badge-btn .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d97706;
  display: inline-block;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
/* HostelManagementModule.css - Styling for Unified Hostel & Warden Management in Admin & Super Admin */

.hostel-mgmt-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

/* Sub-navigation tabs strip */
.hostel-mgmt-nav-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.6rem 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  scrollbar-width: thin;
}

.hostel-mgmt-nav-bar::-webkit-scrollbar {
  height: 5px;
}

.hostel-mgmt-nav-bar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.hostel-mgmt-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease-in-out;
}

.hostel-mgmt-tab-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.hostel-mgmt-tab-btn.active {
  background: #1e3a8a;
  color: #ffffff;
  border-color: #1e3a8a;
  box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
}

.hostel-mgmt-tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.hostel-mgmt-tab-btn:not(.active) .hostel-mgmt-tab-badge {
  background: #e2e8f0;
  color: #475569;
}

/* Modals */
.hostel-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 1rem;
}

.hostel-modal-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: hostelModalFadeIn 0.2s ease-out;
}

.hostel-modal-card.large {
  max-width: 950px;
}

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

.hostel-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.hostel-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.hostel-modal-header p {
  margin: 0.25rem 0 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

.hostel-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(90vh - 140px);
}

.hostel-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #f8fafc;
}

.hostel-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .hostel-form-grid {
    grid-template-columns: 1fr;
  }
}

.hostel-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hostel-form-group.col-span-2 {
  grid-column: span 2;
}

.hostel-form-label {
  font-size: 0.775rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hostel-form-input,
.hostel-form-select,
.hostel-form-textarea {
  width: 100%;
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hostel-form-input:focus,
.hostel-form-select:focus,
.hostel-form-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Custom styled badge for OFFICE SUPERVISION */
.office-supervision-badge {
  background: #2563eb;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Apna Campus — Hostel Administrator Executive Console Styles */

.had-container {
  padding: 1.5rem;
  background: #f8fafc;
  min-height: calc(100vh - 80px);
  color: #1e293b;
  font-family: inherit;
}

.had-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.had-title-group h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.had-title-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: #ede9fe;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid #ddd6fe;
}

.had-subtitle {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0;
}

.had-quick-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.had-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease-in-out;
}

.had-btn-primary {
  background: #7c3aed;
  color: #ffffff;
}

.had-btn-primary:hover {
  background: #6d28d9;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.had-btn-secondary {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.had-btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.had-btn-danger {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.had-btn-danger:hover {
  background: #fecaca;
}

/* Filter Bar */
.had-filter-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.had-filter-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: #475569;
}

.had-filter-select, .had-filter-input {
  padding: 0.4rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.825rem;
  color: #0f172a;
  outline: none;
}

.had-filter-select:focus, .had-filter-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

/* Overdue Critical Banner */
.had-alert-banner {
  background: #fff1f2;
  border: 1px solid #ffe4e6;
  border-left: 4px solid #e11d48;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.had-alert-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.had-alert-text strong {
  color: #9f1239;
  font-size: 0.88rem;
  display: block;
}

.had-alert-text span {
  color: #be123c;
  font-size: 0.8rem;
}

/* Top KPI Grid */
.had-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.had-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.had-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.had-kpi-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.had-kpi-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.had-kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.had-kpi-icon.purple { background: #ede9fe; color: #7c3aed; }
.had-kpi-icon.blue { background: #e0f2fe; color: #0284c7; }
.had-kpi-icon.emerald { background: #d1fae5; color: #059669; }
.had-kpi-icon.amber { background: #fef3c7; color: #d97706; }
.had-kpi-icon.rose { background: #ffe4e6; color: #e11d48; }

.had-kpi-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.had-kpi-sub {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Monitoring Sections Grid */
.had-sections-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.had-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.had-col-12 { grid-column: span 12; }
.had-col-8 { grid-column: span 8; }
.had-col-6 { grid-column: span 6; }
.had-col-4 { grid-column: span 4; }

@media (max-width: 1024px) {
  .had-col-8, .had-col-6, .had-col-4 {
    grid-column: span 12;
  }
}

.had-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.had-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.had-card-body {
  padding: 1.25rem;
  flex: 1;
}

/* Data Table Styles */
.had-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
  text-align: left;
}

.had-table th {
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
  font-size: 0.725rem;
  letter-spacing: 0.03em;
}

.had-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.had-table tr:hover {
  background: #f8fafc;
}

/* Badges */
.had-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.725rem;
  font-weight: 600;
}

.had-badge.success { background: #dcfce7; color: #15803d; }
.had-badge.warning { background: #fef3c7; color: #b45309; }
.had-badge.danger { background: #fee2e2; color: #b91c1c; }
.had-badge.info { background: #e0f2fe; color: #0369a1; }
.had-badge.neutral { background: #f1f5f9; color: #475569; }

/* Progress Bar */
.had-progress-bar {
  width: 100%;
  height: 7px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.35rem;
}

.had-progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.had-progress-fill.purple { background: #7c3aed; }
.had-progress-fill.emerald { background: #10b981; }
.had-progress-fill.amber { background: #f59e0b; }
.had-progress-fill.rose { background: #f43f5e; }


/* ==========================================================================
   HOSTEL ADMIN — STRUCTURED HOSTEL CREATION & CONFIGURATION STYLES
   ========================================================================== */

.add-hostel-container-pro {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.add-hostel-header-pro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #22c55e;
}

.add-hostel-header-pro h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-hostel-header-pro p {
  margin: 0.25rem 0 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

/* 4 Top Capacity Summary Cards */
.add-hostel-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.add-hostel-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.add-hostel-summary-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.add-hostel-summary-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.add-hostel-summary-icon.blue { background: #e0f2fe; color: #0284c7; }
.add-hostel-summary-icon.purple { background: #f3e8ff; color: #7c3aed; }
.add-hostel-summary-icon.emerald { background: #dcfce7; color: #16a34a; }
.add-hostel-summary-icon.amber { background: #fef3c7; color: #d97706; }

.add-hostel-summary-body {
  flex: 1;
  min-width: 0;
}

.add-hostel-summary-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.03em;
}

.add-hostel-summary-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.add-hostel-summary-sub {
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3-Column Responsive Grid */
.add-hostel-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .add-hostel-3col-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .add-hostel-3col-grid {
    grid-template-columns: 1fr;
  }
}

.add-hostel-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.section-card-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
  margin-left: auto;
}

/* Form Groups & Inputs */
.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-field-label .required-star {
  color: #ef4444;
  margin-left: 2px;
}

.form-field-input,
.form-field-select,
.form-field-textarea {
  padding: 8px 12px;
  font-size: 0.88rem;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.form-field-input:focus,
.form-field-select:focus,
.form-field-textarea:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.form-field-input.has-error,
.form-field-select.has-error {
  border-color: #ef4444;
  background: #fff5f5;
}

.form-field-input.has-error:focus,
.form-field-select.has-error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-field-error {
  font-size: 0.74rem;
  color: #ef4444;
  font-weight: 500;
}

.form-field-hint {
  font-size: 0.73rem;
  color: #64748b;
}

.calculated-badge-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-weight: 700;
  color: #166534;
  font-size: 0.9rem;
}

.override-toggle-btn {
  background: none;
  border: none;
  color: #0284c7;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.override-warning-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 3px solid #f59e0b;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Form Action Buttons Bar */
.add-hostel-actions-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
}

.btn-create-hostel {
  background: #22c55e;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  flex: 1;
}

.btn-create-hostel:hover:not(:disabled) {
  background: #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.btn-create-hostel:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-reset-hostel {
  background: #ffffff;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-reset-hostel:hover {
  background: #f1f5f9;
  color: #334155;
}

/* Automatic Hostel Structure Preview Section */
.add-hostel-preview-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.preview-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.preview-title-group h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-title-group p {
  margin: 0.2rem 0 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.preview-controls-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-control-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.preview-control-btn:hover {
  background: #e2e8f0;
}

/* Floors Accordion List */
.floors-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.floor-accordion-card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.floor-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: background 0.15s;
}

.floor-accordion-header:hover {
  background: #f1f5f9;
}

.floor-title-side {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
}

.floor-meta-side {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #64748b;
}

.floor-rooms-pill {
  background: #e2e8f0;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.floor-accordion-body {
  padding: 1rem;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

/* Room Preview Grid */
.rooms-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 0.75rem;
}

.room-preview-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.15s ease;
}

.room-preview-box:hover {
  background: #ffffff;
  border-color: #22c55e;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.room-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.room-num-badge {
  font-weight: 700;
  font-size: 0.85rem;
  color: #0f172a;
}

.room-capacity-chip {
  font-size: 0.7rem;
  font-weight: 600;
  color: #0284c7;
  background: #e0f2fe;
  padding: 1px 6px;
  border-radius: 4px;
}

.room-beds-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.bed-tag-pill {
  font-size: 0.7rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 1px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.room-occupancy-bar {
  font-size: 0.7rem;
  color: #16a34a;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Floor Structure Inspection Modal */
.structure-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.structure-modal-dialog {
  background: #ffffff;
  border-radius: 10px;
  width: 100%;
  max-width: 820px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.structure-modal-header {
  padding: 1rem 1.25rem;
  background: #0f2b48;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.structure-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.structure-modal-footer {
  padding: 0.85rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
}

/* ==============================================================
   HostelIndentSection.css
   Modern, Executive UI for Hostel Inventory & Requisition Management
   Autonomous Higher Education Authority · NAAC A++ Standard
   ============================================================== */

.hostel-indent-module-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0.5rem 0.25rem 3rem;
  color: #0f172a;
  font-family: inherit;
}

/* Toast */
.indent-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: indentToastSlide 0.25s ease-out;
}

@keyframes indentToastSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   1. HERO HEADER BANNER
   -------------------------------------------------------------------------- */
.indent-hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: 0 10px 28px -5px rgba(30, 58, 138, 0.35);
  position: relative;
  overflow: hidden;
}

.indent-hero-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.indent-hero-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  z-index: 1;
}

.indent-hero-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.indent-hero-title-group h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.indent-hero-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.4);
}

.indent-hero-subtitle {
  margin: 0.35rem 0 0 0;
  font-size: 0.88rem;
  color: #cbd5e1;
  max-width: 600px;
  line-height: 1.45;
}

/* Hero Section Nav Pills */
.indent-hero-nav-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.45);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1;
}

.indent-hero-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.indent-hero-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.indent-hero-tab-btn.active {
  background: #ffffff;
  color: #1e3a8a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.indent-hero-tab-count {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: 9999px;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   2. EXECUTIVE KPI CARDS GRID (5-CARDS)
   -------------------------------------------------------------------------- */
.indent-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.1rem;
}

@media (max-width: 1200px) {
  .indent-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .indent-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.indent-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.indent-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.indent-kpi-card.active-filter {
  border: 2px solid #2563eb;
  background: #f8fafc;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.indent-kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.indent-kpi-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.indent-kpi-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.indent-kpi-icon-wrap.blue { background: #eff6ff; color: #2563eb; }
.indent-kpi-icon-wrap.amber { background: #fffbeb; color: #d97706; }
.indent-kpi-icon-wrap.emerald { background: #ecfdf5; color: #059669; }
.indent-kpi-icon-wrap.sky { background: #f0f9ff; color: #0284c7; }
.indent-kpi-icon-wrap.purple { background: #faf5ff; color: #7c3aed; }

.indent-kpi-value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.indent-kpi-value.warning { color: #d97706; }
.indent-kpi-value.success { color: #059669; }
.indent-kpi-value.sky { color: #0284c7; }
.indent-kpi-value.purple { color: #6d28d9; }

.indent-pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
  animation: indentPulse 1.8s infinite;
}

@keyframes indentPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.indent-kpi-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.65rem;
  font-size: 0.74rem;
}

.indent-kpi-badge {
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.7rem;
}

.indent-kpi-badge.neutral { background: #f1f5f9; color: #475569; }
.indent-kpi-badge.amber { background: #fef3c7; color: #92400e; }
.indent-kpi-badge.emerald { background: #dcfce7; color: #166534; }
.indent-kpi-badge.sky { background: #e0f2fe; color: #0369a1; }
.indent-kpi-badge.purple { background: #f3e8ff; color: #6b21a8; }

.indent-kpi-subtext {
  color: #94a3b8;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   3. WARNING / PENDING ALERT BANNER
   -------------------------------------------------------------------------- */
.indent-alert-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #fef2f2 100%);
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.05);
}

.indent-alert-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.indent-alert-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffedd5;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.indent-alert-text {
  font-size: 0.88rem;
  color: #9a3412;
  font-weight: 600;
  line-height: 1.4;
}

.indent-alert-text strong {
  color: #7c2d12;
}

.indent-alert-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.indent-alert-btn-filter {
  background: #ea580c;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.indent-alert-btn-filter:hover {
  background: #c2410c;
}

.indent-alert-close-btn {
  background: transparent;
  border: none;
  color: #9a3412;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.indent-alert-close-btn:hover {
  background: rgba(154, 52, 18, 0.1);
}

/* --------------------------------------------------------------------------
   4. TOOLBAR & CONTROLS CARD
   -------------------------------------------------------------------------- */
.indent-toolbar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.indent-toolbar-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.indent-search-box-modern {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 14px;
  width: 420px;
  max-width: 100%;
  transition: all 0.2s ease;
}

.indent-search-box-modern:focus-within {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.indent-search-box-modern .search-icon {
  color: #94a3b8;
  flex-shrink: 0;
}

.indent-search-box-modern input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  width: 100%;
  color: #0f172a;
}

.search-clear-btn {
  background: #e2e8f0;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  padding: 0;
}

.search-clear-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

/* Action Buttons Group */
.indent-action-buttons-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.indent-btn-action-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #059669;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.indent-btn-action-primary:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.indent-btn-action-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 7px 15px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.indent-btn-action-outline.red {
  color: #dc2626;
  border-color: #fca5a5;
  background: #fef2f2;
}

.indent-btn-action-outline.red:hover {
  background: #fee2e2;
  border-color: #f87171;
}

.indent-btn-action-outline.blue {
  color: #0284c7;
  border-color: #bae6fd;
  background: #f0f9ff;
}

.indent-btn-action-outline.blue:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

.indent-btn-action-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: #64748b;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.indent-btn-action-ghost:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Toolbar Bottom Row: Filter Pills & Selects */
.indent-toolbar-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
}

.indent-status-pills-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.filter-pill-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  margin-right: 4px;
}

.indent-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.indent-status-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.indent-status-pill.active {
  background: #1e3a8a;
  color: #ffffff;
  border-color: #1e3a8a;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.2);
}

.indent-status-pill.has-alert .pill-badge {
  background: #ef4444;
  color: #ffffff;
}

.pill-badge {
  background: #e2e8f0;
  color: #334155;
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.indent-status-pill.active .pill-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.indent-select-filters-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.indent-select-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px 10px;
}

.indent-select-filter .select-icon {
  color: #94a3b8;
}

.indent-select-filter select {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.8rem;
  color: #334155;
  font-weight: 600;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. MODERN ERP TABLE CARD
   -------------------------------------------------------------------------- */
.indent-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.indent-table-card-header {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.indent-table-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.indent-table-title h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.indent-count-pill {
  background: #eff6ff;
  color: #2563eb;
  padding: 2px 9px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid #bfdbfe;
}

.indent-table-subtitle {
  margin: 0.25rem 0 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

.indent-clear-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.indent-clear-filters-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.indent-table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
}

.indent-modern-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.indent-modern-table thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.indent-modern-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.indent-modern-table tbody tr:hover {
  background: #f8fafc;
}

.indent-modern-table tbody tr.row-pending {
  background: #fffdfa;
}

.indent-modern-table tbody tr.row-pending:hover {
  background: #fff7ed;
}

.indent-modern-table tbody td {
  padding: 12px 14px;
  color: #1e293b;
  vertical-align: middle;
}

/* Expand toggle button in column 1 */
.indent-expand-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.indent-expand-btn:hover,
.indent-expand-btn.expanded {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* Monospace Requisition ID Badge */
.indent-id-badge {
  font-family: monospace;
  font-weight: 800;
  color: #1e3a8a;
  background: #eff6ff;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-block;
}

.indent-id-badge:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  text-decoration: underline;
}

/* Material Cell Styling */
.indent-material-name {
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.custom-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  margin-top: 4px;
}

.indent-remarks-note {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 2px;
  font-style: italic;
}

/* Code & Unit badges */
.indent-code-pill {
  font-family: monospace;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.76rem;
  border: 1px solid #e2e8f0;
}

.indent-qty-pill {
  font-weight: 700;
  color: #0f172a;
}

.indent-cost-text {
  font-weight: 800;
  color: #0f172a;
  font-size: 0.86rem;
}

/* Purpose & Location badge */
.purpose-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  color: #334155;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Date Pill */
.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

/* Raised By cell */
.indent-raised-by-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.indent-mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.indent-raised-by-meta strong {
  display: block;
  font-size: 0.8rem;
  color: #0f172a;
}

.indent-raised-by-meta small {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
}

/* Current Level Pill */
.level-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.level-pill.store-dispatched {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.level-pill.store-issued {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.level-pill.pending-review {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.level-pill.rejected {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Table Icon checkmarks */
.icon-check-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.icon-pending-clock {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fffbeb;
  color: #d97706;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.icon-rejected-cross {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fef2f2;
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Admin Action Buttons */
.indent-action-cell-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: center;
}

.btn-action-modern {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action-modern.approve {
  background: #059669;
  color: #ffffff;
}

.btn-action-modern.approve:hover {
  background: #047857;
}

.btn-action-modern.reject {
  background: #dc2626;
  color: #ffffff;
}

.btn-action-modern.reject:hover {
  background: #b91c1c;
}

.btn-action-modern.issue {
  background: #0284c7;
  color: #ffffff;
}

.btn-action-modern.issue:hover {
  background: #0369a1;
}

.btn-action-modern.view {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.btn-action-modern.view:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.indent-completed-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   6. EXPANDED ROW DOSSIER PREVIEW
   -------------------------------------------------------------------------- */
.indent-expanded-dossier-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 0.5rem 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.indent-dossier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .indent-dossier-grid {
    grid-template-columns: 1fr;
  }
}

.indent-dossier-col h5 {
  margin: 0 0 0.5rem 0;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.indent-dossier-text-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: #1e293b;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   7. SECTION 2: RECOMMENDATIONS & ASSETS
   -------------------------------------------------------------------------- */
.recommendation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .recommendation-grid {
    grid-template-columns: 1fr;
  }
}

.rec-summary-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.rec-summary-card h4 {
  margin: 0 0 1rem 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rec-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
  color: #334155;
}

.rec-metric-row:last-child {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   8. MODALS STYLING
   -------------------------------------------------------------------------- */
.indent-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1.5rem;
}

.indent-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: indentPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #e2e8f0;
}

@keyframes indentPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.indent-modal-header {
  padding: 1.15rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.indent-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.indent-modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
}

.indent-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.indent-modal-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.iform-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.iform-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

.iform-group label.required::after {
  content: ' *';
  color: #dc2626;
}

.iform-group input,
.iform-group select,
.iform-group textarea,
.iform-select {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.85rem;
  background: #ffffff;
  outline: none;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.iform-group input:focus,
.iform-group select:focus,
.iform-group textarea:focus,
.iform-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.custom-input-highlight {
  background: #f0f9ff;
  border: 1px dashed #0284c7;
  border-radius: 6px;
  padding: 10px;
}

.iform-row {
  display: grid;
  gap: 1rem;
}

.iform-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.custom-input-highlight {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 10px 12px;
  border-radius: 10px;
}

.indent-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  margin-top: 0.5rem;
}

.btn-cancel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-cancel:hover {
  background: #f1f5f9;
}

.btn-submit-ind {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #059669;
  color: #ffffff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.btn-submit-ind:hover {
  background: #047857;
}

/* ==============================================================
   Modern Data Table Styles for Warden & Admin (Unified Requisitions)
   ============================================================== */
.indent-table-container-modern {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
  overflow-x: auto;
}

.indent-data-table-modern {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.indent-data-table-modern thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.indent-data-table-modern tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.indent-data-table-modern tbody tr:hover {
  background: #f8fafc;
}

.indent-data-table-modern tbody td {
  padding: 12px 14px;
  vertical-align: middle;
}

.indent-hero-badge.warden {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.indent-hero-badge.admin {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
/* ==========================================================================
   WARDEN FURNITURE & INVENTORY REQUISITION MODULE
   Tailored exclusively for College Hostel Wardens
   ========================================================================== */

.warden-requisition-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0.5rem 0.25rem 3rem;
  color: #1e293b;
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   A. PAGE HEADER
   -------------------------------------------------------------------------- */
.warden-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}

.warden-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.warden-header-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.warden-header-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.warden-page-header h1 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0;
}

.warden-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.warden-page-subtitle {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0;
  max-width: 680px;
  line-height: 1.5;
}

.warden-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.warden-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.warden-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.32);
}

.warden-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.warden-btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.warden-badge-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

/* --------------------------------------------------------------------------
   B. SUMMARY CARDS
   -------------------------------------------------------------------------- */
.warden-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

@media (max-width: 1024px) {
  .warden-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .warden-summary-grid {
    grid-template-columns: 1fr;
  }
}

.warden-kpi-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 2px 8px -1px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.warden-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -3px rgba(15, 23, 42, 0.08);
}

.warden-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.warden-kpi-card.kpi-total::before { background: #3b82f6; }
.warden-kpi-card.kpi-pending::before { background: #f59e0b; }
.warden-kpi-card.kpi-approved::before { background: #10b981; }
.warden-kpi-card.kpi-completed::before { background: #8b5cf6; }

.warden-kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-total .warden-kpi-icon { background: #eff6ff; color: #2563eb; }
.kpi-pending .warden-kpi-icon { background: #fffbeb; color: #d97706; }
.kpi-approved .warden-kpi-icon { background: #ecfdf5; color: #059669; }
.kpi-completed .warden-kpi-icon { background: #f5f3ff; color: #7c3aed; }

.warden-kpi-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.warden-kpi-title {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}

.warden-kpi-number {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}

.warden-kpi-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   C. MAIN NAVIGATION TABS
   -------------------------------------------------------------------------- */
.warden-tab-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow-x: auto;
}

.warden-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.25rem;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.warden-tab-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}

.warden-tab-btn.active {
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.warden-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #fef3c7;
  color: #b45309;
}

/* --------------------------------------------------------------------------
   D. TAB 1: OVERVIEW
   -------------------------------------------------------------------------- */
.warden-overview-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.warden-welcome-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 60%, #2563eb 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: 0 8px 24px -4px rgba(30, 58, 138, 0.25);
}

.warden-welcome-text h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 0.4rem 0;
}

.warden-welcome-text p {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin: 0;
  max-width: 650px;
  line-height: 1.5;
}

.warden-assigned-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
}

.warden-assigned-box .hostel-badge-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #93c5fd;
  font-weight: 700;
}

.warden-assigned-box .hostel-badge-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.warden-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.warden-section-title-row h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.warden-quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .warden-quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .warden-quick-actions-grid {
    grid-template-columns: 1fr;
  }
}

.warden-action-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.warden-action-tile:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  box-shadow: 0 6px 16px -2px rgba(59, 130, 246, 0.12);
}

.warden-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warden-action-tile.tile-urgent .warden-tile-icon { background: #fee2e2; color: #dc2626; }
.warden-action-tile.tile-furniture .warden-tile-icon { background: #fef3c7; color: #d97706; }
.warden-action-tile.tile-electrical .warden-tile-icon { background: #eff6ff; color: #2563eb; }
.warden-action-tile.tile-plumbing .warden-tile-icon { background: #e0f2fe; color: #0284c7; }

.warden-tile-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.warden-tile-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

.warden-overview-cols {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 992px) {
  .warden-overview-cols {
    grid-template-columns: 1fr;
  }
}

.warden-recent-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.warden-info-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.warden-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.warden-info-item svg {
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 2px;
}

.warden-info-item h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 0.15rem 0;
  color: #0f172a;
}

.warden-info-item p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   E. TAB 2: CREATE REQUEST FORM
   -------------------------------------------------------------------------- */
.warden-form-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
}

.warden-form-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.warden-form-section:last-of-type {
  border-bottom: none;
}

.warden-form-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.warden-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
}

.warden-form-section-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.warden-form-section-header p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
}

.warden-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.warden-form-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .warden-form-grid,
  .warden-form-grid.grid-3 {
    grid-template-columns: 1fr;
  }
}

.warden-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.warden-form-field.full-width {
  grid-column: 1 / -1;
}

.warden-form-field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.warden-req-star {
  color: #ef4444;
  font-weight: 700;
}

.warden-input,
.warden-select,
.warden-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  font-size: 0.92rem;
  color: #0f172a;
  background: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.warden-input:focus,
.warden-select:focus,
.warden-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.warden-input.has-error,
.warden-select.has-error,
.warden-textarea.has-error {
  border-color: #ef4444;
  background: #fef2f2;
}

.warden-field-error {
  font-size: 0.78rem;
  color: #dc2626;
  font-weight: 500;
}

.warden-field-hint {
  font-size: 0.76rem;
  color: #64748b;
}

.warden-priority-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

@media (max-width: 500px) {
  .warden-priority-pills {
    grid-template-columns: repeat(2, 1fr);
  }
}

.warden-priority-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.5rem;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.warden-priority-pill:hover {
  background: #f8fafc;
}

.warden-priority-pill.selected.p-low {
  background: #f1f5f9;
  border-color: #64748b;
  color: #1e293b;
}

.warden-priority-pill.selected.p-medium {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

.warden-priority-pill.selected.p-high {
  background: #fff7ed;
  border-color: #f97316;
  color: #c2410c;
}

.warden-priority-pill.selected.p-urgent {
  background: #fef2f2;
  border-color: #ef4444;
  color: #b91c1c;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.warden-urgent-alert-notice {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #991b1b;
  font-weight: 500;
}

/* SECTION B: ADAPTIVE PROBLEM DETAILS */
.warden-adaptive-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.warden-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}

.warden-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  cursor: pointer;
}

/* SECTION C: ATTACHMENTS */
.warden-upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.warden-upload-dropzone:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.warden-upload-dropzone svg {
  color: #2563eb;
}

.warden-upload-dropzone span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.warden-upload-dropzone small {
  font-size: 0.76rem;
  color: #94a3b8;
}

.warden-attachment-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.warden-attachment-tile {
  position: relative;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 10px;
  padding: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.warden-attachment-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  -o-object-fit: cover;
     object-fit: cover;
  background: #f1f5f9;
}

.warden-attachment-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.warden-attachment-meta span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.warden-attachment-meta small {
  font-size: 0.7rem;
  color: #64748b;
}

.warden-remove-attach-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: #ef4444;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SECTION D: FORM ACTIONS */
.warden-form-actions-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1.5rem;
  flex-wrap: wrap;
}

.warden-btn-draft {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.warden-btn-draft:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.warden-btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffffff;
  color: #64748b;
  border: 1px solid #e2e8f0;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.warden-btn-reset:hover {
  background: #f1f5f9;
  color: #ef4444;
}

.warden-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.45rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.warden-btn-submit:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.38);
}

/* --------------------------------------------------------------------------
   F. TAB 3: MY REQUESTS & TRACKING
   -------------------------------------------------------------------------- */
.warden-tracking-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.warden-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.warden-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.warden-search-box svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.warden-search-input {
  width: 100%;
  padding: 0.6rem 0.85rem 0.6rem 2.4rem;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  font-size: 0.88rem;
  box-sizing: border-box;
}

.warden-search-input:focus {
  outline: none;
  border-color: #2563eb;
}

.warden-filter-selects {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.warden-filter-select {
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.84rem;
  color: #334155;
  background: #ffffff;
}

.warden-view-toggle {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
}

.warden-toggle-btn {
  padding: 0.55rem 0.75rem;
  background: #ffffff;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warden-toggle-btn.active {
  background: #eff6ff;
  color: #2563eb;
}

/* REQUESTS CARD GRID VIEW */
.warden-requests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 500px) {
  .warden-requests-grid {
    grid-template-columns: 1fr;
  }
}

.warden-req-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.warden-req-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 18px -2px rgba(15, 23, 42, 0.08);
}

.warden-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.warden-card-ref {
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
}

.warden-card-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.warden-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.warden-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.warden-card-prod {
  font-size: 0.84rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.warden-card-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
}

.warden-card-kv {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.warden-card-kv small {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.warden-card-kv span {
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.warden-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.warden-card-time {
  font-size: 0.75rem;
  color: #94a3b8;
}

.warden-card-btn-view {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.warden-card-btn-view:hover {
  background: #2563eb;
  color: #ffffff;
}

/* REQUESTS TABLE VIEW */
.warden-table-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow-x: auto;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.warden-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}

.warden-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.warden-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.warden-table tr:hover td {
  background: #f8fafc;
}

/* STATUS BADGES */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.status-badge.status-pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.status-badge.status-approved {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.status-badge.status-rejected {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.status-badge.status-in-progress {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.status-badge.status-issued {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.status-badge.status-completed {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.status-badge.status-draft {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* PRIORITY BADGES */
.priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.priority-badge.p-low { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.priority-badge.p-medium { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.priority-badge.p-high { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.priority-badge.p-urgent { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* --------------------------------------------------------------------------
   G. TAB 4: RECOMMENDATIONS
   -------------------------------------------------------------------------- */
.warden-recommendations-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.warden-recom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.warden-recom-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.warden-recom-card:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.1);
}

.warden-recom-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.warden-recom-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.warden-recom-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.warden-recom-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #2563eb;
  letter-spacing: 0.04em;
}

.warden-recom-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.warden-recom-desc {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
}

.warden-recom-cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  background: #f8fafc;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.warden-recom-cost-row span {
  color: #64748b;
}

.warden-recom-cost-row strong {
  color: #0f172a;
}

.warden-btn-use-template {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.warden-btn-use-template:hover {
  background: #1d4ed8;
}

/* --------------------------------------------------------------------------
   H. CONFIRMATION DIALOG MODAL
   -------------------------------------------------------------------------- */
.warden-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: wardenFadeIn 0.2s ease-out;
}

.warden-modal-dialog {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  animation: wardenScaleUp 0.2s ease-out;
}

.warden-modal-dialog.large {
  max-width: 820px;
}

.warden-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.warden-modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.warden-modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warden-modal-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.warden-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.warden-confirm-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.warden-confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 0.45rem;
}

.warden-confirm-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.warden-confirm-row span {
  color: #64748b;
}

.warden-confirm-row strong {
  color: #0f172a;
}

.warden-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  border-radius: 0 0 18px 18px;
}

/* --------------------------------------------------------------------------
   I. 7-STAGE VISUAL APPROVAL TIMELINE
   -------------------------------------------------------------------------- */
.warden-timeline-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 1.5rem 0 2rem;
  padding: 0 0.5rem;
}

.warden-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.warden-timeline-circle {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #64748b;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #cbd5e1;
  transition: all 0.3s ease;
}

.warden-timeline-step.completed .warden-timeline-circle {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 0 0 2px #10b981;
}

.warden-timeline-step.current .warden-timeline-circle {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
  animation: wardenPulse 2s infinite;
}

.warden-timeline-step.rejected .warden-timeline-circle {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 0 2px #ef4444;
}

.warden-timeline-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 0.45rem;
  text-align: center;
  max-width: 90px;
  line-height: 1.25;
}

.warden-timeline-step.completed .warden-timeline-label {
  color: #047857;
  font-weight: 700;
}

.warden-timeline-step.current .warden-timeline-label {
  color: #1d4ed8;
  font-weight: 700;
}

.warden-timeline-step.rejected .warden-timeline-label {
  color: #b91c1c;
  font-weight: 700;
}

.warden-timeline-line {
  position: absolute;
  top: 16px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.warden-timeline-line-progress {
  height: 100%;
  background: #10b981;
  transition: width 0.4s ease;
}

@keyframes wardenFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wardenScaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes wardenPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* PRINT MEDIA */
@media print {
  .warden-page-header,
  .warden-tab-nav,
  .warden-modal-footer,
  .warden-modal-close-btn {
    display: none !important;
  }
  .warden-modal-dialog {
    box-shadow: none !important;
    max-width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   PRODUCT / MATERIAL NAME: DROPDOWN & CUSTOM MANUAL ENTRY
   -------------------------------------------------------------------------- */
.product-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.product-mode-toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #f1f5f9;
  padding: 2px 3px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.product-mode-pill {
  border: none;
  background: transparent;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.product-mode-pill:hover {
  color: #0f172a;
}

.product-mode-pill.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.warden-custom-product-container {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.custom-input-with-action {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.custom-input-with-action .warden-input {
  padding-right: 140px;
}

.switch-back-catalog-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.switch-back-catalog-btn:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.warden-custom-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  width: -moz-fit-content;
  width: fit-content;
}

/* ==========================================================================
   STUDENT REGISTRATION WIZARD STYLES (APNA CAMPUS ENTERPRISE ERP)
   ========================================================================== */

.reg-wizard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeInWizard 0.25s ease-out;
}

@keyframes fadeInWizard {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reg-wizard-container {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 1100px;
  height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border: 1px solid #cbd5e1;
  animation: scaleInWizard 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleInWizard {
  from { transform: scale(0.97); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Wizard Header */
.reg-wizard-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.header-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wizard-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.wizard-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0;
}

.badge-official {
  font-size: 0.68rem;
  font-weight: 800;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  text-transform: uppercase;
}

.wizard-subtitle {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0.2rem 0 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-autofill-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-autofill-demo:hover {
  background: #dcfce7;
  transform: translateY(-1px);
}

.btn-save-draft {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-save-draft:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-wizard-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.btn-wizard-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* Stepper Progress Bar (Section 9) */
.reg-stepper-bar {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.5rem 1rem;
  overflow-x: auto;
  gap: 0.35rem;
}

.stepper-step-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.stepper-step-btn:hover {
  background: #f1f5f9;
}

.stepper-step-btn.active {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.stepper-step-btn.completed .step-indicator {
  background: #10b981;
  color: #ffffff;
}

.step-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  transition: all 0.2s;
}

.stepper-step-btn.active .step-indicator {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.4);
}

.step-label-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.step-number {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.step-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

.stepper-step-btn.active .step-name {
  color: #0284c7;
}

/* Wizard Body */
.reg-wizard-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem 2rem;
  background: #ffffff;
}

.wizard-step-pane {
  animation: fadeInPane 0.25s ease-out;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title-strip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 1.25rem;
}

.section-title-strip h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

/* Grid Layouts */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Form Groups & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}

.req {
  color: #ef4444;
  font-weight: 800;
}

.reg-input {
  padding: 0.6rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.82rem;
  outline: none;
  background: #ffffff;
  transition: all 0.2s;
}

.reg-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.reg-input.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.reg-input-sm {
  padding: 0.4rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.78rem;
  outline: none;
  background: #ffffff;
}

.err-msg {
  font-size: 0.7rem;
  color: #dc2626;
  font-weight: 600;
}

/* Interactive Table (Step 3 & 7) */
.reg-table-card {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.reg-interactive-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.reg-interactive-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #cbd5e1;
}

.reg-interactive-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.table-input {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.8rem;
  outline: none;
  background: #ffffff;
}

.table-input:focus {
  border-color: #0284c7;
  background: #f0fdfa;
}

.table-select {
  padding: 0.35rem 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  background: #ffffff;
}

.btn-add-table-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-table-row:hover {
  background: #dbeafe;
}

/* Guardian Card (Step 4) */
.guardian-card-box {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.guardian-card-header {
  background: #f8fafc;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guardian-index-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0284c7;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.emergency-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

/* Address Blocks (Step 5) */
.address-section-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.address-subhead {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #cbd5e1;
}

.same-address-checkbox-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
}

/* Document category pills (Step 7) */
.category-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #dbeafe;
}

.status-pill.verified {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
}

/* Review Cards (Step 8) */
.review-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.review-card-header h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.review-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

/* Wizard Footer Controls */
.reg-wizard-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-wizard-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-wizard-nav.prev {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.btn-wizard-nav.prev:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-wizard-nav.next {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-wizard-nav.next:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.btn-wizard-nav.submit {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.btn-action-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-action-icon:hover {
  background: #fee2e2;
}

.btn-wizard-nav.submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: translateY(-1px);
}

.btn-wizard-nav:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Toast */
.reg-wizard-toast {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  animation: slideDownToast 0.25s ease-out;
}

@keyframes slideDownToast {
  from { top: 0; opacity: 0; }
  to { top: 1rem; opacity: 1; }
}
/* ==========================================================================
   APNA CAMPUS - TAKE ATTENDANCE MODULE STYLING
   Comprehensive, responsive, high-fidelity UI for Faculty, HOD & Lab Staff
   ========================================================================== */

.take-attendance-wrapper {
  animation: fadeIn 0.3s ease-out;
  padding: 0;
  color: #1e293b;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.take-attendance-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.take-attendance-title-area h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.take-attendance-title-area h2 svg {
  color: #2563eb;
}

.take-attendance-title-area p {
  color: #64748b;
  font-size: 0.92rem;
  margin: 0;
}

.take-attendance-role-tag {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   Notification / Alert Banners
   -------------------------------------------------------------------------- */
.attendance-alert-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  animation: slideDown 0.25s ease-out;
}

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

.attendance-alert-banner.success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.attendance-alert-banner.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.attendance-alert-banner.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* --------------------------------------------------------------------------
   Card Container
   -------------------------------------------------------------------------- */
.attendance-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 15px -5px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.attendance-card-header {
  padding: 16px 22px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.attendance-card-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.attendance-card-header p {
  margin: 2px 0 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.attendance-card-body {
  padding: 22px;
}

/* --------------------------------------------------------------------------
   Class Details Form Grid
   -------------------------------------------------------------------------- */
.class-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 18px;
  margin-bottom: 16px;
}

@media (min-width: 1200px) {
  .class-details-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .class-details-grid .form-group-subject {
    grid-column: span 2 !important;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-group label .required-star {
  color: #ef4444;
}

.form-control-select,
.form-control-input,
.form-control-time-btn {
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}

.form-control-select:focus,
.form-control-input:focus,
.form-control-time-btn:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-control-select:disabled,
.form-control-input:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  border-color: #e2e8f0;
}

.form-control-time-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #ffffff;
  text-align: left;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.form-control-time-btn:hover:not(:disabled) {
  border-color: #93c5fd;
  background: #f8fafc;
}

.form-control-time-btn .time-val {
  font-weight: 700;
  color: #1e293b;
}

.form-control-time-btn .time-placeholder {
  color: #64748b;
  font-weight: 500;
}

.form-control-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
  font-family: inherit;
  resize: vertical;
  min-height: 72px;
}

.form-control-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* --------------------------------------------------------------------------
   Live Attendance Summary Cards
   -------------------------------------------------------------------------- */
.attendance-summary-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .attendance-summary-deck {
    grid-template-columns: 1fr;
  }
}

.summary-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 20px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.06);
}

.summary-card.total {
  border-left: 5px solid #3b82f6;
}

.summary-card.present {
  border-left: 5px solid #16a34a;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.summary-card.absent {
  border-left: 5px solid #dc2626;
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.summary-card-copy span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 4px;
}

.summary-card-copy strong {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.summary-card-copy small {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 4px;
  font-weight: 600;
}

.summary-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.summary-card.total .summary-card-icon {
  background: #eff6ff;
  color: #2563eb;
}

.summary-card.present .summary-card-icon {
  background: #dcfce7;
  color: #16a34a;
}

.summary-card.absent .summary-card-icon {
  background: #fee2e2;
  color: #dc2626;
}

/* --------------------------------------------------------------------------
   Table Controls / Toolbar
   -------------------------------------------------------------------------- */
.attendance-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.attendance-quick-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-mark-all-present {
  background: #16a34a;
  color: #ffffff;
  border: 1px solid #15803d;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(22, 163, 74, 0.2);
}

.btn-mark-all-present:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.btn-clear-all {
  background: #ffffff;
  color: #475569;
  border: 1.5px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-clear-all:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.attendance-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 6px 12px;
  width: 240px;
}

.attendance-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: #0f172a;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Student Attendance Table
   -------------------------------------------------------------------------- */
.attendance-table-container {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
}

.attendance-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.88rem;
}

.attendance-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1.5px solid #e2e8f0;
  white-space: nowrap;
}

.attendance-table th.col-present {
  width: 120px;
  text-align: center;
}

.attendance-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.attendance-table tbody tr {
  transition: background-color 0.15s;
  cursor: pointer;
}

.attendance-table tbody tr:last-child td {
  border-bottom: none;
}

.attendance-table tbody tr:hover {
  background-color: #f8fafc;
}

.attendance-table tbody tr.row-present {
  background-color: #f0fdf4;
}

.attendance-table tbody tr.row-present:hover {
  background-color: #dcfce7;
}

/* Custom Square Checkbox */
.att-checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.att-square-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.att-square-checkbox:hover {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.att-square-checkbox.checked {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.3);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-tag.present {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.status-tag.absent {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* Empty State */
.attendance-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #64748b;
}

.attendance-empty-state svg {
  color: #94a3b8;
  margin-bottom: 12px;
}

.attendance-empty-state h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #334155;
  margin: 0 0 6px 0;
}

.attendance-empty-state p {
  font-size: 0.88rem;
  margin: 0;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Action Footer
   -------------------------------------------------------------------------- */
.attendance-submit-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.btn-submit-attendance {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s;
}

.btn-submit-attendance:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

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

/* --------------------------------------------------------------------------
   Final Attendance Summary Panel
   -------------------------------------------------------------------------- */
.final-summary-card {
  background: #ffffff;
  border: 1.5px solid #86efac;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 25px -5px rgba(22, 163, 74, 0.1);
  margin-bottom: 24px;
}

.final-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.final-summary-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.final-summary-badge {
  background: #dcfce7;
  color: #15803d;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.final-summary-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.final-summary-header p {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0;
}

.final-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.final-meta-item span {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.final-meta-item strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.final-stats-bar {
  margin-bottom: 22px;
}

.final-stats-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.final-progress-track {
  height: 14px;
  background: #fee2e2;
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
}

.final-progress-present {
  background: #16a34a;
  height: 100%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.final-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.btn-update-attendance {
  background: #f59e0b;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-update-attendance:hover {
  background: #d97706;
}

.btn-view-attendance {
  background: #ffffff;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-view-attendance:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-new-attendance {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-new-attendance:hover {
  background: #1d4ed8;
}

/* --------------------------------------------------------------------------
   Confirmation Modal Backdrop & Card
   -------------------------------------------------------------------------- */
.attendance-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.attendance-modal-card {
  background: #ffffff;
  border-radius: 18px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: modalScaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.attendance-modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.attendance-modal-header h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.attendance-modal-close {
  background: transparent;
  border: none;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.attendance-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.attendance-modal-body {
  padding: 22px;
}

.attendance-modal-footer {
  padding: 16px 22px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   INTERACTIVE CLOCK-STYLE TIME PICKER
   Real circular clock dial with hours/minutes, radial markers, hand, AM/PM
   -------------------------------------------------------------------------- */
.clock-picker-modal {
  max-width: 380px !important;
  border-radius: 20px !important;
}

.clock-digital-readout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px;
  background: #0f172a;
  border-radius: 14px;
  color: #ffffff;
}

.clock-unit-btn {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: 'Outfit', 'Inter', monospace;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.clock-unit-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.clock-unit-btn.active {
  color: #ffffff;
  background: #2563eb;
  border-color: #3b82f6;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.5);
}

.clock-colon {
  font-size: 2.2rem;
  font-weight: 800;
  color: #94a3b8;
  line-height: 1;
}

.clock-ampm-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: 6px;
}

.clock-ampm-btn {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s;
}

.clock-ampm-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #3b82f6;
}

/* Circular Clock Face */
.clock-dial-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.clock-face {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid #cbd5e1;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  cursor: crosshair;
}

.clock-center-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563eb;
  transform: translate(-50%, -50%);
  z-index: 10;
  box-shadow: 0 0 4px rgba(37, 99, 235, 0.6);
}

.clock-hand-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  background: #2563eb;
  transform-origin: top center;
  z-index: 5;
}

.clock-hand-knob {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45);
  transform: translate(-50%, -50%);
  z-index: 6;
  pointer-events: none;
}

.clock-number-item {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 8;
  transition: color 0.15s;
}

.clock-number-item.selected {
  color: #ffffff;
  font-weight: 800;
}

.clock-quick-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.clock-chip {
  padding: 4px 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.clock-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.clock-chip.active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #2563eb;
}

/* ==========================================================================
   ACADEMIC ACTIVITY TYPE SELECTION & SPECIAL ACTIVITY STYLES
   ========================================================================== */

/* Top Navigation Tabs (Take Attendance Register vs Activity History) */
.attendance-module-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 12px;
  width: -moz-fit-content;
  width: fit-content;
  border: 1px solid #e2e8f0;
}

.module-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.module-tab-btn:hover {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.6);
}

.module-tab-btn.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.module-tab-badge {
  background: #eff6ff;
  color: #2563eb;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 800;
  border: 1px solid #bfdbfe;
}

/* Academic Activity Section Container */
.activity-selection-container {
  margin-bottom: 18px;
}

.activity-selection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.activity-selection-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

.activity-selection-header-tag {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* Activity Type Cards Grid */
.activity-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.activity-type-card {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-align: left;
}

.activity-type-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.activity-type-card.selected {
  border-width: 2px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.activity-type-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.activity-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.activity-type-card:hover .activity-icon-wrapper {
  transform: scale(1.05);
}

.activity-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.activity-type-card.selected .activity-radio-dot {
  border-color: currentColor;
}

.activity-radio-dot-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.activity-type-card-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 3px;
  line-height: 1.25;
}

.activity-type-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.activity-type-card-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
}

/* Compact Activity Dropdown for Mobile / Alternate control */
.activity-dropdown-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Special Activity Details Specification Panel */
.special-activity-details-panel {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  animation: slideDown 0.25s ease-out;
  border: 1.5px solid;
  transition: all 0.2s ease;
}

.special-activity-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.special-activity-details-header h4 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.special-activity-hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

/* Preset Quick-Fill Chips */
.activity-presets-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.activity-preset-chip {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.activity-preset-chip:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

/* Universal Activity Badge Pill */
.activity-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid;
  white-space: nowrap;
}

.activity-badge-pill.regular {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.activity-badge-pill.seminar {
  background: #f5f3ff;
  color: #7c3aed;
  border-color: #ddd6fe;
}

.activity-badge-pill.internal {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.activity-badge-pill.semester {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.activity-badge-pill.other {
  background: #ecfeff;
  color: #0e7490;
  border-color: #a5f3fc;
}

/* Post-Submission Activity Highlight Box */
.final-activity-callout {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid;
}

.final-activity-callout-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.final-activity-callout-content h4 {
  margin: 0 0 4px 0;
  font-size: 0.92rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.final-activity-callout-content p {
  margin: 0;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Past Sessions & Academic Activity Log View
   -------------------------------------------------------------------------- */
.history-filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.history-filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.history-filter-chip {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.history-filter-chip:hover {
  border-color: #cbd5e1;
  color: #1e293b;
  background: #f8fafc;
}

.history-filter-chip.active {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.history-filter-chip.active.chip-regular {
  background: #2563eb;
  border-color: #2563eb;
}

.history-filter-chip.active.chip-seminar {
  background: #7c3aed;
  border-color: #7c3aed;
}

.history-filter-chip.active.chip-internal {
  background: #d97706;
  border-color: #d97706;
}

.history-filter-chip.active.chip-semester {
  background: #dc2626;
  border-color: #dc2626;
}

.history-filter-chip.active.chip-other {
  background: #0891b2;
  border-color: #0891b2;
}

.history-filter-badge {
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 0.72rem;
}

.history-filter-chip.active .history-filter-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.history-search-input {
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.85rem;
  outline: none;
  width: 240px;
}

.history-search-input:focus {
  border-color: #2563eb;
}

/* Past Sessions Grid / Table Cards */
.past-sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.past-session-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.past-session-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.past-session-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.past-session-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.past-session-card-cohort {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 2px;
}

.past-session-details-box {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #334155;
  margin-bottom: 12px;
  line-height: 1.35;
}

.past-session-details-box strong {
  color: #0f172a;
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  margin-bottom: 2px;
  letter-spacing: 0.04em;
}

.past-session-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.past-session-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.past-session-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.past-session-progress-bar {
  height: 6px;
  border-radius: 9999px;
  background: #fee2e2;
  overflow: hidden;
  margin-bottom: 14px;
}

.past-session-progress-fill {
  height: 100%;
  background: #16a34a;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.past-session-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.76rem;
  color: #64748b;
}

.past-session-load-btn {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.past-session-load-btn:hover {
  background: #2563eb;
  color: #ffffff;
}

/* ==========================================================================
   MODAL CONTAINER & WINDOW FOR FULL ATTENDANCE SYSTEM
   ========================================================================== */
.take-attendance-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 10000;
  animation: fadeIn 0.2s ease-out;
}

.take-attendance-modal-card-window {
  background: #f8fafc;
  border-radius: 20px;
  width: 96vw;
  max-width: 1240px;
  height: 92vh;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: zoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.take-attendance-modal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.take-attendance-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.take-attendance-modal-close-btn {
  background: #f1f5f9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.take-attendance-modal-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

.take-attendance-modal-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.take-attendance-modal-inner {
  padding-bottom: 2rem;
}
/* Faculty Portal Theme */

.faculty-portal-root {
  min-height: 100vh;
  background: #f8fafc;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  font-family: inherit;
}

.faculty-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.faculty-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.faculty-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.faculty-brand-text h1 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.faculty-brand-text p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

.faculty-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.faculty-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex: 1;
  min-height: calc(100vh - 65px);
  width: 100%;
  transition: grid-template-columns 0.2s ease;
}

.faculty-layout.sidebar-closed,
.faculty-layout:not(:has(.faculty-sidebar)) {
  grid-template-columns: 1fr;
}

@media (max-width: 1024px) {
  .faculty-layout {
    grid-template-columns: 1fr;
  }
  .faculty-sidebar {
    position: fixed;
    top: 65px;
    left: 0;
    bottom: 0;
    width: 260px;
    z-index: 50;
    box-shadow: 4px 0 25px rgba(2, 6, 23, 0.5);
  }
}

.faculty-sidebar {
  background: #091326;
  background: linear-gradient(180deg, #091326 0%, #0b1a36 100%);
  border-right: 1px solid #1a2a44;
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: calc(100vh - 65px);
  max-height: calc(100vh - 65px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  box-sizing: border-box;
  position: sticky;
  top: 65px;
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.4);
}

.faculty-sidebar::-webkit-scrollbar {
  width: 5px;
}

.faculty-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Sidebar Header Area */
.faculty-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.4rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
}

.faculty-sidebar-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.faculty-sidebar-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.faculty-sidebar-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Nav Buttons */
.faculty-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer !important;
  transition: all 0.2s ease;
  text-align: left;
}

.faculty-nav-btn svg {
  flex-shrink: 0;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.faculty-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  cursor: pointer !important;
}

.faculty-nav-btn:hover svg {
  color: #ffffff !important;
}

.faculty-nav-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45) !important;
  border-radius: 14px !important;
}

.faculty-nav-btn.active svg {
  color: #ffffff !important;
}

/* Digital Evaluation Highlight */
.faculty-nav-btn.evaluation-btn:not(.active) {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  color: #34d399 !important;
}

.faculty-nav-btn.evaluation-btn:not(.active) svg {
  color: #34d399 !important;
}

.faculty-nav-btn.evaluation-btn:hover:not(.active) {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #ffffff !important;
}

.faculty-nav-btn.evaluation-btn:hover:not(.active) svg {
  color: #ffffff !important;
}

/* Sidebar Count Badges */
.faculty-sidebar-badge {
  margin-left: auto;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

.faculty-main {
  padding: 1.75rem 2rem;
  overflow-y: auto;
  max-width: 1400px;
}

.faculty-subject-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.faculty-subject-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}

.faculty-subject-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.faculty-rejection-banner {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-left: 5px solid #e11d48;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* Clickable Interactive KPI Cards */
.clickable-kpi {
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.clickable-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -3px rgba(37, 99, 235, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #93c5fd !important;
}

/* Faculty Prioritized Work Queue */
.faculty-work-queue-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.work-queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 10px;
}
.work-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #f8fafc;
  transition: all 0.15s ease;
  flex-wrap: wrap;
  gap: 12px;
}
.work-queue-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.priority-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.priority-critical {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.priority-high {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.priority-medium {
  background: #e0e7ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

/* Today's Teaching Schedule */
.today-schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 0.75rem;
}
.schedule-slot-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.schedule-slot-card.completed {
  border-left: 4px solid #10b981;
}
.schedule-slot-card.upcoming {
  border-left: 4px solid #3b82f6;
}

/* Subject Detail Modal & Tabs */
.faculty-modal-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1.25rem;
  overflow-x: auto;
}
.faculty-modal-tab-btn {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.faculty-modal-tab-btn:hover {
  color: #1e40af;
}
.faculty-modal-tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 700;
}

/* Student Profile Modal/Drawer */
.student-profile-badge-row {
  display: flex;
  gap: 8px;
  margin: 8px 0;
  flex-wrap: wrap;
}

/* Class Performance Visualizations */
.analytics-chart-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.distribution-bar-wrap {
  margin-bottom: 10px;
}
.distribution-bar-bg {
  width: 100%;
  height: 12px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
}
.distribution-segment {
  height: 100%;
  transition: width 0.3s ease;
}

/* Quiz Builder UI */
.quiz-question-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}
.quiz-option-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

/* ==============================================================================
   REDESIGNED APNA CAMPUS FACULTY DASHBOARD (REFERENCE MATCH)
   ============================================================================== */

.fac-dash-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.25rem 0 2rem;
  font-family: inherit;
  color: #0f172a;
}

/* 1. Welcome Banner */
.fac-welcome-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #4f46e5 100%);
  border-radius: 18px;
  padding: 1.6rem 2.2rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.35);
}

.fac-banner-bg-silhouette {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 55%;
  pointer-events: none;
  opacity: 0.16;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: cover;
}

.fac-banner-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.fac-banner-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0 0 0.4rem 0;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.fac-banner-tagline {
  font-size: 0.95rem;
  color: #e0e7ff;
  margin: 0 0 1rem 0;
  font-weight: 400;
}

.fac-banner-notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #f8fafc;
}

.fac-notice-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fbbf24;
  font-weight: 700;
}

.fac-banner-datetime-card {
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 170px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.fac-datetime-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #e2e8f0;
  font-weight: 600;
}

.fac-datetime-line.fac-time-accent {
  color: #60a5fa;
  font-weight: 700;
}

/* 2. Faculty Profile + 4 KPI Cards Row */
.fac-profile-kpi-row {
  display: grid;
  grid-template-columns: minmax(min(100%, 25rem), 28.5rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 1280px) {
  .fac-profile-kpi-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fac-profile-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-width: 0;
  box-sizing: border-box;
  height: 100%;
}

.fac-profile-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
  min-width: 0;
}

.fac-avatar-wrap {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #bfdbfe;
  flex-shrink: 0;
  background: #eff6ff;
}

.fac-profile-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.fac-profile-intro {
  flex: 1;
  min-width: 0;
}

.fac-profile-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  flex-wrap: wrap;
}

.fac-profile-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.fac-view-profile-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.fac-view-profile-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.fac-profile-id-pill {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #2563eb;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.25rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fac-profile-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.fac-profile-detail-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.fac-detail-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 2px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fac-detail-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  min-width: 0;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.fac-detail-email {
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* 4 KPI Cards Grid */
.fac-kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  min-width: 0;
  width: 100%;
}

@media (max-width: 1100px) {
  .fac-kpis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .fac-kpis-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fac-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
  box-sizing: border-box;
}

.fac-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}

.fac-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.fac-kpi-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.fac-kpi-icon-wrap.bg-blue {
  background: #eff6ff;
  color: #2563eb;
}

.fac-kpi-icon-wrap.bg-green {
  background: #ecfdf5;
  color: #059669;
}

.fac-kpi-icon-wrap.bg-orange {
  background: #fffbeb;
  color: #d97706;
}

.fac-kpi-icon-wrap.bg-purple {
  background: #f5f3ff;
  color: #7c3aed;
}

.fac-kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.76rem;
  font-weight: 700;
}

.fac-kpi-trend.trend-up {
  color: #10b981;
}

.fac-kpi-trend.trend-down {
  color: #ef4444;
}

.fac-kpi-body {
  margin-bottom: 0.5rem;
}

.fac-kpi-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  display: block;
}

.fac-kpi-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-top: 2px;
}

.fac-kpi-sparkline {
  height: 32px;
  width: 100%;
  margin-top: auto;
}

.spark-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 3. Common Card Styles */
.fac-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
}

.fac-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.fac-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fac-card-title-icon {
  flex-shrink: 0;
}

.fac-card-title {
  font-size: 0.98rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0;
}

.fac-card-select {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  outline: none;
}

.fac-view-all-link {
  background: transparent;
  border: none;
  font-size: 0.76rem;
  font-weight: 700;
  color: #2563eb;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.fac-view-all-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ── Unified 2-Column Equal-Height Dashboard Rows ───────────────────────── */
.fac-dashboard-row-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
  width: 100%;
}

@media (max-width: 1024px) {
  .fac-dashboard-row-2col {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fac-dashboard-row-2col > .fac-card,
.fac-dashboard-row-2col > .dash-card {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
}

/* 5. Row 5: Trio (Events, Activities, Courses) */
.fac-trio-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1100px) {
  .fac-trio-row {
    grid-template-columns: 1fr;
  }
}

/* Timeline */
.fac-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fac-timeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.fac-timeline-date {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  flex-shrink: 0;
}

.tl-day {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.tl-mo {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.fac-timeline-content {
  flex: 1;
  min-width: 0;
}

.tl-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
}

.fac-tag-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-exam {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.tag-assignment {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.tag-event {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.tag-holiday {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.tag-recess {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

/* Activities */
.fac-activity-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.fac-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px;
}

.fac-act-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.bg-amber-soft { background: #fef3c7; color: #d97706; }
.bg-green-soft { background: #dcfce7; color: #16a34a; }
.bg-red-soft { background: #fee2e2; color: #dc2626; }

.fac-act-info {
  flex: 1;
  min-width: 0;
}

.fac-act-desc {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fac-act-time {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
}

/* My Courses Grid */
.fac-courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.fac-course-pill-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.15s ease;
}

.fac-course-pill-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.course-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.bg-blue-soft { background: #eff6ff; color: #2563eb; }
.bg-purple-soft { background: #f5f3ff; color: #7c3aed; }
.bg-cyan-soft { background: #ecfeff; color: #0891b2; }
.bg-indigo-soft { background: #e0e7ff; color: #4338ca; }

.course-name-row {
  font-size: 0.78rem;
  font-weight: 750;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.course-code-row {
  font-size: 0.68rem;
  color: #64748b;
  margin-bottom: 6px;
}

.course-progress-bar {
  width: 100%;
  height: 5px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}

.course-progress-fill {
  height: 100%;
  border-radius: 999px;
}

.course-pct-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #475569;
}

/* 6. Row 6: Bottom Trio (Schedule Table, Calendar, Holidays) */
.fac-bottom-trio-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 1200px) {
  .fac-bottom-trio-row {
    grid-template-columns: 1fr;
  }
}

.fac-table-responsive {
  overflow-x: auto;
}

.fac-mini-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: left;
}

.fac-mini-schedule-table th {
  color: #64748b;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.fac-mini-schedule-table td {
  padding: 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  white-space: nowrap;
}

.fac-mini-schedule-table td.time-cell {
  font-weight: 700;
  color: #0f172a;
}

.fac-mini-schedule-table td.time-cell.highlight-cell {
  color: #2563eb;
}

.fac-mini-schedule-table td.sub-cell {
  font-weight: 700;
  color: #0f172a;
}

.fac-mini-schedule-table td.room-cell {
  color: #64748b;
}

.fac-status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-block;
}

.pill-completed {
  background: #ecfdf5;
  color: #059669;
}

.pill-ongoing {
  background: #eff6ff;
  color: #2563eb;
}

.pill-upcoming {
  background: #fffbeb;
  color: #d97706;
}

.fac-action-outline-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fac-action-outline-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.fac-action-solid-btn {
  background: #2563eb;
  border: 1px solid #2563eb;
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  transition: all 0.15s ease;
}

.fac-action-solid-btn:hover {
  background: #1d4ed8;
}

/* Calendar Widget */
.fac-cal-nav-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-btn-arrow {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #475569;
}

.cal-cur-month {
  font-size: 0.78rem;
  font-weight: 750;
  color: #0f172a;
}

.cal-btn-today {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.fac-calendar-widget {
  margin-top: 0.5rem;
}

.fac-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
}

.fac-cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.fac-cal-day {
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.fac-cal-day.is-other-month {
  color: #cbd5e1;
}

.fac-cal-day.is-today-highlight {
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
}

.fac-cal-day.is-exam-day {
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 800;
}

.fac-cal-day.is-deadline-day {
  background: #fef3c7;
  color: #b45309;
  font-weight: 800;
}

.fac-cal-day.is-event-day {
  background: #dcfce7;
  color: #15803d;
  font-weight: 800;
}

.fac-cal-day.is-purple-day {
  background: #f3e8ff;
  color: #7e22ce;
  font-weight: 800;
}

/* Holidays */
.fac-holiday-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fac-holiday-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}

.fac-holiday-item:last-child {
  border-bottom: none;
}

.fac-hol-date {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0f172a;
  min-width: 80px;
}

.fac-hol-info {
  flex: 1;
  min-width: 0;
}

.hol-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hol-sub {
  font-size: 0.68rem;
  color: #64748b;
}


/* ── Row 2 & Row 3 Responsive Card Inner Scrolls ───────────────────────── */
.fac-courses-card .fac-courses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  flex: 1;
  overflow-y: auto;
  max-height: 22rem;
  scrollbar-width: thin;
  padding: 2px;
}

.fac-schedule-table-card .fac-table-responsive {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 22rem;
  flex: 1;
  scrollbar-width: thin;
}

.fac-timeline-list {
  flex: 1;
  overflow-y: auto;
  max-height: 20rem;
  scrollbar-width: thin;
  padding-right: 4px;
}

.fac-activity-list {
  flex: 1;
  overflow-y: auto;
  max-height: 20rem;
  scrollbar-width: thin;
  padding-right: 4px;
}

.fac-calendar-widget-card {
  height: 100% !important;
  min-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}/* HOD Portal Styles */

.hod-portal-root {
  min-height: 100vh;
  background: #f8fafc;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  font-family: inherit;
}

.hod-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.hod-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.hod-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
}

.hod-brand-text h1 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.hod-brand-text p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

.hod-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #0f766e;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.hod-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  flex: 1;
  min-height: calc(100vh - 65px);
  width: 100%;
  transition: grid-template-columns 0.2s ease;
}

.hod-layout.sidebar-closed,
.hod-layout:not(:has(.hod-sidebar)) {
  grid-template-columns: 1fr;
}

@media (max-width: 1024px) {
  .hod-layout {
    grid-template-columns: 1fr;
  }
  .hod-sidebar {
    position: fixed;
    top: 65px;
    left: 0;
    bottom: 0;
    width: 260px;
    z-index: 50;
    box-shadow: 4px 0 25px rgba(2, 6, 23, 0.5);
  }
}

.hod-sidebar {
  background: #091326;
  background: linear-gradient(180deg, #091326 0%, #0b1a36 100%);
  border-right: 1px solid #1a2a44;
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: calc(100vh - 65px);
  max-height: calc(100vh - 65px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  box-sizing: border-box;
  position: sticky;
  top: 65px;
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.4);
}

.hod-sidebar::-webkit-scrollbar {
  width: 5px;
}

.hod-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Sidebar Header Area */
.hod-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.4rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
}

.hod-sidebar-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hod-sidebar-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.hod-sidebar-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Nav Buttons */
.hod-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer !important;
  transition: all 0.2s ease;
  text-align: left;
}

.hod-nav-btn svg {
  flex-shrink: 0;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.hod-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  cursor: pointer !important;
}

.hod-nav-btn:hover svg {
  color: #ffffff !important;
}

.hod-nav-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45) !important;
  border-radius: 14px !important;
}

.hod-nav-btn.active svg {
  color: #ffffff !important;
}

/* Special button: Digital Evaluation */
.hod-nav-btn.evaluation-btn:not(.active) {
  background: rgba(13, 148, 136, 0.15) !important;
  border: 1px solid rgba(13, 148, 136, 0.35) !important;
  color: #2dd4bf !important;
}

.hod-nav-btn.evaluation-btn:not(.active) svg {
  color: #2dd4bf !important;
}

.hod-nav-btn.evaluation-btn:hover:not(.active) {
  background: rgba(13, 148, 136, 0.25) !important;
  color: #ffffff !important;
}

.hod-nav-btn.evaluation-btn:hover:not(.active) svg {
  color: #ffffff !important;
}

/* Sidebar Badges */
.hod-sidebar-badge {
  margin-left: auto;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

.hod-main {
  padding: 1.75rem 2rem;
  overflow-y: auto;
  max-width: 1400px;
}

.hod-view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hod-view-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
}

.hod-view-header p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.hod-approval-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hod-approval-card.pending {
  border-left: 4px solid #d97706;
}

.hod-approval-card.approved {
  border-left: 4px solid #059669;
}

.hod-approval-card.rejected {
  border-left: 4px solid #e11d48;
}

.hod-btn-approve {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #059669;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
}

.hod-btn-approve:hover {
  background: #047857;
}

.hod-btn-reject {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: #e11d48;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
}

.hod-btn-reject:hover {
  background: #fff1f2;
}

.hod-btn-unlock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
}

.hod-btn-unlock:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Clickable Interactive KPI Cards */
.clickable-kpi {
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.clickable-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -3px rgba(15, 118, 110, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #99f6e4 !important;
}

/* HOD Prioritized Work Queue */
.hod-work-queue-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.work-queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 10px;
}
.work-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #f8fafc;
  transition: all 0.15s ease;
  flex-wrap: wrap;
  gap: 12px;
}
.work-queue-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.priority-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.priority-critical {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.priority-high {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.priority-medium {
  background: #e0e7ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

/* Department Analytics & Visualizations */
.hod-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.analytics-chart-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
}
.distribution-bar-wrap {
  margin-bottom: 10px;
}
.distribution-bar-bg {
  width: 100%;
  height: 12px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
}
.distribution-segment {
  height: 100%;
  transition: width 0.3s ease;
}

/* Department Notices Grid */
.department-notices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}
.notice-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.notice-card.urgent {
  border-left: 4px solid #ef4444;
}

/* Modal Tabs */
.hod-modal-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1.25rem;
  overflow-x: auto;
}
.hod-modal-tab-btn {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.hod-modal-tab-btn:hover {
  color: #0f766e;
}
.hod-modal-tab-btn.active {
  color: #0f766e;
  border-bottom-color: #0f766e;
  font-weight: 700;
}

/* HOD Section Comparative Analytics */
.hod-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.hod-section-card {
  background: #ffffff;
  border: 1px solid var(--d-line, #e2e8f0);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hod-section-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.hod-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.hod-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.hod-section-meta {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

.hod-section-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.hod-metric-box {
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.hod-metric-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hod-metric-val {
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 2px;
}

/* HOD Continuous Marks Matrix */
.hod-marks-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-top: 10px;
}

.hod-marks-matrix-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 8px 10px;
  text-align: center;
  border-bottom: 2px solid #e2e8f0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hod-marks-matrix-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
  color: #334155;
}

.hod-missing-tag {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* HOD Department Broadcast Composer */
.hod-broadcast-container {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 960px) {
  .hod-broadcast-container {
    grid-template-columns: 1fr;
  }
}

.hod-recipient-preview-card {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border: 1px solid #99f6e4;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.08);
}

.hod-recipient-count-badge {
  font-size: 2.2rem;
  font-weight: 900;
  color: #0f766e;
  line-height: 1;
}

.hod-tab-nav-pill {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.hod-tab-nav-pill.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.hod-tab-nav-pill:not(.active) {
  background: #ffffff;
  color: #475569;
  border-color: #cbd5e1;
}

.hod-tab-nav-pill:not(.active):hover {
  background: #f8fafc;
  color: #1e293b;
}

/* ══════════════════════════════════════════════════════════════════════════════
   DIGITAL ANSWER SHEET EVALUATION SYSTEM - STYLESHEET
   Autonomous Examination Cell · GIFT Autonomous, Bhubaneswar (Affiliated to BPUT)
   ══════════════════════════════════════════════════════════════════════════════ */

.digital-eval-system-root {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: #f1f5f9;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ── Toast Message ── */
.eval-system-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  z-index: 99999;
  border-left: 4px solid #10b981;
}

/* ── Top Master Header ── */
.eval-master-header {
  background: #0f2b48;
  color: #ffffff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-bottom: 2px solid #0284c7;
}

.eval-master-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eval-logo-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eval-logo-badge img {
  width: 44px;
  height: 44px;
  -o-object-fit: contain;
     object-fit: contain;
}

.eval-logo-badge h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.eval-logo-badge p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #94a3b8;
}

/* Role Switcher Bar (Demo / Hackathon) */
.eval-role-switcher-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.role-switcher-label {
  font-size: 11px;
  font-weight: 700;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eval-role-buttons {
  display: flex;
  gap: 4px;
}

.btn-role-tab {
  background: transparent;
  color: #cbd5e1;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-role-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-role-tab.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
}

/* Master Right & Blind Evaluation Toggle */
.eval-master-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-blind-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.btn-blind-toggle.masked {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
}

.btn-blind-toggle.revealed {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
}

.btn-close-system {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Sub Navigation Strip ── */
.eval-sub-nav {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  overflow-x: auto;
  padding: 0 24px;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.sub-nav-btn {
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  padding: 12px 16px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: all 0.15s;
}

.sub-nav-btn:hover {
  color: #0284c7;
}

.sub-nav-btn.active {
  color: #0284c7;
  border-bottom-color: #0284c7;
}

/* ── Main Layout ── */
.eval-portal-layout {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.eval-portal-main {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.eval-portal-main.workspace-mode,
.eval-portal-main:has(.eval-workspace-split) {
  overflow: hidden !important;
  height: 100% !important;
}

.eval-content-view {
  padding: 24px;
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.view-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.view-banner h3 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
}

.view-banner p {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
}

.btn-primary-eval {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
  transition: background 0.15s;
}

.btn-primary-eval:hover {
  background: #0369a1;
}

.btn-primary-eval.btn-danger {
  background: #dc2626;
}

.btn-primary-eval.btn-danger:hover {
  background: #b91c1c;
}

/* ── Stats Grid ── */
.eval-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.eval-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.stat-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.stat-value {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 11px;
  color: #059669;
  font-weight: 600;
}

/* ── Tables & Cards ── */
.eval-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
}

.table-card-head {
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-card-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.badge-live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #059669;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.eval-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.eval-data-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.eval-data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.eval-data-table tbody tr:hover td {
  background: #f8fafc;
}

.barcode-code {
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.badge-masked-identity {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  color: #b45309;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}

.status-pill.assigned { background: #e0e7ff; color: #4338ca; }
.status-pill.in-progress { background: #fef3c7; color: #b45309; }
.status-pill.submitted { background: #e0f2fe; color: #0369a1; }
.status-pill.hod-approved, .status-pill.approved { background: #dcfce7; color: #15803d; }
.status-pill.returned { background: #fee2e2; color: #b91c1c; }
.status-pill.pending { background: #f1f5f9; color: #64748b; }

.status-badge-done { color: #15803d; font-weight: 700; }
.status-badge-pend { color: #b45309; font-weight: 600; }

.grade-badge {
  background: #0f172a;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.eval-progress-bar {
  background: #e2e8f0;
  height: 18px;
  border-radius: 9px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #0f172a;
  padding-left: 6px;
}

.eval-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #38bdf8 0%, #0284c7 100%);
  border-radius: 9px;
}

.eval-progress-bar span {
  position: relative;
  z-index: 1;
  margin-left: auto;
  margin-right: 6px;
}

.btn-table-action {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-table-action:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.btn-icon-only {
  padding: 4px 7px;
}

/* Filter Strip */
.eval-filter-strip {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 12px;
  flex-grow: 1;
}

.filter-input-wrap input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 12.5px;
  color: #0f172a;
}

.eval-filter-strip select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: #0f172a;
  outline: none;
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════════
   FACULTY EVALUATION WORKSPACE (65% / 35% SPLIT SCREEN)
   ══════════════════════════════════════════════════════════════════ */
.eval-workspace-split {
  display: grid;
  grid-template-columns: 65fr 35fr;
  flex: 1 1 0;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  background: #0f172a;
  overflow: hidden;
}

@media (max-width: 1080px) {
  .eval-workspace-split {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    overflow: visible;
  }
}

/* ── Left Side: 65% Answer Sheet Viewer ── */
.eval-workspace-left {
  display: flex;
  flex-direction: column;
  background: #0b1329;
  border-right: 1px solid #334155;
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.eval-viewer-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.eval-viewer-toolbar {
  background: #1e293b;
  color: #ffffff;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #0f172a;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.eval-toolbar-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Mode Switcher (Single Page vs Continuous Scroll) */
.eval-view-mode-toggle {
  display: flex;
  background: #0f172a;
  padding: 2px;
  border-radius: 6px;
  border: 1px solid #334155;
  margin-right: 4px;
}

.eval-mode-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.eval-mode-btn:hover {
  color: #ffffff;
}

.eval-mode-btn.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.eval-page-nav-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.eval-tool-btn {
  background: #334155;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 5px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.eval-tool-btn:hover:not(:disabled) {
  background: #475569;
}

.eval-tool-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.eval-page-badge {
  font-size: 11.5px;
  color: #e2e8f0;
  padding: 0 4px;
  white-space: nowrap;
}

/* Zoom Toolbar Controls */
.eval-zoom-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.eval-zoom-range {
  width: 75px;
  height: 4px;
  cursor: pointer;
  accent-color: #38bdf8;
}

.eval-zoom-label {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  min-width: 36px;
  text-align: center;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 4px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.btn-fit-width {
  color: #38bdf8 !important;
}

/* Evaluator Tools Palette */
.eval-tools-palette {
  display: flex;
  gap: 3px;
  background: #0f172a;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid #334155;
}

.eval-tools-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-right: 4px;
  display: flex;
  align-items: center;
}

.eval-palette-btn {
  border: none;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.eval-palette-btn.btn-pan {
  background: #334155;
  color: #cbd5e1;
}
.eval-palette-btn.btn-pan.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 0 0 2px #38bdf8;
}

.eval-palette-btn.btn-tick {
  background: #166534;
  color: #bbf7d0;
}
.eval-palette-btn.btn-tick.active {
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 0 0 2px #ffffff;
}

.eval-palette-btn.btn-cross {
  background: #991b1b;
  color: #fecaca;
}
.eval-palette-btn.btn-cross.active {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 0 2px #ffffff;
}

.eval-palette-btn.btn-stamp {
  background: #1e3a8a;
  color: #bfdbfe;
}
.eval-palette-btn.btn-stamp.active {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 0 2px #ffffff;
}

.eval-palette-btn.btn-highlighter {
  background: #854d0e;
  color: #fef08a;
}
.eval-palette-btn.btn-highlighter.active {
  background: #eab308;
  color: #1e293b;
  box-shadow: 0 0 0 2px #ffffff;
}

.eval-palette-btn.btn-note {
  background: #581c87;
  color: #e9d5ff;
}
.eval-palette-btn.btn-note.active {
  background: #a855f7;
  color: #ffffff;
  box-shadow: 0 0 0 2px #ffffff;
}

.btn-clear-ann {
  color: #f87171 !important;
}

/* ══════════════════════════════════════════════════════════════════
   BOOKLET VIEWPORT (SCROLLABLE & ZOOM CONTAINER)
   ══════════════════════════════════════════════════════════════════ */
.eval-booklet-viewport {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto !important;
  overflow-x: auto !important;
  padding: 30px 20px 80px;
  background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0b1329 100%);
  position: relative;
  scroll-behavior: smooth;
  cursor: default;
  overscroll-behavior: contain;
}

.eval-booklet-viewport::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.eval-booklet-viewport::-webkit-scrollbar-track {
  background: #0f172a;
}

.eval-booklet-viewport::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 6px;
  border: 2px solid #0f172a;
}

.eval-booklet-viewport::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

.eval-booklet-viewport.is-panning {
  cursor: grabbing !important;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Physical Zoom Container (Allows natural scroll range) */
.eval-zoom-wrapper {
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
  position: relative;
}

.eval-scanned-sheet {
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: absolute;
  top: 0;
  left: 0;
  padding: 28px 36px 40px;
  box-sizing: border-box;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Continuous Page Stream Layout */
.eval-continuous-pages-stream {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-bottom: 60px;
}

.eval-stream-page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.eval-stream-page-badge {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Floating Quick Scroll HUD (Top & Bottom buttons) */
.eval-scroll-hud {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
}

.eval-hud-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1e293b;
  border: 1.5px solid #475569;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: all 0.15s ease;
}

.eval-hud-btn:hover {
  background: #0284c7;
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.5);
}

/* Booklet Ribbon Top */
.booklet-top-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.booklet-barcode-wrap {
  display: flex;
  flex-direction: column;
}

.barcode-font {
  font-family: monospace;
  letter-spacing: 2px;
  font-size: 14px;
  color: #0f172a;
  line-height: 1;
}

.booklet-id-badge {
  font-size: 13px;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.booklet-bput-emblem {
  text-align: center;
}

.booklet-bput-emblem span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
}

.booklet-bput-emblem small {
  font-size: 9.5px;
  color: #64748b;
  letter-spacing: 0.05em;
}

.booklet-page-stamp {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  border: 1px solid #0f172a;
  padding: 2px 6px;
  border-radius: 3px;
}

/* Cover Page */
.booklet-cover-page {
  padding: 10px 14px;
}

.cover-header-crest {
  text-align: center;
  margin-bottom: 20px;
}

.cover-crest-img {
  width: 54px;
  height: 54px;
  margin-bottom: 6px;
}

.cover-header-crest h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.cover-header-crest h3 {
  margin: 2px 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.cover-header-crest p {
  margin: 0 0 10px;
  font-size: 10px;
  color: #64748b;
}

.cover-exam-badge {
  display: inline-block;
  background: #0f172a;
  color: #ffffff;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* Blind Mask Card */
.blind-mask-card {
  border: 2px solid #b45309;
  background: #fffbeb;
  border-radius: 6px;
  margin-bottom: 20px;
  overflow: hidden;
}

.blind-mask-header {
  background: #b45309;
  color: #ffffff;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blind-mask-body {
  padding: 12px 14px;
  text-align: center;
}

.blind-hash-code {
  font-size: 10.5px;
  color: #78350f;
  margin-bottom: 8px;
}

.blind-hash-code code {
  background: #fef3c7;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: monospace;
}

.blind-mask-tape {
  background: #0f172a;
  color: #fef08a;
  padding: 8px 10px;
  margin: 8px 0;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.caution-stripe {
  font-size: 8px;
  opacity: 0.4;
  letter-spacing: 2px;
}

.tape-text {
  font-size: 12px;
  letter-spacing: 0.05em;
}

.blind-notice {
  margin: 6px 0 0;
  font-size: 10.5px;
  color: #92400e;
}

.cover-meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-bottom: 20px;
  border: 1px solid #0f172a;
}

.cover-meta-table th {
  background: #f1f5f9;
  border: 1px solid #0f172a;
  padding: 6px 8px;
  text-align: left;
  width: 25%;
}

.cover-meta-table td {
  border: 1px solid #0f172a;
  padding: 6px 8px;
  width: 25%;
}

.script-id-pill {
  background: #0f172a;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 800;
}

.cover-instructions-box {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 10.5px;
  margin-bottom: 20px;
}

.cover-instructions-box h4 {
  margin: 0 0 6px;
  font-size: 11px;
  color: #0f172a;
}

.cover-instructions-box ol {
  margin: 0;
  padding-left: 18px;
}

.cover-instructions-box li {
  margin-bottom: 3px;
  color: #334155;
}

.cover-bottom-stamp {
  border-top: 1px solid #cbd5e1;
  padding-top: 10px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
}

/* Ruled Student Examination Pages */
.booklet-ruled-content {
  position: relative;
  min-height: 860px;
  background: repeating-linear-gradient(
    #ffffff,
    #ffffff 27px,
    #e2e8f0 28px
  );
  padding-left: 54px;
  padding-top: 6px;
}

.paper-margin-line {
  position: absolute;
  left: 44px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: #f87171;
}

.student-written-work {
  padding-right: 14px;
}

.answer-block {
  margin-bottom: 24px;
}

.question-no-pill {
  display: inline-block;
  background: #1e3a8a;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.student-handwritten {
  margin: 0 0 6px;
  font-size: 12.5px;
  line-height: 28px;
  color: #0f172a;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.math-formula-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  color: #1e293b;
  margin: 6px 0;
}

.code-snippet-box pre {
  margin: 6px 0;
  background: #f1f5f9;
  border-left: 3px solid #0284c7;
  padding: 8px 12px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.45;
  color: #0f172a;
  border-radius: 0 4px 4px 0;
}

.diagram-ascii-box {
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  padding: 8px 12px;
  font-family: monospace;
  font-size: 11px;
  color: #0f172a;
  margin: 8px 0;
  line-height: 1.35;
}

/* Dynamic Annotation Marker Overlay */
.eval-stamp-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-weight: 800;
  font-size: 13px;
  z-index: 20;
  padding: 2px 6px;
  border-radius: 3px;
  animation: stampDrop 0.15s ease-out;
}

@keyframes stampDrop {
  from { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.eval-stamp-marker.stamp-tick {
  color: #16a34a;
  font-size: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.eval-stamp-marker.stamp-cross {
  color: #dc2626;
  font-size: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.eval-stamp-marker.stamp-stamp {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #1d4ed8;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.eval-stamp-marker.stamp-highlight {
  background: rgba(253, 224, 71, 0.75);
  color: #854d0e;
  border: 1px solid #facc15;
}

.eval-stamp-marker.stamp-note {
  background: #faf5ff;
  border: 1.5px solid #9333ea;
  color: #581c87;
  font-size: 11px;
  max-width: 180px;
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.2);
}

/* Thumbnails Strip */
.eval-thumbnails-strip {
  background: #0f172a;
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-top: 1px solid #334155;
  justify-content: center;
}

.eval-thumb-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.thumb-preview-card {
  width: 44px;
  height: 56px;
  background: #ffffff;
  border: 1px solid #475569;
  border-radius: 3px;
  font-size: 9px;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all 0.15s;
}

.eval-thumb-btn:hover .thumb-preview-card {
  border-color: #38bdf8;
}

.eval-thumb-btn.active .thumb-preview-card {
  border: 2px solid #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3);
}

.eval-thumb-btn small {
  font-size: 10px;
  color: #94a3b8;
}

/* ── Right Side: 35% Digital Marking Panel ── */
.eval-workspace-right {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow-y: scroll !important;
}

.eval-marking-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.marking-panel-header {
  background: #0f2b48;
  color: #ffffff;
  padding: 16px 20px;
  border-bottom: 2px solid #0284c7;
}

.marking-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.marking-sub-kicker {
  font-size: 9.5px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marking-main-title {
  margin: 2px 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.marking-sheet-tag {
  font-size: 11px;
  color: #cbd5e1;
}

.marking-grand-total-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 6px 14px;
  text-align: right;
}

.grand-total-score .total-num {
  font-size: 26px;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1;
}

.grand-total-score .total-den {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 700;
}

.grand-total-grade {
  font-size: 10.5px;
  color: #ffffff;
  margin-top: 2px;
}

.marking-status-bar {
  display: flex;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11px;
  color: #cbd5e1;
}

.status-metric strong {
  color: #ffffff;
  margin-left: 4px;
}

/* Sections Accordions */
.marking-sections-container {
  flex-grow: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

.marking-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.section-card-head {
  padding: 12px 14px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}

.section-card-head:hover {
  background: #f8fafc;
}

.sec-title-wrap h4 {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.sec-instruction-text {
  margin: 0 0 6px;
  font-size: 11px;
  color: #64748b;
}

.sec-rules-chips {
  display: flex;
  gap: 6px;
}

.chip-req {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.chip-marks-per-q {
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.sec-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-score-summary .sec-score-value {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.sec-score-summary .sec-score-max {
  font-size: 12px;
  color: #64748b;
}

.btn-toggle-sec {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
}

/* Capping Alert Banner */
.capping-alert-banner {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #92400e;
}

/* Question Rows */
.section-questions-list {
  padding: 6px 12px 12px;
}

.question-mark-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 6px;
  margin-bottom: 4px;
  transition: all 0.15s;
}

.question-mark-row:last-child {
  border-bottom: none;
}

.question-mark-row.is-counted {
  background: #f0fdf4;
  border-left: 3px solid #22c55e;
}

.question-mark-row.is-extra-attempt {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  opacity: 0.85;
}

.q-left-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
}

.q-label-badge {
  display: flex;
  flex-direction: column;
  min-width: 44px;
}

.q-label-badge strong {
  font-size: 12.5px;
  color: #0f172a;
}

.q-label-badge small {
  font-size: 9.5px;
  color: #64748b;
}

.q-desc-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.q-desc-text {
  font-size: 11px;
  color: #334155;
  line-height: 1.3;
}

.badge-counted-rule {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 700;
  color: #15803d;
}

.badge-extra-rule {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 700;
  color: #b45309;
}

.q-right-input {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.quick-score-buttons {
  display: flex;
  gap: 3px;
}

.btn-qs {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.1s;
}

.btn-qs:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-qs.selected {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.score-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.score-num-field {
  width: 48px;
  height: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  outline: none;
}

.score-num-field:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.score-num-field.has-value {
  background: #f0fdf4;
  border-color: #86efac;
}

.score-unit {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}

/* Panel Footer & Remarks */
.marking-panel-footer {
  padding: 16px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.remarks-box {
  margin-bottom: 12px;
}

.remarks-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
}

.remarks-label small {
  font-size: 10px;
  color: #64748b;
  font-weight: normal;
}

.remarks-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
}

.remarks-textarea:focus {
  border-color: #0284c7;
}

.marking-action-buttons {
  display: flex;
  gap: 8px;
}

.btn-eval-reset {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-eval-draft {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-eval-submit {
  flex-grow: 1;
  background: #059669;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.btn-eval-submit:hover {
  background: #047857;
}

.marking-locked-banner {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 10px;
  border-radius: 6px;
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* HOD Review Action Box */
.hod-review-action-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 6px;
  padding: 12px;
  margin-top: 10px;
}

.btn-hod-return {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-hod-approve {
  background: #16a34a;
  border: none;
  color: #ffffff;
  border-radius: 5px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── Modals ── */
.eval-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
}

.eval-modal-box {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  max-width: 480px;
  width: 100%;
  padding: 24px;
  position: relative;
  text-align: center;
}

.eval-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
}

.modal-lock-crest {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.eval-modal-box h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.eval-modal-box p {
  margin: 0 0 14px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.modal-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  text-align: left;
  margin-bottom: 6px;
}

.modal-pin-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 2px;
  box-sizing: border-box;
}

.modal-select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #0f172a;
}

.modal-error-msg {
  color: #dc2626;
  font-size: 11.5px;
  font-weight: 600;
  margin: 6px 0 0;
  text-align: left;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.btn-modal-cancel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.btn-modal-submit {
  background: #0284c7;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
}

/* Upload Dropzone */
.dropzone-box {
  border: 2px dashed #93c5fd;
  background: #f0f9ff;
  border-radius: 8px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.15s;
}

.dropzone-box:hover {
  background: #e0f2fe;
  border-color: #0284c7;
}

.dropzone-icon {
  color: #0284c7;
  margin-bottom: 8px;
}

.dropzone-box h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #0f172a;
}

.dropzone-box p {
  margin: 0 0 12px;
  font-size: 11.5px;
  color: #64748b;
}

.btn-dropzone-cta {
  background: #0284c7;
  color: #ffffff;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  display: inline-block;
}

.scanner-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.preset-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 12px 14px;
  border-radius: 6px;
}

.preset-title {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 2px;
}

.preset-item strong {
  font-size: 12px;
  color: #0f172a;
}

/* Faculty Alloc Card */
.faculty-alloc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.faculty-alloc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.faculty-alloc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.faculty-alloc-head h4 {
  margin: 0;
  font-size: 14px;
  color: #0f172a;
}

.fac-id-tag {
  font-size: 11px;
  color: #64748b;
}

.quota-tag {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.alloc-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #334155;
}

.btn-alloc-action {
  width: 100%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 6px;
  padding: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.15s;
}

.btn-alloc-action:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Question Paper Schema Card */
.qp-sections-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qp-section-schema-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
}

.qp-sec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.qp-sec-header h4 {
  margin: 0;
  font-size: 14px;
  color: #0f172a;
}

.badge-max-marks {
  background: #0f172a;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.qp-sec-desc {
  margin: 0 0 10px;
  font-size: 12px;
  color: #64748b;
}

.qp-sec-rules {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #334155;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 6px;
}

/* Note Modal Box */
.eval-note-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}

.eval-note-modal-box {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 18px 20px;
  max-width: 360px;
  width: 100%;
}

.eval-note-modal-box h4 {
  margin: 0 0 4px;
  font-size: 14px;
  color: #0f172a;
}

.eval-note-modal-box p {
  margin: 0 0 10px;
  font-size: 11.5px;
  color: #64748b;
}

.eval-note-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px;
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 12px;
}

.eval-note-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn-cancel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.btn-save-note {
  background: #a855f7;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
/* HOD Grievance Monitoring & Analytics Module Styles */

.hod-grievance-container {
  padding: 0.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hod-grievance-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.hod-grievance-title-area h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hod-grievance-title-area p {
  margin: 0.35rem 0 0;
  font-size: 0.83rem;
  color: #64748b;
  max-width: 760px;
  line-height: 1.45;
}

/* Tab Switcher */
.hod-view-mode-tabs {
  display: flex;
  gap: 0.5rem;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.hod-view-mode-btn {
  background: transparent;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 7px;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.hod-view-mode-btn.active {
  background: #ffffff;
  color: #0f766e;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Analytics Cards & Charts */
.hod-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.hod-analytics-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hod-analytics-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hod-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.hod-bar-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

.hod-bar-track {
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}

.hod-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Fairness Advisory Box */
.hod-fairness-callout {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.8rem;
  color: #1e40af;
  line-height: 1.5;
}

/* Multi-Filter Bar */
.hod-filter-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  align-items: flex-end;
}

.hod-filter-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.3rem;
}

.hod-filter-field select,
.hod-filter-field input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  color: #0f172a;
  outline: none;
}

.hod-filter-field select:focus,
.hod-filter-field input:focus {
  border-color: #0f766e;
  background: #ffffff;
}

/* Consolidated Evaluation Modal Details */
.hod-eval-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .hod-eval-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.hod-eval-card-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.1rem;
}

.hod-decision-form {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  padding: 1.25rem;
}
/* Faculty Complaints & Grievance Redressal Module Styles */

.fac-complaints-container {
  padding: 0.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fac-complaints-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.fac-complaints-title-area h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fac-complaints-title-area p {
  margin: 0.35rem 0 0;
  font-size: 0.83rem;
  color: #64748b;
  max-width: 720px;
  line-height: 1.45;
}

/* Privacy Guarantee Banner */
.fac-complaints-privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
}

/* Summary KPI Cards Grid */
.fac-complaints-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.fac-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.fac-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.fac-kpi-card.active-kpi {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.fac-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.fac-kpi-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fac-kpi-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fac-kpi-icon-wrap.blue { background: #eff6ff; color: #2563eb; }
.fac-kpi-icon-wrap.amber { background: #fffbeb; color: #d97706; }
.fac-kpi-icon-wrap.indigo { background: #eef2ff; color: #4f46e5; }
.fac-kpi-icon-wrap.emerald { background: #ecfdf5; color: #059669; }
.fac-kpi-icon-wrap.purple { background: #faf5ff; color: #7c3aed; }

.fac-kpi-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.fac-kpi-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Filter & Search Bar */
.fac-complaints-toolbar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.fac-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.fac-filter-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fac-filter-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.fac-filter-btn.active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.fac-filter-btn .counter {
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 0.7rem;
}

.fac-filter-btn.active .counter {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.fac-search-box {
  position: relative;
  min-width: 240px;
}

.fac-search-box input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.45rem 0.75rem 0.45rem 2.1rem;
  font-size: 0.8rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease;
}

.fac-search-box input:focus {
  border-color: #2563eb;
  background: #ffffff;
}

.fac-search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

/* Complaints Table Card */
.fac-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.fac-table-wrapper {
  overflow-x: auto;
}

.fac-complaints-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.fac-complaints-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.fac-complaints-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #1e293b;
}

.fac-complaints-table tr:hover td {
  background: #f8fafc;
}

.fac-tracking-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
  display: inline-block;
}

.fac-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

.fac-status-badge.new { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.fac-status-badge.under_review { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.fac-status-badge.response_submitted { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }
.fac-status-badge.awaiting_hod_review { background: #fdf4ff; color: #7e22ce; border: 1px solid #f0abfc; }
.fac-status-badge.resolved { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.fac-status-badge.escalated { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }

.fac-category-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  white-space: nowrap;
}

.fac-anonymous-complainant {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}

.fac-action-btn-primary {
  background: #0f766e;
  color: #ffffff;
  border: none;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.15s ease;
}

.fac-action-btn-primary:hover {
  background: #115e59;
}

/* Review / Detail Modal */
.fac-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.fac-modal-card {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.fac-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
}

.fac-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.fac-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Original Complaint Box */
.fac-original-complaint-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0f766e;
  border-radius: 12px;
  padding: 1.25rem;
}

.fac-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
}

.fac-meta-item dt {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 2px;
}

.fac-meta-item dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

/* Response Section & History */
.fac-response-history-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
}

.fac-history-item {
  border-left: 2px solid #cbd5e1;
  padding-left: 1rem;
  margin-left: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.fac-history-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0f766e;
}

/* Formal Response Form */
.fac-response-form-card {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  padding: 1.25rem;
}

.fac-form-group {
  margin-bottom: 1rem;
}

.fac-form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #134e4a;
  margin-bottom: 0.35rem;
}

.fac-form-group textarea,
.fac-form-group select,
.fac-form-group input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 0.82rem;
  color: #0f172a;
  outline: none;
}

.fac-form-group textarea:focus,
.fac-form-group select:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}

.fac-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #f8fafc;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}
/* =====================================================================
   OFFICIAL EMPLOYEE PROFILE — CMS ACADEMIC ROLE STYLES
   Adheres to rem-based typography and responsive text-scaling
   ===================================================================== */

.emp-profile-wrapper {
  padding: 1.5rem;
  max-width: 90rem;
  margin: 0 auto;
  font-family: inherit;
  color: #334155;
  background: #f8fafc;
  min-height: calc(100vh - 7.5rem);
  box-sizing: border-box;
}

/* Header Bar */
.emp-profile-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.0625rem solid #e2e8f0;
  gap: 1rem;
  flex-wrap: wrap;
}

.emp-profile-title-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-width: 0;
}

.emp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #ffffff;
  border: 0.0625rem solid #cbd5e1;
  color: #475569;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.emp-back-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.emp-profile-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
}

.emp-generate-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  border: none;
  border-radius: 0.375rem;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0.125rem 0.5rem rgba(225, 29, 72, 0.3);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.emp-generate-pdf-btn:hover {
  background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
  transform: translateY(-0.0625rem);
}

/* Main Two-Column Layout */
.emp-profile-grid {
  display: grid;
  grid-template-columns: minmax(17.5rem, 19.5rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

/* Left Sidebar Summary Card */
.emp-summary-card {
  background: #ffffff;
  border: 0.0625rem solid #e2e8f0;
  border-radius: 0.625rem;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  min-width: 0;
}

.emp-photo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.emp-photo-ring {
  position: relative;
  width: 7.75rem;
  height: 7.75rem;
  border-radius: 50%;
  border: 0.1875rem solid #0ea5e9;
  padding: 0.1875rem;
  background: #ffffff;
}

.emp-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.emp-photo-edit-badge {
  position: absolute;
  bottom: 0;
  right: 0.125rem;
  width: 2rem;
  height: 2rem;
  background: #0284c7;
  color: #ffffff;
  border-radius: 50%;
  border: 0.125rem solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, background 0.15s ease;
}

.emp-photo-edit-badge:hover {
  transform: scale(1.1);
  background: #0369a1;
}

.emp-summary-table {
  width: 100%;
  border-collapse: collapse;
}

.emp-summary-table td {
  padding: 0.55rem 0.25rem;
  font-size: 0.83rem;
  border-bottom: 0.0625rem solid #f1f5f9;
  vertical-align: top;
}

.emp-summary-label {
  color: #64748b;
  font-weight: 600;
  width: 44%;
}

.emp-summary-val {
  color: #1e293b;
  font-weight: 600;
  width: 56%;
  word-break: break-word;
}

.emp-status-pill {
  display: inline-block;
  background: #10b981;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.125rem 0.625rem;
  border-radius: 0.25rem;
}

/* Right Tabs Section */
.emp-tabs-section {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Tabs Bar */
.emp-tabs-nav {
  display: flex;
  gap: 0.125rem;
  border-bottom: none;
  background: transparent;
  overflow-x: auto;
  scrollbar-width: thin;
}

.emp-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border: 0.0625rem solid #cbd5e1;
  border-bottom: none;
  border-radius: 0.375rem 0.375rem 0 0;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.emp-tab-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.emp-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  font-weight: 700;
}

/* Tab Panel Card */
.emp-tab-panel {
  background: #ffffff;
  border: 0.0625rem solid #cbd5e1;
  border-radius: 0 0.5rem 0.5rem 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  min-width: 0;
}

.emp-tab-inner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.0625rem solid #e2e8f0;
  gap: 0.5rem;
}

.emp-tab-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.emp-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 0.375rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.emp-edit-btn:hover {
  background: #0369a1;
}

/* Personal Details Grid */
.emp-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 0.85rem;
  -moz-column-gap: 2rem;
       column-gap: 2rem;
}

.emp-detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.45rem 0.5rem;
  border-bottom: 0.0625rem dashed #e2e8f0;
  font-size: 0.86rem;
  min-width: 0;
  gap: 0.5rem;
}

.emp-detail-row.full-width {
  grid-column: span 2;
}

.emp-detail-label {
  color: #64748b;
  font-weight: 600;
  width: 45%;
  flex-shrink: 0;
}

.emp-detail-value {
  color: #0f172a;
  font-weight: 600;
  width: 55%;
  word-break: break-word;
}

/* Document cards */
.emp-doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 0.0625rem solid #e2e8f0;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.emp-doc-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.emp-doc-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}

.emp-doc-meta {
  font-size: 0.75rem;
  color: #64748b;
  word-break: break-word;
}

.emp-doc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #ffffff;
  border: 0.0625rem solid #cbd5e1;
  color: #0284c7;
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.emp-doc-action-btn:hover {
  background: #f0f9ff;
  border-color: #0284c7;
}

/* Other Info Table */
.emp-otherinfo-table {
  width: 100%;
  border: 0.0625rem solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #ffffff;
}

.emp-otherinfo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 1.25rem;
  border-bottom: 0.0625rem solid #f1f5f9;
  font-size: 0.86rem;
  transition: background 0.15s ease;
  gap: 0.5rem;
}

.emp-otherinfo-row:last-child {
  border-bottom: none;
}

.emp-otherinfo-row:nth-child(even) {
  background: #fafafa;
}

.emp-otherinfo-row:hover {
  background: #f8fafc;
}

.emp-otherinfo-label {
  color: #334155;
  font-weight: 600;
  width: 42%;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.emp-otherinfo-val {
  color: #0f172a;
  font-weight: 600;
  width: 58%;
  word-break: break-word;
}

/* Modal Form Controls */
.emp-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.emp-form-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.emp-form-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0.0625rem solid #cbd5e1;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.emp-form-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 0.125rem rgba(2, 132, 199, 0.15);
}

/* Responsive & Text Display Scaling rules */
@media (max-width: 56.25rem) {
  .emp-profile-grid {
    grid-template-columns: 1fr;
  }
  .emp-details-grid {
    grid-template-columns: 1fr;
  }
  .emp-detail-row.full-width {
    grid-column: span 1;
  }
  .emp-otherinfo-label {
    width: 50%;
  }
  .emp-otherinfo-val {
    width: 50%;
  }
}

/* Faculty Notifications Module Styles */

.fac-notif-container {
  padding: 0.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fac-notif-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.fac-notif-title-area h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fac-notif-title-area p {
  margin: 0.35rem 0 0;
  font-size: 0.83rem;
  color: #64748b;
  max-width: 720px;
  line-height: 1.45;
}

/* Summary KPI Cards Grid */
.fac-notif-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.fac-notif-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fac-notif-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.fac-notif-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fac-notif-card-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.fac-notif-card-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Category & Priority Pills */
.fac-priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.fac-priority-badge.normal { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.fac-priority-badge.important { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.fac-priority-badge.urgent { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }

/* Read Stats Bar */
.fac-read-bar-wrap {
  width: 100%;
  background: #f1f5f9;
  height: 6px;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 4px;
}

.fac-read-bar-fill {
  height: 100%;
  background: #0f766e;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Dynamic Recipient Preview Callout */
.fac-recipient-preview-banner {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #134e4a;
  margin-bottom: 1rem;
}
/* Faculty Note Sharing & Study Materials Styling */

.faculty-notes-module {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  animation: fnFadeIn 0.3s ease-out;
}

@keyframes fnFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Toast Alert */
.fn-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #0f172a;
  color: #f8fafc;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 10000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: fnSlideUp 0.25s ease-out;
}

@keyframes fnSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header Card */
.fn-header-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fn-header-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.fn-title-group {
  max-width: 780px;
}

.fn-pretitle {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #4f46e5;
  background: #eef2ff;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.fn-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.fn-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.fn-header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Primary Button */
.fn-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #ffffff;
  border: 1px solid #4338ca;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.fn-btn-primary:hover {
  background: linear-gradient(135deg, #4338ca, #3730a3);
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
  transform: translateY(-1px);
}

.fn-btn-primary:active {
  transform: translateY(0);
}

.fn-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Secondary Button */
.fn-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fn-btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Scope Strip */
.fn-scope-strip {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fn-scope-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #475569;
}

.fn-scope-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fn-scope-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: #334155;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  border: 1px solid #e2e8f0;
}

.fn-scope-chip strong {
  color: #4338ca;
}

.fn-scope-chip small {
  color: #64748b;
}

/* Metric Cards */
.fn-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .fn-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fn-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fn-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.fn-stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-emerald { background: #ecfdf5; color: #059669; }
.icon-purple { background: #f5f3ff; color: #7c3aed; }
.icon-amber { background: #fffbeb; color: #d97706; }
.icon-red { background: #fef2f2; color: #dc2626; }

.fn-stat-info {
  display: flex;
  flex-direction: column;
}

.fn-stat-num {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}

.fn-stat-label {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

/* Filter and Search Bar */
.fn-filter-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.fn-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.fn-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.fn-search-input {
  width: 100%;
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 32px 0 36px;
  font-size: 0.86rem;
  color: #0f172a;
  outline: none;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.fn-search-input:focus {
  background: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.fn-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
}

.fn-search-clear:hover {
  color: #0f172a;
}

.fn-filters-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fn-filter-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fn-filter-select-wrap label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.fn-select {
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 0.82rem;
  color: #1e293b;
  background: #ffffff;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.fn-select:focus {
  border-color: #4f46e5;
}

.fn-btn-reset {
  height: 38px;
  margin-top: 14px;
  padding: 0 12px;
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fn-btn-reset:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Materials Cards Grid */
.fn-materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}

@media (max-width: 640px) {
  .fn-materials-grid {
    grid-template-columns: 1fr;
  }
}

.fn-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  overflow: hidden;
}

.fn-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.08);
  transform: translateY(-2px);
}

.fn-card-header {
  padding: 14px 16px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.fn-type-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-type-notes { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-type-ppt { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge-type-qp { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.badge-type-assignment { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.badge-type-lab { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-type-ref { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }

.fn-sem-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.fn-card-body {
  padding: 16px;
  flex: 1;
}

.fn-subject-tag {
  font-size: 0.78rem;
  color: #4f46e5;
  margin-bottom: 6px;
}

.fn-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fn-card-topic {
  font-size: 0.8rem;
  color: #334155;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fn-card-desc {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 14px 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fn-file-meta {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fn-file-name-group {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.fn-file-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.fn-file-size {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  flex-shrink: 0;
}

.file-icon-pdf { color: #dc2626; }
.file-icon-ppt { color: #ea580c; }
.file-icon-doc { color: #2563eb; }
.file-icon-zip { color: #059669; }

.fn-card-footer {
  padding: 12px 16px;
  background: #fafafa;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fn-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fn-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  color: #64748b;
}

.fn-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fn-action-btn {
  height: 32px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.78rem;
  font-weight: 600;
}

.btn-view {
  padding: 0 10px;
  gap: 4px;
  color: #4338ca;
  background: #eef2ff;
  border-color: #c7d2fe;
}
.btn-view:hover {
  background: #e0e7ff;
}

.btn-download {
  width: 32px;
  color: #059669;
}
.btn-download:hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.btn-edit {
  width: 32px;
  color: #d97706;
}
.btn-edit:hover {
  background: #fffbeb;
  border-color: #fde68a;
}

.btn-replace {
  width: 32px;
  color: #7c3aed;
}
.btn-replace:hover {
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.btn-delete {
  width: 32px;
  color: #dc2626;
}
.btn-delete:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

/* Empty State */
.fn-empty-state {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  color: #64748b;
}

.fn-empty-icon {
  opacity: 0.35;
  margin-bottom: 12px;
  color: #4338ca;
}

.fn-empty-state h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.fn-empty-state p {
  font-size: 0.88rem;
  margin: 0;
}

.fn-spin-icon {
  animation: fnSpin 1s linear infinite;
  color: #4f46e5;
  margin-bottom: 12px;
}

@keyframes fnSpin {
  100% { transform: rotate(360deg); }
}

/* Modal Overlay */
.fn-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  animation: fnFadeIn 0.2s ease-out;
}

.fn-modal {
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.fn-modal-lg {
  max-width: 680px;
}

.fn-modal-xl {
  max-width: 1050px;
}

.fn-modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
}

.fn-modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fn-modal-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fn-modal-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.fn-modal-header p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 2px 0 0 0;
}

.fn-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.fn-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Forms */
.fn-form {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fn-form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.fn-col-12 { grid-column: span 12; }
.fn-col-6 { grid-column: span 6; }
.fn-col-4 { grid-column: span 4; }

@media (max-width: 600px) {
  .fn-col-6, .fn-col-4 {
    grid-column: span 12;
  }
}

.fn-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fn-form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fn-required {
  color: #dc2626;
}

.fn-label-hint {
  font-weight: 400;
  color: #64748b;
  margin-left: auto;
  font-size: 0.74rem;
}

.fn-form-input, .fn-form-select, .fn-form-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.88rem;
  color: #0f172a;
  outline: none;
  background: #ffffff;
  transition: all 0.15s ease;
  font-family: inherit;
}

.fn-form-input:focus, .fn-form-select:focus, .fn-form-textarea:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.fn-type-selector-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fn-type-pill-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fn-type-pill-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.fn-type-pill-btn.active {
  background: #4f46e5;
  border-color: #4338ca;
  color: #ffffff;
}

/* Dropzone */
.fn-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.fn-dropzone:hover {
  border-color: #4f46e5;
  background: #f5f7ff;
}

.fn-file-input-hidden {
  display: none;
}

.fn-dropzone-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.fn-dropzone-icon {
  color: #4f46e5;
}

.fn-dropzone-label strong {
  font-size: 0.88rem;
  color: #1e293b;
}

.fn-dropzone-hint {
  font-size: 0.75rem;
  color: #64748b;
}

.fn-selected-file-chip {
  margin-top: 12px;
  background: #ffffff;
  border: 1px solid #bbf7d0;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.fn-selected-name {
  font-weight: 600;
  color: #0f172a;
}

.fn-selected-size {
  color: #64748b;
  font-size: 0.76rem;
}

.fn-remove-file {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  padding: 2px;
  margin-left: 4px;
}

.fn-form-error {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #dc2626;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.fn-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.4;
  cursor: pointer;
}

.fn-checkbox-label input {
  margin-top: 3px;
  accent-color: #4f46e5;
}

.fn-modal-footer {
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Current File Box in Replace Modal */
.fn-current-file-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
}

.fn-box-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Preview Modal Viewport */
.fn-preview-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 520px;
  max-height: 75vh;
}

@media (max-width: 860px) {
  .fn-preview-container {
    grid-template-columns: 1fr;
  }
}

.fn-preview-viewer {
  background: #334155;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  justify-content: center;
}

.fn-doc-viewer {
  width: 100%;
  max-width: 620px;
}

.fn-doc-page {
  background: #ffffff;
  border-radius: 8px;
  padding: 32px 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fn-doc-page-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 8px;
}

.fn-doc-page-title h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin: 16px 0 8px 0;
}

.fn-doc-meta-row {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: #475569;
  flex-wrap: wrap;
}

.fn-doc-body {
  margin: 24px 0;
  flex: 1;
}

.fn-doc-body h4 {
  font-size: 0.95rem;
  color: #1e293b;
  margin: 0 0 10px 0;
}

.fn-doc-text pre {
  font-family: inherit;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
}

.fn-doc-page-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

/* PPT Viewer */
.fn-ppt-viewer {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fn-ppt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.75);
  border-radius: 8px;
  padding: 8px 14px;
  color: #f8fafc;
}

.fn-ppt-counter {
  font-size: 0.8rem;
  font-weight: 600;
}

.fn-ppt-nav {
  display: flex;
  gap: 8px;
}

.fn-ppt-nav button {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid #475569;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fn-ppt-nav button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fn-ppt-slide {
  background: #ffffff;
  border-radius: 10px;
  padding: 32px 36px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fn-slide-content h2 {
  font-size: 1.4rem;
  color: #0f172a;
  margin: 10px 0 6px 0;
}

.fn-slide-content h3 {
  font-size: 1.15rem;
  color: #1e293b;
  margin-bottom: 12px;
}

.fn-slide-content h4 {
  font-size: 0.95rem;
  color: #4338ca;
  margin: 0;
}

.fn-slide-topic-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #d97706;
  text-transform: uppercase;
}

.fn-slide-author {
  font-size: 0.84rem;
  color: #64748b;
  margin: 8px 0;
}

.fn-slide-divider {
  height: 2px;
  background: #e2e8f0;
  margin: 14px 0;
}

.fn-slide-list {
  padding-left: 20px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #334155;
}

.fn-slide-code-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px;
  font-size: 0.84rem;
  font-family: inherit;
  white-space: pre-wrap;
  color: #1e293b;
}

.fn-slide-callout {
  background: #eef2ff;
  border-left: 4px solid #4f46e5;
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
  margin-top: 16px;
}

.fn-slide-callout strong {
  color: #3730a3;
}

.fn-slide-callout span {
  color: #4338ca;
}

/* Metadata Panel in Preview */
.fn-preview-meta-panel {
  padding: 22px;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.fn-preview-meta-panel h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.fn-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fn-info-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.fn-info-label {
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 600;
}

.fn-info-val {
  color: #1e293b;
  word-break: break-word;
}

.fn-preview-actions {
  margin-top: auto;
  padding-top: 12px;
}
/* Accounts Portal Styling */

.accounts-portal-root {
  min-height: 100vh;
  background: #f8fafc;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  font-family: inherit;
}

.accounts-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.accounts-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.accounts-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #047857 0%, #10b981 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.accounts-brand-text h1 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.accounts-brand-text p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

.accounts-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.accounts-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex: 1;
  min-height: calc(100vh - 65px);
}

@media (max-width: 1024px) {
  .accounts-layout {
    grid-template-columns: 1fr;
  }
  .accounts-sidebar {
    position: fixed;
    top: 65px;
    left: 0;
    bottom: 0;
    width: 260px;
    z-index: 50;
    box-shadow: 4px 0 25px rgba(2, 6, 23, 0.5);
  }
}

.accounts-sidebar {
  background: #091326;
  background: linear-gradient(180deg, #091326 0%, #0b1a36 100%);
  border-right: 1px solid #1a2a44;
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: calc(100vh - 65px);
  max-height: calc(100vh - 65px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  box-sizing: border-box;
  position: sticky;
  top: 65px;
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.4);
}

.accounts-sidebar::-webkit-scrollbar {
  width: 5px;
}

.accounts-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Sidebar Header Area */
.accounts-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.4rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
}

.accounts-sidebar-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.accounts-sidebar-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.accounts-sidebar-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.accounts-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer !important;
  transition: all 0.2s ease;
  text-align: left;
}

.accounts-nav-btn svg {
  flex-shrink: 0;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.accounts-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  cursor: pointer !important;
}

.accounts-nav-btn:hover svg {
  color: #ffffff !important;
}

.accounts-nav-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45) !important;
  border-radius: 14px !important;
}

.accounts-nav-btn.active svg {
  color: #ffffff !important;
}

.accounts-main {
  padding: 1.75rem 2rem;
  overflow-y: auto;
  max-width: 1400px;
}

/* Accounts Filter Bar */
.accounts-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  background: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.accounts-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.accounts-filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.accounts-filter-select {
  padding: 0.45rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.825rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.accounts-filter-select:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Clickable Interactive KPI Card */
.admin-kpi-card.interactive-kpi {
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.admin-kpi-card.interactive-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: #93c5fd;
}

.kpi-click-indicator {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.7rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.admin-kpi-card.interactive-kpi:hover .kpi-click-indicator {
  opacity: 1;
  color: #2563eb;
}

/* Visual Progress Bar */
.accounts-progress-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.5rem 0 0.25rem;
}

.accounts-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Monthly Trends Visual Chart */
.accounts-trend-chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  height: 160px;
  padding: 1.25rem 0.5rem 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 0.75rem;
}

.accounts-trend-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.accounts-trend-bars-wrapper {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 120px;
  width: 100%;
  justify-content: center;
}

.accounts-bar-assessed {
  width: 14px;
  background: #94a3b8;
  border-radius: 4px 4px 0 0;
  transition: height 0.4s ease;
}

.accounts-bar-collected {
  width: 14px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 4px 4px 0 0;
  transition: height 0.4s ease;
}

.accounts-trend-bar-label {
  font-size: 0.725rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

/* Fee Head Breakdown Item */
.accounts-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.85rem;
}

.accounts-head-row:last-child {
  border-bottom: none;
}

/* Student Statement Summary Box */
.accounts-statement-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.accounts-statement-stat-label {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.accounts-statement-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

/* Badges for Clearance */
.accounts-badge-cleared {
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.accounts-badge-pending {
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.accounts-badge-partial {
  background: #fef3c7;
  color: #b45309;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Accounts Module Wrapper & KPI Grid */
.accounts-module-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.accounts-banner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.accounts-banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.accounts-cycle-tag {
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 0.375rem;
  border: 1px solid #bfdbfe;
}

.accounts-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

@media (min-width: 1280px) {
  .accounts-kpi-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.accounts-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem 1.15rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.accounts-kpi-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.accounts-kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.accounts-kpi-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.accounts-kpi-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}


/* Tailwind utilities used by Accounts tabs, scoped to the Accounts content root. */
:where(.accounts-content-root) *,
:where(.accounts-content-root) *::before,
:where(.accounts-content-root) *::after {
  box-sizing: border-box;
}

:where(.accounts-content-root) button,
:where(.accounts-content-root) input,
:where(.accounts-content-root) optgroup,
:where(.accounts-content-root) select,
:where(.accounts-content-root) textarea {
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

:where(.accounts-content-root) button {
  border: 0;
  border-radius: 0;
  background: transparent;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  cursor: pointer;
}

:where(.accounts-content-root) button:disabled {
  cursor: not-allowed;
}

:where(.accounts-content-root) h1,
:where(.accounts-content-root) h2,
:where(.accounts-content-root) h3,
:where(.accounts-content-root) h4,
:where(.accounts-content-root) h5,
:where(.accounts-content-root) h6,
:where(.accounts-content-root) p {
  margin: 0;
}

:where(.accounts-content-root) table {
  border-collapse: collapse;
  text-indent: 0;
}

:where(.accounts-content-root) select {
  max-width: 100%;
}

:where(.accounts-content-root) .pointer-events-none {
  pointer-events: none
}

:where(.accounts-content-root) .fixed {
  position: fixed
}

:where(.accounts-content-root) .absolute {
  position: absolute
}

:where(.accounts-content-root) .relative {
  position: relative
}

:where(.accounts-content-root) .sticky {
  position: sticky
}

:where(.accounts-content-root) .inset-0 {
  inset: 0px
}

:where(.accounts-content-root) .left-3 {
  left: 0.75rem
}

:where(.accounts-content-root) .top-1\/2 {
  top: 50%
}

:where(.accounts-content-root) .top-2\.5 {
  top: 0.625rem
}

:where(.accounts-content-root) .z-50 {
  z-index: 50
}

:where(.accounts-content-root) .col-span-2 {
  grid-column: span 2 / span 2
}

:where(.accounts-content-root) .-mx-5 {
  margin-left: -1.25rem;
  margin-right: -1.25rem
}

:where(.accounts-content-root) .mx-auto {
  margin-left: auto;
  margin-right: auto
}

:where(.accounts-content-root) .-mb-5 {
  margin-bottom: -1.25rem
}

:where(.accounts-content-root) .mb-0\.5 {
  margin-bottom: 0.125rem
}

:where(.accounts-content-root) .mb-1 {
  margin-bottom: 0.25rem
}

:where(.accounts-content-root) .mb-2 {
  margin-bottom: 0.5rem
}

:where(.accounts-content-root) .mb-3 {
  margin-bottom: 0.75rem
}

:where(.accounts-content-root) .mb-4 {
  margin-bottom: 1rem
}

:where(.accounts-content-root) .mb-6 {
  margin-bottom: 1.5rem
}

:where(.accounts-content-root) .ml-2 {
  margin-left: 0.5rem
}

:where(.accounts-content-root) .ml-auto {
  margin-left: auto
}

:where(.accounts-content-root) .mr-1 {
  margin-right: 0.25rem
}

:where(.accounts-content-root) .mt-0\.5 {
  margin-top: 0.125rem
}

:where(.accounts-content-root) .mt-1 {
  margin-top: 0.25rem
}

:where(.accounts-content-root) .mt-2 {
  margin-top: 0.5rem
}

:where(.accounts-content-root) .mt-3 {
  margin-top: 0.75rem
}

:where(.accounts-content-root) .mt-4 {
  margin-top: 1rem
}

:where(.accounts-content-root) .mt-auto {
  margin-top: auto
}

:where(.accounts-content-root) .block {
  display: block
}

:where(.accounts-content-root) .inline-block {
  display: inline-block
}

:where(.accounts-content-root) .flex {
  display: flex
}

:where(.accounts-content-root) .inline-flex {
  display: inline-flex
}

:where(.accounts-content-root) .table {
  display: table
}

:where(.accounts-content-root) .grid {
  display: grid
}

:where(.accounts-content-root) .hidden {
  display: none
}

:where(.accounts-content-root) .h-1\.5 {
  height: 0.375rem
}

:where(.accounts-content-root) .h-10 {
  height: 2.5rem
}

:where(.accounts-content-root) .h-12 {
  height: 3rem
}

:where(.accounts-content-root) .h-2\.5 {
  height: 0.625rem
}

:where(.accounts-content-root) .h-4 {
  height: 1rem
}

:where(.accounts-content-root) .h-64 {
  height: 16rem
}

:where(.accounts-content-root) .h-8 {
  height: 2rem
}

:where(.accounts-content-root) .h-full {
  height: 100%
}

:where(.accounts-content-root) .max-h-\[90vh\] {
  max-height: 90vh
}

:where(.accounts-content-root) .max-h-\[95vh\] {
  max-height: 95vh
}

:where(.accounts-content-root) .w-12 {
  width: 3rem
}

:where(.accounts-content-root) .w-2\.5 {
  width: 0.625rem
}

:where(.accounts-content-root) .w-24 {
  width: 6rem
}

:where(.accounts-content-root) .w-4 {
  width: 1rem
}

:where(.accounts-content-root) .w-44 {
  width: 11rem
}

:where(.accounts-content-root) .w-full {
  width: 100%
}

:where(.accounts-content-root) .min-w-\[260px\] {
  min-width: 260px
}

:where(.accounts-content-root) .max-w-2xl {
  max-width: 42rem
}

:where(.accounts-content-root) .max-w-7xl {
  max-width: 80rem
}

:where(.accounts-content-root) .max-w-lg {
  max-width: 32rem
}

:where(.accounts-content-root) .max-w-md {
  max-width: 28rem
}

:where(.accounts-content-root) .max-w-sm {
  max-width: 24rem
}

:where(.accounts-content-root) .max-w-xl {
  max-width: 36rem
}

:where(.accounts-content-root) .max-w-xs {
  max-width: 20rem
}

:where(.accounts-content-root) .flex-1 {
  flex: 1 1 0%
}

:where(.accounts-content-root) .flex-shrink {
  flex-shrink: 1
}

:where(.accounts-content-root) .shrink-0 {
  flex-shrink: 0
}

:where(.accounts-content-root) .border-collapse {
  border-collapse: collapse
}

:where(.accounts-content-root) .-translate-y-1\/2 {
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}

:where(.accounts-content-root) .transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}

:where(.accounts-content-root) .cursor-pointer {
  cursor: pointer
}

:where(.accounts-content-root) .grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr))
}

:where(.accounts-content-root) .grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

:where(.accounts-content-root) .grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

:where(.accounts-content-root) .flex-col {
  flex-direction: column
}

:where(.accounts-content-root) .flex-wrap {
  flex-wrap: wrap
}

:where(.accounts-content-root) .items-start {
  align-items: flex-start
}

:where(.accounts-content-root) .items-end {
  align-items: flex-end
}

:where(.accounts-content-root) .items-center {
  align-items: center
}

:where(.accounts-content-root) .justify-end {
  justify-content: flex-end
}

:where(.accounts-content-root) .justify-center {
  justify-content: center
}

:where(.accounts-content-root) .justify-between {
  justify-content: space-between
}

:where(.accounts-content-root) .gap-1 {
  gap: 0.25rem
}

:where(.accounts-content-root) .gap-1\.5 {
  gap: 0.375rem
}

:where(.accounts-content-root) .gap-2 {
  gap: 0.5rem
}

:where(.accounts-content-root) .gap-2\.5 {
  gap: 0.625rem
}

:where(.accounts-content-root) .gap-3 {
  gap: 0.75rem
}

:where(.accounts-content-root) .gap-4 {
  gap: 1rem
}

:where(.accounts-content-root) .gap-5 {
  gap: 1.25rem
}

:where(.accounts-content-root) .gap-6 {
  gap: 1.5rem
}

:where(.accounts-content-root) .space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse))
}

:where(.accounts-content-root) .space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.375rem * var(--tw-space-y-reverse))
}

:where(.accounts-content-root) .space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse))
}

:where(.accounts-content-root) .space-y-2\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.625rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.625rem * var(--tw-space-y-reverse))
}

:where(.accounts-content-root) .space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse))
}

:where(.accounts-content-root) .space-y-3\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.875rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.875rem * var(--tw-space-y-reverse))
}

:where(.accounts-content-root) .space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse))
}

:where(.accounts-content-root) .space-y-5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.25rem * var(--tw-space-y-reverse))
}

:where(.accounts-content-root) .space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse))
}

:where(.accounts-content-root) .divide-y > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-y-reverse: 0;
  border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
  border-bottom-width: calc(1px * var(--tw-divide-y-reverse))
}

:where(.accounts-content-root) .divide-slate-100 > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-opacity: 1;
  border-color: rgb(241 245 249 / var(--tw-divide-opacity, 1))
}

:where(.accounts-content-root) .overflow-hidden {
  overflow: hidden
}

:where(.accounts-content-root) .overflow-x-auto {
  overflow-x: auto
}

:where(.accounts-content-root) .overflow-y-auto {
  overflow-y: auto
}

:where(.accounts-content-root) .truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

:where(.accounts-content-root) .whitespace-nowrap {
  white-space: nowrap
}

:where(.accounts-content-root) .rounded {
  border-radius: 0.25rem
}

:where(.accounts-content-root) .rounded-full {
  border-radius: 9999px
}

:where(.accounts-content-root) .rounded-lg {
  border-radius: 0.5rem
}

:where(.accounts-content-root) .rounded-md {
  border-radius: 0.375rem
}

:where(.accounts-content-root) .rounded-xl {
  border-radius: 0.75rem
}

:where(.accounts-content-root) .border {
  border-width: 1px
}

:where(.accounts-content-root) .border-b {
  border-bottom-width: 1px
}

:where(.accounts-content-root) .border-b-2 {
  border-bottom-width: 2px
}

:where(.accounts-content-root) .border-t {
  border-top-width: 1px
}

:where(.accounts-content-root) .border-amber-100 {
  --tw-border-opacity: 1;
  border-color: rgb(254 243 199 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .border-amber-200 {
  --tw-border-opacity: 1;
  border-color: rgb(253 230 138 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .border-blue-100 {
  --tw-border-opacity: 1;
  border-color: rgb(219 234 254 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .border-blue-200 {
  --tw-border-opacity: 1;
  border-color: rgb(191 219 254 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .border-emerald-100 {
  --tw-border-opacity: 1;
  border-color: rgb(209 250 229 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .border-emerald-200 {
  --tw-border-opacity: 1;
  border-color: rgb(167 243 208 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .border-emerald-900 {
  --tw-border-opacity: 1;
  border-color: rgb(6 78 59 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .border-purple-200 {
  --tw-border-opacity: 1;
  border-color: rgb(233 213 255 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .border-rose-100 {
  --tw-border-opacity: 1;
  border-color: rgb(255 228 230 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .border-rose-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 205 211 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .border-slate-100 {
  --tw-border-opacity: 1;
  border-color: rgb(241 245 249 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .border-slate-200 {
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .border-slate-300 {
  --tw-border-opacity: 1;
  border-color: rgb(203 213 225 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .border-slate-400 {
  --tw-border-opacity: 1;
  border-color: rgb(148 163 184 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .border-slate-800 {
  --tw-border-opacity: 1;
  border-color: rgb(30 41 59 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .border-slate-900 {
  --tw-border-opacity: 1;
  border-color: rgb(15 23 42 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .border-white\/10 {
  border-color: rgb(255 255 255 / 0.1)
}

:where(.accounts-content-root) .bg-amber-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 243 199 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-amber-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-amber-50\/60 {
  background-color: rgb(255 251 235 / 0.6)
}

:where(.accounts-content-root) .bg-amber-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(245 158 11 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-amber-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(217 119 6 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-blue-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-blue-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-blue-50\/20 {
  background-color: rgb(239 246 255 / 0.2)
}

:where(.accounts-content-root) .bg-blue-50\/50 {
  background-color: rgb(239 246 255 / 0.5)
}

:where(.accounts-content-root) .bg-blue-50\/60 {
  background-color: rgb(239 246 255 / 0.6)
}

:where(.accounts-content-root) .bg-blue-50\/70 {
  background-color: rgb(239 246 255 / 0.7)
}

:where(.accounts-content-root) .bg-blue-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-blue-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-blue-900\/60 {
  background-color: rgb(30 58 138 / 0.6)
}

:where(.accounts-content-root) .bg-emerald-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(209 250 229 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-emerald-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(236 253 245 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-emerald-50\/20 {
  background-color: rgb(236 253 245 / 0.2)
}

:where(.accounts-content-root) .bg-emerald-50\/50 {
  background-color: rgb(236 253 245 / 0.5)
}

:where(.accounts-content-root) .bg-emerald-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(16 185 129 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-emerald-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(5 150 105 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-emerald-900\/80 {
  background-color: rgb(6 78 59 / 0.8)
}

:where(.accounts-content-root) .bg-emerald-950 {
  --tw-bg-opacity: 1;
  background-color: rgb(2 44 34 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-indigo-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(238 242 255 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-orange-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 247 237 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-purple-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 232 255 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-purple-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(250 245 255 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-purple-50\/50 {
  background-color: rgb(250 245 255 / 0.5)
}

:where(.accounts-content-root) .bg-purple-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(147 51 234 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-rose-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 228 230 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-rose-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 241 242 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-rose-50\/20 {
  background-color: rgb(255 241 242 / 0.2)
}

:where(.accounts-content-root) .bg-rose-50\/60 {
  background-color: rgb(255 241 242 / 0.6)
}

:where(.accounts-content-root) .bg-rose-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(244 63 94 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-rose-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(225 29 72 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-sky-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(240 249 255 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-slate-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-slate-100\/75 {
  background-color: rgb(241 245 249 / 0.75)
}

:where(.accounts-content-root) .bg-slate-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(226 232 240 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-slate-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-slate-50\/50 {
  background-color: rgb(248 250 252 / 0.5)
}

:where(.accounts-content-root) .bg-slate-800 {
  --tw-bg-opacity: 1;
  background-color: rgb(30 41 59 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-slate-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(15 23 42 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-slate-900\/50 {
  background-color: rgb(15 23 42 / 0.5)
}

:where(.accounts-content-root) .bg-slate-900\/60 {
  background-color: rgb(15 23 42 / 0.6)
}

:where(.accounts-content-root) .bg-teal-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(240 253 250 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .bg-white\/10 {
  background-color: rgb(255 255 255 / 0.1)
}

:where(.accounts-content-root) .bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops))
}

:where(.accounts-content-root) .from-slate-900 {
  --tw-gradient-from: #0f172a var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)
}

:where(.accounts-content-root) .to-blue-950 {
  --tw-gradient-to: #172554 var(--tw-gradient-to-position)
}

:where(.accounts-content-root) .p-1 {
  padding: 0.25rem
}

:where(.accounts-content-root) .p-1\.5 {
  padding: 0.375rem
}

:where(.accounts-content-root) .p-2 {
  padding: 0.5rem
}

:where(.accounts-content-root) .p-2\.5 {
  padding: 0.625rem
}

:where(.accounts-content-root) .p-3 {
  padding: 0.75rem
}

:where(.accounts-content-root) .p-3\.5 {
  padding: 0.875rem
}

:where(.accounts-content-root) .p-4 {
  padding: 1rem
}

:where(.accounts-content-root) .p-5 {
  padding: 1.25rem
}

:where(.accounts-content-root) .p-6 {
  padding: 1.5rem
}

:where(.accounts-content-root) .p-8 {
  padding: 2rem
}

:where(.accounts-content-root) .px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem
}

:where(.accounts-content-root) .px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem
}

:where(.accounts-content-root) .px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem
}

:where(.accounts-content-root) .px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem
}

:where(.accounts-content-root) .px-3\.5 {
  padding-left: 0.875rem;
  padding-right: 0.875rem
}

:where(.accounts-content-root) .px-4 {
  padding-left: 1rem;
  padding-right: 1rem
}

:where(.accounts-content-root) .px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem
}

:where(.accounts-content-root) .py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem
}

:where(.accounts-content-root) .py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem
}

:where(.accounts-content-root) .py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem
}

:where(.accounts-content-root) .py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem
}

:where(.accounts-content-root) .py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem
}

:where(.accounts-content-root) .py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem
}

:where(.accounts-content-root) .py-3\.5 {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem
}

:where(.accounts-content-root) .py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem
}

:where(.accounts-content-root) .py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem
}

:where(.accounts-content-root) .pb-1 {
  padding-bottom: 0.25rem
}

:where(.accounts-content-root) .pb-2 {
  padding-bottom: 0.5rem
}

:where(.accounts-content-root) .pb-3 {
  padding-bottom: 0.75rem
}

:where(.accounts-content-root) .pb-4 {
  padding-bottom: 1rem
}

:where(.accounts-content-root) .pl-9 {
  padding-left: 2.25rem
}

:where(.accounts-content-root) .pr-3 {
  padding-right: 0.75rem
}

:where(.accounts-content-root) .pr-4 {
  padding-right: 1rem
}

:where(.accounts-content-root) .pt-0\.5 {
  padding-top: 0.125rem
}

:where(.accounts-content-root) .pt-1 {
  padding-top: 0.25rem
}

:where(.accounts-content-root) .pt-10 {
  padding-top: 2.5rem
}

:where(.accounts-content-root) .pt-2 {
  padding-top: 0.5rem
}

:where(.accounts-content-root) .pt-3 {
  padding-top: 0.75rem
}

:where(.accounts-content-root) .pt-8 {
  padding-top: 2rem
}

:where(.accounts-content-root) .text-left {
  text-align: left
}

:where(.accounts-content-root) .text-center {
  text-align: center
}

:where(.accounts-content-root) .text-right {
  text-align: right
}

:where(.accounts-content-root) .font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace
}

:where(.accounts-content-root) .font-sans {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"
}

:where(.accounts-content-root) .text-2xl {
  font-size: 1.5rem;
  line-height: 2rem
}

:where(.accounts-content-root) .text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem
}

:where(.accounts-content-root) .text-\[10px\] {
  font-size: 10px
}

:where(.accounts-content-root) .text-\[11px\] {
  font-size: 11px
}

:where(.accounts-content-root) .text-base {
  font-size: 1rem;
  line-height: 1.5rem
}

:where(.accounts-content-root) .text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem
}

:where(.accounts-content-root) .text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem
}

:where(.accounts-content-root) .text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem
}

:where(.accounts-content-root) .text-xs {
  font-size: 0.75rem;
  line-height: 1rem
}

:where(.accounts-content-root) .font-black {
  font-weight: 900
}

:where(.accounts-content-root) .font-bold {
  font-weight: 700
}

:where(.accounts-content-root) .font-extrabold {
  font-weight: 800
}

:where(.accounts-content-root) .font-medium {
  font-weight: 500
}

:where(.accounts-content-root) .font-semibold {
  font-weight: 600
}

:where(.accounts-content-root) .uppercase {
  text-transform: uppercase
}

:where(.accounts-content-root) .italic {
  font-style: italic
}

:where(.accounts-content-root) .tracking-wide {
  letter-spacing: 0.025em
}

:where(.accounts-content-root) .tracking-wider {
  letter-spacing: 0.05em
}

:where(.accounts-content-root) .text-amber-300 {
  --tw-text-opacity: 1;
  color: rgb(252 211 77 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-amber-400 {
  --tw-text-opacity: 1;
  color: rgb(251 191 36 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-amber-500 {
  --tw-text-opacity: 1;
  color: rgb(245 158 11 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-amber-600 {
  --tw-text-opacity: 1;
  color: rgb(217 119 6 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-amber-700 {
  --tw-text-opacity: 1;
  color: rgb(180 83 9 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-amber-800 {
  --tw-text-opacity: 1;
  color: rgb(146 64 14 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-amber-900 {
  --tw-text-opacity: 1;
  color: rgb(120 53 15 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-blue-200 {
  --tw-text-opacity: 1;
  color: rgb(191 219 254 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-blue-300 {
  --tw-text-opacity: 1;
  color: rgb(147 197 253 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-blue-400 {
  --tw-text-opacity: 1;
  color: rgb(96 165 250 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-blue-600 {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-blue-700 {
  --tw-text-opacity: 1;
  color: rgb(29 78 216 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-blue-800 {
  --tw-text-opacity: 1;
  color: rgb(30 64 175 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-blue-900 {
  --tw-text-opacity: 1;
  color: rgb(30 58 138 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-emerald-200 {
  --tw-text-opacity: 1;
  color: rgb(167 243 208 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-emerald-300 {
  --tw-text-opacity: 1;
  color: rgb(110 231 183 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-emerald-400 {
  --tw-text-opacity: 1;
  color: rgb(52 211 153 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-emerald-600 {
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-emerald-700 {
  --tw-text-opacity: 1;
  color: rgb(4 120 87 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-emerald-800 {
  --tw-text-opacity: 1;
  color: rgb(6 95 70 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-emerald-900 {
  --tw-text-opacity: 1;
  color: rgb(6 78 59 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-emerald-950 {
  --tw-text-opacity: 1;
  color: rgb(2 44 34 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-indigo-600 {
  --tw-text-opacity: 1;
  color: rgb(79 70 229 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-indigo-700 {
  --tw-text-opacity: 1;
  color: rgb(67 56 202 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-orange-600 {
  --tw-text-opacity: 1;
  color: rgb(234 88 12 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-orange-700 {
  --tw-text-opacity: 1;
  color: rgb(194 65 12 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-purple-300 {
  --tw-text-opacity: 1;
  color: rgb(216 180 254 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-purple-400 {
  --tw-text-opacity: 1;
  color: rgb(192 132 252 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-purple-600 {
  --tw-text-opacity: 1;
  color: rgb(147 51 234 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-purple-700 {
  --tw-text-opacity: 1;
  color: rgb(126 34 206 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-purple-800 {
  --tw-text-opacity: 1;
  color: rgb(107 33 168 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-purple-900 {
  --tw-text-opacity: 1;
  color: rgb(88 28 135 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-rose-600 {
  --tw-text-opacity: 1;
  color: rgb(225 29 72 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-rose-700 {
  --tw-text-opacity: 1;
  color: rgb(190 18 60 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-rose-800 {
  --tw-text-opacity: 1;
  color: rgb(159 18 57 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-rose-900 {
  --tw-text-opacity: 1;
  color: rgb(136 19 55 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-sky-300 {
  --tw-text-opacity: 1;
  color: rgb(125 211 252 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-sky-400 {
  --tw-text-opacity: 1;
  color: rgb(56 189 248 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-sky-600 {
  --tw-text-opacity: 1;
  color: rgb(2 132 199 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-sky-700 {
  --tw-text-opacity: 1;
  color: rgb(3 105 161 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-slate-200 {
  --tw-text-opacity: 1;
  color: rgb(226 232 240 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-slate-300 {
  --tw-text-opacity: 1;
  color: rgb(203 213 225 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-slate-400 {
  --tw-text-opacity: 1;
  color: rgb(148 163 184 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-slate-500 {
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-slate-600 {
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-slate-700 {
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-slate-800 {
  --tw-text-opacity: 1;
  color: rgb(30 41 59 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-slate-900 {
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-teal-600 {
  --tw-text-opacity: 1;
  color: rgb(13 148 136 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-teal-700 {
  --tw-text-opacity: 1;
  color: rgb(15 118 110 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .shadow-2xl {
  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}

:where(.accounts-content-root) .shadow-xl {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}

:where(.accounts-content-root) .outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px
}

:where(.accounts-content-root) .outline {
  outline-style: solid
}

:where(.accounts-content-root) .filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
}

:where(.accounts-content-root) .transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms
}

:where(.accounts-content-root) .hover\:border-amber-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(252 211 77 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .hover\:border-blue-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(147 197 253 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .hover\:border-indigo-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(165 180 252 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .hover\:border-orange-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(253 186 116 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .hover\:border-purple-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(216 180 254 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .hover\:border-rose-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(253 164 175 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .hover\:border-teal-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(94 234 212 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .hover\:bg-amber-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(180 83 9 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .hover\:bg-blue-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .hover\:bg-blue-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .hover\:bg-emerald-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(4 120 87 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .hover\:bg-rose-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(255 228 230 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .hover\:bg-rose-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(190 18 60 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .hover\:bg-slate-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .hover\:bg-slate-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(226 232 240 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .hover\:bg-slate-300:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(203 213 225 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .hover\:bg-slate-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .hover\:bg-slate-50\/80:hover {
  background-color: rgb(248 250 252 / 0.8)
}

:where(.accounts-content-root) .hover\:bg-slate-800:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(30 41 59 / var(--tw-bg-opacity, 1))
}

:where(.accounts-content-root) .hover\:text-blue-800:hover {
  --tw-text-opacity: 1;
  color: rgb(30 64 175 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .hover\:text-rose-800:hover {
  --tw-text-opacity: 1;
  color: rgb(159 18 57 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .hover\:text-slate-600:hover {
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .hover\:text-slate-900:hover {
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .hover\:text-white:hover {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1))
}

:where(.accounts-content-root) .hover\:underline:hover {
  text-decoration-line: underline
}

:where(.accounts-content-root) .focus\:border-blue-500:focus {
  --tw-border-opacity: 1;
  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1))
}

:where(.accounts-content-root) .group:hover .group-hover\:scale-105 {
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}

@media (min-width: 768px) {
  :where(.accounts-content-root) .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  :where(.accounts-content-root) .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  :where(.accounts-content-root) .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr))
  }

  :where(.accounts-content-root) .md\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr))
  }

  :where(.accounts-content-root) .md\:flex-row {
    flex-direction: row
  }

  :where(.accounts-content-root) .md\:p-6 {
    padding: 1.5rem
  }
}

@media (min-width: 1024px) {
  :where(.accounts-content-root) .lg\:col-span-2 {
    grid-column: span 2 / span 2
  }

  :where(.accounts-content-root) .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}
.accounts-dashboard {
  gap: 1.25rem;
  min-width: 0;
  color: #172033;
}

.accounts-dashboard__banner {
  padding: 1rem 1.15rem;
  border-color: #dce4ee;
  border-radius: 0.9rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
}

.accounts-dashboard__banner-copy {
  min-width: 15rem;
  flex: 1 1 24rem;
  gap: 0.7rem;
}

.accounts-dashboard__banner-copy > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.55rem;
}

.accounts-dashboard__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.accounts-dashboard__actions > * {
  min-height: 2.25rem;
}

.accounts-dashboard__actions select,
.accounts-dashboard__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #d7e0eb;
  border-radius: 0.55rem;
  background: #fff;
  color: #344256;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}

.accounts-dashboard__actions .accounts-dashboard__record-action {
  border-color: #1d4ed8;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.2);
}

.accounts-dashboard__actions .accounts-dashboard__record-action:hover {
  background: #1d4ed8;
}

.accounts-dashboard__actions .accounts-dashboard__audit-action:hover {
  background: #f8fafc;
  border-color: #c3d0df;
}

.accounts-dashboard__year-select {
  max-width: 100%;
}

.accounts-dashboard__kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.accounts-dashboard__kpi-card {
  min-width: 0;
  min-height: 8.6rem;
  padding: 1rem;
  border-radius: 0.85rem;
  border-color: #e1e7ef;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.035);
}

.accounts-dashboard__kpi-card:hover {
  transform: translateY(-1px);
}

.accounts-dashboard__kpi-card .accounts-kpi-card-header {
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.accounts-dashboard__kpi-card .accounts-kpi-title,
.accounts-dashboard__kpi-card .accounts-kpi-card-header > span {
  font-size: 0.69rem;
  line-height: 1.4;
  letter-spacing: 0.035em;
}

.accounts-dashboard__kpi-card .accounts-kpi-val,
.accounts-dashboard__kpi-card > .text-2xl {
  font-size: clamp(1.25rem, 1.65vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.accounts-dashboard__kpi-card > .text-xs {
  min-height: 1.15rem;
  line-height: 1.45;
}

.accounts-dashboard__kpi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.45rem;
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.4;
}

.accounts-dashboard__kpi-footer > span:first-child {
  min-width: 0;
}

.accounts-dashboard__kpi-footer > span:last-child {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.1rem;
  font-weight: 650;
  white-space: nowrap;
}

.accounts-dashboard__kpi-note {
  margin-top: 0.45rem;
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.4;
}

.accounts-dashboard__kpi-card:nth-child(3) .accounts-kpi-val { color: #be123c; }
.accounts-dashboard__kpi-card:nth-child(4) .accounts-kpi-val { color: #0369a1; }
.accounts-dashboard__kpi-card:nth-child(5) .accounts-kpi-val { color: #7e22ce; }
.accounts-dashboard__kpi-card:nth-child(6) .accounts-kpi-val { color: #b45309; }
.accounts-dashboard__kpi-card:nth-child(7) .accounts-kpi-val { color: #4338ca; }
.accounts-dashboard__kpi-card:nth-child(9) .accounts-kpi-val { color: #c2410c; }
.accounts-dashboard__kpi-card:nth-child(10) .accounts-kpi-val { color: #0f766e; }

.accounts-dashboard__kpi-card--income {
  background: #064e3b;
  border-color: #065f46;
  color: #ecfdf5;
}

.accounts-dashboard__kpi-card--income .accounts-kpi-card-header > span,
.accounts-dashboard__kpi-card--income > .text-2xl {
  color: #a7f3d0;
}

.accounts-dashboard__kpi-note--income {
  color: #a7f3d0;
}

.accounts-dashboard__kpi-card--liquidity {
  background: #0f172a;
  border-color: #1e293b;
  color: #f8fafc;
}

.accounts-dashboard__kpi-card--liquidity .accounts-kpi-card-header > span {
  color: #cbd5e1;
}

.accounts-dashboard__kpi-card--liquidity > .text-2xl {
  color: #fcd34d;
}

.accounts-dashboard__kpi-note--liquidity {
  color: #cbd5e1;
}

.accounts-dashboard__panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid #e1e7ef;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
}

.accounts-dashboard__chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.accounts-content-root .accounts-dashboard__chart-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accounts-dashboard__operations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.accounts-content-root .accounts-dashboard__operations {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accounts-dashboard__chart-grid,
.accounts-dashboard__operations {
  min-width: 0;
  gap: 1rem;
}

.accounts-dashboard__chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.accounts-dashboard__chart-header h3,
.accounts-dashboard__breakdown h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.25rem;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
}

.accounts-dashboard__chart-header p,
.accounts-dashboard__breakdown > div:first-child p {
  margin: 0;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.45;
}

.accounts-dashboard__chart-toggles {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 0.6rem;
  background: #f1f5f9;
}

.accounts-dashboard__chart-toggle {
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.accounts-dashboard__chart-toggle.is-active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.accounts-dashboard__trend-chart {
  min-width: 0;
  margin-top: 0;
}

.accounts-dashboard__trend-panel {
  justify-content: flex-start;
}

.accounts-dashboard__trend-chart .recharts-wrapper,
.accounts-dashboard__donut .recharts-wrapper {
  max-width: 100%;
}

.accounts-dashboard__trend-chart .recharts-cartesian-axis-tick-value {
  font-size: 0.68rem;
}

.accounts-dashboard__trend-chart .recharts-legend-wrapper {
  font-size: 0.72rem;
}

.accounts-dashboard__breakdown {
  justify-content: flex-start;
}

.accounts-dashboard__breakdown > div:first-child {
  flex: 0 0 auto;
}

.accounts-dashboard__donut {
  position: relative;
  flex: 0 0 11.5rem;
  width: 100%;
  max-width: 17rem;
  height: 11.5rem !important;
  margin: 0.2rem auto 0.5rem;
}

.accounts-dashboard__donut > div:last-child {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.accounts-dashboard__donut > div:last-child > span:first-child {
  color: #1e293b;
  font-size: 1rem;
  font-weight: 800;
}

.accounts-dashboard__donut > div:last-child > span:last-child {
  color: #94a3b8;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.accounts-dashboard__breakdown-list {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e8edf3;
}

.accounts-dashboard__breakdown-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 0.65rem;
  line-height: 1.35;
}

.accounts-dashboard__breakdown-list > div > div {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.accounts-dashboard__breakdown-list > div > span {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #1e293b;
  font-size: 0.69rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.accounts-dashboard__operations > .accounts-dashboard__panel {
  padding: 1rem;
}

.accounts-dashboard__treasury-panel {
  border-color: #172554;
  background: linear-gradient(145deg, #0f172a, #172554);
  color: #f8fafc;
}

.accounts-dashboard__treasury-panel > div:first-child > div:first-child,
.accounts-dashboard__treasury-panel > p {
  margin-bottom: 0.9rem;
}

.accounts-dashboard__operations button {
  white-space: nowrap;
}

.accounts-dashboard__widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid #e8edf3;
}

.accounts-dashboard__widget-header > span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  color: #334155;
  font-size: 0.73rem;
  font-weight: 750;
  line-height: 1.35;
}

.accounts-dashboard__widget-header button,
.accounts-dashboard__inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0.35rem 0.5rem;
  border: 1px solid #dbe5f0;
  border-radius: 0.45rem;
  background: #fff;
  color: #1d4ed8;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.accounts-dashboard__widget-header button:hover,
.accounts-dashboard__inline-action:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  text-decoration: none;
}

.accounts-dashboard__receipts {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.accounts-dashboard__alert-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem;
  border: 1px solid;
  border-radius: 0.6rem;
}

.accounts-dashboard__alert-item--risk { border-color: #ffe4e6; background: #fff1f2; }
.accounts-dashboard__alert-item--due { border-color: #fef3c7; background: #fffbeb; }
.accounts-dashboard__alert-item--schedule { border-color: #dbeafe; background: #eff6ff; }

.accounts-dashboard__alert-item > div {
  min-width: 0;
  color: #334155;
  font-size: 0.7rem;
  line-height: 1.45;
}

.accounts-dashboard__alert-item > div > div:first-child {
  margin-bottom: 0.15rem;
  font-weight: 750;
}

.accounts-dashboard__alert-item--risk > div > div:first-child { color: #881337; }
.accounts-dashboard__alert-item--risk > div > div:last-child { color: #be123c; }
.accounts-dashboard__alert-item--due > div > div:first-child { color: #78350f; }
.accounts-dashboard__alert-item--due > div > div:last-child { color: #b45309; }
.accounts-dashboard__alert-item--schedule > div > div:first-child { color: #1e3a8a; }
.accounts-dashboard__alert-item--schedule > div > div:last-child { color: #1d4ed8; }

.accounts-dashboard__treasury-panel .accounts-dashboard__widget-header {
  border-color: rgba(255, 255, 255, 0.12);
}

.accounts-dashboard__treasury-panel .accounts-dashboard__widget-header > span {
  color: #bfdbfe;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.accounts-dashboard__treasury-panel > div:last-child > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.68rem;
  line-height: 1.35;
}

.accounts-dashboard__treasury-panel > div:last-child > div > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.accounts-dashboard__treasury-panel > div:last-child > div > span:last-child {
  justify-content: flex-end;
  color: #a7f3d0;
  font-size: 0.64rem;
  font-weight: 700;
  text-align: right;
}

.accounts-dashboard__treasury-panel > div:last-child > div + div {
  margin-top: 0.45rem;
}

.accounts-dashboard__treasury-panel > div:first-child > p {
  margin: 0 0 0.8rem;
  color: #cbd5e1;
  font-size: 0.7rem;
  line-height: 1.5;
}

.accounts-dashboard__inline-action {
  padding: 0.3rem 0.1rem 0.3rem 0.45rem;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.accounts-dashboard__inline-action:hover {
  text-decoration: underline;
}

.accounts-dashboard__receipt-row {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid #e8edf3;
  border-radius: 0.65rem;
  border-color: #e8edf3;
  background: #f8fafc;
}

.accounts-dashboard__receipt-row > div:first-child {
  gap: 0.75rem;
}

.accounts-dashboard__receipt-row > div:first-child > div {
  min-width: 0;
}

.accounts-dashboard__receipt-row > div:first-child > div:first-child > div:first-child {
  color: #1e293b;
  font-size: 0.76rem;
  font-weight: 700;
}

.accounts-dashboard__receipt-row > div:first-child > div:first-child > div:last-child {
  margin-top: 0.2rem;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.67rem;
}

.accounts-dashboard__receipt-row strong {
  flex: 0 0 auto;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.accounts-dashboard__receipt-row > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.65rem;
}

.accounts-dashboard__receipt-row > div:last-child > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1279px) {
  .accounts-dashboard__kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .accounts-dashboard__chart-grid,
  .accounts-dashboard__operations {
    grid-template-columns: minmax(0, 1fr);
  }

  .accounts-content-root .accounts-dashboard__chart-grid,
  .accounts-content-root .accounts-dashboard__operations {
    grid-template-columns: minmax(0, 1fr);
  }

  .accounts-dashboard__chart-grid > *,
  .accounts-dashboard__operations > * {
    min-width: 0;
  }
}

@media (max-width: 700px) {
  .accounts-dashboard {
    gap: 1rem;
  }

  .accounts-dashboard__banner {
    align-items: stretch;
    padding: 0.9rem;
  }

  .accounts-dashboard__banner-copy {
    min-width: 0;
  }

  .accounts-dashboard__banner-copy > div {
    min-width: 0;
  }

  .accounts-dashboard__actions {
    justify-content: stretch;
  }

  .accounts-dashboard__actions > * {
    flex: 1 1 9rem;
    justify-content: center;
  }

  .accounts-dashboard__kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .accounts-dashboard__kpi-card {
    min-height: 8.2rem;
    padding: 0.85rem;
  }

  .accounts-dashboard__kpi-card .accounts-kpi-card-header > div {
    flex: 0 0 auto;
    padding: 0.4rem;
  }

  .accounts-dashboard__donut {
    flex-basis: 10.5rem;
    height: 10.5rem !important;
  }

  .accounts-dashboard__panel {
    padding: 1rem;
  }

  .accounts-dashboard__chart-header {
    align-items: stretch;
  }

  .accounts-dashboard__chart-toggles {
    align-self: flex-start;
    max-width: 100%;
  }

  .accounts-dashboard__chart-toggle {
    padding-inline: 0.55rem;
    font-size: 0.68rem;
  }

  .accounts-dashboard__trend-chart {
    height: 245px !important;
  }
}

@media (max-width: 390px) {
  .accounts-dashboard__kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .accounts-dashboard__kpi-card {
    min-height: 7.5rem;
  }

  .accounts-dashboard__actions > * {
    flex-basis: 100%;
  }
}
/* ==========================================================================
   APNA CAMPUS — STUDENT FINANCE ENTERPRISE STYLES
   Native College ERP Design System (100% scoped, self-contained, no-AI-rainbow)
   Brand Colors:
     - Canvas: #f8fafc / #ffffff
     - Primary Brand Blue: #2563eb (hover: #1d4ed8)
     - Neutral Borders: #e2e8f0 / #dce4ee
     - Typography: #0f172a (primary), #334155 (secondary), #64748b (muted)
   ========================================================================== */

.asf-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  color: #0f172a;
  font-family: inherit;
  box-sizing: border-box;
}

.asf-wrap * {
  box-sizing: border-box;
}

/* ==========================================================================
   1. KPI SUMMARY CARDS
   ========================================================================== */
.asf-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
}

@media (max-width: 1024px) {
  .asf-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .asf-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.asf-kpi-card {
  background: #ffffff;
  border: 1px solid #e1e7ef;
  border-radius: 0.85rem;
  padding: 1rem 1.15rem;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.035);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 8.2rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.asf-kpi-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.asf-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.asf-kpi-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin: 0;
}

.asf-kpi-val {
  font-size: clamp(1.4rem, 1.8vw, 1.75rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 0.35rem 0 0.2rem 0;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}

.asf-kpi-sub {
  font-size: 0.72rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

/* ==========================================================================
   2. CONTENT PANELS
   ========================================================================== */
.asf-panel {
  background: #ffffff;
  border: 1px solid #e1e7ef;
  border-radius: 0.85rem;
  padding: 1.25rem;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.035);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.asf-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}

.asf-panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.asf-panel-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0.2rem 0 0 0;
}

/* Institutional Notice Banner (Clean Slate, Not Rainbow) */
.asf-info-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.9rem 1.15rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2563eb;
  border-radius: 0.65rem;
  font-size: 0.78rem;
  color: #334155;
}

.asf-info-banner.urgent {
  border-left-color: #e11d48;
  background: #fffbfa;
}

.asf-info-banner strong {
  color: #0f172a;
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

/* ==========================================================================
   3. TOOLBARS, SEARCH & FORM CONTROLS
   ========================================================================== */
.asf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid #e1e7ef;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.asf-search-box {
  position: relative;
  flex: 1 1 240px;
  min-width: 220px;
}

.asf-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.asf-search-input {
  width: 100%;
  height: 2.35rem;
  padding: 0.45rem 0.75rem 0.45rem 2.25rem;
  font-size: 0.8rem;
  background: #f8fafc;
  border: 1px solid #d1d5db;
  border-radius: 0.55rem;
  color: #0f172a;
  outline: none;
  transition: all 0.15s ease;
}

.asf-search-input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.asf-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.asf-select {
  height: 2.35rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 550;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.55rem;
  color: #334155;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.asf-select:focus {
  border-color: #2563eb;
}

/* ==========================================================================
   4. BUTTONS (Standard College ERP Styles)
   ========================================================================== */
.asf-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 2.35rem;
  padding: 0.5rem 0.95rem;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 650;
  border: 1px solid #1d4ed8;
  border-radius: 0.55rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.asf-btn-primary:hover {
  background: #1d4ed8;
}

.asf-btn-primary:active {
  transform: scale(0.98);
}

.asf-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 2.35rem;
  padding: 0.5rem 0.85rem;
  background: #ffffff;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #d7e0eb;
  border-radius: 0.55rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.asf-btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.asf-btn-emerald {
  background: #059669;
  border-color: #047857;
  color: #ffffff;
}

.asf-btn-emerald:hover {
  background: #047857;
}

.asf-btn-danger {
  background: #ffffff;
  color: #e11d48;
  border-color: #fecdd3;
}

.asf-btn-danger:hover {
  background: #fff1f2;
  border-color: #fda4af;
}

.asf-btn-sm {
  height: 1.85rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  border-radius: 0.45rem;
}

/* ==========================================================================
   5. DATA TABLES (Readable, Clean, Consistent)
   ========================================================================== */
.asf-table-container {
  background: #ffffff;
  border: 1px solid #e1e7ef;
  border-radius: 0.85rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.035);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.asf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: left;
}

.asf-table th {
  background: #f8fafc;
  padding: 0.8rem 1rem;
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.asf-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.asf-table tr:hover td {
  background: #f8fafc;
}

.asf-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   6. STATUS BADGES
   ========================================================================== */
.asf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.asf-badge.cleared,
.asf-badge.paid,
.asf-badge.active,
.asf-badge.verified,
.asf-badge.settled {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.asf-badge.partial,
.asf-badge.pending {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.asf-badge.overdue,
.asf-badge.defaulter,
.asf-badge.hold,
.asf-badge.rejected {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.asf-badge.approved,
.asf-badge.sanctioned {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.asf-badge.neutral {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* ==========================================================================
   7. COHORT DEPARTMENTAL MATRIX CARDS (Page 1)
   ========================================================================== */
.asf-cohort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
  width: 100%;
}

.asf-cohort-card {
  padding: 0.95rem 1.05rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: all 0.15s ease;
}

.asf-cohort-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

.asf-cohort-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.asf-cohort-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asf-cohort-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748b;
}

.asf-progress-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.asf-progress-bar {
  height: 100%;
  border-radius: 9999px;
  background: #2563eb;
  transition: width 0.3s ease;
}

.asf-progress-bar.success { background: #059669; }
.asf-progress-bar.warning { background: #d97706; }

/* ==========================================================================
   8. TARIFF MATRIX CARDS (Page 2)
   ========================================================================== */
.asf-tariff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  width: 100%;
}

.asf-tariff-card {
  background: #ffffff;
  border: 1px solid #e1e7ef;
  border-radius: 0.85rem;
  padding: 1.15rem;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.035);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.asf-tariff-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.asf-tariff-breakdown {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.75rem;
}

.asf-tariff-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #475569;
}

.asf-tariff-row strong {
  color: #0f172a;
}

.asf-tariff-totals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   9. CASHIER COUNTER LAYOUT (Page 3)
   ========================================================================== */
.asf-counter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .asf-counter-grid {
    grid-template-columns: 1fr;
  }
}

.asf-form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 640px) {
  .asf-form-2col {
    grid-template-columns: 1fr;
  }
}

.asf-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.asf-form-group label {
  font-size: 0.74rem;
  font-weight: 650;
  color: #334155;
}

.asf-form-input,
.asf-form-select {
  height: 2.35rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.55rem;
  color: #0f172a;
  outline: none;
  width: 100%;
}

.asf-form-input:focus,
.asf-form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.asf-recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.asf-recent-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.asf-recent-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

/* ==========================================================================
   10. MODALS & DRAWERS
   ========================================================================== */
.asf-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.asf-modal-card {
  background: #ffffff;
  border: 1px solid #e1e7ef;
  border-radius: 0.85rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 32rem;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.asf-modal-header {
  padding: 1rem 1.25rem;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.asf-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.asf-modal-footer {
  padding: 0.85rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid #e1e7ef;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}
/* Hostel Portal Styles */

.hostel-portal-root {
  min-height: 100vh;
  background: #f8fafc;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  font-family: inherit;
}

.hostel-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.hostel-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.hostel-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.2);
}

.hostel-brand-text h1 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.hostel-brand-text p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

.hostel-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #7c3aed;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.hostel-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  flex: 1;
  min-height: calc(100vh - 65px);
  width: 100%;
  transition: grid-template-columns 0.2s ease;
}

.hostel-layout.sidebar-closed,
.hostel-layout:not(:has(.hostel-sidebar)) {
  grid-template-columns: 1fr;
}

@media (max-width: 1024px) {
  .hostel-layout {
    grid-template-columns: 1fr;
  }
  .hostel-sidebar {
    position: fixed;
    top: 65px;
    left: 0;
    bottom: 0;
    width: 260px;
    z-index: 50;
    box-shadow: 4px 0 25px rgba(2, 6, 23, 0.5);
  }
}

.hostel-sidebar {
  background: #091326;
  background: linear-gradient(180deg, #091326 0%, #0b1a36 100%);
  border-right: 1px solid #1a2a44;
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: calc(100vh - 65px);
  max-height: calc(100vh - 65px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  box-sizing: border-box;
  position: sticky;
  top: 65px;
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.4);
}

.hostel-sidebar::-webkit-scrollbar {
  width: 5px;
}

.hostel-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.hostel-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Sidebar Header Area */
.hostel-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.4rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
}

.hostel-sidebar-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hostel-sidebar-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.hostel-sidebar-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.hostel-nav-category {
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0.85rem 0 0.25rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}


.hostel-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer !important;
  transition: all 0.2s ease;
  text-align: left;
}

.hostel-nav-btn svg {
  flex-shrink: 0;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.hostel-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  cursor: pointer !important;
}

.hostel-nav-btn:hover svg {
  color: #ffffff !important;
}

.hostel-nav-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45) !important;
  border-radius: 14px !important;
}

.hostel-nav-btn.active svg {
  color: #ffffff !important;
}

.hostel-main {
  padding: 1.75rem 2rem;
  overflow-y: auto;
  max-width: 1400px;
}

/* Interactive Hostel Cards */
.hostel-card-interactive {
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
}

.hostel-card-interactive:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.12);
  border-color: #c4b5fd;
}

.hostel-card-interactive.selected {
  border-color: #7c3aed;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.16);
  transform: translateY(-2px);
}

.hostel-selected-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #7c3aed;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Detailed Hostel Panel */
.hostel-details-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.hostel-details-header-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.hostel-switcher-bar {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.hostel-switcher-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hostel-switcher-tab:hover {
  background: #f8fafc;
  color: #0f172a;
}

.hostel-switcher-tab.active {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

/* Room Accordion / Dropdown */
.hostel-room-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 0.9rem;
  overflow: hidden;
  background: #ffffff;
  transition: all 0.2s ease;
}

.hostel-room-card:hover {
  border-color: #c4b5fd;
}

.hostel-room-card.expanded {
  border-color: #8b5cf6;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.1);
}

.hostel-room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  background: #ffffff;
  transition: background-color 0.15s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.hostel-room-card.expanded .hostel-room-header {
  background: #faf5ff;
  border-bottom: 1px solid #ede9fe;
}

.hostel-room-header:hover {
  background: #f8fafc;
}

.hostel-room-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hostel-room-num-badge {
  background: #7c3aed;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 8px;
  letter-spacing: -0.01em;
}

.hostel-room-meta {
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.hostel-room-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #7c3aed;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hostel-room-dropdown-btn:hover {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
}

/* Resident List Inside Dropdown */
.hostel-residents-pane {
  padding: 1.15rem 1.25rem;
  background: #ffffff;
  animation: slideDownFade 0.2s ease-out;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hostel-residents-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.hostel-residents-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.65rem 0.85rem;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}

.hostel-residents-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.hostel-residents-table tr:hover {
  background: #faf5ff;
}

.hostel-bed-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.hostel-view-student-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.38rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hostel-view-student-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-1px);
}

/* Warden Gate Pass Management Styles */
.hostel-badge-count {
  margin-left: auto;
  background: #f59e0b;
  color: #ffffff;
  border-radius: 9999px;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.hostel-quick-approve-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #16a34a;
  color: #ffffff;
  border: none;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hostel-quick-approve-btn:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.hostel-quick-reject-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hostel-quick-reject-btn:hover {
  background: #fee2e2;
}

.hostel-dossier-cert {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hostel-stamp-approved-box {
  border: 2px solid #16a34a;
  background: #f0fdf4;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  text-align: center;
  color: #15803d;
}

.hostel-kpi-card-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.hostel-kpi-card-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.hostel-bed-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
}

.hostel-bed-pill.occupied {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.hostel-bed-pill.available {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.gp-badge-pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.gp-badge-approved {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.gp-badge-rejected {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.gp-badge-exited {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.gp-badge-returned {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.gp-badge-overdue {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ── Hostel Complaints Monitoring & Escalation Styles ── */
.complaint-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.complaint-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  cursor: pointer;
}

.complaint-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.complaint-kpi-card.active {
  border-color: #7c3aed;
  background: #faf5ff;
}

.complaint-kpi-lbl {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.complaint-kpi-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}

.escalated-complaints-section {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.75rem;
}

.escalated-complaints-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}

.escalated-complaint-card {
  background: #ffffff;
  border: 1px solid #ffedd5;
  border-left: 4px solid #ea580c;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.05);
}

.escalated-complaint-card:last-child {
  margin-bottom: 0;
}

.escalation-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
}

.history-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  border-left: 2px solid #e2e8f0;
  padding-left: 1rem;
}

.history-timeline-item {
  position: relative;
  font-size: 0.8rem;
  color: #334155;
}

.history-timeline-item::before {
  content: '';
  position: absolute;
  left: -1.35rem;
  top: 0.3rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7c3aed;
}

.audit-note-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #475569;
}

/* Hostel Admin Edit, Delete & Allocate Bed Actions */
.hostel-edit-student-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #7c3aed;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.38rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hostel-edit-student-btn:hover {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
  transform: translateY(-1px);
}

.hostel-delete-student-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.38rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hostel-delete-student-btn:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  transform: translateY(-1px);
}

.hostel-allocate-bed-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hostel-allocate-bed-btn:hover {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
  transform: translateY(-1px);
}

/* ==========================================================================
   MODERN GATE PASS STATUS FILTER PILLS
   ========================================================================== */
.gp-filter-pill-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gp-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gp-pill-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.gp-pill-btn.active-all {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.gp-pill-btn.active-pending {
  background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%) !important;
  color: #ffffff !important;
  border-color: #b45309 !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35) !important;
}

.gp-pill-btn.active-approved {
  background: linear-gradient(135deg, #047857 0%, #10b981 100%) !important;
  color: #ffffff !important;
  border-color: #047857 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.gp-pill-btn.active-exited {
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  border-color: #4338ca !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

.gp-pill-btn.active-returned {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%) !important;
  color: #ffffff !important;
  border-color: #0f766e !important;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3) !important;
}

.gp-pill-btn.active-overdue {
  background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%) !important;
  color: #ffffff !important;
  border-color: #b91c1c !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35) !important;
}

.gp-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  margin-left: 2px;
}

.gp-pill-btn.active-all .gp-pill-badge,
.gp-pill-btn.active-pending .gp-pill-badge,
.gp-pill-btn.active-approved .gp-pill-badge,
.gp-pill-btn.active-exited .gp-pill-badge,
.gp-pill-btn.active-returned .gp-pill-badge,
.gp-pill-btn.active-overdue .gp-pill-badge {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   MODERN HOSTEL FLOOR FILTER PILL BAR & PILL BUTTONS
   ========================================================================== */
.hostel-floor-pill-bar {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  padding: 4px 5px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  gap: 5px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), inset 0 1px 2px rgba(15, 23, 42, 0.02);
  flex-wrap: wrap;
}

.hostel-floor-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 9px;
  border: 1.5px solid transparent;
  background: #ffffff;
  color: #475569;
  font-size: 0.835rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hostel-floor-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(15, 23, 42, 0.06);
}

.hostel-floor-pill.active {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
  color: #ffffff !important;
  font-weight: 700;
  border-color: #6d28d9 !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-1px);
}

.hostel-floor-pill .floor-pill-icon {
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hostel-floor-pill:hover .floor-pill-icon {
  opacity: 1;
}

.hostel-floor-pill.active .floor-pill-icon {
  opacity: 1;
  color: #ffffff;
}

.hostel-floor-pill .floor-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #64748b;
  transition: all 0.2s ease;
}

.hostel-floor-pill:hover .floor-pill-count {
  background: #e2e8f0;
  color: #1e293b;
}

.hostel-floor-pill.active .floor-pill-count {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}
/* ==============================================================
   HostelApplyLeaveModule.css
   Universal Leave Application, Leave Summary, Instructions & Admin Sanction
   ============================================================== */

.hostel-apply-leave-wrapper {
  padding: 1.5rem;
  max-width: 1320px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
}

/* Toast */
.hal-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: halSlideIn 0.25s ease-out;
}

@keyframes halSlideIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Hero Banner */
.hal-hero-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.25);
}

.hal-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.hal-role-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.hal-role-indicator.admin {
  background: rgba(220, 38, 38, 0.28);
  border: 1px solid rgba(254, 202, 202, 0.45);
  color: #ffffff;
}

.hal-role-indicator.warden {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.hal-hero-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0 0 0.4rem 0;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hal-hero-subtitle {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 760px;
  line-height: 1.5;
}

.hal-hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Summary Section (Exact replica of Image 2 top table) */
.hal-summary-section {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.hal-summary-header {
  padding: 0.85rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hal-summary-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hal-summary-header-left h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.hal-session-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid #bae6fd;
}

.hal-summary-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.hal-summary-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.84rem;
}

.hal-summary-table thead th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
  font-size: 0.82rem;
}

.hal-summary-table tbody td {
  padding: 12px 10px;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.95rem;
  background: #ffffff;
}

.hal-bal-highlight {
  color: #0284c7;
  font-size: 1.15rem;
  font-weight: 800;
}

.hal-zero-val {
  color: #94a3b8;
  font-weight: 600;
}

/* Tabs Bar */
.hal-tabs-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.25rem;
}

.hal-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.hal-tab-btn:hover {
  color: #0284c7;
  background: #f0f9ff;
}

.hal-tab-btn.active {
  color: #0284c7;
  background: #e0f2fe;
}

.hal-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: #0284c7;
  border-radius: 3px 3px 0 0;
}

.hal-pending-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 800;
}

/* Tab Content */
.hal-tab-content {
  animation: halFadeIn 0.25s ease-out;
}

@keyframes halFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2-Column Grid for Apply Form */
.hal-grid-2col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .hal-grid-2col {
    grid-template-columns: 1fr;
  }
}

/* Form Card */
.hal-form-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hal-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hal-card-title {
  margin: 0 0 4px 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.hal-card-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

.hal-rule-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid #fde68a;
}

/* Form Layout */
.hal-apply-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hal-form-row {
  display: grid;
  gap: 1rem;
}

.hal-form-row.two-col {
  grid-template-columns: 1fr 1fr;
}

.hal-form-row.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 640px) {
  .hal-form-row.two-col,
  .hal-form-row.three-col {
    grid-template-columns: 1fr;
  }
}

.hal-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hal-form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.hal-required-label {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.hal-hint-text {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 500;
}

.hal-form-group input,
.hal-form-group select,
.hal-form-group textarea {
  padding: 9px 12px;
  font-size: 0.88rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  font-family: inherit;
  transition: all 0.15s ease;
}

.hal-form-group input:focus,
.hal-form-group select:focus,
.hal-form-group textarea:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.hal-days-display {
  padding: 8px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #166534;
  display: flex;
  align-items: center;
  height: 38px;
  box-sizing: border-box;
}

/* Quick Reason Chips */
.hal-quick-reasons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.hal-quick-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.hal-quick-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 3px 9px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hal-quick-chip:hover {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #bae6fd;
}

/* Form Footer */
.hal-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.hal-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.hal-btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.hal-btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.hal-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.hal-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.hal-btn-outline {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hal-btn-outline:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hal-btn-success {
  background: #059669;
  color: #ffffff;
}

.hal-btn-success:hover {
  background: #047857;
}

.hal-btn-danger {
  background: #dc2626;
  color: #ffffff;
}

.hal-btn-danger:hover {
  background: #b91c1c;
}

/* Guidance Sidebar Cards */
.hal-guide-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hal-guide-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.hal-guide-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.hal-guide-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.hal-guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
}

.hal-guide-list li {
  position: relative;
  padding-left: 14px;
}

.hal-guide-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #0284c7;
  font-weight: 800;
}

.hal-read-full-btn {
  margin-top: 1rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0284c7;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hal-read-full-btn:hover {
  background: #e0f2fe;
}

/* Queue Overview Mini Box */
.hal-queue-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  text-align: center;
}

.hal-queue-stat {
  background: #f8fafc;
  padding: 8px 4px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.hal-q-val {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
}

.hal-q-val.amber { color: #d97706; }
.hal-q-val.emerald { color: #059669; }
.hal-q-val.rose { color: #dc2626; }

.hal-q-lbl {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}

/* ==============================================================
   TAB 2: LEAVE RULES & INSTRUCTIONS (REPLICATING IMAGES 2, 3, 4)
   ============================================================== */
.hal-instructions-container {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hal-policy-block {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.hal-policy-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.hal-policy-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.hal-policy-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.hal-policy-subtext {
  font-size: 0.92rem;
  color: #475569;
  margin: 0 0 1rem 0;
}

/* Admissibility Table */
.hal-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.hal-admissibility-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.hal-admissibility-table thead th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
  padding: 10px 14px;
  border-bottom: 1px solid #cbd5e1;
  text-align: left;
}

.hal-admissibility-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: top;
}

.hal-admissibility-table tbody tr:last-child td {
  border-bottom: none;
}

.hal-admissibility-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.hal-policy-footer-note {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: #475569;
}

.hal-authority-text {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.55;
  margin: 0.5rem 0 0 0;
  background: #f8fafc;
  padding: 12px 16px;
  border-left: 4px solid #0284c7;
  border-radius: 0 6px 6px 0;
}

/* General Conditions List */
.hal-clauses-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.hal-clause-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.55;
}

.hal-clause-num {
  font-weight: 800;
  color: #0284c7;
  min-width: 32px;
  flex-shrink: 0;
}

.hal-clause-body {
  flex: 1;
}

.hal-subclause-list {
  margin: 8px 0 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #475569;
}

/* ==============================================================
   TAB 3: HOSTEL ADMIN APPROVALS CONSOLE
   ============================================================== */
.hal-approvals-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hal-approvals-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hal-filter-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.hal-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 7px 12px;
  width: 320px;
}

.hal-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  width: 100%;
}

.hal-status-pills {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.hal-status-pill {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hal-status-pill:hover {
  background: #f1f5f9;
}

.hal-status-pill.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Leaves Table */
.hal-leaves-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.hal-leaves-table thead th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid #cbd5e1;
  text-align: left;
}

.hal-leaves-table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.hal-leaves-table tbody tr:hover {
  background: #f8fafc;
}

.hal-id-code {
  color: #2563eb;
  font-family: monospace;
  font-size: 0.86rem;
}

.hal-date-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
}

.hal-applicant-name {
  font-weight: 700;
  color: #0f172a;
}

.hal-emp-code {
  font-size: 0.74rem;
  color: #64748b;
}

.hal-dept-sub {
  font-size: 0.72rem;
  color: #475569;
}

.hal-leave-type-tag {
  font-weight: 700;
  color: #0284c7;
  font-size: 0.84rem;
}

.hal-date-range {
  font-size: 0.78rem;
  color: #334155;
  font-weight: 600;
  margin-top: 2px;
}

.hal-session-sub {
  font-size: 0.7rem;
  color: #64748b;
}

.hal-days-badge {
  background: #e0f2fe;
  color: #0369a1;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
}

/* REASON FOR LEAVE */
.hal-reason-box {
  max-width: 260px;
  font-size: 0.82rem;
  color: #0f172a;
  line-height: 1.35;
  background: #f8fafc;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.hal-station-tag {
  font-size: 0.7rem;
  color: #d97706;
  font-weight: 600;
  margin-top: 4px;
}

.hal-handover-box {
  max-width: 200px;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.3;
}

/* Status Badges */
.hal-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

.hal-status-badge.pending {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.hal-status-badge.approved {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.hal-status-badge.rejected {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.hal-approver-sub {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 3px;
}

/* Action Group */
.hal-action-btn-group {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.hal-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hal-btn-action.view {
  background: #f1f5f9;
  color: #334155;
}

.hal-btn-action.view:hover {
  background: #e2e8f0;
}

.hal-btn-action.approve {
  background: #dcfce7;
  color: #15803d;
}

.hal-btn-action.approve:hover {
  background: #bbf7d0;
}

.hal-btn-action.reject {
  background: #fee2e2;
  color: #b91c1c;
}

.hal-btn-action.reject:hover {
  background: #fecaca;
}

/* ==============================================================
   MODALS
   ============================================================== */
.hal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1.5rem;
}

.hal-modal-card {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: halModalPop 0.2s ease-out;
}

.hal-modal-card.large {
  max-width: 720px;
}

@keyframes halModalPop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hal-modal-head {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.hal-modal-head.approve {
  background: #f0fdf4;
  border-bottom-color: #bbf7d0;
}

.hal-modal-head.reject {
  background: #fef2f2;
  border-bottom-color: #fecaca;
}

.hal-modal-head h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.hal-close-modal-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hal-close-modal-btn:hover {
  color: #0f172a;
}

.hal-modal-body {
  padding: 1.25rem;
  max-height: 75vh;
  overflow-y: auto;
}

.hal-modal-info-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
}

.hal-minfo-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: #475569;
}

.hal-minfo-row strong {
  color: #0f172a;
}

.hal-alert-info {
  margin-top: 0.75rem;
  padding: 8px 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #0369a1;
}

.hal-modal-footer {
  padding: 0.85rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
}

/* Dossier Slip View */
.hal-letterhead {
  text-align: center;
  border-bottom: 2px double #cbd5e1;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.hal-letterhead h3 {
  margin: 0 0 2px 0;
  font-size: 1.05rem;
  color: #1e3a8a;
  font-weight: 800;
}

.hal-letterhead p {
  margin: 0;
  font-size: 0.82rem;
  color: #334155;
  font-weight: 600;
}

.hal-letterhead small {
  color: #64748b;
  font-size: 0.74rem;
}

.hal-dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.hal-dossier-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hal-dossier-item.full {
  grid-column: span 2;
}

.hal-dlabel {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.hal-dval {
  font-size: 0.88rem;
  color: #0f172a;
  font-weight: 600;
}

.hal-dval-box {
  margin: 0;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #0f172a;
  line-height: 1.4;
}
/* Student Dossier Dashboard Styles - For Warden & Hostel Admin */

.student-dossier-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeInDossier 0.25s ease-in-out;
}

@keyframes fadeInDossier {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dossier-toast-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

/* Top Nav */
.dossier-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dossier-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: #64748b;
  flex-wrap: wrap;
}

.crumb-btn {
  background: transparent;
  border: none;
  color: #2563eb;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  font-weight: 600;
}

.crumb-btn:hover {
  text-decoration: underline;
}

.crumb-current {
  color: #0f172a;
  font-weight: 700;
}

.dossier-top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.dossier-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.dossier-btn.back {
  background: #ffffff;
  color: #1e293b;
  border-color: #cbd5e1;
}

.dossier-btn.back:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.dossier-btn.print {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.dossier-btn.print:hover {
  background: #dbeafe;
}

.dossier-btn.call {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.dossier-btn.call:hover {
  background: #dcfce7;
}

/* Hero Identity Card */
.dossier-hero-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.dossier-hero-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.dossier-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.dossier-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  border: 3px solid #ffffff;
}

.dossier-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
}

.dossier-hero-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-name-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-name-row h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}

.dossier-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.dossier-status-badge.allotted {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.dossier-status-badge.approved {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.dossier-status-badge.under-review {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.dossier-status-badge.waitlisted {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.dossier-tag-cgpa {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: #334155;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-subtext {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

.hero-subtext code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  color: #1e293b;
  font-weight: 600;
}

.hero-tags-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.hero-chip.room {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.hero-chip.distance {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

/* Right Sanction Controls */
.dossier-hero-right {
  margin-left: auto;
}

.inspector-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inspector-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: #475569;
}

.inspector-actions {
  display: flex;
  gap: 0.4rem;
}

.sanction-btn {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.sanction-btn.allot {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.sanction-btn.allot:hover, .sanction-btn.allot.active {
  background: #10b981;
  color: #ffffff;
}

.sanction-btn.approve {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.sanction-btn.approve:hover, .sanction-btn.approve.active {
  background: #2563eb;
  color: #ffffff;
}

.sanction-btn.waitlist {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.sanction-btn.waitlist:hover, .sanction-btn.waitlist.active {
  background: #ef4444;
  color: #ffffff;
}

/* Metric Strip */
.dossier-metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.metric-tile {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tile-icon.hostel { background: #eff6ff; color: #2563eb; }
.tile-icon.attend { background: #ecfdf5; color: #10b981; }
.tile-icon.fees { background: #f0fdf4; color: #16a34a; }
.tile-icon.distance { background: #faf5ff; color: #9333ea; }

.tile-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.03em;
}

.metric-tile strong {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
  margin-top: 2px;
}

.metric-tile small {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
}

/* Tabs Navigation */
.dossier-tabs-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 2px;
}

.dossier-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 8px 8px 0 0;
  font-size: 0.83rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.dossier-tab-btn:hover {
  color: #2563eb;
  background: #f8fafc;
}

.dossier-tab-btn.active {
  color: #2563eb;
  background: #ffffff;
  border-bottom-color: #2563eb;
  font-weight: 700;
}

/* Tab Content */
.dossier-tab-content {
  margin-top: 0.5rem;
}

.tab-pane-fade {
  animation: tabFadeIn 0.2s ease-in-out;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dossier-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.25rem;
}

.dossier-grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

/* Dossier Card */
.dossier-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  padding: 1.25rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 1rem;
}

.card-header h4 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
}

.card-table {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  padding: 4px 0;
  border-bottom: 1px dashed #f1f5f9;
}

.info-item span {
  color: #64748b;
}

.info-item strong {
  color: #0f172a;
  text-align: right;
}

.data-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.data-box label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.data-box span, .data-box strong {
  font-size: 0.88rem;
  color: #0f172a;
  font-weight: 600;
}

.blood-pill {
  display: inline-block;
  background: #fee2e2;
  color: #b91c1c;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
}

.tag-status-green {
  display: inline-block;
  background: #ecfdf5;
  color: #047857;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 700;
}

/* Tables */
.dossier-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.dossier-custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.dossier-custom-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  padding: 9px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.dossier-custom-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.dossier-table-mini table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.dossier-table-mini th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  padding: 6px 8px;
  border-bottom: 1px solid #e2e8f0;
}

.dossier-table-mini td {
  padding: 6px 8px;
  border-bottom: 1px solid #f1f5f9;
}

.cgpa-badge {
  background: #ecfdf5;
  color: #047857;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* Sanction action buttons */
.dossier-btn-allot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.dossier-btn-approve {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.dossier-btn-waitlist {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

/* Documents list */
.dossier-docs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doc-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.doc-row div {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.doc-row strong {
  font-size: 0.86rem;
  color: #0f172a;
}

.doc-row small {
  font-size: 0.74rem;
  color: #64748b;
}

.doc-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  color: #2563eb;
  border: 1px solid #cbd5e1;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

/* Resident ID Pass Preview */
.resident-id-card-preview {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.id-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.5rem;
}

.id-card-logo {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #60a5fa;
}

.id-card-sub {
  font-size: 0.68rem;
  color: #94a3b8;
  letter-spacing: 0.08em;
}

.id-card-body {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.id-avatar-box {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  border: 2px solid #60a5fa;
  flex-shrink: 0;
}

.id-details-box h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  color: #ffffff;
}

.id-details-box p {
  margin: 1px 0;
  font-size: 0.74rem;
  color: #cbd5e1;
}

.id-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 0.5rem;
  font-size: 0.72rem;
  color: #94a3b8;
}

.print-id-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  cursor: pointer;
}

@media print {
  .dossier-top-nav,
  .dossier-tabs-nav,
  .inspector-actions,
  .print-id-btn,
  .dossier-top-actions {
    display: none !important;
  }
}
/* ==========================================================================
   BIOMETRIC CANTEEN PORTAL STYLES (APNA CAMPUS ENTERPRISE ERP)
   ========================================================================== */

.canteen-portal-root {
  padding: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Floating Toast */
.canteen-floating-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.canteen-floating-toast.success {
  background: #064e3b;
  color: #ecfdf5;
  border: 1px solid #059669;
}

.canteen-floating-toast.warning {
  background: #78350f;
  color: #fffbeb;
  border: 1px solid #d97706;
}

.canteen-floating-toast.error {
  background: #7f1d1d;
  color: #fef2f2;
  border: 1px solid #dc2626;
}

@keyframes toastSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   SECTION 6: SUMMARY KPI CARDS
   ========================================================================== */

.canteen-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.canteen-kpi-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

.canteen-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.08);
}

.canteen-kpi-card .kpi-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.kpi-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-icon-wrap.bf {
  background: #fef3c7;
  color: #d97706;
}

.kpi-icon-wrap.lunch {
  background: #dbeafe;
  color: #2563eb;
}

.kpi-icon-wrap.dinner {
  background: #f3e8ff;
  color: #7c3aed;
}

.kpi-icon-wrap.sub {
  background: #dcfce7;
  color: #16a34a;
}

.kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  display: block;
}

.kpi-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-top: 0.2rem;
}

.kpi-split {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.split-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #475569;
  background: #f8fafc;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

.split-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.split-pill.ds .pill-dot {
  background: #0284c7;
}

.split-pill.hs .pill-dot {
  background: #7c3aed;
}

.split-pill.pending .pill-dot {
  background: #f59e0b;
}

.split-pill.active .pill-dot {
  background: #10b981;
}

/* ==========================================================================
   BIOMETRIC TERMINAL (OPTICAL FINGERPRINT SCANNER)
   ========================================================================== */

.biometric-terminal-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.terminal-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 2px solid #334155;
}

.terminal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.terminal-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0.35rem 0 0.15rem;
  letter-spacing: -0.01em;
}

.terminal-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}

.terminal-meal-selector {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.meal-btn-group {
  display: flex;
  gap: 0.35rem;
  background: #0f172a;
  padding: 0.25rem;
  border-radius: 10px;
  border: 1px solid #334155;
}

.meal-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.meal-pill-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.meal-pill-btn.active.breakfast {
  background: #d97706;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
}

.meal-pill-btn.active.lunch {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.meal-pill-btn.active.dinner {
  background: #7c3aed;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

.terminal-body-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 380px;
}

@media (max-width: 900px) {
  .terminal-body-grid {
    grid-template-columns: 1fr;
  }
}

/* Scanner Bay */
.scanner-bay {
  background: #f8fafc;
  padding: 1.75rem;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.fingerprint-sensor-pad {
  width: 150px;
  height: 180px;
  background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
  border-radius: 20px;
  border: 3px solid #334155;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.fingerprint-sensor-pad .sensor-glass {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fingerprint-sensor-pad .fp-icon {
  color: #38bdf8;
  opacity: 0.6;
  transition: all 0.3s;
}

.fingerprint-sensor-pad.scanning {
  border-color: #38bdf8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

.fingerprint-sensor-pad.scanning .fp-icon {
  opacity: 0.9;
  filter: drop-shadow(0 0 10px #38bdf8);
}

.fingerprint-sensor-pad.verified {
  border-color: #10b981;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.fingerprint-sensor-pad.verified .fp-icon {
  color: #34d399;
  opacity: 1;
  filter: drop-shadow(0 0 12px #10b981);
}

.fingerprint-sensor-pad.failed {
  border-color: #ef4444;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

.fingerprint-sensor-pad.failed .fp-icon {
  color: #f87171;
  opacity: 1;
  filter: drop-shadow(0 0 12px #ef4444);
}

.laser-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #38bdf8;
  box-shadow: 0 0 12px 3px #38bdf8;
  animation: scanLaser 1.2s infinite ease-in-out alternate;
}

@keyframes scanLaser {
  0% { top: 10%; }
  100% { top: 90%; }
}

.btn-trigger-scan {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: all 0.2s;
  margin-top: 0.75rem;
}

.btn-trigger-scan:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.btn-trigger-scan:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.quick-student-select {
  width: 100%;
}

/* Verification Display Bay */
.verification-display-bay {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.scanner-idle-state,
.scanner-processing-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.idle-radar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cbd5e1;
}

/* Scan Result Card */
.scan-result-card {
  border-radius: 14px;
  padding: 1.5rem;
  border: 1.5px solid;
  animation: fadeInResult 0.25s ease-out;
}

@keyframes fadeInResult {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.scan-result-card.success {
  background: #f0fdf4;
  border-color: #86efac;
}

.scan-result-card.denied {
  background: #fef2f2;
  border-color: #fca5a5;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 1.25rem;
}

.result-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.scan-result-card.success .result-status-badge {
  color: #15803d;
}

.scan-result-card.denied .result-status-badge {
  color: #b91c1c;
}

.student-verified-profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.student-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  -o-object-fit: cover;
     object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.student-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.profile-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #475569;
  margin: 0.25rem 0 0.5rem;
}

.verification-badges-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.meta-badge.fp {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.meta-badge.meal {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.meta-badge.sub.valid {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.meta-badge.sub.invalid {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.rejection-reason-box {
  margin-top: 1rem;
  background: #fee2e2;
  border: 1px solid #f87171;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #991b1b;
  font-size: 0.85rem;
}

/* Special Dish Alert Box (Section 9.4) */
.special-dish-alert-box {
  margin-top: 1.25rem;
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
}

.special-alert-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.special-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #fde68a;
}

.btn-confirm-served {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
}

.btn-confirm-served:hover {
  background: #15803d;
  transform: translateY(-1px);
}

/* ==========================================================================
   TABLE CARDS & GENERAL DATA TABLES
   ========================================================================== */

.canteen-table-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.table-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.table-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.table-sub {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.table-filters-bar {
  padding: 0.85rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.search-filter-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  margin-left: auto;
  min-width: 240px;
}

.search-filter-box input {
  border: none;
  outline: none;
  font-size: 0.8rem;
  width: 100%;
}

.canteen-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.canteen-data-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.canteen-data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.canteen-data-table tbody tr:hover {
  background: #fbfcfe;
}

.canteen-data-table tbody tr.pending-highlight-row {
  background: #fffbeb;
}

/* Category & Status Tags */
.category-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.category-tag.hosteller {
  background: #ede9fe;
  color: #6d28d9;
}

.category-tag.day-scholar {
  background: #e0f2fe;
  color: #0369a1;
}

.meal-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.meal-tag.breakfast {
  background: #fef3c7;
  color: #b45309;
}

.meal-tag.lunch {
  background: #dbeafe;
  color: #1d4ed8;
}

.meal-tag.dinner {
  background: #f3e8ff;
  color: #6b21a8;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-badge.pending {
  background: #fef3c7;
  color: #b45309;
}

.status-badge.approved,
.status-badge.active,
.status-badge.served {
  background: #dcfce7;
  color: #15803d;
}

.status-badge.rejected,
.status-badge.cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.status-badge.confirmed,
.status-badge.prepared {
  background: #e0f2fe;
  color: #0369a1;
}

/* Form inputs & buttons */
.canteen-input,
.canteen-select,
.canteen-textarea {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  background: #ffffff;
}

.canteen-input:focus,
.canteen-select:focus,
.canteen-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.canteen-input-sm,
.canteen-select-sm {
  padding: 0.35rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.78rem;
  outline: none;
  background: #ffffff;
}

.canteen-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.canteen-btn-primary:hover {
  background: #0369a1;
}

.canteen-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  color: #334155;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
}

.canteen-btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.canteen-btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ef4444;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.canteen-btn-danger:hover {
  background: #dc2626;
}

.btn-review-app {
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.btn-review-app:hover {
  background: #d97706;
}

.btn-record-payment {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.btn-record-payment:hover {
  background: #1e293b;
}

.btn-action-sm {
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-action-sm.served {
  background: #16a34a;
  color: #fff;
}

.btn-action-sm.pay {
  background: #2563eb;
  color: #fff;
}

/* Section Banners for Day Scholar / Hosteller */
.section-banner {
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-banner.day-scholar {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border: 1px solid #7dd3fc;
}

.section-banner.hosteller {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  border: 1px solid #c4b5fd;
}

.badge-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0369a1;
  display: block;
}

.section-banner.hosteller .badge-tag {
  color: #6d28d9;
}

.banner-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0.2rem 0;
}

.banner-sub {
  font-size: 0.8rem;
  color: #475569;
}

/* Modals */
.canteen-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeInModal 0.2s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.canteen-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: scaleInModal 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleInModal {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.modal-sub {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
}

.modal-close-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.modal-body {
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Filter pills */
.filter-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill-btn:hover {
  background: #f1f5f9;
}

.filter-pill-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-dot.amber { background: #f59e0b; }
.status-dot.green { background: #10b981; }
.status-dot.red { background: #ef4444; }

/* Special Dishes Catalog Cards */
.dish-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dish-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.08);
}

.dish-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.diet-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.diet-pill.veg {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.diet-pill.non-veg {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.diet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.diet-pill.veg .diet-dot { background: #10b981; }
.diet-pill.non-veg .diet-dot { background: #ef4444; }

.stock-toggle-btn {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.stock-toggle-btn.available {
  background: #dcfce7;
  color: #15803d;
}

.stock-toggle-btn.out-of-stock {
  background: #fee2e2;
  color: #b91c1c;
}

.dish-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.15rem;
}

.dish-category {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.5rem;
}

.dish-desc {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

.dish-meta-info {
  background: #f8fafc;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.75rem;
}

.dish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
}

.dish-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
}
/* Super Admin & Global ERP Layout Stylesheet - Modern Clean White SaaS Campus Theme (Matching Image 2) */
.erp-super-admin-layout,
.erp-principal-layout,
.erp-trans-layout,
.erp-transport-layout,
.erp-staff-layout,
.erp-exam-layout,
.exam-cell-layout,
.erp-library-layout,
.library-layout,
.erp-placement-layout,
.placement-layout {
  display: flex;
  min-height: 100vh;
  background-color: #f8fafc;
  color: #0f172a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.erp-sidebar {
  width: 280px;
  background: #091326;
  background: linear-gradient(180deg, #091326 0%, #0b1a36 100%);
  border-right: 1px solid #1a2a44;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.4);
}

.erp-sidebar::-webkit-scrollbar {
  width: 5px;
}

.erp-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.erp-sidebar-brand {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.erp-brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.erp-brand-text h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.erp-brand-text span {
  font-size: 0.72rem;
  color: #818cf8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.erp-sidebar-nav {
  padding: 1.25rem 0.85rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.erp-nav-section-title {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px 2px;
  margin: 4px 0 2px;
}

.erp-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer !important;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
  text-decoration: none;
}

.erp-nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer !important;
}

.erp-nav-item.active {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45) !important;
  border-radius: 14px !important;
  border: none !important;
}

.erp-nav-item.active svg {
  color: #ffffff !important;
}

.erp-sidebar-footer {
  display: none !important;
}

.erp-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
  background: #f8fafc;
}

.erp-header {
  min-height: 72px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.erp-header-title h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.erp-header-title p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 2px 0 0 0;
  font-weight: 500;
}

.erp-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.erp-role-badge {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.erp-content-body {
  padding: 2rem;
  flex: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* Stat Cards - Crisp White SaaS Cards matching Image 2 */
.erp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.erp-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.erp-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.erp-stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.erp-stat-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.04em;
}

.erp-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.erp-stat-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.erp-stat-note {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

/* Data Table Container - White Cards matching Image 2 */
.erp-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

.erp-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.erp-panel-title h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: #0f172a;
}

.erp-panel-title p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0.2rem 0 0 0;
}

.erp-table-responsive {
  overflow-x: auto;
}

.erp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

.erp-table th {
  background: #f8fafc;
  padding: 0.9rem 1.1rem;
  font-weight: 700;
  color: #475569;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.erp-table td {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.erp-table tr:hover td {
  background: #f8fafc;
}

/* Custom Checkbox */
.erp-checkbox-custom {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

/* Buttons */
.erp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.erp-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.erp-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.erp-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.erp-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.erp-btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.erp-btn-danger:hover {
  background: #fee2e2;
}

/* Quick Role Switcher Dropdown */
.erp-role-switcher-select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.erp-role-switcher-select:focus {
  border-color: #2563eb;
}

/* --- Enhanced Header Controls --- */
.erp-preview-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 10px;
}

.erp-preview-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.erp-preview-pill-badge {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.erp-access-privileges-btn {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.erp-access-privileges-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
  transform: translateY(-1px);
}

/* --- Clickable Stat Cards --- */
.erp-stat-card-clickable {
  cursor: pointer;
  text-align: left;
}

.erp-stat-card-clickable:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
  transform: translateY(-3px);
}

.erp-stat-card-clickable:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.erp-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #16a34a;
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: erpPulse 2s infinite;
}

@keyframes erpPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

.erp-stat-subnote {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.erp-stat-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- Quick Actions Bar --- */
.erp-quick-actions-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.erp-quick-actions-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.erp-quick-actions-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.erp-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 0.45rem 0.85rem;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.erp-quick-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: translateY(-1px);
}

/* --- Security Architecture Enhancements --- */
.erp-sec-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.erp-sec-status-badge.verified {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.erp-sec-status-badge.enforced {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.erp-sec-status-badge.deterministic {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* --- Balanced Two-Column Section --- */
.erp-overview-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.erp-col-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
}

.erp-col-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}

.erp-col-header h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.erp-col-header p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 3px 0 0 0;
}

.erp-view-all-link {
  background: transparent;
  border: none;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.erp-view-all-link:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

/* Activity Items */
.erp-activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.erp-activity-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.erp-activity-item:hover {
  background: #f1f5f9;
}

.erp-activity-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.erp-activity-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.erp-activity-meta {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.erp-activity-role {
  color: #2563eb;
  font-weight: 600;
}

.erp-outcome-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  white-space: nowrap;
}

.erp-outcome-pill.success {
  background: #dcfce7;
  color: #15803d;
}

.erp-outcome-pill.warning {
  background: #fef3c7;
  color: #b45309;
}

.erp-outcome-pill.danger {
  background: #fee2e2;
  color: #b91c1c;
}

/* Security Alerts Section */
.erp-nominal-alerts-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  justify-content: center;
}

.erp-nominal-icon-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  border: 1px solid #86efac;
}

.erp-nominal-text h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #166534;
  margin: 0 0 6px 0;
}

.erp-nominal-text p {
  font-size: 0.8rem;
  color: #374151;
  margin: 0 0 1rem 0;
  max-width: 420px;
  line-height: 1.5;
}

.erp-nominal-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  text-align: left;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #dcfce7;
  width: 100%;
  max-width: 420px;
}

.erp-nominal-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.77rem;
  color: #1e293b;
  font-weight: 500;
}

.erp-alert-item {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.erp-alert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.erp-alert-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #991b1b;
}

.erp-alert-desc {
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.4;
}

.erp-alert-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 4px;
}

/* Diagnostics Modal */
.erp-diagnostics-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.erp-diagnostics-modal {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
}

.erp-diag-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.erp-diag-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.erp-diag-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.erp-diag-subsystem {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.erp-diag-subsystem-info h5 {
  margin: 0 0 3px 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.erp-diag-subsystem-info p {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

.erp-diag-subsystem-status {
  text-align: right;
  flex-shrink: 0;
}

.erp-diag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #dcfce7;
  color: #15803d;
}

.erp-diag-latency {
  font-size: 0.72rem;
  color: #64748b;
  font-family: monospace;
  margin-top: 3px;
}

.erp-diag-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0 0 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Grouped Sidebar Navigation --- */
.erp-nav-group-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 14px 4px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.erp-nav-group-title span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3b82f6;
  display: inline-block;
}

/* --- Incidents Module --- */
.erp-incident-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.erp-incident-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.erp-incident-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
  gap: 8px;
}

.erp-severity-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.erp-severity-badge.critical {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.erp-severity-badge.high {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
}

.erp-severity-badge.medium {
  background: #fefce8;
  color: #a16207;
  border: 1px solid #fef08a;
}

.erp-severity-badge.low {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.erp-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}

.erp-status-badge.open {
  background: #fee2e2;
  color: #991b1b;
}

.erp-status-badge.investigating {
  background: #fef3c7;
  color: #92400e;
}

.erp-status-badge.resolved {
  background: #dcfce7;
  color: #166534;
}

/* --- System Logs Viewer --- */
.erp-logs-console {
  background: #0f172a;
  border-radius: 14px;
  color: #e2e8f0;
  font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
  font-size: 0.8rem;
  overflow: hidden;
  border: 1px solid #334155;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.erp-logs-header {
  background: #1e293b;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #334155;
}

.erp-logs-list {
  max-height: 480px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.erp-log-entry {
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  line-height: 1.5;
}

.erp-log-entry:hover {
  background: rgba(255, 255, 255, 0.04);
}

.erp-log-level {
  font-weight: 700;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.erp-log-level.INFO {
  background: #1e3a8a;
  color: #93c5fd;
}

.erp-log-level.WARN {
  background: #78350f;
  color: #fde047;
}

.erp-log-level.ERROR {
  background: #7f1d1d;
  color: #fca5a5;
}

.erp-log-level.DEBUG {
  background: #334155;
  color: #cbd5e1;
}

/* --- Integrations Grid --- */
.erp-integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.erp-integration-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.35rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.erp-integration-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  transform: translateY(-2px);
}

.erp-int-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.erp-int-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  background: #dcfce7;
  color: #15803d;
}

.erp-int-endpoint-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: monospace;
  font-size: 0.76rem;
  color: #475569;
  margin: 10px 0 12px;
  word-break: break-all;
}

/* --- Sessions Table --- */
.erp-session-current-tag {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* --- Administrative Approval Center --- */
.erp-approval-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.erp-approval-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.erp-approval-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.erp-approval-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.erp-approval-badge.pending {
  background: #fef3c7;
  color: #b45309;
}

.erp-approval-badge.approved {
  background: #dcfce7;
  color: #15803d;
}

.erp-approval-badge.rejected {
  background: #fee2e2;
  color: #dc2626;
}

/* --- Settings Sub-Tabs --- */
.erp-settings-nav {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.erp-settings-subtab {
  background: transparent;
  border: none;
  padding: 0.7rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.erp-settings-subtab:hover {
  color: #0f172a;
}

.erp-settings-subtab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 700;
}

/* --- Role Comparison View --- */
.erp-compare-header {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 12px;
}

.erp-perm-diff-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.erp-perm-diff-badge.shared {
  background: #eff6ff;
  color: #2563eb;
}

.erp-perm-diff-badge.diff {
  background: #fef3c7;
  color: #b45309;
}


/* SuperAdminDashboard.css - High-fidelity Institutional Super Administrator Dashboard */

.sad-root {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  color: #0f172a;
  font-family: inherit;
}

/* 1. HERO BANNER */
.sad-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 138, 0.85) 100%), url('/campus_background.jpg') center/cover no-repeat;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  color: #ffffff;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sad-hero-content {
  flex: 1;
  min-width: 280px;
}

.sad-hero-greeting {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #93c5fd;
  font-weight: 600;
  margin-bottom: 4px;
}

.sad-hero-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sad-hero-crown {
  font-size: 1.35rem;
}

.sad-hero-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  max-width: 680px;
  line-height: 1.5;
  margin: 0;
}

.sad-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.sad-hero-timebox {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 190px;
}

.sad-hero-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #f8fafc;
}

.sad-hero-time-row.time-clock {
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.sad-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sad-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sad-hero-btn.primary {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

.sad-hero-btn.primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.sad-hero-btn.glass {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.sad-hero-btn.glass:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

/* 2. STATS ROW (6 CARDS) */
.sad-stats-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

@media (max-width: 1400px) {
  .sad-stats-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .sad-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sad-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.sad-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
  border-color: #cbd5e1;
}

.sad-stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.sad-stat-icon-wrap.students {
  background: #2563eb;
}

.sad-stat-icon-wrap.faculty {
  background: #9333ea;
}

.sad-stat-icon-wrap.staff {
  background: #16a34a;
}

.sad-stat-icon-wrap.courses {
  background: #f59e0b;
}

.sad-stat-icon-wrap.revenue {
  background: #e11d48;
}

.sad-stat-icon-wrap.uptime {
  background: #0284c7;
}

.sad-stat-body {
  flex: 1;
  min-width: 0;
}

.sad-stat-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 2px;
}

.sad-stat-val-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.sad-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.sad-stat-trend {
  font-size: 0.72rem;
  font-weight: 700;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.sad-stat-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3. THREE-COLUMN DASHBOARD GRID SECTIONS */
.sad-grid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 1200px) {
  .sad-grid-row {
    grid-template-columns: 1fr;
  }
}

.sad-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.sad-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}

.sad-card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sad-card-icon {
  color: #3b82f6;
  flex-shrink: 0;
}

.sad-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.sad-card-select {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  outline: none;
  cursor: pointer;
}

.sad-card-select:focus {
  border-color: #3b82f6;
}

.sad-card-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #2563eb;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.sad-card-link:hover {
  text-decoration: underline;
}

/* WIDGET: STUDENT ENROLLMENT TREND */
.sad-enrollment-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.74rem;
  color: #64748b;
}

.sad-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sad-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.sad-legend-dot.admissions {
  background: #93c5fd;
  border-radius: 2px;
}

.sad-legend-dot.total {
  background: #2563eb;
  border-radius: 50%;
}

.sad-legend-dot.dropouts {
  background: #f87171;
  border-radius: 2px;
}

.sad-chart-svg {
  width: 100%;
  height: 160px;
  overflow: visible;
}

/* WIDGET: STUDENT DISTRIBUTION (DONUT) */
.sad-distribution-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
}

.sad-donut-svg-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
}

.sad-donut-center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.sad-donut-center-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.sad-donut-center-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
}

.sad-donut-legend-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.sad-donut-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.sad-donut-legend-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 600;
}

.sad-donut-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sad-donut-legend-val {
  font-weight: 700;
  color: #0f172a;
}

.sad-donut-legend-pct {
  color: #64748b;
  font-size: 0.72rem;
  margin-left: 4px;
}

/* WIDGET: FEE COLLECTION OVERVIEW */
.sad-fee-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.sad-fee-chart {
  flex: 1.4;
  height: 160px;
}

.sad-fee-kpi-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid #f1f5f9;
  padding-left: 14px;
}

.sad-fee-kpi-block strong {
  display: block;
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.sad-fee-kpi-block small {
  font-size: 0.72rem;
  color: #64748b;
  display: block;
  margin-top: 1px;
}

.sad-fee-progress-ring-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.sad-fee-rate-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
}

/* WIDGET: ACADEMIC PERFORMANCE OVERVIEW */
.sad-academic-wrap {
  display: flex;
  gap: 16px;
  flex: 1;
}

.sad-academic-chart {
  flex: 1.6;
  height: 160px;
}

.sad-academic-kpi-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sad-acad-badge-card {
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sad-acad-badge-card.avg {
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

.sad-acad-badge-card.highest {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
}

.sad-acad-badge-card.lowest {
  background: #fff1f2;
  border: 1px solid #ffe4e6;
}

.sad-acad-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sad-acad-badge-card.avg .sad-acad-icon-box {
  background: #2563eb;
  color: #ffffff;
}

.sad-acad-badge-card.highest .sad-acad-icon-box {
  background: #16a34a;
  color: #ffffff;
}

.sad-acad-badge-card.lowest .sad-acad-icon-box {
  background: #e11d48;
  color: #ffffff;
}

.sad-acad-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.sad-acad-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
}

/* WIDGET: SYSTEM USAGE ANALYTICS */
.sad-system-chart-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sad-system-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 8px;
}

/* WIDGET: ACTIVE REQUESTS & APPROVALS */
.sad-approvals-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sad-approval-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sad-approval-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: translateX(2px);
}

.sad-approval-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sad-approval-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.sad-approval-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
}

.sad-approval-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sad-approval-count {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}

.sad-approval-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: #fef3c7;
  color: #b45309;
}

/* WIDGET: INFRASTRUCTURE STATUS */
.sad-infra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  flex: 1;
}

.sad-infra-box {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sad-infra-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sad-infra-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sad-infra-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.sad-infra-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.sad-infra-count {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.sad-infra-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
}

.sad-infra-badge.ok {
  background: #dcfce7;
  color: #15803d;
}

.sad-infra-badge.warn {
  background: #fef3c7;
  color: #b45309;
}

/* WIDGET: RECENT ACTIVITIES */
.sad-activities-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.sad-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  padding-bottom: 7px;
  border-bottom: 1px dashed #f1f5f9;
}

.sad-activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sad-activity-dot-box {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  margin-top: 1px;
}

.sad-activity-content {
  flex: 1;
  min-width: 0;
}

.sad-activity-title {
  font-weight: 600;
  color: #1e293b;
  display: block;
  line-height: 1.3;
}

.sad-activity-meta {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sad-activity-author {
  color: #3b82f6;
  font-weight: 600;
}

/* WIDGET: NOTICES & ANNOUNCEMENTS */
.sad-notices-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sad-notice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sad-notice-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.sad-notice-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sad-notice-title {
  font-size: 0.77rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sad-notice-date {
  font-size: 0.68rem;
  color: #94a3b8;
}

.sad-notice-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}

.sad-notice-tag.exam {
  background: #e0e7ff;
  color: #4338ca;
}

.sad-notice-tag.scholarship {
  background: #dcfce7;
  color: #15803d;
}

.sad-notice-tag.placement {
  background: #e0f2fe;
  color: #0369a1;
}

.sad-notice-tag.library {
  background: #fef3c7;
  color: #b45309;
}

.sad-notice-tag.holiday {
  background: #ffe4e6;
  color: #be123c;
}

/* =====================================================
   Management Portal — Professional White Theme
   Matches the global CMS design system exactly
   ===================================================== */

.mgmt-layout {
  display: flex;
  min-height: 100vh;
  background: #f8faff;
  font-family: 'Inter', system-ui, sans-serif;
  color: #0f172a;
}

@media (max-width: 1024px) {
  .mgmt-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 265px;
    z-index: 50;
    box-shadow: 4px 0 25px rgba(2, 6, 23, 0.5);
  }
}

/* ─── Sidebar ─────────────────────────────────────── */
.mgmt-sidebar {
  width: 265px;
  background: #091326;
  background: linear-gradient(180deg, #091326 0%, #0b1a36 100%);
  border-right: 1px solid #1a2a44;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.4);
}

.mgmt-sidebar::-webkit-scrollbar {
  width: 5px;
}

.mgmt-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.mgmt-brand {
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mgmt-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.mgmt-brand-text h2 {
  font-size: 0.88rem;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0;
  line-height: 1.2;
}

.mgmt-brand-text span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #60a5fa !important;
  letter-spacing: 0.03em;
}

.mgmt-user-card {
  margin: 1rem 1rem 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.mgmt-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.mgmt-user-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mgmt-user-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff !important;
  display: block;
  line-height: 1.2;
}

.mgmt-user-role {
  font-size: 0.7rem;
  color: #93c5fd !important;
  font-weight: 600;
}

.mgmt-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.mgmt-nav-section {
  font-size: 0.74rem;
  font-weight: 800;
  color: #60a5fa !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 0.5rem 0.35rem;
}

.mgmt-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer !important;
  width: 100%;
  text-align: left;
  transition: all 0.2s ease;
}

.mgmt-nav-item svg {
  flex-shrink: 0;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.mgmt-nav-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  cursor: pointer !important;
}

.mgmt-nav-item:hover svg {
  color: #ffffff !important;
}

.mgmt-nav-item.active {
  background: #2563eb !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45) !important;
  border-radius: 14px !important;
}

.mgmt-nav-item.active svg {
  color: #ffffff !important;
}

.mgmt-sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ─── Main Content ────────────────────────────────── */
.mgmt-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
}

.mgmt-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04);
}

.mgmt-header-left h1 {
  font-size: 1.1rem;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 2px;
}

.mgmt-header-left p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.mgmt-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mgmt-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.mgmt-badge-warning {
  background: #fefce8;
  color: #92400e;
  border-color: #fde68a;
}

.mgmt-body {
  flex: 1;
  padding: 2rem;
  animation: fade-in 0.2s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ─── KPI Grid (Full-Width Responsive Layout) ─────── */
.mgmt-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.mgmt-kpi-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

@media (max-width: 1400px) {
  .mgmt-kpi-grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .mgmt-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mgmt-kpi-grid-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mgmt-kpi-grid,
  .mgmt-kpi-grid-6 {
    grid-template-columns: 1fr;
  }
}

.mgmt-kpi {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 1.2rem 1.25rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.mgmt-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  border-color: #bfdbfe;
}

.mgmt-kpi-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
}

.mgmt-kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.mgmt-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mgmt-kpi-label {
  font-size: 0.73rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.mgmt-kpi-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.mgmt-kpi-trend {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mgmt-kpi-trend.up { color: #059669; }
.mgmt-kpi-trend.neutral { color: #64748b; }
.mgmt-kpi-trend.warn { color: #d97706; }

/* ─── Panel / Card ────────────────────────────────── */
.mgmt-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.mgmt-panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mgmt-panel-title h3 {
  font-size: 0.98rem;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 2px;
}

.mgmt-panel-title p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
}

.mgmt-panel-body {
  padding: 1.5rem;
}

/* ─── Table ───────────────────────────────────────── */
.mgmt-table-wrap {
  overflow-x: auto;
}

.mgmt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.mgmt-table thead tr {
  background: #f8faff;
  border-bottom: 2px solid rgba(15, 23, 42, 0.08);
}

.mgmt-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.mgmt-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  color: #334155;
  font-weight: 500;
}

.mgmt-table tbody tr:hover {
  background: #f8faff;
}

.mgmt-table tbody tr:last-child td {
  border-bottom: none;
}

/* ─── Progress Bar ────────────────────────────────── */
.mgmt-progress-wrap {
  margin-top: 4px;
}

.mgmt-progress-bg {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.mgmt-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* ─── Buttons ─────────────────────────────────────── */
.mgmt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.mgmt-btn-primary {
  background: #2563eb;
  color: #fff;
}
.mgmt-btn-primary:hover { background: #1d4ed8; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35); }

.mgmt-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.1);
}
.mgmt-btn-secondary:hover { background: #e2e8f0; }

.mgmt-btn-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.mgmt-btn-success:hover { background: #d1fae5; }

.mgmt-btn-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.mgmt-btn-danger:hover { background: #fee2e2; }

.mgmt-btn-outline {
  background: transparent;
  color: #2563eb;
  border: 1.5px solid #93c5fd;
}
.mgmt-btn-outline:hover { background: #eff6ff; }

/* ─── Status Badge ────────────────────────────────── */
.mgmt-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.mgmt-status-success { background: #ecfdf5; color: #065f46; }
.mgmt-status-warning { background: #fefce8; color: #92400e; }
.mgmt-status-danger  { background: #fef2f2; color: #991b1b; }
.mgmt-status-info    { background: #eff6ff; color: #1e40af; }
.mgmt-status-neutral { background: #f1f5f9; color: #1e293b; }

/* ─── Priority Badge ──────────────────────────────── */
.mgmt-priority-high   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.mgmt-priority-medium { background: #fefce8; color: #92400e; border: 1px solid #fde68a; }
.mgmt-priority-low    { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

/* ─── Section Divider ─────────────────────────────── */
.mgmt-section-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.75rem 0 0.85rem;
}

/* ─── Dept Card Row ───────────────────────────────── */
.mgmt-dept-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .mgmt-dept-row { grid-template-columns: 1fr; }
}

/* ─── Stat mini tiles ─────────────────────────────── */
.mgmt-mini-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: #f8faff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 10px;
  margin-bottom: 0.6rem;
}

.mgmt-mini-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mgmt-mini-stat-label {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
}

.mgmt-mini-stat-val {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

/* ─── Toast ───────────────────────────────────────── */
.mgmt-toast {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  background: #065f46;
  color: #ffffff;
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  animation: fade-in 0.2s ease;
}

/* ─── Two-col Grid ────────────────────────────────── */
.mgmt-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .mgmt-grid-2 { grid-template-columns: 1fr; }
}

/* ─── Metric Bar ──────────────────────────────────── */
.mgmt-metric-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}
.mgmt-metric-bar:last-child { border-bottom: none; }
.mgmt-metric-bar-label { flex: 1; font-size: 0.83rem; font-weight: 600; color: #334155; }
.mgmt-metric-bar-val { font-size: 0.83rem; font-weight: 800; color: #0f172a; width: 48px; text-align: right; }
.mgmt-metric-bar-track { width: 100px; }

/* ─── Empty State ─────────────────────────────────── */
.mgmt-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: #64748b;
  font-weight: 500;
}

.mgmt-empty-icon {
  width: 56px;
  height: 56px;
  background: #f1f5f9;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* ─── Placement timeline ──────────────────────────── */
.mgmt-timeline {
  position: relative;
  padding-left: 1.75rem;
}

.mgmt-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0; bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

.mgmt-timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
}

.mgmt-timeline-dot {
  position: absolute;
  left: -1.45rem;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px currentColor;
}

/* ─── Fade-in animation ───────────────────────────── */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Enhanced Filter Bar ─────────────────────────── */
.mgmt-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.mgmt-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mgmt-select {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  transition: border-color 0.15s ease;
}

.mgmt-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mgmt-input {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #1e293b;
  outline: none;
  min-width: 220px;
}

.mgmt-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mgmt-freshness-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
  background: #f8faff;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* ─── Executive Insights Cards ────────────────────── */
.mgmt-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
  margin-bottom: 1.5rem;
}

.mgmt-insight-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mgmt-insight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.mgmt-insight-card.severity-CRITICAL {
  border-left: 4px solid #ef4444;
  background: linear-gradient(180deg, #fff 0%, #fffbfb 100%);
}

.mgmt-insight-card.severity-WARNING {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(180deg, #fff 0%, #fffdf8 100%);
}

.mgmt-insight-card.severity-INFO {
  border-left: 4px solid #3b82f6;
  background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
}

.mgmt-insight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mgmt-insight-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 6px;
}

.mgmt-insight-desc {
  font-size: 0.77rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 10px;
}

.mgmt-insight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.mgmt-insight-action {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.mgmt-insight-action:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

/* ─── Modal Dialogs ───────────────────────────────── */
.mgmt-modal-backdrop,
.mgmt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in 0.15s ease;
}

.mgmt-btn-icon,
.mgmt-modal-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.mgmt-btn-icon:hover,
.mgmt-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.mgmt-modal {
  background: #ffffff;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.mgmt-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8faff;
}

.mgmt-modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.mgmt-modal-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.mgmt-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.mgmt-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.mgmt-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: #f8faff;
}

/* ─── Exception Cards ─────────────────────────────── */
.mgmt-exception-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.15s ease;
}

.mgmt-exception-card:hover {
  border-color: #cbd5e1;
}

.mgmt-exception-card.severity-CRITICAL {
  border-left: 5px solid #ef4444;
}

.mgmt-exception-card.severity-WARNING {
  border-left: 5px solid #f59e0b;
}

.mgmt-exception-card.severity-MODERATE {
  border-left: 5px solid #3b82f6;
}

/* ─── Clickable KPI ───────────────────────────────── */
.mgmt-kpi.clickable {
  cursor: pointer;
}

.mgmt-kpi.clickable:hover {
  transform: translateY(-3px);
  border-color: #3b82f6;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

/* ─── Strategy Targets & 5-Year Plan ──────────────── */
.mgmt-strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.mgmt-strategy-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mgmt-strategy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.mgmt-strategy-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

/* ─── Integration Health Monitor ─────────────────── */
.mgmt-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.mgmt-health-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mgmt-health-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.mgmt-health-dot.HEALTHY {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.mgmt-health-dot.DEGRADED {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* ─── Capital Projects Grid ──────────────────────── */
.mgmt-capital-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.mgmt-capital-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.mgmt-capital-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

/* ─── Board Meetings & Resolutions ────────────────── */
.mgmt-meeting-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mgmt-meeting-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ─── Evidence Register Accordion / Table ─────────── */
.mgmt-evidence-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
}



/* ==============================================================================
   REDESIGNED MANAGEMENT DASHBOARD (EXACT REFERENCE IMAGE MATCH)
   ============================================================================== */

.mgmt-dash-v2-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.25rem 0 2rem;
  font-family: inherit;
  color: #0f172a;
}

/* 1. Contextual Header Toolbar (Academic Year, Dept, Semester, Search) */
.mgmt-context-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  flex-wrap: wrap;
}

.mgmt-context-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mgmt-context-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mgmt-context-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

.mgmt-context-select {
  padding: 5px 28px 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 8px center;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.mgmt-context-select:hover {
  border-color: #94a3b8;
  background-color: #ffffff;
}

.mgmt-context-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mgmt-context-search-wrap {
  position: relative;
  width: 280px;
}

.mgmt-context-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.mgmt-context-search-input {
  width: 100%;
  padding: 6px 12px 6px 32px;
  font-size: 0.78rem;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  transition: all 0.15s ease;
}

.mgmt-context-search-input:focus {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.mgmt-icon-pill-btn {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mgmt-icon-pill-btn:hover {
  background: #f1f5f9;
  color: #1e40af;
}

.mgmt-icon-pill-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  padding: 0 3px;
}

.mgmt-user-capsule {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
  border-left: 1px solid #e2e8f0;
}

.mgmt-user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e3a8a;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
}

.mgmt-user-meta {
  display: flex;
  flex-direction: column;
}

.mgmt-user-title {
  font-size: 0.78rem;
  font-weight: 750;
  color: #0f172a;
  line-height: 1.2;
}

.mgmt-user-role-sub {
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.2;
}

/* 2. Welcome Banner */
.mgmt-hero-banner {
  background: linear-gradient(135deg, #091326 0%, #0d2146 50%, #1e3a8a 100%);
  border-radius: 16px;
  padding: 1.6rem 2.2rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.4);
}

.mgmt-hero-bg-skyline {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 50%;
  pointer-events: none;
  opacity: 0.22;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: cover;
}

.mgmt-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.mgmt-hero-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 0.4rem 0;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.mgmt-hero-subtitle {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.45;
  font-weight: 400;
}

.mgmt-hero-live-card {
  position: relative;
  z-index: 2;
  background: rgba(11, 23, 50, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 175px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.mgmt-live-card-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: #e2e8f0;
  font-weight: 600;
}

.mgmt-live-card-line.accent {
  color: #60a5fa;
  font-weight: 700;
}

.mgmt-live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  color: #34d399;
  font-weight: 700;
  margin-top: 3px;
  width: -moz-fit-content;
  width: fit-content;
}

.mgmt-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: mgmtPulse 2s infinite;
}

@keyframes mgmtPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* 3. 12 KPI Cards Grid */
.mgmt-kpis-12-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

@media (max-width: 1400px) {
  .mgmt-kpis-12-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .mgmt-kpis-12-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .mgmt-kpis-12-grid {
    grid-template-columns: 1fr;
  }
}

.mgmt-card-v2 {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mgmt-card-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.mgmt-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.mgmt-card-icon-bubble {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.mgmt-card-icon-bubble.blue { background: #eff6ff; color: #2563eb; }
.mgmt-card-icon-bubble.purple { background: #f5f3ff; color: #7c3aed; }
.mgmt-card-icon-bubble.green { background: #ecfdf5; color: #059669; }
.mgmt-card-icon-bubble.pink { background: #fdf2f8; color: #e11d48; }
.mgmt-card-icon-bubble.indigo { background: #eef2ff; color: #4f46e5; }
.mgmt-card-icon-bubble.teal { background: #ecfeff; color: #0d9488; }
.mgmt-card-icon-bubble.amber { background: #fffbeb; color: #d97706; }
.mgmt-card-icon-bubble.rose { background: #fff1f2; color: #e11d48; }

.mgmt-trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 750;
  padding: 2px 6px;
  border-radius: 6px;
}

.mgmt-trend-badge.green {
  background: #ecfdf5;
  color: #10b981;
}

.mgmt-card-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 2px;
}

.mgmt-card-value {
  font-size: 1.45rem;
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mgmt-card-subtext {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* 4. Analytics Row (3 Columns) */
.mgmt-analytics-3col-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.05fr;
  gap: 1.25rem;
}

@media (max-width: 1200px) {
  .mgmt-analytics-3col-grid {
    grid-template-columns: 1fr;
  }
}

.mgmt-chart-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
}

.mgmt-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.mgmt-chart-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0;
}

.mgmt-chart-mini-select {
  padding: 3px 22px 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 6px center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  cursor: pointer;
  outline: none;
}

.mgmt-chart-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
}

.mgmt-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mgmt-legend-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mgmt-donut-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 230px;
}

.mgmt-donut-graphic-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  flex-shrink: 0;
}

.mgmt-donut-center-kicker {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.mgmt-donut-center-val {
  font-size: 1.35rem;
  font-weight: 850;
  color: #0f172a;
  line-height: 1.1;
}

.mgmt-donut-center-sub {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

.mgmt-donut-legend-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.mgmt-donut-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #334155;
  padding: 2px 0;
}

.mgmt-donut-legend-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.mgmt-donut-legend-stat {
  font-weight: 750;
  color: #0f172a;
}

/* 5. Department Performance Table Card */
.mgmt-perf-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.mgmt-table-responsive-box {
  width: 100%;
  overflow-x: auto;
  margin-top: 0.75rem;
}

.mgmt-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
  text-align: left;
}

.mgmt-matrix-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 750;
  padding: 9px 12px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.mgmt-matrix-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  white-space: nowrap;
  vertical-align: middle;
}

.mgmt-matrix-table tr:hover td {
  background: #f8faff;
}

.mgmt-matrix-cgpa {
  color: #059669;
  font-weight: 800;
  font-size: 0.8rem;
}

.mgmt-cell-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 90px;
}

.mgmt-cell-bar-track {
  flex: 1;
  height: 5px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.mgmt-cell-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.mgmt-cell-bar-pct {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  min-width: 28px;
  text-align: right;
}

.mgmt-view-btn-pill {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mgmt-view-btn-pill:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* 6. Bottom Row (3 Columns) */
.mgmt-bottom-3col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 1200px) {
  .mgmt-bottom-3col-grid {
    grid-template-columns: 1fr;
  }
}

.mgmt-bottom-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
}

.mgmt-bottom-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.mgmt-bottom-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0;
}

.mgmt-view-all-link {
  font-size: 0.74rem;
  font-weight: 700;
  color: #2563eb;
  cursor: pointer;
  text-decoration: none;
}

.mgmt-view-all-link:hover {
  text-decoration: underline;
}

.mgmt-initiatives-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mgmt-initiative-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.mgmt-initiative-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.mgmt-initiative-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mgmt-initiative-text {
  font-size: 0.78rem;
  color: #1e293b;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mgmt-initiative-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 130px;
}

.mgmt-initiative-badge {
  font-size: 0.68rem;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.mgmt-initiative-badge.on-track {
  background: #ecfdf5;
  color: #059669;
}

.mgmt-initiative-badge.in-progress {
  background: #fefce8;
  color: #d97706;
}

.mgmt-initiative-badge.at-risk {
  background: #fef2f2;
  color: #dc2626;
}

/* Activity Items */
.mgmt-activities-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mgmt-activity-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.76rem;
  padding-bottom: 8px;
  border-bottom: 1px solid #f8fafc;
}

.mgmt-activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mgmt-act-left {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.mgmt-act-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  margin-top: 5px;
  flex-shrink: 0;
}

.mgmt-act-time {
  color: #64748b;
  font-weight: 600;
  min-width: 95px;
  font-size: 0.72rem;
}

.mgmt-act-desc {
  color: #1e293b;
  font-weight: 600;
}

.mgmt-act-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.mgmt-act-tag.finance { background: #eff6ff; color: #2563eb; }
.mgmt-act-tag.hr { background: #fdf2f8; color: #db2777; }
.mgmt-act-tag.infrastructure { background: #ecfeff; color: #0891b2; }
.mgmt-act-tag.examination { background: #fefce8; color: #d97706; }
.mgmt-act-tag.academic { background: #eff6ff; color: #1d4ed8; }

/* Circular Notices */
.mgmt-circulars-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mgmt-circular-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f8fafc;
}

.mgmt-circular-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mgmt-circ-date-box {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mgmt-circ-day {
  font-size: 0.92rem;
  font-weight: 850;
  color: #0f172a;
  line-height: 1;
}

.mgmt-circ-month {
  font-size: 0.62rem;
  font-weight: 750;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 2px;
}

.mgmt-circ-details {
  flex: 1;
  min-width: 0;
}

.mgmt-circ-title {
  font-size: 0.78rem;
  font-weight: 750;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mgmt-circ-sub {
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 1px;
}

.mgmt-circ-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.mgmt-circ-badge.exam { background: #f5f3ff; color: #7c3aed; }
.mgmt-circ-badge.placement { background: #ecfeff; color: #0891b2; }
.mgmt-circ-badge.scholarship { background: #eff6ff; color: #2563eb; }
.mgmt-circ-badge.library { background: #fefce8; color: #d97706; }
.mgmt-circ-badge.holiday { background: #fdf2f8; color: #e11d48; }
/* PrincipalDashboard.css - Institutional Principal Executive Dashboard */

.pdb-root {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  color: #0f172a;
  font-family: inherit;
}

/* 1. HERO BANNER */
.pdb-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 58, 138, 0.88) 100%), url('/campus_background.jpg') center/cover no-repeat;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  color: #ffffff;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pdb-hero-content {
  flex: 1;
  min-width: 280px;
}

.pdb-hero-tag {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  font-weight: 700;
  margin-bottom: 6px;
}

.pdb-hero-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.pdb-hero-wave {
  font-size: 1.4rem;
}

.pdb-hero-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  max-width: 680px;
  line-height: 1.5;
  margin: 0 0 14px 0;
}

.pdb-hero-message-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.78rem;
  color: #e2e8f0;
}

.pdb-hero-message-badge {
  font-weight: 800;
  color: #ffffff;
  background: rgba(59, 130, 246, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pdb-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.pdb-hero-timebox {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}

.pdb-hero-academic-year {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #93c5fd;
  text-transform: uppercase;
  margin-bottom: 2px;
  text-align: right;
}

.pdb-hero-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #f8fafc;
}

.pdb-hero-time-row.time-clock {
  font-size: 0.96rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

/* 2. KPI METRIC CARDS (6-column grid with mini sparklines) */
.pdb-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

@media (max-width: 1400px) {
  .pdb-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .pdb-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .pdb-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.pdb-kpi-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 16px 12px 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pdb-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.pdb-kpi-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pdb-kpi-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pdb-kpi-icon-wrap.students { background: #e0f2fe; color: #0284c7; }
.pdb-kpi-icon-wrap.faculty { background: #f3e8ff; color: #9333ea; }
.pdb-kpi-icon-wrap.depts { background: #dcfce7; color: #16a34a; }
.pdb-kpi-icon-wrap.programs { background: #fee2e2; color: #e11d48; }
.pdb-kpi-icon-wrap.research { background: #fef3c7; color: #d97706; }
.pdb-kpi-icon-wrap.revenue { background: #fee2e2; color: #dc2626; }

.pdb-kpi-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  text-transform: capitalize;
}

.pdb-kpi-val-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.pdb-kpi-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pdb-kpi-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 12px;
}

.pdb-kpi-pill.green { background: #dcfce7; color: #16a34a; }
.pdb-kpi-pill.grey { background: #f1f5f9; color: #64748b; }

.pdb-kpi-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.pdb-kpi-sparkline {
  height: 24px;
  width: 100%;
  margin-top: auto;
}

/* 3. ROW 2: PROFILE DOSSIER + ACADEMIC & GOVERNANCE KPIS */
.pdb-profile-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
}

@media (max-width: 1200px) {
  .pdb-profile-grid {
    grid-template-columns: 1fr;
  }
}

.pdb-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.pdb-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.pdb-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.pdb-card-title svg {
  color: #2563eb;
}

.pdb-select {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  outline: none;
}

.pdb-card-link {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
}

.pdb-card-link:hover {
  text-decoration: underline;
}

/* Principal Profile Card Inside */
.pdb-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.pdb-profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  -o-object-fit: cover;
     object-fit: cover;
  border: 2px solid #e2e8f0;
}

.pdb-profile-meta {
  flex: 1;
}

.pdb-profile-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.pdb-profile-role {
  font-size: 0.78rem;
  color: #64748b;
  margin: 2px 0 0 0;
}

.pdb-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 12px;
}

.pdb-profile-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.pdb-profile-tab {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.pdb-profile-tab.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.pdb-profile-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  font-size: 0.76rem;
  margin-bottom: 16px;
}

.pdb-profile-row {
  display: flex;
  flex-direction: column;
}

.pdb-profile-label {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
}

.pdb-profile-val {
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdb-profile-btn {
  width: 100%;
  padding: 10px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.pdb-profile-btn:hover {
  background: #1d4ed8;
}

/* Middle & Right Subcards in Profile Row */
.pdb-subcard-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pdb-mini-pill-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pdb-mini-pill {
  font-size: 0.68rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Faculty Attendance Progress Bar */
.pdb-att-bar-wrap {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  margin: 10px 0 8px 0;
}

.pdb-att-bar-fill {
  background: #16a34a;
  height: 100%;
}

.pdb-att-bar-absent {
  background: #ef4444;
  height: 100%;
}

.pdb-att-legend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Approvals rows */
.pdb-approval-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 6px;
}

.pdb-approval-row:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.pdb-approval-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f172a;
}

.pdb-approval-count {
  font-size: 0.76rem;
  font-weight: 700;
  color: #2563eb;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 4. ROW 3: 3-COLUMN CHARTS */
.pdb-three-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 16px;
}

@media (max-width: 1200px) {
  .pdb-three-grid {
    grid-template-columns: 1fr;
  }
}

/* Donut container */
.pdb-donut-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 220px;
}

.pdb-donut-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.pdb-donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.pdb-donut-center-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.pdb-donut-center-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

.pdb-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.pdb-donut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #475569;
}

.pdb-donut-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  display: inline-block;
}

.pdb-donut-count {
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

/* Facility progress bars */
.pdb-facility-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 220px;
  justify-content: center;
}

.pdb-facility-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdb-facility-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
}

.pdb-facility-bar-bg {
  width: 100%;
  height: 7px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
}

.pdb-facility-bar-fill {
  height: 100%;
  border-radius: 10px;
}

/* 5. ROW 4: ACADEMIC HEALTH TABLE + NOTICES */
.pdb-table-notices-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
}

@media (max-width: 1100px) {
  .pdb-table-notices-grid {
    grid-template-columns: 1fr;
  }
}

.pdb-table-container {
  overflow-x: auto;
}

.pdb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.pdb-table th {
  text-align: left;
  padding: 8px 10px;
  color: #64748b;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.pdb-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.pdb-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
}

.pdb-status-pill.excellent { background: #dcfce7; color: #16a34a; }
.pdb-status-pill.good { background: #e0f2fe; color: #0284c7; }
.pdb-status-pill.satisfactory { background: #fef3c7; color: #d97706; }
.pdb-status-pill.attention { background: #fee2e2; color: #dc2626; }

/* Circulars list */
.pdb-notice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdb-notice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pdb-notice-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.pdb-notice-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pdb-notice-datebox {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.pdb-notice-day {
  font-size: 0.8rem;
  font-weight: 800;
}

.pdb-notice-month {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.pdb-notice-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pdb-notice-cat {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pdb-notice-cat.exam { color: #9333ea; }
.pdb-notice-cat.academic { color: #2563eb; }
.pdb-notice-cat.infra { color: #0d9488; }
.pdb-notice-cat.event { color: #db2777; }

.pdb-notice-title {
  font-size: 0.77rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdb-notice-meta {
  font-size: 0.67rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 6. ROW 5: CALENDAR + EVENTS + HOLIDAYS */
.pdb-calendar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

@media (max-width: 1200px) {
  .pdb-calendar-grid {
    grid-template-columns: 1fr;
  }
}

/* Mini Calendar */
.pdb-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pdb-cal-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdb-cal-btn {
  background: #f1f5f9;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
}

.pdb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 0.72rem;
}

.pdb-cal-dow {
  font-weight: 700;
  color: #64748b;
  font-size: 0.64rem;
  padding: 4px 0;
}

.pdb-cal-dow.sun { color: #ef4444; }

.pdb-cal-cell {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 600;
  color: #334155;
}

.pdb-cal-cell.other-month {
  color: #cbd5e1;
}

.pdb-cal-cell.today {
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
}

.pdb-cal-cell.event-day {
  background: #fef3c7;
  color: #d97706;
  font-weight: 700;
}

.pdb-cal-cell.fest-day {
  background: #fed7aa;
  color: #c2410c;
  font-weight: 700;
}

.pdb-cal-cell.sunday {
  color: #ef4444;
}

.pdb-cal-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
}

/* Event & Holiday Items */
.pdb-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pdb-list-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.pdb-badge-date {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.pdb-badge-date.purple { background: #f3e8ff; color: #9333ea; }
.pdb-badge-date.amber { background: #fef3c7; color: #d97706; }
.pdb-badge-date.pink { background: #fce7f3; color: #db2777; }
.pdb-badge-date.blue { background: #e0f2fe; color: #0284c7; }

.pdb-badge-day {
  font-size: 0.74rem;
  font-weight: 800;
}

.pdb-badge-month {
  font-size: 0.54rem;
  font-weight: 700;
}

.pdb-list-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pdb-list-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdb-list-sub {
  font-size: 0.68rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdb-list-tag {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
}

.pdb-list-tag.seminar { background: #f3e8ff; color: #9333ea; }
.pdb-list-tag.meeting { background: #e0f2fe; color: #0284c7; }
.pdb-list-tag.event { background: #fce7f3; color: #db2777; }
.pdb-list-tag.alumni { background: #f3e8ff; color: #7e22ce; }
.pdb-list-tag.holiday { background: #dcfce7; color: #16a34a; }

/* Principal Modules & Strategic Governance Stylesheet */
.principal-module-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Strategic Banner Notice */
.principal-banner-notice {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0284c7;
  padding: 0.85rem 1.15rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.principal-banner-notice.warning {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.principal-banner-notice.danger {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.principal-banner-notice.success {
  border-left-color: #10b981;
  background: #f0fdf4;
}

.principal-banner-text {
  font-size: 0.82rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.principal-banner-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #e0f2fe;
  color: #0369a1;
  text-transform: uppercase;
}

/* Module KPI Bar */
.principal-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.principal-stat-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.principal-stat-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.principal-stat-box-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.principal-stat-box-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
}

.principal-stat-box-sub {
  font-size: 0.74rem;
  color: #64748b;
}

/* Toolbars & Filters */
.principal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
}

.principal-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  flex: 1;
}

.principal-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.principal-search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  min-width: 240px;
}

.principal-search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.82rem;
  color: #0f172a;
  width: 100%;
}

.principal-select-filter {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #1e293b;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.principal-select-filter:focus {
  border-color: #0284c7;
}

/* Action Badges */
.pbadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pbadge.success { background: #dcfce7; color: #15803d; }
.pbadge.warning { background: #fef3c7; color: #b45309; }
.pbadge.danger { background: #fee2e2; color: #b91c1c; }
.pbadge.info { background: #e0f2fe; color: #0369a1; }
.pbadge.purple { background: #f3e8ff; color: #7e22ce; }
.pbadge.slate { background: #f1f5f9; color: #475569; }

/* Progress Mini Bar */
.p-progress-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.p-progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Calendar Matrix */
.p-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.p-calendar-day-header {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  padding: 6px 0;
  text-transform: uppercase;
}

.p-calendar-cell {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  min-height: 86px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
}

.p-calendar-cell.different-month {
  background: #f8fafc;
  opacity: 0.55;
}

.p-calendar-cell.has-event {
  border-color: #cbd5e1;
  background: #ffffff;
}

.p-calendar-cell-num {
  font-weight: 700;
  color: #0f172a;
}

.p-calendar-cell.today .p-calendar-cell-num {
  color: #0284c7;
  display: inline-block;
  background: #e0f2fe;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
}

.p-calendar-event-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.p-calendar-event-tag.exam { background: #fee2e2; color: #991b1b; }
.p-calendar-event-tag.gov { background: #e0f2fe; color: #075985; }
.p-calendar-event-tag.semi { background: #ede9fe; color: #5b21b6; }
.p-calendar-event-tag.place { background: #dcfce7; color: #166534; }
.p-calendar-event-tag.holi { background: #fef3c7; color: #92400e; }

/* Responsive tweaks */
@media (max-width: 768px) {
  .principal-stat-strip {
    grid-template-columns: 1fr;
  }
  .principal-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .p-calendar-grid {
    font-size: 0.7rem;
  }
}
/* Bonafide Review Queue Styles */

.bonafide-review-queue-container {
  padding: 24px;
  background: #f8fafc;
  min-height: 100%;
}

.bonafide-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.bonafide-queue-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.bonafide-queue-subtitle {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #64748b;
}

.bonafide-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bonafide-refresh-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* KPIs */
.bonafide-queue-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.bonafide-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bonafide-kpi-card.border-blue { border-left: 4px solid #2563eb; }
.bonafide-kpi-card.border-emerald { border-left: 4px solid #059669; }
.bonafide-kpi-card.border-amber { border-left: 4px solid #d97706; }
.bonafide-kpi-card.border-slate { border-left: 4px solid #475569; }

.kpi-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-info {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.kpi-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

/* Filters */
.bonafide-queue-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.bonafide-search-box {
  position: relative;
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
}

.bonafide-search-box svg {
  position: absolute;
  left: 12px;
  color: #94a3b8;
}

.bonafide-search-box input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  background: #ffffff;
}

.bonafide-search-box input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.bonafide-filter-group {
  display: flex;
  gap: 10px;
}

.bonafide-filter-group select {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  background: #ffffff;
  color: #334155;
  outline: none;
  cursor: pointer;
}

/* Table */
.bonafide-queue-table-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bonafide-queue-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.bonafide-queue-table th {
  background: #f8fafc;
  padding: 12px 16px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bonafide-queue-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.bonafide-queue-table tr:hover {
  background: #fafbfc;
}

.bonafide-table-empty {
  text-align: center;
  padding: 36px 16px !important;
  color: #64748b;
  font-style: italic;
}

.bonafide-app-id {
  color: #2563eb;
  font-family: monospace;
  font-size: 13px;
}

.bonafide-table-purpose-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
}

.bonafide-table-student {
  display: flex;
  flex-direction: column;
}

.bonafide-table-student strong {
  color: #0f172a;
}

.bonafide-table-student small {
  color: #64748b;
  font-size: 11px;
}

.bonafide-table-specifics {
  font-size: 12px;
  color: #334155;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bonafide-stage-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #334155;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}

/* Actions */
.bonafide-table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bonafide-btn-action-primary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bonafide-btn-action-primary:hover {
  background: #1d4ed8;
}

.bonafide-btn-action-view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bonafide-btn-action-view:hover {
  background: #e2e8f0;
}

.bonafide-btn-action-download {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.bonafide-btn-action-download:hover {
  background: #d1fae5;
}

/* Decision Modal Radios */
.bonafide-decision-student-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
}

.bonafide-decision-radios {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bonafide-decision-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.15s ease;
}

.bonafide-decision-radio input {
  margin-top: 3px;
}

.bonafide-decision-radio div strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

.bonafide-decision-radio div small {
  display: block;
  font-size: 11px;
  color: #64748b;
}

.bonafide-decision-radio.active-approve {
  border-color: #059669;
  background: #f0fdf4;
}

.bonafide-decision-radio.active-change {
  border-color: #d97706;
  background: #fffbeb;
}

.bonafide-decision-radio.active-reject {
  border-color: #dc2626;
  background: #fef2f2;
}

@media (max-width: 900px) {
  .bonafide-queue-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Principal / Director Portal Stylesheet - Modern Clean White SaaS Theme */
.erp-principal-layout {
  display: flex;
  min-height: 100vh;
  background-color: #f8fafc;
  color: #0f172a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.erp-principal-sidebar {
  width: 275px;
  background: #091326;
  background: linear-gradient(180deg, #091326 0%, #0b1a36 100%);
  border-right: 1px solid #1a2a44;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.4);
}

.erp-principal-sidebar::-webkit-scrollbar {
  width: 5px;
}

.erp-principal-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.erp-director-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

/* Enhanced Tab navigation badge */
.erp-nav-badge {
  margin-left: auto;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  line-height: 1;
}

.erp-nav-badge.blue {
  background: #2563eb;
}

/* Quick Action Bar */
.principal-quick-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.principal-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.principal-quick-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0284c7;
  transform: translateY(-1px);
}

.principal-quick-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

/* Secondary KPI grid */
.principal-kpi-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.principal-kpi-mini {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.principal-kpi-mini-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.principal-kpi-mini-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

.principal-kpi-mini-note {
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Split Column Grid */
.principal-two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .principal-two-col {
    grid-template-columns: 1fr;
  }
}

/* Activity & Timeline lists */
.principal-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.principal-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.principal-activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0284c7;
  margin-top: 5px;
  flex-shrink: 0;
}

.principal-activity-content {
  flex: 1;
}

.principal-activity-content strong {
  font-size: 0.85rem;
  color: #0f172a;
  display: block;
}

.principal-activity-content p {
  font-size: 0.78rem;
  color: #475569;
  margin: 2px 0 0 0;
}

.principal-activity-time {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Filter controls bar */
.principal-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.principal-filter-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.principal-search-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  min-width: 240px;
}

.principal-search-input input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.84rem;
  color: #0f172a;
  width: 100%;
}

.principal-select {
  padding: 0.45rem 0.8rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.84rem;
  color: #0f172a;
  outline: none;
  cursor: pointer;
}

/* Academic Performance Visualizer */
.semester-trend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.semester-bar-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.semester-bar-wrapper {
  height: 120px;
  width: 28px;
  background: #f1f5f9;
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.semester-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  border-radius: 4px;
  transition: height 0.4s ease;
}

.semester-bar-card strong {
  font-size: 0.82rem;
  color: #0f172a;
}

.semester-bar-card small {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

/* Dean's Honor Roll and At-Risk grid */
.academic-dual-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 1024px) {
  .academic-dual-panels {
    grid-template-columns: 1fr;
  }
}

.honor-student-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fdf4ff;
  border: 1px solid #f5d0fe;
  border-radius: 10px;
  margin-bottom: 0.65rem;
}

.honor-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #a855f7;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.at-risk-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  margin-bottom: 0.65rem;
}

.at-risk-icon {
  color: #e11d48;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Modals */
.principal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
}

.principal-modal {
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalScaleIn 0.2s ease-out;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.principal-modal-header {
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.principal-modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.principal-modal-body {
  padding: 1.5rem;
}

.principal-modal-footer {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ==========================================================
   Full-Width Responsive Layout & Command Center Styles
   ========================================================== */
.principal-portal-content-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.principal-portal-content-wrap .erp-content-body {
  padding: 0;
  max-width: 100%;
  width: 100%;
  margin: 0;
}

/* 8 KPI Cards Grid - Full Width Responsive Grid */
.principal-kpi-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 1300px) {
  .principal-kpi-grid-8 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .principal-kpi-grid-8 {
    grid-template-columns: 1fr;
  }
}

/* Extended Tone Classes matching Student Dashboard */
.tone-indigo {
  --c-bg: #eef2ff;
  --c-border: #c7d2fe;
  --c-accent: #4f46e5;
  --c-badge-bg: #e0e7ff;
  --c-badge-text: #3730a3;
  --c-pill-bg: #e0e7ff;
  --c-pill-text: #3730a3;
}

.tone-teal {
  --c-bg: #f0fdfa;
  --c-border: #99f6e4;
  --c-accent: #0d9488;
  --c-badge-bg: #ccfbf1;
  --c-badge-text: #115e59;
  --c-pill-bg: #ccfbf1;
  --c-pill-text: #115e59;
}

.tone-rose {
  --c-bg: #fff1f2;
  --c-border: #fecdd3;
  --c-accent: #e11d48;
  --c-badge-bg: #ffe4e6;
  --c-badge-text: #9f1239;
  --c-pill-bg: #ffe4e6;
  --c-pill-text: #9f1239;
}

.tone-cyan {
  --c-bg: #ecfeff;
  --c-border: #a5f3fc;
  --c-accent: #0891b2;
  --c-badge-bg: #cffafe;
  --c-badge-text: #155e75;
  --c-pill-bg: #cffafe;
  --c-pill-text: #155e75;
}

.tone-indigo-badge {
  background: var(--c-badge-bg, #e0e7ff);
  color: var(--c-badge-text, #3730a3);
}

.tone-teal-badge {
  background: var(--c-badge-bg, #ccfbf1);
  color: var(--c-badge-text, #115e59);
}

.tone-rose-badge {
  background: var(--c-badge-bg, #ffe4e6);
  color: var(--c-badge-text, #9f1239);
}

.tone-cyan-badge {
  background: var(--c-badge-bg, #cffafe);
  color: var(--c-badge-text, #155e75);
}

/* ==========================================================
   Priority Action Center Styles
   ========================================================== */
.principal-action-center {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.principal-action-center-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.principal-action-title-group h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.principal-action-title-group p {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

.principal-action-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.principal-action-filter-pill {
  padding: 6px 14px;
  border-radius: 7px;
  border: none;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.18s ease;
}

.principal-action-filter-pill:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.8);
}

.principal-action-filter-pill.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.principal-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
}

@media (max-width: 768px) {
  .principal-action-grid {
    grid-template-columns: 1fr;
  }
}

.principal-action-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.principal-action-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.principal-action-card.priority-critical {
  border-left: 4px solid #ef4444;
}

.principal-action-card.priority-high {
  border-left: 4px solid #f59e0b;
}

.principal-action-card.priority-medium {
  border-left: 4px solid #3b82f6;
}

.principal-action-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.principal-action-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.principal-action-priority-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.priority-tag-critical {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.priority-tag-high {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.priority-tag-medium {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.principal-action-card-body h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.principal-action-card-body p {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
}

.principal-action-details-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  color: #475569;
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.principal-action-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #eef2f6;
  flex-wrap: wrap;
}

.principal-action-status-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: #d97706;
  display: flex;
  align-items: center;
  gap: 4px;
}

.principal-action-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-btn-xs {
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.action-btn-primary {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #2563eb;
}

.action-btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.action-btn-danger {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.action-btn-danger:hover {
  background: #fecaca;
  color: #b91c1c;
}

.action-btn-secondary {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.action-btn-secondary:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* ==========================================================
   Operations & Finance 3-Card Grid
   ========================================================== */
.principal-ops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

@media (max-width: 1024px) {
  .principal-ops-grid {
    grid-template-columns: 1fr;
  }
}

.principal-ops-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.principal-ops-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.principal-ops-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.principal-ops-icon-frame {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.principal-ops-card-head h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.principal-ops-card-head span {
  font-size: 0.72rem;
  color: #64748b;
  display: block;
  margin-top: 2px;
}

.principal-ops-stat-large {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.principal-ops-detail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  font-size: 0.8rem;
}

.principal-ops-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #475569;
}

.principal-ops-detail-row strong {
  color: #0f172a;
}

.principal-ops-link-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  transition: gap 0.15s ease;
}

.principal-ops-link-btn:hover {
  gap: 7px;
  color: #1d4ed8;
}

/* ==========================================================================
   Autonomous Examination Cell Portal Stylesheet
   Apna Campus, Bhubaneswar
   Modern Clean Enterprise UI with Deep Indigo & Purple Accents
   ========================================================================== */

.erp-exam-layout {
  display: flex;
  min-height: 100vh;
  background-color: #f8fafc;
  color: #0f172a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

.erp-exam-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  flex-shrink: 0;
}

/* Sidebar Styling */
.erp-exam-layout .erp-sidebar {
  width: 270px;
  background: #091326;
  background: linear-gradient(180deg, #091326 0%, #0b1a36 100%);
  border-right: 1px solid #1a2a44;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.4);
}

.erp-exam-layout .erp-sidebar::-webkit-scrollbar {
  width: 5px;
}

.erp-exam-layout .erp-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.erp-exam-layout .erp-sidebar-brand {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.erp-exam-layout .erp-sidebar-nav {
  padding: 1rem 0.75rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.erp-exam-layout .erp-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.erp-exam-layout .erp-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
}

.erp-exam-layout .erp-nav-item.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(79, 70, 229, 0.35));
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-weight: 700;
}

.erp-exam-layout .erp-nav-badge {
  margin-left: auto;
  background: rgba(124, 58, 237, 0.25);
  color: #c4b5fd;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
}

/* Main Content Area */
.erp-exam-layout .erp-main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

/* Header */
.erp-exam-layout .erp-header {
  height: 70px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.erp-exam-layout .erp-header-title h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.erp-exam-layout .erp-header-title p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 2px 0 0;
}

.erp-exam-layout .erp-role-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.08);
  color: #6d28d9;
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

/* Stats Cards */
.erp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.erp-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.erp-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.erp-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #3b82f6);
}

.erp-stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.erp-stat-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.erp-stat-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.erp-stat-note {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 0.45rem;
}

/* Panels */
.erp-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  margin-bottom: 1.75rem;
}

.erp-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.erp-panel-title h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.erp-panel-title p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 3px 0 0;
}

.erp-panel-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Toolbars & Search */
.exam-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.exam-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 7px 12px;
  flex: 1;
  min-width: 220px;
}

.exam-search-box input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.85rem;
  color: #0f172a;
  width: 100%;
}

.exam-filter-select {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.82rem;
  color: #1e293b;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

/* Buttons */
.erp-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.erp-btn-primary {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.erp-btn-primary:hover {
  background: linear-gradient(135deg, #6d28d9, #5b21b6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.erp-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.erp-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.erp-btn-outline {
  background: transparent;
  color: #6d28d9;
  border: 1px solid #c4b5fd;
}

.erp-btn-outline:hover {
  background: rgba(124, 58, 237, 0.05);
}

.erp-btn-success {
  background: #10b981;
  color: #ffffff;
}

.erp-btn-success:hover {
  background: #059669;
}

.erp-btn-danger {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.erp-btn-danger:hover {
  background: #fecaca;
}

.erp-btn-sm {
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 7px;
}

/* Tables */
.erp-table-responsive {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.erp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.erp-table thead {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.erp-table th {
  padding: 12px 16px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.erp-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.erp-table tbody tr:hover {
  background: #f8fafc;
}

.erp-table td {
  padding: 12px 16px;
  color: #334155;
  vertical-align: middle;
}

/* Status Pill Tags */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill.success {
  background: #dcfce7;
  color: #15803d;
}

.status-pill.warning {
  background: #fef3c7;
  color: #b45309;
}

.status-pill.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.status-pill.info {
  background: #e0e7ff;
  color: #4338ca;
}

.status-pill.purple {
  background: #f3e8ff;
  color: #7e22ce;
}

/* Interactive Modals */
.exam-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.exam-modal-card {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalScaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.exam-modal-card.lg {
  max-width: 860px;
}

.exam-modal-card.xl {
  max-width: 980px;
}

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

.exam-modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.exam-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.exam-modal-header p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 3px 0 0;
}

.exam-modal-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.exam-modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.exam-modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.exam-modal-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Modal Form Controls */
.exam-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.exam-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exam-form-group.full {
  grid-column: 1 / -1;
}

.exam-form-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.exam-form-input,
.exam-form-select,
.exam-form-textarea {
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.85rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.exam-form-input:focus,
.exam-form-select:focus,
.exam-form-textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Admit Card Authentic Document View */
.exam-admit-card-view {
  background: #ffffff;
  border: 2px solid #0f2b48;
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.exam-doc-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(124, 58, 237, 0.04);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.1em;
}

.exam-admit-header {
  border-bottom: 2px solid #dc2626;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.exam-admit-inst-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f2b48;
  letter-spacing: -0.01em;
  margin: 0;
}

.exam-admit-inst-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin: 4px 0 0;
}

.exam-admit-title {
  display: inline-block;
  background: #0f2b48;
  color: #ffffff;
  padding: 4px 16px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 8px;
}

.exam-candidate-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.candidate-photo-box {
  width: 90px;
  height: 110px;
  border: 1px dashed #94a3b8;
  background: #f1f5f9;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #64748b;
  text-align: center;
  padding: 4px;
}

.barcode-stripe {
  height: 28px;
  background: repeating-linear-gradient(
    90deg,
    #0f172a,
    #0f172a 2px,
    transparent 2px,
    transparent 4px,
    #0f172a 4px,
    #0f172a 7px,
    transparent 7px,
    transparent 10px
  );
  margin-top: 6px;
  width: 140px;
}

/* Door Chart / Seating Slip View */
.exam-door-chart-wrap {
  border: 2px dashed #475569;
  border-radius: 12px;
  padding: 1.5rem;
  background: #ffffff;
}

.door-desk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin: 1.25rem 0;
}

.door-desk-cell {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}

.door-desk-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: #7c3aed;
  text-transform: uppercase;
}

.door-desk-roll {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

/* Marks Moderation Live Editor */
.moderation-table input.mark-edit-input {
  width: 60px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-weight: 700;
  text-align: center;
  font-size: 0.85rem;
}

.moderation-table input.mark-edit-input:focus {
  border-color: #7c3aed;
  background: #faf5ff;
  outline: none;
}

/* Print Rules */
@media print {
  .erp-sidebar,
  .erp-header,
  .exam-toolbar,
  .erp-btn,
  .exam-modal-header button,
  .exam-modal-footer {
    display: none !important;
  }

  .erp-exam-layout {
    background: #ffffff !important;
  }

  .exam-modal-overlay {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
  }

  .exam-modal-card {
    box-shadow: none !important;
    max-width: 100% !important;
  }

  .exam-admit-card-view,
  .exam-door-chart-wrap {
    border: 1px solid #000000 !important;
    box-shadow: none !important;
  }
}

/* CoE Operational Dashboard Styles */
.erp-stat-card.clickable-kpi {
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.erp-stat-card.clickable-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.12);
  border-color: #c4b5fd;
}

.kpi-hover-hint {
  font-size: 0.72rem;
  color: #7c3aed;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
}

.exam-calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.exam-calendar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
}

.exam-readiness-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exam-readiness-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 0.85rem;
}

.exam-readiness-item.complete {
  border-left: 4px solid #10b981;
}

.exam-readiness-item.pending {
  border-left: 4px solid #f59e0b;
}

.exam-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0;
}

.exam-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #4f46e5);
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* ==========================================================================
   CoE Enterprise Subtabs Navigation Styles
   ========================================================================== */
.coe-subtabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.coe-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.coe-subtab-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}

.coe-subtab-btn.active {
  background: #ffffff;
  color: #7c3aed;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.coe-subtab-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
  font-weight: 700;
}

.coe-subtab-btn.active .coe-subtab-badge {
  background: #ede9fe;
  color: #7c3aed;
}

/* Section Header in Sidebar */
.erp-sidebar-heading {
  padding: 10px 14px 4px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* ==========================================================================
   COLLEGEFLOW CMS — CENTRAL LIBRARY INFORMATION SYSTEM STYLESHEET
   Visual Identity: Dark Navy Sidebar, White Cards, Emerald/Blue Accents
   ========================================================================== */

.erp-library-layout {
  display: flex;
  min-height: 100vh;
  background-color: #f8fafc;
  color: #0f172a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.erp-lib-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* Stat Cards */
.lib-stat-card-clickable {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e2e8f0;
}

.lib-stat-card-clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
  border-color: #10b981;
}

.lib-stat-card-clickable.active {
  border-color: #059669;
  background: #f0fdf4;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

/* Filter Strip */
.lib-filter-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.lib-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  min-width: 280px;
}

.lib-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.88rem;
  width: 100%;
  color: #1e293b;
}

.lib-select-filter {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.86rem;
  color: #334155;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

/* Library Tables */
.lib-table-container {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

.lib-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.lib-data-table th {
  background: #f8fafc;
  padding: 12px 16px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.lib-data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.lib-data-table tr:hover td {
  background: #f8fafc;
}

/* Status Badges */
.lib-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 600;
}

.lib-badge-available { background: #dcfce7; color: #15803d; }
.lib-badge-issued { background: #e0f2fe; color: #0369a1; }
.lib-badge-overdue { background: #fee2e2; color: #b91c1c; }
.lib-badge-returned { background: #f1f5f9; color: #475569; }
.lib-badge-reserved { background: #fef3c7; color: #b45309; }
.lib-badge-damaged { background: #ffedd5; color: #c2410c; }
.lib-badge-paid { background: #dcfce7; color: #166534; }
.lib-badge-unpaid { background: #fee2e2; color: #991b1b; }
.lib-badge-waived { background: #ede9fe; color: #6d28d9; }

/* Action Buttons */
.lib-btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

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

.lib-btn-outline {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.lib-btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.lib-btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: 6px;
}

.lib-btn-danger-sm {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.lib-btn-danger-sm:hover {
  background: #fecaca;
}

.lib-btn-success-sm {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.lib-btn-success-sm:hover {
  background: #bbf7d0;
}

/* Modal Dialog Backdrop & Card */
.lib-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.lib-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
}

.lib-modal-header {
  padding: 18px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lib-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lib-modal-body {
  padding: 24px;
}

.lib-modal-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Form Styles */
.lib-form-group {
  margin-bottom: 16px;
}

.lib-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.lib-form-input,
.lib-form-select,
.lib-form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.88rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s;
  background: #ffffff;
  box-sizing: border-box;
}

.lib-form-input:focus,
.lib-form-select:focus,
.lib-form-textarea:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.lib-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Digital Receipt Letterhead */
.lib-receipt-box {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 24px;
  position: relative;
}

.lib-receipt-header {
  text-align: center;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.lib-receipt-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #0f172a;
  text-transform: uppercase;
}

.lib-receipt-header p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.lib-receipt-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.84rem;
  margin-bottom: 16px;
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
}

.lib-receipt-meta span {
  color: #64748b;
}

.lib-receipt-meta strong {
  color: #0f172a;
}

/* Quick Issue Counter Box */
.lib-quick-issue-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.lib-quick-issue-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}

/* Policy Card & Grid */
.lib-policy-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}

.lib-policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

/* Print Specific */
@media print {
  .erp-sidebar,
  .erp-header,
  .lib-filter-strip,
  .lib-modal-footer,
  .campus-logout-btn {
    display: none !important;
  }
  .lib-receipt-box {
    border: none;
    box-shadow: none;
  }
}
/* Training & Placement Cell (T&P) Stylesheet - CollegeFlow CMS */
.erp-placement-layout {
  display: flex;
  min-height: 100vh;
  background-color: #f8fafc;
  color: #0f172a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.erp-place-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ec4899, #db2777);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
  color: #ffffff;
  flex-shrink: 0;
}

/* Sidebar Navigation */
.erp-sidebar {
  width: 260px;
  background: #091326;
  background: linear-gradient(180deg, #091326 0%, #0b1a36 100%);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid #1a2a44;
  min-height: 100vh;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 14px 35px rgba(2, 6, 23, 0.4);
}

.erp-sidebar::-webkit-scrollbar {
  width: 5px;
}

.erp-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .erp-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
}

.erp-sidebar-brand {
  padding: 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
}

.erp-brand-text h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.erp-brand-text span {
  font-size: 0.76rem;
  font-weight: 600;
  color: #f472b6;
  display: block;
}

.erp-sidebar-nav {
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.erp-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #94a3b8;
  background: transparent;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.erp-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.erp-nav-item.active {
  background: #db2777;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.4);
}

/* Main Content Area */
.erp-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: #f8fafc;
}

.erp-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.erp-header-title h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.erp-header-title p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 2px 0 0 0;
}

.erp-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.erp-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.campus-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  padding: 4px 12px 4px 6px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
}

.campus-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #db2777;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.campus-user-details strong {
  display: block;
  font-size: 0.8rem;
  color: #0f172a;
}

.campus-user-details small {
  font-size: 0.7rem;
  color: #64748b;
}

.campus-logout-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.campus-logout-btn:hover {
  background: #fee2e2;
}

.erp-content-body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Stats KPI Grid */
.erp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.erp-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.erp-stat-card-clickable {
  cursor: pointer;
}

.erp-stat-card-clickable:hover {
  transform: translateY(-2px);
  border-color: #f472b6;
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.12);
}

.erp-stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.erp-stat-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

.erp-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.erp-stat-note {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 4px;
}

.erp-stat-sub {
  font-size: 0.74rem;
  font-weight: 600;
  margin-top: 4px;
}

/* Panels */
.erp-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.erp-panel-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.erp-panel-title h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.erp-panel-title p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 3px 0 0 0;
}

.erp-panel-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Filter bar */
.erp-filter-bar {
  padding: 0.85rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.erp-search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: #0f172a;
  width: 280px;
}

.erp-search-input input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.85rem;
  background: transparent;
}

/* Buttons */
.erp-btn-primary {
  background: #db2777;
  color: #ffffff;
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.erp-btn-primary:hover {
  background: #be185d;
  transform: translateY(-1px);
}

.erp-btn-secondary {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.erp-btn-secondary:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.erp-btn-sm {
  padding: 4px 9px;
  font-size: 0.76rem;
  border-radius: 6px;
}

/* Table */
.erp-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.erp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.erp-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 10px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.erp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.erp-table tr:hover td {
  background: #f8fafc;
}

/* Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
}

.badge-status.active {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-status.warning {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-status.danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.badge-status.pink {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
}

.badge-status.info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* Modals */
.erp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.erp-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.erp-modal-header {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.erp-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.erp-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.erp-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.erp-form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.erp-form-group input,
.erp-form-group select,
.erp-form-group textarea {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease;
}

.erp-form-group input:focus,
.erp-form-group select:focus,
.erp-form-group textarea:focus {
  border-color: #db2777;
}

.erp-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Digital Job Offer Letter */
.digital-offer-card {
  background: #ffffff;
  border: 2px solid #db2777;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(219, 39, 119, 0.12);
  color: #0f172a;
  position: relative;
}

.offer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.offer-field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.offer-field label {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
}

.offer-field strong {
  font-size: 0.95rem;
  color: #0f172a;
}
/* Internship Cell Management System Styles */

.icm-wrapper {
  padding: 1.5rem;
  background: #f8fafc;
  min-height: 100%;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #0f172a;
}

/* ── Top Header ── */
.icm-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 1.25rem 1.75rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
}

.icm-header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icm-brand-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.icm-main-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f2b48;
  margin: 0;
  line-height: 1.2;
}

.icm-sub-title {
  font-size: 0.825rem;
  color: #64748b;
  margin: 3px 0 0 0;
}

.icm-btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icm-btn-refresh:hover:not(:disabled) {
  background: #dbeafe;
}

.spin {
  animation: icm-spin 1s linear infinite;
}

@keyframes icm-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── KPI Summary Cards ── */
.icm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.icm-stat-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.15rem;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.icm-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.icm-stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-blue .icm-stat-icon-wrap { background: #dbeafe; color: #1d4ed8; }
.card-purple .icm-stat-icon-wrap { background: #ede9fe; color: #6d28d9; }
.card-green .icm-stat-icon-wrap { background: #dcfce7; color: #15803d; }
.card-teal .icm-stat-icon-wrap { background: #ccfbf1; color: #0f766e; }
.card-amber .icm-stat-icon-wrap { background: #fef3c7; color: #b45309; }
.card-rose .icm-stat-icon-wrap { background: #ffe4e6; color: #be123c; }

.icm-stat-info {
  display: flex;
  flex-direction: column;
}

.icm-stat-label {
  font-size: 0.725rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.icm-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.icm-stat-sub {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* ── Generation & Search Section ── */
.icm-generation-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.icm-section-header {
  margin-bottom: 1.25rem;
}

.icm-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icm-section-title-wrap h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f2b48;
  margin: 0;
}

.icm-section-title-wrap p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 2px 0 0 0;
}

.icm-search-form-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.icm-input-with-icon {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.icm-search-icon {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  pointer-events: none;
}

.icm-search-input {
  width: 100%;
  padding: 0.65rem 2.2rem 0.65rem 2.4rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.icm-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.icm-btn-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
}

.icm-btn-search {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #2563eb;
  color: #ffffff;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.icm-btn-search:hover:not(:disabled) {
  background: #1d4ed8;
}

.icm-quick-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.icm-chips-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.icm-chip-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.icm-chip-btn:hover,
.icm-chip-btn.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  font-weight: 600;
}

.icm-error-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.825rem;
  margin-bottom: 1rem;
}

/* ── 2-Column Student & ID Card Grid ── */
.icm-student-stage-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .icm-student-stage-grid {
    grid-template-columns: 1fr;
  }
}

.icm-student-bio-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
}

.icm-bio-top-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.icm-avatar-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #93c5fd;
  flex-shrink: 0;
}

.icm-avatar-svg {
  width: 100%;
  height: 100%;
}

.icm-student-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.icm-pills-cluster {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.icm-pill-blue {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.icm-pill-gray {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.icm-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.icm-status-pill.active {
  background: #dcfce7;
  color: #15803d;
}

.icm-status-pill.inactive {
  background: #fee2e2;
  color: #b91c1c;
}

.icm-bio-table {
  width: 100%;
  font-size: 0.8rem;
  border-collapse: collapse;
}

.icm-bio-table th {
  text-align: left;
  padding: 0.4rem 0;
  color: #64748b;
  font-weight: 600;
  width: 38%;
}

.icm-bio-table td {
  padding: 0.4rem 0;
  color: #0f172a;
}

.icm-badge-eligible {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #15803d;
  font-weight: 700;
}

.icm-badge-ineligible {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #b91c1c;
  font-weight: 700;
}

.icm-active-card-notice {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  display: flex;
  gap: 0.6rem;
}

.icm-active-card-notice strong {
  display: block;
  font-size: 0.8rem;
  color: #15803d;
}

.icm-active-card-notice p {
  margin: 2px 0 0 0;
  font-size: 0.725rem;
  color: #166534;
}

.icm-pending-card-notice {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  display: flex;
  gap: 0.6rem;
}

.icm-pending-card-notice strong {
  display: block;
  font-size: 0.8rem;
  color: #b45309;
}

.icm-pending-card-notice p {
  margin: 2px 0 0 0;
  font-size: 0.725rem;
  color: #92400e;
}

/* ── ID Card Preview Stage ── */
.icm-idcard-preview-stage {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.icm-stage-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.icm-badge-preview-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.icm-btn-stage-issue {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #10b981;
  color: #ffffff;
  border: none;
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.icm-btn-stage-issue:hover:not(:disabled) {
  background: #059669;
}

.icm-btn-stage-issue:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.icm-btn-stage-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #0f2b48;
  color: #ffffff;
  border: none;
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 6px rgba(15, 43, 72, 0.25);
}

.icm-btn-stage-download:hover {
  background: #1e3a8a;
}

/* ── EXACT PHYSICAL ID CARD BADGE (MATCHING SCREENSHOT) ── */
.icm-id-card-frame {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: flex;
  flex-direction: column;
}

.icm-card-header {
  background: #0f2b48;
  color: #ffffff;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.icm-card-star-emblem {
  width: 22px;
  height: 22px;
  background: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #ffffff;
  font-weight: 900;
  line-height: 1;
}

.icm-card-header-title {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.icm-card-body {
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #ffffff;
  position: relative;
}

.icm-card-photo-box {
  width: 72px;
  height: 86px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icm-card-photo-svg {
  width: 100%;
  height: 100%;
}

.icm-card-fields {
  flex: 1;
  font-size: 0.725rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.icm-field-line {
  display: flex;
  gap: 0.35rem;
  line-height: 1.25;
}

.icm-field-key {
  font-weight: 700;
  color: #0f172a;
  min-width: 62px;
}

.icm-field-val {
  color: #334155;
  word-break: break-word;
}

.icm-field-val.strong {
  font-weight: 700;
  color: #0f172a;
}

.icm-card-qr-box {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  padding: 3px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.icm-card-qr-img {
  width: 44px;
  height: 44px;
  display: block;
}

.icm-qr-label {
  font-size: 0.45rem;
  font-weight: 700;
  color: #0f2b48;
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.icm-card-footer {
  background: #dc2626;
  color: #ffffff;
  text-align: center;
  padding: 0.55rem 0.5rem;
}

.icm-card-footer-title {
  font-size: 0.775rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.icm-card-footer-sub {
  font-size: 0.625rem;
  color: #fee2e2;
  margin-top: 1px;
}

/* ── ID Card Management Table ── */
.icm-table-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.icm-table-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.icm-table-header-row h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f2b48;
  margin: 0;
}

.icm-table-header-row p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 2px 0 0 0;
}

.icm-table-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.icm-input-with-icon.mini {
  width: 220px;
}

.icm-input-with-icon.mini input {
  padding: 0.45rem 0.65rem 0.45rem 2rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.775rem;
  width: 100%;
}

.icm-select-filter {
  padding: 0.45rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.775rem;
  color: #334155;
  background: #ffffff;
  cursor: pointer;
  outline: none;
}

.icm-select-filter:focus {
  border-color: #2563eb;
}

.icm-table-container {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.icm-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.775rem;
  text-align: left;
}

.icm-data-table thead {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.icm-data-table th {
  padding: 0.75rem 0.85rem;
  color: #475569;
  font-weight: 700;
  white-space: nowrap;
}

.icm-data-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}

.icm-data-table tbody tr:hover {
  background: #f8fafc;
}

.icm-data-table td {
  padding: 0.75rem 0.85rem;
  color: #1e293b;
  vertical-align: middle;
}

.icm-card-no-tag {
  font-family: monospace;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.icm-badge-status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.675rem;
  font-weight: 700;
  text-transform: uppercase;
}

.icm-badge-status.status-issued {
  background: #dcfce7;
  color: #15803d;
}

.icm-badge-status.status-expired {
  background: #fef3c7;
  color: #b45309;
}

.icm-badge-status.status-revoked {
  background: #fee2e2;
  color: #b91c1c;
}

.icm-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.icm-btn-action {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s;
}

.icm-btn-action:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.icm-btn-action.download:hover {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.icm-btn-action.reissue:hover {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.icm-btn-action.renew:hover {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

.icm-btn-action.revoke:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.icm-table-loading,
.icm-table-empty {
  padding: 3rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: #64748b;
}

.icm-table-empty h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
  margin: 0;
}

.icm-table-empty p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
  max-width: 400px;
}

.icm-pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #64748b;
}

.icm-pagination-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icm-btn-page {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.65rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}

.icm-btn-page:hover:not(:disabled) {
  background: #f1f5f9;
}

.icm-btn-page:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.icm-page-indicator {
  font-weight: 600;
  color: #0f172a;
}

/* ── Toast Alert ── */
.icm-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  animation: icm-slide-up 0.3s ease;
}

.icm-toast.success {
  background: #065f46;
  color: #ffffff;
}

.icm-toast.error {
  background: #991b1b;
  color: #ffffff;
}

.icm-toast.info {
  background: #1e40af;
  color: #ffffff;
}

@keyframes icm-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Modals ── */
.icm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.icm-modal-window {
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: icm-zoom 0.2s ease;
}

@keyframes icm-zoom {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.icm-modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icm-modal-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f2b48;
  margin: 0;
}

.icm-btn-close-modal {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
}

.icm-btn-close-modal:hover {
  color: #0f172a;
}

.icm-modal-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.icm-modal-body {
  padding: 1.25rem;
}

.icm-modal-instruction {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.icm-form-group {
  margin-bottom: 1rem;
}

.icm-form-group label {
  display: block;
  font-size: 0.775rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.icm-form-group input,
.icm-form-group textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.825rem;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
}

.icm-form-group input:focus,
.icm-form-group textarea:focus {
  border-color: #2563eb;
}

.icm-revoke-warning {
  display: flex;
  gap: 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.icm-revoke-warning p {
  margin: 0;
  font-size: 0.8rem;
  color: #991b1b;
  line-height: 1.35;
}

.icm-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.icm-btn-cancel {
  padding: 0.5rem 1rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.icm-btn-submit {
  padding: 0.5rem 1.15rem;
  background: #2563eb;
  border: none;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.icm-btn-submit.danger {
  background: #dc2626;
}

.icm-modal-view-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.icm-modal-card-display {
  display: flex;
  justify-content: center;
}

.icm-id-card-frame.mini {
  max-width: 360px;
}

.icm-audit-trail-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem;
}

.icm-audit-trail-box h5 {
  margin: 0 0 0.65rem 0;
  font-size: 0.775rem;
  font-weight: 700;
  color: #0f2b48;
  text-transform: uppercase;
}

.icm-audit-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  padding: 0.25rem 0;
  color: #475569;
}

.icm-audit-row.alert {
  color: #dc2626;
  font-weight: 600;
}
/* ==============================================================================
   Apna Campus ERP — Laboratory Staff Portal Professional Stylesheet
   NAAC A++ Autonomous College Management ERP
   ============================================================================== */

.staff-portal-content-wrap {
  width: 100%;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
}

/* Badge classes */
.apna-badge-danger {
  background: #ef4444 !important;
  color: #ffffff !important;
}

.apna-badge-warning {
  background: #f59e0b !important;
  color: #ffffff !important;
}

.apna-badge-info {
  background: #0284c7 !important;
  color: #ffffff !important;
}

.apna-badge-success {
  background: #10b981 !important;
  color: #ffffff !important;
}

/* Enterprise status badges */
.erp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.erp-status-operational {
  background: #dcfce7;
  color: #15803d;
}

.erp-status-warning {
  background: #fef3c7;
  color: #b45309;
}

.erp-status-critical {
  background: #fee2e2;
  color: #b91c1c;
}

.erp-status-in-progress {
  background: #e0f2fe;
  color: #0369a1;
}

/* Table styling helpers */
.staff-table-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.staff-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.staff-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.staff-table tr:hover td {
  background: #f8fafc;
}

/* Modal and Drawers */
@keyframes apna-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.staff-modal-fade {
  animation: apna-fade-in 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Print optimizations */
@media print {
  .apna-sidebar,
  .apna-topbar,
  .apna-breadcrumb-bar,
  button,
  .apna-sidebar-footer {
    display: none !important;
  }
  .staff-portal-content-wrap {
    padding: 0 !important;
    max-width: 100% !important;
  }
  body {
    background: #ffffff !important;
  }
}
/* Enterprise CSS for Admissions Directorate Portal */

:root {
  --adm-navy: #0f172a;
  --adm-blue-primary: #0284c7;
  --adm-blue-active: #2563eb;
  --adm-blue-light: #f0f9ff;
  --adm-border: #e2e8f0;
  --adm-text-main: #0f172a;
  --adm-text-muted: #64748b;
  --adm-bg-surface: #ffffff;
  --adm-bg-page: #f8fafc;
}

.admissions-portal-wrap {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 20px 28px 40px;
  color: var(--adm-text-main);
  font-family: inherit;
}

/* Officer Dossier Banner */
.adm-officer-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 16px 22px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.adm-officer-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.adm-officer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.25);
  border: 1.5px solid rgba(59, 130, 246, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-size: 1.2rem;
  font-weight: 700;
}

.adm-officer-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-officer-sub {
  margin: 3px 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.adm-officer-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.adm-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.adm-badge-pill.dark {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.adm-badge-pill.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* KPI Summary Cards Grid */
.adm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.adm-kpi-card {
  background: var(--adm-bg-surface);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.adm-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
}

.adm-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--adm-blue-primary);
}

.adm-kpi-card.blue::before { background: #0284c7; }
.adm-kpi-card.teal::before { background: #0d9488; }
.adm-kpi-card.amber::before { background: #d97706; }
.adm-kpi-card.rose::before { background: #e11d48; }
.adm-kpi-card.green::before { background: #059669; }
.adm-kpi-card.violet::before { background: #7c3aed; }
.adm-kpi-card.indigo::before { background: #4f46e5; }
.adm-kpi-card.cyan::before { background: #0891b2; }

.adm-kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.adm-kpi-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--adm-text-muted);
  letter-spacing: 0.03em;
}

.adm-kpi-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
}

.adm-kpi-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--adm-text-main);
  margin-top: 8px;
  line-height: 1.1;
}

.adm-kpi-foot {
  font-size: 0.72rem;
  margin-top: 6px;
  color: var(--adm-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Standard Section Box */
.adm-panel-box {
  background: var(--adm-bg-surface);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 22px;
}

.adm-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
}

.adm-panel-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--adm-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-panel-desc {
  margin: 3px 0 0;
  font-size: 0.74rem;
  color: var(--adm-text-muted);
}

.adm-panel-body {
  padding: 20px;
}

/* Filter Controls Toolbar */
.adm-filter-bar {
  background: #ffffff;
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.adm-search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.adm-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.adm-search-input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.84rem;
  outline: none;
  background: #ffffff;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.adm-search-input:focus {
  border-color: var(--adm-blue-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.adm-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.adm-select-control {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.85rem;
  background: #ffffff;
  color: #1e293b;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  min-height: 40px;
}

.adm-select-control:focus {
  border-color: var(--adm-blue-primary);
}

/* Master Tables */
.adm-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.adm-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.83rem;
}

.adm-data-table thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid var(--adm-border);
  white-space: nowrap;
}

.adm-data-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.adm-data-table tbody tr:hover {
  background-color: #f8fafc;
}

.adm-data-table td {
  padding: 13px 14px;
  vertical-align: middle;
}

/* Action Buttons */
.adm-btn-primary {
  padding: 8px 14px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.15s ease, transform 0.1s;
}

.adm-btn-primary:hover {
  background: #0369a1;
}

.adm-btn-secondary {
  padding: 7px 12px;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.adm-btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.adm-btn-success {
  padding: 6px 12px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.adm-btn-success:hover {
  background: #dcfce7;
}

.adm-btn-danger {
  padding: 6px 10px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.adm-btn-danger:hover {
  background: #fee2e2;
}

/* Status Badges */
.adm-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
}

.adm-status-tag.enrolled { background: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; }
.adm-status-tag.verified { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.adm-status-tag.eligible { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.adm-status-tag.selected { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.adm-status-tag.applied { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.adm-status-tag.under_review { background: #f8fafc; color: #475569; border: 1px solid #cbd5e1; }
.adm-status-tag.documents_pending { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.adm-status-tag.offer_accepted { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }
.adm-status-tag.rejected { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* Progress Funnel List */
.adm-funnel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.adm-funnel-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
}

.adm-funnel-bar-bg {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin: 8px 0 6px;
}

.adm-funnel-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Modals & Overlays */
.adm-modal-backdrop {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
}

.adm-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
}

.adm-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.adm-modal-body {
  padding: 24px;
}

.adm-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f8fafc;
}

/* Simulated Document Preview Frame */
.adm-doc-preview-frame {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  position: relative;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.adm-doc-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(148, 163, 184, 0.15);
  pointer-events: none;
  white-space: nowrap;
}

/* Checklist step items */
.adm-step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  margin-bottom: 8px;
}

.adm-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.adm-step-item.completed {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.adm-step-item.completed .adm-step-number {
  background: #10b981;
  color: #ffffff;
}

/* Calendar month grid */
.adm-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 14px;
}

.adm-cal-day-header {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  padding: 6px 0;
}

.adm-cal-cell {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  min-height: 80px;
  padding: 6px;
  font-size: 0.75rem;
  position: relative;
}

.adm-cal-cell.today {
  border-color: #0284c7;
  background: #f0f9ff;
}

.adm-cal-event-pill {
  font-size: 0.65rem;
  padding: 2px 5px;
  border-radius: 4px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
/* College Management ERP — Scholarship & Student Financial Aid Portal Stylesheet */
.scholarship-module-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeInScholarship 0.2s ease-in-out;
}

@keyframes fadeInScholarship {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Strategic Banner */
.scholarship-banner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0284c7;
  padding: 0.9rem 1.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.scholarship-banner.success {
  border-left-color: #10b981;
  background: #f0fdf4;
}

.scholarship-banner.warning {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.scholarship-banner-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.84rem;
  color: #334155;
}

.scholarship-cycle-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #e0f2fe;
  color: #0369a1;
  text-transform: uppercase;
}

/* KPI Summary Grid */
.scholarship-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.scholarship-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: default;
}

.scholarship-kpi-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.scholarship-kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scholarship-kpi-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scholarship-kpi-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
}

.scholarship-kpi-note {
  font-size: 0.74rem;
  color: #64748b;
}

/* Toolbar Controls */
.scholarship-toolbar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.scholarship-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  flex: 1;
}

.scholarship-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scholarship-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  min-width: 250px;
}

.scholarship-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.82rem;
  color: #0f172a;
  width: 100%;
}

.scholarship-select {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #1e293b;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.scholarship-select:focus {
  border-color: #0284c7;
}

/* Quick Nav Pills Bar */
.scholarship-quick-pills {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.scholarship-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.scholarship-pill-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0284c7;
}

.scholarship-pill-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

/* Badges */
.sbadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sbadge.success { background: #dcfce7; color: #15803d; }
.sbadge.warning { background: #fef3c7; color: #b45309; }
.sbadge.danger { background: #fee2e2; color: #b91c1c; }
.sbadge.info { background: #e0f2fe; color: #0369a1; }
.sbadge.purple { background: #f3e8ff; color: #7e22ce; }
.sbadge.slate { background: #f1f5f9; color: #475569; }

/* Progress Mini */
.s-progress-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.s-progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Modal styling */
.scholarship-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.scholarship-modal {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.scholarship-modal-header {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scholarship-modal-body {
  padding: 1.25rem 1.4rem;
  flex: 1;
}

.scholarship-modal-footer {
  padding: 1rem 1.4rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

/* Two-column layout */
.scholarship-two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .scholarship-two-col {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCHOLARSHIP PORTAL COMPONENT UTILITY SYSTEM (VANILLA CSS EQUIVALENTS)
   Eliminates all unstyled/raw HTML appearance across submodules
   ═══════════════════════════════════════════════════════════════════════════ */

/* Layout & Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Gaps */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }

/* Backgrounds */
.bg-white { background-color: #ffffff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-200 { background-color: #e2e8f0; }
.bg-slate-900 { background-color: #0f172a; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-600 { background-color: #2563eb; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-amber-500 { background-color: #f59e0b; }
.bg-rose-50 { background-color: #fff1f2; }
.bg-rose-100 { background-color: #ffe4e6; }
.bg-indigo-50 { background-color: #eef2ff; }
.bg-purple-50 { background-color: #faf5ff; }

/* Borders */
.border { border: 1px solid #e2e8f0; }
.border-t { border-top: 1px solid #e2e8f0; }
.border-b { border-bottom: 1px solid #e2e8f0; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-blue-200 { border-color: #bfdbfe; }
.border-blue-300 { border-color: #93c5fd; }
.hover\:border-blue-300:hover { border-color: #93c5fd; }
.border-dashed { border-style: dashed; }

/* Border Radius */
.rounded { border-radius: 4px; }
.rounded-md { border-radius: 6px; }
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.hover\:shadow-md:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }

/* Spacing Padding */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pl-9 { padding-left: 2.25rem; }
.pr-4 { padding-right: 1rem; }

/* Spacing Margin */
.m-0 { margin: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mr-2 { margin-right: 0.5rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[13px\] { font-size: 13px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.leading-snug { line-height: 1.375; }

/* Text Colors */
.text-white { color: #ffffff; }
.text-slate-900 { color: #0f172a; }
.text-slate-800 { color: #1e293b; }
.text-slate-700 { color: #334155; }
.text-slate-600 { color: #475569; }
.text-slate-500 { color: #64748b; }
.text-slate-400 { color: #94a3b8; }
.text-blue-600 { color: #2563eb; }
.text-emerald-600 { color: #059669; }
.text-emerald-800 { color: #065f46; }
.text-amber-600 { color: #d97706; }
.text-amber-800 { color: #92400e; }
.text-rose-600 { color: #e11d48; }
.text-rose-800 { color: #9f1239; }
.text-indigo-600 { color: #4f46e5; }
.text-purple-600 { color: #9333ea; }

/* Sizing & Positioning */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-1\.5 { height: 0.375rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.left-3 { left: 0.75rem; }
.top-1\/2 { top: 50%; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.overflow-hidden { overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block { display: block; }
.inline-block { display: inline-block; }
.cursor-pointer { cursor: pointer; }
.transition { transition: all 0.15s ease-in-out; }
/* Campus Operations Portal Styling - Institutional Enterprise Grade */

.ops-portal-layout {
  display: flex;
  min-height: 100vh;
  background-color: #f8fafc;
  color: #0f172a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Sidebar Specifics */
.ops-sidebar-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.ops-category-switcher-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ops-category-switcher-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ops-category-switcher-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ops-category-select {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background-color: #f1f5f9;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ops-category-select:focus {
  outline: none;
  border-color: #0ea5e9;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.ops-category-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* Header & Stat Cards */
.ops-stat-grid-10 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.ops-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.ops-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.ops-stat-card.alert-border {
  border-left: 4px solid #ef4444;
}

.ops-stat-card.warning-border {
  border-left: 4px solid #f59e0b;
}

.ops-stat-card.success-border {
  border-left: 4px solid #10b981;
}

.ops-stat-card.info-border {
  border-left: 4px solid #0ea5e9;
}

.ops-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ops-stat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ops-stat-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.ops-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-transform: capitalize;
}

/* Role-Specific Focus Banner */
.ops-role-focus-banner {
  background: linear-gradient(135deg, #091326 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ops-role-focus-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.ops-role-focus-desc {
  font-size: 0.86rem;
  color: #94a3b8;
  margin: 0;
  max-width: 700px;
  line-height: 1.5;
}

.ops-role-focus-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ops-focus-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #38bdf8;
}

/* Tables, Badges & Cards */
.ops-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ops-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.ops-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ops-card-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  margin: 2px 0 0 0;
}

.ops-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ops-search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  min-width: 260px;
}

.ops-search-input input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  width: 100%;
  color: #0f172a;
}

.ops-select {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  color: #0f172a;
  cursor: pointer;
}

.ops-btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.ops-btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
}

.ops-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ops-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.ops-btn-sm {
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 6px;
}

/* Priority & Status Badges */
.ops-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ops-badge-critical {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.ops-badge-high {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.ops-badge-medium {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.ops-badge-low {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.ops-badge-completed {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.ops-badge-inprogress {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

.ops-badge-accepted {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}

.ops-badge-new {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fef08a;
}

/* Tables */
.ops-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.ops-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.ops-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.ops-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.ops-table tr:hover td {
  background-color: #f8fafc;
}

.ops-table-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 1.5px solid #e2e8f0;
}

/* Modals */
.ops-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ops-modal-card {
  background: #ffffff;
  border-radius: 14px;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.ops-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ops-modal-body {
  padding: 20px 24px;
  flex: 1;
}

.ops-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #f8fafc;
}

.ops-form-group {
  margin-bottom: 16px;
}

.ops-form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.ops-form-control {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.85rem;
  color: #0f172a;
  background: #ffffff;
  box-sizing: border-box;
}

.ops-form-control:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Toast */
.ops-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  animation: opsSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes opsSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .ops-stat-grid-10 {
    grid-template-columns: repeat(2, 1fr);
  }
  .ops-role-focus-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .ops-stat-grid-10 {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   APNA CAMPUS — CAMPUS SECURITY PORTAL STYLES
   Institutional Executive Design System (Matching Hostel Admin Portal)
   Clean White Cards, High-Contrast Typography, Mobile-First Responsiveness
   ========================================================================== */

/* Main Portal Wrapper inside AppLayout */
.sec-portal-wrapper {
  background-color: #f8fafc;
  min-height: 100%;
  color: #1e293b;
  font-family: inherit;
  padding: 1.25rem 1.5rem 2.5rem;
  box-sizing: border-box;
}

.sec-dashboard-landing-container {
  margin: 0 0 1.5rem 0;
}

/* Duty & Header Action Badges */
.sec-duty-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sec-duty-pulse {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  animation: sec-pulse-dot 1.8s infinite;
}

@keyframes sec-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.sec-online-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sec-online-pill.online {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.sec-online-pill.offline {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.sec-btn-sync {
  background: #d97706;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.2);
}

.sec-btn-sync:hover:not(:disabled) {
  background: #b45309;
}

.sec-btn-sync:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.sec-btn-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #ffffff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.sec-btn-switch:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

/* ==========================================================================
   Executive Dashboard Header (Matching Hostel Admin Dashboard)
   ========================================================================== */
.sec-executive-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.sec-executive-title-group h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.sec-executive-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: #ede9fe;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid #ddd6fe;
}

.sec-executive-subtitle {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0;
  max-width: 800px;
  line-height: 1.5;
}

.sec-quick-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Standard Action Buttons */
.sec-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: #0284c7;
  color: #ffffff;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.2);
}

.sec-btn-primary:hover:not(:disabled) {
  background: #0369a1;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.sec-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sec-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  transition: all 0.15s ease-in-out;
}

.sec-btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}


.sec-btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  background: #059669;
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
  transition: all 0.15s ease-in-out;
}

.sec-btn-emerald:hover:not(:disabled) {
  background: #047857;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  transform: translateY(-1px);
}


.sec-btn-emerald:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sec-btn-sky {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  background: #0284c7;
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
  transition: all 0.15s ease-in-out;
}

.sec-btn-sky:hover:not(:disabled) {
  background: #0369a1;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.sec-btn-sky:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sec-btn-rose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.sec-btn-rose:hover {
  background: #fecaca;
  border-color: #fca5a5;
}

/* ==========================================================================
   Filter & Toolbar Bar (Matching Hostel Admin Filter Bar)
   ========================================================================== */
.sec-filter-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.sec-filter-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: #475569;
}

.sec-filter-select,
.sec-input {
  padding: 0.45rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.825rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Status Cards & Grid */
.sec-filter-select:focus,
.sec-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* ==========================================================================
   Urgent Alerts & Offline Banners
   ========================================================================== */
.sec-alert-banner {
  background: #fff1f2;
  border: 1px solid #ffe4e6;
  border-left: 4px solid #e11d48;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sec-alert-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sec-alert-text strong {
  color: #9f1239;
  font-size: 0.88rem;
  display: block;
}

.sec-alert-text span {
  color: #be123c;
  font-size: 0.8rem;
}

.sec-offline-banner {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sec-offline-banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #92400e;
  font-size: 0.84rem;
}

.sec-offline-banner-left strong {
  color: #78350f;
  margin-right: 0.35rem;
}

.sec-provisional-note {
  display: block;
  font-size: 0.76rem;
  color: #b45309;
  margin-top: 0.15rem;
}

/* ==========================================================================
   KPI Cards Grid (Matching Hostel Admin Dashboard had-kpi-grid)
   ========================================================================== */
.sec-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sec-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.sec-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.sec-kpi-card-header,
.sec-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.sec-kpi-label,
.sec-kpi-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sec-kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sec-kpi-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.sec-kpi-icon.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.sec-kpi-icon.amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.sec-kpi-icon.rose {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
}

.sec-kpi-icon.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.sec-kpi-icon.blue { background: #e0f2fe; color: #0284c7; }
.sec-kpi-icon.emerald { background: #d1fae5; color: #059669; }
.sec-kpi-icon.purple { background: #ede9fe; color: #7c3aed; }
.sec-kpi-icon.amber { background: #fef3c7; color: #d97706; }
.sec-kpi-icon.rose { background: #ffe4e6; color: #e11d48; }

.sec-kpi-value,
.sec-kpi-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.sec-kpi-subtext,
.sec-kpi-sub {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Progress bar inside KPI */
.sec-progress-bar {
  width: 100%;
  height: 5px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.sec-progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.sec-progress-fill.emerald { background: #10b981; }
.sec-progress-fill.blue { background: #0284c7; }
.sec-progress-fill.purple { background: #7c3aed; }
.sec-progress-fill.amber { background: #f59e0b; }
.sec-progress-fill.rose { background: #f43f5e; }

/* ==========================================================================
   Multi-Column Sections Grid (Matching had-sections-grid)
   ========================================================================== */
.sec-sections-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.sec-col-12 { grid-column: span 12; }
.sec-col-8 { grid-column: span 8; }
.sec-col-7 { grid-column: span 7; }
.sec-col-6 { grid-column: span 6; }
.sec-col-5 { grid-column: span 5; }
.sec-col-4 { grid-column: span 4; }

/* Standard White Container Card */
.sec-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.sec-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sec-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sec-card-body {
  padding: 1.25rem;
}

/* ==========================================================================
   Institutional Data Tables
   ========================================================================== */
.sec-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
}

.sec-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
  text-align: left;
}

.sec-data-table th {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.sec-data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.sec-data-table tr:hover td {
  background: #f8fafc;
}

/* Status Badges */
.sec-badge {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.sec-badge.pending { background: #fef3c7; color: #b45309; }
.sec-badge.out { background: #e0f2fe; color: #0369a1; }
.sec-badge.returned { background: #dcfce7; color: #15803d; }
.sec-badge.late { background: #fee2e2; color: #b91c1c; }
.sec-badge.purple { background: #ede9fe; color: #6d28d9; }

.sec-post-badge {
  background: #f1f5f9;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  display: inline-block;
}

/* ==========================================================================
   QR Scanner & Camera Section
   ========================================================================== */
.sec-scanner-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Dark high-contrast camera preview container */
.sec-camera-box {
  position: relative;
  background-color: #0b1329; /* High-contrast base */
  border-radius: 10px;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1e293b;
}

.sec-camera-video {
  width: 100%;
  height: 100%;
  max-height: 360px;
  -o-object-fit: cover;
     object-fit: cover;
}

.sec-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #0284c7, transparent);
  box-shadow: 0 0 10px #38bdf8;
  animation: sec-laser-scan 2.2s infinite ease-in-out;
}

@keyframes sec-laser-scan {
  0% { top: 5%; }
  50% { top: 92%; }
  100% { top: 5%; }
}

.sec-scanner-ctrls {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
}

.sec-search-input-group {
  display: flex;
  gap: 0.5rem;
}

.sec-search-input-group .sec-input {
  flex: 1;
}

.sec-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.sec-pill-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.sec-pill-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Verified Pass Result Card */
.sec-pass-result-card {
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.sec-pass-result-card.approved {
  border-color: #10b981;
}

.sec-pass-result-card.exited {
  border-color: #0284c7;
}

.sec-pass-result-card.blocked {
  border-color: #e11d48;
}

.sec-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.sec-status-chip-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sec-status-chip-lg.green {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.sec-status-chip-lg.blue {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.sec-status-chip-lg.amber {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.sec-status-chip-lg.red {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.sec-student-identity-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.sec-student-avatar {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
}

.sec-student-meta h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  color: #0f172a;
}

.sec-student-meta p {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

.sec-pass-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
  background: #f8fafc;
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.sec-info-item dt {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.sec-info-item dd {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
}

.sec-parent-notice-box {
  margin-top: 1rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #065f46;
  font-size: 0.82rem;
}

.sec-provisional-callout {
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  color: #92400e;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Filters row inside sections */
.sec-filters-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Modals & Overlays
   ========================================================================== */
.sec-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.sec-modal-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 520px;
  width: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* High contrast text color rule */
.sec-text-high-contrast {
  color: #f8fafc;
}

/* ==========================================================================
   Responsive Rules
   ========================================================================== */
@media (max-width: 1024px) {
  .sec-sections-grid {
    grid-template-columns: 1fr;
  }
  .sec-col-12, .sec-col-8, .sec-col-7, .sec-col-6, .sec-col-5, .sec-col-4 {
    grid-column: span 1;
  }
  .sec-scanner-layout {
    grid-template-columns: 1fr;
  }
}

/* Simulated Parent Notification Notice */
.sec-parent-notice-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.825rem;
  color: #065f46;
}

/* Modal */
.sec-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.sec-modal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  max-width: 540px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (max-width: 640px) {
  .sec-portal-wrapper {
    padding: 0.75rem 0.5rem;
  }

  .sec-pass-info-grid {
    grid-template-columns: 1fr;
  }

  .sec-executive-header {
    flex-direction: column;
    align-items: stretch;
  }

  .sec-quick-actions {
    width: 100%;
  }

  .sec-quick-actions button {
    flex: 1;
    justify-content: center;
  }

  .sec-kpi-grid {
    grid-template-columns: 1fr;
  }

  .sec-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .sec-modal-card,
  .sec-modal-content {
    width: calc(100vw - 1.5rem);
    max-height: 90vh;
    overflow-y: auto;
    padding: 1rem;
    margin: 0.5rem;
  }

  .sec-filters-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .sec-filters-row .sec-input,
  .sec-filters-row select {
    max-width: 100% !important;
    width: 100%;
  }

  .sec-btn-primary,
  .sec-btn-secondary,
  .sec-btn-emerald,
  .sec-btn-indigo,
  .sec-btn-rose {
    min-height: 42px;
    font-size: 0.85rem;
  }
}

@media (max-width: 375px) {
  .sec-portal-wrapper {
    padding: 0.5rem 0.25rem;
  }

  .sec-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .sec-card-title {
    font-size: 0.95rem;
  }
}
/* ==========================================================================
   APNA CAMPUS — MESS MANAGEMENT SYSTEM PORTAL STYLES
   Institutional Executive Design System (Matching Hostel & Admin Portals)
   Clean White Cards, Responsive Grid, High-Contrast Typography
   ========================================================================== */

.mess-portal-wrapper {
  background-color: #f8fafc;
  min-height: 100%;
  color: #1e293b;
  font-family: inherit;
  padding: 1.25rem 1.5rem 2.5rem;
  box-sizing: border-box;
}

.mess-dashboard-landing-container {
  width: 100%;
  margin: -0.5rem 0 0 0;
}

/* Duty & Header Action Badges */
.mess-duty-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mess-duty-pulse {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  animation: mess-pulse-dot 1.8s infinite;
}

@keyframes mess-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.mess-hostel-badge {
  background: #eff6ff;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid #bfdbfe;
}

.mess-btn-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #ffffff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.mess-btn-switch:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

/* ==========================================================================
   Executive Header
   ========================================================================== */
.mess-executive-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.mess-executive-title-group h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.mess-executive-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: #fef3c7;
  color: #d97706;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid #fde68a;
}

.mess-executive-subtitle {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0;
  max-width: 800px;
  line-height: 1.5;
}

.mess-quick-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Action Buttons */
.mess-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: #f59e0b;
  color: #ffffff;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.25);
}

.mess-btn-primary:hover:not(:disabled) {
  background: #d97706;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.mess-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  transition: all 0.15s ease-in-out;
}

.mess-btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.mess-btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.mess-btn-danger:hover {
  background: #fecaca;
}

/* ==========================================================================
   Filter & Toolbar Bar
   ========================================================================== */
.mess-filter-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.mess-filter-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: #475569;
}

.mess-filter-select,
.mess-input,
select.mess-filter-select,
select.mess-input {
  padding: 0.45rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff !important;
  background-color: #ffffff !important;
  font-size: 0.825rem;
  color: #0f172a !important;
  outline: none;
  cursor: pointer;
  color-scheme: light !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mess-filter-select:focus,
.mess-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

/* ==========================================================================
   Custom Dropdown Component (Replaces native select to fix OS rendering bugs)
   ========================================================================== */
.mess-custom-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: #475569;
}

.mess-custom-select-icon {
  flex-shrink: 0;
}

.mess-custom-select-label {
  white-space: nowrap;
  font-weight: 600;
  color: #475569;
}

.mess-custom-select-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  background: #ffffff !important;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a !important;
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 130px;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mess-custom-select-wrap.is-open .mess-custom-select-trigger,
.mess-custom-select-trigger:focus {
  border-color: #0284c7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

.mess-custom-select-value {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0f172a !important;
}

.mess-custom-select-chevron {
  flex-shrink: 0;
  color: #64748b;
  transition: transform 0.2s ease;
}

.mess-custom-select-chevron.rotated {
  transform: rotate(180deg);
  color: #0284c7;
}

.mess-custom-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  max-width: 320px;
  max-height: 260px;
  overflow-y: auto;
  background: #ffffff !important;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  padding: 4px;
}

.mess-custom-select-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  font-size: 0.825rem;
  color: #0f172a !important;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

.mess-custom-select-item:hover {
  background: #f0f9ff !important;
  color: #0284c7 !important;
}

.mess-custom-select-item.selected {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  font-weight: 600;
}

.mess-custom-select-check {
  margin-left: 0.5rem;
  color: #0284c7;
  flex-shrink: 0;
}

/* ==========================================================================
   Custom Date Picker Control
   ========================================================================== */
.mess-date-picker-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: #475569;
}

.mess-date-input-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  min-width: 140px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mess-date-input-box:hover {
  border-color: #94a3b8;
}

.mess-date-input-box:focus-within {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

.mess-date-text {
  font-size: 0.825rem;
  font-weight: 500;
}

.mess-date-text.placeholder {
  color: #94a3b8;
}

.mess-date-text.has-date {
  color: #0f172a;
  font-weight: 600;
}

.mess-date-cal-icon {
  color: #64748b;
  flex-shrink: 0;
}

.mess-hidden-date-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.mess-date-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.12s ease;
}

.mess-date-clear-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

/* ==========================================================================
   Urgent Alerts Banner
   ========================================================================== */
.mess-alert-banner {
  background: #fff1f2;
  border: 1px solid #ffe4e6;
  border-left: 4px solid #e11d48;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mess-alert-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mess-alert-text strong {
  color: #9f1239;
  font-size: 0.88rem;
  display: block;
}

.mess-alert-text span {
  color: #be123c;
  font-size: 0.8rem;
}

/* ==========================================================================
   KPI Cards Grid
   ========================================================================== */
.mess-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mess-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.mess-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.mess-kpi-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.mess-kpi-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mess-kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mess-kpi-icon.amber { background: #fef3c7; color: #d97706; }
.mess-kpi-icon.blue { background: #e0f2fe; color: #0284c7; }
.mess-kpi-icon.emerald { background: #d1fae5; color: #059669; }
.mess-kpi-icon.rose { background: #ffe4e6; color: #e11d48; }
.mess-kpi-icon.purple { background: #ede9fe; color: #7c3aed; }

.mess-kpi-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.mess-kpi-sub {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   Multi-Column Sections Grid
   ========================================================================== */
.mess-sections-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.mess-col-12 { grid-column: span 12; }
.mess-col-8 { grid-column: span 8; }
.mess-col-7 { grid-column: span 7; }
.mess-col-6 { grid-column: span 6; }
.mess-col-5 { grid-column: span 5; }
.mess-col-4 { grid-column: span 4; }

/* Standard White Container Card */
.mess-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.mess-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mess-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mess-card-body {
  padding: 1.25rem;
}

/* ==========================================================================
   Data Tables
   ========================================================================== */
.mess-table-container {
  width: 100%;
  overflow-x: auto;
}

.mess-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
  text-align: left;
}

.mess-table th {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.mess-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.mess-table tr:hover td {
  background: #f8fafc;
}

/* Badges */
.mess-badge {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.mess-badge.available { background: #dcfce7; color: #15803d; }
.mess-badge.unavailable { background: #fee2e2; color: #b91c1c; }
.mess-badge.pending { background: #fef3c7; color: #b45309; }
.mess-badge.resolved { background: #dcfce7; color: #15803d; }
.mess-badge.inprogress { background: #e0f2fe; color: #0369a1; }
.mess-badge.special { background: #ede9fe; color: #6d28d9; }

/* Meal Card in Overview */
.mess-meal-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mess-meal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mess-meal-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mess-meal-time {
  font-size: 0.74rem;
  color: #64748b;
}

.mess-meal-items {
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.45;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .mess-sections-grid {
    grid-template-columns: 1fr;
  }
  .mess-col-12, .mess-col-8, .mess-col-7, .mess-col-6, .mess-col-5, .mess-col-4 {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .mess-portal-wrapper {
    padding: 0.85rem;
  }
  .mess-kpi-grid {
    grid-template-columns: 1fr;
  }
  .mess-executive-header {
    flex-direction: column;
    align-items: stretch;
  }
  .mess-quick-actions {
    width: 100%;
  }
  .mess-quick-actions button {
    flex: 1;
    justify-content: center;
  }
}

/* Toast Notification */
.mess-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.84rem;
  font-weight: 600;
  z-index: 99999;
  animation: mess-toast-in 0.25s ease-out;
  border-left: 4px solid #10b981;
}

@keyframes mess-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal Overlay & Cards */
.mess-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.mess-modal-card {
  background: #ffffff;
  border-radius: 14px;
  max-width: 580px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  max-height: 90vh;
  overflow-y: auto;
}

.mess-modal-card-lg {
  background: #ffffff !important;
  border-radius: 16px;
  max-width: 1200px;
  width: 95vw;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(226, 232, 240, 0.8);
  border: 1px solid #e2e8f0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mess-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.mess-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mess-modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748b;
  padding: 0.35rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mess-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Timetable Matrix Table */
.mess-matrix-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 65vh;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mess-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  background: #ffffff;
}

.mess-matrix-table th {
  background: #f8fafc;
  padding: 0.85rem 0.95rem;
  text-align: left;
  font-weight: 700;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mess-matrix-th-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
}

.mess-matrix-th-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

.mess-matrix-table td {
  padding: 0.9rem 0.95rem;
  border: 1px solid #e2e8f0;
  vertical-align: top;
  color: #1e293b;
  line-height: 1.5;
  background: #ffffff;
  font-size: 0.82rem;
}

.mess-matrix-table tbody tr:nth-child(even) td {
  background: #fafbfc;
}

.mess-matrix-table tbody tr:hover td {
  background: #f0f9ff !important;
}

.mess-matrix-day {
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9 !important;
  white-space: nowrap;
  vertical-align: middle !important;
  border-right: 2px solid #cbd5e1 !important;
}

.mess-matrix-row-today .mess-matrix-day {
  background: #e0f2fe !important;
  border-left: 3px solid #0284c7;
}

.mess-matrix-cell-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #1e293b;
  font-weight: 500;
}

.mess-matrix-festival-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  width: -moz-fit-content;
  width: fit-content;
}

.mess-matrix-unavailable-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  width: -moz-fit-content;
  width: fit-content;
}

/* =========================================================================
   STEP 3: MEAL FEEDBACK & LOW-RATED DEFECT DETECTION STYLES
   ========================================================================= */

/* 7 KPI Rating Distribution Grid */
.mess-feedback-dist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.mess-feedback-dist-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mess-feedback-dist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.mess-feedback-dist-card.warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.mess-feedback-dist-card.critical {
  border-color: #fecdd3;
  background: #fff1f2;
}

.mess-dist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mess-dist-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.mess-dist-sub {
  font-size: 0.72rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mess-dist-bar-track {
  width: 100%;
  height: 5px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.2rem;
}

.mess-dist-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Repeated Defect Alerts Banner */
.mess-defect-banner {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-left: 4px solid #e11d48;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.06);
}

.mess-defect-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.mess-defect-banner-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #9f1239;
}

.mess-defect-cluster-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mess-defect-cluster-item {
  background: #ffffff;
  border: 1px solid #ffe4e6;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.mess-defect-cluster-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.mess-defect-cluster-badge {
  background: #fee2e2;
  color: #991b1b;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: -moz-fit-content;
  width: fit-content;
}

.mess-defect-quote {
  font-size: 0.8rem;
  color: #475569;
  font-style: italic;
}

/* Low-Rated Table Row */
.mess-table tr.mess-low-rated-row {
  background: #fff5f5 !important;
  border-left: 3px solid #e11d48;
}

.mess-table tr.mess-low-rated-row:hover {
  background: #ffe4e6 !important;
}

/* Quick Filter Pill for Low-Rated */
.mess-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mess-filter-toggle:hover {
  background: #f8fafc;
  color: #0f172a;
}

.mess-filter-toggle.active {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

/* Action Investigation Button */
.mess-btn-investigate {
  background: #e11d48;
  color: #ffffff;
  border: none;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.15s ease;
}

.mess-btn-investigate:hover {
  background: #be123c;
}

.mess-btn-review {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.15s ease;
}

.mess-btn-review:hover {
  background: #0369a1;
}

/* Modal Investigation Details Box */
.mess-investigation-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.mess-subrating-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #cbd5e1;
}

.mess-subrating-item {
  font-size: 0.75rem;
  color: #475569;
}

.mess-subrating-item strong {
  display: block;
  font-size: 0.85rem;
  color: #0f172a;
}

/* ==========================================================================
   MESS NOTICES & OPERATIONAL CIRCULARS (STEP 6)
   ========================================================================== */
.mess-notice-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mess-notice-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.mess-notice-card.pinned {
  border-left: 4px solid #2563eb;
  background: #fdfefe;
}

.mess-notice-card.urgent {
  border-left: 4px solid #dc2626;
  background: #fffafa;
}

.mess-notice-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 0.74rem;
  color: #475569;
  font-weight: 500;
}

.mess-notice-priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mess-notice-priority-badge.urgent {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.mess-notice-priority-badge.high {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.mess-notice-priority-badge.normal {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.mess-reach-progress-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.35rem;
}

.mess-reach-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 9999px;
  transition: width 0.3s ease;
}




/* Universal WhatsApp Launcher Floating Button & Drawer Styling */

.universal-wa-trigger-btn {
  position: fixed;
  bottom: 86px;
  right: 24px;
  z-index: 9998;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  box-shadow: 0 10px 25px -4px rgba(79, 70, 229, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.universal-wa-trigger-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 16px 32px -4px rgba(79, 70, 229, 0.7), 0 6px 16px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #4338ca, #0284c7);
}

.universal-wa-trigger-btn:active {
  transform: translateY(0) scale(0.96);
}

.wa-icon-glow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-unread-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 9999px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* Slide-out Drawer Overlay */
.universal-wa-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  animation: wa-fade-in 0.2s ease-out;
}

@keyframes wa-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.universal-wa-drawer {
  width: min(880px, 96vw);
  max-width: 96vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  animation: wa-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.25s ease;
}

.universal-wa-drawer.maximized {
  width: 96vw;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 12px;
  height: 96vh;
  margin-top: 2vh;
  margin-bottom: 2vh;
  margin-right: 2vw;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

@keyframes wa-slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.universal-wa-header {
  padding: 12px 18px;
  background: #075e54;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.universal-wa-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.universal-wa-logo {
  height: 34px;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 2px 4px;
}

.universal-wa-header-brand h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff !important;
}

.universal-wa-header-brand p {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: #a7f3d0;
  font-weight: 500;
}

.universal-wa-header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.universal-wa-ctrl-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.universal-wa-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.universal-wa-ctrl-btn.close-btn:hover {
  background: #ef4444;
}

.universal-wa-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (max-width: 640px) {
  .universal-wa-trigger-btn {
    bottom: 74px;
    right: 16px;
    width: 46px;
    height: 46px;
  }
  .universal-wa-drawer {
    width: 100vw;
  }
}
/* ==========================================================================
   Apna AI Assistant - Floating Chatbot Styling
   Integrated College Management System AI Help & Live Data Layer
   ========================================================================== */

/* ── 1. Floating Trigger Button ── */
.apna-ai-floating-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #4f46e5 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  box-shadow: 0 10px 25px -4px rgba(37, 99, 235, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.apna-ai-floating-trigger:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 16px 32px -4px rgba(37, 99, 235, 0.7), 0 6px 16px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #2563eb 0%, #60a5fa 50%, #6366f1 100%);
}

.apna-ai-floating-trigger:active {
  transform: translateY(0) scale(0.96);
}

.apna-ai-icon-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.apna-ai-pulse-beacon {
  position: absolute;
  top: 5px;
  right: 7px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
  animation: apna-ai-pulse 2s infinite;
}

@keyframes apna-ai-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.apna-ai-trigger-label {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}

.apna-ai-role-chip {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ── 2. Chat Window Container ── */
.apna-ai-chat-window {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 440px;
  max-width: calc(100vw - 32px);
  height: 640px;
  max-height: calc(100vh - 48px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: apna-ai-slide-up 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@keyframes apna-ai-slide-up {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.apna-ai-chat-window.maximized {
  width: 760px;
  height: 85vh;
}

/* ── 3. Chat Header ── */
.apna-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.apna-ai-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.apna-ai-logo-wrap {
  width: 38px;
  height: 38px;
  background: #ffffff;
  border-radius: 10px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.apna-ai-logo-wrap img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.apna-ai-header-titles h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.apna-ai-header-titles p {
  margin: 2px 0 0 0;
  font-size: 0.76rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.apna-ai-status-indicator {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

.apna-ai-header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.apna-ai-header-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.apna-ai-header-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* ── 4. Context & Role Strip ── */
.apna-ai-context-strip {
  background: #f1f5f9;
  padding: 7px 16px;
  font-size: 0.77rem;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apna-ai-context-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: #1e40af;
  background: #dbeafe;
  padding: 2px 8px;
  border-radius: 6px;
}

.apna-ai-user-badge {
  font-weight: 600;
  color: #0f172a;
}

/* ── 5. Messages Container ── */
.apna-ai-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f8fafc;
  scroll-behavior: smooth;
}

.apna-ai-welcome-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.apna-ai-welcome-card h4 {
  margin: 0 0 6px 0;
  font-size: 0.96rem;
  color: #0f172a;
  font-weight: 700;
}

.apna-ai-welcome-card p {
  margin: 0 0 10px 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}

/* ── 6. Message Bubbles ── */
.apna-ai-msg-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.apna-ai-msg-row.user {
  align-items: flex-end;
}

.apna-ai-msg-row.assistant {
  align-items: flex-start;
}

.apna-ai-bubble {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.52;
  word-break: break-word;
}

.apna-ai-msg-row.user .apna-ai-bubble {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.apna-ai-msg-row.assistant .apna-ai-bubble {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.apna-ai-msg-time {
  font-size: 0.7rem;
  color: #94a3b8;
  padding: 0 4px;
}

/* Markdown styling inside bubble */
.apna-ai-content p {
  margin: 0 0 8px 0;
}
.apna-ai-content p:last-child {
  margin-bottom: 0;
}
.apna-ai-content ul, .apna-ai-content ol {
  margin: 4px 0 8px 0;
  padding-left: 20px;
}
.apna-ai-content li {
  margin-bottom: 4px;
}
.apna-ai-content strong {
  color: #0f172a;
}
.apna-ai-msg-row.user .apna-ai-content strong {
  color: #ffffff;
}
.apna-ai-content code {
  background: #f1f5f9;
  color: #0369a1;
  padding: 2px 5px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.82em;
}

/* Live Verified Badge */
.apna-ai-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 3px 8px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
}

/* Action Link Button */
.apna-ai-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 12px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.apna-ai-action-btn:hover {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  transform: translateY(-1px);
}

/* Bubble Actions Footer */
.apna-ai-msg-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-left: 4px;
}

.apna-ai-tiny-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  padding: 2px 5px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.apna-ai-tiny-btn:hover {
  color: #1e293b;
  background: #e2e8f0;
}

.apna-ai-tiny-btn.active {
  color: #2563eb;
  font-weight: 700;
}

/* ── 7. Typing Indicator ── */
.apna-ai-typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  width: -moz-fit-content;
  width: fit-content;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.apna-ai-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.apna-ai-dot {
  width: 6px;
  height: 6px;
  background: #3b82f6;
  border-radius: 50%;
  animation: apna-ai-bounce 1.4s infinite ease-in-out both;
}

.apna-ai-dot:nth-child(1) { animation-delay: -0.32s; }
.apna-ai-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes apna-ai-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.apna-ai-typing-text {
  font-size: 0.76rem;
  color: #64748b;
  font-style: italic;
}

/* ── 8. Suggested Questions Bar ── */
.apna-ai-suggestions-bar {
  padding: 10px 14px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.apna-ai-suggestions-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.apna-ai-chips-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.apna-ai-chips-scroll::-webkit-scrollbar {
  display: none;
}

.apna-ai-chip {
  flex-shrink: 0;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.apna-ai-chip:hover {
  background: #e0e7ff;
  border-color: #a5b4fc;
  color: #3730a3;
  transform: translateY(-1px);
}

/* ── 9. Chat Input Bar ── */
.apna-ai-input-form {
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.apna-ai-input-field {
  flex: 1;
  min-height: 40px;
  max-height: 100px;
  padding: 9px 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.86rem;
  color: #0f172a;
  outline: none;
  resize: none;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.apna-ai-input-field:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.apna-ai-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.apna-ai-send-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
}

.apna-ai-send-btn:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
}

/* ── 10. Responsive Mobile Layout ── */
@media (max-width: 640px) {
  .apna-ai-chat-window {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
    max-height: calc(100vh - 24px);
    border-radius: 16px;
  }

  .apna-ai-floating-trigger {
    bottom: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
  }
}
/* Unified Floating Assistant Launcher Stylesheet */

.unified-assistant-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Consolidated Trigger Button */
@keyframes assistantFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.unified-assistant-trigger {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #059669 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px -4px rgba(37, 99, 235, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  animation: assistantFloat 3.6s ease-in-out infinite;
}

.unified-assistant-trigger:hover {
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 18px 36px -4px rgba(37, 99, 235, 0.75), 0 8px 18px rgba(0, 0, 0, 0.25);
}

.unified-assistant-trigger:hover .sparkle-float {
  transform: rotate(20deg) scale(1.12);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.unified-assistant-trigger.active {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(0.96);
}

.unified-trigger-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sparkle-float {
  color: #ffffff;
}

.message-sub {
  position: absolute;
  bottom: -4px;
  right: -5px;
  color: #a7f3d0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

.unified-floating-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* Speed-Dial Menu Panel */
.unified-assistant-menu {
  position: absolute;
  bottom: 66px;
  right: 0;
  width: 310px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 8px;
  animation: unified-fade-up 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes unified-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.unified-assistant-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 10px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.unified-assistant-menu-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 3px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unified-assistant-menu-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.unified-assistant-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  margin-top: 4px;
}

.unified-assistant-menu-item:hover {
  background: #f8fafc;
  transform: translateX(2px);
}

.assistant-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.assistant-item-icon.ai-gradient {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.assistant-item-icon.wa-gradient {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 4px 10px rgba(18, 140, 126, 0.35);
}

.assistant-item-info {
  flex: 1;
  min-width: 0;
}

.assistant-item-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.assistant-item-info span {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assistant-unread-badge {
  background: #25d366;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
}
