/* ══════════════════════════════════════════════
   vans.css — only styles NOT in admin-common.css
   ══════════════════════════════════════════════ */

/* ── PLATE / MODEL / CAPACITY ────────────────── */
.plate-display {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.plate-number {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: .5px;
    font-family: 'Courier New', monospace;
    background: rgba(46, 58, 77, .06);
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid rgba(46, 58, 77, .1);
}

.model-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
}

.capacity-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: #6b7280;
    background: rgba(107, 114, 128, .07);
    padding: 3px 9px;
    border-radius: 20px;
}

#seatModal .rmodal-body {
    max-height: 60vh;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
}

#seatModal .modal-dialog-scrollable .modal-content {
    max-height: 90vh;
    /* 🔥 important */
}

#seatModal .modal-dialog-scrollable .rmodal-body {
    overflow-y: auto;
}

/* ══════════════════════════════════════════════
   VAN SEAT VIEWER  (read-only, inside seatModal)

   Layout — 3 columns × 5 rows, max 14 seats:
   [DRIVER][1 ][2 ]   ← row 1
   [3     ][4 ][5 ]   ← row 2
   [6     ][7 ][8 ]   ← row 3
   [9     ][10][11]   ← row 4
   [12    ][13][14]   ← row 5
   ══════════════════════════════════════════════ */

.van-seat-viewer {
    background: #f8fafc;
    border: 1.5px solid rgba(0, 0, 0, .07);
    border-radius: 14px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* Windshield / front label */
.vsv-windshield {
    background: linear-gradient(135deg, var(--color-primary) 0%, #3e5272 100%);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.vsv-windshield i {
    font-size: 15px;
    opacity: .85;
}

/* 3-column seat grid */
.vsv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px 20px;
    max-height: 300px;
    flex: 1;
    overflow-y: auto;
}

/* Every seat box — read-only */
.vsv-seat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 60px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3px;
    user-select: none;
    pointer-events: none;
    /* read-only */
    cursor: default;
}

.vsv-seat i {
    font-size: 15px;
}

/* Driver seat — distinct styling */
.vsv-seat.driver {
    background: rgba(46, 58, 77, .08);
    border-color: rgba(46, 58, 77, .22);
    color: var(--color-primary);
}

/* Available passenger seat */
.vsv-seat.available {
    background: rgba(249, 115, 22, .07);
    border-color: rgba(249, 115, 22, .28);
    color: var(--color-accent);
}

/* Occupied passenger seat (future use) */
.vsv-seat.occupied {
    background: rgba(239, 68, 68, .07);
    border-color: rgba(239, 68, 68, .25);
    color: #ef4444;
    opacity: .75;
}

/* Empty placeholder — keeps grid shape, invisible */
.vsv-seat.vsv-empty-slot {
    background: transparent;
    border-color: transparent;
    visibility: hidden;
}

/* No-seats message */
.vsv-empty-msg {
    grid-column: 1 / -1;
    text-align: center;
    color: #c0c0c0;
    font-size: 12px;
    padding: 24px 0;
    margin: 0;
}

/* Legend */
.vsv-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 20px 14px;
}

.vsv-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

.vsv-legend-item::before {
    content: '';
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 3px;
    border: 1.5px solid;
}

.vsv-driver-dot::before {
    background: rgba(46, 58, 77, .08);
    border-color: rgba(46, 58, 77, .3);
}

.vsv-available-dot::before {
    background: rgba(249, 115, 22, .1);
    border-color: rgba(249, 115, 22, .35);
}

.vsv-occupied-dot::before {
    background: rgba(239, 68, 68, .1);
    border-color: rgba(239, 68, 68, .35);
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 600px) {
    .vsv-grid {
        gap: 8px;
        padding: 12px 14px;
    }

    .vsv-seat {
        height: 52px;
        font-size: 9.5px;
    }

    .vsv-seat i {
        font-size: 13px;
    }
}