:root {
    --oe-orange: #ff7a00;
    --oe-orange-soft: rgba(255, 122, 0, .16);
    --oe-panel: #111827;
    --oe-line: rgba(255, 255, 255, .11);
    --oe-text: #f8fafc;
    --oe-muted: #94a3b8;
}

html {
    color-scheme: dark;
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

:focus-visible {
    outline: 3px solid rgba(255, 122, 0, .55);
    outline-offset: 2px;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
a {
    touch-action: manipulation;
}

img {
    max-width: 100%;
}

.oe-confirm-dialog {
    width: min(430px, calc(100% - 28px));
    padding: 0;
    border: 1px solid var(--oe-line);
    border-radius: 18px;
    background: transparent;
    color: var(--oe-text);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .55);
}

.oe-confirm-dialog::backdrop {
    background: rgba(2, 6, 23, .76);
    backdrop-filter: blur(5px);
}

.oe-confirm-card {
    padding: 26px;
    background: linear-gradient(145deg, #161f2e, #0f1724);
    text-align: center;
}

.oe-confirm-card h2 {
    margin: 10px 0 8px;
    font-size: 21px;
}

.oe-confirm-card p {
    margin: 0;
    color: var(--oe-muted);
    line-height: 1.55;
}

.oe-confirm-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--oe-orange-soft);
    color: var(--oe-orange);
    font-size: 25px;
    font-weight: 800;
}

.oe-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
}

.oe-btn {
    min-height: 44px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    font-weight: 750;
    cursor: pointer;
}

.oe-btn-secondary {
    border: 1px solid var(--oe-line);
    background: rgba(255, 255, 255, .07);
}

.oe-btn-primary {
    background: linear-gradient(135deg, #ff7a00, #ff9d1f);
}

.oe-btn-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.oe-notification {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    max-width: min(390px, calc(100% - 36px));
    padding: 14px 17px;
    border: 1px solid rgba(34, 197, 94, .35);
    border-radius: 12px;
    background: rgba(15, 23, 42, .96);
    color: #fff;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .42);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.oe-notification[data-type="error"] {
    border-color: rgba(239, 68, 68, .5);
}

.oe-notification.show {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* OnExpress GPS Web 2.0 */
:root {
    --oe-bg: #07090d;
    --oe-surface: #0e1219;
    --oe-surface-2: #131923;
    --oe-orange: #ff6b00;
    --oe-orange-2: #ff9d2e;
    --oe-text: #f7f8fa;
    --oe-muted: #8f9aaa;
    --oe-line: rgba(255, 255, 255, .085);
    --oe-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

body,
button,
input,
select,
textarea {
    font-family: "Manrope", "Poppins", system-ui, sans-serif !important;
}

body {
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 107, 0, .10), transparent 24rem),
        radial-gradient(circle at 86% 15%, rgba(59, 130, 246, .055), transparent 28rem),
        var(--oe-bg) !important;
}

.layout,
.wrapper {
    background: transparent !important;
}

.sidebar {
    background: rgba(10, 13, 19, .94) !important;
    border-right: 1px solid var(--oe-line) !important;
    box-shadow: 18px 0 60px rgba(0, 0, 0, .16);
}

.brand {
    border-bottom: 0 !important;
    margin-bottom: 12px !important;
}

.brand-logo {
    border-radius: 14px !important;
    background: #151a21 !important;
    box-shadow: 0 14px 38px rgba(255, 107, 0, .14) !important;
}

.brand h2 {
    letter-spacing: -.04em;
}

.brand span {
    color: var(--oe-muted) !important;
}

.menu {
    gap: 5px !important;
}

.menu a {
    border-radius: 11px !important;
    min-height: 45px !important;
    color: #aeb7c4 !important;
    font-size: 13px !important;
}

.menu a:hover {
    background: rgba(255, 255, 255, .055) !important;
    border-color: transparent !important;
    transform: none !important;
}

.menu a.active {
    background: linear-gradient(135deg, rgba(255, 107, 0, .22), rgba(255, 107, 0, .08)) !important;
    border-color: rgba(255, 107, 0, .28) !important;
    color: #fff !important;
    box-shadow: inset 3px 0 0 var(--oe-orange) !important;
}

.main {
    background: transparent !important;
}

.topbar {
    border-bottom: 1px solid var(--oe-line) !important;
    background: rgba(7, 9, 13, .76) !important;
    backdrop-filter: blur(18px);
}

.topbar h1,
.oe-page-head h1 {
    letter-spacing: -.045em;
}

.card,
.panel {
    border: 1px solid var(--oe-line) !important;
    border-radius: 18px !important;
    background: linear-gradient(145deg, rgba(18, 24, 34, .96), rgba(12, 16, 23, .96)) !important;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .18) !important;
}

.card::before {
    opacity: .7;
}

.card:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(255, 107, 0, .22) !important;
}

.eyebrow,
.oe-kicker {
    color: var(--oe-orange-2) !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

.quick-btn,
.oe-primary {
    background: linear-gradient(135deg, var(--oe-orange), var(--oe-orange-2)) !important;
    box-shadow: 0 14px 34px rgba(255, 107, 0, .22);
}

.oe-app {
    min-height: 100vh;
    color: var(--oe-text);
}

.oe-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100vh;
}

.oe-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px 15px;
    border-right: 1px solid var(--oe-line);
    background: rgba(9, 12, 17, .96);
}

.oe-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 5px 8px 26px;
    color: #fff;
    text-decoration: none;
}

.oe-brand img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.oe-brand strong,
.oe-brand small {
    display: block;
}

.oe-brand strong {
    font-size: 17px;
    letter-spacing: -.03em;
}

.oe-brand small {
    margin-top: 3px;
    color: var(--oe-muted);
    font-size: 10px;
}

.oe-nav {
    display: grid;
    gap: 5px;
}

.oe-nav a,
.oe-logout {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #aeb7c4;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.oe-nav a span {
    display: grid;
    place-items: center;
    width: 23px;
    color: #768294;
    font-size: 17px;
}

.oe-nav a:hover,
.oe-nav a.active {
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.oe-nav a.active {
    border-color: rgba(255, 107, 0, .27);
    background: linear-gradient(135deg, rgba(255, 107, 0, .2), rgba(255, 107, 0, .06));
    box-shadow: inset 3px 0 var(--oe-orange);
}

.oe-nav a.active span {
    color: var(--oe-orange-2);
}

.oe-logout {
    position: absolute;
    right: 15px;
    bottom: 20px;
    left: 15px;
    justify-content: center;
    border-color: var(--oe-line);
}

.oe-content {
    width: min(1500px, 100%);
    padding: 34px clamp(18px, 3vw, 48px) 70px;
}

.oe-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.oe-page-head h1 {
    margin: 6px 0 7px;
    font-size: clamp(28px, 3vw, 42px);
}

.oe-page-head p {
    margin: 0;
    color: var(--oe-muted);
    font-size: 14px;
}

.oe-mobile-menu {
    display: none;
}

.oe-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.oe-stat {
    position: relative;
    overflow: hidden;
    min-height: 128px;
    padding: 19px;
    border: 1px solid var(--oe-line);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(19, 25, 35, .95), rgba(12, 16, 23, .95));
}

.oe-stat span,
.oe-stat strong {
    display: block;
}

.oe-stat span {
    color: var(--oe-muted);
    font-size: 12px;
    font-weight: 700;
}

.oe-stat strong {
    margin-top: 14px;
    font-size: 32px;
}

.oe-stat i {
    position: absolute;
    top: 19px;
    right: 19px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
    box-shadow: 0 0 18px currentColor;
}

.oe-stat i.green {background:#22c55e}.oe-stat i.amber {background:#f59e0b}.oe-stat i.red {background:#ef4444}

.oe-panel {
    margin-top: 16px;
    border: 1px solid var(--oe-line);
    border-radius: 18px;
    background: rgba(14, 18, 25, .92);
    box-shadow: var(--oe-shadow);
}

.oe-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--oe-line);
}

.oe-panel-head h2 {
    margin: 4px 0 0;
    font-size: 18px;
}

.oe-search {
    width: min(340px, 100%);
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid var(--oe-line);
    border-radius: 11px;
    background: rgba(255, 255, 255, .04);
    color: #fff;
}

.oe-table-wrap {
    overflow: auto;
}

.oe-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}

.oe-table th,
.oe-table td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    text-align: left;
    font-size: 12px;
}

.oe-table th {
    color: #758094;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.oe-table td {
    color: #d7dce4;
}

.oe-table td strong,
.oe-table td small {
    display: block;
}

.oe-table td small {
    margin-top: 4px;
    color: var(--oe-muted);
}

.oe-status {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(100, 116, 139, .14);
    color: #cbd5e1;
    font-weight: 800;
}

.oe-status.active {background:rgba(34,197,94,.13);color:#86efac}
.oe-status.expiring {background:rgba(245,158,11,.14);color:#fcd34d}
.oe-status.expired {background:rgba(239,68,68,.14);color:#fca5a5}

.oe-action,
.oe-primary {
    min-height: 40px;
    padding: 9px 13px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.oe-action {
    border: 1px solid var(--oe-line);
    background: rgba(255, 255, 255, .055);
}

.oe-alert {
    margin-bottom: 15px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 13px;
}

.oe-alert.success {border-color:rgba(34,197,94,.3);background:rgba(34,197,94,.09);color:#bbf7d0}
.oe-alert.error {border-color:rgba(239,68,68,.3);background:rgba(239,68,68,.09);color:#fecaca}

.oe-plan-dialog {
    width: min(610px, calc(100% - 26px));
    max-height: calc(100vh - 30px);
    overflow: auto;
    padding: 0;
    border: 1px solid var(--oe-line);
    border-radius: 20px;
    background: #10151e;
    color: #fff;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .6);
}

.oe-plan-dialog::backdrop {
    background: rgba(3, 6, 12, .8);
    backdrop-filter: blur(8px);
}

.oe-dialog-close {
    position: absolute;
    top: 13px;
    right: 13px;
}

.oe-dialog-close button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--oe-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    color: #fff;
    font-size: 20px;
}

.oe-dialog-body {
    padding: 27px;
}

.oe-dialog-body h2 {
    margin: 5px 0 20px;
    font-size: 23px;
}

.oe-dialog-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 5px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
}

.oe-dialog-tabs button {
    min-height: 39px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--oe-muted);
    font-weight: 750;
}

.oe-dialog-tabs button.active {
    background: rgba(255, 107, 0, .18);
    color: #fff;
}

.oe-form {
    display: grid;
    gap: 13px;
    margin-top: 18px;
}

.oe-form label {
    display: grid;
    gap: 6px;
    color: #aab3c0;
    font-size: 11px;
    font-weight: 800;
}

.oe-form input,
.oe-form select,
.oe-form textarea {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid var(--oe-line);
    border-radius: 10px;
    background: #0a0e14;
    color: #fff;
}

.oe-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.oe-check {
    display: flex !important;
    grid-template-columns: 20px 1fr;
    align-items: center;
}

.oe-check input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--oe-orange);
}

.oe-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid rgba(255, 107, 0, .24);
    border-radius: 12px;
    background: rgba(255, 107, 0, .07);
}

.oe-total span {
    color: var(--oe-muted);
    font-size: 12px;
}

.oe-total strong {
    font-size: 23px;
}

@media (max-width: 980px) {
    .oe-shell {grid-template-columns: 1fr}
    .oe-sidebar {
        position: fixed;
        z-index: 100;
        width: 260px;
        transform: translateX(-105%);
        transition: transform .24s ease;
    }
    .oe-sidebar.open {transform:none}
    .oe-mobile-menu {
        display: inline-flex;
        padding: 10px 13px;
        border: 1px solid var(--oe-line);
        border-radius: 10px;
        background: rgba(255,255,255,.05);
        color: #fff;
    }
    .oe-stat-grid {grid-template-columns:repeat(2, 1fr)}
}

@media (max-width: 620px) {
    .oe-content {padding:22px 14px 50px}
    .oe-page-head {align-items:flex-start}
    .oe-stat-grid {grid-template-columns:1fr 1fr}
    .oe-stat {min-height:110px;padding:15px}
    .oe-stat strong {font-size:26px}
    .oe-panel-head {align-items:stretch;flex-direction:column}
    .oe-search {width:100%}
    .oe-form-grid {grid-template-columns:1fr}
}

.oe-login-page {
    position: relative;
    overflow: hidden;
}

.oe-login-page::before,
.oe-login-page::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(12px);
    pointer-events: none;
}

.oe-login-page::before {
    top: -180px;
    left: -120px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(255, 107, 0, .18), transparent 68%);
}

.oe-login-page::after {
    right: -180px;
    bottom: -230px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(59, 130, 246, .09), transparent 68%);
}

.oe-login-page .login-box {
    position: relative;
    z-index: 1;
    max-width: 430px;
    padding: 38px;
    border: 1px solid var(--oe-line);
    border-radius: 22px;
    background: rgba(13, 17, 24, .88);
    box-shadow: 0 34px 110px rgba(0, 0, 0, .5);
    backdrop-filter: blur(20px);
}

.oe-login-page .logo img {
    width: 190px;
    max-height: 64px;
    object-fit: contain;
    margin-bottom: 20px;
}

.oe-login-page .logo h1 {
    color: #fff;
    font-size: 29px;
    letter-spacing: -.04em;
}

.oe-login-page .logo p {
    color: var(--oe-muted);
    font-size: 13px;
}

.oe-login-page .input-group label {
    color: #aeb7c4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.oe-login-page .input-group input {
    min-height: 49px;
    border: 1px solid var(--oe-line);
    border-radius: 11px;
    background: rgba(255, 255, 255, .035);
}

.oe-login-page button[type="submit"] {
    min-height: 49px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--oe-orange), var(--oe-orange-2));
    box-shadow: 0 16px 34px rgba(255, 107, 0, .22);
}

.oe-login-trust {
    margin-top: 18px;
    color: #6f7b8c;
    font-size: 10px;
    text-align: center;
}

/* Mapa en vivo · consola operativa 2.1 */
.oe-live-map {
    overflow: hidden;
    background: #080b10;
}

.oe-live-map .wrapper {
    grid-template-columns: 232px minmax(0, 1fr) 416px;
    height: 100vh;
    min-height: 620px;
}

.oe-live-map .sidebar {
    z-index: 30;
    border-right: 1px solid rgba(255, 255, 255, .07);
    background: linear-gradient(180deg, #0e1219 0%, #090c11 100%);
    box-shadow: 12px 0 40px rgba(0, 0, 0, .2);
}

.oe-live-map .map-wrap {
    position: relative;
    min-width: 0;
    background: #10151b;
}

.oe-live-map #map {
    width: 100%;
    height: 100%;
}

.oe-live-map .map-top {
    position: absolute;
    z-index: 20;
    top: 20px;
    right: 20px;
    left: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    pointer-events: none;
}

.oe-live-map .map-context,
.oe-live-map .map-floating {
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(10, 14, 20, .9);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .3);
    backdrop-filter: blur(18px);
}

.oe-live-map .map-context {
    display: flex;
    min-width: 210px;
    padding: 14px 17px;
    border-radius: 16px;
    flex-direction: column;
}

.oe-live-map .map-context-kicker,
.oe-live-map .device-panel-kicker {
    color: #ff8a33;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.oe-live-map .map-context-kicker i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: #31d07c;
    box-shadow: 0 0 0 5px rgba(49, 208, 124, .12);
    animation: oe-live-pulse 1.8s infinite;
}

@keyframes oe-live-pulse {
    50% { box-shadow: 0 0 0 9px rgba(49, 208, 124, 0); }
}

.oe-live-map .map-context strong {
    margin-top: 5px;
    color: #fff;
    font-size: 17px;
    letter-spacing: -.025em;
}

.oe-live-map .map-context small {
    margin-top: 2px;
    color: #8792a2;
    font-size: 11px;
}

.oe-live-map .map-floating {
    display: flex;
    padding: 5px;
    border-radius: 14px;
    gap: 4px;
}

.oe-live-map .map-floating button {
    display: inline-flex;
    min-height: 38px;
    padding: 0 13px;
    border: 0;
    border-radius: 10px;
    align-items: center;
    gap: 7px;
    color: #d9e0e9;
    background: transparent;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.oe-live-map .map-floating button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.oe-live-map .control-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #31d07c;
    box-shadow: 0 0 0 4px rgba(49, 208, 124, .12);
}

.oe-live-map .device-list {
    position: relative;
    z-index: 35;
    display: flex;
    min-width: 0;
    height: 100vh;
    padding: 0;
    overflow: hidden;
    border-left: 1px solid rgba(255, 255, 255, .08);
    flex-direction: column;
    background: #0d1117;
    box-shadow: -18px 0 45px rgba(0, 0, 0, .22);
}

.oe-live-map .device-list-handle,
.oe-live-map .device-panel-close {
    display: none;
}

.oe-live-map .device-topbar {
    display: flex;
    padding: 24px 22px 16px;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 0;
}

.oe-live-map .device-panel-heading h2 {
    margin: 4px 0 3px;
    color: #f6f8fb;
    font-size: 25px;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.oe-live-map .device-panel-heading p {
    margin: 0;
    color: #778292;
    font-size: 11px;
}

.oe-live-map .device-panel-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.oe-live-map .refresh-status {
    display: inline-flex;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid rgba(49, 208, 124, .2);
    border-radius: 99px;
    align-items: center;
    color: #69dda1;
    background: rgba(49, 208, 124, .07);
    font-size: 9px;
    font-weight: 800;
}

.oe-live-map .device-search-wrap {
    position: relative;
    display: flex;
    margin: 0 22px 14px;
    align-items: center;
}

.oe-live-map .device-search-wrap > span:first-child {
    position: absolute;
    z-index: 2;
    left: 13px;
    color: #7c8796;
    font-size: 19px;
}

.oe-live-map .device-search-wrap .search {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 0 88px 0 39px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 13px;
    outline: 0;
    color: #f2f5f8;
    background: #141a22;
    font-size: 11px;
    transition: .2s ease;
}

.oe-live-map .device-search-wrap .search:focus {
    border-color: rgba(255, 107, 0, .65);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, .1);
}

.oe-live-map .device-result-count {
    position: absolute;
    right: 12px;
    color: #687485;
    font-size: 9px;
    pointer-events: none;
}

.oe-live-map .device-result-count strong {
    color: #b8c1cd;
}

.oe-live-map .panel-stats {
    display: grid;
    margin: 0 22px 14px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 13px;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    background: rgba(255, 255, 255, .025);
}

.oe-live-map .panel-stat {
    min-width: 0;
    padding: 11px 6px 10px;
    border-right: 1px solid rgba(255, 255, 255, .07);
    text-align: center;
}

.oe-live-map .panel-stat:last-child {
    border-right: 0;
}

.oe-live-map .panel-stat strong {
    display: block;
    color: #f5f7fa;
    font-size: 16px;
    line-height: 1;
}

.oe-live-map .panel-stat span {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: #687485;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oe-live-map .filters {
    display: grid;
    margin: 0 22px 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.oe-live-map .filters select,
.oe-live-map .filters .filter-btn {
    min-width: 0;
    min-height: 36px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    color: #aeb8c5;
    background: #121820;
    font-size: 9px;
    font-weight: 750;
}

.oe-live-map .filters .filter-btn {
    color: #ff984d;
    cursor: pointer;
}

.oe-live-map .vehicle-status-legend {
    display: flex;
    margin: 0 22px 12px;
    padding: 0 2px;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.oe-live-map .vehicle-status-legend span {
    color: #697586;
    font-size: 8px;
    font-weight: 700;
}

.oe-live-map .device-table-wrap {
    min-height: 0;
    padding: 0 14px 18px;
    overflow: auto;
    flex: 1;
    scrollbar-color: #303844 transparent;
    scrollbar-width: thin;
}

.oe-live-map .device-card {
    position: relative;
    display: grid;
    margin: 0 0 7px;
    padding: 13px 12px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 14px;
    grid-template-columns: 42px minmax(0, 1fr) auto 28px;
    align-items: center;
    gap: 10px;
    background: #121820;
    box-shadow: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.oe-live-map .device-card::before {
    position: absolute;
    top: 13px;
    bottom: 13px;
    left: 0;
    width: 2px;
    border-radius: 0 2px 2px 0;
    background: #465160;
    content: "";
}

.oe-live-map .device-card:hover,
.oe-live-map .device-card.active-card {
    border-color: rgba(255, 107, 0, .32);
    background: #161d26;
    transform: translateY(-1px);
}

.oe-live-map .device-card.active-card::before {
    background: #ff6b00;
    box-shadow: 0 0 12px rgba(255, 107, 0, .6);
}

.oe-live-map .device-card.blocked-card::before {
    background: #f04452;
    box-shadow: 0 0 12px rgba(240, 68, 82, .45);
}

.oe-live-map .device-card.offline-card {
    opacity: 1;
}

.oe-live-map .device-card.offline-card::before {
    background: #657184;
}

.oe-live-map .device-card.moving::before {
    background: #31d07c;
    box-shadow: 0 0 12px rgba(49, 208, 124, .38);
}

.oe-live-map .device-card.stopped::before {
    background: #f0a23b;
}

.oe-live-map .device-card.parked-card::before {
    background: #f5b51b;
    box-shadow: 0 0 12px rgba(245, 181, 27, .32);
}

.oe-live-map .badge-parked {
    color: #8a5b00;
    background: #fff3c4;
}

.oe-live-map .vehicle-state-icon.state-parked,
.oe-live-map .device-popup-icon.state-parked {
    color: #fff;
    background: linear-gradient(145deg, #f5b51b, #c98a00);
}

.oe-live-map .vehicle-state-icon {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, .035);
}

.oe-live-map .device-summary {
    min-width: 0;
}

.oe-live-map .device-title {
    overflow: hidden;
    color: #eff3f7;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: -.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oe-live-map .device-sub {
    margin-top: 2px;
    overflow: hidden;
    color: #6f7b8c;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oe-live-map .device-quick-data {
    display: flex;
    margin-top: 6px;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.oe-live-map .device-quick-data span {
    color: #8994a3;
    font-size: 8px;
    font-weight: 750;
}

.oe-live-map .device-age {
    max-width: 66px;
    overflow: hidden;
    color: #7f8998;
    font-size: 8px;
    font-weight: 700;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oe-live-map .device-more {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    color: #7e8998;
    background: transparent;
    cursor: pointer;
}

.oe-live-map .device-more:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.oe-live-map .device-details {
    display: none;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    grid-column: 1 / -1;
}

.oe-live-map .device-card.actions-open .device-details {
    display: block;
    animation: oe-device-detail-in .18s ease both;
}

.oe-live-map .device-card.actions-open .device-more {
    color: #fff;
    background: rgba(255, 107, 0, .16);
}

@keyframes oe-device-detail-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.oe-live-map .device-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.oe-live-map .mini-btn {
    min-width: 0;
    min-height: 32px;
    padding: 0 6px;
    border-radius: 9px;
    font-size: 8px;
}

@media (max-width: 1260px) {
    .oe-live-map .wrapper {
        grid-template-columns: 88px minmax(0, 1fr) 390px;
    }

    .oe-live-map .sidebar .brand > div:last-child,
    .oe-live-map .sidebar .menu a {
        font-size: 0;
    }

    .oe-live-map .sidebar .menu-icon {
        margin: auto;
        font-size: 18px;
    }
}

@media (max-width: 980px) {
    .oe-live-map {
        overflow: hidden;
    }

    .oe-live-map .wrapper {
        display: block;
        min-height: 100svh;
        height: 100svh;
    }

    .oe-live-map .sidebar {
        display: none;
    }

    .oe-live-map .map-wrap,
    .oe-live-map #map {
        height: 100%;
    }

    .oe-live-map .map-top {
        top: 12px;
        right: 12px;
        left: 12px;
    }

    .oe-live-map .map-context {
        min-width: 0;
        padding: 11px 13px;
    }

    .oe-live-map .map-context small {
        display: none;
    }

    .oe-live-map .map-floating button:not(.mobile-list-btn) {
        display: none;
    }

    .oe-live-map .mobile-list-btn {
        display: inline-flex;
    }

    .oe-live-map .device-list {
        position: fixed;
        z-index: 1400;
        right: 8px;
        bottom: 8px;
        left: 8px;
        width: auto;
        height: min(76svh, 720px);
        border: 1px solid rgba(255, 255, 255, .11);
        border-radius: 22px;
        transform: translateY(calc(100% - 82px));
        box-shadow: 0 -24px 70px rgba(0, 0, 0, .45);
        transition: transform .28s cubic-bezier(.2, .8, .2, 1);
    }

    .oe-live-map .device-list.open {
        transform: translateY(0);
    }

    .oe-live-map .device-list-handle {
        display: block;
        width: 100%;
        height: 22px;
        border: 0;
        flex: 0 0 22px;
        background: transparent;
        cursor: pointer;
    }

    .oe-live-map .device-list-handle span {
        display: block;
        width: 38px;
        height: 4px;
        margin: 8px auto 0;
        border-radius: 99px;
        background: #3a4452;
    }

    .oe-live-map .device-topbar {
        padding: 5px 18px 13px;
    }

    .oe-live-map .device-panel-heading h2 {
        font-size: 21px;
    }

    .oe-live-map .device-panel-heading p {
        display: none;
    }

    .oe-live-map .device-panel-meta {
        align-items: flex-end;
        flex-direction: column-reverse;
    }

    .oe-live-map .device-panel-close {
        display: grid;
        width: 30px;
        height: 30px;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 9px;
        place-items: center;
        color: #aeb8c5;
        background: #171d25;
        font-size: 20px;
    }

    .oe-live-map .device-search-wrap,
    .oe-live-map .panel-stats,
    .oe-live-map .filters,
    .oe-live-map .vehicle-status-legend {
        margin-right: 18px;
        margin-left: 18px;
    }

    .oe-live-map .device-table-wrap {
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media (max-width: 520px) {
    .oe-live-map .map-context strong {
        font-size: 14px;
    }

    .oe-live-map .map-floating button {
        padding: 0 10px;
    }

    .oe-live-map .panel-stats {
        grid-template-columns: repeat(4, minmax(64px, 1fr));
        overflow-x: auto;
    }

    .oe-live-map .filters {
        grid-template-columns: 1fr 1fr;
    }

    .oe-live-map .vehicle-status-legend {
        display: none;
    }

    .oe-live-map .device-card {
        grid-template-columns: 38px minmax(0, 1fr) 52px 26px;
        padding: 11px 9px;
        gap: 7px;
    }

    .oe-live-map .vehicle-state-icon {
        width: 34px;
        height: 34px;
    }

    .oe-live-map .device-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Ficha profesional del vehículo sobre Google Maps */
.oe-live-map .gm-style .gm-style-iw-c {
    width: min(390px, calc(100vw - 34px));
    max-width: 390px !important;
    padding: 0 !important;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 20px;
    color: #eef2f7;
    background: #0d1219;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .52);
}

.oe-live-map .gm-style .gm-style-iw-d {
    max-height: min(68vh, 580px) !important;
    padding: 0 !important;
    overflow: auto !important;
    border-radius: 20px;
}

.oe-live-map .gm-style .gm-style-iw-tc::after {
    background: #0d1219;
}

.oe-live-map .gm-ui-hover-effect {
    top: 7px !important;
    right: 7px !important;
    z-index: 3;
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px;
    filter: invert(1);
    opacity: .72;
}

.oe-live-map .device-popup-card {
    min-width: 330px;
    padding: 19px;
    background:
        radial-gradient(circle at top left, rgba(255, 107, 0, .11), transparent 35%),
        #0d1219;
}

.oe-live-map .device-popup-head {
    display: grid;
    padding-right: 28px;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
}

.oe-live-map .device-popup-icon {
    display: grid;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 15px;
    place-items: center;
    color: #fff;
    background: #171e27;
}

.oe-live-map .device-popup-icon svg {
    width: 29px;
    height: 29px;
}

.oe-live-map .device-popup-icon.state-moving,
.oe-live-map .device-popup-icon.state-online {
    background: linear-gradient(145deg, #1ca766, #126f48);
}

.oe-live-map .device-popup-icon.state-offline {
    background: linear-gradient(145deg, #667085, #374151);
}

.oe-live-map .device-popup-icon.state-blocked {
    background: linear-gradient(145deg, #ef4444, #991b1b);
}

.oe-live-map .device-popup-head strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oe-live-map .device-popup-head p {
    margin: 3px 0 0;
    overflow: hidden;
    color: #788596;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oe-live-map .device-popup-status {
    display: flex;
    margin: 14px 0 12px;
    flex-wrap: wrap;
    gap: 5px;
}

.oe-live-map .device-popup-status .badge-mini {
    padding: 5px 8px;
    font-size: 8px;
}

.oe-live-map .device-popup-metrics {
    display: grid;
    margin-bottom: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.oe-live-map .device-popup-metric {
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 11px;
    background: rgba(255, 255, 255, .035);
}

.oe-live-map .device-popup-metric span,
.oe-live-map .device-popup-value span {
    display: block;
    color: #6f7c8d;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.oe-live-map .device-popup-metric strong {
    display: block;
    margin-top: 4px;
    color: #edf2f7;
    font-size: 12px;
}

.oe-live-map .device-popup-metric.motor-on strong,
.oe-live-map .device-popup-metric.battery-ok strong {
    color: #5cdb99;
}

.oe-live-map .device-popup-metric.motor-off strong,
.oe-live-map .device-popup-metric.battery-low strong {
    color: #ff747e;
}

.oe-live-map .device-popup-grid {
    display: grid;
    padding: 4px 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
}

.oe-live-map .device-popup-value {
    min-width: 0;
    padding: 9px 10px;
    background: #111720;
}

.oe-live-map .device-popup-value.wide {
    grid-column: 1 / -1;
}

.oe-live-map .device-popup-value strong {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #cdd5df;
    font-size: 9px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oe-live-map .device-popup-actions {
    display: grid;
    margin-top: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.oe-live-map .device-popup-actions .popup-action {
    display: inline-flex;
    min-height: 39px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 11px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #eef2f7;
    background: #171e27;
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease;
}

.oe-live-map .device-popup-actions .popup-action:hover {
    transform: translateY(-1px);
    filter: brightness(1.12);
}

.oe-live-map .device-popup-actions .popup-action::before {
    font-size: 14px;
    line-height: 1;
}

.oe-live-map .device-popup-actions [data-icon="street"]::before {
    content: "⌖";
}

.oe-live-map .device-popup-actions [data-icon="share"]::before {
    content: "↗";
}

.oe-live-map .device-popup-actions [data-icon="motor"]::before {
    content: "◉";
}

.oe-live-map .device-popup-actions .btn-share {
    color: #fff;
    border-color: rgba(255, 107, 0, .34);
    background: linear-gradient(135deg, #f46700, #ff8d2d);
}

.oe-live-map .device-popup-actions .btn-lock,
.oe-live-map .device-popup-actions .btn-unlock {
    grid-column: 1 / -1;
}

@media (max-width: 520px) {
    .oe-live-map .device-popup-card {
        min-width: 0;
        padding: 16px;
    }

    .oe-live-map .gm-style .gm-style-iw-c {
        width: calc(100vw - 24px);
    }

    .oe-live-map .device-popup-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Experiencia de mapa tipo aplicación móvil */
.oe-live-map .map-side-tools {
    position: absolute;
    z-index: 22;
    top: 118px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.oe-live-map .map-side-tools button {
    display: grid;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 50%;
    place-items: center;
    color: #0b405a;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .18);
    font-size: 24px;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(16px);
    transition: transform .18s ease, color .18s ease, background .18s ease;
}

.oe-live-map .map-side-tools button:hover {
    transform: translateY(-2px);
}

.oe-live-map .map-side-tools button.active {
    color: #fff;
    background: #ff6b00;
}

.oe-live-map .mobile-tool-list {
    display: none !important;
}

.oe-live-map .vehicle-quick-panel {
    position: absolute;
    z-index: 45;
    bottom: 22px;
    left: 22px;
    display: none;
    width: min(560px, calc(100% - 44px));
    max-height: calc(100% - 150px);
    padding: 23px;
    overflow: auto;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 26px;
    color: #172033;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 30px 90px rgba(15, 23, 42, .28);
    backdrop-filter: blur(22px);
    animation: oe-panel-up .26s cubic-bezier(.2, .8, .2, 1) both;
}

.oe-live-map .vehicle-quick-panel.open {
    display: block;
}

.oe-live-map .vehicle-quick-panel.collapsed {
    max-height: 116px;
    overflow: hidden;
}

@keyframes oe-panel-up {
    from { opacity: 0; transform: translateY(22px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.oe-live-map .quick-panel-handle {
    display: block;
    width: 100%;
    height: 13px;
    margin: -12px 0 10px;
    background: transparent;
    cursor: pointer;
}

.oe-live-map .quick-panel-handle span {
    display: block;
    width: 68px;
    height: 5px;
    margin: auto;
    border-radius: 99px;
    background: #0b405a;
}

.oe-live-map .quick-panel-close {
    position: absolute;
    z-index: 3;
    top: 15px;
    right: 16px;
    display: grid;
    width: 31px;
    height: 31px;
    border: 0;
    border-radius: 10px;
    place-items: center;
    color: #667085;
    background: #f0f3f6;
    font-size: 20px;
    cursor: pointer;
}

.oe-live-map .quick-vehicle-head {
    display: grid;
    padding-right: 28px;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.oe-live-map .quick-vehicle-icon {
    display: grid;
    width: 54px;
    height: 54px;
    border: 1px solid #e5e9ee;
    border-radius: 50%;
    place-items: center;
    color: #fff;
    background: #607080;
}

.oe-live-map .quick-vehicle-icon.moving,
.oe-live-map .quick-vehicle-icon.online {
    background: #39b866;
}

.oe-live-map .quick-vehicle-icon.offline {
    background: #8893a1;
}

.oe-live-map .quick-vehicle-icon.blocked {
    background: #f04444;
}

.oe-live-map .quick-vehicle-icon.parked {
    background: #f5b51b;
}

.oe-live-map .quick-vehicle-icon svg {
    width: 31px;
    height: 31px;
}

.oe-live-map .quick-vehicle-title {
    min-width: 0;
}

.oe-live-map .quick-vehicle-title strong {
    display: block;
    overflow: hidden;
    color: #111827;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oe-live-map .quick-vehicle-title span {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #697386;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oe-live-map .quick-vehicle-state {
    text-align: right;
}

.oe-live-map .quick-vehicle-state > span {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 9px;
    align-items: center;
    gap: 6px;
    color: #227b49;
    background: #e8f8ee;
    font-size: 10px;
    font-weight: 850;
}

.oe-live-map .quick-vehicle-state i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.oe-live-map .quick-vehicle-state.offline > span,
.oe-live-map .quick-vehicle-state.blocked > span {
    color: #db3f47;
    background: #fff0f1;
}

.oe-live-map .quick-vehicle-state.parked > span {
    color: #a66d00;
    background: #fff6d9;
}

.oe-live-map .quick-vehicle-state small {
    display: block;
    margin-top: 5px;
    color: #7c8795;
    font-size: 9px;
}

.oe-live-map .quick-address {
    display: grid;
    margin-top: 16px;
    padding: 13px 15px;
    border: 1px solid #e3e7ec;
    border-radius: 14px;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    color: #374151;
    background: rgba(248, 250, 252, .8);
    font-size: 11px;
    line-height: 1.45;
}

.oe-live-map .quick-address-icon {
    color: #0b405a;
    font-size: 25px;
    font-weight: 900;
}

.oe-live-map .quick-metrics,
.oe-live-map .quick-actions {
    display: grid;
    margin-top: 12px;
    padding: 10px 4px;
    border: 1px solid #e3e7ec;
    border-radius: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: rgba(248, 250, 252, .72);
}

.oe-live-map .quick-metrics > div,
.oe-live-map .quick-actions > button {
    min-width: 0;
    padding: 4px 8px;
    border-right: 1px solid #e1e5ea;
    text-align: center;
}

.oe-live-map .quick-metrics > div:last-child,
.oe-live-map .quick-actions > button:last-child {
    border-right: 0;
}

.oe-live-map .quick-metrics .metric-icon {
    display: block;
    height: 22px;
    color: #0b405a;
    font-size: 20px;
    font-weight: 900;
}

.oe-live-map .quick-metrics small,
.oe-live-map .quick-metrics strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oe-live-map .quick-metrics small {
    margin-top: 3px;
    color: #7c8795;
    font-size: 8px;
}

.oe-live-map .quick-metrics strong {
    margin-top: 2px;
    color: #202938;
    font-size: 9px;
}

.oe-live-map .quick-actions-title {
    margin: 17px 0 -3px;
    color: #1f2937;
    font-size: 14px;
}

.oe-live-map .quick-actions > button {
    display: flex;
    min-height: 59px;
    border: 0;
    border-right: 1px solid #e1e5ea;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #344054;
    background: transparent;
    font-size: 8px;
    font-weight: 800;
    cursor: pointer;
}

.oe-live-map .quick-actions > button span {
    color: #0b405a;
    font-size: 21px;
    font-weight: 900;
}

.oe-live-map .quick-actions > button.action-lock {
    color: #c9363f;
}

.oe-live-map .quick-actions > button.action-lock span {
    color: #e03d45;
}

.oe-live-map .quick-extra-data {
    display: none;
    margin-top: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #e3e7ec;
    border-radius: 13px;
    background: #e3e7ec;
}

.oe-live-map .vehicle-quick-panel.show-more .quick-extra-data {
    display: grid;
}

.oe-live-map .quick-extra-data .device-popup-value {
    background: #fff;
}

.oe-live-map .quick-extra-data .device-popup-value span {
    color: #8993a1;
}

.oe-live-map .quick-extra-data .device-popup-value strong {
    color: #344054;
}

@media (max-width: 980px) {
    .oe-live-map .map-side-tools {
        top: 80px;
        right: 12px;
    }

    .oe-live-map .map-side-tools button {
        width: 46px;
        height: 46px;
    }

    .oe-live-map .mobile-tool-list {
        display: grid !important;
    }

    .oe-live-map .vehicle-quick-panel {
        position: fixed;
        z-index: 1500;
        right: 8px;
        bottom: 8px;
        left: 8px;
        width: auto;
        max-height: 72svh;
        padding: 20px 17px;
        border-radius: 25px;
    }

    .oe-live-map .quick-vehicle-head {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .oe-live-map .quick-vehicle-icon {
        width: 48px;
        height: 48px;
    }

    .oe-live-map .quick-vehicle-state {
        grid-column: 1 / -1;
        padding-left: 60px;
        text-align: left;
    }

    .oe-live-map .quick-vehicle-state small {
        display: inline;
        margin-left: 7px;
    }
}

@media (max-width: 520px) {
    .oe-live-map .map-side-tools {
        gap: 8px;
    }

    .oe-live-map .quick-vehicle-title strong {
        font-size: 18px;
    }

    .oe-live-map .quick-address {
        margin-top: 12px;
    }

    .oe-live-map .quick-metrics,
    .oe-live-map .quick-actions {
        grid-template-columns: repeat(4, minmax(62px, 1fr));
        overflow-x: auto;
    }

    .oe-live-map .quick-metrics > div,
    .oe-live-map .quick-actions > button {
        padding-right: 5px;
        padding-left: 5px;
    }
}

/* Ajuste compacto 3.1 */
.oe-live-map .vehicle-quick-panel {
    width: min(440px, calc(100% - 36px));
    max-height: calc(100% - 125px);
    padding: 16px;
    border-radius: 20px;
}

.oe-live-map .quick-panel-handle {
    margin-top: -8px;
    margin-bottom: 6px;
}

.oe-live-map .quick-panel-handle span {
    width: 48px;
    height: 4px;
}

.oe-live-map .quick-panel-close {
    top: 11px;
    right: 11px;
    width: 27px;
    height: 27px;
}

.oe-live-map .quick-vehicle-head {
    grid-template-columns: 43px minmax(0, 1fr) auto;
    gap: 9px;
}

.oe-live-map .quick-vehicle-icon {
    width: 43px;
    height: 43px;
}

.oe-live-map .quick-vehicle-icon svg {
    width: 25px;
    height: 25px;
}

.oe-live-map .quick-vehicle-title strong {
    font-size: 17px;
}

.oe-live-map .quick-vehicle-title span,
.oe-live-map .quick-address {
    font-size: 9px;
}

.oe-live-map .quick-vehicle-state > span {
    padding: 5px 7px;
    font-size: 8px;
}

.oe-live-map .quick-address {
    margin-top: 11px;
    padding: 9px 11px;
    border-radius: 11px;
    grid-template-columns: 22px minmax(0, 1fr);
}

.oe-live-map .quick-address-icon {
    font-size: 19px;
}

.oe-live-map .quick-metrics,
.oe-live-map .quick-actions {
    margin-top: 8px;
    padding: 6px 2px;
    border-radius: 11px;
}

.oe-live-map .quick-metrics .metric-icon {
    height: 17px;
    font-size: 16px;
}

.oe-live-map .quick-metrics small {
    font-size: 7px;
}

.oe-live-map .quick-metrics strong {
    font-size: 8px;
}

.oe-live-map .quick-actions-title {
    margin-top: 11px;
    font-size: 12px;
}

.oe-live-map .quick-actions > button {
    min-height: 47px;
    font-size: 7px;
}

.oe-live-map .quick-actions > button span {
    font-size: 17px;
}

.oe-live-map .map-side-tools button {
    width: 40px;
    height: 40px;
    font-size: 19px;
}

@media (max-width: 980px) {
    .oe-live-map .vehicle-quick-panel {
        right: 7px;
        bottom: 7px;
        left: 7px;
        width: auto;
        max-height: 58svh;
        padding: 14px;
        border-radius: 20px;
    }

    .oe-live-map .quick-vehicle-head {
        grid-template-columns: 40px minmax(0, 1fr) auto;
    }

    .oe-live-map .quick-vehicle-icon {
        width: 40px;
        height: 40px;
    }

    .oe-live-map .quick-vehicle-state {
        grid-column: auto;
        padding-left: 0;
        text-align: right;
    }

    .oe-live-map .quick-vehicle-state small {
        display: block;
        margin-left: 0;
    }
}

@media (max-width: 520px) {
    .oe-live-map .quick-vehicle-state small {
        display: none;
    }

    .oe-live-map .quick-vehicle-title strong {
        font-size: 15px;
    }
}

.oe-live-map .map-color-rules {
    position: absolute;
    z-index: 21;
    right: 18px;
    bottom: 18px;
    display: flex;
    padding: 8px 10px;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 12px;
    align-items: center;
    gap: 8px;
    color: #536071;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
    font-size: 7px;
    font-weight: 750;
    backdrop-filter: blur(14px);
}

.oe-live-map .map-color-rules strong {
    color: #172033;
    font-size: 8px;
}

.oe-live-map .map-color-rules span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.oe-live-map .map-color-rules i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.oe-live-map .map-color-rules .color-moving { background: #22c55e; }
.oe-live-map .map-color-rules .color-stopped { background: #38a9e8; }
.oe-live-map .map-color-rules .color-parked { background: #f5b51b; }
.oe-live-map .map-color-rules .color-offline { background: #94a3b8; }
.oe-live-map .map-color-rules .color-blocked { background: #ef4444; }

@media (max-width: 980px) {
    .oe-live-map .map-color-rules {
        right: auto;
        bottom: 91px;
        left: 10px;
        max-width: calc(100vw - 78px);
        overflow-x: auto;
    }
}
