:root {
    --geodelix-primary: #007BFF;
    --geodelix-secondary: #00A8FF;
    --geodelix-dark: #0B1F5E;
    --geodelix-bg: #F4F8FC;
    --geodelix-primary-rgb: 0, 123, 255;
    --geodelix-secondary-rgb: 0, 168, 255;
    --geodelix-dark-rgb: 11, 31, 94;
    --font-primary: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --bg: var(--geodelix-bg);
    --text: var(--geodelix-dark);
    --brand: var(--geodelix-primary);
    --brand-secondary: var(--geodelix-secondary);
    --brand-dark: var(--geodelix-dark);
    --brand-soft: rgba(var(--geodelix-primary-rgb), 0.12);
    --brand-line: rgba(var(--geodelix-primary-rgb), 0.28);
}

body {
    font-family: var(--font-primary);
    background: var(--bg);
}

.central-admin-link {
    text-decoration: none;
}

.central-card {
    max-width: 356px;
}

.central-card .order-card-header {
    align-items: flex-start;
}

.central-card .order-heading {
    align-items: flex-start;
}

.central-card .order-logo {
    margin-top: -2px;
}

.central-card .order-grid {
    grid-template-columns: 1fr;
    width: 100%;
}

.central-card .order-row {
    min-height: 0;
    padding: 9px 11px;
}

.central-card .order-actions-row {
    display: none;
}

.central-drivers-panel {
    position: absolute;
    z-index: 520;
    right: 16px;
    bottom: 16px;
    width: min(320px, calc(100vw - 32px));
    max-height: min(360px, calc(100vh - 260px));
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 32px rgba(23, 32, 51, 0.12);
    backdrop-filter: blur(14px);
}

.central-drivers-list {
    display: grid;
    gap: 10px;
}

.central-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.central-drivers-count {
    display: inline-grid;
    min-width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: var(--brand);
}

.central-driver-item {
    appearance: none;
    border: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.central-driver-item {
    display: grid;
    gap: 4px;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.central-driver-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.central-driver-item.active .central-driver-name,
.central-driver-item:hover .central-driver-name {
    color: var(--brand-dark);
}

.central-driver-item.active {
    border-radius: 8px;
    padding: 10px;
    background: rgba(var(--geodelix-primary-rgb), 0.09);
}

.central-driver-item.active:first-child {
    padding-top: 10px;
}

.central-driver-name {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
}

.central-driver-meta {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.central-empty {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.central-driver-marker {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
}

.central-driver-dot {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 3px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    font-size: 15px;
    background: #172033;
    box-shadow: 0 10px 22px rgba(23, 32, 51, 0.25);
}

.central-driver-arrow {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 0;
    height: 0;
    border-right: 6px solid transparent;
    border-bottom: 12px solid #172033;
    border-left: 6px solid transparent;
    transform: translateX(-50%) rotate(var(--driver-heading, 0deg));
    transform-origin: 50% 25px;
    opacity: 0;
}

.central-driver-marker.has-heading .central-driver-arrow {
    opacity: 1;
}

.central-shell .stat-filter.active {
    border-color: rgba(var(--geodelix-primary-rgb), 0.36);
    color: var(--brand-dark);
    background: rgba(var(--geodelix-primary-rgb), 0.14);
}

.central-shell .stat-filter.pending-filter.active {
    border-color: rgba(245, 184, 65, 0.48);
    color: #7a4e00;
    background: rgba(245, 184, 65, 0.18);
}

.central-shell .stat-filter.done-filter.active {
    border-color: rgba(67, 170, 139, 0.48);
    color: #1f6b56;
    background: rgba(67, 170, 139, 0.18);
}

@media (max-width: 760px) {
    .central-drivers-panel {
        right: 12px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
        left: 12px;
        width: auto;
        max-height: 158px;
        padding: 12px;
    }

    .central-shell .stats {
        overflow-x: auto;
        justify-content: flex-start;
        max-width: calc(100vw - 82px);
        padding-bottom: 2px;
    }

    .central-shell .stat {
        min-width: 104px;
    }
}
