    :root {
      /* Mercor-inspired color palette */
      --primary: #2563eb;
      --primary-light: #3b82f6;
      --primary-dark: #1d4ed8;
      --secondary: #64748b;
      --secondary-light: #94a3b8;
      --background: #f8fafc;
      --surface: #ffffff;
      --surface-elevated: #ffffff;
      --text: #0f172a;
      --text-secondary: #475569;
      --text-muted: #64748b;
      --text-light: #94a3b8;
      --accent: #f1f5f9;
      --accent-light: #f8fafc;
      --border: #e2e8f0;
      --border-light: #f1f5f9;
      --success: #10b981;
      --success-light: #d1fae5;
      --warning: #f59e0b;
      --warning-light: #fef3c7;
      --danger: #ef4444;
      --danger-light: #fee2e2;
      --info: #06b6d4;
      --info-light: #cffafe;
      
      /* Shadows - Mercor style */
      --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
      --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
      --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
      --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
      --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
      
      /* Border radius - Mercor style */
      --radius-xs: 4px;
      --radius-sm: 6px;
      --radius-md: 8px;
      --radius-lg: 12px;
      --radius-xl: 16px;
      --radius-2xl: 20px;
      
      /* Spacing - Mercor 8px grid */
      --space-1: 0.25rem;  /* 4px */
      --space-2: 0.5rem;   /* 8px */
      --space-3: 0.75rem;  /* 12px */
      --space-4: 1rem;     /* 16px */
      --space-5: 1.25rem;  /* 20px */
      --space-6: 1.5rem;   /* 24px */
      --space-8: 2rem;     /* 32px */
      --space-10: 2.5rem;  /* 40px */
      --space-12: 3rem;    /* 48px */
      
      /* Focus states */
      --focus: 0 0 0 3px rgba(37, 99, 235, 0.1);
      --focus-ring: 0 0 0 2px var(--primary);
    }

    * { 
      margin: 0; 
      padding: 0; 
      box-sizing: border-box; 
    }
    
    html, body { 
      height: 100%; 
    }
    
    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
      background: var(--background);
      color: var(--text);
      line-height: 1.5;
      font-size: 14px;
      font-weight: 400;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      padding-top: 80px; /* Account for fixed topbar */
    }

    /* Typography scale - Mercor style */
    .text-xs { font-size: 12px; line-height: 1.5; }
    .text-sm { font-size: 14px; line-height: 1.5; }
    .text-base { font-size: 16px; line-height: 1.5; }
    .text-lg { font-size: 18px; line-height: 1.4; }
    .text-xl { font-size: 20px; line-height: 1.4; }
    .text-2xl { font-size: 24px; line-height: 1.3; }
    .text-3xl { font-size: 30px; line-height: 1.2; }

    .font-medium { font-weight: 500; }
    .font-semibold { font-weight: 600; }
    .font-bold { font-weight: 700; }

    .text-primary { color: var(--text); }
    .text-secondary { color: var(--text-secondary); }
    .text-muted { color: var(--text-muted); }
    .text-light { color: var(--text-light); }

    /* Topbar - Mercor style */
    .topbar {
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      padding: var(--space-4) var(--space-8);
      box-shadow: var(--shadow-sm);
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      width: 100%;
      z-index: 1000;
      margin: 0;
      backdrop-filter: blur(8px);
      background: rgba(255, 255, 255, 0.95);
    }

    .logo {
      text-decoration: none;
      color: inherit;
      display: inline-block;
      transition: transform 0.2s ease;
    }
    .logo:hover { transform: translateY(-1px); }
    .logo-container { display: flex; align-items: center; gap: 12px; }

    .logo-icon {
      width: 40px;
      height: 40px;
      background: #28a745;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .logo-icon span { color: white; font-weight: 700; font-size: 20px; font-family: 'Poppins', sans-serif; }
    .logo-text { font-size: 1.5rem; font-weight: 700; color: var(--primary); font-family: 'Poppins', sans-serif; }

    /* Page Container - Mercor style */
    .driver-schedules-container {
      max-width: 1280px;
      margin: 0 auto;
      padding: var(--space-8);
      min-height: 100vh;
    }

    /* Header - Mercor style */
    .schedules-header {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-sm);
      padding: var(--space-8);
      margin-bottom: var(--space-6);
    }

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

    .header-text {
      flex: 1;
      min-width: 0;
    }
    .header-title {
      display: flex; 
      align-items: center; 
      gap: var(--space-3);
      font-size: 28px; 
      font-weight: 600; 
      color: var(--text);
      line-height: 1.2;
    }
    .header-title i { 
      color: var(--primary); 
      font-size: 24px; 
    }
    .header-subtitle { 
      color: var(--text-muted); 
      font-size: 16px; 
      margin-top: var(--space-2);
      font-weight: 400;
    }

    /* Back button */
    .schedules-header .btn-back {
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: .6rem;
      padding: .85rem 1.4rem;
      border-radius: var(--radius-lg);
      font-weight: 700;
      letter-spacing: .01em;
      color: #fff;
      background: linear-gradient(135deg, #22c55e, #15803d);
      box-shadow: 0 12px 24px rgba(21, 128, 61, 0.35);
      transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    }
    .schedules-header .btn-back i {
      font-size: 1rem;
    }
    .schedules-header .btn-back:hover {
      transform: translateY(-2px) scale(1.01);
      box-shadow: 0 16px 30px rgba(22, 163, 74, 0.4);
    }
    .schedules-header .btn-back:focus-visible {
      outline: none;
      box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
    }


    /* Tabs - Mercor style */
    .view-tabs {
      display: flex; 
      gap: 0;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
      margin-bottom: var(--space-6);
    }
    .tab-button {
      flex: 1; 
      padding: var(--space-4) var(--space-5); 
      border: 0; 
      background: var(--surface);
      color: var(--text-muted); 
      font-weight: 500; 
      font-size: 14px;
      cursor: pointer;
      display: flex; 
      align-items: center; 
      justify-content: center; 
      gap: var(--space-2);
      transition: all 0.2s ease;
      position: relative;
    }
    .tab-button i { 
      font-size: 16px; 
    }
    .tab-button:hover:not(.active) { 
      background: var(--accent); 
      color: var(--text); 
    }
    .tab-button:focus-visible { 
      outline: none; 
      box-shadow: var(--focus) inset; 
    }
    .tab-button.active {
      background: var(--primary); 
      color: white;
      font-weight: 600;
    }
    .tab-button.active::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: white;
    }
    .tab-content { display: none; }
    .tab-content.active { display: block; }

    /* Form Controls - Select Dropdown */
    select {
      width: 100%;
      padding: 0.75rem 2.5rem 0.75rem 1rem;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      font-size: 14px;
      font-weight: 500;
      color: var(--text);
      font-family: 'Inter', sans-serif;
      cursor: pointer;
      transition: all 0.2s ease;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.41 0L6 4.58L10.59 0L12 1.41l-6 6l-6-6z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 0.75rem center;
      background-size: 12px;
      box-shadow: var(--shadow-xs);
    }

    select:hover {
      border-color: var(--primary-light);
      background-color: var(--accent-light);
    }

    select:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
      background-color: var(--surface);
    }

    select:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      background-color: var(--accent);
    }

    /* Filter Row Styling */
    .filter-row {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }

    .filter-row label {
      font-weight: 600;
      color: var(--text);
      font-size: 14px;
    }

    .filter-row #slot-count {
      color: var(--text-muted);
      font-size: 13px;
      margin-top: 0.25rem;
    }

    /* Empty + Loading */
    .empty-state, .loading {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      text-align: center;
      padding: 3rem 1.5rem;
      color: var(--muted);
    }
    .empty-state { background: linear-gradient(135deg, var(--accent), #f8fbff); border: 1px solid rgba(39,70,144,.1); }
    .empty-state i { font-size: 3.25rem; color: var(--primary); opacity: .8; margin-bottom: 1rem; }
    .empty-state h3 { color: var(--primary); font-weight: 700; font-size: 1.35rem; margin-bottom: .5rem; }

    .loading { display: flex; align-items: center; justify-content: center; gap: .75rem; }
    .loading i { font-size: 1.6rem; color: var(--primary); animation: spin 1s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* Slot groups (collapsible) */
    .slot-group {
      margin-bottom: 1rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: var(--surface);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
      transition: box-shadow .2s ease, transform .2s ease;
    }
    .slot-group:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
    .slot-header {
      display: flex; align-items: center; justify-content: space-between; gap: 1rem;
      padding: 1rem 1.25rem;
      background: linear-gradient(135deg, var(--accent), #f8fbff);
      color: var(--primary);
      cursor: pointer; user-select: none;
      border-bottom: 3px solid var(--primary);
      transition: all 0.2s ease;
    }
    .slot-header:hover {
      background: linear-gradient(135deg, #e3f2fd, #f0f8ff);
      transform: translateY(-1px);
    }
    .slot-title {
      display: flex; align-items: center; gap: .6rem;
      font-size: 1.15rem; font-weight: 700; color: var(--primary);
    }
    .request-status {
      padding: .3rem .6rem;
      border-radius: 999px;
      font-size: .75rem;
      font-weight: 700;
      text-transform: uppercase;
    }
    .status-accepted { background: #d4edda; color: #155724; }
    .status-pending { background: #fff3cd; color: #856404; }
    .status-rejected { background: #f8d7da; color: #842029; }
    .slot-meta {
      display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .95rem; margin-top: .35rem;
    }
    .slot-header i { color: var(--primary); transition: transform .25s ease; }
    .slot-group.expanded .slot-header i { transform: rotate(180deg); }

    .slot-content { display: none; }
    .slot-group.expanded .slot-content { display: block; }

    .slot-schedules { padding: 1rem 1.25rem 1.25rem; background: var(--surface); }

    /* Slot group container for daily routes */
    .slot-group-container {
      background: var(--surface-elevated);
      border: 1px solid var(--border-light);
      border-radius: var(--radius);
      margin-bottom: 1.5rem;
      padding: 1rem;
      border-left: 4px solid var(--primary);
    }
    .slot-group-header {
      margin-bottom: 1rem;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid var(--border-light);
    }
    .slot-group-title {
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .slot-group-title i {
      color: var(--primary);
    }
    .slot-group-routes {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    /* Slot details styling */
    .slot-details {
      padding: 1rem 1.5rem;
      background: #f8f9fa;
      border-bottom: 1px solid var(--border);
      margin-bottom: 0.5rem;
    }
    .slot-details:empty { display: none; }
    .slot-detail-item {
      display: flex; align-items: center; gap: 0.5rem;
      margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--muted);
    }
    .slot-detail-item:last-child { margin-bottom: 0; }

    /* Passenger group */
    .passenger-group {
      margin-bottom: 1rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: var(--surface);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
      transition: box-shadow .2s ease, transform .2s ease;
    }
    .passenger-group:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
    .passenger-group-header {
      display: flex; align-items: center; justify-content: space-between; gap: 1rem;
      padding: .9rem 1.1rem;
      background: linear-gradient(135deg, var(--primary), var(--primary-light));
      color: #fff; cursor: pointer; user-select: none;
      transition: all 0.2s ease;
    }
    .passenger-group-header:hover {
      background: linear-gradient(135deg, var(--primary-light), #4a7cff);
      transform: translateY(-1px);
    }
    .passenger-group .expand-icon { transition: transform .25s ease; color: #fff; }
    .passenger-group.expanded .expand-icon { transform: rotate(180deg); }

    .passenger-info { display: flex; align-items: center; gap: .75rem; }
    .passenger-avatar {
      width: 40px; height: 40px; border-radius: 50%;
      background: rgba(255,255,255,.22); color: #fff; display: grid; place-items: center;
      font-weight: 700; font-size: 1rem;
    }
    .passenger-details h4 { color: #fff; font-weight: 700; font-size: 1.05rem; }
    .passenger-details p { color: rgba(255,255,255,.92); font-size: .9rem; }
    .passenger-stats { display: flex; align-items: center; gap: .6rem; }
    .date-count {
      padding: .25rem .6rem; border-radius: 999px; background: rgba(255,255,255,.22);
      color: #fff; font-size: .8rem; font-weight: 600;
    }

    .passenger-content {
      display: none;
      background: var(--surface);
    }
    .passenger-group.expanded .passenger-content {
      display: block;
      padding: 1rem;
    }

    /* Month group (collapsible) */
    .month-group {
      margin: 0.5rem 0;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      background: var(--surface);
      overflow: hidden;
      box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    .month-header {
      display: flex; align-items: center; justify-content: space-between; gap: .6rem;
      padding: .75rem 1rem;
      background: linear-gradient(135deg, var(--primary), var(--primary-light));
      color: #fff; user-select: none;
    }
    .month-actions {
      display: flex; gap: .4rem; flex-wrap: wrap;
    }
    .month-actions .small-btn {
      border: 1px solid rgba(255,255,255,.5);
      background: rgba(255,255,255,.15);
      color: #fff;
      border-radius: 8px;
      padding: .25rem .5rem;
      font-size: .75rem;
      font-weight: 700;
      cursor: pointer;
    }
    .month-actions .small-btn:hover { background: rgba(255,255,255,.25); }
    .month-group .expand-icon { margin-left: .5rem; }
    .month-info { display: flex; align-items: center; gap: .6rem; }
    .month-name { font-weight: 700; }
    .month-stats { font-size: .85rem; opacity: .95; }

    @media (max-width: 640px) {
      .month-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
      }
      .month-actions {
        width: 100%;
        justify-content: flex-start;
      }
      .month-actions .small-btn {
        flex: 1 1 calc(50% - 0.5rem);
        text-align: center;
      }
    }

    .month-content {
      display: none;
      background: var(--surface);
    }
    .month-group.expanded .month-content {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      padding: 0.5rem;
    }

    /* Date rows */
    .date-row {
      display: grid;
      grid-template-columns: 28px 1fr auto auto;
      gap: 1.5rem;
      align-items: center;
      padding: 1.5rem 1.75rem;
      margin: 0.75rem 0.5rem;
      border-radius: 16px;
      border: 2px solid var(--border);
      background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
      transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
      position: relative;
      overflow: hidden;
    }
    .date-row::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 100%;
      background: linear-gradient(180deg, var(--primary), var(--primary-light));
      opacity: 0;
      transition: opacity .3s ease;
    }
    .date-row:hover {
      background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
      border-color: var(--primary);
      transform: translateY(-3px);
      box-shadow: 0 12px 24px rgba(39, 70, 144, 0.12), 0 4px 8px rgba(39, 70, 144, 0.08);
    }
    .date-row:hover::before {
      opacity: 1;
    }
    .date-row > div:nth-child(2) { 
      display: flex; 
      flex-direction: column; 
      gap: 0.65rem; 
    }
    .date-row > div:nth-child(2) > div:first-child { 
      font-size: 1.1rem; 
      font-weight: 700; 
      color: var(--text);
      letter-spacing: -0.01em;
    }
    .date-row > div:nth-child(2) > div:last-child { 
      font-size: 0.9rem; 
      color: var(--muted); 
      line-height: 1.4;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    @media (max-width: 640px) {
      .date-row {
        grid-template-columns: auto 1fr;
        grid-template-areas:
          "checkbox info"
          "status status"
          "actions actions";
        padding: 1.1rem;
        gap: 0.75rem;
      }
      .date-row input[type="checkbox"] {
        grid-area: checkbox;
        justify-self: center;
        margin-right: 0;
      }
      .date-row > div:nth-child(2) {
        grid-area: info;
      }
      .date-row .status-pill {
        grid-area: status;
        justify-self: flex-start;
      }
      .date-row .date-actions {
        grid-area: actions;
        flex-wrap: wrap;
      }
      .date-row .date-actions .action-btn {
        flex: 1 1 calc(50% - 0.25rem);
        justify-content: center;
      }
      .date-row .completion-badge,
      .date-row .terminal-badge {
        grid-area: actions;
        justify-self: flex-start;
      }
    }

    /* Custom Checkbox Styling */
    .date-row input[type="checkbox"] {
      appearance: none;
      -webkit-appearance: none;
      width: 20px;
      height: 20px;
      border: 2px solid #cbd5e1;
      border-radius: 6px;
      cursor: pointer;
      position: relative;
      transition: all .25s ease;
      background: #fff;
      flex-shrink: 0;
    }
    .date-row input[type="checkbox"]:hover {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(39, 70, 144, 0.1);
    }
    .date-row input[type="checkbox"]:checked {
      background: linear-gradient(135deg, var(--primary), var(--primary-light));
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(39, 70, 144, 0.15);
    }
    .date-row input[type="checkbox"]:checked::after {
      content: '\f00c';
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: #fff;
      font-size: 11px;
    }

    .status-pill {
      padding: .6rem 1.2rem;
      border-radius: 999px;
      font-size: .75rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .8px;
      border: 2px solid transparent;
      min-width: 100px;
      text-align: center;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      transition: all .2s ease;
      backdrop-filter: blur(8px);
    }
    .status-pill:hover {
      transform: scale(1.05);
      box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }
    .pill-pending {
      background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
      color: #6f5200;
      border-color: #ffc107;
      box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    }
    .pill-accepted {
      background: linear-gradient(135deg, #d4edda 0%, #95e1a7 100%);
      color: #155724;
      border-color: #28a745;
      box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    }
    .pill-rejected {
      background: linear-gradient(135deg, #f8d7da 0%, #ffb3ba 100%);
      color: #7d2430;
      border-color: #dc3545;
      box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    }
    .pill-completed {
      background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
      color: #047857;
      border-color: #10b981;
      box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }
    .pill-cancelled {
      background: linear-gradient(135deg, #e2e3e5, #ced4da);
      color: #495057;
    }

    /* Slot Status Bar */
    .slot-status-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-top: 0.5rem;
    }
    .status-count-pill {
      padding: 0.2rem 0.55rem;
      border-radius: 999px;
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.3px;
      white-space: nowrap;
      box-shadow: 0 1px 3px rgba(0,0,0,0.15);
      border: none;
      min-width: auto;
    }

    /* Passenger-level status pills */
    .staff-status-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      align-items: center;
    }
    .staff-status-pills .status-count-pill {
      font-size: 0.65rem;
      padding: 0.15rem 0.45rem;
    }

    /* Pending pulse animation */
    @keyframes pendingPulse {
      0%, 100% { box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
      50% { box-shadow: 0 0 8px rgba(111,82,0,0.45); }
    }
    .pulse-pending {
      animation: pendingPulse 2s ease-in-out infinite;
    }

    /* ======================================
     * TIMESHEET SPECIFIC STYLES
     * ====================================== */

    /* Date groups for timesheets */
    .date-group {
      margin-bottom: 1.5rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      background: var(--surface);
      box-shadow: var(--shadow-md);
      overflow: hidden;
      transition: box-shadow .2s ease, transform .2s ease;
    }
    .date-group:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }

    .date-header {
      display: flex; align-items: center; justify-content: space-between; gap: 1rem;
      padding: 1.25rem 1.5rem;
      background: linear-gradient(135deg, var(--primary), var(--primary-light));
      color: #fff; cursor: pointer; user-select: none;
      transition: all 0.2s ease;
    }
    .date-header:hover {
      background: linear-gradient(135deg, var(--primary-light), #4a7cff);
      transform: translateY(-1px);
    }

    .date-title {
      display: flex; align-items: center; gap: .8rem;
      font-size: 1.3rem; font-weight: 700;
    }
    .date-title i { font-size: 1.2rem; }

    .badge-today {
      background: #ff6b6b; color: #fff; padding: .2rem .6rem; border-radius: 12px;
      font-size: .7rem; font-weight: 700; margin-left: .5rem;
    }
    .badge-upcoming {
      background: #4ecdc4; color: #fff; padding: .2rem .6rem; border-radius: 12px;
      font-size: .7rem; font-weight: 700; margin-left: .5rem;
    }

    .date-meta {
      display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .5rem;
      font-size: .9rem; opacity: .95;
    }
    .date-meta span { display: flex; align-items: center; gap: .4rem; }

    .date-actions {
      display: flex; 
      align-items: center; 
      gap: .75rem;
      align-self: flex-start;
      margin-top: 0;
      flex-wrap: wrap;
    }
    .share-live-btn {
      display: inline-flex;
      align-items: center;
      gap: .45rem;
      border: none;
      background: linear-gradient(120deg, #34d399, #16a34a);
      color: #fff;
      border-radius: 999px;
      padding: .5rem 1.2rem;
      font-size: .85rem;
      font-weight: 700;
      letter-spacing: .02em;
      cursor: pointer;
      box-shadow: 0 12px 26px rgba(22, 163, 74, 0.35);
      transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
      position: relative;
      z-index: 10;
    }
    .share-live-btn .icon {
      font-size: 1rem;
    }
    .share-live-btn:hover {
      transform: translateY(-1px) scale(1.01);
      box-shadow: 0 16px 32px rgba(22, 163, 74, 0.45);
    }
    .share-live-btn:focus-visible {
      outline: none;
      box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
    }
    
    /* Share Live Location Button States */
    .share-live-btn.sharing {
      background: linear-gradient(120deg, #60a5fa, #2563eb);
      box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
      cursor: wait;
    }
    
    .share-live-btn.sharing-active {
      background: linear-gradient(120deg, #fb7185, #dc2626);
      box-shadow: 0 12px 28px rgba(220, 38, 38, 0.35);
      animation: pulse-red 2s infinite;
    }
    
    .share-live-btn.stopping {
      background: linear-gradient(120deg, #fbbf24, #d97706);
      box-shadow: 0 12px 26px rgba(251, 191, 36, 0.35);
      cursor: wait;
      animation: pulse-orange 1.5s infinite;
    }
    
    .share-live-btn.sharing-error {
      background: linear-gradient(120deg, #f87171, #b91c1c);
      box-shadow: 0 12px 26px rgba(185, 28, 28, 0.35);
    }
    
    .share-live-btn:disabled {
      opacity: 0.75;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    /* Start/End Route Buttons */
    .start-route-btn,
    .end-route-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 1rem;
      border: 1px solid var(--primary);
      border-radius: var(--radius-md);
      background: var(--primary);
      color: white;
      font-weight: 600;
      font-size: 0.875rem;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }

    .start-route-btn:hover {
      background: var(--primary-dark);
      border-color: var(--primary-dark);
      transform: translateY(-1px);
      box-shadow: var(--shadow-sm);
    }

    .start-route-btn:active {
      transform: translateY(0);
    }

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

    .end-route-btn {
      background: var(--warning);
      border-color: var(--warning);
      color: white;
    }

    .end-route-btn:hover {
      background: #d97706;
      border-color: #d97706;
      transform: translateY(-1px);
      box-shadow: var(--shadow-sm);
    }

    .end-route-btn:active {
      transform: translateY(0);
    }

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

    .route-ended-indicator {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 1rem;
      border-radius: var(--radius-md);
      background: var(--success-light);
      color: var(--success);
      font-weight: 600;
      font-size: 0.875rem;
      white-space: nowrap;
    }

    .route-ended-indicator i {
      color: var(--success);
    }
    
    @keyframes pulse-red {
      0%, 100% {
        box-shadow: 0 12px 28px rgba(220, 38, 38, 0.35);
      }
      50% {
        box-shadow: 0 12px 28px rgba(220, 38, 38, 0.35), 0 0 0 8px rgba(220, 38, 38, 0.1);
      }
    }
    
    @keyframes pulse-orange {
      0%, 100% {
        box-shadow: 0 12px 26px rgba(251, 191, 36, 0.35);
      }
      50% {
        box-shadow: 0 12px 26px rgba(251, 191, 36, 0.35), 0 0 0 8px rgba(251, 191, 36, 0.15);
      }
    }

    .date-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height .4s ease;
      background: var(--surface);
    }
    .date-group.expanded .date-content {
      max-height: 2000px;
      overflow-y: auto;
      overflow-x: hidden;
    }

    .date-timesheets { padding: 1rem 1.5rem 1.5rem; }

    /* Timesheet cards */
    .timesheet-card {
      margin-bottom: 1rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: var(--surface);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
      transition: box-shadow .2s ease, transform .2s ease;
    }
    .timesheet-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

    .timesheet-header {
      display: flex; align-items: center; justify-content: space-between; gap: 1rem;
      padding: 1rem 1.25rem;
      background: linear-gradient(135deg, #f8f9fa, #e9ecef);
      border-bottom: 1px solid var(--border);
      cursor: pointer; user-select: none;
    }

    .timesheet-info { flex: 1; }
    .timesheet-title {
      display: flex; align-items: center; gap: .6rem;
      font-size: 1.1rem; font-weight: 700; color: var(--primary);
      margin-bottom: .4rem;
    }

    .timesheet-status {
      padding: .25rem .6rem; border-radius: 12px; font-size: .75rem;
      font-weight: 700; text-transform: uppercase;
    }
    .status-open { background: #e3f2fd; color: #1976d2; }
    .status-completed { background: #e8f5e8; color: #2e7d32; }
    .status-cancelled { background: #ffebee; color: #c62828; }

    .timesheet-meta {
      display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .9rem;
    }
    .timesheet-meta span { display: flex; align-items: center; gap: .4rem; }

    .timesheet-actions {
      display: flex; align-items: center; gap: .5rem;
    }

    .timesheet-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height .35s ease;
      background: var(--surface);
    }
    .timesheet-card.expanded .timesheet-content {
      max-height: 1000px;
      overflow-y: auto;
      overflow-x: hidden;
    }

    /* Daily Routes - Route Entry Cards (Mercor style) */
    .route-entry {
      margin-bottom: var(--space-4);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      background: var(--surface);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
      transition: all 0.2s ease;
    }
    .route-entry:hover { 
      transform: translateY(-2px); 
      box-shadow: var(--shadow-md);
      border-color: var(--primary);
    }
    .route-entry:last-child {
      margin-bottom: 0;
    }

    .route-header {
      display: flex; 
      align-items: center; 
      justify-content: space-between; 
      gap: var(--space-4);
      padding: var(--space-5) var(--space-6);
      background: var(--surface);
      border-bottom: 1px solid var(--border-light);
      transition: all 0.2s ease;
    }
    .route-header:hover {
      background: var(--accent-light);
    }

    .route-title {
      display: flex; 
      align-items: center; 
      gap: var(--space-3);
      font-size: 18px; 
      font-weight: 600; 
      color: var(--text);
    }

    .route-meta {
      display: flex; 
      flex-wrap: wrap; 
      gap: var(--space-4); 
      color: var(--text-muted); 
      font-size: 14px; 
      margin-top: var(--space-2);
    }
    .route-meta span { 
      display: flex; 
      align-items: center; 
      gap: var(--space-2); 
    }

    .route-content {
      padding: var(--space-5) var(--space-6);
      background: var(--surface);
    }

    .route-timing {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
      font-size: 0.95rem;
      color: var(--text);
    }

    .route-timing i {
      color: var(--primary);
      width: 16px;
      text-align: center;
    }

    .route-duration {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.95rem;
      color: var(--text);
    }

    .route-duration i {
      color: var(--primary);
      width: 16px;
      text-align: center;
    }

    /* Card badge styling (Mercor style) */
    .card-badge {
      padding: var(--space-1) var(--space-3); 
      border-radius: var(--radius-sm); 
      font-size: 12px;
      font-weight: 500; 
      text-transform: uppercase;
      letter-spacing: 0.025em;
    }
    .badge-active { 
      background: var(--success-light); 
      color: var(--success); 
    }
    .badge-pending { 
      background: var(--warning-light); 
      color: var(--warning); 
    }
    .badge-completed { 
      background: var(--success-light); 
      color: var(--success); 
    }
    .badge-cancelled { 
      background: var(--danger-light); 
      color: var(--danger); 
    }
    .badge-open { 
      background: var(--info-light); 
      color: var(--info); 
    }

    .timesheet-items { padding: 1rem 1.25rem; }

    .empty-stops {
      text-align: center; padding: 2rem; color: var(--muted);
    }
    .empty-stops i { font-size: 2rem; margin-bottom: .5rem; opacity: .6; }

    /* Timesheet items */
    .timesheet-item {
      display: grid;
      grid-template-columns: 50px 1fr auto;
      gap: 1rem;
      align-items: flex-start;
      padding: 1rem;
      margin-bottom: .75rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      background: var(--surface);
      transition: all .2s ease;
    }
    .timesheet-item:hover { background: #f8f9fa; border-color: var(--primary); }

    .item-sequence {
      width: 32px; height: 32px; border-radius: 50%;
      background: var(--primary); color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-weight: 700; font-size: .9rem;
    }

    .item-info { flex: 1; }
    .item-passenger {
      font-weight: 600; color: var(--text); margin-bottom: .4rem;
    }
    .item-passenger .phone {
      margin-left: .5rem; font-size: .85rem; color: var(--muted);
    }

    .item-addresses { margin-bottom: .5rem; }
    .pickup-addr, .dropoff-addr {
      display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem;
      font-size: .9rem; color: var(--text); flex-wrap: wrap;
    }
    .pickup-icon { color: #4caf50; }
    .dropoff-icon { color: #f44336; }
    .address-text { flex: 1; }
    .time {
      font-size: .8rem; color: var(--muted);
      background: #f1f3f4; padding: .2rem .4rem; border-radius: 4px;
    }
    
    .confirmed-badge {
      font-size: .7rem; font-weight: 700; padding: .2rem .4rem;
      border-radius: 12px; display: inline-flex; align-items: center; gap: .2rem;
    }
    .confirmed-badge.pickup { background: #d4edda; color: #155724; }
    .confirmed-badge.dropoff { background: #cce5ff; color: #004085; }

    .item-notes {
      font-size: .85rem; color: var(--muted); margin-top: .5rem;
      padding: .5rem; background: #f8f9fa; border-radius: 4px;
    }

    .item-status { text-align: right; }

    /* Status specific styles */
    .timesheet-item.planned .item-sequence { background: #6c757d; }
    .timesheet-item.arrived .item-sequence { background: #ffc107; }
    .timesheet-item.picked_up .item-sequence { background: #28a745; }
    .timesheet-item.dropped .item-sequence { background: #17a2b8; }
    .timesheet-item.cancelled .item-sequence { background: #dc3545; }
    .timesheet-item.no_show .item-sequence { background: #6f42c1; }

    /* Status pills for items */
    .status-planned { background: #e2e3e5; color: #495057; }
    .status-arrived { background: #fff3cd; color: #856404; }
    .status-picked { background: #d4edda; color: #155724; }
    .status-dropped { background: #d1ecf1; color: #0c5460; }
    .status-cancelled { background: #f8d7da; color: #721c24; }
    .status-no-show { background: #e2d9f3; color: #59359a; }

    .completed-times {
      display: flex; flex-direction: column; gap: .25rem;
    }
    .actual-time {
      display: flex; align-items: center; gap: .4rem;
      font-size: .8rem; color: var(--muted);
    }
    .actual-time.pickup { color: #28a745; }
    .actual-time.dropoff { color: #17a2b8; }

    .item-actions {
      display: flex; flex-direction: column; gap: .25rem;
    }

    .timesheet-notes {
      padding: 1rem 1.25rem; border-top: 1px solid var(--border);
      background: #f8f9fa; color: var(--muted); font-size: .9rem;
    }

    /* Month grouping for daily routes */
    .timesheet-month-group {
      margin-bottom: 1.75rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      background: var(--surface);
      box-shadow: var(--shadow-md);
      overflow: hidden;
      transition: box-shadow .2s ease, transform .2s ease;
    }
    .timesheet-month-group:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }

    .timesheet-month-header {
      display: flex; align-items: center; justify-content: space-between; gap: 1rem;
      padding: 1.25rem 1.5rem;
      background: #eef2ff;
      border-bottom: 1px solid var(--border);
      cursor: pointer;
    }
    .timesheet-month-title {
      display: flex; align-items: center; gap: .8rem;
      font-size: 1.2rem; font-weight: 700; color: var(--primary-dark);
    }
    .timesheet-month-header .expand-icon {
      transition: transform .3s ease;
    }
    .timesheet-month-group.expanded .timesheet-month-header .expand-icon {
      transform: rotate(180deg);
    }

    .timesheet-month-content {
      display: none;
      background: var(--surface);
    }
    .timesheet-month-group.expanded .timesheet-month-content {
      display: block;
      border-top: 1px solid var(--border);
    }

    /* Daily routes grouping */
    .timesheet-date-group {
      margin-bottom: 1.5rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      background: var(--surface);
      box-shadow: var(--shadow-md);
      overflow: hidden;
      transition: box-shadow .2s ease, transform .2s ease;
    }
    .timesheet-date-group:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }

    .timesheet-date-header {
      display: flex; align-items: center; justify-content: space-between; gap: 1rem;
      padding: 1.25rem 1.5rem;
      background: linear-gradient(135deg, var(--primary), var(--primary-light));
      color: #fff; cursor: pointer; user-select: none;
      transition: all 0.2s ease;
    }
    .timesheet-date-header:hover {
      background: linear-gradient(135deg, var(--primary-light), #4a7cff);
      transform: translateY(-1px);
    }
    .timesheet-date-title {
      display: flex; align-items: center; gap: .8rem;
      font-size: 1.3rem; font-weight: 700;
    }
    .timesheet-date-meta {
      display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .5rem;
      font-size: .9rem; opacity: .95;
    }
    .timesheet-month-header .timesheet-date-meta {
      color: var(--text-secondary);
      opacity: 1;
    }
    .timesheet-date-meta span { display: flex; align-items: center; gap: .4rem; }
    .timesheet-date-content {
      display: none;
      background: var(--surface);
    }
    .timesheet-date-group.expanded .timesheet-date-content {
      display: block;
    }

    .route-card {
      margin: 1.25rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
      transition: box-shadow .2s ease, transform .2s ease;
      position: relative;
    }
    .route-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 100%;
      background: var(--primary);
      z-index: 1;
    }
    .route-card-morning::before {
      background: linear-gradient(180deg, #f59e0b, #fbbf24);
    }
    .route-card-afternoon::before {
      background: linear-gradient(180deg, #f97316, #a855f7);
    }
    .route-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
    .route-header {
      display: flex; align-items: center; justify-content: space-between; gap: 1rem;
      padding: 1rem 1.25rem 1rem 1.5rem;
      background: linear-gradient(135deg, var(--accent, #e9f3ff), #f8fbff);
      cursor: pointer;
    }
    .route-header-info { flex: 1; min-width: 0; }
    .route-title {
      display: flex; align-items: center; gap: .6rem;
      font-size: 1.05rem; font-weight: 700; color: var(--primary-dark);
    }
    .route-direction {
      display: inline-flex; align-items: center; gap: .4rem;
    }
    .route-status {
      padding: .2rem .5rem;
      border-radius: 999px;
      font-size: .7rem;
      font-weight: 700;
      text-transform: uppercase;
    }
    .badge-primary { background: #e2e8f0; color: #1e293b; }
    .badge-success { background: #d1fae5; color: #047857; }
    .badge-danger { background: #fee2e2; color: #b91c1c; }
    .badge-secondary { background: #e2e8f0; color: #475569; }

    .route-meta {
      display: flex; flex-wrap: wrap; gap: .5rem;
      margin-top: .5rem;
    }

    .route-meta-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.3rem 0.65rem;
      background: rgba(39, 70, 144, 0.08);
      border-radius: 999px;
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--text);
    }
    .route-meta-pill i { color: var(--primary); font-size: 0.75rem; }
    .route-meta-pill.pill-pickup { background: rgba(40, 167, 69, 0.1); }
    .route-meta-pill.pill-pickup i { color: #16a34a; }
    .route-meta-pill.pill-dropoff { background: rgba(23, 162, 184, 0.1); }
    .route-meta-pill.pill-dropoff i { color: #0891b2; }

    /* Route progress bar */
    .route-progress {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      margin-top: 0.6rem;
    }
    .route-progress-bar {
      flex: 1;
      height: 6px;
      background: #e5e7eb;
      border-radius: 999px;
      overflow: hidden;
      position: relative;
    }
    .route-progress-fill {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      border-radius: 999px;
      transition: width 0.4s ease;
    }
    .route-progress-fill.progress-pickup {
      background: linear-gradient(90deg, #86efac, #4ade80);
      z-index: 1;
    }
    .route-progress-fill.progress-dropoff {
      background: linear-gradient(90deg, #10b981, #059669);
      z-index: 2;
    }
    .route-progress-label {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--muted);
      white-space: nowrap;
    }

    .route-body {
      display: none;
      background: var(--surface);
      border-top: 1px solid var(--border);
    }
    .route-card.expanded .route-body {
      display: block;
      padding: 1rem 1.25rem 1.5rem;
    }

    .route-notes {
      margin-bottom: 1rem;
      padding: .75rem 1rem;
      background: #f8fafc;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      color: var(--text-muted);
      font-size: .85rem;
    }
    .route-notes i { margin-right: .5rem; color: var(--primary); }

    .route-passengers {
      display: flex;
      flex-direction: column;
      gap: .9rem;
    }

    .route-passenger {
      display: grid;
      grid-template-columns: 36px 1fr;
      gap: 1rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: .9rem 1rem;
      background: var(--surface);
      box-shadow: var(--shadow-xs);
    }
    .passenger-index {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--primary);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
    }
    .passenger-details { display: flex; flex-direction: column; gap: .6rem; }
    .passenger-header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
    .passenger-name { font-weight: 600; color: var(--text); font-size: 1rem; }
    .passenger-status {
      padding: .2rem .6rem;
      border-radius: 999px;
      font-size: .7rem;
      font-weight: 700;
      text-transform: uppercase;
    }
    .badge-status-planned {
      background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
      color: #475569;
      box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    .badge-status-arrived {
      background: linear-gradient(135deg, #fef3c7, #fde68a);
      color: #92400e;
      box-shadow: 0 1px 4px rgba(245, 158, 11, 0.25);
    }
    .badge-status-picked {
      background: linear-gradient(135deg, #d1fae5, #a7f3d0);
      color: #065f46;
      box-shadow: 0 1px 4px rgba(16, 185, 129, 0.25);
    }
    .badge-status-dropped {
      background: linear-gradient(135deg, #ccfbf1, #99f6e4);
      color: #0d9488;
      box-shadow: 0 1px 4px rgba(20, 184, 166, 0.25);
    }
    .badge-status-cancelled {
      background: linear-gradient(135deg, #fee2e2, #fecaca);
      color: #991b1b;
      box-shadow: 0 1px 4px rgba(220, 53, 69, 0.2);
    }
    .badge-status-no-show {
      background: linear-gradient(135deg, #fef3c7, #fed7aa);
      color: #9a3412;
      box-shadow: 0 1px 4px rgba(249, 115, 22, 0.25);
    }
    .badge-status-completed {
      background: linear-gradient(135deg, #d1fae5, #a7f3d0);
      color: #047857;
      box-shadow: 0 1px 4px rgba(16, 185, 129, 0.25);
    }

    .passenger-route {
      display: flex;
      flex-direction: column;
      gap: .35rem;
      font-size: .85rem;
      color: var(--text-secondary);
    }
    .passenger-route i {
      margin-right: .4rem;
    }
    .passenger-route i.pickup { color: #16a34a; }
    .passenger-route i.dropoff { color: #dc2626; }

    /* Trip Timeline */
    .trip-timeline {
      display: flex;
      flex-direction: column;
      padding: 0.25rem 0;
    }
    .timeline-step {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
    }
    .timeline-dot {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #e5e7eb;
      color: #6b7280;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      flex-shrink: 0;
      transition: all 0.3s ease;
      border: 2px solid #d1d5db;
    }
    .timeline-dot.dot-active {
      background: linear-gradient(135deg, #fef3c7, #fde68a);
      color: #92400e;
      border-color: #f59e0b;
      animation: dotPulse 2s ease-in-out infinite;
    }
    .timeline-dot.dot-done {
      background: linear-gradient(135deg, #d1fae5, #a7f3d0);
      color: #059669;
      border-color: #10b981;
    }
    @keyframes dotPulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3); }
      50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
    }
    .timeline-connector {
      width: 2px;
      height: 16px;
      background: #e5e7eb;
      margin-left: 15px;
      transition: background 0.3s ease;
    }
    .timeline-connector.connector-done {
      background: linear-gradient(180deg, #10b981, #34d399);
    }
    .timeline-content {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
      padding-bottom: 0.25rem;
      min-width: 0;
    }
    .timeline-label {
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--muted);
    }
    .timeline-address {
      font-size: 0.85rem;
      color: var(--text);
      line-height: 1.3;
      word-break: break-word;
    }
    .step-done .timeline-address {
      color: #059669;
    }
    .timeline-time {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      font-size: 0.75rem;
      color: var(--muted);
      margin-top: 0.1rem;
    }
    .timeline-time i { font-size: 0.7rem; }

    /* Terminal passenger rows */
    .passenger-terminal {
      opacity: 0.8;
    }

    /* No-show terminal badge */
    .terminal-badge.no-show {
      background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
      color: #9a3412;
      box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
    }

    /* Reverse route indicators */
    .reverse-indicator {
      display: inline-flex;
      align-items: center;
      margin-left: 0.5rem;
      color: #f59e0b;
      font-size: 0.8rem;
      background: #fef3c7;
      padding: 0.2rem 0.4rem;
      border-radius: 4px;
      border: 1px solid #fbbf24;
    }

    .reverse-indicator i {
      margin-right: 0.2rem;
    }

    .route-reverse-notice {
      background: #fef3c7;
      border: 1px solid #fbbf24;
      border-radius: 6px;
      padding: 0.5rem 0.75rem;
      margin: 0.5rem 0;
      font-size: 0.85rem;
      color: #92400e;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .route-reverse-notice i {
      color: #f59e0b;
    }

    /* Passenger Actions */
    .passenger-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 0.75rem;
      padding-top: 0.75rem;
      border-top: 1px solid #e5e7eb;
    }

    .action-completed {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 0.75rem;
      background: #d1fae5;
      color: #065f46;
      border-radius: 6px;
      font-size: 0.85rem;
      font-weight: 600;
    }

    .action-completed i {
      color: #10b981;
    }

    /* OTP Section */
    .otp-section {
      margin: 0.75rem 0;
      padding: 0.75rem;
      background: #f8f9fa;
      border-radius: 8px;
      border-left: 3px solid #2563eb;
      box-sizing: border-box;
      overflow: hidden;
    }
    .otp-section.otp-verified {
      border-left-color: #16a34a;
      background: #f0fdf4;
    }
    .otp-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
      font-weight: 600;
      color: #1e40af;
      font-size: 0.9rem;
    }
    .otp-header i { color: #2563eb; }
    .otp-section.otp-verified .otp-header { color: #15803d; }
    .otp-section.otp-verified .otp-header i { color: #16a34a; }
    .otp-input-group {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      flex-wrap: wrap;
    }
    .otp-field {
      flex: 1;
      min-width: 0;
      max-width: 100%;
      box-sizing: border-box;
    }
    .otp-label {
      display: block;
      font-size: 0.85rem;
      color: #64748b;
      margin-bottom: 0.25rem;
      word-wrap: break-word;
    }
    .otp-section .otp-input {
      width: 100%;
      max-width: 100%;
      padding: 0.5rem;
      border: 1px solid #e2e8f0;
      border-radius: 6px;
      font-size: 1rem;
      text-align: center;
      letter-spacing: 0.3rem;
      font-weight: 600;
      box-sizing: border-box;
      transition: border-color 0.2s ease;
    }
    .otp-section .otp-input:focus {
      outline: none;
      border-color: #2563eb;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    }
    .otp-section.otp-verified .otp-input {
      border-color: #16a34a;
    }
    .otp-status {
      margin-top: 0.35rem;
      font-size: 0.85rem;
      color: #64748b;
      word-wrap: break-word;
    }
    .otp-status.otp-status-verified {
      color: #16a34a;
    }
    .otp-status.otp-status-verified i {
      margin-right: 0.25rem;
    }
    .verify-otp-btn {
      padding: 0.5rem 1rem;
      background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
      color: white !important;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 600;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .verify-otp-btn:hover {
      background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
      transform: translateY(-1px);
    }

    /* Route Steps */
    .route-step {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 0;
      border-left: 3px solid #e5e7eb;
      padding-left: 0.75rem;
      margin-bottom: 0.5rem;
      transition: all 0.3s ease;
    }

    .route-step.completed {
      border-left-color: #10b981;
      background: #f0fdf4;
      border-radius: 0 6px 6px 0;
    }

    .route-step .step-label {
      font-weight: 600;
      color: #374151;
      min-width: 60px;
    }

    .route-step .step-address {
      flex: 1;
      color: #6b7280;
    }

    .route-step .step-complete {
      color: #10b981;
      margin-left: auto;
    }

    .route-step.completed .step-address {
      color: #059669;
      text-decoration: line-through;
    }

    /* Timesheet Groups */
    .timesheet-group {
      background: var(--surface);
      border-radius: 12px;
      box-shadow: var(--shadow);
      margin-bottom: 1.5rem;
      overflow: hidden;
    }

    .timesheet-header {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
      color: white;
      padding: 1rem 1.5rem;
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .timesheet-header h3 {
      margin: 0;
      font-size: 1.1rem;
      font-weight: 600;
      flex: 1;
    }

    .direction-badge {
      background: rgba(255, 255, 255, 0.2);
      padding: 0.25rem 0.75rem;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 500;
      text-transform: capitalize;
    }

    .direction-badge.direction-morning {
      background: #fbbf24;
      color: #92400e;
    }

    .direction-badge.direction-afternoon {
      background: #f59e0b;
      color: #92400e;
    }

    .passenger-count {
      background: rgba(255, 255, 255, 0.2);
      padding: 0.25rem 0.75rem;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 500;
    }

    .timesheet-items {
      padding: 1rem;
    }

    .passenger-times {
      display: flex;
      flex-wrap: wrap;
      gap: .5rem;
    }
    .time-chip {
      display: inline-flex;
      align-items: center;
      gap: .35rem;
      padding: .3rem .55rem;
      border-radius: 999px;
      background: #f1f5f9;
      color: var(--text-muted);
      font-size: .75rem;
    }

    /* Route optimizer entrypoint */
    .route-optimizer-banner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin: 1rem 0 var(--space-4);
      padding: 1rem 1.25rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      background: linear-gradient(120deg, #f8fafc, #eef2ff);
      box-shadow: var(--shadow-sm);
    }
    .route-optimizer-banner h3 {
      margin: 0;
      font-size: 1.25rem;
      color: var(--text);
      font-weight: 700;
    }
    .route-optimizer-banner p {
      margin: .25rem 0 0;
      color: var(--text-muted);
    }
    .route-optimizer-btn {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      padding: .85rem 1.25rem;
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: var(--radius-md);
      font-weight: 700;
      cursor: pointer;
      box-shadow: var(--shadow-sm);
      transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
      text-decoration: none;
    }
    .route-optimizer-btn:hover {
      transform: translateY(-1px);
      box-shadow: var(--shadow-md);
      background: var(--primary-dark);
    }
    .route-optimizer-btn:active { transform: translateY(0); }
    /* Actions */
    .action-btn {
      display: inline-flex; 
      align-items: center; 
      justify-content: center;
      gap: .5rem;
      padding: .8rem 1.1rem; 
      border: 2px solid transparent; 
      border-radius: 12px;
      font-weight: 700; 
      font-size: .9rem; 
      cursor: pointer;
      transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
      font-family: inherit;
      position: relative;
      overflow: hidden;
      white-space: nowrap;
      min-width: fit-content;
    }
    
    .action-btn .btn-text {
      display: inline;
    }
    
    .action-btn i {
      flex-shrink: 0;
    }
    .action-btn::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.3);
      transform: translate(-50%, -50%);
      transition: width .4s ease, height .4s ease;
    }
    .action-btn:active::before {
      width: 300px;
      height: 300px;
    }
    .action-btn i { 
      font-size: 1rem; 
      transition: transform .25s ease;
    }
    .action-btn:hover i {
      transform: scale(1.15);
    }
    .action-btn:focus-visible { outline: none; box-shadow: var(--focus); }

    .action-btn.small {
      padding: .5rem .75rem; font-size: .85rem;
    }

    .accept-btn { 
      background: linear-gradient(135deg, #28a745 0%, #20c997 100%); 
      color: #fff; 
      box-shadow: 0 3px 10px rgba(40,167,69,.35);
      border-color: #20c997;
      min-width: 110px;
      padding: 0.8rem 1.2rem;
    }
    .accept-btn:hover { 
      transform: translateY(-3px) scale(1.02); 
      box-shadow: 0 10px 25px rgba(40,167,69,.45); 
      background: linear-gradient(135deg, #218838 0%, #1ab385 100%); 
    }

    .reject-btn { 
      background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%); 
      color: #fff; 
      box-shadow: 0 3px 10px rgba(220,53,69,.35);
      border-color: #ff6b6b;
      min-width: 110px;
      padding: 0.8rem 1.2rem;
    }
    .reject-btn:hover { 
      transform: translateY(-3px) scale(1.02); 
      box-shadow: 0 10px 25px rgba(220,53,69,.45); 
      background: linear-gradient(135deg, #c82333 0%, #ee5a52 100%); 
    }

    .complete-btn { 
      background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); 
      color: #fff; 
      box-shadow: 0 3px 10px rgba(245,158,11,.35);
      border-color: #fbbf24;
    }
    .complete-btn:hover {
      transform: translateY(-3px) scale(1.02);
      box-shadow: 0 10px 25px rgba(245,158,11,.45);
      background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    }

    /* Go to Route button */
    .ops-btn {
      background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
      color: #fff;
      box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
      border-color: #3b82f6;
      min-width: 130px;
      padding: 0.8rem 1.2rem;
    }
    .ops-btn:hover {
      transform: translateY(-3px) scale(1.02);
      box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
      background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    }

    /* Cancel button */
    .cancel-btn {
      background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
      color: #fff;
      box-shadow: 0 3px 10px rgba(107, 114, 128, 0.35);
      border-color: #9ca3af;
      min-width: 100px;
      padding: 0.8rem 1.2rem;
    }
    .cancel-btn:hover {
      transform: translateY(-3px) scale(1.02);
      box-shadow: 0 10px 25px rgba(107, 114, 128, 0.45);
      background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    }

    /* Completion badge (completed dates) */
    .completion-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.5rem 1rem;
      border-radius: 999px;
      background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
      color: #047857;
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.3px;
      box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    }
    .completion-badge i { font-size: 0.85rem; }

    /* Terminal badges (rejected / cancelled) */
    .terminal-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.5rem 1rem;
      border-radius: 999px;
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.3px;
    }
    .terminal-badge i { font-size: 0.85rem; }
    .terminal-badge.rejected {
      background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
      color: #991b1b;
      box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
    }
    .terminal-badge.cancelled {
      background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
      color: #4b5563;
      box-shadow: 0 2px 8px rgba(107, 114, 128, 0.2);
    }

    /* Date actions container */
    .date-actions {
      display: flex;
      gap: 0.5rem;
      align-items: center;
    }

    /* Terminal date rows — no checkbox, slightly muted */
    .date-row-terminal {
      opacity: 0.85;
    }
    .date-row-terminal:hover {
      transform: none;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
    }

    .arrive-btn { background: #ffc107; color: #212529; }
    .arrive-btn:hover { background: #e0a800; transform: translateY(-1px); }

    .pickup-btn { background: #28a745; color: #fff; }
    .pickup-btn:hover { background: #218838; transform: translateY(-1px); }

    .dropoff-btn { background: #17a2b8; color: #fff; }
    .dropoff-btn:hover { background: #138496; transform: translateY(-1px); }

    .no-show-btn { background: linear-gradient(135deg, #f97316, #fb923c); color: #fff; box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3); }
    .no-show-btn:hover { background: linear-gradient(135deg, #ea580c, #f97316); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4); }

    .edit-btn { background: var(--muted); color: #fff; }
    .edit-btn:hover { background: #5a6268; transform: translateY(-1px); }

    /* Notification (toast) */
    .notification {
      position: fixed; top: 20px; right: 20px;
      padding: .9rem 1.1rem; border-radius: var(--radius-sm); color: #fff; font-weight: 700; z-index: 10000;
      transform: translateX(120%); transition: transform .3s ease, opacity .2s ease; opacity: 0;
      box-shadow: var(--shadow-md);
    }
    .notification.show { transform: translateX(0); opacity: 1; }
    .notification.success { background: var(--success); }
    .notification.error { background: var(--danger); }
    .notification.info { background: var(--info); }

    /* Responsive */
    @media (max-width: 900px) {
      .schedule-details { grid-template-columns: 1fr; }
      .timesheet-item { grid-template-columns: 1fr; gap: .75rem; }
      .item-sequence { margin-bottom: .5rem; }

      /* Fix route card overflow on mobile */
      .route-card {
        margin: 0.75rem;
        width: calc(100% - 1.5rem);
        max-width: 100%;
        overflow: hidden;
      }

      .route-header {
        padding: 0.75rem;
        gap: 0.5rem;
        flex-wrap: wrap;
      }

      .route-title {
        font-size: 0.95rem;
        flex: 1;
        min-width: 0;
      }

      .route-direction {
        font-size: 0.9rem;
      }

      .route-meta {
        font-size: 0.8rem;
        gap: 0.5rem;
        width: 100%;
      }

      /* Route header actions: full width row under info */
      .route-header > .date-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
      }

      .route-header > .date-actions .route-optimizer-btn,
      .route-header > .date-actions .share-live-btn,
      .route-header > .date-actions .start-route-btn,
      .route-header > .date-actions .end-route-btn {
        flex: 1;
        min-width: 0;
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
        justify-content: center;
        white-space: nowrap;
      }

      .route-header > .date-actions .expand-icon {
        flex: 0 0 auto;
      }
    }
    
    @media (max-width: 768px) {
      body {
        padding-top: 60px;
        overflow-x: hidden;
      }

      .topbar {
        padding: var(--space-3) var(--space-4);
      }

      .logo-text {
        font-size: 1.25rem;
      }

      .logo-icon {
        width: 36px;
        height: 36px;
      }

      .logo-icon span {
        font-size: 18px;
      }
      
      /* Prevent horizontal overflow on mobile */
      .container,
      .tab-content,
      #timesheets-tab,
      .timesheet-date-group {
        max-width: 100vw;
        overflow-x: hidden;
      }
      
      .route-card {
        margin: 0.5rem;
        width: calc(100% - 1rem);
        box-sizing: border-box;
      }
      
      .route-header {
        padding: 0.75rem 0.5rem;
        gap: 0.5rem;
        flex-wrap: wrap;
      }

      .route-header-info {
        flex: 1 1 100%;
        min-width: 0;
      }

      .route-header > .date-actions {
        flex: 1 1 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
      }

      .route-header > .date-actions .start-route-btn,
      .route-header > .date-actions .end-route-btn,
      .route-header > .date-actions .share-live-btn,
      .route-header > .date-actions .route-optimizer-btn {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.55rem 0.75rem;
      }

      .route-header > .date-actions > .expand-icon {
        flex: 0 0 auto;
        align-self: center;
      }

      .route-title {
        flex: 1;
        min-width: 0;
        overflow: hidden;
      }
      
      .route-direction {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .driver-schedules-container { 
        padding: 1rem; 
        max-width: 100%;
      }

      /* Header Mobile */
      .schedules-header {
        padding: var(--space-4);
        margin-bottom: var(--space-4);
      }

      .header-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
      }

      .header-text {
        width: 100%;
      }

      .header-title {
        font-size: 20px;
        flex-wrap: wrap;
      }

      .header-title i {
        font-size: 20px;
      }

      .header-subtitle {
        font-size: 14px;
        margin-top: var(--space-1);
      }

      .schedules-header .btn-back {
        width: 100%;
        justify-content: center;
        padding: .75rem 1rem;
        font-size: .9rem;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(34, 197, 94, 0.2);
      }

      /* Tabs Mobile */
      .view-tabs { 
        flex-direction: column; 
        border-radius: var(--radius-md);
      }

      .tab-button { 
        border-bottom: 1px solid var(--border);
        border-right: none;
        min-height: 48px;
        padding: var(--space-4);
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(37, 99, 235, 0.1);
        pointer-events: auto;
        user-select: none;
      }

      .tab-button:active {
        transform: scale(0.98);
      }

      .tab-button:last-child { 
        border-bottom: 0; 
      }

      /* Action Buttons Mobile */
      .action-btn { 
        width: auto; 
        flex: 1;
        justify-content: center;
        min-height: 44px;
        padding: .75rem 1rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(37, 99, 235, 0.1);
        pointer-events: auto;
        user-select: none;
        font-size: 0.85rem;
      }

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

      .action-btn.small {
        min-height: 44px;
        padding: .6rem .8rem;
      }
      
      /* Adjust buttons on very small screens */
      @media (max-width: 420px) {
        .action-btn {
          font-size: 0.8rem;
          padding: .7rem .9rem;
        }

        .accept-btn, .reject-btn, .ops-btn, .cancel-btn {
          min-width: 95px;
        }
      }
      
      /* Hide text on very small screens, show icon only */
      @media (max-width: 360px) {
        .action-btn .btn-text {
          display: none;
        }
        
        .action-btn {
          padding: .75rem;
          min-width: 44px;
        }
      }

      /* Slot Groups Mobile */
      .slot-header {
        padding: .875rem 1rem;
        flex-wrap: wrap;
        gap: .75rem;
      }

      .slot-title {
        font-size: 1rem;
        flex: 1;
        min-width: 0;
      }

      .slot-meta {
        width: 100%;
        font-size: .85rem;
        gap: .75rem;
      }

      .slot-schedules {
        padding: .875rem 1rem;
      }

      /* Passenger Groups Mobile */
      .passenger-group-header {
        padding: .875rem 1rem;
        flex-wrap: wrap;
      }

      .passenger-info {
        flex: 1;
        min-width: 0;
      }

      .passenger-avatar {
        width: 36px;
        height: 36px;
        font-size: .9rem;
      }

      .passenger-details h4 {
        font-size: .95rem;
      }

      .passenger-details p {
        font-size: .85rem;
      }

      /* Month and Date Actions Mobile */
      .month-actions { 
        width: 100%; 
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: .5rem;
      }

      .date-actions { 
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: .5rem;
        justify-content: flex-start;
      }

      .date-actions .action-btn {
        flex: 1;
        min-width: fit-content;
      }

      /* Timesheet Mobile */
      .timesheet-meta { 
        flex-direction: column; 
        gap: .5rem; 
      }

      .item-actions { 
        flex-direction: column;
        gap: .5rem;
        width: 100%;
      }

      .item-actions .action-btn {
        width: 100%;
      }

      /* Filter and Select Mobile */
      select, input[type="text"], input[type="date"] {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
        touch-action: manipulation;
      }

      /* Cards and Containers Mobile */
      .slot-group, .passenger-group {
        margin-bottom: .75rem;
      }

      /* Empty and Loading States Mobile */
      .empty-state, .loading {
        padding: 2rem 1rem;
      }

      .empty-state i {
        font-size: 2.5rem;
      }

      .empty-state h3 {
        font-size: 1.15rem;
      }

      /* Schedule Details Mobile */
      .schedule-details {
        grid-template-columns: 1fr;
        gap: .75rem;
        padding: .875rem;
      }

      /* Date Lists Mobile */
      .date-list {
        padding: .75rem;
      }

      .date-item {
        padding: .875rem;
        margin-bottom: .75rem;
      }

      /* OTP Section Mobile */
      .otp-section,
      .passenger-otp-section {
        padding: 0.75rem !important;
        margin: 0.75rem 0 !important;
      }

      .otp-input-group,
      .passenger-otp-section > div:last-child {
        flex-direction: column !important;
        gap: 0.75rem !important;
      }

      .otp-field,
      .passenger-otp-section > div:last-child > div:first-child {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
      }

      .otp-section .otp-input,
      .otp-input {
        letter-spacing: 0.2rem !important;
        font-size: 0.9rem !important;
        padding: 0.625rem 0.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
      }

      .verify-otp-btn {
        width: 100% !important;
        justify-content: center !important;
      }

      .verify-otp-btn .verify-btn-text {
        display: inline;
      }

      /* Route progress bar mobile */
      .route-progress {
        flex-direction: column;
        gap: 0.3rem;
        align-items: stretch;
      }
      .route-progress-label {
        text-align: right;
      }

      /* Timeline mobile */
      .timeline-address {
        font-size: 0.8rem;
      }

      /* Route optimizer banner mobile */
      .route-optimizer-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 0.875rem;
      }
      .route-optimizer-banner h3 {
        font-size: 1.05rem;
      }
      .route-optimizer-banner p {
        font-size: 0.85rem;
      }
      .route-optimizer-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
      }
    }

    @media (max-width: 480px) {
      .driver-schedules-container {
        padding: .75rem;
      }

      .schedules-header {
        padding: var(--space-3);
      }

      .header-title {
        font-size: 18px;
      }

    .header-subtitle {
      font-size: 13px;
    }

    .tab-button {
      font-size: 13px;
    }

    /* OTP Section - Extra Small Mobile */
    .passenger-otp-section {
      padding: 0.625rem !important;
    }

    .otp-input {
      letter-spacing: 0.15rem !important;
      font-size: 0.875rem !important;
      padding: 0.5rem 0.375rem !important;
    }

    .verify-otp-btn {
      padding: 0.625rem 0.75rem !important;
      font-size: 0.875rem !important;
    }

    .verify-otp-btn .verify-btn-text {
      display: inline;
    }
      padding: var(--space-3);
    }

      .slot-title {
        font-size: .95rem;
      }

      .passenger-details h4 {
        font-size: .9rem;
      }
    }

    .driver-access-inline {
      display: none;
      background: linear-gradient(135deg, #111827, #1e3a8a, #0f172a);
      color: #e5e7eb;
      border-radius: 12px;
      padding: 1rem 1.25rem;
      margin: 0 0 12px;
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 12px 24px rgba(37,99,235,0.2);
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

    .driver-access-inline h4 {
      margin: 0;
      color: #fff;
      font-size: 1rem;
    }

    .driver-access-inline p {
      margin: 2px 0 0;
      color: #cbd5e1;
      font-size: 0.9rem;
    }

    .driver-access-inline .cta-row {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .driver-access-inline button {
      border: none;
      border-radius: 10px;
      padding: 0.55rem 0.85rem;
      font-weight: 700;
      cursor: pointer;
      font-size: 0.9rem;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }

    .driver-access-inline .btn-primary {
      background: linear-gradient(120deg, #a855f7, #6366f1, #22d3ee);
      color: #0f172a;
      box-shadow: 0 10px 20px rgba(99,102,241,0.35);
    }

    .driver-access-inline .btn-secondary {
      background: rgba(255,255,255,0.12);
      color: #e2e8f0;
      border: 1px solid rgba(255,255,255,0.2);
    }

    .driver-access-inline .btn-outline {
      background: transparent;
      color: #cbd5e1;
      border: 1px dashed rgba(255,255,255,0.25);
    }

    /* Access Denied Modal Styles */
    .access-denied-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 10000;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .access-denied-modal.show {
      opacity: 1;
    }

    .access-denied-modal-content {
      background: white;
      border-radius: 16px;
      max-width: 500px;
      width: 90%;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
      transform: scale(0.9);
      transition: transform 0.3s ease;
    }

    .access-denied-modal.show .access-denied-modal-content {
      transform: scale(1);
    }

    .access-denied-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1.5rem;
      border-bottom: 1px solid var(--border);
      position: relative;
    }

    .access-denied-icon {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: #fef3c7;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #f59e0b;
      font-size: 1.5rem;
    }

    .access-denied-header h2 {
      margin: 0;
      flex: 1;
      color: var(--text);
    }

    .access-denied-close {
      background: none;
      border: none;
      font-size: 1.5rem;
      color: var(--text-muted);
      cursor: pointer;
      padding: 0.5rem;
      line-height: 1;
    }

    .access-denied-close:hover {
      color: var(--text);
    }

    .access-denied-body {
      padding: 1.5rem;
    }

    .access-denied-message {
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
      color: var(--text);
    }

    .access-denied-description {
      color: var(--text-secondary);
      margin-bottom: 1rem;
    }

    .access-denied-footer {
      padding: 1.5rem;
      border-top: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }
