/* ==========================================================================
   CarRental Pro - Glassmorphism Bright Blue-White Design System
   ========================================================================== */

:root {
    /* Color Palette - Fresh Blue & Crisp White */
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
    --primary-soft: rgba(37, 99, 235, 0.08);
    --primary-soft-hover: rgba(37, 99, 235, 0.14);
    
    /* Secondary & Accent Colors */
    --accent-cyan: #06b6d4;
    --accent-sky: #38bdf8;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;

    /* Backgrounds & Canvas */
    --bg-body: #f0f6ff;
    --bg-mesh: radial-gradient(at 0% 0%, rgba(224, 242, 254, 0.8) 0, transparent 50%),
               radial-gradient(at 100% 0%, rgba(219, 234, 254, 0.9) 0, transparent 50%),
               radial-gradient(at 50% 100%, rgba(239, 246, 255, 0.9) 0, transparent 50%),
               #f8fafc;

    /* Glassmorphism Tokens */
    --glass-surface: rgba(255, 255, 255, 0.78);
    --glass-card: rgba(255, 255, 255, 0.85);
    --glass-card-hover: rgba(255, 255, 255, 0.95);
    --glass-header: rgba(255, 255, 255, 0.82);
    --glass-sidebar: rgba(255, 255, 255, 0.88);
    --glass-blur: blur(20px) saturate(180%);
    --glass-blur-header: blur(16px) saturate(180%);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-border-subtle: rgba(226, 232, 240, 0.7);
    --glass-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
    --glass-shadow-hover: 0 16px 40px -8px rgba(37, 99, 235, 0.16), 0 8px 18px -4px rgba(0, 0, 0, 0.06);

    /* Text & Typography Colors */
    --text-title: #0f172a;
    --text-body: #334155;
    --text-dim: #64748b;
    --text-muted: #94a3b8;

    /* Layout Dimensions */
    --sidebar-width: 280px;
    --header-height: 72px;
}

/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-mesh);
    background-attachment: fixed;
    color: var(--text-body);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Decorative Background Ambient Glows */
body::before {
    content: '';
    position: fixed;
    top: -100px;
    left: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -100px;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ==========================================================================
   GLASSMORPHISM SIDEBAR
   ========================================================================== */
.app-sidebar {
    width: var(--sidebar-width);
    background: var(--glass-sidebar);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--glass-border);
    box-shadow: 4px 0 24px rgba(37, 99, 235, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border-bottom: 1px solid var(--glass-border-subtle);
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.brand-text h2 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-title);
}

.brand-text span {
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
}

.sidebar-close-btn,
.mobile-sidebar-close {
    display: none !important; /* Hidden on Desktop: Topbar header has the single unified toggle button */
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(241, 245, 249, 0.7);
    border: 1px solid transparent;
    color: var(--text-dim);
    font-size: 18px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-close-btn:hover,
.mobile-sidebar-close:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: var(--glass-border-subtle);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transform: scale(1.04);
}

@media (max-width: 992px) {
    .sidebar-close-btn,
    .mobile-sidebar-close {
        display: flex !important; /* Displayed inside Drawer on Mobile/Tablet */
    }
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 18px 14px;
}

.menu-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    padding: 8px 12px;
    font-weight: 700;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text-body);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: rgba(37, 99, 235, 0.15);
    transform: translateX(3px);
}

.nav-link.active {
    color: #ffffff;
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.nav-link-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icon {
    font-size: 17px;
    display: flex;
    align-items: center;
    color: inherit;
}

.nav-link:not(.active):hover .nav-icon {
    color: var(--primary);
}

.submenu-arrow {
    font-size: 12px;
    transition: transform 0.25s ease;
    opacity: 0.7;
}

.nav-item.open .submenu-arrow {
    transform: rotate(90deg);
}

.submenu {
    list-style: none;
    padding-left: 28px;
    margin-top: 4px;
    display: none;
    position: relative;
}

.submenu::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: rgba(37, 99, 235, 0.15);
    border-radius: 2px;
}

.submenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
    min-height: 38px;
}

.submenu-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.submenu-link.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.12);
    font-weight: 700;
}

.submenu-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
    transition: all 0.2s ease;
}

.submenu-link.active .submenu-bullet {
    background-color: var(--primary);
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
}

/* Sidebar User Footer */
.sidebar-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--glass-border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(241, 245, 249, 0.5);
}

.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--accent-danger);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-logout:hover {
    background: var(--accent-danger);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

/* ==========================================================================
   MAIN WORKSPACE & GLASS HEADER
   ========================================================================== */
.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-header {
    height: var(--header-height);
    background: var(--glass-header);
    backdrop-filter: var(--glass-blur-header);
    -webkit-backdrop-filter: var(--glass-blur-header);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.sidebar-toggle-btn,
.mobile-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--glass-border-subtle);
    background: rgba(255, 255, 255, 0.78);
    color: var(--text-title);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover,
.mobile-toggle-btn:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.sidebar-toggle-btn:active,
.mobile-toggle-btn:active {
    transform: scale(0.96);
}

/* Desktop Collapsed Sidebar State (> 992px) */
@media (min-width: 993px) {
    body.sidebar-collapsed .app-sidebar,
    html.sidebar-collapsed body .app-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    body.sidebar-collapsed .app-main,
    html.sidebar-collapsed body .app-main {
        margin-left: 0;
        width: 100%;
    }

    body.sidebar-collapsed .sidebar-toggle-btn,
    body.sidebar-collapsed .mobile-toggle-btn,
    html.sidebar-collapsed body .sidebar-toggle-btn,
    html.sidebar-collapsed body .mobile-toggle-btn {
        background: var(--primary-soft);
        color: var(--primary);
        border-color: rgba(37, 99, 235, 0.35);
        box-shadow: 0 2px 10px rgba(37, 99, 235, 0.15);
    }
}

.page-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-title);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Glass Branch Dropdown */
.branch-dropdown-wrapper {
    position: relative;
}

.branch-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-title);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.06);
    transition: all 0.2s ease;
}

.branch-badge:hover {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}

.count-badge {
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 700;
}

.branch-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.14), 0 4px 12px rgba(0, 0, 0, 0.05);
    display: none;
    z-index: 1100;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.branch-dropdown-menu.show {
    display: block;
}

.branch-dropdown-header {
    padding: 12px 18px;
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid var(--glass-border-subtle);
    display: flex;
    justify-content: space-between;
    color: var(--text-dim);
    background: rgba(248, 250, 252, 0.7);
}

.branch-dropdown-list {
    list-style: none;
    max-height: 260px;
    overflow-y: auto;
}

.branch-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
}

.branch-dropdown-item:last-child {
    border-bottom: none;
}

.branch-dropdown-item:hover {
    background: rgba(37, 99, 235, 0.05);
}

.branch-dropdown-item.active {
    background: rgba(16, 185, 129, 0.08);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-title);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   APP CONTENT & GLASS CARDS
   ========================================================================== */
.app-content {
    flex: 1;
    padding: 32px;
}

.card-dashboard {
    background: var(--glass-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--glass-shadow);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-dashboard:hover {
    box-shadow: var(--glass-shadow-hover);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-body);
    border: 1px solid rgba(203, 213, 225, 0.9);
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.btn-action-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.btn-action-primary:hover {
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-action-secondary {
    background: #ffffff;
    color: var(--text-body);
    border: 1px solid rgba(203, 213, 225, 0.9);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.btn-action-secondary:hover {
    background: #f8fafc;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.btn-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-search:hover {
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-clear-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid rgba(203, 213, 225, 0.8);
    color: var(--text-dim);
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-clear-filter:hover {
    background: #e2e8f0;
    color: var(--text-title);
}

/* Glass Input Controls */
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-title);
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* ==========================================================================
   GLOBAL SEARCHABLE SELECT (COMBOBOX)
   ========================================================================== */
.searchable-select-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
}

.searchable-select-hidden {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    bottom: 0 !important;
    left: 10px !important;
}

.searchable-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1.5px solid rgba(226, 232, 240, 0.95);
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--text-title);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.searchable-select-trigger:hover {
    border-color: rgba(148, 163, 184, 0.9);
}

.searchable-select-trigger:focus,
.searchable-select-trigger.is-open {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.searchable-select-trigger.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.searchable-select-trigger.disabled {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: var(--text-dim);
    cursor: not-allowed;
    opacity: 0.75;
}

.searchable-select-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.searchable-select-label.text-placeholder {
    color: var(--text-dim);
    font-weight: 400;
}

.searchable-select-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 12px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.searchable-select-trigger.is-open .searchable-select-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Floating Dropdown Menu (Solid opaque background to eliminate any ghosting) */
.searchable-select-dropdown {
    background: #ffffff !important;
    border: 1.5px solid rgba(203, 213, 225, 0.95);
    border-radius: 12px;
    box-shadow: 0 20px 45px -6px rgba(15, 23, 42, 0.22), 0 4px 16px -2px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: searchDropdownFade 0.15s ease-out;
}

@keyframes searchDropdownFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.searchable-select-dropdown.open-upward {
    animation: searchDropdownFadeUp 0.15s ease-out;
}

@keyframes searchDropdownFadeUp {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Search Bar Inside Dropdown */
.searchable-select-search-wrap {
    position: relative;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(241, 245, 249, 0.9);
    background: rgba(248, 250, 252, 0.8);
    display: flex;
    align-items: center;
}

.searchable-select-search-wrap .search-icon {
    position: absolute;
    left: 20px;
    color: var(--primary);
    font-size: 13px;
    pointer-events: none;
}

.searchable-select-search-input {
    width: 100%;
    height: 36px;
    padding: 6px 30px 6px 32px;
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-title);
    outline: none;
    transition: all 0.2s ease;
}

.searchable-select-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.searchable-search-clear {
    position: absolute;
    right: 18px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.searchable-search-clear:hover {
    background: #e2e8f0;
    color: var(--text-title);
}

/* Options List */
.searchable-select-options {
    max-height: 250px;
    overflow-y: auto;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    -webkit-overflow-scrolling: touch;
}

.searchable-select-options::-webkit-scrollbar {
    width: 6px;
}
.searchable-select-options::-webkit-scrollbar-track {
    background: transparent;
}
.searchable-select-options::-webkit-scrollbar-thumb {
    background: rgba(203, 213, 225, 0.8);
    border-radius: 999px;
}

.searchable-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.12s ease;
    user-select: none;
}

.searchable-option-text {
    flex: 1;
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}

.searchable-option:hover,
.searchable-option.is-highlighted {
    background: rgba(241, 245, 249, 0.95);
    color: var(--text-title);
}

.searchable-option.is-selected {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-weight: 700;
}

.searchable-option .check-icon {
    font-size: 14px;
    color: var(--primary);
    font-weight: bold;
    flex-shrink: 0;
}

.searchable-option.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: transparent !important;
}

.searchable-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px;
    color: var(--text-dim);
    font-size: 12.5px;
    font-weight: 500;
}

.searchable-empty i {
    font-size: 15px;
    color: var(--text-muted);
}

/* ==========================================================================
   UNIVERSAL CURRENCY FORMATTER & MASKING COMPONENT
   ========================================================================== */
.currency-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.currency-input {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    padding-right: 38px !important;
}

.input-icon-group .currency-input {
    padding-left: 38px !important;
    padding-right: 38px !important;
}

.currency-badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dim, #64748b);
    background: rgba(241, 245, 249, 0.9);
    padding: 2px 7px;
    border-radius: 6px;
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.5px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.2s ease;
    z-index: 3;
}

.currency-input-wrap:focus-within .currency-badge,
.input-icon-group:focus-within .currency-badge {
    color: var(--primary, #2563eb);
    background: var(--primary-soft, #eff6ff);
    border-color: rgba(37, 99, 235, 0.2);
}

.currency-input:disabled ~ .currency-badge,
.currency-input[disabled] ~ .currency-badge {
    opacity: 0.5;
    background: #f1f5f9;
}

.currency-preview-words {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary, #2563eb);
    margin-top: 4px;
    display: block;
    line-height: 1.4;
}


/* ==========================================================================
   RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 992px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    .app-sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
    }
    .app-main {
        margin-left: 0;
    }
    .sidebar-toggle-btn,
    .mobile-toggle-btn {
        display: flex;
    }
    .sidebar-close-btn,
    .mobile-sidebar-close {
        display: flex;
    }
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.3);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 999;
    }
    .sidebar-backdrop.active {
        display: block;
    }
    .app-header {
        padding: 0 20px;
    }
    .app-content {
        padding: 20px;
    }
}

/* ==========================================================================
   Global Toast Notification System (Glassmorphism Popup)
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 440px;
    width: calc(100vw - 48px);
}

.toast-item {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px 18px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.16),
                0 4px 16px -2px rgba(15, 23, 42, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    overflow: hidden;
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-item.toast-hide {
    animation: toastSlideOut 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(115%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
        max-height: 250px;
        margin-bottom: 0;
    }
    to {
        transform: translateX(115%);
        opacity: 0;
        max-height: 0;
        margin-bottom: -12px;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Toast Color Accents */
.toast-item.toast-success {
    border-left: 5px solid #10b981;
}
.toast-item.toast-error,
.toast-item.toast-danger {
    border-left: 5px solid #ef4444;
}
.toast-item.toast-warning {
    border-left: 5px solid #f59e0b;
}
.toast-item.toast-info {
    border-left: 5px solid #2563eb;
}

.toast-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.14);
    color: #10b981;
}
.toast-error .toast-icon,
.toast-danger .toast-icon {
    background: rgba(239, 68, 68, 0.14);
    color: #ef4444;
}
.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.14);
    color: #f59e0b;
}
.toast-info .toast-icon {
    background: rgba(37, 99, 235, 0.14);
    color: #2563eb;
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 4px;
    line-height: 1.3;
}

.toast-message {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.45;
    word-break: break-word;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 15px;
    padding: 2px 5px;
    border-radius: 6px;
    line-height: 1;
    transition: all 0.2s ease;
}

.toast-close:hover {
    color: var(--text-title);
    background: rgba(0, 0, 0, 0.06);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: left;
    transition: width linear;
}

.toast-success .toast-progress {
    background: linear-gradient(90deg, #10b981, #34d399);
}
.toast-error .toast-progress,
.toast-danger .toast-progress {
    background: linear-gradient(90deg, #ef4444, #f87171);
}
.toast-warning .toast-progress {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.toast-info .toast-progress {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

@media (max-width: 576px) {
    .toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
        width: auto;
    }
}

/* ==========================================================================
   Centralized Glass Modal System
   ========================================================================== */
.glass-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.glass-modal {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideUp 0.25s ease;
    overflow: hidden;
}

.glass-modal.modal-xl {
    max-width: 1160px;
    width: 96%;
    height: 88vh;
    max-height: 88vh;
    overflow: hidden;
}

.glass-modal.modal-lg {
    max-width: 1040px;
    width: 95%;
    max-height: 90vh;
}

.glass-modal.modal-md {
    max-width: 620px;
}

.glass-modal.modal-sm {
    max-width: 440px;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--glass-border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-icon {
    font-size: 22px;
    color: var(--primary);
}

.modal-title-wrap h3,
.modal-header .modal-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-title);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close-btn,
.btn-modal-close {
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover,
.btn-modal-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-title);
}

/* Modal Form Flex Container (Bảo toàn chiều cao và vùng cuộn modal) */
.modal-form-flex,
.glass-modal > form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--glass-border-subtle);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    background: rgba(248, 250, 252, 0.7);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    flex-shrink: 0;
}

/* 2-Column and 3-Column Form Grids for Modals */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
}

.form-grid-2 .col-span-2 {
    grid-column: span 2;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 16px;
}

.form-grid-3 .col-span-2 {
    grid-column: span 2;
}

.form-grid-3 .col-span-3 {
    grid-column: span 3;
}

.section-sub-heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(203, 213, 225, 0.8);
    margin-top: 4px;
    margin-bottom: 4px;
}

/* Modal Form Controls */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-title);
}

.form-label.required::after {
    content: " *";
    color: var(--accent-danger);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: #ffffff;
    font-size: 13.5px;
    color: var(--text-title);
    outline: none;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field-hint {
    font-size: 12px;
    color: var(--text-dim);
}

/* Modal Action Buttons */
.btn-modal-cancel {
    background: #f1f5f9;
    color: var(--text-body);
    border: 1px solid rgba(203, 213, 225, 0.8);
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-modal-cancel:hover {
    background: #e2e8f0;
}

.btn-modal-submit {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-modal-submit:hover {
    background: #1d4ed8;
}

.btn-modal-delete {
    background: var(--accent-danger);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-modal-delete:hover {
    background: #b91c1c;
}

.btn-action-primary {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-action-primary:hover {
    background: #1d4ed8;
    color: #ffffff;
}

/* Delete Modal Specifics */
.delete-warning-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent-danger);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
}

.delete-heading {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 6px;
}

.delete-subtext {
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.4;
}

.delete-note-box {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #b91c1c;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

/* ==========================================================================
   Vehicles & Fleet Management Module Styles
   ========================================================================== */
.vehicles-management-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Glass Tabs Navigation */
.nav-tabs-glass {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    max-width: 100%;
    overflow-x: auto;
}

.tab-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-button i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.tab-button:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.06);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    border-color: rgba(255, 255, 255, 0.15);
}

.tab-button.active i {
    transform: scale(1.1);
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
}

.tab-button.active .tab-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.tab-pane-content {
    display: none !important;
}

.tab-pane-content.active {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
    animation: fadeInTab 0.25s ease;
}

/* Modal Segmented Tabs & Tab Pane Isolation */
.modal-tabs-bar,
.modal-tabs-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: rgba(241, 245, 249, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    margin: 16px 24px 0 24px;
    flex-shrink: 0;
}

.modal-tab-btn,
.modal-tab-button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.modal-tab-btn:hover,
.modal-tab-button:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.6);
}

.modal-tab-btn.active,
.modal-tab-button.active {
    background: #ffffff;
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.modal-tab-btn i,
.modal-tab-button i {
    font-size: 15px;
}

.modal-tab-pane {
    display: none !important;
}

.modal-tab-pane.active {
    display: flex !important;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    animation: fadeInTab 0.2s ease;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Salary & Remuneration Filter Panel & Segmented Controls */
.salary-filter-panel {
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.salary-period-pill-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(226, 232, 240, 0.6);
    padding: 3px;
    border-radius: 10px;
    border: 1px solid rgba(203, 213, 225, 0.6);
}

.salary-period-pill {
    padding: 5px 12px;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.salary-period-pill:hover {
    color: var(--text-title);
    background: rgba(255, 255, 255, 0.6);
}

.salary-period-pill.active {
    background: #ffffff;
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.salary-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.btn-quick-fill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-quick-fill:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #d97706;
    color: #b45309;
    transform: translateY(-1px);
}

.btn-outline-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.06);
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-outline-action:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.btn-outline-action.btn-outline-success {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
}

.btn-outline-action.btn-outline-success:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

/* Page Actions Bar */
.page-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.actions-left-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.actions-right-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search Box & Inputs */
.search-box-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-dim);
    font-size: 14px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 9px 36px;
    border-radius: 10px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: #ffffff;
    font-size: 13.5px;
    color: var(--text-title);
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    color: var(--text-dim);
    font-size: 14px;
    transition: color 0.15s ease;
}

.search-clear-btn:hover {
    color: var(--accent-danger);
}

.btn-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    background: var(--primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-search:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-clear-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid rgba(203, 213, 225, 0.8);
    color: var(--text-dim);
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-clear-filter:hover {
    background: #e2e8f0;
    color: var(--text-title);
}

/* Table Header Toolbar */
.table-header-toolbar {
    padding: 14px 20px;
    border-bottom: 1px solid var(--glass-border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(248, 250, 252, 0.5);
    flex-wrap: wrap;
    gap: 10px;
}

.table-counts-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-title);
}

.table-toolbar-hint {
    font-size: 12.5px;
    color: var(--text-dim);
}

/* Action Icon Buttons in Tables */
.table-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-action-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    color: var(--text-dim);
}

.btn-action-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn-action-view:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.3);
}

.btn-action-status:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.3);
}

.btn-action-edit:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.3);
}

.btn-action-salary:hover {
    background: rgba(13, 148, 136, 0.12);
    color: #0d9488;
    border-color: rgba(13, 148, 136, 0.35);
}

.btn-action-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Pagination Container */
.pagination-container {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--glass-border-subtle);
    background: rgba(248, 250, 252, 0.5);
    flex-wrap: wrap;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-dim);
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.8);
    color: var(--text-title);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.page-link-btn:hover:not(.disabled) {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25);
}

.page-link-btn.disabled {
    background: #f8fafc;
    color: #cbd5e1;
    border-color: #e2e8f0;
    cursor: not-allowed;
    pointer-events: none;
}

.page-indicator {
    font-size: 13px;
    color: var(--text-dim);
    padding: 0 4px;
}

/* Form Modal & Scrolling Flex Layout */
.form-modal {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.modal-scrollable-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    flex-shrink: 0;
}

/* Vietnamese Reflective License Plate Badge */
.license-plate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border: 1.5px solid #0f172a;
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    user-select: none;
}

.license-plate-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 100%);
    border-radius: 4px 4px 0 0;
    pointer-events: none;
}

.license-plate-badge .plate-text {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Consolas', sans-serif;
    font-weight: 800;
    font-size: 13.5px;
    color: #0f172a;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Filter Grid for Vehicles */
.filter-panel-vehicles {
    padding: 16px 20px;
}

.filter-grid-vehicles {
    display: grid;
    grid-template-columns: 2fr 1.1fr 1.1fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: flex-end;
}

.filter-item-vehicles {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-actions-vehicles {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Vehicle Cell & Thumbnail */
.vehicle-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vehicle-thumb {
    width: 54px;
    height: 38px;
    border-radius: 8px;
    background: rgba(0,0,0,0.04);
    border: 1px solid var(--glass-border-subtle);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-fallback-avatar {
    color: var(--primary);
    font-size: 20px;
}

.vehicle-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.vehicle-model-name {
    font-weight: 700;
    color: var(--text-title);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle-meta-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-dim);
}

.meta-dot {
    color: rgba(0,0,0,0.25);
}

/* Category & Branch Cell */
.category-branch-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-title);
}

.cat-badge i {
    color: var(--primary);
}

.branch-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--text-dim);
}

.branch-badge i {
    color: #f59e0b;
}

/* Specs Cell */
.specs-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
}

.spec-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.spec-label {
    color: var(--text-dim);
    font-size: 11px;
}

.spec-val {
    color: var(--text-main);
    font-weight: 500;
}

/* Pricing Cell */
.pricing-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-daily {
    font-weight: 800;
    color: #059669;
    font-size: 14px;
}

.price-daily small {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
}

.price-deposit {
    font-size: 11.5px;
}

/* Status Cell & Pulsing Dot */
.status-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.odo-text {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 500;
}

.status-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    animation: pulseDot 1.8s infinite;
}

.dot-green { background: #10b981; box-shadow: 0 0 6px #10b981; }
.dot-blue { background: #3b82f6; box-shadow: 0 0 6px #3b82f6; }
.dot-amber { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.dot-purple { background: #8b5cf6; box-shadow: 0 0 6px #8b5cf6; }
.dot-red { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.dot-gray { background: #94a3b8; box-shadow: 0 0 6px #94a3b8; }

@keyframes pulseDot {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

/* Table Custom Standard Foundation */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-custom,
.table-dashboard {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13.5px;
}

.table-custom th,
.table-dashboard th {
    background: rgba(248, 250, 252, 0.88);
    color: var(--text-dim);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    text-align: left;
    white-space: nowrap;
}

.table-custom th.text-center,
.table-custom td.text-center,
.table-dashboard th.text-center,
.table-dashboard td.text-center {
    text-align: center !important;
}

.table-custom th.text-end,
.table-custom td.text-end,
.table-dashboard th.text-end,
.table-dashboard td.text-end {
    text-align: right !important;
}

.table-custom td,
.table-dashboard td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    vertical-align: middle;
    color: var(--text-body);
    font-size: 13px;
}

.table-custom tr:last-child td,
.table-dashboard tr:last-child td {
    border-bottom: none;
}

.table-custom tbody tr:hover td,
.table-dashboard tbody tr:hover td {
    background: rgba(241, 245, 249, 0.5);
}

.table-clickable-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.table-clickable-row:hover td {
    background: rgba(37, 99, 235, 0.04) !important;
}

.action-btn-group,
.table-actions-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.btn-table-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s ease;
    color: var(--text-dim);
    flex-shrink: 0;
}

.btn-table-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}


/* Category Table List Specific Styles */
.category-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-icon-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.cat-name-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cat-name-title {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--text-title);
    white-space: nowrap;
}

.cat-name-desc {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.3;
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-seat-cap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.badge-vehicle-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 700;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.badge-vehicle-count.zero-count {
    background: #f8fafc;
    color: #94a3b8;
    border-color: #e2e8f0;
    font-weight: 500;
}

.btn-action-disabled {
    background: #f8fafc !important;
    color: #cbd5e1 !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* Categories Grid */
.categories-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    padding: 20px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.cat-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cat-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.cat-title-block {
    flex: 1;
    min-width: 0;
}

.cat-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-title);
}

.cat-code-hint {
    font-size: 12px;
    color: var(--text-dim);
}

.cat-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cat-desc {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.4;
    margin: 0;
}

.cat-specs-box {
    background: rgba(0,0,0,0.02);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12.5px;
}

.cat-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cat-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border-subtle);
}

.btn-category-action {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-cat-edit {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.btn-cat-edit:hover {
    background: var(--primary);
    color: #ffffff;
}

.btn-cat-delete {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
}

.btn-cat-delete:hover {
    background: var(--accent-danger);
    color: #ffffff;
}

.btn-cat-disabled {
    background: rgba(0,0,0,0.04);
    color: var(--text-dim);
    cursor: not-allowed;
}

/* Modal Form Grid Layouts */
.form-section-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--glass-border-subtle);
    margin-bottom: 4px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.form-row-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 14px;
}

/* Vehicle Detail Modal Styling */
.vehicle-detail-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
}

.detail-image-box {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    background: rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border-subtle);
}

.detail-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-fallback-large {
    font-size: 64px;
    color: var(--primary);
}

.detail-quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-card {
    background: rgba(0,0,0,0.02);
    border: 1px solid var(--glass-border-subtle);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 14px;
    font-weight: 800;
    color: #059669;
}

.stat-label {
    font-size: 11px;
    color: var(--text-dim);
}

.detail-section {
    background: rgba(0,0,0,0.015);
    border: 1px solid var(--glass-border-subtle);
    border-radius: 10px;
    padding: 12px 16px;
}

.section-title {
    margin: 0 0 8px 0;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-title);
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    font-size: 13px;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-row .label {
    color: var(--text-dim);
}

.feature-badges-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge-feature {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.notes-content {
    margin: 0;
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.4;
}

/* Vehicle Image Upload & Dropzone Component */
.vehicle-image-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-upload-dropzone {
    border: 2px dashed rgba(203, 213, 225, 0.9);
    border-radius: 14px;
    padding: 22px 18px;
    background: rgba(248, 250, 252, 0.65);
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.image-upload-dropzone:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.04);
    transform: translateY(-1px);
}

.dropzone-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.dropzone-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropzone-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
}

.dropzone-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-title);
}

.dropzone-hint {
    font-size: 12px;
    color: var(--text-dim);
}

.image-preview-container {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.preview-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.preview-thumb-wrap {
    width: 84px;
    height: 58px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.preview-filename {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-filesize {
    font-size: 11.5px;
    color: var(--text-dim);
}

.preview-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.btn-change-image {
    font-size: 12px;
    font-weight: 600;
    border: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    padding: 0;
}

.btn-change-image:hover {
    text-decoration: underline;
}

.btn-remove-image {
    font-size: 12px;
    font-weight: 600;
    border: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-danger);
    padding: 0;
}

.btn-remove-image:hover {
    text-decoration: underline;
}

.image-url-toggle-wrap {
    margin-top: 2px;
}

.btn-toggle-url {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}

.btn-toggle-url:hover {
    color: var(--primary);
}

.url-input-collapse {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* =========================================================================
   Vehicle Category Icon Picker Component
   ========================================================================= */
.icon-picker-widget {
    border: 1.5px solid rgba(203, 213, 225, 0.85);
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.icon-picker-widget:focus-within,
.icon-picker-widget:hover {
    border-color: #93c5fd;
}

.icon-picker-selected-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 13px;
    transition: all 0.2s ease;
    gap: 12px;
}

.icon-picker-selected-bar:hover {
    background: #f1f5f9;
}

.icon-picker-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.icon-picker-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(59, 130, 246, 0.18) 100%);
    border: 1.5px solid rgba(37, 99, 235, 0.25);
    color: var(--primary);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.icon-picker-selected-bar:hover .icon-picker-avatar {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.icon-picker-meta {
    min-width: 0;
    flex: 1;
}

.icon-picker-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.icon-picker-subtitle {
    font-size: 11.5px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    margin-top: 1px;
}

.btn-picker-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.btn-picker-toggle:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.toggle-chevron {
    transition: transform 0.25s ease;
    font-size: 11px;
}

.toggle-chevron.open {
    transform: rotate(180deg);
}

/* Dropdown Panel */
.icon-picker-dropdown-panel {
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeInSlide 0.2s ease;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.icon-picker-search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-sm {
    position: absolute;
    left: 11px;
    color: #94a3b8;
    font-size: 12px;
    pointer-events: none;
}

.icon-search-box {
    width: 100%;
    padding: 6px 30px 6px 30px;
    font-size: 12.5px;
    border-radius: 9px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--text-title);
    outline: none;
    transition: all 0.2s ease;
}

.icon-search-box:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.btn-clear-icon-search {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
    padding: 2px;
    line-height: 1;
}

.btn-clear-icon-search:hover {
    color: #475569;
}

/* Grid of Icons */
.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    max-height: 175px;
    overflow-y: auto;
    padding: 2px;
}

.icon-picker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 10px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    position: relative;
}

.icon-picker-item:hover {
    border-color: #93c5fd;
    background: #f0f7ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.icon-picker-item.active {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    box-shadow: 0 0 0 1px var(--primary);
}

.icon-item-symbol {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.icon-picker-item:hover .icon-item-symbol {
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
}

.icon-picker-item.active .icon-item-symbol {
    background: var(--primary);
    color: #ffffff;
}

.icon-item-text {
    min-width: 0;
    flex: 1;
}

.icon-item-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.icon-item-desc {
    font-size: 10.5px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    margin-top: 1px;
}

.icon-picker-item.active .icon-item-name {
    color: var(--primary);
}

.icon-item-check {
    display: none;
    font-size: 12px;
    color: var(--primary);
    margin-left: auto;
    flex-shrink: 0;
}

.icon-picker-item.active .icon-item-check {
    display: inline-block;
}

/* Custom icon code section */
.icon-picker-custom-row {
    border-top: 1px dashed #cbd5e1;
    padding-top: 8px;
}

.custom-icon-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.15s ease;
}

.custom-icon-toggle:hover {
    color: var(--primary);
}

.custom-chevron {
    font-size: 9px;
    transition: transform 0.2s ease;
}

.custom-chevron.open {
    transform: rotate(90deg);
}

.custom-icon-input-wrap {
    margin-top: 6px;
}

@media (max-width: 992px) {
    .filter-grid-vehicles, .filter-grid-drivers {
        grid-template-columns: 1fr 1fr;
    }
    .form-row-3, .form-row-4 {
        grid-template-columns: 1fr 1fr;
    }
    .vehicle-detail-grid, .driver-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .filter-grid-vehicles, .filter-grid-drivers {
        grid-template-columns: 1fr;
    }
    .form-row-2, .form-row-3, .form-row-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Driver Management System Styles
   ========================================================================== */
.driver-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.driver-kpi-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(37, 99, 235, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.driver-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -6px rgba(37, 99, 235, 0.12);
    background: rgba(255, 255, 255, 0.92);
}

.driver-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0.8;
}

.driver-kpi-card.kpi-total::before { background: linear-gradient(to bottom, #2563eb, #3b82f6); }
.driver-kpi-card.kpi-active::before { background: linear-gradient(to bottom, #10b981, #059669); }
.driver-kpi-card.kpi-busy::before { background: linear-gradient(to bottom, #f59e0b, #d97706); }
.driver-kpi-card.kpi-leave::before { background: linear-gradient(to bottom, #8b5cf6, #7c3aed); }
.driver-kpi-card.kpi-alert::before { background: linear-gradient(to bottom, #ef4444, #dc2626); }

.kpi-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 22px;
    flex-shrink: 0;
}

.kpi-total .kpi-icon-wrap {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.kpi-active .kpi-icon-wrap {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.kpi-busy .kpi-icon-wrap {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.kpi-leave .kpi-icon-wrap {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
}

.kpi-alert .kpi-icon-wrap {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.driver-kpi-card.kpi-alert.has-alert .kpi-icon-wrap {
    animation: alertPulse 2s infinite ease-in-out;
}

@keyframes alertPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.kpi-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kpi-number {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-title);
    letter-spacing: -0.02em;
}

.kpi-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.kpi-subtext {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Filter Grid for Drivers */
.filter-grid-drivers {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr 1.1fr 1fr 1.2fr auto;
    gap: 12px;
    align-items: flex-end;
}

.filter-item-drivers {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-actions-drivers {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Driver Profile Table Cell */
.driver-profile-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.driver-avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.driver-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
}

.driver-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
}

.driver-online-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.driver-online-dot.dot-green { background: #10b981; }
.driver-online-dot.dot-amber { background: #f59e0b; }
.driver-online-dot.dot-purple { background: #8b5cf6; }
.driver-online-dot.dot-gray { background: #94a3b8; }
.driver-online-dot.dot-red { background: #ef4444; }

.driver-meta-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.driver-name-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.driver-sub-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    flex-wrap: wrap;
}

.driver-code-pill {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.driver-phone-link {
    font-size: 12px;
    color: var(--text-dim);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}

.driver-phone-link:hover {
    color: var(--primary);
}

/* License Badges */
.license-box-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.license-top-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-license-class {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.license-num-text {
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    font-size: 13px;
    color: var(--text-title);
}

.badge-license-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    width: fit-content;
}

.badge-license-status.status-valid {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-license-status.status-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-license-status.status-expired {
    background: rgba(239, 68, 68, 0.12);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Rating & Trips */
.performance-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trips-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-body);
}

.trips-count-badge i {
    color: var(--primary);
    font-size: 13px;
}

.rating-stars-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: #f59e0b;
}

.rating-score-num {
    font-weight: 700;
    color: var(--text-body);
}

/* ==========================================================================
   Executive Driver Dossier & Modern Forms
   ========================================================================== */

/* Modern Form Sections */
.form-section-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.form-section-card:hover {
    border-color: rgba(37, 99, 235, 0.25);
    background: rgba(255, 255, 255, 0.9);
}

.form-section-header-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(241, 245, 249, 0.9);
}

.form-section-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(2, 132, 199, 0.12) 100%);
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

.form-section-title-wrap {
    display: flex;
    flex-direction: column;
}

.form-section-title-modern {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-title);
    line-height: 1.25;
}

.form-section-subtext {
    font-size: 11.5px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* Input with icon styling */
.input-icon-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon-group .input-icon {
    position: absolute;
    left: 13px;
    color: var(--text-muted);
    font-size: 14.5px;
    pointer-events: none;
    transition: color 0.15s ease;
    z-index: 2;
}

.input-icon-group .form-control,
.input-icon-group .form-select {
    padding-left: 38px !important;
}

.input-icon-group:focus-within .input-icon {
    color: var(--primary);
}

/* Modern Avatar Upload Dropzone */
.avatar-dropzone-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(248, 250, 252, 0.85);
    border: 1.5px dashed rgba(203, 213, 225, 0.95);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.avatar-dropzone-box:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.04);
}

.avatar-preview-circle {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.avatar-preview-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-dropzone-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.avatar-dropzone-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avatar-dropzone-desc {
    font-size: 11.5px;
    color: var(--text-dim);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-avatar-browse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.avatar-dropzone-box:hover .btn-avatar-browse {
    background: var(--primary);
    color: #ffffff;
}

/* Global Hidden Utility */
.d-none {
    display: none !important;
}

/* ==========================================================================
   Driver Detail Dossier Layout & Cards
   ========================================================================== */
.dossier-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e3a8a 100%);
    border-radius: 18px;
    padding: 22px 24px;
    color: #ffffff;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.25);
    flex-shrink: 0;
}

.dossier-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.dossier-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.dossier-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dossier-avatar-wrap {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 18px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.dossier-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dossier-avatar-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
}

.dossier-hero-meta {
    display: flex;
    flex-direction: column;
}

.dossier-hero-name {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.dossier-hero-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.dossier-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
}

.dossier-pill-code {
    background: rgba(255, 255, 255, 0.15);
    color: #93c5fd;
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dossier-pill-branch {
    background: rgba(56, 189, 248, 0.18);
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.dossier-hero-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dossier-metric-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-width: 85px;
    text-align: center;
}

.dossier-metric-val {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.dossier-metric-lbl {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* Dossier Grid Layout */
.dossier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.dossier-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.dossier-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.dossier-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-title);
}

.dossier-card-title i {
    color: var(--primary);
    font-size: 15px;
}

.dossier-info-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.dossier-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    padding: 2px 0;
}

.dossier-info-label {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 12.5px;
}

.dossier-info-value {
    color: var(--text-title);
    font-weight: 600;
    text-align: right;
}

/* Digital Driving License Card */
.dossier-license-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(2, 132, 199, 0.08) 100%);
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 16px;
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
}

.dossier-license-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #2563eb, #06b6d4, #10b981);
}

.license-card-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.license-card-number-box {
    display: flex;
    flex-direction: column;
}

.license-card-sub {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
}

.license-card-num {
    font-family: var(--font-mono, monospace);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-title);
    margin-top: 2px;
}

.license-class-badge-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Emergency Contact Card Alert Style */
.dossier-emergency-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.04) 0%, rgba(245, 158, 11, 0.04) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.dossier-emergency-card .dossier-card-title i {
    color: var(--accent-danger);
}

/* Direct Phone Call Button */
.btn-dossier-call {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 12.5px;
    transition: all 0.15s ease;
}

.btn-dossier-call:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Activity Timeline */
.dossier-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 4px;
}

.dossier-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 12px;
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 10px;
}

.dossier-timeline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
}

.dossier-timeline-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dossier-timeline-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-title);
    line-height: 1.3;
}

.dossier-timeline-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Modern Clean Table for Leaves */
.dossier-leaves-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12.5px;
}

.dossier-leaves-table th {
    background: rgba(241, 245, 249, 0.7);
    color: var(--text-dim);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.dossier-leaves-table td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
    color: var(--text-body);
}

.dossier-leaves-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .dossier-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .dossier-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PARTNERS, RECONCILIATIONS & VEHICLE DISPATCH DESIGN SYSTEM (DENSE & COMPACT)
   ========================================================================== */

/* 1. Dense KPI Grid */
.kpi-dense-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.kpi-dense-card {
    background: var(--glass-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-dense-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow);
}

.kpi-dense-card .kpi-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.kpi-dense-card.kpi-total .kpi-icon-wrap { background: rgba(37, 99, 235, 0.12); color: var(--primary); }
.kpi-dense-card.kpi-active .kpi-icon-wrap { background: rgba(16, 185, 129, 0.12); color: var(--accent-success); }
.kpi-dense-card.kpi-warning .kpi-icon-wrap { background: rgba(245, 158, 11, 0.12); color: var(--accent-warning); }
.kpi-dense-card.kpi-danger .kpi-icon-wrap { background: rgba(239, 68, 68, 0.12); color: var(--accent-danger); }
.kpi-dense-card.kpi-success .kpi-icon-wrap { background: rgba(16, 185, 129, 0.12); color: var(--accent-success); }

.kpi-dense-card .kpi-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kpi-dense-card .kpi-number {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-title);
}

.kpi-dense-card .kpi-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    margin-top: 1px;
}

.kpi-dense-card .kpi-subtext {
    font-size: 10.5px;
    color: var(--text-muted);
}

/* 2. Dense Filters */
.filter-dense-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    align-items: flex-end;
}

.filter-dense-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-dense-item .filter-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-dim);
}

.filter-dense-item .form-control,
.filter-dense-item .form-select {
    height: 38px;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 8px;
}

/* 3. Badges and Statuses */
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.badge-tag.badge-supplier { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.badge-tag.badge-client { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.badge-tag.badge-both { background: rgba(139, 92, 246, 0.12); color: #6d28d9; }
.badge-tag.badge-pay-partner { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.badge-tag.badge-collect-partner { background: rgba(16, 185, 129, 0.12); color: #047857; }
.badge-tag.badge-balanced { background: rgba(100, 116, 139, 0.12); color: #334155; }

.status-chip.status-draft { background: rgba(100, 116, 139, 0.12); color: #475569; }
.status-chip.status-confirmed { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.status-chip.status-settled { background: rgba(16, 185, 129, 0.15); color: #047857; }
.status-chip.status-cancelled { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }

/* 4. Action Buttons */
.btn-action-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.25);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-action-outline:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-confirm {
    color: var(--accent-warning);
}
.btn-confirm:hover {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.btn-settle {
    color: var(--accent-success);
}
.btn-settle:hover {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

/* 5. Live Netting Calculation Card */
.live-calculation-card {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.live-calculation-card .calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.live-calculation-card .calc-col {
    display: flex;
    flex-direction: column;
}

.live-calculation-card .calc-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.live-calculation-card .calc-val {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.live-calculation-card .calc-col-divider {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
}

.calc-direction-alert {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-direction-alert.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.calc-direction-alert.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.calc-direction-alert.alert-info {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* 6. Vehicle Source Segmented Tabs (Form Lập hợp đồng) */
.modal-tabs-bar.source-tabs-bar {
    display: flex;
    gap: 10px;
    padding: 6px;
    background: rgba(241, 245, 249, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    margin: 16px 24px 0 24px;
    flex-shrink: 0;
}

.source-tab-button {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.source-tab-button:hover {
    background: rgba(255, 255, 255, 0.7);
}

.source-tab-button.active {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.source-tab-button#tabSourceInternal.active {
    border-color: rgba(37, 99, 235, 0.35);
}

.source-tab-button#tabSourcePartner.active {
    border-color: rgba(245, 158, 11, 0.45);
}

.tab-btn-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

#tabSourceInternal .tab-btn-icon-box {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

#tabSourcePartner .tab-btn-icon-box {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.source-tab-button.active#tabSourceInternal .tab-btn-icon-box {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.source-tab-button.active#tabSourcePartner .tab-btn-icon-box {
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.tab-btn-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tab-btn-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-title);
    line-height: 1.3;
}

.source-tab-button.active#tabSourceInternal .tab-btn-title {
    color: var(--primary);
}

.source-tab-button.active#tabSourcePartner .tab-btn-title {
    color: #b45309;
}

.tab-btn-subtitle {
    font-size: 11.5px;
    color: var(--text-dim);
    line-height: 1.3;
    margin-top: 1px;
}

/* Source Context Hint Banner */
.source-info-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.source-info-alert i {
    font-size: 18px;
    flex-shrink: 0;
}

.source-info-alert.alert-internal {
    background: rgba(37, 99, 235, 0.06);
    color: #1e40af;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.source-info-alert.alert-partner {
    background: rgba(245, 158, 11, 0.08);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* 7. Dossier & Detail Grids */
.partner-detail-grid,
.contract-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 13px;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(226, 232, 240, 0.8);
}

.detail-label {
    color: var(--text-dim);
    font-weight: 500;
}

.detail-value {
    color: var(--text-title);
    text-align: right;
}

.detail-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    border-bottom: 2px solid rgba(37, 99, 235, 0.2);
    padding-bottom: 4px;
    margin-top: 8px;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE & MOBILE ADAPTATION SYSTEM (SYSTEM-WIDE)
   ========================================================================== */

/* 1. Tablet & Medium Screens (< 992px) */
@media (max-width: 992px) {
    /* App Layout & Mobile Drawer */
    .app-main {
        margin-left: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .app-sidebar {
        transform: translateX(-100%) !important;
        box-shadow: none;
        z-index: 2100 !important;
    }

    .app-sidebar.mobile-open {
        transform: translateX(0) !important;
        box-shadow: 12px 0 36px rgba(15, 23, 42, 0.28) !important;
    }

    .sidebar-backdrop {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(15, 23, 42, 0.5) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 2050 !important;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .sidebar-backdrop.active {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .sidebar-close-btn,
    .mobile-sidebar-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .sidebar-toggle-btn,
    .mobile-toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .app-header {
        padding: 0 16px !important;
    }

    .app-content {
        padding: 16px 14px !important;
        width: 100% !important;
    }

    /* Grids Adaptation */
    .kpi-dense-grid,
    .driver-kpi-grid,
    .pricing-kpi-grid,
    .customer-kpi-grid,
    .stats-overview-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .filter-dense-grid,
    .filter-grid-vehicles,
    .filter-grid-contracts,
    .filter-grid-partners,
    .filter-grid-drivers,
    .filter-grid-customers,
    .filter-grid-modern {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .filter-dense-item.filter-search-span,
    .filter-item-vehicles.filter-search-wrap,
    .filter-dense-item[style*="grid-column: span 2"] {
        grid-column: span 2 !important;
    }

    .vehicle-detail-grid,
    .driver-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .glass-modal.modal-xl,
    .glass-modal.modal-lg {
        max-width: 95% !important;
        width: 95% !important;
        height: auto !important;
        max-height: 92vh !important;
    }
}

/* 2. Mobile Screens (< 768px) */
@media (max-width: 768px) {
    /* Header compacting */
    .app-header {
        height: 60px !important;
        padding: 0 12px !important;
    }

    .page-title {
        font-size: 15px !important;
        max-width: 170px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-right {
        gap: 8px !important;
    }

    .user-pill {
        display: none !important;
    }

    .branch-badge {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .branch-badge .count-badge {
        font-size: 10px !important;
        padding: 1px 5px !important;
    }

    .app-content {
        padding: 12px 8px !important;
    }

    /* Action Bars */
    .page-actions-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    .actions-left-summary {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    .actions-right-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .actions-right-buttons > button,
    .actions-right-buttons > a {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: 120px !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 !important;
    }

    /* KPI Grids: 1 column on mobile */
    .kpi-dense-grid,
    .driver-kpi-grid,
    .pricing-kpi-grid,
    .customer-kpi-grid,
    .stats-overview-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .kpi-dense-card {
        padding: 10px 12px !important;
        gap: 10px !important;
    }

    .kpi-dense-card .kpi-number {
        font-size: 16px !important;
    }

    /* Compact 2x2 KPI Grid for Salary Modal on Mobile */
    .salary-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .salary-kpi-grid .driver-kpi-card {
        padding: 10px 12px !important;
        gap: 10px !important;
        border-radius: 12px !important;
    }
    .salary-kpi-grid .kpi-icon-wrap {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }
    .salary-kpi-grid .kpi-number {
        font-size: 15px !important;
    }
    .salary-kpi-grid .kpi-title {
        font-size: 11.5px !important;
    }
    .salary-kpi-grid .kpi-subtext {
        display: none !important;
    }

    .salary-filter-date-group {
        display: flex !important;
        width: 100% !important;
        gap: 8px !important;
    }

    /* Cards */
    .card-dashboard {
        padding: 14px 10px !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
    }

    /* Filter Grids: 1 column on mobile */
    .filter-dense-grid,
    .filter-grid-vehicles,
    .filter-grid-contracts,
    .filter-grid-partners,
    .filter-grid-drivers,
    .filter-grid-customers,
    .filter-grid-modern {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .filter-dense-item.filter-search-span,
    .filter-item-vehicles.filter-search-wrap,
    .filter-dense-item[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }

    .filter-actions-vehicles,
    .filter-dense-item:last-child {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .filter-actions-vehicles .btn-search,
    .filter-dense-item:last-child .btn-primary {
        flex: 1 !important;
        justify-content: center !important;
        height: 38px !important;
    }

    .filter-actions-vehicles .btn-clear-filter,
    .filter-dense-item:last-child .btn-action-outline {
        width: 42px !important;
        height: 38px !important;
        flex-shrink: 0 !important;
    }

    /* Table Toolbar & Responsive Tables */
    .table-header-toolbar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        padding: 10px 12px !important;
    }

    .table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        border-radius: 8px;
    }

    .table-custom {
        min-width: 650px !important;
    }

    .table-custom th,
    .table-custom td {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }

    .table-actions {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .btn-action-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 13px !important;
    }

    /* Pagination */
    .pagination-container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 12px 8px !important;
    }

    .pagination-info {
        font-size: 11.5px !important;
        text-align: center !important;
        width: 100% !important;
    }

    .pagination-nav {
        justify-content: center !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 4px !important;
    }

    .page-link-btn {
        padding: 4px 8px !important;
        font-size: 11.5px !important;
    }

    /* Tabs Navigation */
    .nav-tabs-glass {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        padding: 4px !important;
        gap: 4px !important;
        border-radius: 12px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none;
    }

    .nav-tabs-glass::-webkit-scrollbar {
        display: none;
    }

    .tab-button {
        padding: 7px 12px !important;
        font-size: 12px !important;
        gap: 6px !important;
    }

    /* Glass Modals on Mobile */
    .glass-modal-backdrop {
        padding: 8px !important;
    }

    .glass-modal,
    .glass-modal.modal-xl,
    .glass-modal.modal-lg,
    .glass-modal.modal-md,
    .glass-modal.modal-sm {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 94vh !important;
        border-radius: 14px !important;
        margin: 0 auto !important;
    }

    .modal-header {
        padding: 12px 14px !important;
    }

    .modal-header .modal-title,
    .modal-header h3 {
        font-size: 15px !important;
    }

    .modal-body,
    .modal-scrollable-body {
        padding: 14px 12px !important;
        gap: 12px !important;
    }

    .modal-footer {
        padding: 10px 12px !important;
        flex-direction: column-reverse !important;
        gap: 8px !important;
    }

    .modal-footer > button,
    .modal-footer > a {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 !important;
    }

    /* Form Grids within Modals */
    .form-grid-2,
    .form-grid-3,
    .form-row-2,
    .form-row-3,
    .form-row-4,
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .col-span-2,
    .col-span-3,
    .col-full,
    .form-group[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }

    /* Vehicle Efficiency Banner */
    .vehicle-efficiency-banner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 12px 12px !important;
    }

    .vehicle-efficiency-banner .banner-left {
        width: 100% !important;
    }

    .vehicle-efficiency-banner .banner-stats {
        width: 100% !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .vehicle-efficiency-banner .b-stat {
        align-items: flex-start !important;
    }

    /* Detail Modal Grids */
    .detail-info-grid,
    .partner-detail-grid,
    .contract-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .detail-item.col-full {
        grid-column: span 1 !important;
    }

    /* Live Netting Calculation Card in Reconciliation Modal */
    .live-calculation-card .calc-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .live-calculation-card .calc-col-divider {
        display: none !important;
    }

    .live-calculation-card .calc-col {
        padding: 6px 0 !important;
        border-bottom: 1px dashed #e2e8f0 !important;
    }

    .live-calculation-card .calc-col:last-child {
        border-bottom: none;
    }

    /* Vehicle Source Tabs in Contract Modal */
    .modal-tabs-bar.source-tabs-bar {
        flex-direction: column !important;
        gap: 8px !important;
        margin: 12px 16px 0 16px !important;
    }

    /* Icon Picker on Mobile */
    .icon-picker-grid {
        grid-template-columns: 1fr !important;
        max-height: 200px !important;
    }
}

/* 3. Small Mobile Phones (< 480px) */
@media (max-width: 480px) {
    .actions-right-buttons > button,
    .actions-right-buttons > a {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    .vehicle-efficiency-banner .banner-stats {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
    }

    .type-pill-container {
        flex-direction: column !important;
        gap: 6px !important;
    }

    .detail-quick-stats {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Driver Assignment & Scheduling in Contracts
   ========================================================================== */
.driver-assignment-block {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-top: 6px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.driver-assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.driver-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.driver-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.driver-header-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-title);
    margin: 0;
    line-height: 1.3;
}

.driver-header-desc {
    font-size: 12px;
    color: var(--text-dim);
    margin: 2px 0 0 0;
}

.driver-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.driver-total-badge {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-title);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.btn-add-driver-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-add-driver-row:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.driver-assignments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.driver-assignment-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 14px;
    position: relative;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease;
}

.driver-assignment-card:hover {
    border-color: #94a3b8;
}

.assignment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.assignment-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    padding: 3px 10px;
    border-radius: 6px;
}

.btn-remove-assignment {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.btn-remove-assignment:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.assignment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 14px;
}

.driver-assignment-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .assignment-grid {
        grid-template-columns: 1fr !important;
    }
    .driver-header-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==========================================================================
   Global Glassmorphism Modals & Overlays
   ========================================================================== */
.glass-modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 2000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.glass-modal-backdrop[style*="display: none"],
.glass-modal-backdrop.d-none {
    display: none !important;
}

.glass-modal {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 18px !important;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22) !important;
    overflow: hidden !important;
    animation: glassModalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes glassModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.glass-modal.modal-xl {
    max-width: 980px !important;
}
.glass-modal.modal-lg {
    max-width: 860px !important;
}
.glass-modal.modal-md {
    max-width: 580px !important;
}
.glass-modal.modal-sm {
    max-width: 440px !important;
}

.glass-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(248, 250, 252, 0.7);
    flex-shrink: 0;
}

.glass-modal .modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
}

.glass-modal .btn-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s;
}

.glass-modal .btn-modal-close:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.05);
}

.glass-modal .modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(248, 250, 252, 0.7);
    flex-shrink: 0;
}

.glass-modal .btn-modal-cancel {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 7px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.glass-modal .btn-modal-cancel:hover {
    background: #e2e8f0;
    color: #1e293b;
}

@media (max-width: 768px) {
    .glass-modal-backdrop {
        padding: 10px !important;
    }
    .glass-modal {
        max-width: 100% !important;
        max-height: 94vh !important;
        border-radius: 14px !important;
    }
}


