:root {
  /* Official Beirut Arab University (bau.edu.lb) Visual Identity Palette */
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-alt: #f7f9fc;
  --border: #dce3ec;
  --text: #1b2733;
  --text-muted: #585f69;
  --primary: #04366f;          /* BAU Deep Royal Navy (#04366f from bau.edu.lb) */
  --primary-light: #004b8e;    /* BAU Official Pantone 288 Blue (#004B8E) */
  --primary-soft: #e6f0fa;
  --bau-green: #72c02c;        /* BAU Website Signature Accent Green (#72c02c) */
  --bau-cyan: #00bed6;         /* BAU Cyan Accent (#00bed6) */
  --emerald: #5da31e;          /* Rich BAU Green for Working status */
  --emerald-soft: #eaf7de;
  --danger: #c8232c;           /* BAU Crimson Red (#c8232c / #a10f2b) */
  --danger-soft: #fdeaea;
  --amber: #e57d20;            /* BAU Warm Orange/Gold (#e57d20) */
  --amber-soft: #fef3e6;
  --purple: #1861ac;           /* BAU Academic Sapphire Blue (#1861ac) */
  --purple-soft: #e8f1fb;
  --shadow: 0 4px 18px rgba(4, 54, 111, 0.08);
  --radius: 12px;
}

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

body {
  font-family: 'Inter', 'Cairo', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

html[dir="rtl"] body {
  font-family: 'Cairo', 'Inter', sans-serif;
}

/* Header — Inspired by bau.edu.lb Official Royal Blue & Signature Green Accent Bar */
.topbar {
  background: linear-gradient(135deg, #022249 0%, #04366f 55%, #004b8e 100%);
  color: #ffffff;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 4px solid var(--bau-green);
  box-shadow: 0 4px 16px rgba(4, 54, 111, 0.22);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-img {
  width: 62px;
  height: 62px;
  max-width: 62px;
  max-height: 62px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
  background: #0a1428;
  flex-shrink: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-title-row h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.badge-bau {
  background: rgba(114, 192, 44, 0.22);
  border: 1px solid #72c02c;
  color: #eaffd6;
  padding: 2px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.brand-text p {
  font-size: 0.85rem;
  color: #cbd5e1;
}

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

.btn-home-nav {
  background: rgba(56, 189, 248, 0.2);
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.5);
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-home-nav:hover {
  background: rgba(56, 189, 248, 0.35);
}

.semester-pill {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bau-green);
  box-shadow: 0 0 8px var(--bau-green);
}

.btn-lang {
  background: #ffffff;
  color: #0f172a;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-lang:hover {
  background: #dbeafe;
}

/* Main Container */
.container {
  max-width: 1360px;
  margin: 24px auto;
  padding: 0 24px 48px;
}

/* KPI Strip */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.kpi-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}

.kpi-blue { border-top-color: var(--primary-light); }
.kpi-emerald { border-top-color: var(--emerald); }
.kpi-danger { border-top-color: var(--danger); }
.kpi-purple { border-top-color: var(--purple); }

.kpi-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.kpi-value {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 4px 0;
  color: var(--text);
}

.kpi-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Home Portal Gateway Cards */
.portal-heading {
  margin-bottom: 18px;
}

.portal-heading h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.portal-labs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.portal-lab-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.22s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.portal-lab-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 60%, var(--bau-green) 100%);
}

.portal-lab-card.computer-card::before {
  background: linear-gradient(90deg, var(--primary) 0%, var(--bau-cyan) 55%, var(--bau-green) 100%);
}

.portal-lab-card.exam-portal-card {
  border-color: #c4b5fd;
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
}

.portal-lab-card.exam-portal-card::before {
  background: linear-gradient(90deg, #d97706, #7c3aed);
}

.exam-banner-card {
  border-top: 4px solid #7c3aed;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

@media (max-width: 1080px) {
  .split-layout {
    grid-template-columns: 1fr;
  }
}

.exam-equip-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}

.exam-readiness-checks {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.btn-exam-submit {
  background: linear-gradient(135deg, #7c3aed, #1e3a8a);
  color: #ffffff;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}

.btn-exam-submit:hover {
  opacity: 0.92;
}

.portal-lab-card:hover {
  border-color: var(--bau-green);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(4, 54, 111, 0.15);
}

.portal-lab-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.portal-lab-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.portal-lab-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text);
}

.portal-lab-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
}

.portal-lab-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 10px 0 16px;
  line-height: 1.55;
}

.portal-lab-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--surface-alt);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  text-align: center;
}

.metric-box-val {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}

.metric-box-lbl {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.portal-lab-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.btn-enter-lab {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 5px 9px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.66rem;
  line-height: 1.3;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  max-width: 100%;
  text-align: center;
}

.portal-lab-card:hover .btn-enter-lab {
  background: var(--primary-light);
}

/* Single Lab Workspace View */
.lab-banner-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.lab-banner-main {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-back {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 15px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-back:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-light);
}

.lab-banner-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lab-banner-title-row h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.lab-banner-kpis {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Sub-Tabs inside a Single Lab */
.lab-subtabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.subtab-btn {
  flex: 1;
  min-width: 210px;
  padding: 13px 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.subtab-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.subtab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  border-bottom: 4px solid var(--bau-green);
  box-shadow: 0 4px 12px rgba(4, 54, 111, 0.22);
}

.subtab-panel {
  display: none;
}

.subtab-panel.active {
  display: block;
}

/* Cards & Centered Form Card */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 18px;
}

.form-card-centered {
  max-width: 860px;
  margin: 0 auto 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.card-header h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text);
}

.text-muted {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Interactive 25-PC Map */
.map-legend {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
  font-weight: 600;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}
.dot-ins { background: #1e3a8a; }
.dot-ok { background: #10b981; }
.dot-fault { background: #ef4444; }

.pc-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.instructor-station-row {
  display: flex;
  justify-content: center;
}

.pc-node {
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.18s;
  border: 2px solid transparent;
  text-align: center;
}

.pc-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.pc-node.ins-node {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  min-width: 340px;
}

.pc-node.ok-node {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}

.pc-node.fault-node {
  background: #fef2f2;
  border-color: #f87171;
  color: #991b1b;
}

.student-stations-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

@media (max-width: 992px) {
  .student-stations-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .student-stations-grid { grid-template-columns: repeat(2, 1fr); }
}

.pc-node-code {
  font-weight: 800;
  font-size: 0.86rem;
}

.pc-node-sub {
  font-size: 0.72rem;
  opacity: 0.85;
  margin-top: 2px;
}

/* Filter Bar & Inputs */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

select, input[type="text"], input[type="number"], input[type="date"], input[type="time"], textarea {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}

#filter-device-search {
  min-width: 240px;
}

select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th, .data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: start;
}

.data-table th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.data-table tr:hover {
  background: #f8fafc;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-working { background: var(--emerald-soft); color: var(--emerald); }
.badge-faulty { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--primary-soft); color: var(--primary); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-purple { background: var(--purple-soft); color: var(--purple); }

/* Forms */
.form-group {
  margin-bottom: 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.form-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

@media (max-width: 700px) {
  .form-row-2, .form-row-3, .form-row-4 { grid-template-columns: 1fr; }
}

.capacity-banner {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e3a8a;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 8px;
  background: var(--surface-alt);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.sw-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.lanschool-box {
  background: #f5f3ff;
  border: 1px solid #c4b5fd;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}

.lanschool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.ls-channel-badge {
  background: #7c3aed;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.lanschool-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.82rem;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.84rem;
}

/* Buttons */
.btn-primary {
  background: var(--primary-light);
  color: #ffffff;
  border: none;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover { background: var(--primary); }

.btn-sm-pad {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
  border: none;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}

.btn-sm:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-full { width: 100%; }

/* Prep Checklist & Maintenance Lists */
.prep-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prep-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  background: var(--surface-alt);
}

.prep-item.exam-highlight {
  border-inline-start: 4px solid var(--purple);
  background: #faf5ff;
}

.prep-item.fault-highlight {
  border-inline-start: 4px solid var(--danger);
  background: #fff5f5;
}

.prep-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

/* Timetable Grid */
.timetable-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 12px;
}

.day-column {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.day-column-header {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--primary);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--primary-soft);
  display: flex;
  justify-content: space-between;
}

.session-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--primary-light);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 0.82rem;
}

.session-card.exam-session {
  border-inline-start-color: var(--purple);
  background: #faf5ff;
}

/* Compact & Calm 30-Min Toggle Chips in Sub-Tab 1 */
.free-window-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 10px;
  margin-bottom: 10px;
  font-size: 0.78rem;
}

.free-window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1e293b;
  font-size: 0.78rem;
  margin-bottom: 7px;
}

.free-window-subhint {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

.half-hour-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.half-hour-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  border-radius: 6px;
  padding: 5px 4px;
  font-size: 0.73rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s ease;
}

.half-hour-chip:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e3a8a;
}

.half-hour-chip.selected {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #ffffff;
  font-weight: 700;
}

.chip-selection-summary {
  margin-top: 8px;
  padding: 8px 9px;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chip-selection-info {
  color: #1e293b;
  font-size: 0.77rem;
}

.chip-selection-notice {
  font-size: 0.7rem;
  color: #475569;
  margin-top: 2px;
}

.chip-selection-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-book-slot {
  flex: 1;
  background: #1e3a8a;
  color: #ffffff;
  border: 1px solid #1e3a8a;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-book-slot:hover {
  background: #04366f;
}

.btn-exam-slot {
  background: #ffffff;
  color: #1e3a8a;
  border: 1px solid #1e3a8a;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-exam-slot:hover {
  background: #1e3a8a;
  color: #ffffff;
}

.btn-clear-slot {
  background: #ffffff;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-clear-slot:hover {
  color: #dc2626;
  border-color: #fca5a5;
}

.btn-schedule-exam-chip {
  background: #eff6ff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-schedule-exam-chip:hover {
  background: #1e3a8a;
  color: #ffffff;
  border-color: #1e3a8a;
}

.selected-slot-banner {
  margin-top: 10px;
  padding: 11px 14px;
  background: #eff6ff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #1e293b;
  font-size: 0.85rem;
}

/* Toast Banner */
.toast-banner {
  padding: 13px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 0.9rem;
}

.toast-success { background: var(--emerald-soft); color: var(--emerald); border: 1px solid #6ee7b7; }
.toast-error { background: var(--danger-soft); color: var(--danger); border: 1px solid #fca5a5; }

.hidden { display: none !important; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body { padding: 18px 22px; }

.btn-close {
  border: none;
  background: var(--surface-alt);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 800;
}

/* Monthly Report Styling & Print / Save as PDF Layout */
.report-sheet {
  padding: 6px 2px;
}

.report-official-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 2px solid #04366f;
}

.report-section-block {
  margin-top: 22px;
}

.report-section-block h4 {
  margin: 0 0 10px 0;
  color: #04366f;
  font-size: 0.98rem;
  padding: 8px 12px;
  background: #f1f5f9;
  border-left: 4px solid #004b8e;
  border-radius: 6px;
}

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .topbar,
  .lab-subtabs,
  .no-print,
  #admin-dashboard-content > .kpi-grid,
  #admin-toast {
    display: none !important;
  }
  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #monthly-report-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .report-section-block {
    page-break-inside: avoid;
  }
}
