/* ═══════════════════════════════════════════════════════════════════
   Comparable Vehicles - Edit Form Table Layout
   ═══════════════════════════════════════════════════════════════════ */

/* Small screens: stacked card layout */
.comparable-vehicles-form-header {
    display: none;
}

.comparable-vehicles-form-row {
    background-color: var(--steel-850);
    border: 1px solid var(--steel-700);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.comparable-vehicles-form-row .cv-cell {
    margin-bottom: 0.75rem;
}

.comparable-vehicles-form-row .cv-cell:last-child {
    margin-bottom: 0;
}

/* Large screens: table layout */
@media (min-width: 992px) {
    .comparable-vehicles-form-table {
        display: table;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 0.5rem;
    }

    .comparable-vehicles-form-header {
        display: table-header-group;
    }

    .comparable-vehicles-form-header .cv-header-cell {
        display: table-cell;
        padding: 0.375rem 0.25rem;
        font-family: var(--font-mono);
        font-weight: 600;
        font-size: 0.75rem;
        color: var(--steel-400);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .comparable-vehicles-form-table [data-nested-fields-target="list"] {
        display: table-row-group;
    }

    .comparable-vehicles-form-row {
        display: table-row;
        background-color: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        margin-bottom: 0;
    }

    .cv-cell {
        display: table-cell;
        padding: 0.25rem;
        vertical-align: top;
        margin-bottom: 0;
    }

    .cv-cell-date {
        width: 14%;
    }

    .cv-cell-mileage {
        width: 10%;
    }

    .cv-cell-number {
        width: 11%;
    }

    .cv-cell-actions {
        width: 5%;
        text-align: center;
    }
}
