/* ============================================
   FLEETGO - Modern Car Booking System CSS
   Theme: Biru, Kuning, Putih
   ============================================ */

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

:root {
  /* === PRIMARY: BIRU === */
  --primary: #1A56DB;
  --primary-dark: #1342B5;
  --primary-light: #EBF2FF;
  --primary-gradient: linear-gradient(135deg, #1A56DB 0%, #3B82F6 100%);

  /* === ACCENT: KUNING === */
  --accent: #FBBF24;
  --accent-dark: #D97706;
  --accent-light: #FFFBEB;
  --accent-gradient: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);

  /* === NEUTRALS === */
  --dark: #0F172A;
  --dark-2: #1E293B;
  --dark-3: #334155;

  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  --white: #FFFFFF;

  /* === STATUS COLORS === */
  --success: #10B981;
  --warning: #F59E0B;
  --danger:  #EF4444;
  --info:    #3B82F6;

  /* === SHADOWS === */
  --border:     #E2E8F0;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:     0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-md:  0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-lg:  0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-xl:  0 25px 50px -12px rgba(0,0,0,0.25);
  --shadow-blue: 0 4px 14px rgba(26,86,219,0.35);

  /* === RADIUS === */
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* === TYPOGRAPHY === */
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  /* === LAYOUT === */
  --sidebar-width:  260px;
  --topbar-height:  64px;
  --transition:     all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--gray-50);
  color: var(--gray-800);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--dark);
}

/* Hero Side - background image support */
.auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 48px;
  overflow: hidden;
  background: var(--primary-gradient);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay gradient on top of image */
.auth-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(26, 86, 219, 0.55) 50%,
    rgba(26, 86, 219, 0.25) 100%
  );
  z-index: 0;
}

/* Yellow accent bar top */
.auth-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent-gradient);
  z-index: 2;
}

.auth-hero-content {
  position: relative;
  z-index: 1;
  color: white;
  width: 100%;
}

.auth-logo-hero {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.auth-logo-hero .logo-accent { color: var(--accent); }

.auth-tagline-hero {
  font-size: 15px;
  opacity: 0.85;
  max-width: 360px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

.auth-feature-icon {
  width: 30px; height: 30px;
  background: rgba(251,191,36,0.25);
  border: 1px solid rgba(251,191,36,0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.auth-stats-row {
  display: flex;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.auth-stat-item { text-align: center; }
.auth-stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}
.auth-stat-label { font-size: 11px; opacity: 0.65; text-transform: uppercase; letter-spacing: 0.5px; }

/* Upload overlay hint (shown when no image) */
.auth-hero-upload-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.auth-hero:hover .auth-hero-upload-hint { opacity: 1; }

/* Form Side */
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 72px;
  background: var(--dark-2);
}

.auth-form-wrapper { width: 100%; max-width: 380px; }

.auth-form-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.auth-form-logo .logo-accent { color: var(--accent); }

.auth-form-title  { font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.auth-form-subtitle { color: var(--gray-400); margin-bottom: 32px; font-size: 13.5px; }

/* Demo Accounts */
.demo-accounts {
  margin-top: 22px;
  padding: 14px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
}

.demo-accounts p { color: rgba(255,255,255,0.4); font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; font-weight: 700; }

.demo-account {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: var(--transition);
  border-radius: 6px;
  padding: 7px 6px;
}

.demo-account:last-child { border-bottom: none; }
.demo-account:hover { background: rgba(255,255,255,0.05); }
.demo-account-label { font-size: 12.5px; color: rgba(255,255,255,0.75); font-weight: 600; }
.demo-account-email { font-size: 11px; color: rgba(255,255,255,0.35); }
.demo-account-badge { font-size: 10px; padding: 2px 9px; border-radius: 20px; font-weight: 700; }
.badge-admin  { background: rgba(26,86,219,0.25);  color: #60A5FA; }
.badge-user   { background: rgba(251,191,36,0.2);  color: #FCD34D; }
.badge-driver { background: rgba(16,185,129,0.2);  color: #34D399; }

/* ============================================
   LAYOUT — SIDEBAR
   ============================================ */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  background: var(--dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: var(--transition);
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar-header {
  padding: 18px 22px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.sidebar-logo .logo-accent { color: var(--accent); }

.sidebar-logo-badge {
  background: var(--accent-gradient);
  color: var(--dark);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar-user {
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 11px;
}

.sidebar-avatar {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: white;
  flex-shrink: 0;
  border: 2px solid rgba(251,191,36,0.4);
}

.sidebar-user-info { overflow: hidden; flex: 1; }
.sidebar-user-name { font-weight: 700; font-size: 13px; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 10px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.7px; font-weight: 700; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 0; scrollbar-width: none; }
.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-section-label { padding: 10px 22px 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-600); }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 22px;
  color: var(--gray-400);
  font-size: 13.5px; font-weight: 500;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.nav-item:hover { color: var(--white); background: rgba(255,255,255,0.05); }

.nav-item.active {
  color: var(--white);
  background: rgba(26,86,219,0.25);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
}

.nav-item-icon { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.75; }
.nav-item.active .nav-item-icon { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  min-width: 18px; text-align: center;
}

.sidebar-footer { padding: 14px 22px; border-top: 1px solid rgba(255,255,255,0.06); }

.sidebar-logout {
  display: flex; align-items: center; gap: 10px;
  color: var(--gray-500);
  font-size: 13px; font-weight: 500;
  transition: var(--transition);
  padding: 8px 0;
  cursor: pointer;
}
.sidebar-logout:hover { color: var(--danger); }

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content { margin-left: var(--sidebar-width); flex: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* TOPBAR */
.topbar {
  height: var(--topbar-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 28px; gap: 16px;
  position: sticky; top: 0; z-index: 90;
  box-shadow: var(--shadow-sm);
}

.topbar-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--gray-900); flex: 1; }
.topbar-breadcrumb { font-size: 12px; color: var(--gray-400); font-weight: 400; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.topbar-notif {
  position: relative;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  cursor: pointer; transition: var(--transition);
  color: var(--gray-600); border: none;
}
.topbar-notif:hover { background: var(--primary-light); color: var(--primary); }

.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid white;
}

.topbar-avatar {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: white;
  cursor: pointer;
  border: 2px solid var(--accent);
}

/* PAGE CONTENT */
.page-content { padding: 28px; flex: 1; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

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

.card-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--gray-900); }
.card-subtitle { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.card-body { padding: 22px; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--border); background: var(--gray-50); }

/* STAT CARDS */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}

.stat-icon.green  { background: #D1FAE5; color: #065F46; }
.stat-icon.orange { background: #FEF3C7; color: #92400E; }
.stat-icon.blue   { background: var(--primary-light); color: var(--primary); }
.stat-icon.red    { background: #FEE2E2; color: #991B1B; }
.stat-icon.purple { background: #F3E5F5; color: #7B1FA2; }
.stat-icon.yellow { background: #FFFBEB; color: #92400E; }

.stat-info { flex: 1; }
.stat-value { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--gray-900); line-height: 1; }
.stat-label { font-size: 12px; color: var(--gray-500); margin-top: 4px; font-weight: 500; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 18px; }

.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-label .required { color: var(--danger); margin-left: 3px; }

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--gray-800);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}

.form-control::placeholder { color: var(--gray-400); }
.form-control.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }

.form-control-dark {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.1);
  color: var(--white);
}
.form-control-dark:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.25);
}
.form-control-dark::placeholder { color: rgba(255,255,255,0.3); }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }

.input-group { position: relative; }
.input-group .form-control { padding-left: 42px; }
.input-group-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }

.form-hint  { font-size: 11.5px; color: var(--gray-500); margin-top: 5px; }
.form-error { font-size: 11.5px; color: var(--danger);   margin-top: 5px; }

.form-row   { display: grid; grid-template-columns: 1fr 1fr;    gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600;
  border: none; cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font-body);
  text-decoration: none;
}

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

/* Primary = Biru */
.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 6px 20px rgba(26,86,219,0.45); transform: translateY(-1px); }

/* Secondary */
.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-secondary:hover:not(:disabled) { background: var(--gray-200); }

/* Danger */
.btn-danger { background: linear-gradient(135deg,#EF4444,#DC2626); color: white; box-shadow: 0 2px 8px rgba(239,68,68,0.3); }
.btn-danger:hover:not(:disabled) { box-shadow: 0 4px 16px rgba(239,68,68,0.4); transform: translateY(-1px); }

/* Warning = Kuning */
.btn-warning { background: var(--accent-gradient); color: var(--dark); font-weight: 700; }
.btn-warning:hover:not(:disabled) { box-shadow: 0 4px 14px rgba(245,158,11,0.4); transform: translateY(-1px); }

/* Info */
.btn-info { background: linear-gradient(135deg,#3B82F6,#2563EB); color: white; }

/* Outline */
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--gray-700); }
.btn-outline:hover:not(:disabled) { background: var(--gray-50); border-color: var(--gray-300); }

.btn-outline-primary { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline-primary:hover:not(:disabled) { background: var(--primary-light); }

.btn-sm  { padding: 6px 12px; font-size: 12px; }
.btn-lg  { padding: 13px 24px; font-size: 15px; }
.btn-xl  { padding: 15px 32px; font-size: 15px; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }

/* ============================================
   TABLE
   ============================================ */
.table-wrapper { overflow-x: auto; }

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

.table thead th {
  padding: 11px 16px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  white-space: nowrap; text-align: left;
}

.table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700); font-size: 13.5px;
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--primary-light); }

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3px; white-space: nowrap;
}

.badge-success   { background: #D1FAE5; color: #065F46; }
.badge-warning   { background: #FEF3C7; color: #92400E; }
.badge-danger    { background: #FEE2E2; color: #991B1B; }
.badge-info      { background: var(--primary-light); color: var(--primary-dark); }
.badge-secondary { background: var(--gray-100); color: var(--gray-600); }
.badge-dark      { background: var(--gray-800); color: var(--white); }
.badge-primary   { background: var(--primary-light); color: var(--primary-dark); }

/* ============================================
   ALERTS
   ============================================ */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500;
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px;
}

.alert-success { background: #D1FAE5; color: #065F46; border-left: 3px solid #10B981; }
.alert-danger  { background: #FEE2E2; color: #991B1B; border-left: 3px solid #EF4444; }
.alert-warning { background: #FEF3C7; color: #92400E; border-left: 3px solid #F59E0B; }
.alert-info    { background: var(--primary-light); color: var(--primary-dark); border-left: 3px solid var(--primary); }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

.modal-lg { max-width: 700px; }
.modal-xl { max-width: 900px; }

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

.modal-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--gray-900); }

.modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  border: none; cursor: pointer;
  color: var(--gray-500); font-size: 16px;
  transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-700); }

.modal-body { padding: 22px; }
.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
  background: var(--gray-50);
}

/* ============================================
   BOOKING CARDS
   ============================================ */
.booking-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 14px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.booking-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.booking-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.booking-code { font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--primary); letter-spacing: 0.5px; text-transform: uppercase; }
.booking-destination { font-size: 16px; font-weight: 800; color: var(--gray-900); margin-top: 3px; }

.booking-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.booking-meta-item { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--gray-500); }

.booking-card-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

.driver-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary-light);
  padding: 5px 10px 5px 5px;
  border-radius: var(--radius-full);
}

.driver-chip-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: white;
}

.driver-chip-name { font-size: 12px; font-weight: 600; color: var(--primary-dark); }

/* ============================================
   TIMELINE
   ============================================ */
.timeline { position: relative; padding-left: 20px; }

.timeline::before {
  content: ''; position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px; background: var(--gray-200);
}

.timeline-item { position: relative; padding: 0 0 22px 24px; }

.timeline-item::before {
  content: ''; position: absolute;
  left: -14px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gray-300);
}

.timeline-item.active::before { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.2); }
.timeline-item.done::before { background: var(--success); border-color: var(--success); }

.timeline-title { font-weight: 700; font-size: 13px; color: var(--gray-800); }
.timeline-desc  { font-size: 12px; color: var(--gray-500); margin-top: 3px; }
.timeline-time  { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

/* ============================================
   NOTIFICATION PANEL
   ============================================ */
.notif-panel {
  position: absolute;
  top: calc(var(--topbar-height) - 4px); right: 24px;
  width: 360px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  z-index: 200; display: none; overflow: hidden;
}
.notif-panel.active { display: block; }

.notif-panel-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--primary-gradient);
  color: white;
}

.notif-panel-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: white; }

.notif-list { max-height: 360px; overflow-y: auto; }

.notif-item {
  padding: 13px 18px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer; transition: var(--transition);
  display: flex; gap: 12px;
}
.notif-item:hover { background: var(--gray-50); }
.notif-item.unread { background: var(--primary-light); }

.notif-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  background: var(--gray-100);
}

.notif-body { flex: 1; }
.notif-title { font-size: 13px; font-weight: 600; color: var(--gray-800); }
.notif-msg   { font-size: 12px; color: var(--gray-500); margin-top: 2px; line-height: 1.4; }
.notif-time  { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

/* ============================================
   PHOTO UPLOAD
   ============================================ */
.photo-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-50);
  position: relative; overflow: hidden;
}
.photo-upload:hover { border-color: var(--primary); background: var(--primary-light); }
.photo-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-upload-icon { font-size: 34px; margin-bottom: 10px; }
.photo-upload-text { font-size: 13px; color: var(--gray-500); font-weight: 500; }
.photo-upload-hint { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

.photo-preview { width: 100%; border-radius: var(--radius); overflow: hidden; margin-top: 12px; display: none; }
.photo-preview img { width: 100%; object-fit: cover; max-height: 200px; }

/* ============================================
   FUEL GAUGE
   ============================================ */
.fuel-options { display: flex; gap: 8px; flex-wrap: wrap; }

.fuel-option {
  flex: 1; min-width: 60px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  text-align: center; cursor: pointer;
  transition: var(--transition);
  font-size: 12px; font-weight: 600;
}
.fuel-option:hover   { border-color: var(--primary); background: var(--primary-light); }
.fuel-option.selected{ border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }

.fuel-bar { height: 8px; background: var(--gray-200); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.fuel-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.fuel-bar-fill.fuel-full { background: var(--success); width: 100%; }
.fuel-bar-fill.fuel-3q   { background: #86EFAC; width: 75%; }
.fuel-bar-fill.fuel-half { background: var(--accent); width: 50%; }
.fuel-bar-fill.fuel-1q   { background: #FB923C; width: 25%; }
.fuel-bar-fill.fuel-empty{ background: var(--danger); width: 5%; }

/* ============================================
   DASHBOARD HERO
   ============================================ */
.dash-hero {
  background: var(--primary-gradient);
  border-radius: var(--radius-xl);
  padding: 26px 30px;
  color: white;
  margin-bottom: 24px;
  position: relative; overflow: hidden;
  border-bottom: 4px solid var(--accent);
}

.dash-hero::before {
  content: '🚗';
  position: absolute; right: 20px; bottom: -10px;
  font-size: 90px; opacity: 0.12;
  transform: scaleX(-1);
}

/* Yellow stripe at top */
.dash-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.dash-hero-greeting { font-size: 13px; opacity: 0.8; margin-bottom: 5px; }
.dash-hero-name     { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.dash-hero-sub      { font-size: 13px; opacity: 0.8; margin-top: 8px; }

/* ============================================
   QUICK ACTIONS
   ============================================ */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.quick-action {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  border: 1.5px solid var(--border);
  cursor: pointer; transition: var(--transition);
  text-align: center; color: var(--gray-700);
  text-decoration: none;
}

.quick-action:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--primary-dark);
}

.quick-action-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; transition: var(--transition);
}

.quick-action:hover .quick-action-icon { background: var(--primary-gradient); }
.quick-action-label { font-size: 12.5px; font-weight: 700; }

/* ============================================
   EXPENSE ITEMS
   ============================================ */
.expense-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: var(--radius);
  background: var(--gray-50); margin-bottom: 10px;
}

.expense-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.expense-info { flex: 1; }
.expense-type   { font-size: 13px; font-weight: 700; color: var(--gray-800); }
.expense-desc   { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.expense-amount { font-size: 14px; font-weight: 700; color: var(--gray-900); font-family: var(--font-display); }

/* ============================================
   TOAST
   ============================================ */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }

.toast {
  background: var(--gray-900);
  color: white;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: 10px;
  min-width: 280px; max-width: 380px;
  animation: toastIn 0.3s ease;
  border-left: 3px solid var(--primary);
}

.toast.toast-success { border-color: var(--success); }
.toast.toast-error   { border-color: var(--danger); }
.toast.toast-warning { border-color: var(--accent); }

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

/* Spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   UTILITIES
   ============================================ */
.text-primary   { color: var(--primary)  !important; }
.text-accent    { color: var(--accent)   !important; }
.text-danger    { color: var(--danger)   !important; }
.text-success   { color: var(--success)  !important; }
.text-warning   { color: var(--warning)  !important; }
.text-muted     { color: var(--gray-500) !important; }
.text-sm        { font-size: 12px   !important; }
.text-xs        { font-size: 11px   !important; }
.font-bold      { font-weight: 700  !important; }
.font-semibold  { font-weight: 600  !important; }
.font-display   { font-family: var(--font-display) !important; }

.d-flex          { display: flex   !important; }
.d-none          { display: none   !important; }
.align-center    { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-8  { gap: 8px  !important; }
.gap-12 { gap: 12px !important; }
.gap-16 { gap: 16px !important; }
.flex-1 { flex: 1   !important; }

.mt-8  { margin-top: 8px   !important; }
.mt-12 { margin-top: 12px  !important; }
.mt-16 { margin-top: 16px  !important; }
.mt-24 { margin-top: 24px  !important; }
.mb-8  { margin-bottom: 8px  !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }

.w-full { width: 100% !important; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ============================================
   RESPONSIVE — MOBILE FIRST (TOTAL OVERHAUL)
   ============================================ */

/* =============================================
   TABLET (≤1024px) — Sidebar drawer
   ============================================= */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 500;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    box-shadow: none;
    width: 260px;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 6px 0 32px rgba(0,0,0,0.28);
  }
  .main-content { margin-left: 0; }
  #menuBtn { display: flex !important; }

  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.5);
    z-index: 499;
    backdrop-filter: blur(2px);
  }
  .sidebar-overlay.active { display: block; }

  /* Bottom nav visible */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 58px;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
    z-index: 400;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .page-content {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* =============================================
   MOBILE (≤768px) — Full mobile-first layout
   ============================================= */
@media (max-width: 768px) {
  /* ---- Auth ---- */
  .auth-page { grid-template-columns: 1fr !important; }
  .auth-hero { display: none !important; }
  .auth-form-side { padding: 28px 20px; }

  /* ---- Base spacing ---- */
  .page-content { padding: 10px !important; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar-title { font-size: 15px; }

  /* ---- Stat cards: 2x2 ---- */
  .stat-cards { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; margin-bottom: 14px; }
  .stat-card { padding: 12px; gap: 10px; }
  .stat-icon { width: 40px; height: 40px; font-size: 17px; }
  .stat-value { font-size: 19px; }
  .stat-label { font-size: 11px; }

  /* ---- Cards ---- */
  .card-body { padding: 12px; }
  .card-header { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .card-footer { padding: 10px 14px; }
  .card-title { font-size: 14px; }
  .mb-24 { margin-bottom: 14px !important; }

  /* ---- Forms ---- */
  .form-row, .form-row-3 { grid-template-columns: 1fr !important; }
  /* Prevent iOS auto-zoom on input focus */
  .form-control, select, textarea, input[type="text"],
  input[type="email"], input[type="number"], input[type="date"],
  input[type="time"], input[type="password"] {
    font-size: 16px !important;
    padding: 11px 13px;
  }

  /* ---- Tables → always card layout on mobile ---- */
  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Tables that have class table-mobile-card become stacked cards */
  .table-mobile-card thead { display: none !important; }
  .table-mobile-card tbody tr {
    display: block;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
  }
  .table-mobile-card tbody tr:last-child { border-bottom: none; }
  .table-mobile-card tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 12.5px;
    line-height: 1.4;
  }
  .table-mobile-card tbody td:last-child { border-bottom: none; padding-top: 10px; }
  .table-mobile-card tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 10.5px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    flex-shrink: 0;
    min-width: 80px;
    padding-top: 1px;
  }
  .hide-mobile { display: none !important; }

  /* ---- Buttons ---- */
  .btn { font-size: 13px; padding: 9px 14px; }
  .d-flex.gap-8 { flex-wrap: wrap; gap: 6px !important; }

  /* ---- Notification panel: full width ---- */
  .notif-panel {
    position: fixed !important;
    top: var(--topbar-height) !important;
    left: 6px !important; right: 6px !important;
    width: auto !important;
    border-radius: var(--radius-lg);
    max-height: calc(100svh - var(--topbar-height) - 12px);
    overflow-y: auto;
  }

  /* ---- Booking cards ---- */
  .booking-card { padding: 14px; }
  .booking-destination { font-size: 14px; }
  .booking-meta { gap: 6px; }
  .booking-meta-item { font-size: 11.5px; }
  .booking-card-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* ---- Quick actions ---- */
  .quick-actions { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }

  /* ---- Dashboard hero ---- */
  .dash-hero { padding: 16px 16px 20px; margin-bottom: 14px; }
  .dash-hero-name { font-size: 16px; }
  .dash-hero::before { font-size: 55px; opacity: 0.1; }

  /* ---- Modal: bottom sheet ---- */
  .modal-overlay { align-items: flex-end !important; padding: 0 !important; }
  .modal {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 94svh;
    overflow-y: auto;
  }
  .modal-header { padding: 14px 16px !important; }
  .modal-body { padding: 14px 16px !important; }
  .modal-footer { padding: 12px 16px !important; position: sticky; bottom: 0; background: var(--white); z-index: 2; gap: 8px; }
  .modal-footer .btn { flex: 1; justify-content: center; }

  /* ---- Generic inline grids: override to 1 column ---- */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:1fr 340px"],
  [style*="grid-template-columns: 1fr 340px"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns:repeat(auto-fill"],
  [style*="grid-template-columns: repeat(auto-fill"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns:repeat(auto-fit"],
  [style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ---- Toast ---- */
  #toast-container {
    bottom: 74px !important;
    right: 10px !important;
    left: 10px !important;
  }
  .toast { font-size: 13px; width: 100%; min-width: 0 !important; }

  /* ---- Fuel options ---- */
  .fuel-option { font-size: 11px; padding: 8px 5px; min-width: 44px; }

  /* ---- Page header ---- */
  .page-header, [style*="justify-content:flex-end"],
  [style*="justify-content: flex-end"] { flex-wrap: wrap; }

  /* ---- Dashboard 3-day grid ---- */
  .days3-grid { grid-template-columns: 1fr !important; }

  /* ---- Weekly calendar: collapse to list ---- */
  .weekly-calendar-table { display: none !important; }
  .weekly-calendar-list { display: block !important; }

  /* ---- Driver schedule page: calendar fills full width ---- */
  .driver-schedule-layout { grid-template-columns: 1fr !important; }

  /* ---- Calendar cells: tighter ---- */
  .cal-cell { min-height: 46px !important; padding: 3px !important; }

  /* ---- Reports: smaller text ---- */
  .chart-container { height: 200px !important; }

  /* ---- Profile ---- */
  .profile-grid { grid-template-columns: 1fr !important; }

  /* ---- Booking detail 2-col info blocks → 1 col ---- */
  .info-2col { grid-template-columns: 1fr !important; }
  .badge { font-size: 10.5px; padding: 2px 9px; }
}

/* =============================================
   SMALL PHONES (≤480px)
   ============================================= */
@media (max-width: 480px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr) !important; gap: 7px; }
  .stat-card { padding: 10px 10px; gap: 8px; }
  .stat-value { font-size: 17px; }
  .stat-icon { width: 36px; height: 36px; font-size: 15px; }

  .topbar-title {
    font-size: 13px;
    max-width: 140px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }

  .quick-actions { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }

  .booking-meta { flex-wrap: wrap; gap: 4px; }

  /* All action button groups stack vertically */
  .booking-actions, .action-btns {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
  }
  .booking-actions .btn, .action-btns .btn {
    width: 100% !important; text-align: center; justify-content: center;
  }

  /* Full width pending approval buttons */
  .approve-btns { display: flex; flex-direction: column; gap: 6px; }
  .approve-btns .btn { width: 100%; justify-content: center; }
}

/* =============================================
   TOUCH DEVICE — Remove hover effects, bigger targets
   ============================================= */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 44px; }
  .nav-item { min-height: 48px; }
  .form-control, select { min-height: 46px; }
  .notif-item { min-height: 48px; }
  .booking-card:hover { transform: none !important; box-shadow: var(--shadow-sm) !important; border-color: var(--border) !important; }
  .stat-card:hover { transform: none !important; }
  .table tbody tr:hover td { background: transparent !important; }
  .quick-action:hover { transform: none !important; }
}

/* =============================================
   SAFE AREA (iPhone notch/home indicator)
   ============================================= */
@supports (padding: env(safe-area-inset-bottom)) {
  .topbar {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .sidebar { padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(58px + env(safe-area-inset-bottom));
  }
}

/* =============================================
   PRINT
   ============================================= */
@media print {
  .sidebar, .topbar, .btn, .modal-footer,
  .mobile-bottom-nav { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .page-content { padding: 0 !important; }
  .card { box-shadow: none !important; }
}

/* =============================================
   MOBILE BOTTOM NAVIGATION BAR
   ============================================= */
.mobile-bottom-nav { display: none; }

.mobile-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-decoration: none;
  color: var(--gray-400);
  font-size: 9.5px;
  font-weight: 600;
  transition: color 0.15s;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 0;
  min-height: 44px;
  letter-spacing: 0.1px;
}
.mobile-bottom-nav-item.active { color: var(--primary); }
.mobile-bottom-nav-item.active .mbn-icon {
  background: var(--primary-light);
  border-radius: 10px;
}
.mbn-icon {
  font-size: 19px;
  width: 34px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.mbn-label { font-size: 9px; line-height: 1; }
.mbn-badge {
  position: absolute;
  top: 3px; right: calc(50% - 22px);
  background: var(--danger);
  color: white;
  font-size: 9px; font-weight: 800;
  min-width: 15px; height: 15px;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--white);
}

/* =============================================
   WEEKLY CALENDAR — List mode (shown only on mobile via CSS)
   ============================================= */
.weekly-calendar-list { display: none; }

/* Cars grid: 1 col on small phones */
@media (max-width: 480px) {
  [style*="minmax(260px"] {
    grid-template-columns: 1fr !important;
  }
  /* Stat detail rows in auto-fit grids */
  [style*="minmax(140px"], [style*="minmax(160px"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  [style*="minmax(260px"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Status tab scrollable row */
.status-tabs::-webkit-scrollbar { display: none; }
.status-tabs { -ms-overflow-style: none; }

/* Driver schedule calendar: smaller cells on mobile */
@media (max-width: 768px) {
  .cal-cell { min-height: 44px !important; padding: 2px !important; }
  .cal-cell > div:first-child { font-size: 11px !important; }
  .cal-cell > div:not(:first-child) { font-size: 7px !important; padding: 1px 2px !important; }
}
@media (max-width: 480px) {
  .cal-cell { min-height: 36px !important; border-radius: 4px !important; }
  .cal-cell > div:first-child { font-size: 10px !important; }
  /* Hide text labels in tiny calendar cells, keep only color coding */
  .cal-cell > div:not(:first-child) { display: none !important; }
  .cal-cell[data-has-event]::after {
    content: '•';
    display: block;
    text-align: center;
    font-size: 10px;
    color: var(--danger);
    margin-top: 1px;
  }
}
