/* ===================================================================
   SKYTRAVEL PRO - FLIGHT TICKET MANAGEMENT SYSTEM
   Modern, Ultra-Premium Aviation Dashboard Theme
   =================================================================== */

:root {
  --font-family-base: 'Noto Kufi Arabic', sans-serif;
  /* Color Palette - Premium Aviation Deep Blue & Slate */
  --bg-primary: #0a0f1d;
  --bg-secondary: #11192e;
  --bg-tertiary: #19233c;
  --bg-card: rgba(22, 33, 62, 0.7);
  --bg-glass: rgba(18, 28, 52, 0.65);
  
  --border-color: transparent;
  --border-color-hover: transparent;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  /* Brand Accents - 222 TRAVEL OFFICIAL ORANGE */
  --accent-primary: #f95721;     /* 222 Travel Vibrant Aviation Orange */
  --accent-primary-hover: #e04510;
  --accent-cyan: #ff7a45;        /* Soft Warm Orange Accent */
  --accent-emerald: #10b981;     /* Profit Green */
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-purple: #8b5cf6;      /* Royalty / First Class */
  --accent-amber: #f59e0b;       /* Warning / Pending */
  --accent-rose: #f43f5e;        /* Cancellation / Cost */
  
  /* Shadows & Glassmorphism */
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --glow-primary: 0 0 20px rgba(249, 87, 33, 0.4);
  --glow-emerald: 0 0 20px rgba(16, 185, 129, 0.35);

  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout Dimensions */
  --sidebar-width: 275px;
  --sidebar-collapsed-width: 80px;
  --topbar-height: 72px;
}

/* Light Theme Variables */
body.theme-light {
  --bg-primary: #f0f4f9;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f8fafc;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-color: transparent;
  --border-color-hover: transparent;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;
  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

/* Global Reset & Base Styles - Completely Borderless Theme */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent;
  outline: none !important;
}

html {
  font-size: 13.5px;
  scroll-behavior: smooth;
}

html, input, button, select, textarea, optgroup, option {
  font-family: 'Noto Kufi Arabic', sans-serif;
}

body {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden; /* Never scroll outer window */
}

body {
  font-family: 'Noto Kufi Arabic', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  height: 100vh;
  max-height: 100vh;
  line-height: 1.5;
  direction: rtl;
  overflow: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(249, 87, 33, 0.09) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ===================================================================
   APP LAYOUT (LOCKED 100vh DESKTOP VIEWPORT)
   =================================================================== */
.app-layout {
  display: flex;
  height: 100vh;
  max-height: 100vh;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
}

/* Sidebar Styling - Independent height and scroll */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  max-height: 100vh;
  position: relative;
  flex-shrink: 0;
  background-color: var(--bg-secondary);
  border-left: none;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width var(--transition-smooth);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .sidebar-header {
  padding: 1.1rem 0.5rem;
  justify-content: center;
}

.sidebar.collapsed .brand-logo,
.sidebar.collapsed .brand-info,
.sidebar.collapsed .agency-mini-status,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .nav-link span,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .user-details,
.sidebar.collapsed .btn-logout {
  display: none !important;
}

.sidebar.collapsed .btn-toggle-sidebar {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(249, 87, 33, 0.16) !important;
  color: var(--accent-primary) !important;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(249, 87, 33, 0.25);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar.collapsed .btn-toggle-sidebar:hover {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(249, 87, 33, 0.5);
}

.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 0.9rem;
}

.sidebar.collapsed .sidebar-footer {
  padding: 0.75rem 0.5rem;
}

.sidebar.collapsed .user-profile-badge {
  justify-content: center;
  padding: 0.35rem;
  background: transparent;
}

.sidebar-header {
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.company-logo {
  height: 36px;
  max-width: 140px;
  object-fit: contain;
  transition: all var(--transition-fast);
}

body.theme-dark .company-logo.logo-light {
  display: none !important;
}

body.theme-dark .company-logo.logo-dark {
  display: block !important;
}

body.theme-light .company-logo.logo-dark {
  display: none !important;
}

body.theme-light .company-logo.logo-light {
  display: block !important;
}


.brand-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  background: rgba(238, 90, 36, 0.18);
  color: #ee5a24;
  border-radius: 999px;
  border: none;
}

.btn-toggle-sidebar {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-toggle-sidebar:hover {
  color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Agency Mini Status in Sidebar */
.agency-mini-status {
  margin: 1rem 1rem 0.5rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-indicator.online {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

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

.agency-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gds-status {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Sidebar Nav */
.sidebar-nav {
  flex: 1;
  padding: 1rem 0.8rem;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding: 0.8rem 0.8rem 0.4rem;
  letter-spacing: 0.5px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link i {
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
  color: var(--text-subtle);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover i {
  color: var(--accent-primary);
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(249, 87, 33, 0.22), rgba(249, 87, 33, 0.05));
  color: #fff;
  font-weight: 700;
  border-right: none;
}

.nav-link.active i {
  color: var(--accent-primary);
}

.nav-badge {
  margin-right: auto;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.nav-badge.pulse {
  background: var(--accent-emerald);
  color: #064e3b;
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

.nav-badge.count {
  background: var(--bg-tertiary);
  color: var(--accent-cyan);
  border: none;
}

/* Sidebar Footer User */
.sidebar-footer {
  padding: 1rem;
  border-top: none;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
}

.user-profile-badge .avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
}

.user-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

.btn-logout {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  font-size: 1rem;
  cursor: pointer;
  padding: 5px;
  transition: color var(--transition-fast);
}

.btn-logout:hover {
  color: var(--accent-rose);
}

/* ===================================================================
   MAIN CONTENT & HEADER
   =================================================================== */
.main-content {
  flex: 1;
  min-width: 0;
  width: calc(100% - var(--sidebar-width));
  max-width: 100%;
  margin-right: 0;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Header and ticker stay pinned at top */
  box-sizing: border-box;
}

.sidebar.collapsed ~ .main-content {
  width: calc(100% - var(--sidebar-collapsed-width));
  margin-right: 0;
}

/* Top Navbar - Fixed at top */
.top-navbar {
  height: var(--topbar-height);
  flex-shrink: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: none;
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  z-index: 90;
}

.navbar-left {
  flex: 1;
  max-width: 440px;
}

.search-box-global {
  position: relative;
  width: 100%;
}

.search-box-global i {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 1rem;
}

.search-box-global input {
  width: 100%;
  background: var(--bg-secondary);
  border: none;
  padding: 0.65rem 2.8rem 0.65rem 4.5rem;
  border-radius: var(--radius-lg);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-box-global input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-box-global kbd {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-tertiary);
  border: none;
  color: var(--text-subtle);
  padding: 2px 7px;
  font-size: 0.7rem;
  border-radius: 4px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.currency-selector,
.language-selector {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-secondary);
  border: none;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

.currency-selector select,
.language-selector select {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.currency-selector select option,
.language-selector select option {
  background: var(--bg-secondary);
  color: var(--text-main);
}

/* Icon Buttons & Dropdowns */
.btn-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: none;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  color: var(--accent-primary);
  border-color: transparent;
  background: var(--bg-tertiary);
}

.badge-dot {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent-rose);
  border-radius: 50%;
  border: none;
}

/* Dropdown Menu */
.dropdown-wrapper {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 320px;
  background: var(--bg-secondary);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  display: none;
  z-index: 1000;
  overflow: hidden;
  animation: fadeInDown 0.2s ease;
}

.dropdown-menu.active {
  display: block;
}

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

.dropdown-header {
  padding: 0.9rem 1.1rem;
  background: var(--bg-tertiary);
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-header h4 {
  font-size: 0.9rem;
  font-weight: 700;
}

.badge-count {
  font-size: 0.72rem;
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.notifications-list {
  max-height: 280px;
  overflow-y: auto;
}

.notif-item {
  padding: 0.85rem 1.1rem;
  border-bottom: none;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

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

.notif-content {
  flex: 1;
}

.notif-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.notif-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.notif-time {
  font-size: 0.68rem;
  color: var(--text-subtle);
  margin-top: 4px;
}

.dropdown-footer {
  padding: 0.75rem;
  text-align: center;
  background: var(--bg-tertiary);
  border-top: none;
}

.dropdown-footer a {
  font-size: 0.8rem;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
}

/* Live Ticker Bar */
.live-ticker-bar {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.1));
  border-bottom: none;
  padding: 0.45rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8rem;
  overflow: hidden;
  position: relative;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--accent-cyan);
  white-space: nowrap;
  background: var(--bg-primary);
  padding: 2px 10px;
  border-radius: 999px;
  border: none;
  z-index: 5;
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.ticker-marquee {
  display: flex;
  gap: 2.5rem;
  flex: 1;
  white-space: nowrap;
  animation: marqueeTicker 30s linear infinite;
  z-index: 1;
}

@keyframes marqueeTicker {
  0% { transform: translateX(0%); }
  100% { transform: translateX(50%); }
}

.ticker-item {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ticker-item i {
  color: var(--accent-primary);
}

.time-display {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-weight: 600;
  color: var(--text-subtle);
  white-space: nowrap;
}

/* ===================================================================
   CONTENT AREA & TABS
   =================================================================== */
.content-container {
  padding: 1.25rem 1.6rem 2.5rem;
  flex: 1;
  max-width: 100%;
  height: calc(100vh - var(--topbar-height) - 34px);
  overflow-y: auto; /* التمرير محصور تماماً داخل هذا المربع */
  overflow-x: hidden;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Custom internal scrollbar for the content box */
.content-container::-webkit-scrollbar {
  width: 7px;
}
.content-container::-webkit-scrollbar-track {
  background: rgba(10, 15, 29, 0.4);
  border-radius: 4px;
}
.content-container::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.35);
  border-radius: 4px;
  border: none;
}
.content-container::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

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

.view-tab.active {
  display: block;
}

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

/* Hero Section */
.dashboard-hero {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.45), rgba(15, 23, 42, 0.85)), 
              url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1600&q=80') center/cover;
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, rgba(10, 15, 29, 0.94) 25%, rgba(10, 15, 29, 0.45) 100%);
  z-index: 1;
}

.hero-text, .hero-actions {
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 650px;
}

.hero-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.hero-desc {
  color: #cbd5e1;
  font-size: 0.86rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
}

.hero-actions .btn-outline {
  background: rgba(255, 255, 255, 0.16) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  backdrop-filter: blur(10px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero-actions .btn-outline i {
  color: #ffffff !important;
  font-size: 0.95rem;
}

.hero-actions .btn-outline:hover {
  background: var(--accent-primary) !important;
  border: none !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* ===================================================================
   HERO SECTION - LIGHT MODE STYLING
   =================================================================== */
body.theme-light .dashboard-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 246, 240, 0.94) 100%), 
              url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1600&q=80') center/cover !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(249, 87, 33, 0.04) !important;
  border: none !important;
}

body.theme-light .dashboard-hero::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.97) 35%, rgba(255, 255, 255, 0.8) 100%) !important;
}

body.theme-light .hero-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

body.theme-light .hero-desc {
  color: #475569 !important;
}

body.theme-light .hero-actions .btn-outline {
  background: #ffffff !important;
  color: #0f172a !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  text-shadow: none !important;
}

body.theme-light .hero-actions .btn-outline i {
  color: var(--accent-primary) !important;
}

body.theme-light .hero-actions .btn-outline:hover {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(249, 87, 33, 0.35) !important;
}

body.theme-light .hero-actions .btn-outline:hover i {
  color: #ffffff !important;
}

body.theme-light .hero-actions .btn-primary {
  box-shadow: 0 4px 16px rgba(249, 87, 33, 0.35) !important;
}

/* ===================================================================
   BUTTONS & BADGES
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none !important;
  outline: none !important;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
  color: #fff;
  box-shadow: 0 4px 15px rgba(249, 87, 33, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e04510, #c83b0a);
  box-shadow: 0 6px 20px rgba(249, 87, 33, 0.55);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1) !important;
  border: none !important;
  color: #f1f5f9;
  font-weight: 600;
}

body.theme-light .btn-outline {
  background: #e2e8f0 !important;
  border: none !important;
  color: #0f172a;
}

.btn-outline:hover {
  background: var(--accent-primary) !important;
  border: none !important;
  color: #ffffff !important;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
}

.badge-info {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: none;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: none;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: none;
}

.badge-danger {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: none;
}

/* ===================================================================
   KPI STAT CARDS
   =================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

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

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
}

.stat-card-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.stat-trend.positive {
  color: var(--accent-emerald);
}

.stat-trend.neutral {
  color: var(--accent-cyan);
}

.stat-trend.alert {
  color: var(--accent-amber);
}

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Gradients on cards */
.card-gradient-emerald .stat-icon-wrapper {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  box-shadow: var(--glow-emerald);
}
.card-gradient-blue .stat-icon-wrapper {
  background: rgba(249, 87, 33, 0.15);
  color: var(--accent-primary);
  box-shadow: var(--glow-primary);
}
.card-gradient-purple .stat-icon-wrapper {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
}
.card-gradient-amber .stat-icon-wrapper {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

.stat-card-footer {
  border-top: none;
  padding-top: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-subtle);
}

.stat-card-footer a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition-fast);
}

.stat-card-footer a:hover {
  gap: 0.5rem;
}

/* ===================================================================
   CHARTS & PANELS
   =================================================================== */
.charts-row {
  display: grid;
  grid-template-columns: 1.85fr 1.15fr;
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 1024px) {
  .charts-row {
    grid-template-columns: 1fr;
  }
}

.dashboard-panel {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
}

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

.panel-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.panel-title-wrapper i {
  font-size: 1.2rem;
  color: var(--accent-primary);
}

.panel-title-wrapper h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
}

.panel-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.panel-link {
  font-size: 0.8rem;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
}

.btn-group-pill {
  display: flex;
  background: var(--bg-secondary);
  border: none;
  border-radius: 999px;
  padding: 3px;
}

.btn-group-pill button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-group-pill button.active {
  background: var(--accent-primary);
  color: #fff;
}

.chart-canvas-container {
  position: relative;
  height: 250px;
  width: 100%;
}

.chart-canvas-container.donut-box {
  height: 240px;
}

/* Operations Grid */
.operations-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.15rem;
}

@media (max-width: 1024px) {
  .operations-grid {
    grid-template-columns: 1fr;
  }
}

/* Time Limit Alerts */
.time-limit-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.alert-item {
  background: rgba(245, 158, 11, 0.06);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.alert-pnr {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-weight: 700;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 7px;
  border-radius: 4px;
}

.alert-info h5 {
  font-size: 0.88rem;
  font-weight: 700;
}

.alert-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.alert-countdown {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-rose);
  white-space: nowrap;
}

/* ===================================================================
   DATA TABLES
   =================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.86rem;
}

.data-table th {
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: none;
  color: var(--text-subtle);
  font-weight: 600;
  white-space: nowrap;
}

.data-table td {
  padding: 0.95rem 1rem;
  border-bottom: none;
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.pnr-tag {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.pnr-tag:hover {
  background: rgba(6, 182, 212, 0.2);
}

.passenger-cell {
  display: flex;
  flex-direction: column;
}

.passenger-cell .name {
  font-weight: 700;
  color: var(--text-main);
}

.passenger-cell .passport {
  font-size: 0.72rem;
  color: var(--text-subtle);
  font-family: 'Noto Kufi Arabic', sans-serif;
}

.flight-cell {
  display: flex;
  flex-direction: column;
}

.flight-cell .route {
  font-weight: 600;
}

.flight-cell .airline-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.price-cost {
  color: var(--text-muted);
  font-family: 'Noto Kufi Arabic', sans-serif;
}

.price-sell {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-weight: 700;
  color: #fff;
}

.price-profit {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-weight: 700;
  color: var(--accent-emerald);
}

/* ===================================================================
   FORMS & INPUTS
   =================================================================== */
.page-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 1.45rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
}

.page-title i {
  color: var(--accent-primary);
}

.page-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.booking-wizard-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.booking-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.booking-grid > .form-card:nth-child(1) {
  position: relative;
  z-index: 50;
}

.booking-grid > .form-card:nth-child(1).picker-open,
.booking-grid > .form-card:nth-child(1):has(.searchable-airline-picker.open) {
  z-index: 10000 !important;
}

.booking-grid > .form-card:nth-child(2) {
  position: relative;
  z-index: 20;
}

.booking-grid > .form-card:nth-child(3) {
  position: relative;
  z-index: 10;
}

.booking-grid > .form-card:nth-child(4) {
  position: relative;
  z-index: 5;
}

.form-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  overflow: visible !important;
}

.form-card.highlight-card {
  border-color: transparent;
  background: linear-gradient(180deg, rgba(249, 87, 33, 0.12) 0%, var(--bg-card) 100%);
}

.form-card-header {
  padding: 1.1rem 1.4rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-card-header i {
  font-size: 1.2rem;
  color: var(--accent-primary);
}

.form-card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.form-card-body {
  padding: 1.5rem 1.4rem;
}

.form-card-footer {
  padding: 1.1rem 1.4rem;
  border-top: none;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

/* Trip Type Selector */
.trip-type-selector {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.radio-chip {
  cursor: pointer;
}

.radio-chip input {
  display: none;
}

.radio-chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  background: var(--bg-secondary);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.radio-chip input:checked + span {
  background: var(--accent-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(249, 87, 33, 0.4);
}

/* Form Grid */
.form-row {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-row:last-child {
  margin-bottom: 0;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.span-2 { grid-column: span 2; }

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.form-group label i {
  color: var(--accent-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-secondary);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.95rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-main);
}

.input-readonly {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed;
}

.field-hint {
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.input-with-button {
  display: flex;
  gap: 0.5rem;
}

.input-with-button input {
  flex: 1;
}

/* Realtime Profit Live Display Box */
.live-profit-calculator {
  background: rgba(16, 185, 129, 0.07);
  border: none;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.25rem 0;
}

.calc-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.calc-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.calc-val {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

.calc-operator {
  color: var(--text-subtle);
  font-size: 1.2rem;
}

.profit-highlight .profit-val {
  color: var(--accent-emerald);
  font-size: 1.6rem;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* ===================================================================
   FILTERS & MINI SUMMARY PILLS
   =================================================================== */
.filter-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-item label {
  font-size: 0.78rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper i {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
}

.input-icon-wrapper input {
  width: 100%;
  background: var(--bg-secondary);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.55rem 2.4rem 0.55rem 0.8rem;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
}

.filter-item select {
  background: var(--bg-secondary);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.55rem 0.8rem;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
}

.mini-summary-pills {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.pill-stat {
  background: var(--bg-secondary);
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.pill-stat .label {
  color: var(--text-muted);
}

.pill-stat .value {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-weight: 700;
}

/* ===================================================================
   SUPPLIERS & AIRLINES GRID
   =================================================================== */
.suppliers-grid,
.airlines-grid,
.clients-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.supplier-card,
.airline-card,
.client-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.supplier-card:hover,
.airline-card:hover,
.client-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
}

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

.supplier-logo-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.supplier-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.supplier-type {
  font-size: 0.74rem;
  color: var(--text-subtle);
}

.supplier-stats-row {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-top: none;
  border-bottom: none;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.supplier-balance-val {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-weight: 700;
}

/* ===================================================================
   REFUNDS & FINANCIAL REPORTS
   =================================================================== */
.refunds-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 1.5rem;
}

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

.reports-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.report-box {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--card-shadow);
}

.report-box.highlight {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), var(--bg-card));
}

.report-box-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.35rem;
}

.report-box-value {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.report-box-note {
  font-size: 0.72rem;
  color: var(--text-subtle);
}

/* Settings toggles */
.gds-item-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: none;
}

.gds-item-setting:last-child {
  border-bottom: none;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-tertiary);
  transition: .3s;
  border-radius: 34px;
  border: none;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  right: 4px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--accent-emerald);
}
input:checked + .slider:before {
  transform: translateX(-24px);
}

.status-pill {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 999px;
  margin-right: 0.5rem;
}
.status-active { background: rgba(16, 185, 129, 0.2); color: var(--accent-emerald); }
.status-standby { background: rgba(245, 158, 11, 0.2); color: var(--accent-amber); }

/* ===================================================================
   MODALS
   =================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4, 7, 18, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-dialog {
  background: var(--bg-secondary);
  border: none;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--glass-shadow);
}

.modal-dialog.modal-ticket {
  max-width: 820px;
}

.modal-header {
  padding: 1.25rem 1.6rem;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-title-wrapper i {
  font-size: 1.3rem;
  color: var(--accent-primary);
}

.modal-title-wrapper h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

.btn-close-modal:hover {
  color: var(--accent-rose);
}

.modal-body {
  padding: 1.6rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: none;
}

/* ===================================================================
   E-TICKET / BOARDING PASS STYLING (PRINTABLE)
   =================================================================== */
.printable-ticket {
  background: #ffffff;
  color: #1e293b;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  font-family: 'Noto Kufi Arabic', sans-serif;
  direction: rtl;
}

.ticket-header-banner {
  background: linear-gradient(135deg, #0a0f1d, #2d140a);
  color: #ffffff;
  padding: 1.35rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none;
}

.ticket-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ticket-brand i {
  font-size: 2rem;
  color: var(--accent-primary);
}

.ticket-brand h2 {
  font-size: 1.35rem;
  margin: 0;
  font-weight: 800;
}

.ticket-brand span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.ticket-pnr-banner {
  text-align: left;
}

.ticket-pnr-banner .pnr-label {
  font-size: 0.75rem;
  color: #94a3b8;
}

.ticket-pnr-banner .pnr-code {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: 2px;
}

/* Passenger & Flight Details Grid */
.ticket-content {
  padding: 1.8rem 2rem;
}

.ticket-passenger-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: none;
  margin-bottom: 1.5rem;
}

.t-meta-label {
  font-size: 0.72rem;
  color: #64748b;
  display: block;
}

.t-meta-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

/* Flight Route Visual */
.ticket-route-box {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.airport-node {
  text-align: center;
}

.airport-code {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #1e3a8a;
}

.airport-name {
  font-size: 0.78rem;
  color: #64748b;
}

.airport-time {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
}

.flight-path-graphic {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
  position: relative;
}

.flight-number-tag {
  background: #e2e8f0;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.flight-dotted-line {
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--accent-primary) 0, var(--accent-primary) 6px, transparent 6px, transparent 12px);
  position: relative;
}

.flight-path-graphic i {
  color: var(--accent-primary);
  font-size: 1.2rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
}

/* Flight extras info */
.ticket-extra-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: none;
}

/* Barcode Section */
.ticket-barcode-footer {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.barcode-visual {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 48px;
}

.barcode-bar {
  background: #0f172a;
  height: 100%;
}

.ticket-eticket-num {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 0.85rem;
  color: #475569;
}

.qr-code-placeholder {
  width: 65px;
  height: 65px;
  background: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #0f172a;
}

/* Print CSS */
@media print {
  body * {
    visibility: hidden;
  }
  #printableTicketArea, #printableTicketArea * {
    visibility: visible;
  }
  #printableTicketArea {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .modal-overlay {
    background: transparent;
    padding: 0;
  }
  .modal-dialog {
    border: none;
    box-shadow: none;
    max-width: 100%;
  }
}

/* ===================================================================
   TOAST NOTIFICATIONS
   =================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-secondary);
  border: none;
  color: var(--text-main);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 280px;
  animation: slideInLeft 0.3s ease;
  font-size: 0.88rem;
}

.toast.success { border-right: none; }
.toast.error { border-right: none; }
.toast.info { border-right: none; }

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Utility Helpers */
.text-emerald { color: var(--accent-emerald) !important; }
.text-blue { color: var(--accent-primary) !important; }
.text-purple { color: var(--accent-purple) !important; }
.text-amber { color: var(--accent-amber) !important; }
.text-rose { color: var(--accent-rose) !important; }
.bold { font-weight: 700; }

/* ===================================================================
   MOBILE CONTROLS BASE STYLES (DESKTOP DEFAULT: HIDDEN)
   =================================================================== */
.btn-mobile-menu {
  display: none !important;
}

.mobile-brand-logo {
  display: none !important;
}

.btn-close-sidebar-mobile {
  display: none !important;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-close-sidebar-mobile:hover {
  background: var(--accent-rose);
  color: #ffffff;
}

.sidebar-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Off-canvas mobile backdrop overlay */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 24, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===================================================================
   SEAMLESS BORDERLESS DESIGN (NO OUTLINES / NO BORDER LINES ANYWHERE)
   =================================================================== */
*, *::before, *::after {
  border-color: transparent;
}

.btn,
.btn-outline,
.hero-actions .btn-outline,
.stat-card,
.dashboard-panel,
.form-card,
.filter-card,
.supplier-card,
.airline-card,
.client-card,
.report-box,
.sidebar,
.sidebar-header,
.sidebar-footer,
.agency-mini-status,
.top-navbar,
.live-ticker-bar,
.ticker-label,
.data-table th,
.data-table td,
.form-group input,
.form-group select,
.form-group textarea,
.pnr-tag,
.badge,
.modal-dialog,
.modal-header,
.modal-footer,
.dropdown-menu,
.dropdown-header,
.dropdown-footer,
.notif-item,
.pill-stat,
.btn-group-pill,
.gds-item-setting,
.stat-card-footer,
.form-card-header,
.form-card-footer,
.ticket-passenger-row,
.ticket-extra-details,
.ticket-route-box,
.ticket-header-banner,
.search-box-global input,
.currency-selector,
.btn-icon {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  outline: none !important;
}

/* Elegant elevated cards with soft shadows instead of border lines */
.stat-card,
.dashboard-panel,
.form-card,
.filter-card,
.supplier-card,
.airline-card,
.client-card,
.report-box {
  background: rgba(22, 33, 62, 0.75) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

body.theme-light .stat-card,
body.theme-light .dashboard-panel,
body.theme-light .form-card,
body.theme-light .filter-card,
body.theme-light .supplier-card,
body.theme-light .airline-card,
body.theme-light .client-card,
body.theme-light .report-box {
  background: #ffffff !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06) !important;
}

/* Soft floating inputs without borders */
.form-group input,
.form-group select,
.form-group textarea,
.search-box-global input {
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.theme-light .form-group input,
body.theme-light .form-group select,
body.theme-light .form-group textarea,
body.theme-light .search-box-global input {
  background: #f1f5f9 !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Borderless buttons with clean floating backgrounds */
.btn-outline {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: none !important;
}
.btn-outline:hover {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
}

.hero-actions .btn-outline {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border: none !important;
}
.hero-actions .btn-outline:hover {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
}

/* Table zebra striping instead of dividing lines */
.data-table th {
  background: rgba(255, 255, 255, 0.02) !important;
  border-bottom: none !important;
}
.data-table td {
  border-bottom: none !important;
}
.data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}
.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* Remove separator lines */
.supplier-stats-row {
  border-top: none !important;
  border-bottom: none !important;
}
.live-profit-calculator {
  border: none !important;
  background: rgba(249, 87, 33, 0.08) !important;
}


/* ===================================================================
   ABSOLUTE ZERO BORDERS SYSTEM - 100% BORDERLESS UI
   =================================================================== */
*, *::before, *::after {
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  outline: none !important;
}

/* Remove any browser default borders or outlines on all interactive elements */
button, input, select, textarea, table, th, td, tr, thead, tbody,
.btn, .btn-outline, .btn-primary, .btn-icon, .btn-sm,
.stat-card, .dashboard-panel, .form-card, .filter-card,
.supplier-card, .airline-card, .client-card, .report-box,
.sidebar, .sidebar-header, .sidebar-footer, .top-navbar,
.live-ticker-bar, .ticker-label, .modal-dialog, .modal-header, .modal-footer,
.modal-content, .dropdown-menu, .dropdown-header, .dropdown-footer,
.pnr-tag, .badge, .brand-badge, .nav-link, .nav-badge,
.flight-card, .ticket-preview, .ticket-header-banner, .ticket-passenger-row,
.ticket-extra-details, .ticket-route-box, .gds-item-setting,
.live-profit-calculator, .user-profile-badge, .search-box-global,
.currency-selector, .status-indicator, .toast {
  border: 0 !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  outline: none !important;
}

/* Ensure clean shadows and elevated backgrounds for maximum visual luxury */
.hero-actions .btn-outline,
.btn-outline {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

body.theme-light .btn-outline {
  background: #ffffff !important;
  color: #0f172a !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

body.theme-light .hero-actions .btn-outline {
  background: #ffffff !important;
  color: #0f172a !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  text-shadow: none !important;
}

body.theme-light .page-title,
body.theme-light .panel-header h3,
body.theme-light .price-sell,
body.theme-light .top-nav-user .user-name {
  color: #0f172a !important;
}

.hero-actions .btn-outline:hover,
.btn-outline:hover {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(249, 87, 33, 0.4) !important;
}

/* ===================================================================
   SEARCHABLE AIRLINE COMBOBOX & GLOBAL AIRLINE PICKER
   =================================================================== */
.searchable-airline-picker {
  position: relative;
  width: 100%;
  z-index: 50;
}

.searchable-airline-picker.open {
  z-index: 99999 !important;
}

.picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
  border: none !important;
  outline: none !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.theme-light .picker-trigger {
  background: #f1f5f9;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.picker-trigger:hover,
.picker-trigger:focus,
.searchable-airline-picker.open .picker-trigger {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-light .picker-trigger:hover,
body.theme-light .picker-trigger:focus,
body.theme-light .searchable-airline-picker.open .picker-trigger {
  background: #e2e8f0;
}

.selected-airline-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  flex: 1;
}

.airline-code-badge {
  background: rgba(249, 87, 33, 0.18);
  color: var(--accent-primary);
  font-weight: 800;
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 0.85rem;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.airline-name-text {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.picker-arrow {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.searchable-airline-picker.open .picker-arrow {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.picker-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0 !important;
  right: auto !important;
  width: 480px;
  max-width: 92vw;
  background: #0f172a !important;
  opacity: 1 !important;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 10px 30px rgba(0, 0, 0, 0.6) !important;
  z-index: 100000 !important;
  overflow: hidden;
  max-height: 490px;
  display: flex;
  flex-direction: column;
  animation: fadeInDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none !important;
}

body.theme-light .picker-dropdown {
  background: #ffffff !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

.picker-search-box {
  position: relative;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body.theme-light .picker-search-box {
  background: #f8fafc;
}

.picker-search-box i.fa-magnifying-glass {
  color: var(--accent-primary);
  font-size: 1rem;
}

.picker-search-box input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: var(--text-main) !important;
  font-family: inherit;
  font-size: 0.92rem;
  box-shadow: none !important;
}

.btn-clear-search {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 0.9rem;
  border-radius: 50%;
  transition: color var(--transition-fast);
}

.btn-clear-search:hover {
  color: var(--accent-primary);
}

.picker-region-tags {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.2);
  scrollbar-width: none;
}

body.theme-light .picker-region-tags {
  background: #f1f5f9;
}

.picker-region-tags::-webkit-scrollbar {
  display: none;
}

.region-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  border: none !important;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

body.theme-light .region-pill {
  background: #e2e8f0;
  color: #475569;
}

.region-pill:hover,
.region-pill.active {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
}

.picker-options-list {
  overflow-y: auto !important;
  max-height: 320px;
  min-height: 200px;
  padding: 0.5rem;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px;
}

.picker-option {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
}

.picker-option:hover {
  background: rgba(249, 87, 33, 0.14) !important;
}

.picker-option.selected {
  background: rgba(249, 87, 33, 0.22) !important;
}

.opt-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
}

.opt-code {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-weight: 800;
  color: var(--accent-primary);
  font-size: 0.95rem;
  min-width: 34px;
}

.opt-names {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.opt-name-ar {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-light .opt-name-ar {
  color: #0f172a !important;
}

.opt-name-en {
  font-size: 0.78rem;
  color: #94a3b8 !important;
  font-family: 'Noto Kufi Arabic', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-light .opt-name-en {
  color: #64748b !important;
}

.opt-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.opt-country-badge {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

body.theme-light .opt-country-badge {
  background: #f1f5f9;
  color: #64748b;
}

.opt-iata-tag {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.picker-empty-state {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ===================================================================
   COMPREHENSIVE ALL-DEVICE RESPONSIVE SYSTEM
   (Smartphones, Phablets, Tablets, Laptops, Desktops & 4K Displays)
   =================================================================== */

/* Safe area support for notch screens (iPhone X/11/12/13/14/15/16 etc.) */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* Dynamic Viewport & High-DPI Defaults */
body {
  min-height: 100vh;
  min-height: 100dvh;
}

.app-layout {
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  width: 100vw;
  max-width: 100vw;
}

.content-container {
  height: calc(100vh - var(--topbar-height) - 34px);
  height: calc(100dvh - var(--topbar-height) - 34px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* -------------------------------------------------------------------
   1. LAPTOPS & LARGE TABLETS (max-width: 1200px)
   ------------------------------------------------------------------- */
@media (max-width: 1200px) {
  :root {
    --sidebar-width: 250px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  
  .charts-row {
    grid-template-columns: 1.6fr 1.2fr;
    gap: 1rem;
  }
  
  .operations-grid {
    grid-template-columns: 1.6fr 1.1fr;
    gap: 1rem;
  }
  
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
}

/* -------------------------------------------------------------------
   2. TABLETS & VERTICAL SCREENS (max-width: 992px)
   ------------------------------------------------------------------- */
@media (max-width: 992px) {
  .app-layout {
    position: relative;
    overflow: hidden;
  }

  /* Sidebar transforms into off-canvas drawer */
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: 290px;
    max-width: 84vw;
    z-index: 1050;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.65);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* RTL mode: slide from right */
  html[dir="rtl"] .sidebar {
    right: 0;
    left: auto;
    transform: translateX(105%);
  }

  /* LTR mode fallback: slide from left */
  html[dir="ltr"] .sidebar {
    left: 0;
    right: auto;
    transform: translateX(-105%);
  }

  /* Open drawer state */
  .sidebar.mobile-open {
    transform: translateX(0) !important;
  }

  /* Mobile Close Button in Drawer Header */
  .btn-close-sidebar-mobile {
    display: flex !important;
  }

  /* Hide desktop collapse button on mobile drawer */
  .btn-toggle-sidebar {
    display: none !important;
  }

  /* Main content occupies full width */
  .main-content {
    width: 100% !important;
    max-width: 100vw !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .sidebar.collapsed ~ .main-content {
    width: 100% !important;
    margin-right: 0 !important;
  }

  /* Top Navbar adjustments */
  .top-navbar {
    padding: 0 1.15rem;
    gap: 0.85rem;
  }

  .btn-mobile-menu {
    display: flex !important;
  }

  .mobile-brand-logo {
    display: flex !important;
    align-items: center;
    margin-right: 0.25rem;
  }

  .mobile-brand-logo .company-logo {
    height: 30px;
    max-width: 110px;
    object-fit: contain;
  }

  .search-box-global kbd {
    display: none !important;
  }

  .search-box-global input {
    padding-left: 1rem;
    padding-right: 2.4rem;
  }

  .search-box-global i {
    right: 0.85rem;
  }

  /* Dashboard Panels & Charts */
  .charts-row,
  .operations-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .chart-canvas-container {
    height: 250px;
  }

  .chart-canvas-container.donut-box {
    height: 240px;
  }

  /* Form Grids */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .refunds-layout {
    grid-template-columns: 1fr;
  }

  /* Modal Dialog on Tablets */
  .modal-dialog {
    max-width: 90vw;
  }
}

/* -------------------------------------------------------------------
   3. SMARTPHONES & MOBILE DEVICES (max-width: 768px)
   ------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --topbar-height: 64px;
  }

  /* Content area scroll padding */
  .content-container {
    padding: 0.85rem 0.75rem 2.2rem;
    height: calc(100vh - var(--topbar-height) - 30px);
    height: calc(100dvh - var(--topbar-height) - 30px);
  }

  /* Top Navbar on Mobile */
  .top-navbar {
    height: var(--topbar-height);
    padding: 0 0.75rem;
    gap: 0.5rem;
  }

  .navbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
  }

  .search-box-global {
    flex: 1;
    min-width: 0;
  }

  .search-box-global input {
    font-size: 0.82rem;
    padding: 0.45rem 2rem 0.45rem 0.65rem;
    border-radius: var(--radius-md);
  }

  .search-box-global i {
    font-size: 0.85rem;
    right: 0.65rem;
  }

  .navbar-right {
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .btn-icon {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  .currency-selector,
  .language-selector {
    padding: 0.35rem 0.5rem;
    gap: 0.25rem;
    border-radius: var(--radius-sm);
  }

  .currency-selector select,
  .language-selector select {
    font-size: 0.76rem;
  }

  .currency-selector i,
  .language-selector i {
    font-size: 0.85rem;
  }

  /* Compact quick booking button on phones */
  #btnQuickBooking {
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
  }

  #btnQuickBooking .btn-text {
    display: none !important;
  }

  /* Dropdown Menus on Mobile (e.g. notifications) */
  .dropdown-menu {
    position: fixed !important;
    top: calc(var(--topbar-height) + 6px) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85);
  }

  /* Live Ticker Bar on Mobile */
  .live-ticker-bar {
    padding: 0.3rem 0.75rem;
    gap: 0.75rem;
    font-size: 0.74rem;
  }

  .ticker-label {
    font-size: 0.72rem;
    padding: 2px 7px;
  }

  .ticker-label i {
    font-size: 0.8rem;
  }

  .time-display {
    display: none !important; /* Hide clock on phones to give space to marquee */
  }

  /* Dashboard Hero on Mobile */
  .dashboard-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 1.15rem 1rem;
    gap: 0.9rem;
    margin-bottom: 0.9rem;
  }

  .hero-title {
    font-size: 1.15rem;
    line-height: 1.35;
  }

  .hero-desc {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.86rem;
    padding: 0.6rem 1rem;
  }

  /* Stats Grid on Mobile: 2 clean columns */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-bottom: 0.9rem;
  }

  .stat-card {
    padding: 0.8rem 0.85rem;
    border-radius: var(--radius-md);
  }

  .stat-card-header {
    margin-bottom: 0.5rem;
  }

  .stat-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .stat-value {
    font-size: 1.25rem !important;
    word-break: break-word;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  .stat-card-footer {
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    font-size: 0.7rem;
  }

  /* Page Title Bars across all tabs */
  .page-title-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
  }

  .page-title {
    font-size: 1.15rem;
    gap: 0.5rem;
  }

  .page-desc {
    font-size: 0.78rem;
  }

  .page-actions,
  .header-badges {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .page-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.55rem 0.85rem;
  }

  /* All Forms & Input Grids on Mobile: Single Column */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }

  .span-2 {
    grid-column: span 1 !important;
  }

  .form-card {
    border-radius: var(--radius-md);
  }

  .form-card-header {
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
  }

  .form-card-header h3 {
    font-size: 0.92rem;
  }

  .form-card-body {
    padding: 0.9rem;
  }

  .form-group label {
    font-size: 0.78rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
  }

  .form-card-footer {
    padding: 0.9rem;
    flex-direction: column-reverse;
    gap: 0.6rem;
  }

  .form-card-footer .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
    padding: 0.7rem;
  }

  /* Trip Type Selector Chips on Phones */
  .trip-type-selector {
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
  }

  .radio-chip {
    width: 100%;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    justify-content: center;
  }

  /* Live Profit Calculator on Mobile */
  .live-profit-calculator {
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.9rem 0.75rem;
    margin: 0.9rem 0;
  }

  .calc-box {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .calc-operator {
    transform: rotate(90deg);
    font-size: 0.9rem;
    opacity: 0.6;
  }

  .calc-val {
    font-size: 1.15rem;
  }

  .profit-highlight {
    background: rgba(16, 185, 129, 0.12);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
  }

  .profit-highlight .profit-val {
    font-size: 1.35rem;
  }

  /* Searchable Airline Picker on Mobile: Center Modal Style */
  .picker-dropdown {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 92vw !important;
    max-width: 420px !important;
    max-height: 80vh !important;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.92) !important;
    z-index: 100000 !important;
  }

  .picker-search-box {
    padding: 0.75rem 0.85rem;
  }

  .picker-search-box input {
    font-size: 0.86rem;
  }

  .picker-region-tags {
    padding: 0.4rem 0.65rem;
    gap: 0.3rem;
  }

  .region-pill {
    padding: 3px 8px;
    font-size: 0.72rem;
  }

  .picker-options-list {
    max-height: 260px;
  }

  /* Filter Cards & Filter Inputs on Mobile */
  .filter-card {
    padding: 0.9rem;
    margin-bottom: 0.9rem;
    border-radius: var(--radius-md);
  }

  .filter-grid {
    grid-template-columns: 1fr !important;
    gap: 0.65rem;
  }

  .mini-summary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
  }

  .pill-stat {
    flex: 1 1 calc(50% - 0.45rem);
    min-width: 120px;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-sm);
  }

  .pill-stat-val {
    font-size: 0.95rem;
  }

  .pill-stat-lbl {
    font-size: 0.68rem;
  }

  /* Responsive Data Tables on Mobile */
  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
  }

  .table-responsive::-webkit-scrollbar {
    height: 5px;
  }

  .data-table {
    min-width: 720px; /* Ensures table columns stay legible and scroll horizontally */
  }

  .data-table th {
    padding: 0.7rem 0.75rem;
    font-size: 0.76rem;
  }

  .data-table td {
    padding: 0.7rem 0.75rem;
    font-size: 0.78rem;
  }

  /* Client & Airline Directory Grids */
  .clients-cards-grid,
  .airlines-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .client-card,
  .airline-card {
    padding: 1rem;
    border-radius: var(--radius-md);
  }

  /* Financial Summary Reports */
  .reports-summary-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .report-box {
    padding: 0.85rem;
    border-radius: var(--radius-md);
  }

  .report-box-value {
    font-size: 1.3rem !important;
  }

  .report-box-title {
    font-size: 0.72rem;
  }

  .report-box-note {
    font-size: 0.68rem;
  }

  /* Modals on Phones: Native Bottom-Sheet / Full View */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 94vh !important;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
    margin: 0 !important;
  }

  .modal-header {
    padding: 1rem 1.15rem;
  }

  .modal-title-wrapper h3 {
    font-size: 0.95rem;
  }

  .modal-title-wrapper i {
    font-size: 1.1rem;
  }

  .modal-body {
    padding: 1rem 1.15rem 1.5rem;
  }

  .modal-footer {
    flex-direction: column-reverse;
    gap: 0.6rem;
  }

  .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }

  /* Printable Ticket on Mobile */
  .printable-ticket {
    border-radius: var(--radius-md);
  }

  .ticket-header-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
  }

  .ticket-pnr-banner {
    text-align: right;
  }

  .ticket-pnr-banner .pnr-code {
    font-size: 1.35rem;
  }

  .ticket-content {
    padding: 1rem;
  }

  .ticket-passenger-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-bottom: 1rem;
  }

  .ticket-route-box {
    flex-direction: column;
    gap: 0.85rem;
    padding: 0.9rem;
    margin-bottom: 1rem;
  }

  .flight-path-graphic {
    padding: 0.4rem 0;
    width: 100%;
  }

  .airport-code {
    font-size: 1.6rem;
  }

  .ticket-extra-details {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
}

/* -------------------------------------------------------------------
   4. ULTRA-COMPACT MOBILE PHONES (max-width: 420px)
   ------------------------------------------------------------------- */
@media (max-width: 420px) {
  .mobile-brand-logo {
    display: none !important; /* Save space for search & menu button on ultra-small phones */
  }

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

  .reports-summary-cards {
    grid-template-columns: 1fr;
  }

  .pill-stat {
    flex: 1 1 100%;
  }

  .ticket-passenger-row {
    grid-template-columns: 1fr;
  }

  .ticket-extra-details {
    grid-template-columns: 1fr;
  }

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

/* -------------------------------------------------------------------
   5. PRINTING ACROSS ALL DEVICES (Desktops, Laptops & Mobile Tablets)
   ------------------------------------------------------------------- */
@media print {
  body, .app-layout {
    height: auto !important;
    overflow: visible !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .sidebar,
  .top-navbar,
  .live-ticker-bar,
  .sidebar-backdrop,
  .btn-mobile-menu,
  .toast-container,
  .modal-actions-top {
    display: none !important;
  }

  .main-content,
  .content-container {
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .modal-overlay {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
  }

  .modal-dialog {
    box-shadow: none !important;
    max-width: 100% !important;
  }

  .printable-ticket {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
  }
}


