/* ==========================================================================
   KESAVI TOURS & TRAVELS PVT. LTD. - STYLESHEET
   Clean, Minimal, Professional Blue/White Continuous Booking Workspace
   ========================================================================== */

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

:root {
    /* Theme Palette (Kesavi Professional Deep Blue & White) */
    --primary-blue: #1d4ed8;
    --primary-blue-hover: #1e40af;
    --primary-blue-light: #eff6ff;
    --primary-blue-border: #bfdbfe;
    --primary-navy: #0f172a;

    --navy-sidebar: #0e1c36;
    --navy-sidebar-hover: #172a4d;
    --navy-sidebar-active: #1d4ed8;

    --slate-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Status & Seat Colors */
    --color-avail-bg: #dcfce7;
    --color-avail-border: #86efac;
    --color-avail-text: #15803d;

    --color-booked-bg: #fee2e2;
    --color-booked-border: #fca5a5;
    --color-booked-text: #b91c1c;

    --color-pending-bg: #fef3c7;
    --color-pending-border: #fcd34d;
    --color-pending-text: #b45309;

    --color-blocked-bg: #f1f5f9;
    --color-blocked-border: #cbd5e1;
    --color-blocked-text: #475569;

    --color-hold-bg: #ffedd5;
    --color-hold-border: #fed7aa;
    --color-hold-text: #c2410c;

    --color-selected-bg: #1d4ed8;
    --color-selected-border: #1e40af;
    --color-selected-text: #ffffff;

    /* Geometry */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 12px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
    --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
    --transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--slate-bg);
    color: var(--text-main);
    font-size: 13.5px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ==================== UTILITIES ==================== */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-grow-0 { flex-grow: 0 !important; }
.flex-align-end { display: flex; align-items: flex-end; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary-blue) !important; }
.text-success { color: #16a34a !important; }
.text-warning { color: #d97706 !important; }
.text-danger { color: #dc2626 !important; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 20px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; }
.mb-4 { margin-bottom: 20px; }
.max-w-450 { max-width: 450px !important; }
.max-w-500 { max-width: 500px !important; }
.max-w-700 { max-width: 700px !important; }

/* ==================== AUTHENTICATION SCREEN ==================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 20%, #1e3a8a 0%, #0b1528 75%, #070d18 100%);
    padding: 24px 16px;
    position: relative;
    overflow: hidden;
}

.auth-bg-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.6;
}

.auth-card {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    padding: 38px 34px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
    animation: authFadeIn 0.4s ease-out;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.brand-logo-badge {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: #ffffff;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 14px;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4), 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-header h2 {
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
    margin: 0;
    line-height: 1.25;
}

.auth-header .subtitle {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1.2px;
    margin-top: 5px;
    text-transform: uppercase;
}

/* Quick Demo Role Selector Pills */
.role-pills-bar {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 12px;
    margin-bottom: 22px;
}

.role-pills-header {
    margin-bottom: 10px;
    padding-left: 4px;
}

.role-pills-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-pills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.role-pill, .pill-btn {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.role-pill i, .pill-btn i {
    font-size: 13px;
    color: #2563eb;
    transition: color 0.2s;
    flex-shrink: 0;
}

.role-pill:hover, .pill-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1);
}

.role-pill.active, .pill-btn.active {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    border-color: #1d4ed8;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.role-pill.active i, .pill-btn.active i {
    color: #ffffff;
}

/* Auth Input Fields */
.auth-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrap .input-icon, .input-icon-wrap > i:first-child {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
    transition: color 0.2s;
}

.auth-input, .input-icon-wrap .form-control {
    width: 100%;
    height: 48px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 44px 0 42px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    background: #ffffff;
    transition: all 0.2s ease;
}

.auth-input:focus, .input-icon-wrap .form-control:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.15);
    outline: none;
}

.input-icon-wrap:focus-within .input-icon,
.input-icon-wrap:focus-within > i:first-child {
    color: #2563eb;
}

.btn-pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    font-size: 14px;
    transition: color 0.2s;
}

.btn-pwd-toggle:hover {
    color: #334155;
}

/* Auth Submit Button */
.btn-auth-submit {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    border: none;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.35);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.45);
    filter: brightness(1.05);
}

.btn-auth-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.auth-security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.auth-security-badge i {
    color: #10b981;
    font-size: 12px;
}

.copyright-text {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
}

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

/* ==================== SIDEBAR ==================== */
.sidebar {
    width: 220px;
    background: var(--navy-sidebar);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-brand {
    padding: 20px 18px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo-wrap {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
}

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

.brand-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    line-height: 1.1;
}

.brand-sub {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.8px;
}

.sidebar-role-badge {
    margin: 12px 14px 6px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.4);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: #93c5fd;
}

.sidebar-menu {
    flex: 1;
    padding: 10px 10px;
    overflow-y: auto;
}

.menu-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.menu-item i {
    font-size: 15px;
    width: 18px;
    text-align: center;
    color: #94a3b8;
}

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

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

.menu-item.active {
    background: var(--primary-blue);
    color: #ffffff;
}

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

.menu-item.highlight-menu.active {
    background: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.menu-item .badge-count {
    margin-left: auto;
    background: #ef4444;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
}

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

.btn-logout {
    width: 100%;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 12.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: #ef4444;
    color: #ffffff;
}

/* ==================== MAIN CONTENT & TOP HEADER ==================== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--slate-bg);
}

.top-header {
    height: 64px;
    min-height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.btn-sidebar-toggle {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 16px;
    color: #475569;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-sidebar-toggle:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.header-brand-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-brand-logo-small {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-brand-logo-small svg {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(225, 29, 72, 0.2));
}

.brand-mini-text {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.3px;
    color: #0f172a;
    line-height: 1;
}

.brand-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1.5px solid #e2e8f0;
    padding-left: 14px;
    gap: 2px;
}

.brand-heading {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.contextual-header-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    color: #0e1c36;
    letter-spacing: 0.5px;
    margin-left: 12px;
}

.contextual-header-pill i {
    color: var(--primary-blue);
    font-size: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    flex-shrink: 0;
}

.branch-selector-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 9999px;
    padding: 6px 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.branch-selector-container:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.branch-selector-container i {
    color: #64748b;
    font-size: 13px;
}

.branch-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.branch-dropdown-select {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    outline: none;
    padding: 0 2px;
}

.branch-static-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Header Notification Bell */
.btn-header-icon,
.header-notifications {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    outline: none;
    padding: 0;
}

.btn-header-icon:hover,
.header-notifications:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.15);
}

.header-badge,
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.35);
    line-height: 1;
}

/* User Profile Trigger & Info */
.user-profile-menu-container {
    position: relative;
}

.user-profile-btn,
.user-profile-widget {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 9999px;
    padding: 4px 14px 4px 5px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    font-family: inherit;
    text-align: left;
}

.user-profile-btn:hover,
.user-profile-widget:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.user-avatar,
.user-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.3);
    text-transform: uppercase;
    flex-shrink: 0;
}

.user-info,
.user-meta-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}

.user-name,
.user-meta-name {
    font-size: 12.5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.1px;
}

.user-role-badge-small,
.user-meta-role {
    font-size: 10.5px;
    font-weight: 600;
    color: #2563eb;
    letter-spacing: 0.2px;
}

/* Role Switcher Popover Menu */
.role-popover-menu,
.quick-switch-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 28px -5px rgba(15, 23, 42, 0.12), 0 8px 12px -6px rgba(15, 23, 42, 0.06);
    padding: 8px;
    z-index: 1000;
}

.role-popover-menu.d-none,
.quick-switch-popover.d-none {
    display: none !important;
}

.popover-header {
    padding: 6px 10px 8px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
}

.popover-title {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popover-item {
    width: 100%;
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.popover-item:hover {
    background: #f8fafc;
    color: #0f172a;
    transform: translateX(2px);
}

.popover-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 0;
}

.popover-item.text-danger {
    color: #ef4444;
}

.popover-item.text-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Responsive compact header */
@media (max-width: 1250px) {
    .header-brand-title .brand-tagline {
        display: none;
    }
}

@media (max-width: 1024px) {
    .brand-text-col {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 0 16px;
    }
    .btn-sidebar-toggle {
        display: inline-flex;
    }
    .branch-label {
        display: none;
    }
    .user-info {
        display: none;
    }
}

/* ==================== WORKSPACE VIEWPORT ==================== */
.workspace-viewport {
    flex: 1;
    padding: 20px 24px;
    max-width: 100%;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.view-section {
    display: none;
}

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

.view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.view-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0e1c36;
    letter-spacing: -0.3px;
}

.view-header .text-muted {
    font-size: 12.5px;
    margin-top: 2px;
}

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

/* ==========================================================================
   NEW BOOKING WORKSPACE (3-COLUMN CONTINUOUS WORKSPACE)
   ========================================================================== */
.booking-workspace-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Top Bar: Title & 6-Step Indicator */
.workspace-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    padding-bottom: 6px;
    flex-wrap: wrap;
    gap: 16px;
}

.workspace-title-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.workspace-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.workspace-title {
    font-size: 20px;
    font-weight: 800;
    color: #0e1c36;
    line-height: 1.1;
}

.workspace-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

/* 6-Step Stepper */
.booking-stepper {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
}

.step-node {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.5;
    transition: var(--transition);
}

.step-node.active {
    opacity: 1;
}

.step-circle {
    width: 24px;
    height: 24px;
    background: #e2e8f0;
    color: #475569;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 700;
}

.step-node.active .step-circle {
    background: var(--primary-blue);
    color: #ffffff;
}

.step-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.step-line {
    width: 28px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 4px;
}

.step-line.active {
    background: var(--primary-blue);
}

/* 3-Column Layout Grid */
.booking-columns-grid {
    display: grid;
    grid-template-columns: 230px minmax(380px, 1fr) 320px;
    gap: 14px;
    align-items: start;
}

/* Column Cards */
.column-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 16px;
}

.column-card-header {
    margin-bottom: 12px;
}

.section-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0e1c36;
}

/* ----------------------------------------------------
   COLUMN 1 (LEFT): TOUR SELECTION
   ---------------------------------------------------- */
.tour-search-wrap {
    position: relative;
    margin-bottom: 12px;
}

.tour-search-wrap .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}

.tour-search-input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 12.5px;
    background: #f8fafc;
    outline: none;
    transition: var(--transition);
}

.tour-search-input:focus {
    border-color: var(--primary-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--primary-blue-light);
}

.tour-cards-scroll-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    padding-right: 2px;
}

.tour-nav-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #ffffff;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tour-nav-card:hover {
    border-color: #93c5fd;
    background: #f8fafc;
    transform: translateY(-1px);
}

.tour-nav-card.active {
    border: 2px solid var(--primary-blue);
    background: var(--primary-blue-light);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.tour-nav-card.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--primary-blue);
    border-radius: 0 3px 3px 0;
}

.tour-thumb-img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

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

.tour-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3px;
}

.tour-nav-badge {
    font-size: 10.5px;
    font-weight: 800;
    color: #0e1c36;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.tour-nav-card.active .tour-nav-badge {
    color: var(--primary-blue);
}

.tour-status-tag {
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.tour-status-tag.status-active {
    background: #dcfce7;
    color: #15803d;
}

.tour-status-tag.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.tour-nav-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.tour-nav-card.active .tour-nav-title {
    color: #0e1c36;
}

/* ----------------------------------------------------
   COLUMN 2 (CENTER): DATE, BUS & SEAT MAP
   ---------------------------------------------------- */
.col-center-workspace {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.center-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 16px;
}

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

/* 2. Departure Date Chips */
.month-navigator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-month-nav {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.btn-month-nav:hover {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.current-month-label {
    font-size: 13px;
    font-weight: 700;
    color: #0e1c36;
}

.date-chips-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.date-chip {
    flex: 0 0 60px;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.date-chip:hover {
    border-color: var(--primary-blue);
    background: #f8fafc;
}

.date-chip.active {
    border: 2px solid var(--primary-blue);
    background: var(--primary-blue-light);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.date-chip .date-day {
    font-size: 16px;
    font-weight: 800;
    color: #0e1c36;
    line-height: 1;
}

.date-chip.active .date-day {
    color: var(--primary-blue);
}

.date-chip .date-month {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 3px;
}

/* 3. Bus Selection Cards */
/* 3. Compact Bus Selection Cards */
.bus-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.bus-compact-card {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.18s ease-in-out;
}

.bus-compact-card:hover {
    border-color: #93c5fd;
    background: #f8fafc;
    transform: translateY(-1px);
}

.bus-compact-card.selected {
    border: 2px solid var(--primary-blue);
    background: #f0f7ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.bus-card-header .bus-title-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bus-id-tag {
    font-size: 13.5px;
    font-weight: 800;
    color: #0e1c36;
    letter-spacing: 0.3px;
}

.bus-compact-card.selected .bus-id-tag {
    color: var(--primary-blue);
}

.bus-badge-type {
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    background: #e0f2fe;
    color: #0369a1;
    letter-spacing: 0.4px;
}

.bus-compact-card.selected .bus-badge-type {
    background: #dbeafe;
    color: var(--primary-blue);
}

.bus-reg-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.bus-body-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bus-type-text {
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
}

.bus-capacity-text {
    font-size: 11px;
    font-weight: 700;
    color: #0e1c36;
}

.bus-occupancy-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
}

.bus-compact-card.selected .bus-occupancy-stats {
    background: #ffffff;
    border-color: #bfdbfe;
}

.occ-stat-booked {
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 4px;
}

.occ-stat-avail {
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 4px;
}

.occ-num {
    font-weight: 800;
    font-size: 12px;
}

.bus-action-row {
    margin-top: 2px;
}

.btn-select-bus {
    width: 100%;
    padding: 7px 12px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.bus-compact-card:hover .btn-select-bus {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-select-bus.btn-selected {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* 4. Seat Map Legend & Digital Layout */
.seat-legend-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
}

.legend-box {
    width: 13px;
    height: 13px;
    border-radius: 3px;
    display: inline-block;
}

.box-avail { background: var(--color-avail-bg); border: 1px solid var(--color-avail-border); }
.box-pending { background: var(--color-pending-bg); border: 1px solid var(--color-pending-border); }
.box-booked { background: var(--color-booked-bg); border: 1px solid var(--color-booked-border); }
.box-hold { background: var(--color-hold-bg); border: 1px solid var(--color-hold-border); }
.box-blocked { background: var(--color-blocked-bg); border: 1px solid var(--color-blocked-border); }
.box-selected { background: var(--color-selected-bg); border: 1px solid var(--color-selected-border); }

/* Live Database Seat Counters Strip */
.seat-counters-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow-x: auto;
}

.counter-chip {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1px solid var(--border-light);
    white-space: nowrap;
}

.counter-chip strong {
    font-weight: 800;
    color: var(--text-main);
    margin-right: 2px;
}

.counter-chip.chip-booked strong { color: #dc2626; }
.counter-chip.chip-avail strong { color: #16a34a; }
.counter-chip.chip-pending strong { color: #d97706; }
.counter-chip.chip-hold strong { color: #7c3aed; }
.counter-chip.chip-blocked strong { color: #64748b; }

/* Realistic Bus Sleeper Outer Frame */
.bus-sleeper-frame {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 14px;
    max-width: 540px;
    margin: 4px auto 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

/* Bus Cockpit Top Bar */
.bus-cockpit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0f172a;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.cockpit-entry-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
}

.cockpit-driver-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Sleeper Grid: Left (DOWN, UP) | GALLERY | Right (UP, DOWN) */
.bus-sleeper-grid {
    display: grid;
    grid-template-columns: 1fr 34px 1fr;
    gap: 10px;
    align-items: center;
}

.compartment-half {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compartment-headers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seats-berth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Aisle Gallery Column */
.gallery-aisle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    color: #94a3b8;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    border-left: 1px dashed #e2e8f0;
    border-right: 1px dashed #e2e8f0;
    padding: 4px 0;
    user-select: none;
}

/* Individual Sleeper Seat Button */
.seat-btn {
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.seat-pillow {
    width: 60%;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.35;
    margin-bottom: 2px;
}

.seat-number-txt {
    line-height: 1;
}

.seat-btn.seat-avail {
    background: var(--color-avail-bg);
    border-color: var(--color-avail-border);
    color: var(--color-avail-text);
}

.seat-btn.seat-avail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.25);
    border-color: #16a34a;
}

.seat-btn.seat-booked {
    background: var(--color-booked-bg);
    border-color: var(--color-booked-border);
    color: var(--color-booked-text);
    cursor: not-allowed;
    opacity: 0.88;
}

.seat-btn.seat-pending {
    background: var(--color-pending-bg);
    border-color: var(--color-pending-border);
    color: var(--color-pending-text);
    cursor: not-allowed;
}

.seat-btn.seat-hold {
    background: var(--color-hold-bg);
    border-color: var(--color-hold-border);
    color: var(--color-hold-text);
    cursor: not-allowed;
}

.seat-btn.seat-blocked {
    background: var(--color-blocked-bg);
    border-color: var(--color-blocked-border);
    color: var(--color-blocked-text);
    cursor: not-allowed;
}

.seat-btn.seat-selected {
    background: var(--color-selected-bg) !important;
    border-color: var(--color-selected-border) !important;
    color: var(--color-selected-text) !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.45);
    transform: scale(1.04);
}

.seat-btn.seat-selected .seat-pillow {
    opacity: 0.7;
}

/* ----------------------------------------------------
   COLUMN 3 (RIGHT): BOOKING & PASSENGER DETAILS
   ---------------------------------------------------- */
.booking-summary-card {
    padding: 18px;
    position: sticky;
    top: 80px;
}

.sidebar-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    border-left: 3px solid var(--primary-blue);
    padding-left: 8px;
}

.btn-icon-close-summary {
    background: transparent;
    border: none;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon-close-summary:hover {
    color: var(--primary-blue);
    transform: rotate(-45deg);
}

.booking-context-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.booking-details-tour-banner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.booking-details-thumb {
    width: 60px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border-color);
    background: #e2e8f0;
}

.booking-details-tour-info {
    flex-grow: 1;
}

.detail-meta-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #334155;
    font-weight: 500;
}

.detail-meta-item i {
    width: 14px;
    text-align: center;
    font-size: 12.5px;
}

.context-line {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

.context-line.context-tour {
    font-size: 13px;
    font-weight: 800;
    color: #0e1c36;
}

.context-line.context-date {
    color: #334155;
}

.context-line.context-bus {
    color: #334155;
}

.context-line.context-seat {
    color: var(--primary-blue);
    font-weight: 800;
}

/* Passenger Forms inside Sidebar */
.passenger-card-unit {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 12px;
}

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

.passenger-number-tag {
    font-size: 12px;
    font-weight: 700;
    color: #0e1c36;
}

.btn-remove-passenger {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 12px;
}

.form-group {
    margin-bottom: 8px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 3px;
}

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

.form-control {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 12px;
    color: var(--text-main);
    background: #ffffff;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px var(--primary-blue-light);
}

.gender-radio-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}

.btn-add-passenger {
    background: #ffffff;
    border: 1px dashed var(--primary-blue);
    color: var(--primary-blue);
    font-size: 12px;
    font-weight: 700;
    padding: 8px;
    border-radius: var(--radius);
    cursor: pointer;
    margin-bottom: 16px;
    transition: var(--transition);
}

.btn-add-passenger:hover {
    background: var(--primary-blue-light);
}

/* Bottom Summary Bar */
.booking-bottom-bar {
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.summary-stats-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-group .stat-lbl {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
}

.stat-group .stat-val {
    font-size: 15px;
    font-weight: 800;
    color: #0e1c36;
}

.selected-seat-pills {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.seat-pill {
    background: var(--primary-blue-light);
    border: 1px solid var(--primary-blue-border);
    color: var(--primary-blue);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 4px;
}

.btn-submit-request {
    width: 100%;
    background: var(--primary-blue);
    color: #ffffff;
    border: none;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-submit-request:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   DASHBOARD & KPI CARDS
   ========================================================================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.kpi-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.kpi-icon.pending-icon { background: #fef3c7; color: #d97706; }
.kpi-icon.confirmed-icon { background: #dcfce7; color: #16a34a; }
.kpi-icon.seat-icon { background: #dbeafe; color: #2563eb; }
.kpi-icon.branch-icon { background: #f3e8ff; color: #7e22ce; }

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

.kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.kpi-value {
    font-size: 24px;
    font-weight: 800;
    color: #0e1c36;
    line-height: 1.1;
    margin: 2px 0;
}

.kpi-sub {
    font-size: 11px;
    color: var(--text-muted);
}

/* Dashboard Side-by-Side */
.dashboard-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.panel-section {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-card);
}

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

.panel-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0e1c36;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.badge-warning { background: #fef3c7; color: #92400e; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #e0f2fe; color: #075985; }

/* Departures List in Dashboard */
.departures-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.departure-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.departure-info strong {
    font-size: 12.5px;
    color: #0e1c36;
    display: block;
}

.departure-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   DASHBOARD BRANCH ACTION CARDS & COMMAND CENTER
   ========================================================================== */
.dash-panel-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fef3c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #d97706;
}

.dash-panel-heading {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.dash-panel-sub {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 400;
    margin-top: 2px;
}

.badge-urgent-pulse {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    font-weight: 700;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    animation: urgentPulseGlow 2s infinite ease-in-out;
}

@keyframes urgentPulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); }
    50% { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.12); }
}

/* Search Box */
.dash-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 0 12px;
    transition: all 0.2s ease;
    width: 240px;
}

.dash-search-box:focus-within {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    width: 280px;
}

.dash-search-box .search-icon {
    font-size: 12px;
    color: #94a3b8;
    margin-right: 8px;
}

.dash-search-box input {
    border: none;
    background: transparent;
    font-size: 12px;
    outline: none;
    width: 100%;
    padding: 6px 0;
    color: #1e293b;
}

.dash-search-box .btn-clear-search {
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 11px;
}

.dash-search-box .btn-clear-search:hover {
    color: #475569;
}

/* View Switcher */
.view-switcher-pill-group {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
    border: 1px solid #e2e8f0;
}

.view-switch-btn {
    border: none;
    background: transparent;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.view-switch-btn:hover {
    color: #1e293b;
}

.view-switch-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

/* Branch Hub Filter Bar */
.dash-branch-hub {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dash-branch-hub-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.dash-branch-pills-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dash-branch-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.dash-branch-pill:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.dash-branch-pill.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.dash-branch-pill .pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dash-branch-pill .dot-all { background: #64748b; }
.dash-branch-pill.active .dot-all { background: #38bdf8; }

.dash-branch-pill .pill-count {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 10px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 700;
}

.dash-branch-pill.active .pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Cards Grid */
.dash-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 16px;
}

@media (max-width: 768px) {
    .dash-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Individual Booking Card */
.dash-booking-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease, margin 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.dash-booking-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.dash-booking-card.card-approving {
    opacity: 0.4;
    pointer-events: none;
    transform: scale(0.97);
}

.dash-booking-card.card-approved-success {
    border-color: #10b981 !important;
    background: #ecfdf5 !important;
    opacity: 0;
    transform: scale(0.95);
    margin-top: -80px;
    pointer-events: none;
}

.dash-card-accent-bar {
    height: 4px;
    width: 100%;
}

.dash-card-header-area {
    padding: 12px 14px 10px 14px;
    background: #fafbfd;
    border-bottom: 1px solid #f1f5f9;
}

.dash-card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.branch-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.urgency-badge.urgency-critical {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.urgency-badge.urgency-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.urgency-badge.urgency-normal {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #bae6fd;
}

.urgency-badge.urgency-overdue {
    background: #450a0a;
    color: #fecaca;
    border: 1px solid #991b1b;
}

.urgency-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    animation: pulseDot 1.5s infinite;
}

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

.dash-card-ref-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: #64748b;
}

.ref-code-badge {
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    color: #1e40af;
    background: #eff6ff;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #bfdbfe;
    cursor: pointer;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ref-code-badge:hover {
    background: #dbeafe;
}

.dash-card-time {
    font-size: 11px;
    color: #94a3b8;
}

/* Card Body */
.dash-card-body-area {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-card-tour-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 11px;
}

.dash-tour-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 5px;
}

.dash-tour-meta {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dash-tour-meta .tour-bus-name {
    color: #334155;
    font-weight: 600;
}

.dash-passenger-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: start;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 9px 11px;
}

.dash-passenger-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash-passenger-phone {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash-passenger-phone a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.dash-passenger-phone a:hover {
    color: #2563eb;
}

.dash-phone-action-icon {
    font-size: 12px;
    color: #10b981;
    margin-left: 2px;
}

.dash-seat-badge-box {
    text-align: right;
}

.seat-pill-highlight {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11.5px;
    display: inline-block;
}

.seat-count-text {
    font-size: 10px;
    color: #64748b;
    margin-top: 2px;
}

.dash-location-row {
    font-size: 11.5px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-location-row .loc-icon {
    color: #ef4444;
    font-size: 12px;
    flex-shrink: 0;
}

.dash-card-fare-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
}

.dash-fare-tag {
    font-size: 14px;
    font-weight: 800;
    color: #059669;
}

.dash-note-box {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 6px;
    padding: 6px 9px;
    font-size: 11px;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Card Actions */
.dash-card-actions {
    padding: 10px 14px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-oneclick-approve {
    flex: 1;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
    transition: all 0.15s ease-in-out;
}

.btn-oneclick-approve:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.btn-oneclick-approve:active {
    transform: translateY(1px);
}

.card-action-icon-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 12px;
}

.btn-card-icon:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.btn-card-icon.icon-view:hover { color: #2563eb; border-color: #2563eb; background: #eff6ff; }
.btn-card-icon.icon-edit:hover { color: #d97706; border-color: #d97706; background: #fffbeb; }
.btn-card-icon.icon-reject:hover { color: #dc2626; border-color: #dc2626; background: #fef2f2; }
.btn-card-icon.icon-delete:hover { color: #b91c1c; border-color: #b91c1c; background: #fee2e2; }

/* Empty State */
.dash-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
}

.dash-empty-icon {
    font-size: 38px;
    color: #10b981;
    margin-bottom: 12px;
}

.dash-empty-state h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.dash-empty-state p {
    font-size: 13px;
    color: #64748b;
}

/* ==========================================================================
   APPROVAL CENTER & TABLES
   ========================================================================== */
.filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.filter-pills-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-pill {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.filter-pill:hover {
    background: #f1f5f9;
}

.filter-pill.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
}

.pill-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: 4px;
}

.filter-pill.active .pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.filter-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    min-width: 920px;
}

.data-table th {
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    white-space: nowrap;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    vertical-align: middle;
}

.data-table td:nth-child(1),
.data-table td:nth-child(2),
.data-table td:nth-child(5),
.data-table td:nth-child(6),
.data-table td:nth-child(7),
.data-table td:nth-child(8) {
    white-space: nowrap;
}

.data-table tr:hover td {
    background: #f8fafc;
}

.data-table td strong {
    color: #0e1c36;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-blue-hover);
}

.btn-outline {
    background: #ffffff;
    border-color: var(--border-color);
    color: var(--text-main);
}

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

.btn-success {
    background: #16a34a;
    color: #ffffff;
}

.btn-success:hover {
    background: #15803d;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
}

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

.btn-warning {
    background: #d97706;
    color: #ffffff;
}

.btn-warning:hover {
    background: #b45309;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 11.5px;
}

.btn-xs {
    padding: 3px 7px;
    font-size: 11px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-outline-danger {
    background: transparent;
    color: var(--color-booked);
    border: 1px solid var(--color-booked);
}

.btn-outline-danger:hover {
    background: #fef2f2;
    color: #991b1b;
    border-color: #991b1b;
}

.btn-outline-success {
    background: transparent;
    color: var(--color-avail);
    border: 1px solid var(--color-avail);
}

.btn-outline-success:hover {
    background: #f0fdf4;
    color: #166534;
}

.row-actions-group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-end;
}

.btn-block {
    width: 100%;
}

/* Filter Card */
.filter-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-card);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

/* ==========================================================================
   DRAWERS & MODALS
   ========================================================================== */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 500;
}

/* Centred modal shell (used by every modal-card dialog) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 660px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: auto;
    text-align: left;
    animation: modalCardIn 0.18s ease-out;
    position: relative;
    z-index: 10000;
}

.modal-card form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    overflow: hidden;
    min-height: 0;
}

.modal-card.modal-card-sm {
    max-width: 460px;
}

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

@keyframes modalCardIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.modal-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: #0e1c36;
    letter-spacing: -0.2px;
}

.modal-header .modal-subtitle {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 2px;
}

.modal-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.modal-body {
    padding: 18px 20px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.modal-body .form-group label {
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
}

.modal-card .modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 0;
    flex-shrink: 0;
}

/* Text-only confirmation dialogs */
.modal-card .modal-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}

.modal-details-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12.5px;
    margin-top: 12px;
}

.modal-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 12px;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

.checkbox-inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.req-star {
    color: #dc2626;
}

.modal-icon-badge.badge-success-soft { background: #dcfce7; color: #16a34a; }
.modal-icon-badge.badge-danger-soft  { background: #fee2e2; color: #dc2626; }
.modal-icon-badge.badge-warning-soft { background: #fef3c7; color: #d97706; }
.modal-icon-badge.badge-primary-soft { background: #dbeafe; color: #2563eb; }

/* ======================================================= */
/* CENTERED LUXURY BOOKING DOSSIER MODAL DIALOG            */
/* ======================================================= */
.drawer-overlay,
.dossier-modal-overlay,
#approval-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 18, 36, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    transition: opacity 0.25s ease;
}

.drawer-panel,
.dossier-modal-panel,
#approval-drawer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 980px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 40px);
    height: auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(226, 232, 240, 0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: dossierModalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dossierModalIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -46%) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.dossier-modal-header,
.drawer-header {
    background: linear-gradient(135deg, #0e1c36 0%, #172554 50%, #1e3a8a 100%);
    color: #ffffff;
    padding: 18px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.dossier-brand-logo,
.drawer-header-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.dossier-status-pill,
.drawer-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.dossier-status-pill.badge-success,
.dossier-status-pill.status-confirmed {
    background: #10b981;
    color: #ffffff;
}

.dossier-status-pill.badge-warning,
.dossier-status-pill.status-pending {
    background: #f59e0b;
    color: #ffffff;
}

.dossier-status-pill.badge-danger,
.dossier-status-pill.status-rejected {
    background: #ef4444;
    color: #ffffff;
}

.dossier-ref-tag {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.04em;
}

.dossier-branch-tag {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.dossier-modal-title,
.drawer-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 4px 0 0 0;
    letter-spacing: -0.01em;
}

.btn-dossier-close,
.btn-drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.18s ease;
}

.btn-dossier-close:hover,
.btn-drawer-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
    color: #ffffff;
}

.drawer-section {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    color: #0e1c36;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.approval-summary-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 10px;
    margin-bottom: 16px;
}

.banner-item .lbl {
    font-size: 10.5px;
    color: var(--text-muted);
    display: block;
}

.banner-item strong {
    font-size: 12.5px;
    color: #0e1c36;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 12px;
}

.detail-row span {
    color: var(--text-muted);
}

.detail-row strong {
    color: #0e1c36;
}

.filter-controls-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 140px;
}

.filter-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-clear-filters {
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

/* ======================================================= */
/* DOSSIER MODAL 2-COLUMN BODY, CARDS & SECTIONS           */
/* ======================================================= */
.dossier-modal-body,
.drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 22px 26px;
    background: #f8fafc;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 22px;
    align-items: start;
}

@media (max-width: 880px) {
    .dossier-modal-body,
    .drawer-body {
        grid-template-columns: 1fr;
        padding: 16px;
    }
}

.dossier-col-left,
.dossier-col-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.dossier-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.dossier-card-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #0e1c36;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.dossier-tour-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.tour-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.tour-heading {
    font-size: 15px;
    font-weight: 800;
    color: #0e1c36;
    margin: 0;
}

.dossier-code-badge {
    font-size: 11px;
    font-weight: 700;
    background: #dbeafe;
    color: #1e40af;
    padding: 2px 8px;
    border-radius: 5px;
    border: 1px solid #93c5fd;
}

.dossier-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

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

.dossier-stat-tile {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dossier-stat-tile.highlight-tile {
    background: #f0fdf4;
    border-color: #86efac;
}

.stat-tile-label {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-tile-val {
    font-size: 13.5px;
    font-weight: 700;
    color: #0e1c36;
    word-break: break-word;
}

/* Lead Passenger Profile */
.lead-passenger-profile {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.passenger-avatar-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

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

.passenger-name-hero {
    font-size: 14.5px;
    font-weight: 800;
    color: #0e1c36;
    word-break: break-word;
}

.dossier-id-chip {
    font-size: 11px;
    font-weight: 600;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 2px 8px;
    display: inline-flex;
    align-items: center;
}

.passenger-quick-contacts {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-chip {
    font-size: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 3px 8px;
    color: #0e1c36;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Route & Boarding Drop */
.dossier-route-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.route-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.route-icon-dot {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.route-icon-dot.start {
    background: #dbeafe;
    color: #1e40af;
}

.route-icon-dot.end {
    background: #fef3c7;
    color: #b45309;
}

.route-line-connector {
    width: 28px;
    height: 2px;
    background: #cbd5e1;
    flex-shrink: 0;
}

.dossier-notes-container {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
}

.notes-text {
    font-size: 12px;
    color: #334155;
    font-style: italic;
}

/* Verification Banner */
.dossier-seat-alert,
.drawer-seat-alert {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #6ee7b7;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-icon-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.alert-title {
    font-size: 12px;
    font-weight: 700;
    color: #065f46;
}

.alert-desc {
    font-size: 11.5px;
    color: #047857;
    margin-top: 1px;
}

/* Revision Warning Alert */
.dossier-revision-alert {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-icon-warning {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f59e0b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* Roster Manifest Table */
.dossier-badge-count {
    font-size: 11px;
    font-weight: 700;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 9999px;
    padding: 2px 8px;
}

.roster-table-wrapper {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.luxury-roster-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 12px;
    border-collapse: separate;
    border-spacing: 0;
}

.luxury-roster-table thead th {
    background: #f1f5f9;
    color: #475569;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 10px;
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 1px solid #cbd5e1;
    white-space: nowrap;
}

.luxury-roster-table tbody td {
    padding: 8px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.seat-badge-pill {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

.age-gender-chip {
    font-size: 11px;
    font-weight: 600;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 2px 6px;
    color: #475569;
}

.id-proof-chip {
    font-size: 11px;
    color: #64748b;
}

/* Timeline in Right Column */
.dossier-timeline-wrapper,
.drawer-audit-log {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 2px;
}

.dossier-timeline-item,
.drawer-audit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    padding-left: 2px;
}

.timeline-marker,
.drawer-audit-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3b82f6;
    border: 2px solid #bfdbfe;
    margin-top: 5px;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.timeline-body,
.drawer-audit-content {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
}

.timeline-action {
    font-size: 12px;
    font-weight: 700;
    color: #0e1c36;
}

.timeline-time {
    font-size: 10.5px;
    color: #64748b;
}

.timeline-meta,
.drawer-audit-meta {
    font-size: 11px;
    color: #475569;
    margin-top: 2px;
}

.timeline-author {
    font-weight: 600;
    color: #1e293b;
}

/* Dossier Footer Action Bar */
.dossier-modal-footer,
.drawer-footer {
    padding: 16px 26px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
}

.btn-dossier {
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.16s ease;
}

.btn-dossier:hover {
    transform: translateY(-1px);
}

.btn-dossier-primary {
    font-size: 13px;
    font-weight: 800;
    padding: 9px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.16s ease;
}

.btn-dossier-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
    transform: translateY(-1px);
}

/* APPROVAL CARDS GRID */
.approval-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.pending-approval-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}

.pending-approval-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

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

.appr-card-ref {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
    font-family: monospace;
}

.appr-card-tour {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.appr-card-meta {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
}

.appr-card-field {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    padding: 3px 0;
}

.appr-card-field .lbl {
    color: #64748b;
    font-weight: 600;
}

.appr-card-field strong {
    color: #0f172a;
}

.appr-card-footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

/* DRAWER DETAILS CARD */
.drawer-details-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    padding: 3px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.drawer-info-row:last-child {
    border-bottom: none;
}

.drawer-info-row .info-label {
    color: #64748b;
    font-weight: 600;
    min-width: 90px;
}

.drawer-info-row .info-value {
    text-align: right;
    color: #0f172a;
}

.branchadmin-notice {
    padding: 8px 12px;
    background: #f1f5f9;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 11.5px;
}

.drawer-notes-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 12px;
    color: var(--text-main);
    line-height: 1.4;
}

.passenger-roster-box .departure-item-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 8px 12px;
}

.edit-passengers-list {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 2px;
}

.edit-passenger-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr;
    gap: 6px;
    align-items: center;
}

/* Modals */
.modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 520;
    width: 90%;
    max-width: 440px;
    text-align: center;
}

.modal-icon {
    margin-bottom: 12px;
}

.modal-box h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0e1c36;
    margin-bottom: 6px;
}

.modal-box p {
    font-size: 12.5px;
    color: var(--text-muted);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast-msg {
    background: #0e1c36;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 12.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.toast-msg.success { border-left: 4px solid #22c55e; }
.toast-msg.error { border-left: 4px solid #ef4444; }

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (DESKTOP, TABLET, MOBILE)
   ========================================================================== */

/* Base Sleeper Frame & Seat Touch Target Safety */
.bus-sleeper-frame {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 14px;
}

.bus-sleeper-grid {
    min-width: 360px; /* Ensures seats never shrink to unclickable sizes */
}

.seat-btn {
    min-height: 42px;
    min-width: 44px;
    touch-action: manipulation;
}

/* TABLET & COMPACT SCREENS (max-width: 1024px) */
@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }
    .booking-columns-grid {
        grid-template-columns: 220px 1fr;
        gap: 14px;
    }
    .col-booking-details {
        grid-column: 1 / -1;
    }
    .booking-summary-card {
        position: static;
        width: 100%;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .workspace-viewport {
        padding: 16px 18px;
    }
}

/* MOBILE & SMALL TABLET (max-width: 899px) */
@media (max-width: 899px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .app-layout {
        flex-direction: column;
        width: 100%;
        overflow-x: hidden;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -270px;
        width: 250px;
        height: 100vh;
        height: 100dvh;
        z-index: 1000;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
        transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .sidebar.open {
        left: 0;
    }

    .btn-sidebar-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: var(--radius-sm);
        background: #f1f5f9;
        border: 1px solid var(--border-color);
        color: var(--text-main);
        cursor: pointer;
    }

    /* Header wraps onto a second row on narrow screens: let it grow so the
       branch / bell / profile controls never overlap the page content. */
    .top-header {
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 10px;
        height: auto;
        min-height: 60px;
        align-items: center;
    }

    .header-left {
        gap: 10px;
        flex-wrap: wrap;
        min-width: 0;
    }

    .header-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-brand-title .brand-heading {
        font-size: 13px;
    }

    .header-brand-title .brand-tagline {
        display: none;
    }

    .contextual-header-pill {
        margin-left: 0;
        font-size: 10.5px;
        padding: 4px 8px;
        width: 100%;
        justify-content: center;
    }

    .workspace-viewport {
        padding: 12px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    /* Vertical Flow on Mobile: Tour -> Date -> Bus -> Seat -> Passenger Form */
    .booking-columns-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .col-tour-selection,
    .col-center-workspace,
    .col-booking-details {
        width: 100%;
        max-width: 100%;
    }

    .tour-cards-scroll-list {
        max-height: 220px;
    }

    .date-chips-row {
        gap: 8px;
        padding-bottom: 6px;
    }

    .bus-cards-row {
        gap: 10px;
    }

    .bus-compact-card {
        min-width: 140px;
        flex: 1 1 140px;
    }

    .seat-counters-strip {
        gap: 6px;
        padding: 6px 8px;
        font-size: 10.5px;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dashboard-grid-2col {
        grid-template-columns: 1fr;
        gap: 14px;
    }

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

    /* Full-width responsive Drawer on Mobile */
    .drawer-panel {
        width: 100%;
        max-width: 100%;
    }

    .modal-box {
        width: 94%;
        margin: 10px auto;
        padding: 16px;
    }

    .booking-bottom-bar {
        position: sticky;
        bottom: 0;
        background: #ffffff;
        padding: 12px 0 6px;
        border-top: 1px solid var(--border-color);
        z-index: 50;
    }
}

/* ==========================================================================
   STEP-BY-STEP FULL-SCREEN BOOKING WIZARD (ONE STEP = ONE WORKSPACE)
   ========================================================================== */

.step-booking-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 10px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* 1. TOP STEPPER BAR */
.step-stepper-wrap {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 28px;
    box-shadow: var(--shadow-sm);
}

.step-stepper-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 2;
    transition: all 0.2s ease;
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    color: #64748b;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.step-circle .step-check {
    display: none;
}

.step-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    transition: color 0.2s ease;
}

/* Active Step */
.step-item.active .step-circle {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.step-item.active .step-label {
    color: #2563eb;
    font-weight: 700;
}

.step-item.completed .step-circle {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.step-item.completed .step-circle .step-num {
    display: none;
}

.step-item.completed .step-circle .step-check {
    display: inline-block;
    font-size: 14px;
}

.step-item.completed .step-label {
    color: #1e293b;
    font-weight: 600;
}

.step-item.disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.step-item.disabled .step-circle {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
}

/* Stepper Connector Lines */
.step-connector {
    flex-grow: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 10px 22px;
    position: relative;
    z-index: 1;
    transition: background 0.25s ease;
}

.step-connector.active {
    background: #2563eb;
}

/* 2. STEP WORKSPACE PANES */
.step-pane {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 36px 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 22px;
    animation: fadeInStep 0.22s ease-out;
}

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

.step-pane-header {
    margin-bottom: 6px;
}

.step-main-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.step-subtitle {
    font-size: 14.5px;
    color: #64748b;
    margin: 0;
}

/* STEP 1: SELECT TOUR (4-COLUMN RESPONSIVE GRID MATCHING MOCKUP) */
.step-search-wrap {
    position: relative;
    max-width: 100%;
    margin: 0 auto 16px;
    width: 100%;
}

.step-search-wrap .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.step-search-input {
    width: 100%;
    padding: 12px 18px 12px 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13.5px;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-search-input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.step-tours-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1400px) {
    .step-tours-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

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

@media (max-width: 576px) {
    .step-tours-grid {
        grid-template-columns: 1fr;
    }
}

.step-tour-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.step-tour-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.step-tour-card.selected {
    border-color: #2563eb;
    border-width: 2px;
    box-shadow: 0 0 0 1px #2563eb, 0 6px 18px rgba(37, 99, 235, 0.16);
}

.step-tour-img-wrap {
    position: relative;
    width: 100%;
    height: 135px;
    overflow: hidden;
    background: #f1f5f9;
}

.step-tour-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.step-tour-card:hover .step-tour-img {
    transform: scale(1.03);
}

.step-tour-days-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.2px;
    z-index: 2;
}

.step-tour-radio-circle {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 10.5px;
    transition: all 0.2s ease;
    backdrop-filter: blur(2px);
    z-index: 2;
}

.step-tour-radio-circle.checked {
    background: #2563eb;
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.step-tour-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-grow: 1;
    background: #ffffff;
}

.step-tour-code-tag {
    background: #e0f2fe;
    color: #0284c7;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    width: fit-content;
    letter-spacing: 0.4px;
}

.step-tour-card-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-top: 3px;
}

.step-tour-card-desc {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.35;
    margin-top: 2px;
}

/* Modern Step Top / Bottom Action Bar */
.step-top-action-bar,
.step-footer-modern-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 20px;
    margin-top: 14px;
    margin-bottom: 14px;
}

.step-footer-left-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-footer-icon-box {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 16px;
}

.step-footer-num {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.step-footer-desc {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* ==========================================================================
   STEP 2: SELECT DEPARTURE DATE (2-COLUMN LAYOUT: TOUR CARD + MONTHLY CALENDAR)
   ========================================================================== */
.step2-layout-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    max-width: 1140px;
    margin: 0 auto;
    align-items: start;
}

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

/* Left Column: Tour Summary Card */
.step2-tour-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.step2-tour-media-wrap {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #e2e8f0;
}

.step2-tour-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.step2-tour-badge-pill {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.step2-tour-body {
    padding: 18px 20px;
}

.step2-tour-title {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.2px;
}

.step2-tour-route {
    font-size: 12.5px;
    color: #334155;
    line-height: 1.45;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.step2-tour-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 12px 0 16px 0;
}

.step2-tour-meta-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step2-tour-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 12.5px;
    gap: 12px;
}

.step2-tour-meta-item .meta-label {
    color: #64748b;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    min-width: 115px;
}

.step2-tour-meta-item .meta-val {
    color: #0f172a;
    font-weight: 700;
    text-align: right;
    word-break: break-word;
}

/* Right Column: Interactive Calendar Card */
.step2-calendar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.step2-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.btn-step2-cal-nav {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s ease;
}

.btn-step2-cal-nav:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.step2-cal-month-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.2px;
}

.btn-step2-today {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.15s ease;
}

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

.step2-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 12px;
}

.step2-cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.step2-cal-cell {
    min-height: 84px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    transition: all 0.15s ease;
    background: #ffffff;
    user-select: none;
}

.step2-cal-cell.disabled-empty {
    background: #f8fafc;
    border-color: #f1f5f9;
    cursor: default;
    justify-content: center;
    opacity: 0.55;
    pointer-events: none;
}

.step2-cal-cell.disabled-empty .cell-day-num {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 16px;
}

.step2-cal-cell.available {
    border-color: #e2e8f0;
    cursor: pointer;
}

.step2-cal-cell.available:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.step2-cal-cell.full {
    background: #ffffff;
    border-color: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.85;
}

.step2-cal-cell.not-available {
    background: #ffffff;
    border-color: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.7;
}

.step2-cal-cell.selected {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.35) !important;
    pointer-events: auto !important;
}

.step2-cal-cell .cell-day-num {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.step2-cal-cell.selected .cell-day-num {
    color: #ffffff !important;
}

.step2-cal-cell .cell-mon-code {
    font-size: 9.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-top: 2px;
}

.step2-cal-cell.selected .cell-mon-code {
    color: #bfdbfe !important;
}

.step2-cal-cell .cell-check-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #ffffff;
}

.step2-cal-cell .cell-status-tag {
    font-size: 9.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px;
    border-radius: 4px;
    margin-top: 4px;
    white-space: nowrap;
}

.cell-status-tag.status-available {
    color: #15803d;
}

.cell-status-tag.status-available .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
    display: inline-block;
}

.step2-cal-cell.selected .cell-status-tag.status-available {
    color: #ffffff !important;
}

.step2-cal-cell.selected .cell-status-tag.status-available .status-dot {
    background: #22c55e !important;
}

.cell-status-tag.status-full {
    color: #b91c1c;
}

.cell-status-tag.status-full .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #dc2626;
    display: inline-block;
}

.cell-status-tag.status-none {
    color: #64748b;
}

.cell-status-tag.status-none .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    display: inline-block;
}

.step2-selected-date-banner {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    color: #1e40af;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.05);
}

/* STEP 3: SELECT BUS */
.step-bus-context-banner {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 8px 20px;
    margin-top: 4px;
}

.step-bus-context-banner .context-item {
    font-size: 13.5px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-bus-context-banner .context-lbl {
    color: #64748b;
    font-weight: 600;
}

.step-bus-context-banner .context-divider {
    width: 1px;
    height: 18px;
    background: #cbd5e1;
}

.badge-sub-title {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 4px 14px;
    border-radius: 999px;
}

/* ========================================================================== */
/* STEP 3: SELECT BUS - EXACT REFERENCE DESIGN                                 */
/* ========================================================================== */
.step3-summary-strip {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 22px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    gap: 16px;
}

.step3-summary-col {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.step3-summary-col.tour-col {
    flex: 2.2;
}

.step3-thumb-img {
    width: 62px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.step3-summary-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.step3-lbl {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: capitalize;
}

.step3-val-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step3-val-route {
    font-size: 11.5px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.step3-icon-box {
    width: 36px;
    height: 36px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 16px;
    flex-shrink: 0;
}

.step3-val-date {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.step3-val-sub {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
}

.step3-summary-col.route-col {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 16px;
    flex: 1.5;
}

.step3-route-point {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step3-route-meta {
    display: flex;
    flex-direction: column;
}

.step3-val-city {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
}

.step3-val-duration {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
}

.step3-strip-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
    flex-shrink: 0;
}

/* 3-Column Luxury Bus Grid */
.step-buses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 6px;
    margin-bottom: 12px;
}

.step-bus-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.step-bus-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.step-bus-card.selected {
    border: 2px solid #2563eb;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.14);
}

.step-bus-card-top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 4px;
}

.step-bus-radio-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 11px;
    color: transparent;
}

.step-bus-radio-circle.checked {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.step-bus-img-container {
    width: 100%;
    height: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
}

.step-bus-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.step-bus-card:hover .step-bus-img {
    transform: scale(1.03);
}

.step-bus-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.step-bus-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-bus-code-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.5px;
}

.step-bus-recommended-badge {
    background: #dcfce7;
    color: #16a34a;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
}

.step-bus-title {
    font-size: 16.5px;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1.25;
    margin-top: 1px;
}

.step-bus-reg {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-bus-features-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 12px;
}

.step-bus-feature {
    display: flex;
    align-items: center;
    gap: 5px;
}

.step-bus-feature i {
    color: #1e3a8a;
    font-size: 13px;
}

/* 3-Pill Seat Stats Row */
.step-bus-seat-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-pill-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border-radius: 8px;
    text-align: center;
}

.stat-pill-box .stat-num {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
}

.stat-pill-box .stat-name {
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
}

.stat-pill-box.booked {
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.stat-pill-box.booked .stat-num {
    color: #dc2626;
}
.stat-pill-box.booked .stat-name {
    color: #64748b;
}

.stat-pill-box.available {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}
.stat-pill-box.available .stat-num {
    color: #16a34a;
}
.stat-pill-box.available .stat-name {
    color: #64748b;
}

.stat-pill-box.total {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}
.stat-pill-box.total .stat-num {
    color: #1e3a8a;
}
.stat-pill-box.total .stat-name {
    color: #64748b;
}

/* STEP 4: SELECT SEAT */
.step-seat-workspace-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
}

.step-seat-legend-bar {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    background: #f8fafc;
    padding: 8px 16px;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    width: 100%;
}

.legend-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.step-seat-workspace-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

.step-seat-legend-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    flex-wrap: wrap;
}

.legend-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #334155;
    font-weight: 700;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.dot-available { background: #dcfce7; border: 1.5px solid #22c55e; }
.dot-booked { background: #fee2e2; border: 1.5px solid #ef4444; }
.dot-pending { background: #fef9c3; border: 1.5px solid #eab308; }
.dot-selected { background: #2563eb; border: 1.5px solid #1d4ed8; }
.dot-blocked { background: #f1f5f9; border: 1.5px solid #94a3b8; }

/* ========================================================================== */
/* STEP 4: SELECT SEAT - EXACT REFERENCE DESIGN                                */
/* ========================================================================== */
.step-bus-frame {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    background: #ffffff;
    border: 2px solid #334155;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.step-bus-cockpit {
    background: linear-gradient(180deg, #93c5fd 0%, #bfdbfe 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    border-bottom: 2px solid #64748b;
}

.cockpit-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #93c5fd;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.cockpit-brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cockpit-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cockpit-brand-name {
    font-size: 15px;
    font-weight: 900;
    color: #dc2626;
    letter-spacing: 1px;
    line-height: 1;
}

.cockpit-brand-sub {
    font-size: 10px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

/* Column Headers: DOWN / UP / GALLERY / UP / DOWN */
.step-berth-column-headers {
    display: grid;
    grid-template-columns: 1fr 44px 1fr;
    gap: 10px;
    background: #0f172a;
    color: #ffffff;
    border-bottom: 2px solid #334155;
    padding: 10px 14px 8px;
    box-sizing: border-box;
}

.berth-header-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.berth-cat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #cbd5e1;
    text-transform: uppercase;
}

.berth-num-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
}

.berth-header-aisle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    color: #38bdf8;
    line-height: 1.15;
    letter-spacing: 1px;
}

/* Sleeper Grid & Cabin Interior */
.step-sleeper-grid {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    gap: 8px;
    background: #021a14;
    border: 2px solid #064e3b;
}

.step-seat-tier-row {
    display: grid;
    grid-template-columns: 1fr 44px 1fr;
    gap: 10px;
    align-items: stretch;
}

.tier-berth-block {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.step-seat-btn {
    min-height: 56px;
    padding: 4px 4px;
    border-radius: 8px;
    border: 1.5px solid #4ade80;
    background: #bbf7d0;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    text-align: center;
    box-sizing: border-box;
}

.step-seat-btn:hover:not(.seat-booked):not(.seat-blocked):not(.seat-pending) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

.step-seat-btn .seat-no {
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.1;
}

.step-seat-btn .seat-ref-code {
    font-size: 9.5px;
    font-weight: 700;
    opacity: 0.85;
    line-height: 1;
}

.step-seat-btn .seat-passenger-lbl {
    font-size: 8.5px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.1;
    margin-top: 1px;
}

.step-seat-btn .seat-check-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    color: #1d4ed8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9.5px;
    font-weight: 900;
}

/* Status variants */
.step-seat-btn.seat-available {
    background: #bbf7d0;
    border-color: #4ade80;
    color: #0f172a;
}

.step-seat-btn.seat-booked {
    background: #fecaca;
    border-color: #f87171;
    color: #0f172a;
    cursor: not-allowed;
}

.step-seat-btn.seat-pending {
    background: #fef08a;
    border-color: #facc15;
    color: #0f172a;
    cursor: not-allowed;
}

.step-seat-btn.seat-blocked {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #475569;
    cursor: not-allowed;
}

.step-seat-btn.seat-selected {
    background: #1d4ed8 !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.45);
    transform: scale(1.02);
}

.tier-aisle-char {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    color: #38bdf8;
    background: transparent;
    letter-spacing: 1px;
}

/* Unified Legend & Stats Strip */
.step4-unified-legend-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 20px;
    margin-top: 14px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.legend-items-group {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-color-dot.dot-available { background: #4ade80; }
.legend-color-dot.dot-booked { background: #f87171; }
.legend-color-dot.dot-pending { background: #facc15; }
.legend-color-dot.dot-selected { background: #1d4ed8; }
.legend-color-dot.dot-blocked { background: #94a3b8; }

.legend-v-divider {
    width: 1px;
    height: 24px;
    background: #cbd5e1;
    margin: 0 10px;
}

.stats-items-group {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 12.5px;
    font-weight: 700;
}

.stat-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Bottom Action Bar */
.step4-bottom-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 960px;
    margin: 18px auto 0;
    gap: 16px;
}

.step4-selected-seats-center {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 8px 16px;
    border-radius: 10px;
    flex-grow: 1;
    justify-content: center;
}

.step4-selected-label {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.step4-chips-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.step-seat-chip {
    background: #dbeafe;
    color: #1e40af;
    font-size: 12.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #93c5fd;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.step-seat-chip-remove {
    cursor: pointer;
    font-size: 11px;
    color: #2563eb;
}

.btn-clear-seats-outline {
    background: #ffffff;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-clear-seats-outline:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

.step-selected-seats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 10px 16px;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.selected-seats-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge-seats-count {
    font-size: 13.5px;
    color: #0f172a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.selected-seat-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.step-seat-chip {
    background: #2563eb;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.25);
}

.step-seat-chip-remove {
    cursor: pointer;
    font-size: 12px;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.15s ease;
}

.step-seat-chip-remove:hover {
    opacity: 1;
}

.btn-clear-seats {
    background: #ffffff;
    border: 1px solid #fca5a5;
    color: #dc2626;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-clear-seats:hover {
    background: #fee2e2;
    border-color: #ef4444;
}

.step-seat-stats-strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 10px 16px;
    width: 100%;
    flex-wrap: wrap;
}

.step-seat-stats-strip .stat-pill {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* STEP 5: PASSENGER DETAILS FORM */
.step-passenger-card {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.step-form-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 0.5px;
    border-bottom: 1.5px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.step-form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0 14px;
    position: relative;
}

.step-form-divider::before,
.step-form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.step-form-divider span {
    padding: 0 12px;
    font-size: 11.5px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.8px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.step-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.step-form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.step-gender-options {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 8px 0;
}

.gender-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
}

.gender-radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.step-info-callout {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 16px;
    color: #1e40af;
    font-size: 13px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 14px;
}

.step-info-callout i {
    font-size: 20px;
    margin-top: 2px;
    color: #2563eb;
}

.callout-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.callout-heading {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e40af;
}

.callout-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
}

.callout-preview-grid .preview-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.callout-preview-grid .preview-lbl {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.callout-preview-grid strong {
    font-size: 13px;
    color: #0f172a;
    font-weight: 800;
}

/* STEP 6: REVIEW & SUBMIT (MATCHING UI IMAGE 2) */
.step-review-container {
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.review-tour-bus-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.review-tour-thumb-wrap {
    width: 140px;
    height: 95px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.review-tour-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-tour-info-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-grow: 1;
}

.review-tour-header-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-tour-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.badge-active-pill {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

.review-meta-item {
    font-size: 13.5px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-passenger-card-modern {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.review-passenger-card-modern .review-card-heading {
    background: #f8fafc;
    padding: 12px 18px;
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-passenger-table-grid {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.review-grid-row.full-width {
    grid-template-columns: 1fr;
}

.review-kv {
    display: flex;
    align-items: baseline;
    font-size: 13.5px;
}

.review-kv .k {
    color: #64748b;
    font-weight: 600;
    min-width: 140px;
}

.review-kv .sep {
    color: #94a3b8;
    margin: 0 10px 0 2px;
    font-weight: 700;
}

.review-kv .v {
    color: #0f172a;
    font-weight: 600;
}

/* STEP FOOTER NAVIGATION BUTTONS */
.step-footer-nav {
    display: flex;
    align-items: center;
    margin-top: 14px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.btn-step-back {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #475569;
    border-radius: var(--radius);
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-step-back:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.btn-step-next {
    background: #2563eb;
    border: 1.5px solid #2563eb;
    color: #ffffff;
    border-radius: var(--radius);
    padding: 10px 26px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-step-next:hover:not(:disabled) {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-step-next:disabled {
    background: #94a3b8;
    border-color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.65;
}

.btn-step-submit {
    background: #2563eb;
    border: 1.5px solid #2563eb;
    color: #ffffff;
    border-radius: var(--radius);
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-step-submit:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
}

/* STEP 7: SUBMISSION & CONFIRMATION */
.step-success-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #10b981;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.step-confirmation-card {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.confirmation-ref-badge {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #1e3a8a;
}

.confirmation-ref-badge strong {
    font-size: 18px;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: 0.5px;
}

.confirmation-status-pipeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    flex: 1;
}

.pipeline-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pipeline-step.completed .pipeline-icon {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.pipeline-step.active .pipeline-icon {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.pipeline-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.pipeline-sub {
    font-size: 11px;
    color: #64748b;
}

.pipeline-line {
    flex-grow: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 10px 24px;
}

.pipeline-line.active {
    background: #10b981;
}

.confirmation-summary-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.confirmation-meta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 13.5px;
    color: #334155;
}

/* Stepper Interactivity */
.step-item.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.step-item.completed:hover .step-circle {
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* RESPONSIVE DESIGN FOR STEP-BY-STEP WORKSPACE */
@media (max-width: 899px) {
    .step-stepper-wrap {
        padding: 12px 14px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .step-label {
        font-size: 10px;
    }

    .step-connector {
        margin: 0 4px 18px;
    }

    .step-pane {
        padding: 20px 16px;
    }

    .step-tours-grid,
    .step-buses-grid {
        grid-template-columns: 1fr;
    }

    .form-row-2col,
    .review-grid-row,
    .confirmation-meta-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .review-tour-hero {
        flex-direction: column;
        text-align: center;
    }

    .review-meta-sub {
        margin-left: 0;
    }
}

/* =========================================================================
   DEPARTURE DATE MANAGEMENT (SUPER ADMIN) MODERN UI
   ========================================================================= */
.schedules-month-pills-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 2px 10px;
    scrollbar-width: thin;
}
.schedules-month-pills-bar::-webkit-scrollbar {
    height: 4px;
}
.schedules-month-pills-bar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.sched-pill {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-muted, #64748b);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    user-select: none;
}
.sched-pill:hover {
    background: #f8fafc;
    color: var(--text-main, #0f172a);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}
.sched-pill.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}
.occupancy-progress {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
    border: 1px solid #e2e8f0;
}
.occupancy-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.status-pill.open {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.status-pill.closed {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}
.pagination-footer {
    background: #fafafa;
    border-top: 1px solid var(--border-color, #e2e8f0);
}
.pagination-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: #ffffff;
    color: var(--text-main, #334155);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.pagination-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.pagination-btn.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}
.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-view-sched-seats {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 3px 8px !important;
    font-size: 11px !important;
    font-weight: 600;
}

/* =========================================================================
   Tour-Wise Departure Schedule Matrix & Calendar Manager
   ========================================================================= */
.schedules-view-switcher {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius, 10px);
    padding: 8px 12px;
}
.tab-pill-group {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    gap: 4px;
}
.tab-pill-btn {
    border: none;
    background: transparent;
    color: var(--text-muted, #64748b);
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}
.tab-pill-btn:hover {
    color: var(--text-main, #0f172a);
}
.tab-pill-btn.active {
    background: #ffffff;
    color: #0284c7;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Tour Matrix Date Chips */
.tour-matrix-date-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    max-width: 100%;
}
.matrix-date-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 26px;
    padding: 0 6px;
    font-size: 11.5px;
    font-weight: 700;
    font-family: var(--font-mono, monospace);
    border-radius: 6px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    text-decoration: none;
}
.matrix-date-chip:hover {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
}
.matrix-date-chip.closed {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}
.matrix-date-chip.closed:hover {
    background: #dc2626;
    color: #ffffff;
}
.matrix-date-chip.add-chip {
    background: #f8fafc;
    color: #0284c7;
    border: 1px dashed #93c5fd;
    font-weight: 600;
    padding: 0 8px;
    gap: 3px;
    font-family: inherit;
    font-size: 11px;
}
.matrix-date-chip.add-chip:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    border-style: solid;
}

/* Interactive Tour Calendar Month Grid */
.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}
@media (max-width: 992px) {
    .calendar-days-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .calendar-days-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.calendar-day-card {
    border-radius: 8px;
    padding: 8px 8px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 86px;
    min-width: 0;
    position: relative;
    user-select: none;
    box-sizing: border-box;
    overflow: hidden;
}
.calendar-day-card.scheduled {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    box-shadow: 0 1px 3px rgba(34, 197, 94, 0.08);
}
.calendar-day-card.scheduled:hover {
    border-color: #22c55e;
    box-shadow: 0 3px 8px rgba(34, 197, 94, 0.15);
}
.calendar-day-card.scheduled.closed {
    background: #fef2f2;
    border-color: #fca5a5;
}
.calendar-day-card.unscheduled {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    cursor: pointer;
    color: #64748b;
}
.calendar-day-card.unscheduled:hover {
    background: #e0f2fe;
    border-color: #0284c7;
    color: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(2, 132, 199, 0.12);
}

.cal-day-num {
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-mono, monospace);
    line-height: 1;
}
.cal-day-name {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    color: #64748b;
}
.cal-ret-date {
    font-size: 10px;
    color: #047857;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.calendar-day-card.closed .cal-ret-date {
    color: #b91c1c;
}
.cal-bus-tag {
    font-size: 9.5px;
    color: #475569;
    background: rgba(0, 0, 0, 0.05);
    padding: 1px 5px;
    border-radius: 4px;
    margin-top: 2px;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cal-card-actions {
    display: flex;
    gap: 3px;
    justify-content: flex-end;
    margin-top: 4px;
}
.cal-action-btn {
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.cal-action-btn.delete {
    background: #fee2e2;
    color: #dc2626;
}
.cal-action-btn.delete:hover {
    background: #dc2626;
    color: #ffffff;
}
.cal-action-btn.seats {
    background: #e0f2fe;
    color: #0284c7;
}
.cal-action-btn.seats:hover {
    background: #0284c7;
    color: #ffffff;
}
.cal-action-btn.toggle {
    background: #f1f5f9;
    color: #475569;
}
.cal-action-btn.toggle:hover {
    background: #334155;
    color: #ffffff;
}

/* ============================================================ */
/* KESAVI OFFICIAL LOGO BRANDING STYLES                         */
/* ============================================================ */
.auth-logo-badge {
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
}
.auth-main-logo {
    height: 70px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    display: block;
}

.sidebar-brand-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sidebar-brand-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.sidebar-main-logo {
    max-height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.header-brand-logo-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.header-main-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    transition: transform 0.2s ease;
}
.header-main-logo:hover {
    transform: scale(1.02);
}

.cockpit-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    background: #ffffff;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.voucher-logo-box {
    margin-bottom: 16px;
}
.voucher-logo-img {
    height: 58px;
    width: auto;
    object-fit: contain;
    display: inline-block;
}

.drawer-header-brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
    padding: 3px 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

/* ==========================================================================
   BRANCH-WISE BOOKINGS TRACKING SYSTEM (SUPER ADMIN)
   ========================================================================== */

.branch-tracking-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.branch-kpi-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 13px 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.branch-kpi-card:hover {
    transform: translateY(-2px);
    border-color: #94a3b8;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.branch-kpi-card.active {
    border-color: #0f172a;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    box-shadow: 0 0 0 2px #0f172a, 0 8px 18px rgba(15, 23, 42, 0.12);
}

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

.branch-code-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.branch-kpi-city {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.branch-kpi-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.branch-kpi-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
    gap: 6px;
}

.branch-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.branch-stat-val {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
}

.branch-stat-lbl {
    font-size: 9.5px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.branch-kpi-card .active-check {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #0f172a;
    color: #ffffff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.branch-kpi-card.active .active-check {
    display: flex;
}

/* Active Branch Dedicated Banner */
.active-branch-banner {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.active-branch-banner-info h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.active-branch-banner-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12.5px;
    color: #cbd5e1;
}

.active-branch-banner-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.active-branch-banner-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.active-branch-stat-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 6px 14px;
    text-align: center;
}

.active-branch-stat-box .val {
    font-size: 17px;
    font-weight: 800;
    color: #38bdf8;
    line-height: 1.1;
}

.active-branch-stat-box .lbl {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}

/* Branch Group Section (Accordion / Panels) */
.branch-group-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.branch-group-section:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.branch-group-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.branch-group-header:hover {
    background: #f1f5f9;
}

.branch-group-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.branch-group-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ffffff;
    flex-shrink: 0;
}

.branch-group-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.branch-group-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.branch-mini-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.branch-mini-pill.pill-confirmed {
    background: #dcfce7;
    color: #15803d;
}

.branch-mini-pill.pill-pending {
    background: #fef3c7;
    color: #b45309;
}

.branch-mini-pill.pill-seats {
    background: #dbeafe;
    color: #1d4ed8;
}

.branch-mini-pill.pill-total {
    background: #e2e8f0;
    color: #334155;
    font-weight: 700;
}

.branch-group-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.branch-group-collapse-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 14px;
    padding: 4px 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.branch-group-section.collapsed .branch-group-collapse-btn i {
    transform: rotate(-90deg);
}

.branch-group-section.collapsed .branch-group-body {
    display: none;
}

/* Branch specific colors for badges and icons */
.branch-color-39, .branch-color-BR-AHM {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.branch-icon-39, .branch-icon-BR-AHM {
    background: #2563eb;
}

.branch-color-40, .branch-color-BR-RJT {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}
.branch-icon-40, .branch-icon-BR-RJT {
    background: #7c3aed;
}

.branch-color-41, .branch-color-BR-SRT {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.branch-icon-41, .branch-icon-BR-SRT {
    background: #059669;
}

.branch-color-42, .branch-color-BR-VAD {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}
.branch-icon-42, .branch-icon-BR-VAD {
    background: #d97706;
}

.branch-color-43, .branch-color-BR-BHV {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}
.branch-icon-43, .branch-icon-BR-BHV {
    background: #dc2626;
}

/* General seat pill styling */
.seat-pill-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.seat-pill-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.copy-ref-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 11px;
    transition: color 0.15s ease;
}
.copy-ref-btn:hover {
    color: #2563eb;
}


