/* ==========================================================================
   Bahrain Airport Services (BAS) - Operational Dashboard Stylesheet
   ========================================================================== */

/* --- Custom Variables & Theme Tokens --- */
:root {
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Brand Colors */
  --primary-red: #e40221;
  --primary-red-hover: #c4011c;
  --primary-red-light: #fef2f3;
  --primary-red-border: #fecdd3;
  --primary-red-glow: rgba(228, 2, 33, 0.15);

  /* Dark Navy Sidebar */
  --navy-dark: #07152b;
  --navy-darker: #040e1e;
  --navy-sidebar-hover: #0e223f;
  --navy-text-muted: #8496ad;
  --navy-border: #142a4a;

  /* App Background & Cards */
  --bg-page: #f8fafc;
  --card-bg: #ffffff;
  --card-border: #eef2f6;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.06);

  /* Neutral Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;

  /* Status Colors */
  --color-green: #10b981;
  --color-green-bg: #dcfce7;
  --color-green-text: #15803d;

  --color-blue: #0284c7;
  --color-blue-bg: #e0f2fe;
  --color-blue-text: #0369a1;

  --color-amber: #f59e0b;
  --color-amber-bg: #ffedd5;
  --color-amber-text: #c2410c;

  --color-red: #ef4444;
  --color-red-bg: #fee2e2;
  --color-red-text: #b91c1c;

  --color-purple: #8b5cf6;
  --color-purple-bg: #ede9fe;
  --color-purple-text: #6d28d9;

  --sidebar-width: 240px;
  --navbar-height: 64px;
}

/* --- Global Reset & Typography --- */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Top Header Navigation --- */
.top-navbar {
  height: var(--navbar-height);
  background-color: #ffffff;
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.menu-toggle-btn {
  background: #08162b;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.menu-toggle-btn:hover {
  background: #0e223f;
  transform: scale(1.02);
}

.menu-toggle-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
}

.brand-logo-wrap img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

/* Top Search Bar */
.nav-center {
  flex: 1;
  max-width: 480px;
  margin: 0 1.5rem;
}

.global-search-container {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 14px;
  transition: all 0.2s ease;
}

.global-search-container:focus-within {
  border-color: #cbd5e1;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(228, 2, 33, 0.08);
}

.search-icon {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-right: 10px;
  display: flex;
  align-items: center;
}

.search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: var(--text-primary);
  width: 100%;
}

.search-input::placeholder {
  color: #94a3b8;
  font-size: 0.85rem;
}

.search-shortcut {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Top Right Actions */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.notification-bell-btn {
  position: relative;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #334155;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.notification-bell-btn:hover {
  background-color: #f1f5f9;
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid #ffffff;
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.user-profile-menu:hover {
  background-color: #f8fafc;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #08162b;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.user-role {
  font-size: 0.72rem;
  color: #64748b;
}

.dropdown-arrow {
  color: #94a3b8;
  font-size: 0.75rem;
}

/* --- Layout Structure (Sidebar + Main Content) --- */
.app-layout {
  display: flex;
  min-height: calc(100vh - var(--navbar-height));
  width: 100%;
}

/* --- Sidebar Styling --- */
.app-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background-color: var(--navy-dark);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: var(--navbar-height);
  height: calc(100vh - var(--navbar-height));
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s ease;
  z-index: 1010;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 1rem;
  position: relative;
  z-index: 2;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item-link {
  display: flex;
  align-items: center;
  padding: 0.65rem 1.25rem;
  color: #8da2bd;
  font-size: 0.82rem;
  font-weight: 500;
  gap: 0.85rem;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
}

.nav-item-link i {
  font-size: 1.05rem;
  width: 20px;
  display: flex;
  justify-content: center;
  color: #8da2bd;
  transition: color 0.2s ease;
}

.nav-item-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-item-link:hover i {
  color: #ffffff;
}

/* Active State (Dashboard tab) */
.nav-item-link.active {
  background-color: rgb(220 53 69);
  color: #ffffff;
  border-radius: 8px;
  position: relative;
  font-weight: 600;
  margin-right: 0.5rem;
}
.nav-item-link.active::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 15%;
  bottom: 15%;
  width: 4px;
  background-color: var(--primary-red);
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.nav-item-link.active i {
  color: #ffffff;
}

/* Sidebar Badges */
.nav-badge {
  margin-left: auto;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-arrow {
  margin-left: auto;
  font-size: 0.7rem;
  color: #64748b;
}

/* Sidebar Section Headers */
.sidebar-section-title {
  padding: 1.2rem 1.25rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #526782;
  text-transform: uppercase;
}

/* Sidebar Background Airplane Graphic */
.sidebar-watermark {
  position: absolute;
  bottom: 55px;
  left: 0;
  width: 100%;
  height: 200px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.38;
}

.sidebar-watermark svg {
  width: 100%;
  height: 100%;
}

/* Sidebar Bottom (Sign Out) */
.sidebar-footer {
  margin-top: auto;
  padding: 1.25rem;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.signout-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #8da2bd;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s ease;
  text-decoration: none;
}

.signout-link i {
  font-size: 1.05rem;
}

.signout-link:hover {
  color: #ffffff;
}

/* --- Main Dashboard Content Area --- */
.main-content {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  background-color: var(--bg-page);
  padding: 1.15rem 1.75rem 2rem;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Dashboard Header & Controls */
.dashboard-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.dashboard-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.01em;
}

.dashboard-submeta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.meta-dot {
  color: #94a3b8;
  font-size: 0.6rem;
}

.meta-divider {
  color: #cbd5e1;
  margin: 0 0.15rem;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-today-filter {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-today-filter:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

.btn-export-primary {
  background-color: var(--primary-red);
  border: 1px solid var(--primary-red);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 4px rgba(228, 2, 33, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-export-primary:hover {
  background-color: var(--primary-red-hover);
  border-color: var(--primary-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(228, 2, 33, 0.3);
}

/* --- KPI Stat Cards Row --- */
.kpi-row {
  margin-bottom: 1.15rem;
}

.kpi-card {
  background-color: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.95rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.kpi-top {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}

.kpi-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.kpi-icon-box.red {
  background-color: #fee2e2;
  color: #ef4444;
}

.kpi-icon-box.blue {
  background-color: #e0f2fe;
  color: #0284c7;
}

.kpi-icon-box.amber {
  background-color: #fef3c7;
  color: #d97706;
}

.kpi-icon-box.purple {
  background-color: #ede9fe;
  color: #7c3aed;
}

.kpi-info {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.kpi-value {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.kpi-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}

.kpi-trend {
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.trend-up {
  color: #10b981;
  font-weight: 600;
}

.trend-down {
  color: #ef4444;
  font-weight: 600;
}

.trend-live {
  color: #10b981;
  font-weight: 600;
}

.kpi-sparkline {
  width: 100px;
  height: 34px;
  flex-shrink: 0;
}

/* --- Content Cards Common --- */
.content-card {
  background-color: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.15rem;
  transition: box-shadow 0.2s ease;
}

.content-card:hover {
  box-shadow: var(--card-shadow-hover);
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.card-title-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.view-all-link {
  color: var(--primary-red);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.view-all-link:hover {
  color: var(--primary-red-hover);
  transform: translateX(2px);
}

.card-more-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.05rem;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.card-more-btn:hover {
  color: var(--text-primary);
  background-color: #f1f5f9;
}

/* Period Filter Dropdown */
.period-select-btn {
  background-color: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.period-select-btn:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

/* --- Flights Table --- */
.flights-table-wrap {
  overflow-x: auto;
  margin: 0 -0.5rem;
}

.flights-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8rem;
}

.flights-table thead th {
  background-color: #f8fafc;
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}

.flights-table thead th:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  padding-left: 1rem;
}

.flights-table thead th:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  padding-right: 1rem;
}

.flights-table tbody td {
  padding: 0.52rem 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid #f8fafc;
  white-space: nowrap;
  color: #334155;
}

.flights-table tbody tr {
  transition: background-color 0.15s ease;
}

.flights-table tbody tr:hover {
  background-color: #f8fafc;
}

.flights-table tbody td:first-child {
  padding-left: 1rem;
}

.flights-table tbody td:last-child {
  padding-right: 1rem;
}

.table-icon-col {
  width: 30px;
  color: #94a3b8;
  font-size: 0.8rem;
}

.flight-number-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--primary-red);
}

.flight-number-cell i {
  color: var(--primary-red);
  font-size: 0.85rem;
}

.route-text {
  font-weight: 500;
  color: #1e293b;
}

.route-arrow {
  color: #94a3b8;
  margin: 0 0.15rem;
}

.aircraft-text {
  color: #475569;
}

.aircraft-dot {
  color: #94a3b8;
  margin: 0 0.2rem;
}

.stand-badge {
  font-weight: 600;
  color: #334155;
}

/* Status Badges */
.status-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}

.status-pill.boarding {
  background-color: var(--color-blue-bg);
  color: var(--color-blue-text);
}

.status-pill.on-time {
  background-color: var(--color-green-bg);
  color: var(--color-green-text);
}

.status-pill.delayed {
  background-color: var(--color-amber-bg);
  color: var(--color-amber-text);
}

.status-pill.in-progress {
  background-color: var(--color-blue-bg);
  color: var(--color-blue-text);
}

.status-pill.cancelled {
  background-color: var(--color-red-bg);
  color: var(--color-red-text);
}

.table-footer-info {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Highcharts Card Containers --- */
.chart-container-large {
  width: 100%;
  height: 180px;
}

.chart-meta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.avg-metric {
  font-weight: 600;
  color: #475569;
}

.target-metric {
  font-weight: 600;
  color: #10b981;
}

/* --- SLA Performance Donut & Legend --- */
.sla-content-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sla-chart-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  flex-shrink: 0;
}

.sla-center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.sla-center-value {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.sla-center-sub {
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.sla-legend-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.sla-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.sla-legend-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #334155;
  font-weight: 500;
}

.sla-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.sla-legend-dot.met {
  background-color: #10b981;
}

.sla-legend-dot.at-risk {
  background-color: #f59e0b;
}

.sla-legend-dot.breached {
  background-color: #ef4444;
}

.sla-legend-pct {
  font-weight: 700;
  color: #0f172a;
}

/* --- Live Aircraft Turnaround --- */
.turnaround-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.turnaround-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.turnaround-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
}

.turnaround-flight {
  font-weight: 600;
  color: #1e293b;
}

.turnaround-status {
  font-weight: 600;
  font-size: 0.72rem;
}

.turnaround-status.status-green {
  color: #10b981;
}

.turnaround-status.status-blue {
  color: #0284c7;
}

.turnaround-status.status-amber {
  color: #f59e0b;
}

.turnaround-progress-bar-bg {
  width: 100%;
  height: 6px;
  background-color: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.turnaround-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease-in-out;
}

.turnaround-progress-fill.green {
  background-color: #10b981;
}

.turnaround-progress-fill.blue {
  background-color: #0284c7;
}

.turnaround-progress-fill.amber {
  background-color: #f59e0b;
}

/* --- Recent Notifications List --- */
.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.notif-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.2rem 0;
  transition: transform 0.15s ease;
}

.notif-item:hover {
  transform: translateX(2px);
}

.notif-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.notif-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.notif-icon-circle.amber {
  background-color: #fef3c7;
  color: #d97706;
}

.notif-icon-circle.green {
  background-color: #dcfce7;
  color: #16a34a;
}

.notif-icon-circle.red {
  background-color: #fee2e2;
  color: #dc2626;
}

.notif-icon-circle.blue {
  background-color: #e0f2fe;
  color: #0284c7;
}

.notif-content {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.notif-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
}

.notif-detail {
  font-size: 0.72rem;
  color: #64748b;
}

.notif-time {
  font-size: 0.7rem;
  color: #94a3b8;
  white-space: nowrap;
}

/* --- Highcharts Custom Overrides --- */
.highcharts-background {
  fill: transparent !important;
}

.highcharts-credits {
  display: none !important;
}

.highcharts-tooltip-box {
  fill: #1e293b !important;
  fill-opacity: 0.95 !important;
  stroke: #334155 !important;
  stroke-width: 1px !important;
  rx: 6px !important;
  ry: 6px !important;
}

.highcharts-tooltip text {
  fill: #ffffff !important;
  font-family: var(--font-family) !important;
  font-size: 0.75rem !important;
}

/* --- Offcanvas Mobile Overlay Backdrop --- */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1005;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
  display: block;
}

@media (min-width: 992px) {
  .sidebar-overlay, .sidebar-overlay.active {
    display: none !important;
  }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1200px) {
  .main-content {
    padding: 1.25rem 1.5rem 2rem;
  }
}

@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    height: calc(100vh - var(--navbar-height));
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.35);
    z-index: 1025;
  }

  .app-sidebar.show {
    transform: translateX(0);
  }

  .sidebar-overlay {
    top: var(--navbar-height);
    height: calc(100vh - var(--navbar-height));
    z-index: 1020;
  }

  .main-content {
    width: 100%;
    padding: 1rem 1.25rem 2rem;
  }

  .nav-center {
    max-width: 320px;
    margin: 0 0.75rem;
  }
}

@media (max-width: 767.98px) {
  .top-navbar {
    padding: 0 0.85rem;
  }

  .brand-logo-wrap img {
    height: 30px;
  }

  .menu-toggle-btn {
    width: 32px;
    height: 32px;
  }

  .menu-toggle-btn img {
    width: 18px;
    height: 18px;
  }

  .nav-center {
    display: none; /* Collapsed search on small screens or toggleable */
  }

  .user-meta, .user-avatar, .dropdown-arrow {
    display: none; /* Compact navbar on small mobile screens */
  }

  .dashboard-heading {
    font-size: 1.25rem;
  }

  .dashboard-submeta {
    font-size: 0.72rem;
  }

  /* Responsive Action Bar on Mobile: Clean 2-tier alignment */
  .dashboard-header-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.5rem;
  }

  .dashboard-actions .btn-live-wallboard {
    width: 100%;
    justify-content: center;
    padding: 0.52rem 0.85rem;
    font-size: 0.8rem;
  }

  .dashboard-actions .dropdown {
    flex: 1 1 0;
    min-width: 0;
  }

  .dashboard-actions .btn-today-filter,
  .dashboard-actions .btn-export-primary {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0.5rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  /* 2-Card Each Row Mobile KPI Layout */
  .kpi-row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .kpi-card {
    padding: 0.7rem 0.6rem;
    border-radius: 10px;
    height: 100%;
  }

  .kpi-top {
    gap: 0.45rem;
    margin-bottom: 0.4rem;
  }

  .kpi-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.9rem;
  }

  .kpi-label {
    font-size: 0.6rem;
    line-height: 1.2;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .kpi-value {
    font-size: 1.3rem;
    line-height: 1.1;
  }

  .kpi-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .kpi-trend {
    font-size: 0.65rem;
    line-height: 1.2;
  }

  .kpi-sparkline {
    width: 100% !important;
    height: 22px !important;
  }

  /* Service Requests & Invoices KPI Cards on Mobile */
  .invoice-kpi-card {
    padding: 0.7rem 0.6rem;
    border-radius: 10px;
  }

  .invoice-kpi-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .invoice-kpi-label {
    font-size: 0.58rem;
  }

  .invoice-kpi-value {
    font-size: 1.15rem;
  }

  .invoice-kpi-subtext {
    font-size: 0.62rem;
  }

  .invoice-kpi-trend {
    font-size: 0.62rem;
  }

  /* Documents KPI Cards on Mobile */
  .doc-kpi-card {
    padding: 0.7rem 0.6rem;
  }

  .doc-kpi-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .doc-kpi-count {
    font-size: 1.25rem;
  }

  .doc-kpi-title {
    font-size: 0.72rem;
  }

  .doc-kpi-desc {
    font-size: 0.62rem;
  }

  .sla-content-wrap {
    flex-direction: column;
    align-items: center;
  }

  .sla-legend-list {
    width: 100%;
  }

  /* Mobile Toolbar, Search & Horizontal Scroll Containment */
  .doc-search-box,
  .flight-search-box {
    width: 100% !important;
  }

  .invoice-toolbar-card {
    padding: 0.75rem 0.85rem;
    overflow-x: hidden;
    max-width: 100%;
  }

  .invoice-pills-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    padding-bottom: 4px;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .invoice-toolbar-card > div {
    min-width: 0;
    width: 100%;
  }

  .invoice-pills-wrap::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    flex-shrink: 0;
  }

  .flights-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin: 0;
  }

  .content-card {
    max-width: 100%;
  }
}

/* ==========================================================================
   Login Page Styles
   ========================================================================== */
.login-body {
  background-color: #ffffff;
  min-height: 100vh;
  margin: 0;
  display: flex;
  overflow-x: hidden;
}

.login-wrapper {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

/* Left Hero / Promo Side */
.login-hero-side {
  flex: 1.15;
  background: url('../images/login-bg.jpg') no-repeat center bottom / cover;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 3.5rem;
  color: #0f172a;
}

.login-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(10, 25, 47, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.hero-brand-block {
  margin-bottom: 2.5rem;
}

.hero-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  margin-bottom: 4px;
}

.hero-brand-subtext {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: 0.2px;
}

.hero-center-copy {
  max-width: 520px;
  margin-bottom: auto;
}

.hero-title {
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0d1b3e;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.hero-title .text-crimson {
  color: var(--primary-red);
}

.hero-description {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 2rem;
}

/* Feature bullet list */
.hero-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2.5rem;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary-red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.hero-feature-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e293b;
}

/* Trust Badges Bar */
.trust-badges-bar {
  background: rgba(13, 27, 62, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.75rem 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  color: #ffffff;
  width: fit-content;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.trust-badge-icon {
  font-size: 1.15rem;
  color: #ffffff;
}

.trust-badge-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.trust-badge-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.trust-badge-sub {
  font-size: 0.68rem;
  color: #94a3b8;
}

.trust-divider {
  width: 1px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.18);
}

/* Right Form Side */
.login-form-side {
  flex: 1;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 3rem;
  position: relative;
}

.login-form-box {
  width: 100%;
  max-width: 410px;
}

.login-brand-center {
  text-align: center;
  margin-bottom: 1.25rem;
}

.login-brand-center img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.login-welcome-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.login-welcome-sub {
  font-size: 0.84rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 1.85rem;
}

.form-group-custom {
  margin-bottom: 1.2rem;
}

.form-label-custom {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #334155;
  margin-bottom: 0.45rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background-color: #ffffff;
  transition: all 0.2s ease;
  padding: 0 12px;
}

.input-with-icon:focus-within {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(228, 2, 33, 0.1);
}

.input-icon-lead {
  color: #64748b;
  font-size: 0.95rem;
  margin-right: 10px;
  display: flex;
  align-items: center;
}

.custom-input {
  border: none;
  background: transparent;
  width: 100%;
  padding: 10px 0;
  font-size: 0.85rem;
  color: #0f172a;
  outline: none;
  font-family: inherit;
}

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

.password-toggle-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.password-toggle-btn:hover {
  color: #0f172a;
}

/* Remember & Forgot Password */
.login-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  font-size: 0.78rem;
}

.remember-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #334155;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.remember-checkbox-label input[type="checkbox"] {
  accent-color: var(--primary-red);
  width: 16px;
  height: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.forgot-password-link {
  color: var(--primary-red);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.forgot-password-link:hover {
  color: var(--primary-red-hover);
  text-decoration: underline;
}

/* Sign In Submit Button */
.btn-signin-submit {
  width: 100%;
  background-color: var(--primary-red);
  border: 1px solid var(--primary-red);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(228, 2, 33, 0.25);
}

.btn-signin-submit:hover {
  background-color: var(--primary-red-hover);
  border-color: var(--primary-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(228, 2, 33, 0.35);
}

/* Divider */
.login-or-divider {
  display: flex;
  align-items: center;
  margin: 1.35rem 0;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.login-or-divider::before,
.login-or-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.login-or-divider span {
  padding: 0 12px;
}

/* SSO Button */
.btn-sso-secondary {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sso-secondary:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

/* New User Register */
.login-register-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #64748b;
}

.login-register-link {
  color: var(--primary-red);
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.25rem;
}

.login-register-link:hover {
  color: var(--primary-red-hover);
  text-decoration: underline;
}

/* Responsive Login Layout */
@media (max-width: 991.98px) {
  .login-wrapper {
    flex-direction: column;
  }

  .login-hero-side {
    padding: 2.5rem 2rem;
    min-height: 480px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .trust-badges-bar {
    gap: 1rem;
    padding: 0.6rem 1rem;
    flex-wrap: wrap;
  }

  .login-form-side {
    padding: 2.5rem 1.5rem;
  }
}

/* ==========================================================================
   Flight Management Page Styles
   ========================================================================== */
.breadcrumb-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.breadcrumb-link {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb-link:hover {
  color: var(--primary-red);
}

.breadcrumb-sep {
  color: #94a3b8;
  font-size: 0.65rem;
}

.breadcrumb-current {
  color: #1e293b;
  font-weight: 600;
}

/* 5 Column Grid for KPI Row */
.kpi-row-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 1200px) {
  .kpi-row-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .kpi-row-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .kpi-row-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

.kpi-icon-box.green {
  background-color: #dcfce7;
  color: #10b981;
}

/* Flight Management Filter Toolbar */
.flight-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.flight-search-box {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  width: 280px;
  transition: all 0.2s ease;
}

.flight-search-box:focus-within {
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(228, 2, 33, 0.08);
}

.flight-search-box i {
  color: #94a3b8;
  margin-right: 8px;
  font-size: 0.85rem;
}

.flight-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.8rem;
  color: #1e293b;
  width: 100%;
}

.flight-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill-btn {
  background-color: #f1f5f9;
  border: 1px solid transparent;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  text-decoration: none;
}

.filter-pill-btn:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.filter-pill-btn.active {
  background-color: #ffffff;
  border-color: var(--primary-red);
  color: var(--primary-red);
  font-weight: 700;
}

.date-picker-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}

.date-picker-btn:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

/* Flight Table Columns & Badges */
.badge-type {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.badge-type.dep {
  background-color: #e0f2fe;
  color: #0284c7;
}

.badge-type.arr {
  background-color: #f3e8ff;
  color: #7e22ce;
}

.status-pill.diverted {
  background-color: #ffe4e6;
  color: #e11d48;
}

/* Pagination Bar */
.table-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.15rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #475569;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.page-btn:hover:not(.active):not(.disabled) {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.page-btn.active {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  color: #ffffff;
}

.page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-dots {
  padding: 0 4px;
  color: #94a3b8;
}

/* ==========================================================================
   Electronic Service Confirmation Page Styles
   ========================================================================== */
/* Sidebar active indicator styling (red left border accent) */
.nav-item-link.active-indicator {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 8px;
  position: relative;
  font-weight: 600;
}

.nav-item-link.active-indicator::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 15%;
  bottom: 15%;
  width: 4px;
  background-color: var(--primary-red);
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.nav-item-link.active-indicator i {
  color: #ffffff;
}

/* Flight Dark Banner */
.confirmation-flight-banner {
  background-color: #07152b;
  border-radius: 12px;
  padding: 1.25rem 1.65rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(7, 21, 43, 0.15);
}

.flight-banner-left {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.flight-banner-icon {
  width: 44px;
  height: 44px;
  background-color: var(--primary-red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
  flex-shrink: 0;
}

.flight-banner-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 3px 0;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.flight-banner-meta {
  font-size: 0.78rem;
  color: #8da2bd;
}

.badge-turnaround-complete {
  background-color: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  margin-left: 1rem;
  white-space: nowrap;
}

.flight-banner-right {
  text-align: right;
  position: relative;
  z-index: 2;
}

.flight-banner-count {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.flight-banner-status {
  font-size: 0.76rem;
  color: #8da2bd;
}

.flight-banner-bg-graphic {
  position: absolute;
  right: -20px;
  top: -15px;
  height: 130%;
  pointer-events: none;
  opacity: 0.18;
  z-index: 1;
}

/* Service Item Column in Confirmation Table */
.service-icon-cell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 600;
  color: #0f172a;
}

.service-icon-wrap {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #475569;
}

.table-note-italic {
  font-size: 0.72rem;
  color: #94a3b8;
  font-style: italic;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Acknowledge & Sign Box */
.ack-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.ack-card-sub {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 1.15rem;
}

.digital-signature-box {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background-color: #fafbfc;
  padding: 1rem;
  position: relative;
  margin-bottom: 1.15rem;
  text-align: center;
}

.signature-clear-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--primary-red);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
}

.signature-clear-btn:hover {
  text-decoration: underline;
}

.signature-display-svg {
  width: 100%;
  max-width: 240px;
  height: 68px;
  margin: 0.5rem auto;
  display: block;
}

.signature-caption {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Confirm Checkbox */
.confirm-services-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.15rem;
  cursor: pointer;
}

.confirm-services-label input[type="checkbox"] {
  accent-color: var(--primary-red);
  width: 17px;
  height: 17px;
  border-radius: 4px;
  cursor: pointer;
}

/* Accept & Reject Action Buttons */
.btn-accept-sign {
  width: 100%;
  background-color: #059669;
  border: 1px solid #059669;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
}

.btn-accept-sign:hover {
  background-color: #047857;
  border-color: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(5, 150, 105, 0.3);
}

.btn-reject-remarks {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #ef4444;
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.65rem;
}

.btn-reject-remarks:hover {
  background-color: #fef2f2;
}

/* Recorded Audit Trail Box */
.audit-trail-box {
  background-color: #eff6ff;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.audit-trail-icon {
  font-size: 1.2rem;
  color: #2563eb;
  flex-shrink: 0;
}

.audit-trail-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.audit-trail-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #1e293b;
}

.audit-trail-sub {
  font-size: 0.7rem;
  color: #64748b;
}

/* Standard Portal Bottom Copyright & Legal Footer */
.portal-site-footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.76rem;
  color: #94a3b8;
}

.portal-footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.portal-footer-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.portal-footer-links a:hover {
  color: var(--primary-red);
}

/* ==========================================================================
   Invoice Management Page Styles
   ========================================================================== */
.table-actions-cell {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.action-icon-btn {
  background: transparent;
  border: none;
  color: #64748b;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.action-icon-btn:hover {
  color: var(--primary-red);
  background-color: #f1f5f9;
}

.table-note-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  color: #64748b;
}

/* Top Overdue List */
.overdue-invoices-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.overdue-invoice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f8fafc;
  font-size: 0.78rem;
}

.overdue-invoice-item:last-child {
  border-bottom: none;
}

.overdue-inv-num {
  font-weight: 700;
  color: var(--primary-red);
}

.overdue-inv-period {
  color: #64748b;
  font-size: 0.74rem;
}

.overdue-inv-amount {
  font-weight: 700;
  color: #0f172a;
}

/* Aging Summary 4-Bucket Grid */
.aging-buckets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding-top: 0.35rem;
}

.aging-bucket-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.aging-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.aging-tag.green {
  background-color: #dcfce7;
  color: #15803d;
}

.aging-tag.blue {
  background-color: #e0f2fe;
  color: #0369a1;
}

.aging-tag.amber {
  background-color: #fef3c7;
  color: #b45309;
}

.aging-tag.red {
  background-color: #fee2e2;
  color: #b91c1c;
}

.aging-count {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
}

.aging-amount {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.aging-amount.green {
  color: #15803d;
}

.aging-amount.blue {
  color: #0369a1;
}

.aging-amount.amber {
  color: #b45309;
}

.aging-amount.red {
  color: var(--primary-red);
}

/* Quick Actions List */
.quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-action-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.quick-action-card:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.quick-action-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.quick-action-icon.pdf {
  background-color: #eff6ff;
  color: #2563eb;
}

.quick-action-icon.excel {
  background-color: #f0fdf4;
  color: #16a34a;
}

.quick-action-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.quick-action-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
}

.quick-action-sub {
  font-size: 0.7rem;
  color: #64748b;
}

/* Invoice Management Detailed Elements */
.invoice-kpi-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 1.15rem 1.25rem 0.6rem 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  height: 100%;
}

.invoice-kpi-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: #e2e8f0;
}

.invoice-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.invoice-kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.invoice-kpi-icon.red {
  background-color: #fee2e2;
  color: var(--primary-red);
}

.invoice-kpi-icon.green {
  background-color: #dcfce7;
  color: #16a34a;
}

.invoice-kpi-icon.amber {
  background-color: #ffedd5;
  color: #ea580c;
}

.invoice-kpi-icon.blue {
  background-color: #e0f2fe;
  color: #0284c7;
}

.invoice-kpi-trend {
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.invoice-kpi-trend.red {
  color: var(--primary-red);
}

.invoice-kpi-trend.green {
  color: #16a34a;
}

.invoice-kpi-trend .vs-text {
  color: #94a3b8;
  font-weight: 500;
}

.invoice-kpi-body {
  margin-bottom: 0.5rem;
}

.invoice-kpi-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.invoice-kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.invoice-kpi-subtext {
  font-size: 0.73rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 0.2rem;
}

.invoice-kpi-chart {
  width: calc(100% + 2.5rem);
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  margin-bottom: -0.6rem;
  height: 46px;
}

/* Filter Toolbar */
.invoice-toolbar-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.invoice-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 280px;
}

.invoice-search-box i {
  position: absolute;
  left: 0.75rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

.invoice-search-input {
  width: 100%;
  padding: 0.42rem 0.85rem 0.42rem 2.2rem;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  font-size: 0.8rem;
  background-color: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.invoice-search-input:focus {
  border-color: var(--primary-red);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(228, 2, 33, 0.1);
}

.invoice-pills-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-pill {
  padding: 0.38rem 0.95rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid transparent;
  background-color: #f1f5f9;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.filter-pill:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.filter-pill.active {
  background-color: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
  box-shadow: 0 2px 6px rgba(228, 2, 33, 0.3);
}

.btn-invoice-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.85rem;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-invoice-date:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

/* Invoices Table */
.invoice-number-text {
  font-weight: 700;
  color: var(--primary-red);
  cursor: pointer;
  text-decoration: none;
}

.invoice-number-text:hover {
  color: var(--primary-red-hover);
  text-decoration: underline;
}

.status-badge-paid {
  background-color: #dcfce7;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
}

.status-badge-outstanding {
  background-color: #e0f2fe;
  color: #0369a1;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
}

.status-badge-overdue {
  background-color: #fee2e2;
  color: #b91c1c;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
}

.view-all-red {
  color: var(--primary-red);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.view-all-red:hover {
  color: var(--primary-red-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Document Repository Styles
   ========================================================================== */
.doc-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 240px;
}

.doc-search-box i {
  position: absolute;
  left: 0.75rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

.doc-search-input {
  width: 100%;
  padding: 0.42rem 0.85rem 0.42rem 2.2rem;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  font-size: 0.8rem;
  background-color: #ffffff;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.doc-search-input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(228, 2, 33, 0.1);
}

/* 5 Document KPI Cards */
.doc-kpi-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 1.1rem 1.15rem 0.85rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.doc-kpi-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: #e2e8f0;
}

.doc-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.doc-kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.doc-kpi-icon.red {
  background-color: #fee2e2;
  color: var(--primary-red);
}

.doc-kpi-icon.blue {
  background-color: #e0f2fe;
  color: #0284c7;
}

.doc-kpi-icon.amber {
  background-color: #ffedd5;
  color: #f59e0b;
}

.doc-kpi-icon.green {
  background-color: #dcfce7;
  color: #10b981;
}

.doc-kpi-count {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.doc-kpi-body {
  margin-bottom: 0.75rem;
}

.doc-kpi-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.2rem;
}

.doc-kpi-desc {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.25;
}

.doc-kpi-line {
  height: 3px;
  border-radius: 2px;
  width: 100%;
}

.doc-kpi-line.red {
  background: linear-gradient(90deg, #e40221 0%, rgba(228, 2, 33, 0.2) 100%);
}

.doc-kpi-line.blue {
  background: #0284c7;
}

.doc-kpi-line.amber {
  background: #f59e0b;
}

.doc-kpi-line.green {
  background: #10b981;
}

/* Left Column: Categories Card */
.doc-categories-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 1.15rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.doc-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.35rem;
  text-decoration: none;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.doc-category-item:hover {
  background-color: #f8fafc;
  color: #0f172a;
}

.doc-category-item.active {
  background-color: #fef2f2;
  color: var(--primary-red);
}

.doc-cat-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.doc-cat-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background-color: #f1f5f9;
  color: #64748b;
}

.doc-category-item.active .doc-cat-badge {
  background-color: #fee2e2;
  color: var(--primary-red);
}

/* Azure Blob Banner Box */
.azure-blob-box {
  background-color: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-top: 1.25rem;
  text-align: left;
}

.azure-blob-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
}

.azure-blob-sub {
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.azure-blob-link {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--primary-red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.azure-blob-link:hover {
  color: var(--primary-red-hover);
  text-decoration: underline;
}

/* File Type Outline Badges */
.file-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1.5px solid;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.file-type-badge.pdf {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

.file-type-badge.docx {
  border-color: #3b82f6;
  color: #3b82f6;
  background: #eff6ff;
}

.file-type-badge.xlsx {
  border-color: #10b981;
  color: #10b981;
  background: #f0fdf4;
}

/* Bottom Quick Access Cards */
.quick-access-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.quick-access-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  border-color: #cbd5e1;
}

.quick-access-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.quick-access-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.quick-access-icon.blue {
  background-color: #eff6ff;
  color: #2563eb;
}

.quick-access-icon.green {
  background-color: #f0fdf4;
  color: #16a34a;
}

.quick-access-icon.purple {
  background-color: #f5f3ff;
  color: #7c3aed;
}

.quick-access-icon.orange {
  background-color: #fff7ed;
  color: #ea580c;
}

.quick-access-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.quick-access-sub {
  font-size: 0.71rem;
  color: #64748b;
}

.btn-show-more-docs {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-show-more-docs:hover {
  color: var(--primary-red);
}

/* ==========================================================================
   Service Requests Page Styles (Aviation SME Designed)
   ========================================================================== */
.priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.table-service-requests {
  width: 100% !important;
  table-layout: auto;
}

@media (min-width: 1200px) {
  .table-service-requests {
    table-layout: fixed;
  }
  .table-service-requests th,
  .table-service-requests td {
    padding: 0.55rem 0.45rem !important;
  }
}

.priority-badge.urgent {
  background-color: #fee2e2;
  color: var(--primary-red);
  box-shadow: 0 0 0 1px rgba(228, 2, 33, 0.2);
}

.priority-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-red);
  box-shadow: 0 0 0 rgba(228, 2, 33, 0.6);
  animation: priorityPulse 1.5s infinite;
}

@keyframes priorityPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(228, 2, 33, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(228, 2, 33, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(228, 2, 33, 0); }
}

.priority-badge.high {
  background-color: #ffedd5;
  color: #c2410c;
}

.priority-badge.standard {
  background-color: #f1f5f9;
  color: #475569;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
}

.category-tag.ramp {
  background-color: #e0f2fe;
  color: #0369a1;
}

.category-tag.passenger {
  background-color: #f3e8ff;
  color: #7e22ce;
}

.category-tag.cabin {
  background-color: #ccfbf1;
  color: #0f766e;
}

.category-tag.cargo {
  background-color: #ffedd5;
  color: #c2410c;
}

.category-tag.departure {
  background-color: #e2e8f0;
  color: #1e293b;
}

.status-badge-pending {
  background-color: #ffedd5;
  color: #c2410c;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.status-badge-enroute {
  background-color: #e0f2fe;
  color: #0284c7;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.status-badge-inprogress {
  background-color: #ede9fe;
  color: #6d28d9;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.status-badge-completed {
  background-color: #dcfce7;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Escalation Item Card */
.escalation-alert-item {
  background-color: #fffaf0;
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--primary-red);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.65rem;
}

.escalation-alert-item.urgent {
  background-color: #fef2f2;
  border-color: #fca5a5;
  border-left: 4px solid var(--primary-red);
}

.escalation-alert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.escalation-flight-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.escalation-stand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.escalation-alert-desc {
  font-size: 0.74rem;
  color: #475569;
  line-height: 1.3;
}

.escalation-hotline-bar {
  background-color: #07152b;
  color: #ffffff;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  margin-top: 0.85rem;
}

.escalation-hotline-bar .vhf-tag {
  color: #38bdf8;
  font-weight: 700;
}

/* Quick Service Launcher Card */
.service-quick-launcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  background-color: #ffffff;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.service-quick-launcher:hover {
  background-color: #f8fafc;
  border-color: var(--primary-red);
  transform: translateX(2px);
}

.service-launcher-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-launcher-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.service-launcher-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
}

.service-launcher-sub {
  font-size: 0.7rem;
  color: #64748b;
}

/* ==========================================================================
   Administration & RBAC Matrix Styles
   ========================================================================== */
/* Sidebar Submenu & Management Section */
.sidebar-submenu {
  list-style: none;
  padding: 0.25rem 0 0.5rem 1.75rem;
  margin: 0;
}

.sidebar-submenu-item {
  margin-bottom: 0.2rem;
}

.sidebar-submenu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  color: var(--navy-text-muted);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.sidebar-submenu-link:hover {
  color: #ffffff;
  background-color: var(--navy-sidebar-hover);
}

.sidebar-submenu-link.active {
  background-color: #122847;
  color: #ffffff;
  font-weight: 600;
}

.submenu-red-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary-red);
}

/* Admin Page Horizontal Nav Tabs */
.admin-tabs-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
}

.admin-tab-link {
  padding: 0.6rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  position: relative;
  transition: color 0.15s ease;
}

.admin-tab-link:hover {
  color: #0f172a;
}

.admin-tab-link.active {
  color: var(--primary-red);
  font-weight: 700;
}

.admin-tab-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-red);
  border-radius: 2px 2px 0 0;
}

/* Role-Based Access Control Matrix Table */
.rbac-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8rem;
}

.rbac-table th {
  background-color: #ffffff;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
}

.rbac-table th:first-child {
  text-align: left;
  padding-left: 0;
}

.rbac-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid #f8fafc;
  vertical-align: middle;
  text-align: center;
}

.rbac-table td:first-child {
  text-align: left;
  padding-left: 0;
}

.rbac-permission-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.8rem;
}

.rbac-permission-cell i {
  color: #64748b;
  font-size: 0.95rem;
  width: 18px;
}

/* Custom Red iOS Switch */
.switch-toggle-red {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  margin: 0;
  cursor: pointer;
}

.switch-toggle-red input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e2e8f0;
  transition: 0.25s ease;
  border-radius: 22px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s ease;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.switch-toggle-red input:checked + .switch-slider {
  background-color: var(--primary-red);
}

.switch-toggle-red input:checked + .switch-slider:before {
  transform: translateX(16px);
}

/* Green Switch Toggle */
.switch-toggle-green {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  margin: 0;
  cursor: pointer;
}

.switch-toggle-green input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider-green {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e2e8f0;
  transition: 0.25s ease;
  border-radius: 22px;
}

.switch-slider-green:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s ease;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.switch-toggle-green input:checked + .switch-slider-green {
  background-color: #10b981;
}

.switch-toggle-green input:checked + .switch-slider-green:before {
  transform: translateX(18px);
}

/* Branding Styles */
.branding-logo-box {
  border: 1.5px dashed #e2e8f0;
  border-radius: 10px;
  padding: 1.15rem;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.color-swatch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  margin-bottom: 0.4rem;
}

.color-swatch-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.color-swatch-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.color-swatch-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
}

.color-swatch-hex {
  font-size: 0.7rem;
  color: #64748b;
  font-family: monospace;
}

.btn-swatch-edit {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.btn-swatch-edit:hover {
  color: var(--primary-red);
}

/* Portal Mini Preview */
.mini-portal-preview {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  margin-bottom: 1.25rem;
}

.mini-preview-topbar {
  background-color: var(--primary-red);
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
}

.mini-preview-body {
  background-color: #ffffff;
  padding: 1.15rem 1rem;
  position: relative;
  min-height: 80px;
}

.mini-preview-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.15rem;
}

.mini-preview-sub {
  font-size: 0.74rem;
  color: #475569;
  font-weight: 600;
}

.mini-preview-watermark {
  position: absolute;
  right: 10px;
  bottom: 5px;
  width: 90px;
  opacity: 0.15;
  pointer-events: none;
}

/* ==========================================================================
   Live Flight Status (FIDS / Airside Wallboard) Styles
   ========================================================================== */
.live-status-body {
  background-color: #ffffff;
  min-height: 100vh;
  color: #0f172a;
  display: flex;
  flex-direction: column;
}

/* Top Utility / Operator Bar */
.live-util-bar {
  background-color: #0b1528;
  color: #94a3b8;
  padding: 0.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 1050;
}

.live-util-bar a.back-link {
  color: #f8fafc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.live-util-bar a.back-link:hover {
  background-color: var(--primary-red);
  color: #ffffff;
}

.live-util-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.live-util-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.live-util-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Main Display Container */
.live-wallboard-container {
  max-width: 1540px;
  margin: 0 auto;
  padding: 1.75rem 2.25rem 2rem;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Top Header Bar */
.live-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}

.live-brand-col {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 250px;
}

.live-brand-col img.live-bas-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.live-center-title-col {
  text-align: center;
  flex: 1;
}

.live-title-flex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 0.3rem;
}

.live-main-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.live-pill-tag {
  background-color: var(--primary-red);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0.04em;
}

.live-dot-white {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ffffff;
  animation: livePillDotPulse 1.5s infinite ease-in-out;
}

@keyframes livePillDotPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.live-subtitle {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.live-clock-col {
  text-align: right;
  min-width: 250px;
}

.live-clock-time {
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.live-clock-date {
  font-size: 0.88rem;
  color: #475569;
  font-weight: 500;
}

/* Flight Information Update Alert */
.live-info-banner {
  background-color: #ffffff;
  border: 1.5px solid #fecaca;
  border-radius: 12px;
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(228, 2, 33, 0.05);
  position: relative;
}

.live-info-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.live-info-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.live-info-body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.live-info-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.98rem;
  white-space: nowrap;
}

.live-info-text {
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0;
}

.live-info-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.live-info-meta {
  text-align: right;
}

.live-info-source {
  font-size: 0.78rem;
  color: #64748b;
}

.live-info-timestamp {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.live-info-close {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color 0.15s;
}

.live-info-close:hover {
  color: #0f172a;
}

/* 5 KPI Metric Sparkline Cards */
.live-kpi-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.live-kpi-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1.25rem 0.85rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.live-kpi-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.5rem;
}

.live-kpi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.live-kpi-avatar.pink-red {
  background-color: #fee2e2;
  color: var(--primary-red);
}

.live-kpi-avatar.soft-blue {
  background-color: #e0f2fe;
  color: #0284c7;
}

.live-kpi-avatar.soft-amber {
  background-color: #fef3c7;
  color: #f59e0b;
}

.live-kpi-avatar.soft-purple {
  background-color: #f3e8ff;
  color: #9333ea;
}

.live-kpi-avatar.soft-green {
  background-color: #dcfce7;
  color: #16a34a;
}

.live-kpi-details {
  flex: 1;
}

.live-kpi-name {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.live-kpi-metric-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.live-kpi-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.live-kpi-percentage {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary-red);
  background-color: #fee2e2;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.live-sparkline-wrap {
  width: 100%;
  height: 38px;
  margin-top: 0.25rem;
  overflow: hidden;
}

/* Flight Status Table */
.live-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  margin-bottom: 1.5rem;
  flex: 1;
}

.live-table-card table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.live-table-card thead th {
  background-color: #ffffff;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid #e2e8f0;
}

.live-table-card tbody td {
  padding: 1.15rem 1.4rem;
  font-size: 0.94rem;
  color: #1e293b;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

.live-table-card tbody tr:last-child td {
  border-bottom: none;
}

/* Row 2 Highlighted Active Flight */
.live-table-card tr.row-in-progress-active {
  background-color: #f0fdf4 !important;
}

.live-flight-code {
  font-weight: 700;
  color: var(--primary-red);
  font-size: 0.96rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.live-pulsing-green-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: liveRowGreenPulse 1.8s infinite;
}

@keyframes liveRowGreenPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Badges for Live FIDS Table */
.badge-fids-type {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  display: inline-block;
}

.badge-fids-type.dep {
  background-color: #e0f2fe;
  color: #0284c7;
}

.badge-fids-type.arr {
  background-color: #f3e8ff;
  color: #9333ea;
}

.live-route-text {
  font-weight: 600;
  color: #1e293b;
}

.live-time-text {
  font-weight: 500;
  color: #334155;
}

.live-aircraft-text {
  color: #475569;
  font-size: 0.88rem;
}

.live-gate-text {
  font-weight: 700;
  color: #0f172a;
}

.badge-fids-status {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.32rem 0.95rem;
  border-radius: 9999px;
  display: inline-block;
  text-align: center;
  min-width: 96px;
}

.badge-fids-status.status-boarding {
  background-color: #e0f2fe;
  color: #0284c7;
}

.badge-fids-status.status-inprogress {
  background-color: #0284c7;
  color: #ffffff;
}

.badge-fids-status.status-ontime {
  background-color: #16a34a;
  color: #ffffff;
}

.badge-fids-status.status-delayed {
  background-color: #ea580c;
  color: #ffffff;
}

.badge-fids-status.status-cancelled {
  background-color: #fee2e2;
  color: #ef4444;
}

/* Bottom Telemetry Footer */
.live-telemetry-strip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.live-telemetry-left {
  display: flex;
  align-items: center;
  gap: 3.5rem;
}

.telemetry-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.telemetry-node-icon {
  font-size: 1.25rem;
  color: #475569;
}

.telemetry-node-text {
  font-size: 0.85rem;
  line-height: 1.2;
}

.telemetry-node-text .telemetry-bold {
  font-weight: 700;
  color: #0f172a;
  margin-right: 0.25rem;
}

.telemetry-node-text .telemetry-sub {
  color: #64748b;
}

.live-telemetry-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
}

.live-telemetry-right i {
  font-size: 1.35rem;
  color: #475569;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .live-kpi-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .live-telemetry-left {
    gap: 1.5rem;
  }
}

@media (max-width: 992px) {
  .live-screen-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .live-brand-col, .live-clock-col {
    min-width: auto;
    text-align: center;
    justify-content: center;
  }
  .live-kpi-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .live-info-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .live-info-right {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.5rem;
  }
  .live-telemetry-strip {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .live-kpi-grid-5 {
    grid-template-columns: 1fr;
  }
  .live-wallboard-container {
    padding: 1rem;
  }
}

/* ==========================================================================
   Full-Fledged Application Interactive Enhancements
   ========================================================================== */

/* 1. User Profile Dropdown Menu */
.profile-dropdown-menu {
  min-width: 300px;
  border-radius: 14px;
  padding: 0.65rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  animation: dropdownFadeIn 0.2s ease-out;
}

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

.profile-dropdown-header {
  background: linear-gradient(135deg, #07152b 0%, #162b4d 100%);
  color: #ffffff;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.profile-dropdown-header .avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-red);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-dropdown-header .user-title {
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0;
  color: #ffffff;
}

.profile-dropdown-header .user-station-tag {
  display: inline-block;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  color: #cbd5e1;
  margin-top: 0.25rem;
}

.carrier-switcher-box {
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  margin: 0.4rem 0.5rem 0.6rem;
  border: 1px solid #e2e8f0;
}

.carrier-switcher-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.carrier-pills-wrap {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.carrier-pill {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.carrier-pill:hover, .carrier-pill.active {
  background-color: #07152b;
  color: #ffffff;
  border-color: #07152b;
}

.profile-dropdown-menu .dropdown-item {
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.15s;
}

.profile-dropdown-menu .dropdown-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.profile-dropdown-menu .dropdown-item i {
  font-size: 1rem;
  color: #64748b;
  width: 18px;
  text-align: center;
}

.profile-dropdown-menu .dropdown-item.text-danger:hover {
  background-color: #fef2f2;
  color: var(--primary-red) !important;
}

.profile-dropdown-menu .dropdown-item.text-danger i {
  color: var(--primary-red) !important;
}

/* 2. Date Filter Dropdown */
.date-filter-dropdown {
  min-width: 250px;
  border-radius: 12px;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

.date-filter-dropdown .dropdown-item {
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #334155;
  transition: all 0.15s;
}

.date-filter-dropdown .dropdown-item:hover {
  background-color: #f1f5f9;
}

.date-filter-dropdown .dropdown-item.active {
  background-color: #fef2f3;
  color: var(--primary-red);
  font-weight: 600;
}

.date-filter-dropdown .dropdown-item.active i.bi-check2 {
  color: var(--primary-red);
}

/* 3. Export Dropdown */
.export-dropdown {
  min-width: 320px;
  border-radius: 12px;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

.export-dropdown .dropdown-item {
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  transition: all 0.15s;
}

.export-dropdown .dropdown-item:hover {
  background-color: #f8fafc;
}

/* 4. Real-time Toast Notifications */
.toast-container-fixed {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2050;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
}

.toast-airside {
  background: #0f172a;
  color: #ffffff;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border-left: 4px solid var(--primary-red);
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

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

.toast-airside .toast-icon {
  font-size: 1.25rem;
  color: var(--primary-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-airside .toast-body-text {
  flex: 1;
}

.toast-airside .toast-title {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
  color: #ffffff;
}

.toast-airside .toast-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.35;
}

.toast-airside .toast-close {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
}

.toast-airside .toast-close:hover {
  color: #ffffff;
}

/* 5. Notifications Drawer (Offcanvas) */
.offcanvas-notifications {
  width: 400px !important;
  border-left: 1px solid #e2e8f0;
  box-shadow: -6px 0 25px rgba(0, 0, 0, 0.08);
}

.notif-tab-nav {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 1rem;
  background-color: #f8fafc;
}

.notif-tab-btn {
  background: transparent;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  padding: 0.75rem 0.85rem;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.notif-tab-btn:hover {
  color: #0f172a;
}

.notif-tab-btn.active {
  color: var(--primary-red);
  border-bottom-color: var(--primary-red);
}

.notif-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  transition: background-color 0.15s;
  text-decoration: none;
  color: inherit;
}

.notif-item:hover {
  background-color: #f8fafc;
}

.notif-item.unread {
  background-color: #fff9f9;
}

.notif-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.notif-avatar.red { background: #fee2e2; color: var(--primary-red); }
.notif-avatar.blue { background: #e0f2fe; color: #0284c7; }
.notif-avatar.amber { background: #fef3c7; color: #f59e0b; }
.notif-avatar.green { background: #dcfce7; color: #16a34a; }

.notif-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.notif-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #0f172a;
}

.notif-time {
  font-size: 0.72rem;
  color: #94a3b8;
}

.notif-snippet {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.35;
  margin: 0;
}

/* 6. Command Palette / Global Search Modal */
.cmd-search-input-wrap {
  position: relative;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cmd-search-input-wrap i {
  font-size: 1.25rem;
  color: #64748b;
}

.cmd-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 1.05rem;
  width: 100%;
  font-weight: 500;
  color: #0f172a;
}

.cmd-results-body {
  max-height: 420px;
  overflow-y: auto;
  padding: 0.75rem 0.5rem;
}

.cmd-category-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.75rem 0.25rem;
}

.cmd-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s;
}

.cmd-result-item:hover, .cmd-result-item:focus {
  background-color: #f1f5f9;
  color: var(--primary-red);
}

.cmd-result-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.cmd-tag {
  font-size: 0.72rem;
  background-color: #f1f5f9;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  color: #64748b;
  font-weight: 600;
}

/* 7. Reports Page Styles */
.reports-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.reports-kpi-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reports-analytics-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
  .reports-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reports-analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .reports-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

/* 8. Global Dropdown Toggles: Suppress Bootstrap's redundant ::after caret */
.dropdown-toggle::after {
  display: none !important;
}

.dropdown-arrow {
  font-size: 0.75rem;
  color: #64748b;
  transition: transform 0.2s ease;
}

.dropdown-toggle.show .dropdown-arrow,
.show > .dropdown-toggle .dropdown-arrow,
.user-profile-menu[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.btn-export-primary .bi-chevron-down {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.btn-export-primary.show .bi-chevron-down,
.show > .btn-export-primary .bi-chevron-down,
.btn-export-primary[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

.btn-today-filter .bi-chevron-down {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.btn-today-filter.show .bi-chevron-down,
.show > .btn-today-filter .bi-chevron-down,
.btn-today-filter[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

/* 9. Live FIDS Wallboard Button with High-Contrast Hover */
.btn-live-wallboard {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1.5px solid var(--primary-red);
  color: var(--primary-red) !important;
  background-color: #ffffff;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(228, 2, 33, 0.08);
}

.btn-live-wallboard i {
  color: var(--primary-red);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.btn-live-wallboard .badge-live {
  font-size: 0.65rem;
  font-weight: 700;
  background-color: var(--primary-red);
  color: #ffffff;
  border-radius: 20px;
  padding: 0.2rem 0.5rem;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.btn-live-wallboard:hover,
.btn-live-wallboard:focus {
  background-color: var(--primary-red) !important;
  color: #ffffff !important;
  border-color: var(--primary-red) !important;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(228, 2, 33, 0.35);
  transform: translateY(-1px);
}

.btn-live-wallboard:hover span,
.btn-live-wallboard:hover i,
.btn-live-wallboard:focus span,
.btn-live-wallboard:focus i {
  color: #ffffff !important;
}

.btn-live-wallboard:hover .badge-live,
.btn-live-wallboard:focus .badge-live {
  background-color: #ffffff !important;
  color: var(--primary-red) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}










/* --- New Login Toggle Styles --- */
.login-type-toggle {
  display: flex;
  background-color: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.login-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-tab-btn.active {
  background-color: var(--primary-red);
  color: #ffffff;
}

.login-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.login-tab-content.active {
  display: block;
}

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

.sso-shield-icon {
  text-align: center;
  font-size: 4rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.sso-prompt-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-otp-text {
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 1rem;
  margin-bottom: 0;
}

.border-top-footer {
  border-top: 1px solid #cbd5e1;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}
/* --- Third Revision Layout Update (White Form Card & F8FAFC Background) --- */
.login-form-side {
  background-color: #f8fafc !important;
}

.login-form-box {
  background: #ffffff;
  padding: 3rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
  border: 1px solid #f1f5f9;
}

.customer-portal-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.login-welcome-title {
  text-align: left !important;
  font-size: 2.1rem !important;
  color: #0f172a;
}

.login-welcome-sub {
  text-align: left !important;
  margin-bottom: 1.5rem !important;
  font-size: 0.95rem !important;
}

.login-type-toggle {
  background-color: #f1f5f9 !important;
  border-radius: 8px !important;
  padding: 4px !important;
  margin-bottom: 1.5rem !important;
}

.login-tab-btn {
  border-radius: 6px !important;
  color: #475569 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.65rem !important;
}

.login-tab-btn i {
  font-size: 1.05rem;
}

.login-tab-btn.active {
  background-color: #ffffff !important;
  color: var(--primary-red) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04) !important;
}

.login-tab-btn.active i {
  color: var(--primary-red) !important;
}

.login-otp-text i {
  font-size: 1.15rem;
  color: #64748b;
  position: relative;
  top: 2px;
}

.form-label-custom {
  font-size: 0.65rem !important;
}
/* --- Fix for Tab Text Wrapping --- */
.login-tab-btn {
  white-space: nowrap !important;
  font-size: 0.85rem !important;
  padding: 0.65rem 0.5rem !important;
}

.login-form-box {
  max-width: 480px !important;
  padding: 2.5rem !important; /* Slightly less padding to give content more room */
}
.login-form-side {
  background-color: #f1f5f9 !important; /* Slightly darker gray to make the white card pop better */
}


/* Ask AI Chat Styles */
.chat-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.chat-message {
  display: flex;
  max-width: 85%;
}
.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-message.ai {
  align-self: flex-start;
}
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
  margin: 0 12px;
}
.chat-avatar.user-avatar {
  background-color: #0f172a;
  color: #ffffff;
}
.chat-avatar.ai-avatar {
  background-color: #fee2e2;
  color: #ef4444;
}
.chat-bubble {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.chat-message.user .chat-bubble {
  background-color: #0f172a;
  color: #ffffff;
  border-top-right-radius: 4px;
}
.chat-message.ai .chat-bubble {
  background-color: #ffffff;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-top-left-radius: 4px;
}
.chat-input-area {
  padding: 1.25rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}
.suggested-questions {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}
.suggested-questions::-webkit-scrollbar {
  height: 4px;
}
.suggested-questions::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.suggestion-card {
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.suggestion-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}
.ai-table {
  width: 100%;
  margin-top: 0.75rem;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.ai-table th {
  background: #f8fafc;
  padding: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
  color: #64748b;
}
.ai-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}
