/* Scoped Cockpit Map CSS for RomâniaElit Fleet Radar - DO NOT TOUCH GLOBAL BODY/NAVBAR */
.fleet-map-wrapper {
    position: relative;
    width: 100%;
    height: 780px;
    min-height: 600px;
    background: #080c14;
    border-radius: 16px;
    border: 1px solid #1e293b;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    overscroll-behavior: contain;
}

/* Internal Map Sidebar */
.fleet-map-wrapper .leftSidebar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 300px;
    max-width: 300px;
    background: rgba(11, 15, 25, 0.95) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.fleet-map-wrapper .leftSidebar::-webkit-scrollbar {
    width: 6px;
}
.fleet-map-wrapper .leftSidebar::-webkit-scrollbar-track {
    background: #0a0e17;
}
.fleet-map-wrapper .leftSidebar::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
.fleet-map-wrapper .leftSidebar::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

.fleet-map-wrapper .leftSidebar .btn-info-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background-color: #131a29 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    color: #f1f5f9 !important;
    font-size: 11.5px;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.fleet-map-wrapper .leftSidebar .btn-info-toggle:hover {
    background-color: #1a2438 !important;
    color: #ffffff !important;
}

.fleet-map-wrapper .leftSidebar .sidebarBox {
    background-color: #090d16 !important;
    color: #94a3b8 !important;
    font-size: 11.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fleet-map-wrapper .fleet-driver-row {
    background: #0f1522;
    border: 1px solid #1a2538;
    border-radius: 8px;
    padding: 9px 10px;
    margin-bottom: 7px;
    cursor: pointer;
    transition: all 0.2s;
}

.fleet-map-wrapper .fleet-driver-row:hover {
    background: #182338 !important;
    border-color: #3b82f6 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

/* Canvas Container */
.fleet-map-wrapper #box {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    overscroll-behavior: none;
    touch-action: none;
}

.fleet-map-wrapper #canvascontainer {
    position: relative;
    width: 100%;
    height: 100%;
}

.fleet-map-wrapper #backgroundCanvas {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}

.fleet-map-wrapper #foregroundCanvas {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
}

/* Floating Search Bar */
.fleet-map-wrapper .search_back {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 500;
    width: 350px;
    height: 75px;
    pointer-events: none;
}

.fleet-map-wrapper #search_overlay {
    position: absolute;
    top: 14px;
    right: 20px;
    z-index: 600;
    min-width: 280px;
    max-width: 360px;
}

.fleet-map-wrapper #search_box {
    background: rgba(11, 15, 25, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 6px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.fleet-map-wrapper #player_search {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 12px;
    width: 100%;
}

.fleet-map-wrapper #player_search::placeholder {
    color: #64748b;
}

.fleet-map-wrapper #search_results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    background: #0a0f19;
    border: 1px solid #1e293b;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    max-height: 260px;
    overflow-y: auto;
    z-index: 610;
    display: none;
}

.fleet-map-wrapper .search-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fleet-map-wrapper .search-item {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.15s;
}

.fleet-map-wrapper .search-item:hover {
    background: #141c2c;
}

/* Floating Zoom Controls */
.fleet-map-wrapper #zoom_overlay {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 700;
}

.fleet-map-wrapper #zoom_overlay .btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fleet-map-wrapper #zoom_overlay .btn {
    width: 42px;
    height: 42px;
    background: #141c2c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    border-radius: 8px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
}

.fleet-map-wrapper #zoom_overlay .btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    transform: scale(1.05);
}

/* Floating Fullscreen Button */
.fleet-map-wrapper .fleet-map-fs-btn {
    position: absolute;
    bottom: 112px;
    right: 20px;
    z-index: 700;
    width: 42px;
    height: 42px;
    background: #141c2c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
}

.fleet-map-wrapper .fleet-map-fs-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    transform: scale(1.05);
}

/* Map Mode Switcher Bar */
.map-mode-btn-group {
    background: #0d121d !important;
    border: 1px solid #1e293b !important;
    border-radius: 10px;
    gap: 6px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.map-mode-btn-group .btn {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 7px 16px;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

/* Inactive button - Rich dark red background */
.map-mode-btn-group .btn:not(.active),
.map-mode-btn-group #map-btn-ets2:not(.active),
.map-mode-btn-group #map-btn-promods:not(.active) {
    background: #7f1d1d !important;
    border-color: #991b1b !important;
    color: #fecaca !important;
}

.map-mode-btn-group .btn:not(.active):hover,
.map-mode-btn-group #map-btn-ets2:not(.active):hover,
.map-mode-btn-group #map-btn-promods:not(.active):hover {
    background: #991b1b !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(220, 38, 38, 0.45);
    transform: translateY(-1px);
}

/* Active button - Vibrant bright red background */
.map-mode-btn-group .btn.active,
.map-mode-btn-group #map-btn-ets2.active,
.map-mode-btn-group #map-btn-promods.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border-color: #f87171 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 18px rgba(220, 38, 38, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Redesigned Fleet Status Telemetry Button & Card */
.fleet-status-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(13, 18, 29, 0.95) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 16px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 44px;
    transition: all 0.25s ease;
    user-select: none;
}

.fleet-status-card:hover {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}

.fleet-status-icon-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 14px;
    flex-shrink: 0;
}

.fleet-pulse-ring {
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid rgba(16, 185, 129, 0.7);
    animation: fleetPulseRing 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    pointer-events: none;
}

.fleet-pulse-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 6px #10b981;
}

@keyframes fleetPulseRing {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }
    70% {
        transform: scale(1.6);
        opacity: 0.15;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.fleet-status-tag {
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fleet-status-text {
    font-family: var(--bs-font-monospace, monospace);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #10b981;
    text-transform: uppercase;
}

.fleet-status-live-badge {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    line-height: 1;
}

.fleet-count-num {
    font-family: var(--bs-font-monospace, monospace);
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.45);
}

.fleet-count-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.2px;
    line-height: 1;
}

/* Hotspot Quick Teleport Buttons */
.hotspot-btn {
    transition: all 0.2s ease;
}

.hotspot-btn:hover {
    background: #1e293b !important;
    border-color: #38bdf8 !important;
    transform: translateX(2px);
}


/* In-Game GPS Route Advisor Floating Banner (organized card) */
.fleet-gps-card {
    position: absolute;
    top: 14px;
    left: 320px;
    right: 80px;
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(9, 14, 26, 0.96);
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 24px rgba(239, 68, 68, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1050;
    transition: opacity 0.25s ease;
}

/* Zone 1 — identity + actions */
.gps-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.gps-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.gps-icon-pulse {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.3);
}

.gps-identity-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.gps-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fca5a5;
}

.gps-driver-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.gps-driver-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gps-mode-badge {
    flex: 0 0 auto;
    font-size: 9px;
    letter-spacing: 0.5px;
    background: #1e293b;
    color: #cbd5e1;
}

/* Action buttons */
.gps-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.gps-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #141c2c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.18s ease;
}

.gps-btn:hover {
    background: #1c2740;
    border-color: #3b82f6;
}

.gps-btn-close {
    padding: 6px 9px;
}

.gps-btn-close:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* Zone 2 — route strip */
.gps-route-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
}

.gps-endpoint {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
}

.gps-endpoint-dest {
    justify-content: flex-end;
    text-align: right;
}

.gps-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.gps-endpoint-origin .gps-dot {
    background: #38bdf8;
    color: #38bdf8;
}

.gps-endpoint-dest .gps-dot {
    background: #ef4444;
    color: #ef4444;
}

.gps-endpoint-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #64748b;
}

.gps-endpoint-city {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gps-route-arrow {
    flex: 0 0 auto;
    align-self: center;
    font-size: 14px;
    color: #ef4444;
}

/* Zone 3 — status chips */
.gps-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.gps-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #0d1420;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    color: #cbd5e1;
    font-size: 11.5px;
    font-weight: 600;
}

.gps-chip-status {
    margin-left: auto;
}

@media (max-width: 991px) {
    .fleet-gps-card {
        left: 320px;
        right: 14px;
        top: 14px;
    }

    .gps-head {
        flex-wrap: wrap;
    }

    .gps-chips {
        flex-direction: column;
        align-items: stretch;
    }

    .gps-chip-status {
        margin-left: 0;
    }

    .gps-btn-label {
        display: none;
    }
}
/* ==========================================================================
   Fleet Panel (modern, scalable) — left sidebar redesign
   ========================================================================== */

/* --- Brand header --- */
.fleet-brand {
    padding: 14px;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(220, 38, 38, 0.14), transparent 60%),
        #0b1020;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.fleet-brand-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.fleet-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.16);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #fca5a5;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.fleet-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #34d399;
}

.fleet-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: fleetPulse 1.6s ease-in-out infinite;
}

@keyframes fleetPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}

.fleet-brand-name {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.fleet-brand-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 7px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fleet-map-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 600;
    color: #94a3b8;
}

.fleet-map-badge i {
    color: #ef4444;
}

.fleet-clock {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

/* --- Stats --- */
.fleet-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 12px;
}

.fleet-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 7px 4px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.fleet-stat-value {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.fleet-stat-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #64748b;
}

.fleet-stat.is-ingame .fleet-stat-value { color: #34d399; }
.fleet-stat.is-tmp .fleet-stat-value { color: #38bdf8; }
.fleet-stat.is-sp .fleet-stat-value { color: #93c5fd; }

/* --- Section --- */
.fleet-section {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fleet-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 8px;
}

.fleet-section-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #f1f5f9;
}

.fleet-section-title i {
    color: #ef4444;
}

.fleet-section-count {
    min-width: 26px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 10.5px;
    font-weight: 800;
    text-align: center;
}

/* --- Tools (filters, search, meta) --- */
.fleet-tools {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 14px 10px;
}

.fleet-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fleet-filter-tab {
    flex: 1 1 auto;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fleet-filter-tab.btn-danger {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.45);
}

.fleet-filter-tab.btn-dark {
    background: #111827 !important;
    border-color: #1f2937 !important;
    color: #94a3b8 !important;
}

.fleet-filter-tab.btn-dark:hover {
    background: #1b2438 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

.fleet-search {
    position: relative;
    display: flex;
    align-items: center;
}

.fleet-search i {
    position: absolute;
    left: 10px;
    color: #64748b;
    font-size: 11px;
    pointer-events: none;
}

.fleet-search input {
    width: 100%;
    padding: 8px 10px 8px 30px;
    background: #0d1420;
    border: 1px solid #1e293b;
    border-radius: 8px;
    color: #ffffff;
    font-size: 11.5px;
    outline: none;
    transition: border-color 0.15s;
}

.fleet-search input::placeholder {
    color: #64748b;
}

.fleet-search input:focus {
    border-color: #3b82f6;
}

.fleet-list-meta {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

/* --- Driver list --- */
.fleet-driver-list {
    max-height: 340px;
    overflow-y: auto;
    padding: 4px 12px 12px;
}

.fleet-driver-list::-webkit-scrollbar {
    width: 6px;
}
.fleet-driver-list::-webkit-scrollbar-track {
    background: transparent;
}
.fleet-driver-list::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
.fleet-driver-list::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

.fleet-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 12px;
    text-align: center;
    color: #64748b;
    font-size: 11.5px;
}

.fleet-empty i {
    font-size: 20px;
    color: #ef4444;
}

/* --- Pagination controls (sits below the scrollable driver list) --- */
.fleet-pagination-bar {
    padding: 0 12px 12px;
}

.fleet-pagination-bar:empty {
    display: none;
}

.fleet-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding-top: 10px;
    border-top: 1px solid #1a2538;
}

.fleet-page-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 7px;
    color: #94a3b8;
    font-size: 11.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.fleet-page-btn:hover:not(.is-active):not(.is-disabled):not([disabled]) {
    background: #1b2438;
    border-color: #3b82f6;
    color: #ffffff;
}

.fleet-page-btn.is-active {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.45);
}

.fleet-page-btn.is-disabled,
.fleet-page-btn[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.fleet-page-nav i {
    font-size: 10px;
}

/* --- Driver row (compact, modern) --- */
.fleet-map-wrapper .fleet-driver-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: #0f1522;
    border: 1px solid #1a2538;
    border-radius: 9px;
    padding: 8px 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.fleet-map-wrapper .fleet-driver-row:hover {
    background: #182338;
    border-color: #3b82f6;
    transform: translateX(2px);
}

.fleet-map-wrapper .fleet-driver-row.is-selected {
    border-color: #dc2626;
    background: #1a1420;
}

.fd-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
}

.fd-dot.online {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.fd-dot.idle {
    background: #64748b;
}

.fd-main {
    flex: 1 1 auto;
    min-width: 0;
}

.fd-top {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.fd-name {
    flex: 0 1 auto;
    min-width: 0;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fd-code {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 9.5px;
    font-weight: 600;
}

.fd-mode {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.fd-mode.tmp {
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.fd-mode.sp {
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.32);
    color: #93c5fd;
}

.fd-mode.stby {
    background: rgba(100, 116, 139, 0.16);
    border: 1px solid rgba(100, 116, 139, 0.34);
    color: #94a3b8;
}

.fd-route {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fd-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

.fd-speed {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.fd-speed.is-moving { color: #34d399; }
.fd-speed.is-idle { color: #64748b; }

.fd-cargo {
    flex: 0 1 auto;
    min-width: 0;
    color: #cbd5e1;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Driver-detail (selected player card) tidy-up */
.fleet-map-wrapper #playerClicked {
    color: #e2e8f0;
    font-size: 12px;
}
