@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* ==========================================================================
   GLOBAL UTILITIES
   ========================================================================== */
.hidden {
  display: none !important;
}

:root {
  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Canvas & Card Surfaces */
  --bg-app: #f4f6fa;
  --bg-card: #ffffff;
  --bg-card-hover: #fafbfd;
  --bg-input: #ffffff;
  
  /* Borders & Dividers */
  --border-subtle: #edf2f7;
  --border-focus: #4f46e5;
  --border-card: #e9edf5;
  
  /* Typography Colors */
  --text-title: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Brand & Accent Palettes */
  --color-primary: #4f46e5;
  --color-primary-hover: #4338ca;
  --color-primary-light: #eef2ff;
  
  --color-success: #10b981;
  --color-success-light: #ecfdf5;
  
  --color-warning: #f59e0b;
  --color-warning-light: #fffbeb;
  
  --color-danger: #ef4444;
  --color-danger-light: #fef2f2;
  
  --color-cyan: #06b6d4;
  --color-cyan-light: #ecfeff;
  
  --color-purple: #8b5cf6;
  --color-purple-light: #f5f3ff;
  
  /* Geometry & Shadows */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-card: 18px;
  --radius-pill: 9999px;
  
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-card-hover: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 3px 6px rgba(0, 0, 0, 0.04);
  --shadow-pill: 0 2px 8px rgba(79, 70, 229, 0.25);
  --shadow-float: 0 12px 30px -4px rgba(15, 23, 42, 0.12);
  
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* ==========================================================================
   FLOATING MODERN PILL HEADER
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 16px;
  width: 100%;
}

.header-container {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  order: 1;
}

.brand-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-accent {
  color: var(--color-primary);
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-pill);
  order: 2;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  order: 3;
}

.nav-btn {
  background: transparent;
  border: none;
  padding: 7px 14px;
  font-family: var(--font-main);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

.nav-btn:hover {
  color: var(--text-title);
}

.nav-btn.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.nav-icon {
  opacity: 0.85;
  flex-shrink: 0;
}

.nav-btn.active .nav-icon {
  opacity: 1;
}

/* Hamburger Toggle Button (Hidden on Desktop & Tablet) */
.mobile-menu-toggle {
  display: none;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  background: #e2e8f0;
}

.mobile-menu-toggle:active {
  transform: scale(0.94);
}

.mobile-menu-toggle .hamburger-icon line {
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

.mobile-menu-toggle.is-open {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.mobile-menu-toggle.is-open .line-top {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.is-open .line-mid {
  opacity: 0;
}

.mobile-menu-toggle.is-open .line-bot {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Navigation Dropdown Drawer */
.mobile-nav-drawer {
  display: none;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.25s ease;
  background: #ffffff;
  border-top: 1px solid transparent;
  width: 100%;
}

.mobile-nav-drawer.open {
  max-height: 420px;
  opacity: 1;
  border-top-color: #f1f5f9;
  padding-top: 10px;
  padding-bottom: 6px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 1040px;
  margin: 0 auto;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  width: 100%;
  font-family: var(--font-main);
}

.mobile-nav-item:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.mobile-nav-item.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.mobile-nav-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.mobile-nav-item.active .mobile-nav-icon-box {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  box-shadow: none;
}

.mobile-nav-item-text {
  display: flex;
  flex-direction: column;
}

.mobile-nav-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.mobile-nav-item.active .mobile-nav-item-title {
  color: #ffffff;
}

.mobile-nav-item-desc {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 2px;
}

.mobile-nav-item.active .mobile-nav-item-desc {
  color: #94a3b8;
}

/* Header Responsive Media Queries */
@media (max-width: 920px) {
  .nav-btn {
    padding: 6px 11px;
    font-size: 0.82rem;
    gap: 5px;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-nav-drawer {
    display: block;
  }
  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==========================================================================
   CURRENCY INPUT WRAPPER WITH AUTOMATIC SAR PREFIX
   ========================================================================== */
.currency-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.currency-prefix-badge {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  font-weight: 800;
  color: #4f46e5;
  background: #eef2ff;
  padding: 3px 7px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  pointer-events: none;
  user-select: none;
  border: 1px solid #c7d2fe;
  z-index: 2;
}

.currency-input-wrapper input,
.currency-input-wrapper .input-field {
  padding-left: 60px !important;
  font-weight: 700;
  font-feature-settings: "tnum";
}

/* Modern Calendar Date Input Styling */
.date-picker-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.date-picker-input-wrapper input[type="date"] {
  cursor: pointer;
}

.date-picker-input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  filter: invert(0.2);
  transition: opacity 0.15s ease;
  padding: 4px;
}

.date-picker-input-wrapper input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* ==========================================================================
   MAIN CONTAINER & SCREEN TRANSITIONS
   ========================================================================== */
.main-content {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 80px 16px;
}

.screen-section {
  display: none;
}

.screen-section.active {
  display: block;
  animation: cardFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Common Card Style */
.modern-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.screen-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}

.screen-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.03em;
}

.btn-back {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 14px;
  margin-bottom: 6px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: all var(--transition-fast);
}

.btn-back:hover {
  background: #f8fafc;
  color: var(--text-title);
  transform: translateX(-2px);
}

/* ==========================================================================
   DASHBOARD / HOME SCREEN
   ========================================================================== */
.dash-greeting-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-greeting-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.dash-greeting-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.dash-badges-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.dash-date-badge {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .dash-greeting-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .dash-badges-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .dash-badges-row::-webkit-scrollbar {
    display: none;
  }
  .dash-date-badge {
    padding: 5px 9px;
    font-size: 0.74rem;
    gap: 4px;
    flex-shrink: 0;
  }
  .dash-date-badge svg {
    width: 12px;
    height: 12px;
  }
}

/* Quick Action Cards */
.dash-quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

@media (min-width: 600px) {
  .dash-quick-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.dash-cta-btn {
  border: none;
  border-radius: var(--radius-card);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-family: var(--font-main);
  text-align: left;
  transition: all var(--transition-fast);
  user-select: none;
}

.cta-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px -2px rgba(79, 70, 229, 0.3);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -2px rgba(79, 70, 229, 0.4);
}

.cta-secondary {
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-title);
  box-shadow: var(--shadow-card);
}

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

.cta-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-icon-saved {
  background: #f1f5f9;
  color: var(--color-primary);
}

.cta-text-wrap {
  display: flex;
  flex-direction: column;
}

.cta-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cta-subtitle {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 2px;
}

/* ==========================================================================
   TOP KPI METRIC CARDS (Cognify / FreeDash inspired)
   ========================================================================== */
.stats-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

@media (min-width: 480px) {
  .stats-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .stats-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-green { background: #ecfdf5; color: #10b981; }
.icon-blue { background: #eef2ff; color: #4f46e5; }
.icon-cyan { background: #ecfeff; color: #06b6d4; }
.icon-purple { background: #f5f3ff; color: #8b5cf6; }

.stat-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-soft-green { background: #ecfdf5; color: #059669; }
.badge-soft-blue { background: #eff6ff; color: #2563eb; }
.badge-soft-cyan { background: #ecfeff; color: #0891b2; }
.badge-soft-purple { background: #f5f3ff; color: #7c3aed; }

.stat-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   DASHBOARD 2-COLUMN SECTION (Schedule & Country Revenue Preview)
   ========================================================================== */
.dash-cards-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 860px) {
  .dash-cards-row {
    grid-template-columns: 1fr 1.1fr;
  }
}

.card-header-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: -0.02em;
}

.card-subtitle-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-card-link {
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.btn-card-link:hover {
  background: var(--color-primary-light);
}

.card-chip-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: #f1f5f9;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Schedule Tiles */
.schedule-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.schedule-tile {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.schedule-tile:hover {
  background: #ffffff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.schedule-tile:active {
  transform: scale(0.97);
}

.schedule-tile-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  margin-bottom: 8px;
}

.tile-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.tag-today { background: #e0f2fe; color: #0369a1; }
.tag-tomorrow { background: #cffafe; color: #0891b2; }
.tag-dayafter { background: #e0e7ff; color: #4338ca; }

.tile-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tile-count {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.1;
}

.tile-unit {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
}

.tile-tap-hint {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 6px;
  opacity: 0.8;
}

/* World Map Silhouette & Country Progress Preview */
.world-map-graphic {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.svg-world-map {
  width: 100%;
  height: 90px;
  display: block;
}

.svg-world-map-large {
  width: 100%;
  height: 180px;
  display: block;
}

.map-pulse-dot {
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.8; }
}

.dash-country-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.country-mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.country-name-mini {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-title);
  width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-bar-outer {
  flex-grow: 1;
  height: 7px;
  background: #e2e8f0;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.country-bar-inner {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 100%);
  transition: width 0.6s ease;
}

.country-amount-mini {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  width: 75px;
  text-align: right;
  white-space: nowrap;
}

/* ==========================================================================
   BUTTONS SYSTEM
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  user-select: none;
  min-height: 48px; /* Mobile touch friendly */
  gap: 6px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  background: #4338ca;
  border-color: #4338ca;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-title);
  border-color: var(--border-card);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

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

.btn-sm {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-danger-soft {
  background: var(--color-danger-light);
  color: var(--color-danger);
  border: 1px solid #fecaca;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-danger-soft:hover {
  background: #fee2e2;
}

/* ==========================================================================
   NEW / EDIT BOOKING FORM (Modern Card Containers)
   ========================================================================== */
.form-header-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background-color: #eef2ff;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.booking-name-card {
  margin-bottom: 20px;
  border: 2px solid #e0e7ff;
}

.primary-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.primary-input {
  font-size: 1.15rem;
  font-weight: 600;
  padding: 12px 16px;
  width: 100%;
}

.input-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.routes-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Route Card */
.route-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
}

.route-header {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.route-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-delete-route {
  background: var(--color-danger-light);
  border: 1px solid #fecaca;
  color: var(--color-danger);
  padding: 5px 12px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-delete-route:hover {
  background: #fee2e2;
}

.route-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  user-select: none;
}

.input-field {
  font-family: var(--font-main);
  font-size: 1rem; /* Prevents iOS Safari auto-zoom */
  color: var(--text-title);
  background-color: var(--bg-input);
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  min-height: 46px;
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-field:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.field-group-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 540px) {
  .field-group-grid.three-col {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .field-group-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.add-route-area {
  margin: 22px 0;
}

.btn-add-route-card {
  width: 100%;
  background: #ffffff;
  border: 2px dashed #c7d2fe;
  border-radius: var(--radius-card);
  padding: 16px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-add-route-card:hover {
  background: #eef2ff;
  border-color: var(--color-primary);
}

.add-icon-circle {
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}

.form-bottom-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.btn-save {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 16px;
  background: #4f46e5;
  border-radius: var(--radius-card);
}

/* ==========================================================================
   SAVED BOOKINGS SCREEN
   ========================================================================== */
.filter-pills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-pills-row::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  background-color: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.filter-pill:hover {
  background-color: #f8fafc;
}

.filter-pill.active {
  background-color: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.search-bar-wrap {
  margin-bottom: 16px;
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  pointer-events: none;
}

.search-input {
  font-size: 0.95rem;
  padding: 12px 14px 12px 40px;
  border-radius: var(--radius-card);
  background: #ffffff;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
}

.saved-bookings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.saved-booking-item {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

.saved-booking-item:hover {
  border-color: #c7d2fe;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.saved-item-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.02em;
}

.saved-item-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.saved-item-arrow {
  color: var(--text-light);
  font-size: 1.4rem;
  transition: transform var(--transition-fast);
}

.saved-booking-item:hover .saved-item-arrow {
  transform: translateX(4px);
  color: var(--color-primary);
}

.empty-state-box {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-card);
  padding: 44px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state-box p {
  margin-bottom: 14px;
  font-weight: 500;
}

/* ==========================================================================
   DETAIL VIEW SCREEN
   ========================================================================== */
.record-action-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.btn-action-copy {
  background-color: #10b981;
  color: #ffffff;
  font-size: 0.86rem;
  padding: 10px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}
.btn-action-copy:hover {
  background-color: #059669;
}

.btn-action-print {
  background-color: #475569;
  color: #ffffff;
  font-size: 0.86rem;
  padding: 10px;
  border-radius: var(--radius-sm);
}
.btn-action-print:hover {
  background-color: #334155;
}

.btn-action-edit {
  background-color: #4f46e5;
  color: #ffffff;
  font-size: 0.86rem;
  padding: 10px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}
.btn-action-edit:hover {
  background-color: #4338ca;
}

.detail-routes-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-route-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
}

.detail-route-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-title);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.detail-field-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.detail-field-label {
  font-weight: 700;
  color: #475569;
  min-width: 150px;
}

.detail-field-value {
  color: #0f172a;
  word-break: break-word;
  font-weight: 500;
}

/* ==========================================================================
   REVENUE SCREEN & COUNTRY-WISE REVENUE SECTION
   ========================================================================== */
.revenue-kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

@media (min-width: 480px) {
  .revenue-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .revenue-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.kpi-card-today::before { background: #10b981; }
.kpi-card-yesterday::before { background: #f59e0b; }
.kpi-card-weekly::before { background: #4f46e5; }
.kpi-card-monthly::before { background: #8b5cf6; }

.kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.kpi-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-badge {
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 9999px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.15 !important;
  letter-spacing: 0.04em !important;
  height: fit-content !important;
}

.badge-today { background: #ecfdf5; color: #059669; }
.badge-yesterday { background: #fffbeb; color: #d97706; }
.badge-weekly { background: #eef2ff; color: #4338ca; }
.badge-monthly { background: #f5f3ff; color: #7c3aed; }

.kpi-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.15;
  margin-bottom: 4px;
}

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

/* Country Revenue Card */
.country-revenue-card {
  margin-bottom: 24px;
}

.country-rev-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 10px;
}

@media (min-width: 800px) {
  .country-rev-layout {
    grid-template-columns: 1.1fr 1fr;
  }
}

.country-map-panel {
  display: flex;
  flex-direction: column;
}

.map-container-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.map-stat-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

.country-table-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.country-card-item {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: all var(--transition-fast);
}

.country-card-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.country-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.country-label-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.country-flag-icon {
  font-size: 1.2rem;
}

.country-title-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-title);
}

.country-trips-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.country-amount-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-title);
}

.country-progress-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  display: flex;
}

.country-progress-bar {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 100%);
  transition: width 0.8s ease;
}

.country-progress-bar.bar-green {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}
.country-progress-bar.bar-amber {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}
.country-progress-bar.bar-rose {
  background: linear-gradient(90deg, #f43f5e 0%, #fb7185 100%);
}

.country-share-pct {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: right;
}

/* Custom Date Filter Card */
.revenue-filter-card {
  margin-bottom: 24px;
}

.revenue-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 4px;
}

.revenue-card-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.rev-presets-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.rev-preset-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rev-preset-btn:hover {
  background: #e2e8f0;
}

.rev-preset-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.rev-date-inputs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

@media (min-width: 500px) {
  .rev-date-inputs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.rev-filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Range Insights Section */
.revenue-insights-section {
  margin-bottom: 24px;
}

.revenue-insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 480px) {
  .revenue-insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 780px) {
  .revenue-insights-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.insight-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.insight-card.highlight-card {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.insight-card.highlight-card .insight-value {
  color: #10b981;
}

.insight-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.insight-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-title);
}

/* Contributing Routes Breakdown */
.revenue-breakdown-section {
  margin-bottom: 30px;
}

.revenue-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.rev-route-row {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast);
  cursor: pointer;
}

.rev-route-row:hover {
  transform: translateY(-2px);
  border-color: #c7d2fe;
  box-shadow: var(--shadow-card-hover);
}

.rev-route-customer {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-title);
}

.rev-route-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.rev-route-right {
  text-align: right;
  flex-shrink: 0;
}

.rev-route-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: #059669;
  background: #ecfdf5;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid #a7f3d0;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #0f172a;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-float);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  max-width: 90vw;
  text-align: center;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   PRINT STYLES - STRICTLY ACCORDING TO SPECIFICATIONS
   Clean, professional, compact, black on white, no UI, no buttons
   ========================================================================== */
.print-only {
  display: none;
}

@media print {
  /* Hide all interactive app elements */
  .no-print,
  .app-header,
  .main-content,
  .toast-notification,
  button {
    display: none !important;
  }

  /* Base page settings */
  @page {
    margin: 15mm 15mm;
    size: auto;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .print-only {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .print-document {
    width: 100%;
  }

  /* Header structure as required */
  .print-header-divider {
    border: none;
    border-top: 1.5pt solid #000000;
    margin: 8pt 0;
  }

  .print-main-title {
    font-size: 15pt;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 6pt 0;
  }

  /* Each Route Section */
  .print-route-block {
    page-break-inside: avoid;
    break-inside: avoid;
    margin-top: 14pt;
    margin-bottom: 14pt;
  }

  .print-route-divider {
    border: none;
    border-top: 1pt solid #000000;
    margin: 10pt 0 12pt 0;
  }

  .print-route-title {
    font-size: 13pt;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8pt;
  }

  .print-field-row {
    display: flex;
    margin-bottom: 4pt;
    font-size: 10.5pt;
  }

  .print-field-label {
    font-weight: bold;
    width: 175pt;
    flex-shrink: 0;
  }

  .print-field-val {
    flex-grow: 1;
    word-break: break-word;
  }

  .print-gap-section {
    margin-top: 6pt;
  }

  /* Strict exclusion: Profit must never appear on printed documents */
  .profit-field,
  .profit-badge,
  .route-profit-badge,
  .route-profit-row,
  .stat-card.profit-card,
  .our-revenue-dashboard-strip,
  #modalRouteProfit {
    display: none !important;
  }
}

/* ==========================================================================
   OUR REVENUE & PROFIT UI ENHANCEMENTS
   ========================================================================== */
.stat-card.profit-card {
  border: 1px solid #a7f3d0;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card.profit-card:hover {
  border-color: #34d399;
  box-shadow: 0 6px 16px -2px rgba(16, 185, 129, 0.12);
  transform: translateY(-2px);
}

.icon-emerald {
  background: #d1fae5;
  color: #059669;
}

.route-profit-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
}

.route-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.route-status-chip.completed {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.route-status-chip.active {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* 12-Hour Pickup Time AM/PM Input Group */
.pickup-time-input-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.route-select-pickup-ampm {
  width: 78px;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--color-primary);
  background: #f8fafc;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 10px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.route-select-pickup-ampm:focus {
  outline: none;
  border-color: var(--border-focus);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* Dashboard Section Headers */
.dash-section-header {
  margin-top: 24px;
  margin-bottom: 12px;
}

.dash-section-header:first-of-type {
  margin-top: 4px;
}

/* ==========================================================================
   APP MODAL DIALOGS (Explicit styles to guarantee visibility, backdrop & positioning)
   ========================================================================== */
.app-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  overflow-y: auto !important;
}

.app-modal-overlay.hidden {
  display: none !important;
}

.modal-dialog-box {
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid #e2e8f0 !important;
  width: 100% !important;
  max-height: 90vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
  z-index: 100000 !important;
  animation: modalPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.modal-dialog-header {
  flex-shrink: 0 !important;
}

.modal-dialog-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.modal-dialog-footer {
  flex-shrink: 0 !important;
}

.modal-dialog-box.max-w-md {
  max-width: 28rem !important; /* 448px */
}

.modal-dialog-box.max-w-2xl {
  max-width: 42rem !important; /* 672px */
}

@keyframes modalPopIn {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==========================================================================
   SMART REMINDERS, ACTION CENTER & NOTIFICATION BELL
   ========================================================================== */
.btn-notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-notification-bell:hover {
  background: #f8fafc;
  color: #4f46e5;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-notification-bell:active {
  transform: scale(0.96);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Slide-out Drawer Backdrop */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  z-index: 99998;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.hidden {
  display: none !important;
}

/* Slide-out Drawer Panel */
.notification-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  flex-shrink: 0;
}

.drawer-tabs-row {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  flex-shrink: 0;
}

.drawer-tab-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.drawer-tab-btn:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.drawer-tab-btn.active {
  background: #4f46e5;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.25);
}

.drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

/* Reminder Card inside Drawer */
.reminder-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  position: relative;
}

.reminder-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.reminder-card.urgent {
  border-left: 4px solid #ef4444;
  background: #fffafa;
}

.reminder-card.today {
  border-left: 4px solid #f59e0b;
}

.reminder-card.upcoming {
  border-left: 4px solid #3b82f6;
}

.reminder-card.custom {
  border-left: 4px solid #8b5cf6;
}

.reminder-card.custom.overdue {
  border-left: 4px solid #ef4444;
  background: #fffafa;
}

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

.reminder-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.reminder-meta {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.reminder-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

/* Dashboard Action Center Widget (Modern SaaS Design) */
.dashboard-action-center {
  margin-bottom: 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  padding: 18px 22px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s ease;
}

.action-center-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.action-center-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.action-center-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.action-center-badge {
  background: #fef2f2;
  color: #dc2626;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #fee2e2;
}

.action-center-link {
  font-size: 12px;
  font-weight: 700;
  color: #4f46e5;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.action-center-link:hover {
  color: #3730a3;
  text-decoration: underline;
}

.action-center-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-item-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s ease;
}

.action-item-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.action-item-card.urgent-overdue {
  border-left: 4px solid #ef4444;
  background: #fffafa;
}

.action-item-card.urgent-profit {
  border-left: 4px solid #f59e0b;
  background: #fffdf7;
}

.action-item-card.today-trip {
  border-left: 4px solid #4f46e5;
  background: #fafaff;
}

.action-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.action-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-item-desc {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.action-item-btn {
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.action-item-btn.btn-profit {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}
.action-item-btn.btn-profit:hover {
  background: #fde68a;
  color: #78350f;
}

.action-item-btn.btn-complete {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
}
.action-item-btn.btn-complete:hover {
  background: #059669;
}

.action-item-btn.btn-whatsapp {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.action-item-btn.btn-whatsapp:hover {
  background: #d1fae5;
}

/* ==========================================================================
   EXCEL / CSV CUSTOM CHECKLIST MODAL
   ========================================================================== */
.excel-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.checkbox-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.checkbox-card.selected {
  border-color: #6366f1;
  background: #eef2ff;
}

.checkbox-card input[type="checkbox"] {
  accent-color: #4f46e5;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-card span {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}

.export-selection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-top: 12px;
}

/* ==========================================================================
   CUSTOMER CRM PROFILE MODAL
   ========================================================================== */
.customer-crm-link {
  color: #1e293b;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease;
  text-decoration: underline dotted #94a3b8;
  text-underline-offset: 3px;
}

.customer-crm-link:hover {
  color: #4f46e5;
  text-decoration-color: #4f46e5;
}

.crm-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.crm-stat-val {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.crm-stat-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.crm-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.crm-history-table th {
  background: #f8fafc;
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}

.crm-history-table td {
  padding: 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

/* ==========================================================================
   BOOKING VOUCHER & INVOICE PRINT STYLES
   ========================================================================== */
.voucher-paper {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.voucher-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.voucher-brand-title {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.voucher-brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.voucher-ref-box {
  text-align: right;
}

.voucher-ref-num {
  font-size: 15px;
  font-weight: 800;
  color: #4f46e5;
}

.voucher-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.voucher-table th {
  background: #f1f5f9;
  color: #0f172a;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid #cbd5e1;
}

.voucher-table td {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  font-size: 12px;
}

.voucher-totals-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}







/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE SYSTEM (Mobile & Tablet)
   ========================================================================== */

/* 1. Global Viewport & Container Fixes */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  .main-content {
    padding: 16px 12px 80px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }

  /* Header adjustments */
  .app-header {
    padding: 8px 12px !important;
    overflow-x: hidden;
  }
  .header-container {
    padding: 0 !important;
    gap: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .brand-group {
    gap: 8px !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
    order: 1 !important;
  }
  .brand-logo {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }
  .brand-logo svg {
    width: 18px !important;
    height: 18px !important;
  }
  .brand-text {
    min-width: 0 !important;
  }
  .brand-title {
    font-size: 0.95rem !important;
    letter-spacing: -0.01em !important;
    line-height: 1.15;
    white-space: nowrap;
  }
  .header-controls {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    order: 2 !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 6px !important;
    flex-shrink: 0 !important;
  }
  .btn-notification-bell {
    width: 36px !important;
    height: 36px !important;
    padding: 6px !important;
    flex-shrink: 0 !important;
  }

  /* Compact Clerk user profile on mobile & tablets */
  #clerkUserButtonMount,
  #clerkUserButtonTarget,
  .cl-userButton-root,
  .cl-userButtonTrigger {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
  .cl-avatarBox,
  .cl-userButtonAvatarBox {
    display: flex !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
  }
  .cl-userButtonAvatarImage {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  /* Hide ONLY the user name text on mobile & tablets, keep avatar visible */
  .cl-userButtonOuterIdentifier,
  #clerkUserButtonMount .cl-userButtonOuterIdentifier,
  #clerkUserButtonTarget .cl-userButtonOuterIdentifier {
    display: none !important;
  }
  .cl-userButtonTrigger {
    padding: 0 !important;
    gap: 0 !important;
    background: transparent !important;
    border: none !important;
  }

  /* Screen Header Row */
  .screen-header-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
  }
  .screen-header-row > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .screen-header-row > div:last-child {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .screen-header-row > div:last-child .btn {
    flex: 1 1 auto !important;
    min-width: 130px !important;
    justify-content: center !important;
    padding: 9px 12px !important;
    font-size: 0.8rem !important;
  }
  .screen-title {
    font-size: 1.35rem !important;
  }

  /* Dashboard Greeting & Badges */
  .dash-greeting-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
  }
  .dash-greeting-title {
    font-size: 1.35rem !important;
  }
  .dash-greeting-subtitle {
    font-size: 0.78rem !important;
  }
  .dash-badges-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .dash-date-badge {
    padding: 5px 10px !important;
    font-size: 0.72rem !important;
  }

  /* Dashboard Action Center */
  .dashboard-action-center {
    padding: 14px 14px !important;
    border-radius: 14px !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
  }
  .action-center-header {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .action-center-title {
    font-size: 13px !important;
  }
  .action-center-link {
    font-size: 11px !important;
  }
  .action-item-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }
  .action-item-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  /* Stats Metric Cards (2 Columns on mobile for clean glanceability) */
  .stats-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
  }
  .stat-card {
    padding: 12px 12px !important;
    border-radius: 12px !important;
  }
  .stat-icon-circle {
    width: 30px !important;
    height: 30px !important;
  }
  .stat-icon-circle svg {
    width: 15px !important;
    height: 15px !important;
  }
  .stat-badge {
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
  }
  .stat-val {
    font-size: 1.25rem !important;
    margin-bottom: 2px !important;
  }
  .stat-label {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
  }

  /* Quick Actions */
  .dash-quick-actions {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
  }
  .dash-cta-btn {
    padding: 14px 16px !important;
  }
  .cta-title {
    font-size: 0.95rem !important;
  }
  .cta-subtitle {
    font-size: 0.75rem !important;
  }

  /* Dashboard 2-Column Section */
  .dash-cards-row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .schedule-tiles-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .schedule-tiles-grid > div:last-child {
    grid-column: span 2;
  }

  /* Route Cards */
  .route-card {
    border-radius: 14px !important;
  }
  .route-header {
    padding: 12px 14px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .route-title {
    font-size: 0.95rem !important;
  }
  .route-body {
    padding: 14px 12px !important;
    gap: 12px !important;
  }
  .field-group-grid.three-col,
  .field-group-grid.two-col,
  .field-group-grid.four-col {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Saved Bookings */
  .filter-pills-row {
    padding-bottom: 6px !important;
    margin-bottom: 12px !important;
    scrollbar-width: none;
  }
  .filter-pills-row::-webkit-scrollbar {
    display: none;
  }
  .filter-pill {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
    flex-shrink: 0;
  }
  #savedStatusFilterRow {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    padding-bottom: 6px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #savedStatusFilterRow::-webkit-scrollbar {
    display: none;
  }
  .status-pill-btn {
    white-space: nowrap !important;
    flex-shrink: 0;
  }
  .saved-booking-item {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px 14px !important;
    border-radius: 14px !important;
  }
  .saved-booking-item > div:last-child {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 10px !important;
    border-top: 1px solid #f1f5f9 !important;
  }

  /* Detail Screen Actions */
  .record-action-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }
  .record-action-bar .btn {
    padding: 10px 8px !important;
    font-size: 0.78rem !important;
    min-height: 42px !important;
    justify-content: center !important;
  }

  /* Modals & Dialogs */
  .app-modal-overlay {
    padding: 8px !important;
  }
  .modal-dialog-box {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 94vh !important;
    border-radius: 14px !important;
  }
  .excel-checklist-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* Notification Drawer */
  .notification-drawer {
    width: 100% !important;
    max-width: 100% !important;
  }
  .drawer-header {
    padding: 14px 16px !important;
  }
  .drawer-tabs-row {
    padding: 8px 12px !important;
  }
}

/* Extra small devices (<= 390px, e.g. iPhone SE, smaller Androids) */
@media (max-width: 390px) {
  .brand-title {
    font-size: 0.88rem !important;
  }
  .stats-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .schedule-tiles-grid {
    grid-template-columns: 1fr !important;
  }
  .schedule-tiles-grid > div:last-child {
    grid-column: span 1;
  }
  .record-action-bar {
    grid-template-columns: 1fr !important;
  }
  .excel-checklist-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   ROUTE SELECTION MODAL FOR INVOICE (Refined Styling, Consistent Theme, Scrollable Body)
   ========================================================================== */
#modalSelectInvoiceRoutes.app-modal-overlay {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
}

#modalSelectInvoiceRoutes.app-modal-overlay.hidden {
  display: none !important;
}

#modalSelectInvoiceRoutes .modal-dialog-box,
.select-routes-modal-box {
  max-width: 620px !important;
  width: 95% !important;
  max-height: 86vh !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.8) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
  z-index: 1000 !important;
}

/* HEADER */
.select-routes-header {
  flex-shrink: 0 !important;
  padding: 16px 22px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

.select-routes-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

.select-routes-icon-badge {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background: #ecfdf5 !important;
  color: #018738 !important;
  border: 1px solid #a7f3d0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.select-routes-icon-badge svg {
  width: 20px !important;
  height: 20px !important;
}

.select-routes-title-group {
  min-width: 0 !important;
}

.select-routes-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}

.select-routes-subtitle {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 12px !important;
  color: #64748b !important;
  margin: 2px 0 0 0 !important;
}

.select-routes-btn-close {
  background: transparent !important;
  border: none !important;
  padding: 6px !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}

.select-routes-btn-close:hover {
  color: #1e293b !important;
  background: #f1f5f9 !important;
}

.select-routes-btn-close svg {
  width: 20px !important;
  height: 20px !important;
}

/* SUBBAR */
.select-routes-subbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 0 12px 0 !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.select-routes-subbar-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #475569 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
}

.select-routes-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12px !important;
}

.select-routes-action-btn {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  color: #018738 !important;
  transition: color 0.15s !important;
}

.select-routes-action-btn:hover {
  color: #016329 !important;
  text-decoration: underline !important;
}

.select-routes-action-btn.deselect {
  color: #64748b !important;
  font-weight: 600 !important;
}

.select-routes-action-btn.deselect:hover {
  color: #334155 !important;
}

.subbar-sep {
  color: #cbd5e1 !important;
}

/* BODY - SCROLLABLE */
.select-routes-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: calc(86vh - 135px) !important;
  overflow-y: auto !important;
  padding: 16px 22px 18px 22px !important;
  background: #f8fafc !important;
  -webkit-overflow-scrolling: touch !important;
}

.select-routes-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

/* ROUTE CARD ITEM */
.select-route-card,
.invoice-route-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
  box-sizing: border-box !important;
}

.select-route-card:hover,
.invoice-route-item:hover {
  border-color: #018738 !important;
  background: #f0fdf4 !important;
  box-shadow: 0 2px 8px -2px rgba(1, 135, 56, 0.15) !important;
}

.select-route-card.is-selected,
.invoice-route-item:has(.invoice-route-cb:checked),
.select-route-card:has(.select-route-cb:checked) {
  border-color: #018738 !important;
  background: #f0fdf4 !important;
}

.select-route-cb,
.invoice-route-cb {
  width: 18px !important;
  height: 18px !important;
  margin-top: 2px !important;
  accent-color: #018738 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.select-route-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.select-route-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.select-route-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  word-break: break-word !important;
  flex: 1 1 auto !important;
}

.select-route-price {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #018738 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-align: right !important;
  min-width: max-content !important;
}

.select-route-meta {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 11.5px !important;
  color: #64748b !important;
  margin-top: 4px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
}

.meta-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.meta-icon {
  font-size: 12px !important;
}

/* FOOTER */
.select-routes-footer {
  flex-shrink: 0 !important;
  padding: 16px 22px !important;
  background: #ffffff !important;
  border-top: 1px solid #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  box-shadow: 0 -4px 12px -2px rgba(15, 23, 42, 0.03) !important;
}

.select-routes-summary {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #475569 !important;
}

.select-routes-summary strong {
  color: #018738 !important;
  font-weight: 800 !important;
}

.select-routes-footer-btns {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.btn-select-routes-cancel {
  padding: 9px 18px !important;
  border-radius: 8px !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.btn-select-routes-cancel:hover {
  background: #f8fafc !important;
  color: #1e293b !important;
  border-color: #94a3b8 !important;
}

.btn-select-routes-generate {
  padding: 9px 20px !important;
  border-radius: 8px !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  background: #018738 !important;
  border: 1px solid #018738 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 2px 6px rgba(1, 135, 56, 0.25) !important;
  transition: all 0.15s ease !important;
}

.btn-select-routes-generate:hover {
  background: #01702e !important;
  border-color: #01702e !important;
  box-shadow: 0 4px 10px rgba(1, 135, 56, 0.35) !important;
}

@media (max-width: 640px) {
  #modalSelectInvoiceRoutes .modal-dialog-box,
  .select-routes-modal-box {
    width: 96% !important;
    max-height: 90vh !important;
    margin: 10px auto !important;
  }
  .select-routes-header {
    padding: 12px 16px !important;
  }
  .select-routes-body {
    padding: 12px 14px !important;
  }
  .select-routes-footer {
    padding: 12px 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .select-routes-footer-btns {
    justify-content: flex-end !important;
  }
  .select-route-card,
  .invoice-route-item {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
}

/* ==========================================================================
   OFFICIAL INVOICE A4 CUSTOM VECTOR LETTERHEAD SYSTEM
   (Handcrafted pure HTML/CSS/SVG letterhead design matching brand template)
   ========================================================================== */

/* 1. Modal Dialog & Paper Container */
.voucher-modal-dialog {
  max-width: 900px !important;
  width: 95% !important;
  height: 92vh !important;
  max-height: 92vh !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.45) !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

/* Modal Header */
.voucher-modal-header {
  padding: 14px 22px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

.voucher-header-info {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

.voucher-header-badge {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background: #ecfdf5 !important;
  color: #018738 !important;
  border: 1px solid #a7f3d0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.voucher-header-badge svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
}

.voucher-header-text {
  min-width: 0 !important;
}

.voucher-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.voucher-subtitle {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  margin-top: 2px !important;
}

.voucher-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

.btn-voucher-print-top {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  background: #018738 !important;
  color: #ffffff !important;
  border: 1px solid #018738 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 2px 6px rgba(1, 135, 56, 0.25) !important;
}

.btn-voucher-print-top:hover {
  background: #01702e !important;
  border-color: #01702e !important;
  box-shadow: 0 4px 10px rgba(1, 135, 56, 0.35) !important;
}

.btn-voucher-print-top svg {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.btn-voucher-close-x {
  width: 34px !important;
  height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.btn-voucher-close-x:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.btn-voucher-close-x svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}

/* Modal Body */
.voucher-modal-body,
#modalBookingVoucher .modal-dialog-body {
  background: #e2e8f0 !important;
  padding: 20px 16px !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: block !important;
  -webkit-overflow-scrolling: touch !important;
}

.voucher-modal-body::-webkit-scrollbar,
#modalBookingVoucher .modal-dialog-body::-webkit-scrollbar {
  width: 8px !important;
}

.voucher-modal-body::-webkit-scrollbar-track,
#modalBookingVoucher .modal-dialog-body::-webkit-scrollbar-track {
  background: #cbd5e1 !important;
  border-radius: 4px !important;
}

.voucher-modal-body::-webkit-scrollbar-thumb,
#modalBookingVoucher .modal-dialog-body::-webkit-scrollbar-thumb {
  background: #018738 !important;
  border-radius: 4px !important;
}

.voucher-modal-body::-webkit-scrollbar-thumb:hover,
#modalBookingVoucher .modal-dialog-body::-webkit-scrollbar-thumb:hover {
  background: #016329 !important;
}

/* Modal Footer */
.voucher-modal-footer,
#modalBookingVoucher .modal-dialog-footer {
  padding: 14px 22px !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  box-shadow: 0 -4px 12px -2px rgba(15, 23, 42, 0.03) !important;
}

.btn-voucher-whatsapp {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  background: #25D366 !important;
  color: #ffffff !important;
  border: 1px solid #25D366 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25) !important;
}

.btn-voucher-whatsapp:hover {
  background: #1da851 !important;
  border-color: #1da851 !important;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35) !important;
}

.btn-voucher-whatsapp svg {
  width: 17px !important;
  height: 17px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.voucher-footer-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.btn-voucher-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.btn-voucher-close:hover {
  background: #f8fafc !important;
  color: #1e293b !important;
  border-color: #94a3b8 !important;
}

.btn-voucher-print-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
  background: #018738 !important;
  color: #ffffff !important;
  border: 1px solid #018738 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 2px 6px rgba(1, 135, 56, 0.25) !important;
}

.btn-voucher-print-action:hover {
  background: #01702e !important;
  border-color: #01702e !important;
  box-shadow: 0 4px 10px rgba(1, 135, 56, 0.35) !important;
}

.btn-voucher-print-action svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

/* 2. Pure A4 Sheet (Standard 210mm x 297mm) */
.voucher-paper {
  width: 210mm !important;
  max-width: 100% !important;
  height: 297mm !important;
  min-height: 297mm !important;
  max-height: 297mm !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border-radius: 4px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16) !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  background-image: none !important;
  position: relative !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.lh-a4-sheet {
  width: 100%;
  height: 100%;
  max-height: 297mm;
  position: relative;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

/* 1. TOP-LEFT CORNER SWOOP */
.lh-top-corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 145px;
  height: 96px;
  pointer-events: none;
  z-index: 10;
}

.lh-top-corner svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 2. HEADER BAR */
.lh-header {
  position: relative;
  z-index: 20;
  min-height: 180px;
  display: flex;
  align-items: flex-start;
  padding-top: 14px;
  padding-left: 20px;
  padding-right: 18px;
  box-sizing: border-box;
}

/* Brand Block: Exact size and placement from Reference with Justified Tagline */
.lh-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 420px;
  flex-shrink: 0;
  margin-top: 14px;
}

.lh-logo-img {
  width: 420px;
  height: 120px;
  object-fit: contain;
  object-position: left center;
  display: block;
  background: transparent !important;
}

/* Divider & Contacts */
.lh-contact-wrapper {
  display: flex;
  align-items: flex-start;
  flex: 1;
}

.lh-divider-gold {
  width: 2px;
  height: 94px;
  background: #c29929;
  margin-left: 14px;
  margin-right: 22px;
  margin-top: 26px;
  flex-shrink: 0;
}

.lh-contact-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  margin-top: 26px;
  flex: 1;
}

.lh-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.lh-contact-row:hover {
  transform: translateX(2px);
}

.lh-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lh-contact-row:hover .lh-icon-badge {
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}

.lh-icon-badge.wa {
  background: #018738 !important;
}

.lh-icon-badge.globe {
  background: #004d25 !important;
}

.lh-icon-badge svg {
  width: 20px;
  height: 20px;
  display: block;
}

.lh-contact-text {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #0b2f1a;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.lh-contact-row:hover .lh-contact-text {
  color: #018738;
}

.lh-contact-text.website {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #0b2f1a;
}

/* 3. HORIZONTAL DIVIDER BAR BELOW HEADER */
.lh-header-rule {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 180px;
  height: 3.5px;
  background: linear-gradient(to right, #015c2b 0%, #015c2b 39%, #d4a347 39%, #d4a347 57%, #015c2b 57%, #015c2b 100%);
  border-radius: 2px;
  z-index: 20;
}

/* 4. MAIN BODY CANVAS */
.lh-body-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  z-index: 5;
  padding: 18px 24px 16px 24px !important;
  box-sizing: border-box;
}

/* BILL TO SECTION - Exactly matching Reference */
.invoice-bill-to-card {
  width: 100%;
  border: 1.5px solid #111827;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bill-to-header {
  background: #111827;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
}

.bill-to-badge {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #018738;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bill-to-badge svg {
  width: 15px;
  height: 15px;
  color: #ffffff;
  display: block;
}

.bill-to-title {
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1;
}

.bill-to-body {
  padding: 16px 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.bill-to-field {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bill-to-field-label {
  font-weight: 800;
  color: #111827;
  min-width: 60px;
}

.bill-to-field-val {
  font-weight: 500;
  color: #1e293b;
}

.bill-to-field-val.name {
  font-weight: 800;
  font-size: 18px;
  color: #0f172a;
}

/* DETAILS SECTION - Themed with Letterhead Green & Gold */
.invoice-details-card {
  width: 100%;
  border: 1.5px solid #111827;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-top: 18px;
}

.details-header {
  background: #111827;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
}

.details-badge {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #018738;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.details-badge svg {
  width: 15px;
  height: 15px;
  color: #ffffff;
  display: block;
}

.details-title {
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1;
}

.details-body {
  padding: 16px 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.details-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  color: #1e293b;
}

.details-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #018738;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.details-icon-wrap svg {
  width: 16px;
  height: 16px;
  display: block;
}

.details-icon-wrap.luggage {
  background: #fef3c7;
  color: #d97706;
  border-color: #fde68a;
}

.details-label {
  font-weight: 700;
  color: #111827;
  min-width: 95px;
}

.details-val {
  font-weight: 500;
  color: #334155;
}

/* ROUTES TABLE SECTION - Exactly matching Reference */
.invoice-routes-card {
  width: 100%;
  margin-top: 18px;
  box-sizing: border-box;
}

.invoice-routes-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.invoice-routes-table thead tr th {
  background: #111827 !important;
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 10px 14px;
  line-height: 1.2;
  box-sizing: border-box;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.invoice-routes-table thead tr th:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  padding-left: 18px;
  text-align: left;
  width: 58%;
}

.invoice-routes-table thead tr th.th-qty {
  text-align: center;
  width: 10%;
}

.invoice-routes-table thead tr th.th-unit-price {
  text-align: right;
  width: 16%;
  padding-right: 20px;
}

.invoice-routes-table thead tr th:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  padding-right: 18px;
  text-align: right;
  width: 16%;
}

.invoice-routes-table tbody tr.route-item-row td {
  padding: 14px 14px;
  vertical-align: top;
  border-bottom: 1px solid #e5e7eb;
  box-sizing: border-box;
  background: transparent;
}

.invoice-routes-table td.td-routes {
  padding-left: 18px;
}

.invoice-routes-table td.td-qty {
  text-align: center;
  font-size: 14px;
  color: #334155;
  font-weight: 500;
}

.invoice-routes-table td.td-unit-price {
  text-align: right;
  font-size: 14px;
  color: #334155;
  font-weight: 500;
  padding-right: 20px;
  white-space: nowrap;
}

.invoice-routes-table td.td-amount {
  text-align: right;
  font-size: 14.5px;
  color: #111827;
  font-weight: 800;
  padding-right: 18px;
  white-space: nowrap;
}

.route-item-title {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 4px;
}

.route-arrow {
  font-weight: 800;
  display: inline-block;
  margin: 0 4px;
  color: #111827;
}

.route-item-meta {
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.4;
}

.route-item-note {
  font-size: 12.5px;
  font-style: italic;
  color: #018738;
  margin-top: 4px;
  line-height: 1.4;
}

/* SUMMARY SECTION (Subtotal, Tax, Total Due) - Exactly matching Picture 1 */
.invoice-summary-card {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
}

.summary-table {
  width: 320px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
}

.summary-label {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #1f2937;
  text-transform: uppercase;
}

.summary-value {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

.summary-divider-line {
  width: 100%;
  height: 2px;
  background: #111827;
  margin: 4px 0 0 0;
}

.summary-total-due-box {
  background: #018738 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  box-sizing: border-box;
  border-radius: 4px;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.total-due-label {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #ffffff !important;
  text-transform: uppercase;
}

.total-due-value {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff !important;
  white-space: nowrap;
}

/* NOTES SECTION - Consistent with Booking and Details badges */
.invoice-notes-card {
  width: 100%;
  margin-top: 14px;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
}

.notes-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notes-badge {
  width: 25px;
  height: 25px;
  border-radius: 50% !important;
  background: #018738 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.notes-badge svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  color: #ffffff;
  display: block;
}

.notes-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #111827;
  text-transform: uppercase;
  line-height: 1;
}

.notes-divider-line {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.notes-body {
  padding-top: 6px;
}

.notes-text {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}

/* CLICKABLE DARK LETTERHEAD FOOTER BAR - Exactly matching Picture 1 */
.invoice-dark-footer-bar {
  width: 100%;
  background: #0f172a !important;
  border-radius: 6px;
  padding: 10px 18px;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  flex-shrink: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.footer-bar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
  transition: opacity 0.15s ease;
}

.footer-bar-link:hover {
  opacity: 0.85;
}

.footer-bar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-bar-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.footer-bar-icon.phone svg {
  fill: #ef4444;
}

.footer-bar-icon.email svg {
  fill: #cbd5e1;
}

.footer-bar-icon.web svg {
  stroke: #38bdf8;
}

.footer-bar-text {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.footer-bar-sep {
  color: #475569;
  font-size: 14px;
  user-select: none;
}

/* 5. WATERMARK IN LOWER RIGHT */
.lh-watermark {
  position: absolute;
  right: 18px;
  bottom: 60px;
  width: 420px;
  height: auto;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   DYNAMIC INVOICE RESPONSIVENESS: 1 ROUTE
   ========================================================================== */
.routes-count-1 .lh-body-canvas {
  padding: 20px 24px 22px 24px !important;
}
.routes-count-1 .bill-to-header {
  padding: 10px 18px;
}
.routes-count-1 .bill-to-body {
  padding: 18px 20px;
  gap: 10px;
}
.routes-count-1 .bill-to-field {
  font-size: 15px;
}
.routes-count-1 .bill-to-field-val.name {
  font-size: 18px;
}
.routes-count-1 .invoice-details-card {
  margin-top: 18px;
}
.routes-count-1 .details-header {
  padding: 10px 18px;
}
.routes-count-1 .details-body {
  padding: 18px 20px;
  gap: 12px;
}
.routes-count-1 .details-row {
  font-size: 15px;
  gap: 12px;
}
.routes-count-1 .invoice-routes-card {
  margin-top: 28px;
}
.routes-count-1 .invoice-routes-table thead tr th {
  padding: 13px 16px;
  font-size: 14px;
}
.routes-count-1 .invoice-routes-table tbody tr.route-item-row td {
  padding: 34px 16px;
}
.routes-count-1 .route-item-title {
  font-size: 15px;
  margin-bottom: 7px;
  line-height: 1.45;
}
.routes-count-1 .route-item-meta {
  font-size: 13.5px;
  line-height: 1.45;
}
.routes-count-1 .route-item-note {
  font-size: 13px;
  margin-top: 7px;
  line-height: 1.45;
}
.routes-count-1 .invoice-summary-card {
  margin-top: 28px;
}
.routes-count-1 .summary-table {
  width: 320px;
}
.routes-count-1 .summary-row {
  padding: 4px 6px;
}
.routes-count-1 .summary-label {
  font-size: 13.5px;
}
.routes-count-1 .summary-value {
  font-size: 14.5px;
}
.routes-count-1 .summary-total-due-box {
  padding: 12px 18px;
}
.routes-count-1 .total-due-label {
  font-size: 15px;
}
.routes-count-1 .total-due-value {
  font-size: 21px;
}
.routes-count-1 .invoice-notes-card {
  margin-top: 28px;
}
.routes-count-1 .notes-title {
  font-size: 14px;
}
.routes-count-1 .notes-badge {
  width: 25px;
  height: 25px;
}
.routes-count-1 .notes-badge svg {
  width: 15px;
  height: 15px;
}
.routes-count-1 .notes-body {
  padding-top: 10px;
}
.routes-count-1 .notes-text {
  font-size: 13.5px;
  line-height: 1.6;
}
.routes-count-1 .invoice-dark-footer-bar {
  padding: 11px 20px;
}
.routes-count-1 .footer-bar-text {
  font-size: 13px;
}
.routes-count-1 .lh-watermark {
  width: 420px;
  bottom: 65px;
}

/* ==========================================================================
   DYNAMIC INVOICE RESPONSIVENESS: 2 ROUTES
   ========================================================================== */
.routes-count-2 .lh-body-canvas {
  padding: 18px 24px 22px 24px !important;
}
.routes-count-2 .bill-to-header {
  padding: 9px 16px;
}
.routes-count-2 .bill-to-body {
  padding: 14px 18px;
  gap: 8px;
}
.routes-count-2 .bill-to-field {
  font-size: 14.5px;
}
.routes-count-2 .bill-to-field-val.name {
  font-size: 17px;
}
.routes-count-2 .invoice-details-card {
  margin-top: 15px;
}
.routes-count-2 .details-header {
  padding: 9px 16px;
}
.routes-count-2 .details-body {
  padding: 14px 18px;
  gap: 10px;
}
.routes-count-2 .details-row {
  font-size: 14.5px;
  gap: 10px;
}
.routes-count-2 .invoice-routes-card {
  margin-top: 22px;
}
.routes-count-2 .invoice-routes-table thead tr th {
  padding: 11px 14px;
  font-size: 13.5px;
}
.routes-count-2 .invoice-routes-table tbody tr.route-item-row td {
  padding: 20px 14px;
}
.routes-count-2 .route-item-title {
  font-size: 14px;
  margin-bottom: 5px;
  line-height: 1.4;
}
.routes-count-2 .route-item-meta {
  font-size: 12.5px;
  line-height: 1.4;
}
.routes-count-2 .route-item-note {
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.4;
}
.routes-count-2 .invoice-summary-card {
  margin-top: 20px;
}
.routes-count-2 .summary-table {
  width: 310px;
}
.routes-count-2 .summary-row {
  padding: 3px 5px;
}
.routes-count-2 .summary-label {
  font-size: 13px;
}
.routes-count-2 .summary-value {
  font-size: 13.5px;
}
.routes-count-2 .summary-total-due-box {
  padding: 10px 16px;
}
.routes-count-2 .total-due-label {
  font-size: 14.5px;
}
.routes-count-2 .total-due-value {
  font-size: 19px;
}
.routes-count-2 .invoice-notes-card {
  margin-top: 22px;
}
.routes-count-2 .notes-title {
  font-size: 13px;
}
.routes-count-2 .notes-badge {
  width: 24px;
  height: 24px;
}
.routes-count-2 .notes-badge svg {
  width: 14px;
  height: 14px;
}
.routes-count-2 .notes-body {
  padding-top: 7px;
}
.routes-count-2 .notes-text {
  font-size: 13px;
  line-height: 1.5;
}
.routes-count-2 .invoice-dark-footer-bar {
  padding: 10px 18px;
}
.routes-count-2 .footer-bar-text {
  font-size: 12.5px;
}
.routes-count-2 .lh-watermark {
  width: 390px;
  bottom: 60px;
}

/* ==========================================================================
   DYNAMIC INVOICE RESPONSIVENESS: 3 ROUTES
   ========================================================================== */
.routes-count-3 .lh-body-canvas {
  padding: 16px 24px 22px 24px !important;
}
.routes-count-3 .bill-to-header {
  padding: 8px 15px;
}
.routes-count-3 .bill-to-title {
  font-size: 14px;
}
.routes-count-3 .bill-to-body {
  padding: 11px 16px;
  gap: 6px;
}
.routes-count-3 .bill-to-field {
  font-size: 13.5px;
}
.routes-count-3 .bill-to-field-val.name {
  font-size: 16px;
}
.routes-count-3 .invoice-details-card {
  margin-top: 12px;
}
.routes-count-3 .details-header {
  padding: 8px 15px;
}
.routes-count-3 .details-title {
  font-size: 14px;
}
.routes-count-3 .details-body {
  padding: 11px 16px;
  gap: 7px;
}
.routes-count-3 .details-row {
  font-size: 13.5px;
  gap: 10px;
}
.routes-count-3 .details-icon-wrap {
  width: 24px;
  height: 24px;
}
.routes-count-3 .details-icon-wrap svg {
  width: 14px;
  height: 14px;
}
.routes-count-3 .invoice-routes-card {
  margin-top: 16px;
}
.routes-count-3 .invoice-routes-table thead tr th {
  padding: 9px 12px;
  font-size: 13px;
}
.routes-count-3 .invoice-routes-table tbody tr.route-item-row td {
  padding: 13px 12px;
}
.routes-count-3 .route-item-title {
  font-size: 13.5px;
  margin-bottom: 3px;
  line-height: 1.35;
}
.routes-count-3 .route-item-meta {
  font-size: 12px;
  line-height: 1.35;
}
.routes-count-3 .route-item-note {
  font-size: 11.5px;
  margin-top: 3px;
  line-height: 1.35;
}
.routes-count-3 .invoice-summary-card {
  margin-top: 14px;
}
.routes-count-3 .summary-table {
  width: 305px;
}
.routes-count-3 .summary-row {
  padding: 2.5px 4px;
}
.routes-count-3 .summary-label {
  font-size: 12.5px;
}
.routes-count-3 .summary-value {
  font-size: 13px;
}
.routes-count-3 .summary-total-due-box {
  padding: 9px 14px;
}
.routes-count-3 .total-due-label {
  font-size: 14px;
}
.routes-count-3 .total-due-value {
  font-size: 18px;
}
.routes-count-3 .invoice-notes-card {
  margin-top: 15px;
}
.routes-count-3 .notes-title {
  font-size: 12.5px;
}
.routes-count-3 .notes-badge {
  width: 22px;
  height: 22px;
}
.routes-count-3 .notes-badge svg {
  width: 13px;
  height: 13px;
}
.routes-count-3 .notes-body {
  padding-top: 5px;
}
.routes-count-3 .notes-text {
  font-size: 12.5px;
  line-height: 1.45;
}
.routes-count-3 .invoice-dark-footer-bar {
  padding: 9px 16px;
}
.routes-count-3 .footer-bar-text {
  font-size: 12.5px;
}
.routes-count-3 .lh-watermark {
  width: 360px;
  bottom: 50px;
}

/* ==========================================================================
   DYNAMIC INVOICE RESPONSIVENESS: 4 ROUTES
   ========================================================================== */
.routes-count-4 .lh-body-canvas {
  padding: 14px 22px 22px 22px !important;
}
.routes-count-4 .bill-to-header {
  padding: 7px 14px;
}
.routes-count-4 .bill-to-title {
  font-size: 13px;
}
.routes-count-4 .bill-to-badge {
  width: 22px;
  height: 22px;
}
.routes-count-4 .bill-to-badge svg {
  width: 13px;
  height: 13px;
}
.routes-count-4 .bill-to-body {
  padding: 8px 14px;
  gap: 4px;
}
.routes-count-4 .bill-to-field {
  font-size: 13px;
}
.routes-count-4 .bill-to-field-val.name {
  font-size: 15px;
}
.routes-count-4 .invoice-details-card {
  margin-top: 9px;
}
.routes-count-4 .details-header {
  padding: 7px 14px;
}
.routes-count-4 .details-title {
  font-size: 13px;
}
.routes-count-4 .details-badge {
  width: 22px;
  height: 22px;
}
.routes-count-4 .details-badge svg {
  width: 13px;
  height: 13px;
}
.routes-count-4 .details-body {
  padding: 8px 14px;
  gap: 5px;
}
.routes-count-4 .details-row {
  font-size: 13px;
  gap: 9px;
}
.routes-count-4 .details-icon-wrap {
  width: 22px;
  height: 22px;
}
.routes-count-4 .details-icon-wrap svg {
  width: 12px;
  height: 12px;
}
.routes-count-4 .invoice-routes-card {
  margin-top: 12px;
}
.routes-count-4 .invoice-routes-table thead tr th {
  padding: 7px 12px;
  font-size: 12.5px;
}
.routes-count-4 .invoice-routes-table tbody tr.route-item-row td {
  padding: 9px 12px;
}
.routes-count-4 .route-item-title {
  font-size: 12.5px;
  margin-bottom: 2px;
  line-height: 1.35;
}
.routes-count-4 .route-item-meta {
  font-size: 11.5px;
  line-height: 1.35;
}
.routes-count-4 .route-item-note {
  font-size: 11px;
  margin-top: 2px;
  line-height: 1.35;
}
.routes-count-4 .invoice-summary-card {
  margin-top: 10px;
}
.routes-count-4 .summary-table {
  width: 290px;
}
.routes-count-4 .summary-row {
  padding: 2px 4px;
}
.routes-count-4 .summary-label {
  font-size: 12px;
}
.routes-count-4 .summary-value {
  font-size: 12.5px;
}
.routes-count-4 .summary-total-due-box {
  padding: 7px 12px;
}
.routes-count-4 .total-due-label {
  font-size: 13px;
}
.routes-count-4 .total-due-value {
  font-size: 16.5px;
}
.routes-count-4 .invoice-notes-card {
  margin-top: 11px;
}
.routes-count-4 .notes-title {
  font-size: 12px;
}
.routes-count-4 .notes-badge {
  width: 20px;
  height: 20px;
}
.routes-count-4 .notes-badge svg {
  width: 12px;
  height: 12px;
}
.routes-count-4 .notes-body {
  padding-top: 3px;
}
.routes-count-4 .notes-text {
  font-size: 11.5px;
  line-height: 1.35;
}
.routes-count-4 .invoice-dark-footer-bar {
  padding: 8px 16px;
  gap: 14px;
}
.routes-count-4 .footer-bar-text {
  font-size: 12px;
}
.routes-count-4 .footer-bar-icon {
  width: 16px;
  height: 16px;
}
.routes-count-4 .footer-bar-icon svg {
  width: 13px;
  height: 13px;
}
.routes-count-4 .lh-watermark {
  width: 300px;
  bottom: 40px;
}

/* ==========================================================================
   PRINT STYLES FOR CUSTOM A4 LETTERHEAD (Exact A4 Page without Margins)
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait !important;
    margin: 0 !important;
  }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    background: #ffffff !important;
  }

  body.printing-voucher {
    background: #ffffff !important;
    color: #111827 !important;
    overflow: visible !important;
    width: 210mm !important;
    height: 297mm !important;
  }

  /* Hide everything except modal */
  body.printing-voucher > *:not(#modalBookingVoucher):not(#modalVoucher) {
    display: none !important;
  }

  /* Hide modal buttons and chrome */
  body.printing-voucher .no-print,
  body.printing-voucher .modal-dialog-header,
  body.printing-voucher .modal-dialog-footer,
  body.printing-voucher #btnPrintVoucherTop,
  body.printing-voucher #btnPrintVoucherAction,
  body.printing-voucher #btnShareVoucherWhatsapp,
  body.printing-voucher #btnCloseVoucherModal,
  body.printing-voucher #btnDismissVoucherModal {
    display: none !important;
  }

  /* Flatten modal containers */
  body.printing-voucher #modalBookingVoucher,
  body.printing-voucher #modalVoucher,
  body.printing-voucher .app-modal-overlay,
  body.printing-voucher .modal-dialog-box,
  body.printing-voucher .voucher-modal-dialog,
  body.printing-voucher .modal-dialog-body {
    position: static !important;
    width: 210mm !important;
    height: 297mm !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Force exact A4 sheet background in print */
  body.printing-voucher .voucher-paper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background-color: #ffffff !important;
    background-image: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
    overflow: hidden !important;
  }

  body.printing-voucher .lh-a4-sheet {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body.printing-voucher .lh-body-canvas {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
  }

  body.printing-voucher .invoice-dark-footer-bar {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
    background-color: #0f172a !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body.printing-voucher .lh-top-corner svg path,
  body.printing-voucher .lh-divider-gold,
  body.printing-voucher .lh-header-rule,
  body.printing-voucher .lh-icon-badge,
  body.printing-voucher .summary-total-due-box,
  body.printing-voucher .notes-badge,
  body.printing-voucher .invoice-dark-footer-bar {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body.printing-voucher .summary-total-due-box {
    background-color: #018738 !important;
  }

  body.printing-voucher .notes-badge {
    background-color: #018738 !important;
  }

  body.printing-voucher .invoice-dark-footer-bar {
    background-color: #0f172a !important;
  }
}

/* ==========================================================================
   RESPONSIVE PREVIEW SYSTEM FOR INVOICE VOUCHER MODAL (Tablets & Mobile)
   ========================================================================== */

/* 1. TABLETS & SMALL LAPTOPS (iPad Mini, iPad Air, 768px - 1024px) */
@media screen and (max-width: 1024px) {
  #modalBookingVoucher.app-modal-overlay {
    padding: 12px 10px !important;
  }

  .voucher-modal-dialog {
    width: 100% !important;
    max-width: 780px !important;
    height: 94vh !important;
    max-height: 94vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .voucher-modal-body,
  #modalBookingVoucher .modal-dialog-body {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    display: block !important;
    padding: 16px 12px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .voucher-paper {
    width: 100% !important;
    max-width: 740px !important;
    height: auto !important;
    min-height: auto !important;
    aspect-ratio: unset !important;
    margin: 0 auto !important;
    overflow: visible !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  }

  .lh-a4-sheet {
    height: auto !important;
    min-height: 100% !important;
    overflow: visible !important;
  }

  .lh-brand-col {
    width: 320px !important;
  }

  .lh-logo-img {
    width: 300px !important;
    height: auto !important;
    max-height: 85px !important;
  }

  .lh-contact-text {
    font-size: 14px !important;
  }

  .lh-contact-text.website {
    font-size: 14px !important;
  }
}

/* 2. MOBILE PHONES (iPhone SE, Android, < 640px) */
@media screen and (max-width: 640px) {
  #modalBookingVoucher.app-modal-overlay {
    padding: 6px !important;
  }

  .voucher-modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    height: 96vh !important;
    max-height: 96vh !important;
    border-radius: 12px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .voucher-modal-header {
    padding: 10px 12px !important;
    gap: 8px !important;
  }

  .voucher-header-info {
    gap: 8px !important;
  }

  .voucher-header-badge {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
  }

  .voucher-header-badge svg {
    width: 16px !important;
    height: 16px !important;
  }

  .voucher-title {
    font-size: 13px !important;
  }

  .voucher-subtitle {
    display: none !important;
  }

  .btn-voucher-print-top {
    padding: 5px 8px !important;
    font-size: 11px !important;
  }

  .btn-voucher-print-top span {
    display: none !important;
  }

  .btn-voucher-close-x {
    width: 30px !important;
    height: 30px !important;
  }

  .voucher-modal-body,
  #modalBookingVoucher .modal-dialog-body {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    display: block !important;
    padding: 8px 6px !important;
    background: #e2e8f0 !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .voucher-paper {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    aspect-ratio: unset !important;
    margin: 0 auto !important;
    overflow: visible !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  }

  .lh-top-corner {
    width: 80px !important;
    height: 52px !important;
  }

  .lh-header {
    flex-direction: column !important;
    min-height: auto !important;
    padding: 10px 12px 6px 12px !important;
    gap: 8px !important;
  }

  .lh-brand-col {
    width: 100% !important;
    margin-top: 0 !important;
  }

  .lh-logo-img {
    width: 100% !important;
    max-width: 190px !important;
    height: auto !important;
    max-height: 52px !important;
  }

  .lh-contact-wrapper {
    margin-top: 0 !important;
    width: 100% !important;
  }

  .lh-divider-gold {
    display: none !important;
  }

  .lh-contact-col {
    margin-top: 0 !important;
    gap: 6px !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }

  .lh-contact-row {
    gap: 6px !important;
  }

  .lh-contact-text {
    font-size: 11px !important;
  }

  .lh-contact-text.website {
    font-size: 11px !important;
  }

  .lh-icon-badge {
    width: 22px !important;
    height: 22px !important;
  }

  .lh-icon-badge svg {
    width: 12px !important;
    height: 12px !important;
  }

  .lh-header-rule {
    position: static !important;
    width: 100% !important;
    margin: 6px 0 8px 0 !important;
  }

  .lh-body-canvas {
    padding: 6px 10px 14px 10px !important;
  }

  .invoice-bill-to-card,
  .invoice-details-card {
    margin-bottom: 8px !important;
  }

  .bill-to-header,
  .details-header {
    padding: 6px 10px !important;
    gap: 6px !important;
  }

  .bill-to-badge,
  .details-badge {
    width: 18px !important;
    height: 18px !important;
  }

  .bill-to-badge svg,
  .details-badge svg {
    width: 11px !important;
    height: 11px !important;
  }

  .bill-to-title,
  .details-title {
    font-size: 11.5px !important;
  }

  .bill-to-body,
  .details-body {
    padding: 8px 10px !important;
    gap: 4px !important;
  }

  .bill-to-field,
  .details-row {
    font-size: 11.5px !important;
    gap: 6px !important;
  }

  .bill-to-field-val.name {
    font-size: 13px !important;
  }

  .details-icon-wrap {
    width: 20px !important;
    height: 20px !important;
    border-radius: 4px !important;
  }

  .details-icon-wrap svg {
    width: 11px !important;
    height: 11px !important;
  }

  .details-label {
    min-width: 80px !important;
  }

  .invoice-routes-card {
    margin-top: 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .invoice-routes-table {
    min-width: 420px !important;
  }

  .invoice-routes-table thead tr th {
    padding: 7px 8px !important;
    font-size: 10.5px !important;
  }

  .invoice-routes-table tbody tr.route-item-row td {
    padding: 8px 8px !important;
    font-size: 11.5px !important;
  }

  .route-item-title {
    font-size: 12px !important;
    margin-bottom: 2px !important;
  }

  .route-item-meta,
  .route-item-note {
    font-size: 10.5px !important;
  }

  .invoice-summary-card {
    justify-content: stretch !important;
    margin-top: 10px !important;
  }

  .summary-table {
    width: 100% !important;
  }

  .summary-row {
    padding: 3px 4px !important;
  }

  .summary-label {
    font-size: 11px !important;
  }

  .summary-value {
    font-size: 12px !important;
  }

  .summary-total-due-box {
    padding: 8px 12px !important;
  }

  .total-due-label {
    font-size: 12.5px !important;
  }

  .total-due-value {
    font-size: 15px !important;
  }

  .invoice-notes-card {
    margin-top: 10px !important;
  }

  .notes-title {
    font-size: 11px !important;
  }

  .notes-text {
    font-size: 11px !important;
  }

  .invoice-dark-footer-bar {
    margin-top: 12px !important;
    padding: 8px 10px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
  }

  .footer-bar-sep {
    display: none !important;
  }

  .footer-bar-link {
    font-size: 11px !important;
  }

  .footer-bar-text {
    font-size: 11px !important;
  }

  .lh-watermark {
    width: 140px !important;
    bottom: 20px !important;
    opacity: 0.08 !important;
  }

  .voucher-modal-footer,
  #modalBookingVoucher .modal-dialog-footer {
    padding: 8px 12px !important;
    flex-direction: column-reverse !important;
    gap: 6px !important;
  }

  .btn-voucher-whatsapp {
    width: 100% !important;
    justify-content: center !important;
    font-size: 11.5px !important;
    padding: 8px !important;
  }

  .voucher-footer-right {
    width: 100% !important;
    display: flex !important;
    gap: 6px !important;
  }

  .btn-voucher-close {
    flex: 1 !important;
    padding: 8px !important;
    font-size: 11.5px !important;
  }

  .btn-voucher-print-action {
    flex: 1.5 !important;
    padding: 8px !important;
    font-size: 11.5px !important;
  }
}



/* ==========================================================================
   MODERN WORLD MAP ENGINE & VISUAL EFFECTS
   ========================================================================== */
.map-container-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 18px 14px 18px;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.svg-world-map-large {
  width: 100%;
  height: auto;
  max-height: 310px;
  min-height: 220px;
  display: block;
  border-radius: 12px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.03));
}

.svg-world-map {
  width: 100%;
  height: auto;
  max-height: 200px;
  min-height: 150px;
  display: block;
  border-radius: 10px;
}

/* Animated flight corridor dashed arcs */
@keyframes flightArcFlow {
  from {
    stroke-dashoffset: 24;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.map-flight-arc {
  stroke-dasharray: 5, 5;
  animation: flightArcFlow 1.8s linear infinite;
}

/* Pulsing radar ripples on Saudi Arabia hub */
@keyframes hubRadarPulse {
  0% {
    r: 8px;
    opacity: 0.9;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    r: 32px;
    opacity: 0;
  }
}

.hub-ripple-1 {
  animation: hubRadarPulse 2.5s ease-out infinite;
  transform-origin: 608px 214px;
}

.hub-ripple-2 {
  animation: hubRadarPulse 2.5s ease-out infinite 1.25s;
  transform-origin: 608px 214px;
}

/* Pulsing country origin pins */
@keyframes pinPulseAnim {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.35;
  }
}

.pin-pulse {
  animation: pinPulseAnim 2.2s infinite ease-in-out;
  transform-box: fill-box;
  transform-origin: center;
}

.map-hub-badge {
  filter: drop-shadow(0 4px 10px rgba(79, 70, 229, 0.3));
  transition: transform 0.2s ease;
}

.map-hub-badge:hover {
  transform: translate(545px, 169px) scale(1.03);
}

.map-continents path {
  transition: fill 0.2s ease, opacity 0.2s ease;
}

.map-continents path:hover {
  fill: #64748b;
  opacity: 1;
}

@media (max-width: 640px) {
  .map-container-box {
    padding: 12px !important;
  }
  .svg-world-map-large {
    min-height: 180px !important;
  }
}

/* ==========================================================================
   MOBILE RESPONSIVENESS: COUNTRY-WISE BREAKDOWN & MAP
   ========================================================================== */
.card-chip-tag {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.2 !important;
}

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

.country-label-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.country-trips-chip {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.2 !important;
}

.country-amount-text {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-align: right !important;
  line-height: 1.2 !important;
}

@media (max-width: 768px) {
  .country-rev-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .card-header-clean {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
}

@media (max-width: 640px) {
  .country-card-item {
    padding: 12px 14px !important;
    border-radius: 14px !important;
  }
  .country-item-top {
    gap: 6px !important;
    margin-bottom: 6px !important;
  }
  .country-title-text {
    font-size: 0.88rem !important;
    line-height: 1.25 !important;
  }
  .country-trips-chip {
    font-size: 0.64rem !important;
    padding: 1.5px 6px !important;
  }
  .country-amount-text {
    font-size: 0.95rem !important;
  }
  .country-flag-icon {
    font-size: 1.05rem !important;
  }
  .map-container-box {
    padding: 10px 10px 8px 10px !important;
    border-radius: 14px !important;
  }
  .svg-world-map-large {
    min-height: 175px !important;
    max-height: 220px !important;
  }
  .map-stat-caption {
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }
}

/* ==========================================================================
   MOBILE PERFECTION: COUNTRY BREAKDOWN & REVENUE
   ========================================================================== */
.card-chip-tag {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.2 !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

.country-flag-badge {
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.country-trips-chip {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.2 !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

.country-amount-text {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-align: right !important;
  line-height: 1.2 !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

@media (max-width: 640px) {
  .card-header-clean {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .card-chip-tag {
    align-self: flex-start !important;
  }
  .country-card-item {
    padding: 12px 14px !important;
    border-radius: 14px !important;
  }
  .country-title-text {
    font-size: 0.88rem !important;
    line-height: 1.25 !important;
  }
  .country-trips-chip {
    font-size: 0.65rem !important;
    padding: 2px 7px !important;
  }
  .country-amount-text {
    font-size: 0.95rem !important;
  }
  .map-container-box {
    padding: 10px 10px 8px 10px !important;
    border-radius: 14px !important;
  }
  .svg-world-map-large {
    min-height: 170px !important;
    max-height: 220px !important;
    width: 100% !important;
  }
  .map-stat-caption {
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }
}


/* ==========================================================================
   INTERACTIVE MAP VIEWPORT, PINCH-TO-ZOOM & RESPONSIVE STYLES
   ========================================================================== */
.map-viewport-interactive {
  position: relative;
  width: 100%;
  min-height: 250px;
  height: 280px;
  overflow: hidden;
  border-radius: 14px;
  background: #f8fafc;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}

.map-viewport-interactive.is-zoomed {
  cursor: grab;
}

.map-viewport-interactive.is-zoomed:active {
  cursor: grabbing;
}

.map-zoom-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 0 0;
  will-change: transform;
  pointer-events: none;
}

.svg-interactive-map {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Floating Zoom Buttons */
.map-zoom-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 30;
  pointer-events: auto;
}

.map-zoom-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.15);
  transition: transform 0.12s ease, background-color 0.12s ease;
  cursor: pointer;
  touch-action: manipulation;
}

.map-zoom-btn:hover {
  background: #ffffff;
  color: #4338ca;
  border-color: #a5b4fc;
  transform: scale(1.06);
}

.map-zoom-btn:active {
  transform: scale(0.92);
  background: #e0e7ff;
}

/* Touch Hint Pill (Mobile Only) */
.map-touch-hint {
  position: absolute;
  bottom: 10px;
  left: 10px;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.map-touch-hint span {
  display: inline-block;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.map-viewport-interactive.is-zoomed .map-touch-hint {
  opacity: 0;
  pointer-events: none;
}

/* Responsive Sizing across Screen Breakpoints */
@media (max-width: 1024px) {
  .map-viewport-interactive {
    min-height: 250px;
    height: 270px;
  }
}

@media (max-width: 768px) {
  .map-viewport-interactive {
    min-height: 260px;
    height: 280px;
  }
}

@media (max-width: 640px) {
  .map-container-box {
    padding: 12px !important;
  }
  .map-viewport-interactive {
    min-height: 270px !important;
    height: 290px !important;
  }
  .map-zoom-btn {
    width: 36px !important;
    height: 36px !important;
  }
}

@media (max-width: 480px) {
  .app-header {
    padding: 6px 10px !important;
  }
  .header-container {
    gap: 6px !important;
  }
  .brand-group {
    gap: 6px !important;
  }
  .brand-logo {
    width: 28px !important;
    height: 28px !important;
    border-radius: 7px !important;
  }
  .brand-logo svg {
    width: 15px !important;
    height: 15px !important;
  }
  .brand-title {
    font-size: 0.82rem !important;
    line-height: 1.15 !important;
    display: flex !important;
    flex-direction: column !important;
    white-space: normal !important;
  }
  .brand-title .brand-accent {
    font-size: 0.76rem !important;
  }
  .header-controls {
    gap: 4px !important;
  }
  .mobile-menu-toggle {
    width: 34px !important;
    height: 34px !important;
    padding: 5px !important;
  }
  .btn-notification-bell {
    width: 34px !important;
    height: 34px !important;
    padding: 5px !important;
  }
  .map-viewport-interactive {
    min-height: 260px !important;
    height: 280px !important;
  }
  .map-stat-caption {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
}

/* Action button: Copy All Bookings */
.btn-action-copy-all {
  background-color: #0284c7;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action-copy-all:hover {
  background-color: #0369a1;
}

/* ==========================================================================
   CLERK AUTHENTICATION STYLING
   ========================================================================== */
.clerk-auth-container {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: transparent;
}

.clerk-auth-container.hidden,
#clerkAuthContainer.hidden {
  display: none !important;
}

.clerk-auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

#clerkSignInMount {
  width: 100%;
  display: flex;
  justify-content: center;
}

.clerk-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  width: 100%;
  max-width: 440px;
}

.clerk-spinner {
  width: 36px;
  height: 36px;
  border: 3.5px solid #f1f5f9;
  border-top-color: #059669;
  border-radius: 50%;
  animation: clerkSpin 0.8s linear infinite;
  margin-bottom: 16px;
}

.clerk-loading-text {
  font-family: var(--font-main, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  margin: 0;
}

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

.cl-rootBox,
.cl-signIn-root {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-setup-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 1.5rem;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.auth-logo-badge {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #fef3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.15);
}

.app-header.auth-hidden {
  border-bottom: 1px solid transparent;
}
