.btn-toggle {
    background: transparent;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-toggle:hover {
    background: #e2e8f0;
    color: #475569;
}
.btn-toggle.active {
    background: #fff;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-weight: bold;
}

/* Abas Ativos / Inativos */
.v-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.v-tab:hover { color: #1e293b; }
.v-tab.active {
    color: #1976d2;
    border-bottom-color: #1976d2;
}
.v-tab-count {
    background: #f1f5f9;
    color: #475569;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    line-height: 1.2;
}
.v-tab.active .v-tab-count {
    background: #e3f2fd;
    color: #1976d2;
}
/* Alerta p/ dono do veículo: há inativo/vencido esperando pagamento */
.v-tab.v-tab-alert { color: #dc2626; }
.v-tab.v-tab-alert .v-tab-count { background: #dc2626; color: #fff; }
.v-tab.active.v-tab-alert { color: #dc2626; border-bottom-color: #dc2626; }
.v-tab.active.v-tab-alert .v-tab-count { background: #dc2626; color: #fff; }
.v-tab.v-tab-alert:not(.active) {
    animation: tab-pulse-red 1.5s infinite;
    border-radius: 8px 8px 0 0;
}
@keyframes tab-pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45); background: rgba(220, 38, 38, 0.08); }
    70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); background: rgba(220, 38, 38, 0.03); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); background: rgba(220, 38, 38, 0.08); }
}
@media (max-width: 480px) {
    #vehiclesTabs { padding: 0 12px; }
    .v-tab { padding: 10px 10px; font-size: 0.82rem; }
}

/* Card Grid Styles */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 24px;
    background: #f8fafc;
}

.vehicle-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}

.v-card-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}
.v-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.v-card-footer {
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.v-card-footer .action-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}
.v-card-footer .action-btn svg {
    width: 16px;
    height: 16px;
}

.v-badge {
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    min-width: fit-content;
    white-space: nowrap;
    line-height: 1;
}

.v-badge-online {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 0.65rem;
    font-weight: 700;
    gap: 4px;
}
.v-badge-offline {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    font-size: 0.65rem;
    font-weight: 700;
    gap: 4px;
}

/* Badge de Status Principal (EM MOVIMENTO, LIGADO, PARADO) */
.v-badge-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    height: 24px;
    white-space: nowrap;
    line-height: 1;
}

/* Badge de Bloqueio Premium */
.v-badge-blocked-premium {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 0.65rem;
    padding: 5px 10px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 20px;
    font-weight: 600;
}

/* Badge de Espera de Velocidade */
.v-badge-safe-block {
    background: #fffbeb;
    color: #fbbf24;
    border: 1px solid #fcd34d;
    font-size: 0.6rem;
    line-height: 1.1;
    text-align: center;
    padding: 4px 6px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-weight: 600;
}

/* Container para badges alinhados */
.badges-container {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.v-plate {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.05em;
}
.v-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #64748b;
}
.v-detail-val {
    font-weight: 500;
    color: #334155;
}

/* Variações de Status nos Cards */
.vehicle-card.status-vencido { border-left: 4px solid #ef4444; }
.vehicle-card.status-expiring { border-left: 4px solid #f59e0b; }
.vehicle-card.status-movimento { border-left: 4px solid #22c55e; }
.vehicle-card.status-ligado { border-left: 4px solid #3b82f6; }
.vehicle-card.status-parado { border-left: 4px solid #94a3b8; }

/* Pulsing Warnings */
.pulse-warning {
    animation: pulse-yellow 1.5s infinite;
    border-radius: 50%;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.pulse-warning:hover { transform: scale(1.2); }

@keyframes pulse-yellow {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); background: rgba(245, 158, 11, 0.2); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); background: rgba(245, 158, 11, 0.1); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); background: rgba(245, 158, 11, 0.2); }
}

.pulse-yellow-lite { animation: pulse-yellow-lite 1.5s infinite; }
@keyframes pulse-yellow-lite {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Responsividade para tablets (max-width: 768px) */
@media (max-width: 768px) {
    .vehicles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
        padding: 16px;
    }
    
    .v-card-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }
    
    .badges-container {
        justify-content: flex-start;
        width: auto;
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .v-badge,
    .v-badge-status,
    .v-badge-blocked-premium,
    .v-badge-safe-block {
        font-size: 0.6rem;
        height: 22px;
        padding: 4px 8px;
        min-width: fit-content;
        flex-shrink: 0;
    }
    
    .v-badge-safe-block {
        font-size: 0.55rem;
        line-height: 1;
        padding: 3px 6px;
    }
    
    .v-plate {
        font-size: 1.1rem;
    }
    
    .v-card-body {
        padding: 12px;
    }
    
    .v-card-footer {
        padding: 10px 12px;
    }
}

/* Responsividade para celulares (max-width: 480px) */
@media (max-width: 480px) {
    .vehicles-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    
    .v-card-header {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .badges-container {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: flex-start;
        width: 100%;
    }
    
    .v-badge,
    .v-badge-status,
    .v-badge-blocked-premium,
    .v-badge-safe-block {
        font-size: 0.55rem;
        height: 20px;
        padding: 3px 6px;
    }
    
    .v-badge-safe-block {
        font-size: 0.5rem;
        line-height: 1;
        padding: 2px 4px;
    }
    
    .v-plate {
        font-size: 1rem;
    }
    
    .v-card-body {
        padding: 10px;
        gap: 8px;
    }
    
    .v-detail-row {
        font-size: 0.8rem;
    }
    
    .digital-speed-panel {
        padding: 10px;
    }
    
    .speed-digital-val {
        font-size: 1.8rem;
    }
    
    .v-card-footer {
        padding: 8px 10px;
    }
    
    .v-card-footer .action-btn {
        width: 28px;
        height: 28px;
    }
    
    .v-card-footer .action-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Frota — cards premium claros */
.vehicles-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
    padding: 22px;
    background: #f5f7fb;
}

.vehicle-card {
    position: relative;
    margin: 0;
    border: 1px solid #e5eaf1;
    border-left-width: 1px !important;
    border-left-color: #e5eaf1 !important;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.055);
    isolation: isolate;
}
.vehicle-card::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: #94a3b8;
}
.vehicle-card.status-movimento::before { background: #22c55e; }
.vehicle-card.status-ligado::before { background: #0f79b9; }
.vehicle-card.status-expiring::before { background: #f59e0b; }
.vehicle-card.status-vencido::before { background: #dc2626; }
.vehicle-card:hover {
    transform: translateY(-3px);
    border-color: #d5dce7;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
}

.v-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}
.v-card-header {
    padding: 20px 20px 16px;
    align-items: flex-start;
    border-bottom: 1px solid #edf1f6;
    background: #fff;
}
.v-card-title-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.v-card-title-block .mercosul-plate {
    margin: 0 auto !important;
}
.v-card-vehicle-name {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.055em;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
}
.v-card-badges {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}
.v-pill {
    min-height: 27px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.015em;
    line-height: 1;
    white-space: nowrap;
}
.v-pill .v-icon { width: 13px; height: 13px; stroke-width: 2.1; }
.v-pill--online, .v-pill--moving {
    color: #087a54;
    background: #ecfdf5;
    border-color: #b7efd9;
}
.v-pill--on, .v-pill--info {
    color: #075f94;
    background: #eef8ff;
    border-color: #cbe9fa;
}
.v-pill--offline, .v-pill--stopped, .v-pill--muted {
    color: #58677b;
    background: #f4f6f9;
    border-color: #e3e8ef;
}
.v-pill--pending {
    color: #9a5b08;
    background: #fffbeb;
    border-color: #f5d98a;
}
.v-pill--blocked {
    color: #b42318;
    background: #fff1f1;
    border-color: #fecaca;
}

.v-card-body {
    padding: 17px 20px 19px;
    gap: 15px;
}
.v-card-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}
.v-card-meta-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.v-card-meta-item:only-child { grid-column: 1 / -1; }
.v-card-meta-label, .v-speed-label {
    color: #8a98aa;
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.v-card-meta-item strong {
    color: #26364a;
    font-size: 0.79rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
    white-space: normal;
}
.v-card-imei {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.73rem !important;
    letter-spacing: 0.015em;
    word-break: break-all;
}

.v-speed-panel {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    padding: 13px;
    border: 1px solid #e7edf4;
    border-radius: 13px;
    background: linear-gradient(135deg, #fbfcfe 0%, #f6f9fc 100%);
}
.v-speed-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.v-speed-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 11px;
    color: #0f6fa8;
    background: #e9f5fc;
}
.v-speed-icon .v-icon { width: 21px; height: 21px; }
.v-speed-reading {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 2px;
}
.v-speed-reading strong {
    color: #142338;
    font-size: 1.8rem;
    font-weight: 780;
    letter-spacing: -0.04em;
    line-height: 1;
}
.v-speed-reading span {
    color: #718096;
    font-size: 0.67rem;
    font-weight: 750;
    text-transform: uppercase;
}
.v-speed-limit {
    min-width: 84px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    padding: 7px 9px;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    color: #7b8798;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.v-speed-limit:hover {
    transform: translateY(-1px);
    border-color: #b7d9ee;
    box-shadow: 0 5px 12px rgba(15, 111, 168, 0.08);
}
.v-speed-limit .v-icon { width: 14px; height: 14px; }
.v-speed-limit span {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.v-speed-limit strong { font-size: 0.7rem; }
.v-speed-limit.is-active {
    color: #087a54;
    border-color: #b7efd9;
    background: #f0fdf7;
}

.v-card-data {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding-top: 1px;
}
.v-telemetry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
    padding: 11px;
    border: 1px solid #edf1f6;
    border-radius: 12px;
    background: #fcfdff;
}
.v-telemetry-grid--tag { grid-template-columns: 1fr; }
.v-telemetry-grid .v-telemetry-item {
    min-width: 0;
    justify-self: center;
}
.v-expiration {
    min-height: 38px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 11px;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    color: #607086;
    background: #fff;
}
.v-expiration span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.v-expiration .v-icon { width: 15px; height: 15px; }
.v-expiration strong { color: #26364a; font-size: 0.82rem; }
.v-expiration.is-expired {
    color: #b42318;
    border-color: #fecaca;
    background: #fff7f7;
}
.v-expiration.is-expired strong { color: #b42318; }

.v-notification-section {
    padding-top: 13px;
    border-top: 1px solid #edf1f6;
}
.v-notification-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: .055em;
    text-transform: uppercase;
}
.v-notification-title .v-icon { width: 15px; height: 15px; color: #159b55; }
.v-notification-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}
.v-notification-grid label {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 7px 8px;
    border: 1px solid #edf1f6;
    border-radius: 9px;
    color: #536275;
    background: #fafbfd;
    cursor: pointer;
}
.v-notification-grid label > span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    font-size: 0.68rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.v-notification-grid .v-icon { width: 13px; height: 13px; }
.v-notification-grid input {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    accent-color: #0f79b9;
    cursor: pointer;
}

.v-card-footer {
    padding: 0;
    border-top: 1px solid #edf1f6;
    background: #fbfcfe;
}
.v-actions-grid {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    gap: 8px;
    padding: 12px;
}
.v-actions-grid--client { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v-actions-grid--single { grid-template-columns: 1fr; }
.v-actions-grid--admin { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.icon-action-btn {
    min-width: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.icon-action-btn:hover {
    transform: translateY(-2px);
    border-color: currentColor;
    box-shadow: 0 7px 15px rgba(15, 23, 42, 0.07);
}
.icon-action-btn:disabled {
    color: #94a3b8;
    border-color: #e2e8f0;
    background: #f1f5f9;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.75;
    transform: none;
}
.icon-action-btn .v-icon { width: 17px; height: 17px; }
.v-action-label {
    overflow: hidden;
    font-size: 0.66rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.v-actions-grid--admin .v-action-label { display: none; }
.icon-action-btn--indigo { color: #4f46e5; background: #f1f0ff; border-color: #dedbff; }
.icon-action-btn--neutral { color: #59677a; background: #f4f6f8; border-color: #e4e9ef; }
.icon-action-btn--green { color: #087a54; background: #ecfdf5; border-color: #c5f0de; }
.icon-action-btn--violet { color: #7c3aed; background: #f6f1ff; border-color: #e8dcff; }
.icon-action-btn--orange { color: #c4510d; background: #fff5eb; border-color: #fed7aa; }
.icon-action-btn--blue { color: #0b6fa9; background: #eef8ff; border-color: #cbe9fa; }
.icon-action-btn--teal { color: #0f766e; background: #effcf9; border-color: #c6eee8; }
.icon-action-btn.is-active { color: #9a5b08; background: #fffbeb; border-color: #f5d98a; }

.v-card-alert-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    color: #b42318;
    border-bottom: 1px solid #fecaca;
    background: #fff1f1;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-align: center;
    text-transform: uppercase;
}
.v-card-alert-banner .v-icon { width: 15px; height: 15px; }
.v-card-empty-note {
    padding: 16px 18px;
    color: #718096;
    border-top: 1px solid #edf1f6;
    background: #fbfcfe;
    font-size: 0.79rem;
    line-height: 1.45;
    text-align: center;
}
.v-card-empty-note strong { color: #26364a; }
.v-card-cta { padding: 12px 16px 16px; background: #fff; }
.v-primary-card-action {
    width: 100%;
    min-height: 41px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    font-size: 0.77rem;
    font-weight: 780;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.v-primary-card-action:hover { transform: translateY(-1px); }
.v-primary-card-action--blue {
    background: #0f6fa8;
    box-shadow: 0 7px 16px rgba(15, 111, 168, .18);
}
.v-primary-card-action--orange {
    background: #e76616;
    box-shadow: 0 7px 16px rgba(231, 102, 22, .18);
}

/* Na tabela, as ações continuam compactas. */
.action-btn-group .v-actions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
    padding: 0;
}
.action-btn-group .icon-action-btn {
    width: 34px;
    min-height: 34px;
    padding: 6px;
}
.action-btn-group .v-action-label { display: none; }

@media (max-width: 768px) {
    .vehicles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 14px;
        padding: 14px;
    }
    .v-card-header {
        flex-direction: row;
        padding: 18px 16px 14px;
    }
    .v-card-body { padding: 15px 16px 17px; }
}

@media (max-width: 480px) {
    .vehicles-grid {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 12px;
    }
    .vehicle-card { border-radius: 15px; }
    .v-card-header {
        flex-direction: row;
        padding: 17px 14px 13px;
    }
    .v-card-body {
        padding: 14px;
        gap: 13px;
    }
    .v-card-meta { gap: 8px; }
    .v-speed-panel { padding: 11px; }
    .v-speed-reading strong { font-size: 1.65rem; }
    .v-notification-grid { grid-template-columns: 1fr 1fr; }
    .v-actions-grid--admin { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Responsividade para tabela em telas pequenas */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #tblVehicles {
        min-width: 800px;
    }
    
    #tblVehicles th,
    #tblVehicles td {
        padding: 12px 16px;
        font-size: 0.8rem;
    }
    
    #tblVehicles th:nth-child(1),
    #tblVehicles td:nth-child(1) {
        width: 100px;
    }
    
    #tblVehicles th:nth-child(2),
    #tblVehicles td:nth-child(2) {
        min-width: 100px;
    }
    
    #tblVehicles th:nth-child(3),
    #tblVehicles td:nth-child(3) {
        min-width: 120px;
    }
    
    #tblVehicles th:nth-child(4),
    #tblVehicles td:nth-child(4) {
        min-width: 150px;
    }
    
    #tblVehicles th:nth-child(5),
    #tblVehicles td:nth-child(5) {
        min-width: 120px;
    }
    
    #tblVehicles th:nth-child(6),
    #tblVehicles td:nth-child(6) {
        min-width: 160px;
    }
    
    #tblVehicles th:nth-child(7),
    #tblVehicles td:nth-child(7) {
        min-width: 80px;
    }
    
    #tblVehicles th:nth-child(8),
    #tblVehicles td:nth-child(8) {
        min-width: 100px;
    }
    
    #tblVehicles th:nth-child(9),
    #tblVehicles td:nth-child(9) {
        min-width: 100px;
    }
    
    #tblVehicles th:nth-child(10),
    #tblVehicles td:nth-child(10) {
        min-width: 100px;
    }
    
    #tblVehicles th:nth-child(11),
    #tblVehicles td:nth-child(11) {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    #tblVehicles th,
    #tblVehicles td {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    #tblVehicles th:nth-child(1),
    #tblVehicles td:nth-child(1) {
        width: 80px;
    }
    
    .action-btn-group {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .action-btn {
        width: 26px;
        height: 26px;
    }
    
    .action-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Status Toggle Switch (Disjuntor) */
.status-toggle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
}
.status-switch {
  position: relative;
  display: block;
  width: 60px;
  height: 30px;
  background: #cbd5e1;
  border-radius: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  user-select: none;
  border: 1px solid #94a3b8;
}
.status-switch .status-handle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}
#ed-status:checked + .status-switch, #v-status:checked + .status-switch {
  background: #10b981;
  border-color: #059669;
}
#ed-status:checked + .status-switch .status-handle, #v-status:checked + .status-switch .status-handle {
  transform: translateX(30px);
}
.status-labels-under {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.6rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#ed-status:checked ~ .status-labels-under .label-on, #v-status:checked ~ .status-labels-under .label-on {
  color: #10b981;
  opacity: 1;
}
#ed-status:not(:checked) ~ .status-labels-under .label-off, #v-status:not(:checked) ~ .status-labels-under .label-off {
  color: #ef4444;
  opacity: 1;
}
#ed-status:checked ~ .status-labels-under .label-off, #v-status:checked ~ .status-labels-under .label-off,
#ed-status:not(:checked) ~ .status-labels-under .label-on, #v-status:not(:checked) ~ .status-labels-under .label-on {
  opacity: 0.4;
}
