/* Vehicles — a dense, sortable list (desk). */
.veh-page { padding: 4px 0 24px; }
.veh-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 8px; }
.veh-title { display: flex; align-items: baseline; gap: 10px; }
.veh-title h1 { margin: 0; font-size: 24px; }
.veh-count { font-size: 14px; }
.veh-search { flex: 1 1 280px; max-width: 460px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 15px; }
.veh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.veh-chip { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.veh-chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.veh-empty { padding: 24px 4px; }

.veh-table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: auto; max-height: calc(100vh - 220px); background: var(--panel); }
.veh-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.veh-table thead th { position: sticky; top: 0; z-index: 1; background: var(--panel-2); color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; text-align: left; padding: 0 12px; height: 38px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.veh-table thead th.sortable button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }
.veh-table thead th.on { color: var(--text); }
.veh-table tbody td { padding: 7px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; height: 38px; }
.veh-row { cursor: pointer; }
.veh-row:hover, .veh-row:focus-visible { background: var(--panel-2); outline: none; }
.veh-row.in-shop td:first-child { box-shadow: inset 3px 0 0 #ef7d22; }
.veh-name strong { display: block; font-size: 14px; }
.veh-name .tiny { display: block; font-size: 12px; }
.veh-owner { font-weight: 600; text-align: left; }
.veh-plate { display: inline-block; padding: 1px 7px; border: 1px solid var(--line); border-radius: 5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: .04em; background: var(--bg); }
.veh-vin { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; white-space: nowrap; }
.veh-vin-head { color: var(--muted); }
.veh-col-date, .veh-col-km { white-space: nowrap; }
.veh-status { all: unset; cursor: pointer; display: inline-flex; flex-direction: column; padding: 3px 9px; border-radius: 8px; background: rgba(239, 125, 34, .16); border: 1px solid rgba(239, 125, 34, .45); font-size: 12px; font-weight: 700; line-height: 1.3; }
.veh-stage { font-weight: 500; opacity: .85; }

.veh-compact { display: none; list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.veh-compact li + li { border-top: 1px solid var(--line); }
.veh-compact-row { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 9px 12px; cursor: pointer; }
.veh-compact-row:active { background: var(--panel-2); }
.veh-line1 { display: flex; flex-wrap: wrap; gap: 6px; font-size: 15px; }
.veh-dot { color: var(--muted); }
.veh-line2 { font-size: 13px; }

@media (max-width: 1100px) { .veh-col-km { display: none; } }
@media (max-width: 899px) {
  .veh-table-wrap { display: none; }
  .veh-compact { display: block; }
}
