/* ── Vehicle Flow Page (Intake-to-Listing Wizard) ── */

/* Page wrapper */
.vehicle-flow-page {
    padding-bottom: 56px;
}

/* ── Home stage-filter pills in subheader ── */
.vf-stage-pills {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* ── Home multi-select (vehicle type) ── */
.vf-multiselect {
    position: relative;
    display: inline-block;
}
.vf-multiselect__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    cursor: pointer;
}
.vf-multiselect--active .vf-multiselect__btn {
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}
.vf-multiselect__label {
    white-space: nowrap;
}
.vf-multiselect__menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: var(--z-dropdown);
    min-width: 180px;
    padding: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vf-multiselect__menu[hidden] { display: none; }
.vf-multiselect__opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    user-select: none;
}
.vf-multiselect__opt:hover { background: var(--bg-hover); }
.vf-multiselect__opt input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--accent);
    cursor: pointer;
    margin: 0;
}
.vf-multiselect__opt--all { font-weight: 600; }
.vf-multiselect__sep {
    height: 1px;
    background: var(--border);
    margin: 4px 2px;
}

/* ── Home filter/sort selects in subheader ── */
.vf-filter-select {
    height: 32px;
    padding: 0 28px 0 10px;
    font-size: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.vf-filter-select:hover { border-color: var(--accent); }
.vf-filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}
/* Sort select: distinct icon (up/down arrows) + left padding for icon */
.vf-filter-select--sort {
    padding-left: 30px;
    font-weight: 600;
    color: var(--accent);
    border-color: rgba(16, 185, 129, 0.35);
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6h13M3 12h9M3 18h5M17 8v13M17 21l4-4M17 21l-4-4'/></svg>"),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat, no-repeat;
    background-position: left 10px center, right 10px center;
}
.vf-filter-select--sort:hover { border-color: var(--accent); }

/* ═══ STEP 1: Check In — sectioned layout ═══ */
.vehicle-flow-page.vf-fullheight-checkin {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 112px);
    padding-bottom: 0;
}
.vehicle-flow-page.vf-fullheight-checkin .vf-panel[data-panel="1"] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.vehicle-flow-page.vf-fullheight-checkin .vf-panel { min-height: 0; }

.vf-checkin {
    display: flex;
    flex: 1;
    min-height: 0;
    background: var(--bg-base, #f6f7f9);
    border-top: 1px solid var(--border);
}

/* Left nav */
.vf-ci-nav {
    width: 240px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.vf-ci-nav__vehicle {
    padding: 14px 14px 12px;
    border-bottom: 1px solid var(--border);
}
.vf-ci-thumb {
    position: relative;
    width: 100%;
    height: 100px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vf-ci-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vf-ci-thumb__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.vf-ci-thumb__placeholder svg {
    width: 44px;
    height: 44px;
    opacity: 0.5;
}
.vf-ci-thumb__upload {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: background 0.12s;
}
.vf-ci-thumb__upload:hover { background: rgba(0,0,0,0.82); }
.vf-ci-thumb.vf-ci-thumb--has-img .vf-ci-thumb__placeholder { display: none; }

.vf-ci-nav__vname {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vf-ci-nav__vvin {
    font-size: 10px;
    font-family: var(--font-mono, "Courier New", monospace);
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vf-ci-nav__chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.vf-ci-chip {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid;
}
.vf-ci-chip--green { background: rgba(16,185,129,0.08); color: #15803d; border-color: rgba(16,185,129,0.3); }
.vf-ci-chip--blue { background: rgba(37,99,235,0.08); color: #1d4ed8; border-color: rgba(37,99,235,0.3); }
.vf-ci-chip--gray { background: var(--bg-hover); color: var(--text-muted); border-color: var(--border); }

.vf-ci-nav__list {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
}
.vf-ci-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.12s, border-color 0.12s;
}
.vf-ci-nav-item:hover { background: var(--bg-hover); }
.vf-ci-nav-item--active {
    background: rgba(37,99,235,0.06);
    border-left-color: #2563eb;
}
.vf-ci-nav-item--active .vf-ci-nav-item__label { color: #1d4ed8; font-weight: 600; }
.vf-ci-nav-item--active .vf-ci-nav-item__num {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.vf-ci-nav-item--done { border-left-color: #16a34a; }
.vf-ci-nav-item--done .vf-ci-nav-item__num {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
.vf-ci-nav-item--done .vf-ci-nav-item__label { color: #15803d; }
.vf-ci-nav-item__num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.2s;
}
.vf-ci-nav-item__label {
    font-size: 13px;
    color: var(--text);
    line-height: 1.2;
}
.vf-ci-nav-item__sub {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}
.vf-ci-nav-item__sub--warn { color: #f59e0b; }
.vf-ci-nav-item__sub--ok { color: #16a34a; }

.vf-ci-nav__footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.vf-ci-prog {
    height: 4px;
    background: var(--bg-hover);
    border-radius: 2px;
    margin-bottom: 6px;
    overflow: hidden;
}
.vf-ci-prog__bar {
    height: 100%;
    background: #2563eb;
    border-radius: 2px;
    transition: width 0.4s;
}
.vf-ci-prog__label {
    font-size: 11px;
    color: var(--text-muted);
}

/* Main scroll area */
.vf-ci-main {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    scroll-behavior: smooth;
    min-width: 0;
}

.vf-ci-sec-wrap {
    margin-bottom: 16px;
    scroll-margin-top: 20px;
}
.vf-ci-sec-wrap:last-child { margin-bottom: 0; }

.vf-ci-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.vf-ci-card--focused {
    border-color: rgba(37,99,235,0.4);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.07);
}
.vf-ci-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--bg-hover);
}
.vf-ci-card__title-wrap { flex: 1; min-width: 0; }
.vf-ci-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.vf-ci-card__sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.vf-ci-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.2s;
}
.vf-ci-num--active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.vf-ci-num--done {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
.vf-ci-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 4px;
    border: 1px solid;
}
.vf-ci-badge--req { background: rgba(239,68,68,0.06); color: #dc2626; border-color: rgba(239,68,68,0.25); }
.vf-ci-badge--opt { background: var(--bg-hover); color: var(--text-muted); border-color: var(--border); }
.vf-ci-badge--done { background: rgba(16,185,129,0.08); color: #15803d; border-color: rgba(16,185,129,0.3); }

.vf-ci-card__body { padding: 20px; }

/* Rows + fields */
.vf-ci-row {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}
.vf-ci-row:last-child { margin-bottom: 0; }
.vf-ci-row--2 { grid-template-columns: 1fr 1fr; }
.vf-ci-row--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 820px) {
    .vf-ci-row--3, .vf-ci-row--2 { grid-template-columns: 1fr; }
}
.vf-ci-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}
.vf-ci-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.vf-ci-req { color: #ef4444; margin-left: 2px; }
.vf-ci-sublabel {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.vf-ci-sublabel__hint {
    font-weight: 400;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
    opacity: 0.7;
}
.vf-ci-divider {
    height: 1px;
    background: var(--bg-hover);
    margin: 16px 0;
}

.vf-ci-card__body input[type="text"],
.vf-ci-card__body input[type="number"],
.vf-ci-card__body input[type="date"],
.vf-ci-card__body select,
.vf-ci-card__body textarea {
    width: 100%;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 0 11px;
    font-size: 13px;
    color: var(--text);
    background: var(--bg-hover);
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.vf-ci-card__body textarea {
    height: auto;
    min-height: 86px;
    padding: 9px 11px;
    resize: vertical;
}
.vf-ci-card__body input:focus,
.vf-ci-card__body select:focus,
.vf-ci-card__body textarea:focus {
    border-color: #2563eb;
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.vf-ci-card__body input.vf-ci-decoded {
    background: rgba(37,99,235,0.06);
    border-color: rgba(37,99,235,0.3);
    color: #1d4ed8;
}

/* VIN input + scan */
.vf-ci-scan-btn {
    width: 100%;
    height: 40px;
    border: 1.5px dashed rgba(37,99,235,0.4);
    border-radius: 8px;
    background: rgba(37,99,235,0.04);
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 14px;
    transition: all 0.15s;
}
.vf-ci-scan-btn:hover {
    background: rgba(37,99,235,0.08);
    border-color: #2563eb;
    border-style: solid;
}
.vf-ci-vin-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}
.vf-ci-vin-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}
.vf-ci-vin-in {
    width: 100%;
    height: 46px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 8px !important;
    padding: 0 60px 0 13px !important;
    font-size: 15px !important;
    font-family: var(--font-mono, "Courier New", monospace) !important;
    letter-spacing: 0.08em !important;
    background: var(--bg-hover) !important;
    color: var(--text) !important;
}
.vf-ci-vin-in.vf-ci-vin-in--valid {
    border-color: #16a34a !important;
    background: rgba(16,185,129,0.06) !important;
}
.vf-ci-vin-len {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono, "Courier New", monospace);
    pointer-events: none;
}
.vf-ci-vin-decode-btn {
    height: 46px;
    padding: 0 18px;
    border: 1.5px solid #2563eb;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s;
    font-family: inherit;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.vf-ci-vin-decode-btn:hover { background: #1d4ed8; }
.vf-ci-vin-decode-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.vf-ci-vin-decode-btn--success {
    background: #16a34a;
    border-color: #16a34a;
}
.vf-ci-vin-decode-btn--success:hover { background: #15803d; }
.vf-ci-vin-decode-btn--loading {
    background: #64748b;
    border-color: #64748b;
}

/* Custom color picker with swatches */
.vf-ci-color {
    position: relative;
    width: 100%;
}
.vf-ci-color__btn {
    width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 11px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.vf-ci-color__btn:hover { border-color: var(--text-muted); }
.vf-ci-color__btn:focus {
    outline: none;
    border-color: #2563eb;
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.vf-ci-color__swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    flex-shrink: 0;
}
.vf-ci-color__label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}
.vf-ci-color__chev {
    flex-shrink: 0;
    color: var(--text-muted);
}
.vf-ci-color__menu {
    position: fixed;
    z-index: var(--z-modal, 400);
    max-height: 360px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.2));
    padding: 4px 0;
}
.vf-ci-color__menu[hidden] { display: none; }
.vf-ci-color__group-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 12px 4px;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--bg-hover);
}
.vf-ci-color__opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 13px;
    color: var(--text);
}
.vf-ci-color__opt:hover { background: var(--bg-hover); }
.vf-ci-color__opt--selected {
    background: rgba(37,99,235,0.08);
    color: #1d4ed8;
    font-weight: 600;
}
.vf-ci-color__opt-swatch {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    border: 1px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
}
.vf-ci-color__opt-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vf-ci-color__opt-code {
    font-family: var(--font-mono, "Courier New", monospace);
    font-size: 10px;
    color: var(--text-muted);
    padding: 2px 6px;
    background: var(--bg-hover);
    border-radius: 3px;
    flex-shrink: 0;
}
.vf-ci-color__opt--selected .vf-ci-color__opt-code {
    background: rgba(37,99,235,0.15);
    color: #1d4ed8;
}

/* Generic combobox (trim/engine/transmission) */
.vf-ci-combo {
    position: relative;
    width: 100%;
}
.vf-ci-combo__btn {
    width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.vf-ci-combo__btn:hover { border-color: var(--text-muted); }
.vf-ci-combo__btn:focus {
    outline: none;
    border-color: #2563eb;
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.vf-ci-combo__label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    color: var(--text-muted);
}
.vf-ci-combo__label--set { font-weight: 600; color: var(--text); }
.vf-ci-combo__chev { flex-shrink: 0; color: var(--text-muted); }

.vf-ci-combo__menu {
    position: fixed;
    z-index: var(--z-modal, 400);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.2));
    display: flex;
    flex-direction: column;
    max-height: 340px;
}
.vf-ci-combo__menu[hidden] { display: none; }
.vf-ci-combo__search {
    height: 38px !important;
    width: 100%;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    background: var(--bg-card) !important;
    color: var(--text) !important;
    font-family: inherit;
    outline: none !important;
    box-shadow: none !important;
    flex-shrink: 0;
}
.vf-ci-combo__list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}
.vf-ci-combo__opt {
    display: block;
    width: 100%;
    padding: 9px 14px;
    border: none;
    background: none;
    text-align: left;
    font-family: inherit;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
}
.vf-ci-combo__opt:hover { background: var(--bg-hover); }
.vf-ci-combo__opt--selected {
    background: rgba(37,99,235,0.08);
    color: #1d4ed8;
    font-weight: 600;
}
.vf-ci-combo__group-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 14px 4px;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--bg-hover);
}
.vf-ci-combo__custom {
    padding: 9px 14px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-hover);
    cursor: pointer;
    border-radius: 0 0 8px 8px;
    flex-shrink: 0;
}
.vf-ci-combo__custom:hover { background: rgba(37,99,235,0.08); color: #1d4ed8; }
.vf-ci-combo__empty {
    padding: 14px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* Body Style picker with outline icons */
.vf-ci-body {
    position: relative;
    width: 100%;
}
.vf-ci-body__btn {
    width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 11px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.vf-ci-body__btn:hover { border-color: var(--text-muted); }
.vf-ci-body__btn:focus {
    outline: none;
    border-color: #2563eb;
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.vf-ci-body__icon {
    width: 44px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    flex-shrink: 0;
}
.vf-ci-body__icon svg { width: 100%; height: 100%; display: block; }
.vf-ci-body__label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}
.vf-ci-body__chev {
    flex-shrink: 0;
    color: var(--text-muted);
}
.vf-ci-body__menu {
    position: fixed;
    z-index: var(--z-modal, 400);
    max-height: 380px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.2));
    padding: 6px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.vf-ci-body__menu[hidden] { display: none; }
.vf-ci-body__opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    cursor: pointer;
    border: 1px solid transparent;
    background: var(--bg-hover);
    border-radius: 7px;
    font-family: inherit;
    font-size: 12px;
    color: var(--text);
    text-align: center;
    transition: all 0.12s;
}
.vf-ci-body__opt:hover {
    background: var(--bg-card);
    border-color: var(--border);
}
.vf-ci-body__opt--selected {
    background: rgba(37,99,235,0.08);
    border-color: rgba(37,99,235,0.35);
    color: #1d4ed8;
    font-weight: 600;
}
.vf-ci-body__opt-icon {
    width: 72px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    opacity: 0.75;
}
.vf-ci-body__opt--selected .vf-ci-body__opt-icon {
    color: #1d4ed8;
    opacity: 1;
}
.vf-ci-body__opt-icon svg { width: 100%; height: 100%; display: block; }
.vf-ci-body__opt-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Investment total */
.vf-ci-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding: 12px 16px;
    background: rgba(37,99,235,0.06);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 8px;
}
.vf-ci-total__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.vf-ci-total__value {
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
    font-family: var(--font-mono, "Courier New", monospace);
}

/* Big inputs */
.vf-ci-big { position: relative; }
.vf-ci-big__in {
    height: 46px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    padding: 0 40px 0 13px !important;
}
.vf-ci-big__in--dollar { padding-left: 24px !important; }
.vf-ci-big__prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    z-index: 1;
    pointer-events: none;
}
.vf-ci-big__suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    pointer-events: none;
}

/* Status button grids */
.vf-ci-sbtns {
    display: grid;
    gap: 7px;
}
.vf-ci-sbtns--2 { grid-template-columns: 1fr 1fr; }
.vf-ci-sbtns--3 { grid-template-columns: 1fr 1fr 1fr; }
.vf-ci-sbtn {
    height: 38px;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    background: var(--bg-hover);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.12s;
    padding: 0 8px;
    font-family: inherit;
}
.vf-ci-sbtn:hover { border-color: var(--text-muted); }
.vf-ci-sbtn--sg { border-color: #16a34a; background: rgba(16,185,129,0.08); color: #15803d; font-weight: 700; }
.vf-ci-sbtn--sb { border-color: #2563eb; background: rgba(37,99,235,0.08); color: #1d4ed8; font-weight: 700; }
.vf-ci-sbtn--sa { border-color: #d97706; background: rgba(245,158,11,0.08); color: #b45309; font-weight: 700; }
.vf-ci-sbtn--sr { border-color: #dc2626; background: rgba(239,68,68,0.08); color: #b91c1c; font-weight: 700; }
.vf-ci-sbtn--sx { border-color: #6b7280; background: rgba(107,114,128,0.08); color: var(--text); font-weight: 700; }

/* Damage chips */
.vf-ci-damage-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}
@media (max-width: 820px) {
    .vf-ci-damage-grid { grid-template-columns: repeat(3, 1fr); }
}
.vf-ci-dchip {
    border: 1.5px solid var(--border);
    border-radius: 7px;
    padding: 8px 4px;
    cursor: pointer;
    text-align: center;
    font-size: 10px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-hover);
    transition: all 0.12s;
    font-family: inherit;
}
.vf-ci-dchip:hover { border-color: var(--text-muted); }
.vf-ci-dchip--sel {
    border-color: #f59e0b;
    background: rgba(245,158,11,0.08);
    color: #b45309;
    font-weight: 700;
}
.vf-ci-dchip__icon {
    width: 16px;
    height: 16px;
    display: block;
    margin-bottom: 3px;
    margin-left: auto;
    margin-right: auto;
}
.vf-ci-dchip__icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Summary */
.vf-ci-summary {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 16px;
}
.vf-ci-summary__title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.vf-ci-summary__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}
@media (max-width: 820px) {
    .vf-ci-summary__grid { grid-template-columns: 1fr; }
}
.vf-ci-summary__row {
    display: flex;
    gap: 6px;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
}
.vf-ci-summary__row:last-child { border-bottom: none; }
.vf-ci-summary__key { color: var(--text-muted); width: 80px; flex-shrink: 0; }
.vf-ci-summary__val { color: var(--text); font-weight: 600; }

.vf-ci-decode-note {
    font-size: 12px;
    color: #2563eb;
    margin-top: 4px;
}

/* Mobile: collapse nav */
@media (max-width: 820px) {
    .vf-ci-nav { width: 100%; max-width: none; border-right: none; border-bottom: 1px solid var(--border); }
    .vf-checkin { flex-direction: column; }
    .vf-ci-nav__list { display: none; }
    .vf-ci-nav__footer { display: none; }
}

/* ── Panels ── */
.vf-panel {
    min-height: 60vh;
}

/* ── Vehicle Grid (Step 0) ── */
.vf-v-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
    gap: 10px;
}
@media (min-width: 540px) { .vf-v-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 800px) { .vf-v-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .vf-v-grid { grid-template-columns: repeat(4, 1fr); } }

/* Vehicle card — fixed height + internal flex so all tiles match */
.vf-vcard {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.vf-vcard:hover { box-shadow: var(--shadow-md); }
.vf-vcard.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Card image */
.vf-vcard__img {
    position: relative;
    height: 170px;
    flex-shrink: 0;
    background: var(--bg-hover);
}
.vf-vcard__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vf-vcard__no-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 28px;
    opacity: .4;
}
.vf-vcard__img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
}
[data-theme="dark"] .vf-vcard__img-placeholder {
    background: #2a2a2a;
}
.vf-vcard__img-placeholder svg {
    width: 42px;
    height: 42px;
    color: #9ca3af;
}
[data-theme="dark"] .vf-vcard__img-placeholder svg {
    color: #6b7280;
}
.vf-vcard__status {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* Card body */
.vf-vcard__body {
    padding: 10px 12px 12px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.vf-vcard__title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vf-vcard__sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Add new vehicle card — premium action tile */
.vf-vcard--add {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border: 2px dashed var(--accent);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(16, 185, 129, 0.02));
    cursor: pointer;
    transition: all .2s ease;
    overflow: hidden;
    position: relative;
}
.vf-vcard--add:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
    border-style: solid;
}
.vf-vcard--add__inner {
    text-align: center;
    padding: 24px 16px;
    width: 100%;
}
.vf-vcard--add__icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: transform .2s ease;
}
.vf-vcard--add:hover .vf-vcard--add__icon {
    transform: scale(1.05);
}
.vf-vcard--add__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.vf-vcard--add__sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.vf-vcard--add__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Session state — border + status bar only, no overlay */
.vf-vcard--saved {
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}
.vf-vcard--completed {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.vf-vcard__discard {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    border: none;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .15s;
    z-index: 3;
}
.vf-vcard--saved:hover .vf-vcard__discard { opacity: 1; }

/* Completed session */
.vf-vcard--completed {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* ── Details Form (Step 1) ── */
.vf-details-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.vf-details-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}
.vf-details-card__header h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}
.vf-details-form {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.vf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.vf-form-row--3col {
    grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 640px) {
    .vf-form-row { grid-template-columns: 1fr; }
    .vf-form-row--3col { grid-template-columns: 1fr; }
}
.vf-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vf-form-group--full {
    grid-column: 1 / -1;
}
.vf-form-group--actions {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 6px;
}
.vf-form-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .3px;
}
.vf-form-group input,
.vf-form-group select,
.vf-form-group textarea {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-base);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    transition: border-color .15s;
}
.vf-form-group input:focus,
.vf-form-group select:focus,
.vf-form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}
.vf-form-group textarea {
    resize: vertical;
    min-height: 60px;
}

/* ── Parts Checklist (Step 2) ── */
.vf-parts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.vf-parts-header h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}
.vf-parts-header__actions {
    display: flex;
    gap: 6px;
}
.vf-parts-search {
    margin-bottom: 4px;
}
.vf-parts-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-base);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
}
.vf-parts-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

/* Category group */
.vf-cat-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.vf-cat-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    user-select: none;
}
.vf-cat-group__header:hover {
    background: var(--bg-base);
}
.vf-cat-group__title {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vf-cat-group__count {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}
.vf-cat-group__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}
.vf-cat-group__select-all {
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.vf-cat-group__select-all:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.vf-cat-group__chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform .2s;
}
.vf-cat-group.is-collapsed .vf-cat-group__chevron {
    transform: rotate(-90deg);
}
.vf-cat-group__body {
    padding: 6px 0;
}
.vf-cat-group.is-collapsed .vf-cat-group__body {
    display: none;
}

/* Part row */
.vf-part-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    cursor: pointer;
    transition: background .1s;
}
.vf-part-row:hover {
    background: var(--bg-hover);
}
.vf-part-row__check {
    width: 18px;
    height: 18px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    background: transparent;
}
.vf-part-row.is-checked .vf-part-row__check {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}
.vf-part-row__label {
    font-size: 13px;
    flex: 1;
    min-width: 0;
}
.vf-part-row__custom-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    background: var(--accent-bg);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* Custom part form */
.vf-custom-part-form {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
}

/* ── Lab Assignment (Step 3) ── */
.vf-lab-header {
    margin-bottom: 4px;
}
.vf-lab-header h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
}
.vf-lab-header__desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}
.vf-lab-assign {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
}

/* Lab task list */
.vf-lab-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.vf-lab-task {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.vf-lab-task__name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
}
.vf-lab-task__status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: .3px;
}
.vf-lab-task__status--pending {
    background: var(--bg-hover);
    color: var(--text-muted);
}
.vf-lab-task__status--created {
    background: var(--accent-bg);
    color: var(--accent);
}

/* ── Summary (Step 4) ── */
.vf-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.vf-summary-card__icon {
    color: var(--accent);
    margin-bottom: 16px;
}
.vf-summary-card__icon svg {
    width: 56px;
    height: 56px;
}
.vf-summary-card__title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px;
}
.vf-summary-card__desc {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 24px;
}
.vf-summary-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.vf-summary-stat {
    text-align: center;
}
.vf-summary-stat__value {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}
.vf-summary-stat__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-top: 2px;
}
.vf-summary-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.btn-lg {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
}

/* ── Vehicle Badge (Bottom Nav) ── */
.vf-vehicle-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0 12px;
    margin-left: 8px;
}
.vf-vehicle-badge__thumb {
    width: 48px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: #e5e7eb;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
[data-theme="dark"] .vf-vehicle-badge__thumb { background: #2a2a2a; }
.vf-vehicle-badge__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vf-vehicle-badge__thumb svg {
    width: 22px;
    height: 22px;
    color: #9ca3af;
}
.vf-vehicle-badge__label {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Bottom Nav (fixed) ── */
.vf-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 16rem;
    right: 0;
    display: flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    z-index: var(--z-sidebar);
    gap: 8px;
}
.vf-bottom-nav .vf-step-indicator { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.vf-bottom-nav__right { display: flex; gap: 6px; align-items: center; margin-left: auto; }

/* Vehicle Flow bottom nav buttons */
.vf-bottom-nav #vfBackBtn,
.vf-bottom-nav #vfSaveBtn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.vf-bottom-nav #vfBackBtn:hover:not(:disabled),
.vf-bottom-nav #vfSaveBtn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
}
.vf-bottom-nav #vfBackBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vf-step-indicator {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* Mobile: sidebar hidden, full width */
@media (max-width: 920px) {
    .vf-bottom-nav {
        left: 0;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
    .vehicle-flow-page { padding-bottom: 70px; }
}

/* Lift FAB stack above vehicle-flow bottom nav */
.fab-stack--vflow-lift { bottom: 80px !important; }
@media (max-width: 920px) {
    .fab-stack--vflow-lift { bottom: 140px !important; }
}

/* ── Vehicle card tags ── */
.vf-vcard__tags {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    margin-top: 4px;
    overflow: hidden;
    min-width: 0;
}
.vf-vcard__tags .vf-vcard__tag {
    flex-shrink: 0;
    white-space: nowrap;
}
.vf-vcard__tag {
    font-family: var(--font-mono);
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 3px;
    background: var(--bg-hover);
    color: var(--text-muted);
}
.vf-vcard__tag--warn { color: var(--color-warning, #f59e0b); }
.vf-vcard__tag--type { background: rgba(16, 185, 129, 0.1); color: var(--accent); font-weight: 600; }
.vf-vcard__stage {
    font-size: 11px;
    font-weight: 600;
    color: #e67e22;
    margin-top: auto;
    padding-top: 6px;
}
.vf-vcard__stage--done { color: var(--accent); }
.vf-vcard__progress {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}
.vf-vcard__dot {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
}
.vf-vcard__dot--done { background: var(--accent); }
.vf-vcard__dot--current { background: #e67e22; }

/* VIN status */
.vf-vin-status {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.vf-vin-status--success { background: var(--tint-success); color: var(--accent); }
.vf-vin-status--error { background: rgba(229,50,56,.08); color: var(--color-danger, #E53238); }

/* Details card header actions */
.vf-details-card__actions { display: flex; gap: 6px; }

/* ── Parts panel full-bleed layout ── */
.vehicle-flow-page.vf-fullheight {
    display: flex;
    flex-direction: column;
    /* 56px topbar + 56px fixed bottom nav */
    height: calc(100vh - 112px);
    padding-bottom: 0;
}
.vehicle-flow-page.vf-fullheight .vf-panel[data-panel="2"] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.vehicle-flow-page.vf-fullheight .vf-panel { min-height: 0; }
.vehicle-flow-page.vf-fullheight .vf-panel[data-panel="2"] .pg-content {
    padding: 0;
    max-width: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 0;
}
.vehicle-flow-page.vf-fullheight .vf-parts-layout {
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
}
.vehicle-flow-page.vf-fullheight #vfPartsMode {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
#vfPartsMode {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.vf-parts-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
@media (max-width: 900px) {
    .vf-parts-layout { grid-template-columns: 1fr; }
}
.vf-parts-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--bg-card);
}
.vf-parts-col--left {
    border-right: 1px solid var(--border);
}
.vf-parts-col__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.vf-parts-col__title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}
.vf-parts-col__meta {
    font-size: 11px;
    background: rgba(26, 95, 168, 0.08);
    border: 1px solid rgba(26, 95, 168, 0.25);
    border-radius: 4px;
    padding: 3px 9px;
    color: #1a5fa8;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.vf-multiplier-badge--interactive { cursor: pointer; transition: all 0.15s; }
.vf-multiplier-badge--interactive:hover {
    background: rgba(26, 95, 168, 0.16);
    border-color: rgba(26, 95, 168, 0.4);
}
.vf-multiplier-badge--interactive strong { font-weight: 700; }

/* Multiplier breakdown tooltip */
.vf-multiplier-tip {
    position: fixed;
    z-index: var(--z-modal, 400);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-md, 0 10px 28px rgba(0,0,0,0.18));
    padding: 14px 16px;
    min-width: 260px;
    max-width: 340px;
    font-size: 12px;
    color: var(--text);
}
.vf-multiplier-tip[hidden] { display: none; }
.vf-multiplier-tip__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.vf-multiplier-tip__rows {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}
.vf-multiplier-tip__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px dashed var(--bg-hover);
}
.vf-multiplier-tip__row:last-child { border-bottom: none; }
.vf-multiplier-tip__label { color: var(--text); flex: 1; min-width: 0; }
.vf-multiplier-tip__scope { color: var(--text-muted); font-size: 10px; }
.vf-multiplier-tip__value {
    font-family: var(--font-mono, "Courier New", monospace);
    font-weight: 600;
    color: #1a5fa8;
    flex-shrink: 0;
}
.vf-multiplier-tip__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 6px 0 10px;
    font-size: 13px;
}
.vf-multiplier-tip__total strong {
    font-size: 15px;
    color: #1a5fa8;
    font-family: var(--font-mono, "Courier New", monospace);
}
.vf-multiplier-tip__edit {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vf-multiplier-tip__edit label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.vf-multiplier-tip__edit input {
    flex: 1;
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
    font-family: var(--font-mono, "Courier New", monospace);
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-hover);
    color: var(--text);
    outline: none;
    font-weight: 600;
}
.vf-multiplier-tip__edit input:focus { border-color: #1a5fa8; background: var(--bg-card); box-shadow: 0 0 0 2px rgba(26,95,168,0.12); }
.vf-multiplier-tip__edit button {
    height: 32px;
    padding: 0 14px;
    background: #1a5fa8;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}
.vf-multiplier-tip__edit button:hover { background: #144a86; }
.vf-multiplier-tip__hint { font-size: 10px; color: var(--text-muted); margin-top: 8px; text-align: center; }

/* Editable price cells */
.vf-row__price--editable {
    cursor: pointer;
    border-radius: 4px;
    padding: 2px 6px;
    transition: background 0.12s;
}
.vf-row__price--editable:hover {
    background: rgba(26, 95, 168, 0.1);
    color: #1a5fa8;
}
.vf-parts-col__tools {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-hover);
    flex-shrink: 0;
}
.vf-parts-col__search-input {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text);
}
.vf-parts-col__search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}
.vf-tool-btn {
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
    flex-shrink: 0;
}
.vf-tool-btn--primary {
    background: #1a5fa8;
    border: 1px solid #1a5fa8;
    color: #fff;
}
.vf-tool-btn--primary:hover { background: #164f8c; border-color: #164f8c; }
.vf-tool-btn--outline {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
}
.vf-tool-btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.vf-parts-col .vf-parts-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 0;
}

/* Sticky category header */
.vf-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 16px;
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 2;
}
.vf-cat-header__left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vf-cat-header__name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text);
    text-transform: uppercase;
}
.vf-cat-header__count {
    font-size: 11px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1px 7px;
    color: var(--text-muted);
}
.vf-cat-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.vf-cat-header__total {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
}
.vf-cat-header__addall {
    font-size: 11px;
    color: var(--accent);
    cursor: pointer;
    font-weight: 500;
    background: none;
    border: none;
    padding: 0;
}
.vf-cat-header__addall:hover { text-decoration: underline; }

/* Part row */
.vf-row {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid var(--bg-hover);
    gap: 10px;
    transition: background 0.08s;
}
.vf-parts-col--left .vf-row { cursor: pointer; }
.vf-row:hover { background: rgba(26, 95, 168, 0.05); }
[data-theme="dark"] .vf-row:hover { background: rgba(255, 255, 255, 0.03); }
.vf-row:last-child { border-bottom: none; }
.vf-row--editing { background: rgba(26, 95, 168, 0.06); }
.vf-row--editing:hover { background: rgba(26, 95, 168, 0.08); }
.vf-row__name-input {
    flex: 1;
    min-width: 0;
    height: 30px;
    padding: 0 10px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--bg-card);
    color: var(--text);
}
.vf-row__name-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}
.vf-row__price-input {
    width: 72px;
    height: 30px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--bg-card);
    color: var(--accent);
    text-align: right;
}
.vf-row__price-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}
.vf-row__add {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
    transition: background 0.1s, color 0.1s;
}
.vf-row:hover .vf-row__add {
    background: var(--accent);
    color: #fff;
}
.vf-row__name {
    flex: 1;
    font-size: 13px;
    color: var(--text);
    line-height: 1.3;
}
.vf-row__price {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    min-width: 48px;
    text-align: right;
}
.vf-row__cat {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    opacity: 0.8;
}
.vf-row__sellthrough {
    font-family: var(--font-mono, "Courier New", monospace);
    font-size: 11px;
    font-weight: 600;
    color: #b45309;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 1px 7px;
    flex-shrink: 0;
}
.vf-row__badge {
    font-size: 10px;
    border-radius: 3px;
    padding: 1px 5px;
    font-weight: 600;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}
.vf-row__badge--db {
    background: rgba(26, 95, 168, 0.1);
    color: #1a5fa8;
}
.vf-row__badge--new {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
}
.vf-row__badge--gen {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Parts edit mode — select + delete */
.vf-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 5px 12px;
    height: 28px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.12s;
}
.vf-edit-btn:hover {
    background: var(--bg-hover);
    color: var(--text);
    border-color: var(--text-muted);
}
.vf-edit-btn.vf-edit-btn--active {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.4);
}

.vf-edit-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(37, 99, 235, 0.04);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.vf-edit-toolbar[hidden] { display: none; }
.vf-edit-toolbar__quick {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.vf-edit-toolbar__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 4px;
}
.vf-edit-chip {
    padding: 4px 10px;
    height: 26px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    border-radius: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.12s;
}
.vf-edit-chip:hover { border-color: var(--text-muted); }
.vf-edit-chip--gen { color: #b45309; border-color: rgba(245, 158, 11, 0.3); }
.vf-edit-chip--gen:hover { background: rgba(245, 158, 11, 0.08); }
.vf-edit-chip--db { color: #1a5fa8; border-color: rgba(26, 95, 168, 0.3); }
.vf-edit-chip--db:hover { background: rgba(26, 95, 168, 0.08); }
.vf-edit-chip--custom { color: var(--accent); border-color: rgba(16, 185, 129, 0.35); }
.vf-edit-chip--custom:hover { background: rgba(16, 185, 129, 0.08); }

.vf-edit-toolbar__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.vf-edit-toolbar__count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.vf-edit-toolbar__delete {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    height: 28px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.12s;
}
.vf-edit-toolbar__delete:hover:not(:disabled) { background: #b91c1c; }
.vf-edit-toolbar__delete:disabled {
    background: var(--bg-hover);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Selectable row in edit mode */
.vf-row__check {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #2563eb;
    cursor: pointer;
    margin: 0;
}
.vf-row.vf-row--editable { cursor: pointer; }
.vf-row.vf-row--selected {
    background: rgba(37, 99, 235, 0.08);
}
.vf-row.vf-row--selected:hover {
    background: rgba(37, 99, 235, 0.12);
}
.vf-parts-col--right.vf-parts-col--editing .vf-row__remove { display: none; }
.vf-row__remove {
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
}
.vf-row__remove:hover {
    background: rgba(229, 50, 56, 0.1);
    color: var(--color-danger, #dc2626);
}

/* Empty state */
.vf-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}
.vf-empty__icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.6;
}

/* Toast */
.vf-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #222;
    color: #fff;
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.vf-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Bottom nav vehicle thumbnail */
.vf-bottom-nav__thumb {
    width: 36px;
    height: 26px;
    border-radius: var(--radius-sm);
    background: #e5e7eb;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
[data-theme="dark"] .vf-bottom-nav__thumb { background: #2a2a2a; }
.vf-bottom-nav__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vf-bottom-nav__thumb svg {
    width: 20px;
    height: 20px;
    color: #9ca3af;
}
.vf-bottom-nav__vehicle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    height: 100%;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

/* ── Check In section ── */
.vf-checkin-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.vf-checkin-section__title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
}

/* ── Vehicle grid sections ── */
.vf-v-grid-section {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0 0;
}
.vf-v-grid-section__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.vf-v-grid-section__count {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-hover);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}
.vf-v-grid-section__line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Parts checklist ── */
.vf-parts-summary {
    font-size: 13px;
    color: var(--text-muted);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}
.vf-parts-summary strong { color: var(--accent); }
.vf-part-cat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 10px;
}
.vf-part-cat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border);
}
.vf-part-cat__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
}
.vf-part-cat__toggle input { cursor: pointer; }
.vf-part-cat__count { color: var(--text-muted); font-weight: 400; }
.vf-part-cat__value {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
}
.vf-part-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--bg-hover);
    cursor: pointer;
    font-size: 13px;
    transition: background .1s;
}
.vf-part-item:last-child { border-bottom: none; }
.vf-part-item:hover { background: var(--bg-hover); }
.vf-part-item input { cursor: pointer; flex-shrink: 0; }
.vf-part-item__name { flex: 1; }
.vf-part-item__price {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}
.vf-part-item--custom { background: rgba(16, 185, 129, 0.04); }
.vf-part-item--custom .vf-part-item__name { color: var(--accent); }

/* ── Dark mode overrides ── */
[data-theme="dark"] .vf-vcard__no-img { opacity: .25; }
[data-theme="dark"] .vf-form-group input,
[data-theme="dark"] .vf-form-group select,
[data-theme="dark"] .vf-form-group textarea {
    background: var(--bg-card);
}
