/* ==========================================================================
   Lease — My Vehicles
   Reuses .vp-lodash-offline / .vp-lodash-loading / .vp-lodash-error from
   lease-dashboard.css (enqueued as a dependency) plus .vp-icon-btn from
   app.css. New classes below are scoped to this page's vehicle-card list.
   Monochrome only — no colours beyond the theme's existing --vp-* tokens.
   ========================================================================== */

.vp-lmv-page { padding: 40px 0 80px; }

.vp-lmv-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.vp-lmv-header > div { flex: 1; }
.vp-lmv-title { font-size: 20px; color: var(--vp-white); margin: 0; font-weight: 600; }
.vp-lmv-subtitle {
    font-size: 12px;
    color: var(--vp-text-faint);
    margin: 2px 0 0;
    font-family: var(--vp-font-mono);
}

.vp-lmv-offline .vp-link-btn,
.vp-lodash-offline .vp-link-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--vp-white);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    padding: 0;
}

/* ── Empty state ──────────────────────────────────────────────────────── */
.vp-lmv-empty {
    max-width: 380px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px;
}
.vp-lmv-empty__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--vp-line-strong);
    border-radius: 50%;
    color: var(--vp-white);
    background: var(--vp-surface-raised);
}
.vp-lmv-empty h2 { color: var(--vp-white); font-size: 17px; margin: 0 0 8px; }
.vp-lmv-empty p {
    color: var(--vp-text-dim);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 22px;
}

/* ── List / card ──────────────────────────────────────────────────────── */
.vp-lmv-list { display: flex; flex-direction: column; gap: 14px; }
.vp-lmv-card {
    border: 1px solid var(--vp-line);
    border-radius: 3px;
    background: var(--vp-surface);
    overflow: hidden;
}
.vp-lmv-card[data-attention="true"] { border-color: var(--vp-line-strong); }
.vp-lmv-card__top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
}
.vp-lmv-card__thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 3px;
    border: 1px solid var(--vp-line);
    background: var(--vp-surface-raised);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vp-text-faint);
}
.vp-lmv-card__info { flex: 1; min-width: 0; }
.vp-lmv-card__name {
    color: var(--vp-white);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vp-lmv-card__meta {
    color: var(--vp-text-faint);
    font-size: 11px;
    margin-top: 2px;
}
.vp-lmv-card__meta span + span {
    margin-left: 8px;
    color: var(--vp-text-dim);
    font-weight: 600;
}
.vp-lmv-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

/* ── Active toggle switch ─────────────────────────────────────────────── */
.vp-lmv-card__toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.vp-lmv-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    border: none;
    padding: 0;
    cursor: pointer;
    background: none;
}
.vp-lmv-toggle span {
    position: absolute;
    inset: 0;
    background: var(--vp-line-strong);
    border-radius: 12px;
    transition: 0.2s var(--vp-ease);
}
.vp-lmv-toggle span::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: var(--vp-text);
    border-radius: 50%;
    transition: 0.2s var(--vp-ease);
}
.vp-lmv-toggle[data-active="true"] span { background: var(--vp-white); }
.vp-lmv-toggle[data-active="true"] span::before {
    transform: translateX(18px);
    background: var(--vp-bg);
}
.vp-lmv-toggle[disabled] { opacity: 0.5; cursor: default; }
.vp-lmv-card__toggle-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--vp-text-faint);
}
.vp-lmv-card__toggle-label[data-active="true"] { color: var(--vp-white); }

.vp-lmv-card__divider { height: 1px; background: var(--vp-line); }
.vp-lmv-card__stats {
    display: flex;
    gap: 16px;
    padding: 10px 16px;
    flex-wrap: wrap;
}

.vp-lmv-warning {
    margin: 0 16px 12px;
    padding: 8px 12px;
    border: 1px solid var(--vp-line-strong);
    border-radius: 3px;
    background: var(--vp-surface-raised);
    color: var(--vp-text-dim);
    font-size: 11px;
    line-height: 1.4;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.vp-lmv-warning svg { flex-shrink: 0; margin-top: 1px; }

.vp-lmv-card__actions { padding: 12px 16px 16px; }
.vp-lmv-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}
.vp-lmv-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 9px 4px;
    border: 1px solid var(--vp-line);
    border-radius: 3px;
    background: none;
    color: var(--vp-text-dim);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
.vp-lmv-action-btn:hover {
    border-color: var(--vp-line-strong);
    color: var(--vp-white);
}
.vp-lmv-full-btn {
    display: block;
    width: 100%;
    padding: 9px;
    margin-top: 8px;
    text-align: center;
    border: 1px solid var(--vp-line-strong);
    border-radius: 3px;
    color: var(--vp-text-dim);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
}
.vp-lmv-full-btn:hover {
    border-color: var(--vp-white);
    color: var(--vp-white);
}

/* ── Floating add-vehicle button ─────────────────────────────────────────── */
.vp-lmv-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--vp-white);
    color: var(--vp-bg);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    z-index: 60;
}

@media (max-width: 640px) {
    .vp-lmv-action-grid { grid-template-columns: repeat(2, 1fr); }
    .vp-lmv-fab span { display: none; }
    .vp-lmv-fab { padding: 14px; border-radius: 50%; }
}
