/* ==========================================================================
   Lease — Owner Dashboard
   All state distinctions (pending/active/completed etc.) are expressed only
   through border-weight, background, and text-weight shifts using the
   theme's existing --vp-* tokens — no colour-coding, matching the rest of
   the theme's monochrome system.
   ========================================================================== */

.vp-lodash-page { padding: 40px 0 60px; }
.vp-lodash-shell { display: block; }

/* ── Header ───────────────────────────────────────────────────────────── */
.vp-lodash-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
}
.vp-lodash-title { font-size: 24px; color: var(--vp-white); margin: 0; font-weight: 600; }
.vp-lodash-subtitle { font-size: 12px; color: var(--vp-text-faint); margin: 3px 0 0; font-family: var(--vp-font-mono); }
.vp-lodash-badge {
    padding: 5px 10px;
    border: 1px solid var(--vp-white);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--vp-white);
    font-family: var(--vp-font-mono);
    white-space: nowrap;
}

/* ── Offline / loading / error states ────────────────────────────────────── */
.vp-lodash-offline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    margin-bottom: 16px;
    border: 1px solid var(--vp-line-strong);
    border-radius: 3px;
    background: var(--vp-surface);
    color: var(--vp-text-dim);
    font-size: 12px;
}
.vp-lodash-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 80px 0;
    color: var(--vp-text-faint);
    font-size: 13px;
    font-family: var(--vp-font-mono);
}
.vp-lodash-error {
    text-align: center;
    padding: 80px 20px;
}
.vp-lodash-error p { color: var(--vp-text-dim); font-size: 13px; margin: 0 0 18px; }

/* ── Earnings card ─────────────────────────────────────────────────────── */
.vp-lodash-earnings {
    border: 1px solid var(--vp-line-strong);
    border-radius: 3px;
    background: var(--vp-surface);
    padding: 20px;
    margin-bottom: 16px;
}
.vp-lodash-earnings__eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.vp-lodash-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--vp-white); }
.vp-lodash-earnings__eyebrow span:last-child {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--vp-text-dim);
    font-family: var(--vp-font-mono);
}
.vp-lodash-earnings__row { display: flex; align-items: center; }
.vp-lodash-earnings__row > div { flex: 1; }
.vp-lodash-earnings__divider { width: 1px; height: 40px; background: var(--vp-line); margin: 0 16px; }
.vp-lodash-earnings__label { display: block; font-size: 10px; color: var(--vp-text-faint); letter-spacing: 0.5px; margin-bottom: 4px; }
.vp-lodash-earnings__amount { display: block; font-size: 22px; color: var(--vp-white); font-weight: 700; letter-spacing: -0.5px; }
.vp-lodash-earnings__amount--sub { font-size: 16px; color: var(--vp-text-dim); }
.vp-lodash-earnings__stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--vp-line);
}
.vp-lodash-ministat { display: flex; flex-direction: column; }
.vp-lodash-ministat strong { color: var(--vp-white); font-size: 15px; font-weight: 700; }
.vp-lodash-ministat span { color: var(--vp-text-faint); font-size: 9px; margin-top: 2px; }

/* ── Quick actions ─────────────────────────────────────────────────────── */
.vp-lodash-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 26px;
}
.vp-lodash-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 6px;
    border: 1px solid var(--vp-line);
    border-radius: 3px;
    background: var(--vp-surface);
    color: var(--vp-text-dim);
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s var(--vp-ease), color 0.2s var(--vp-ease);
}
.vp-lodash-action:hover { border-color: var(--vp-line-strong); color: var(--vp-white); }
.vp-lodash-action__icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--vp-line);
    border-radius: 3px;
    font-size: 15px;
    color: var(--vp-text-dim);
}
@media (max-width: 640px) {
    .vp-lodash-actions { grid-template-columns: repeat(2, 1fr); }
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.vp-lodash-section { margin-bottom: 26px; }
.vp-lodash-section__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.vp-lodash-section__head h2 { font-size: 15px; color: var(--vp-white); margin: 0; font-weight: 600; }
.vp-lodash-count {
    padding: 2px 8px;
    border: 1px solid var(--vp-line-strong);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--vp-text-dim);
    font-family: var(--vp-font-mono);
}
.vp-lodash-viewall {
    display: block;
    text-align: center;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid var(--vp-line);
    border-radius: 3px;
    color: var(--vp-text-dim);
    font-size: 12px;
    text-decoration: none;
}
.vp-lodash-viewall:hover { border-color: var(--vp-line-strong); color: var(--vp-white); }
.vp-lodash-empty {
    padding: 26px 20px;
    text-align: center;
    border: 1px dashed var(--vp-line-strong);
    border-radius: 3px;
    background: var(--vp-surface);
}
.vp-lodash-empty p:first-child { color: var(--vp-text-dim); font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.vp-lodash-empty p:last-child { color: var(--vp-text-faint); font-size: 11px; margin: 0; line-height: 1.4; }
.vp-lodash-empty a {
    display: inline-block;
    margin-top: 12px;
    padding: 7px 18px;
    border: 1px solid var(--vp-white);
    border-radius: 3px;
    color: var(--vp-white);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

/* ── Booking cards ─────────────────────────────────────────────────────── */
.vp-lodash-booking {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-bottom: 8px;
    border: 1px solid var(--vp-line);
    border-radius: 3px;
    background: var(--vp-surface);
    text-decoration: none;
    transition: border-color 0.2s var(--vp-ease);
}
.vp-lodash-booking:hover { border-color: var(--vp-line-strong); }
/* Pending requests get the strongest emphasis available in this system */
.vp-lodash-booking[data-state="request_pending"] { border: 1.5px solid var(--vp-white); }
.vp-lodash-booking[data-state="active"],
.vp-lodash-booking[data-state="confirmed"] { border-color: var(--vp-line-strong); }
.vp-lodash-booking[data-state="cancelled"],
.vp-lodash-booking[data-state="completed"] { opacity: 0.7; }
.vp-lodash-booking__body { flex: 1; min-width: 0; }
.vp-lodash-booking__vehicle {
    color: var(--vp-white);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vp-lodash-booking__meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.vp-lodash-pill {
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid var(--vp-line-strong);
    font-size: 9px;
    font-weight: 700;
    color: var(--vp-text-dim);
    font-family: var(--vp-font-mono);
    text-transform: uppercase;
}
.vp-lodash-booking[data-state="request_pending"] .vp-lodash-pill--state { border-color: var(--vp-white); color: var(--vp-white); }
.vp-lodash-booking__dates { color: var(--vp-text-faint); font-size: 10px; margin-top: 3px; }
.vp-lodash-booking__side { text-align: right; flex-shrink: 0; }
.vp-lodash-booking__id { color: var(--vp-text-faint); font-size: 9px; font-family: var(--vp-font-mono); }
.vp-lodash-booking__cta {
    display: inline-block;
    margin-top: 4px;
    padding: 5px 10px;
    border: 1px solid var(--vp-line-strong);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    color: var(--vp-text-dim);
    white-space: nowrap;
}
.vp-lodash-booking[data-state="request_pending"] .vp-lodash-booking__cta { border-color: var(--vp-white); color: var(--vp-white); }

/* ── Vehicle cards ─────────────────────────────────────────────────────── */
.vp-lodash-vehicle {
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--vp-line);
    border-radius: 3px;
    background: var(--vp-surface);
}
.vp-lodash-vehicle[data-attention="true"] { border-color: var(--vp-line-strong); }
.vp-lodash-vehicle__top { display: flex; align-items: center; gap: 12px; }
.vp-lodash-vehicle__thumb {
    width: 44px; height: 44px;
    border-radius: 3px;
    background: var(--vp-surface-raised);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid var(--vp-line);
}
.vp-lodash-vehicle__name { color: var(--vp-white); font-size: 14px; font-weight: 600; }
.vp-lodash-vehicle__year { color: var(--vp-text-faint); font-size: 10px; margin-top: 2px; }
.vp-lodash-vehicle__badges { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.vp-lodash-vehicle__divider { height: 1px; background: var(--vp-line); margin: 10px 0; }
.vp-lodash-vehicle__health { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.vp-lodash-health { display: flex; flex-direction: column; }
.vp-lodash-health span:first-child { color: var(--vp-text-faint); font-size: 9px; }
.vp-lodash-health span:last-child { color: var(--vp-text); font-size: 11px; font-weight: 700; margin-top: 1px; }
.vp-lodash-vehicle__manage {
    margin-left: auto;
    padding: 6px 12px;
    border: 1px solid var(--vp-line-strong);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    color: var(--vp-text-dim);
    text-decoration: none;
}
.vp-lodash-vehicle__row {
    width: 100%;
    margin-top: 10px;
    padding: 9px;
    text-align: center;
    border: 1px solid var(--vp-line-strong);
    border-radius: 3px;
    background: none;
    color: var(--vp-text-dim);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
    font-family: inherit;
}
.vp-lodash-vehicle__row:hover { border-color: var(--vp-white); color: var(--vp-white); }
.vp-lodash-vehicle__row[data-active="true"] { border-color: var(--vp-white); color: var(--vp-white); }

@media (max-width: 640px) {
    .vp-lodash-earnings__row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .vp-lodash-earnings__divider { display: none; }
}
