/* VehicleDetailTabs — minimal, sits on top of existing garage page styles */
.vdt {
    width: 100%;
    /* Breathing room from whatever sits above (vehicle hero card) */
    margin-top: 1.5rem;
}
.vdt-tabbar {
    display: flex;
    gap: 0.35rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.vdt-tabbar::-webkit-scrollbar { display: none; }
.vdt-tab {
    flex: 0 0 auto;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #94a3b8;
    padding: 0.5rem 1.1rem;
    font-size: 0.88rem;
    line-height: 1.2;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.vdt-tab:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
}
.vdt-tab.is-active {
    background: rgba(34, 211, 166, 0.08);
    border-color: rgba(34, 211, 166, 0.30);
    color: #22d3a6;
}
.vdt-body { min-height: 200px; }
.vdt-empty {
    text-align: center;
    color: #64748b;
    padding: 3rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    /* Keep the row swipeable; never squeeze the active pill so its label clips. */
    .vdt-tabbar {
        gap: 0.4rem;
        -webkit-overflow-scrolling: touch;
    }
    .vdt-tab {
        padding: 0.5rem 0.95rem;
        font-size: 0.85rem;
        line-height: 1.25;
    }
}

/* === Tab body content shared === */
.vdt-tabbody-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #94a3b8;
}
.vdt-tabbody-empty h3 {
    color: #fff;
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
}
.vdt-tabbody-empty p {
    font-size: 0.9rem;
    margin: 0 0 1.2rem;
}

/* === Service tab === */
.vdt-service { padding: 0.5rem 0; }
.vdt-service__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.vdt-service__head h3 {
    color: #fff;
    font-size: 1.05rem;
    margin: 0;
}
.vdt-service__list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.service-row {
    display: grid;
    grid-template-columns: 110px 1fr 90px;
    gap: 0.85rem;
    align-items: center;
    background: #0e1b30;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
}
.service-row__date { color: #94a3b8; font-size: 0.82rem; }
.service-row__title { color: #fff; font-size: 0.9rem; }
.service-row__cost { color: #22d3a6; font-size: 0.85rem; text-align: right; font-weight: 600; }

/* === Reminders tab === */
.vdt-reminders { padding: 0.5rem 0; }
.vdt-reminders__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.vdt-reminders__head h3 {
    color: #fff;
    font-size: 1.05rem;
    margin: 0;
}
.vdt-reminders__actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.vdt-reminders__cal-link {
    color: #22d3a6;
    font-size: 0.85rem;
    text-decoration: none;
}
.vdt-reminders__cal-link:hover { text-decoration: underline; }
.vdt-reminders__list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.reminder-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    background: #0e1b30;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
}
.reminder-row--recall { border-left: 3px solid #ef4444; }
.reminder-row__title { color: #fff; font-size: 0.9rem; }
.reminder-row__due { color: #94a3b8; font-size: 0.82rem; }

/* === Parts tab === */
.vdt-parts { padding: 0.5rem 0; }
.vdt-parts__loading {
    text-align: center;
    color: #64748b;
    padding: 2rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .service-row {
        grid-template-columns: 90px 1fr;
        grid-template-rows: auto auto;
    }
    .service-row__cost {
        grid-column: 2;
        text-align: left;
    }
    .vdt-reminders__head {
        flex-direction: column;
        align-items: stretch;
    }
}
