/* Compact, aligned cards with details and history opened on request. */
.vehicle-search-tools { margin: 0 17px 10px; }
.vehicle-list-toolbar { display: flex; flex-direction: column; flex: none; min-width: 0; }
.vehicle-search-tools > .search-field { margin: 0; min-width: 0; }
.mobile-filter-button { display: none; }
.vehicle-view-actions, .fleet-list-open .vehicles-heading > .vehicle-view-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.vehicle-view-actions .icon-button { width: 32px; height: 32px; }
.vehicle-row-meta { display: none; }
.vehicle-list-item { min-width: 0; margin-bottom: 6px; }
.vehicle-card, .vehicle-detail-card, body.compact-cards .vehicle-card {
  --card-band: #faf9f6; --card-divider: #e9e6e1;
  padding: 0; margin-bottom: 0; border: 1px solid var(--card-divider); border-radius: 10px;
  background: #fff; box-shadow: 0 1px 3px #30254305; contain-intrinsic-block-size: auto 94px;
  container-type: inline-size;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.vehicle-card:hover { transform: none; background: #fff; border-color: #cfc5de; box-shadow: 0 2px 8px #4936650a; }
.vehicle-card.selected { border-color: #a98acd; background: #fff; box-shadow: 0 0 0 1px #eee6f7, 0 2px 8px #49366508; }
.vehicle-card.selected::before { display: none; }
.vehicle-card.is-expanded { contain-intrinsic-block-size: auto 235px; }
.vehicle-detail-card { overflow: hidden; }
.vehicle-card-summary { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; grid-template-rows: 20px 18px; gap: 2px 8px; align-items: center; padding: 8px 10px; }
.vehicle-card-summary .vehicle-select { grid-column: 1 / 3; grid-row: 1 / 3; display: grid; grid-template-columns: 38px minmax(0,1fr); grid-template-rows: 20px 18px; gap: 2px 8px; align-items: center; align-self: stretch; border: 0; padding: 0; background: transparent; border-radius: 6px; }
.vehicle-card-summary .vehicle-type-icon { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 10px; }
.vehicle-card-summary .vehicle-type-icon svg { width: 25px; height: 25px; stroke-width: 1.7; }
.vehicle-card-summary .vehicle-registration { grid-column: 2; grid-row: 1; display: block; min-width: 0; font-size: 13px; font-weight: 700; line-height: 20px; letter-spacing: .015em; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; color: var(--ink); }
.vehicle-card-summary .vehicle-distance, .vehicle-card-summary .vehicle-speed, .vehicle-card-summary .vehicle-updated { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 0; min-height: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vehicle-card-summary .vehicle-distance { grid-column: 2; grid-row: 2; z-index: 1; justify-self: start; max-width: 100%; color: var(--secondary); font-size: 12px; font-weight: 550; line-height: 18px; border-radius: 3px; }
.vehicle-distance > span { overflow: hidden; text-overflow: ellipsis; }
.vehicle-distance:hover { color: var(--violet); }
.vehicle-card-summary .vehicle-speed { grid-column: 3; grid-row: 1; justify-self: end; color: var(--ink); font-size: 12px; font-weight: 650; line-height: 20px; }
.vehicle-card-summary small { font: inherit; font-size: 10px; font-weight: 450; color: var(--secondary); }
.vehicle-card-summary .vehicle-updated { grid-column: 3; grid-row: 2; justify-self: end; color: var(--muted); font-size: 10.5px; line-height: 18px; }
.vehicle-card-summary > :not(.vehicle-select) .icon { width: 12px; height: 12px; flex: none; stroke-width: 1.7; }
.vehicle-card-summary .vehicle-speed .icon { color: var(--violet); }
.vehicle-location-row { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 3px 0 10px; border-top: 1px solid var(--card-divider); background: var(--card-band); border-radius: 0 0 9px 9px; }
.vehicle-location-row .vehicle-address, .drawer-detail-panel .vehicle-location-row .vehicle-address { display: flex; flex: 1; align-items: center; gap: 6px; margin: 0; min-width: 0; color: var(--secondary); font-size: 11px; line-height: 16px; }
.vehicle-location-row .vehicle-address .icon { flex: none; width: 12px; height: 12px; color: #897a9f; }
.vehicle-location-row .vehicle-address > span { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vehicle-card-toggle { display: flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 7px; border: 0; border-radius: 7px; color: var(--violet); }
.vehicle-card-toggle .icon { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .14s ease; }
.is-expanded > .vehicle-location-row { border-radius: 0; }
.is-expanded > .vehicle-location-row .vehicle-card-toggle .icon { transform: rotate(-90deg); }
.vehicle-card-toggle:hover, .vehicle-card-toggle:focus-visible { background: var(--violet-soft); }
.vehicle-card-details { padding: 8px 10px 6px; border-top: 1px solid var(--card-divider); background: #fff; border-radius: 0 0 9px 9px; }
.vehicle-expanded-status { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.vehicle-expanded-status .status-pill { padding: 3px 6px; font-size: 10px; line-height: 14px; }
.vehicle-energy { display: flex; align-items: center; gap: 12px; }
.vehicle-expanded-status .vehicle-energy { margin-left: auto; }
.detail-grid + .vehicle-energy { margin-top: 12px; }
.energy-indicator { display: inline-flex; align-items: center; gap: 4px; min-width: 0; color: var(--muted); font-size: 11px; line-height: 18px; white-space: nowrap; }
.energy-indicator .icon { flex: none; width: 15px; height: 15px; stroke-width: 1.7; }
.vehicle-card-details .card-telemetry { grid-template-columns: repeat(4,minmax(0,1fr)); padding: 8px 0; gap: 0; }
.vehicle-card-details .telemetry-item, .drawer-detail-panel .vehicle-card-details .telemetry-item { display: grid; grid-template-columns: 13px minmax(0,1fr); column-gap: 4px; row-gap: 1px; align-items: start; padding: 3px 4px; min-height: 36px; border: 0; border-radius: 0; background: transparent; }
.vehicle-card-details .telemetry-item:first-child { padding-left: 0; }
.vehicle-card-details .telemetry-item:last-child { padding-right: 0; }
.vehicle-card-details .telemetry-item + .telemetry-item { border-left: 1px solid var(--card-divider); }
.vehicle-card-details .telemetry-item .icon { width: 13px; height: 13px; margin-top: 2px; }
.vehicle-card-details .telemetry-item > span { display: contents; }
.vehicle-card-details .telemetry-item strong, .drawer-detail-panel .vehicle-card-details .telemetry-item strong { grid-column: 2; grid-row: 1; font-size: 12px; line-height: 17px; font-weight: 600; white-space: nowrap; overflow-wrap: normal; font-variant-numeric: tabular-nums; }
.vehicle-card-details .telemetry-item small, .drawer-detail-panel .vehicle-card-details .telemetry-item small { grid-column: 1 / -1; grid-row: 2; font-size: 10px; line-height: 13px; margin-top: 0; white-space: nowrap; overflow-wrap: normal; }
.vehicle-card-details .device-battery small, .drawer-detail-panel .vehicle-card-details .device-battery small { white-space: normal; }
.vehicle-card-details .vehicle-action-strip { grid-template-columns: repeat(6,minmax(0,1fr)); padding-top: 5px; gap: 2px; border-top-color: var(--card-divider); }
.vehicle-card-details .vehicle-action, .drawer-detail-panel .vehicle-card-details .vehicle-action { padding: 5px 1px; min-height: 36px; border: 1px solid transparent; border-radius: 6px; }
.vehicle-card-details .vehicle-action > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vehicle-card-details .vehicle-action .icon { width: 17px; height: 17px; }
.vehicle-card-details .vehicle-action:hover, .vehicle-card-details .vehicle-action:focus-visible { border-color: #e1d6f0; background: #f5f0fb; }
.vehicle-card-details .gps-warning { font-size: 10px; line-height: 14px; margin: 0; }
/* Relay selection and confirmation share the existing accessible modal. */
.app-dialog.relay-dialog { width: min(400px,calc(100% - 32px)); padding: 22px; border-radius: 18px; box-shadow: 0 24px 80px #30204424; }
.relay-dialog .dialog-heading { margin-bottom: 20px; align-items: flex-start; }
.relay-dialog .dialog-heading h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.3px; overflow-wrap: anywhere; }
.relay-dialog .dialog-heading .icon-button { width: 30px; height: 30px; flex: none; }
.relay-form { gap: 16px; }
.relay-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 8px; }
.relay-actions .button { justify-content: center; min-height: 42px; padding: 10px 8px; border-radius: 9px; font-size: 12px; white-space: nowrap; }
.relay-confirmation { display: grid; justify-items: center; gap: 10px; padding: 20px 12px; border: 1px solid #e9e2f1; border-radius: 13px; background: linear-gradient(145deg,#faf7ff,#fff); text-align: center; }
.relay-confirm-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 2px; border: 1px solid #e4d8f4; border-radius: 14px; color: var(--violet); background: #f1eafa; }
.relay-confirm-icon.is-lock { color: #a93450; border-color: #f0d7de; background: #fdf0f3; }
.relay-confirm-icon .icon { width: 23px; height: 23px; }
.relay-confirmation strong { font-size: 16px; line-height: 1.4; letter-spacing: .02em; overflow-wrap: anywhere; }
.relay-confirmation p { font-size: 12px; line-height: 1.6; color: var(--secondary); }
.relay-form .relay-feedback { margin: 0; padding: 10px 12px; border-radius: 9px; background: var(--surface-soft); color: var(--secondary); font-size: 12px; line-height: 1.6; }
.relay-form .relay-feedback.is-success { color: #176741; background: #f0f8f3; }
@container (max-width:270px) {
  .vehicle-card-summary { grid-template-columns: 32px minmax(0,1fr) auto; column-gap: 5px; padding-left: 8px; padding-right: 8px; }
  .vehicle-card-summary .vehicle-select { grid-template-columns: 32px minmax(0,1fr); column-gap: 5px; }
  .vehicle-card-summary .vehicle-type-icon { width: 32px; height: 34px; border-radius: 8px; }
  .vehicle-card-summary .vehicle-type-icon svg { width: 23px; height: 23px; }
  .vehicle-card-summary .vehicle-registration { font-size: 12px; letter-spacing: 0; }
  .vehicle-card-summary .vehicle-speed { font-size: 11px; gap: 4px; }
  .vehicle-card-summary .vehicle-updated { font-size: 10px; gap: 4px; }
}
.vehicle-detail-card + .vehicle-route-history { margin-top: 8px; }
.drawer-detail-heading { justify-content: flex-end; margin-bottom: 6px; }
.drawer-movement:not(:has(#drawer-movement-report > *)) { display: none; }

.vehicle-route-history { padding: 0 10px; margin: 5px 0 7px; min-width: 0; border: 1px solid #e8e4dc; border-radius: 9px; background: #fff; }
.route-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 36px; cursor: pointer; list-style: none; font-size: 11px; font-weight: 600; color: var(--secondary); }
.route-history-heading::-webkit-details-marker { display: none; }
.route-history-heading .icon { width: 14px; height: 14px; color: var(--violet); transform: rotate(90deg); }
.route-history-disclosure[open] > .route-history-heading .icon { transform: rotate(-90deg); }
.route-history-body { padding-bottom: 10px; border-top: 1px solid var(--line); }
.route-history-heading .text-button, .vehicle-route-history > .text-button { font-size: var(--text-small); }
.route-history-filter { display: flex; align-items: center; gap: 8px; margin: 10px 0; color: var(--secondary); font-size: var(--text-small); }
.route-history-filter select { flex: 1; min-width: 0; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); color: var(--ink); font-size: var(--text-small); }
.route-history-summary { display: flex; flex-wrap: wrap; gap: 5px 10px; padding-bottom: 9px; font-size: var(--text-small); color: var(--secondary); border-bottom: 1px solid var(--line); }
.route-history-rows { display: grid; }
.route-history-row { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.route-history-icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 6px; border: 1px solid currentColor; border-radius: 50%; color: #64748b; }
.route-history-icon .icon { width: 16px; height: 16px; }
.route-history-row > div { min-width: 0; }
.route-history-row strong { font-size: var(--text-small); }
.route-history-row time, .route-history-row small, .route-history-metrics { display: block; font-size: var(--text-tiny); line-height: 1.5; overflow-wrap: anywhere; color: var(--secondary); margin-top: 3px; }
.route-history-row.is-running .route-history-icon, .route-history-row.is-running strong { color: #16864c; }
.route-history-row.is-idle .route-history-icon, .route-history-row.is-idle strong { color: #946200; }
.route-history-row.is-stopped .route-history-icon, .route-history-row.is-stopped strong { color: #b02e42; }
.route-history-row.is-start .route-history-icon { color: #2563a0; }
.route-history-note { font-size: var(--text-tiny); line-height: 1.5; color: var(--secondary); margin-top: 9px; }
.route-history-map-label { max-width: 220px; white-space: normal; font-family: var(--font-ui); font-size: var(--text-small); }
.vehicle-updated, .route-history-metrics { font-variant-numeric: tabular-nums; }

/* Full-width List View keeps every vehicle's details on one aligned row. */
.dashboard-active.vehicle-rows-mode .fleet-workspace { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr); }
.vehicle-rows-mode .map-panel { display: none; }
.dashboard-active.vehicle-rows-mode .vehicles-panel[data-drawer] { display: flex; position: relative; inset: auto; grid-row: 1; width: 100%; height: 100%; min-width: 0; }
.vehicle-rows-mode .vehicles-panel .sheet-handle, .vehicle-rows-mode #drawer-detail-panel { display: none; }
.vehicle-rows-mode .vehicle-list-footer { display: none; }
.vehicle-rows-mode .vehicles-panel #drawer-list-panel { display: flex; min-width: 0; }
.vehicle-rows-mode .vehicle-list-toolbar { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 6px 12px; }
.vehicle-rows-mode .vehicles-panel[data-drawer] .vehicle-list-toolbar .vehicles-heading { display: contents; }
.vehicle-rows-mode .vehicle-list-toolbar .vehicles-heading > div:first-child { grid-column: 1; grid-row: 1; }
.vehicle-rows-mode .vehicle-list-toolbar .vehicles-heading h2 { font-size: 13px; gap: 6px; white-space: nowrap; }
.vehicle-rows-mode .vehicle-list-toolbar .count-badge { font-size: 10px; min-width: 20px; padding: 3px 5px; }
.vehicle-rows-mode .vehicle-list-toolbar .vehicle-search-tools { grid-column: 2; grid-row: 1; display: flex; min-width: 0; margin: 0; }
.vehicle-rows-mode .vehicle-list-toolbar .search-field { flex: 1; width: 100%; min-width: 0; height: 32px; min-height: 32px; padding: 0 8px; gap: 6px; border-radius: 7px; }
.vehicle-rows-mode .vehicle-list-toolbar .search-field input { width: 100%; min-width: 0; font-size: 12px; }
.vehicle-rows-mode .vehicle-list-toolbar .search-field .icon { width: 14px; height: 14px; }
.vehicle-rows-mode .vehicle-list-toolbar .mobile-filter-button { display: none; }
.vehicle-rows-mode .vehicle-list-toolbar .vehicle-view-actions { grid-column: 3; grid-row: 1; gap: 4px; }
.vehicle-rows-mode .vehicle-list-toolbar .vehicle-view-actions .icon-button { width: 30px; height: 30px; padding: 6px; }
.vehicle-rows-mode .vehicle-list-toolbar .vehicle-view-actions .icon { width: 15px; height: 15px; }
.vehicle-rows-mode .vehicles-panel .vehicle-list { display: grid; grid-template-columns: minmax(1160px,1fr); align-content: start; align-items: start; gap: 6px; overflow: auto; min-width: 0; max-height: none; flex: 1; padding-bottom: 12px; }
.vehicle-rows-mode .vehicle-list-item { min-width: 0; width: 100%; margin: 0; }
.vehicle-rows-mode .vehicle-list:has(> .empty-state) { grid-template-columns: minmax(0,1fr); }
.vehicle-rows-mode .vehicle-list > .empty-state { grid-column: 1 / -1; }
.vehicle-rows-mode .vehicle-card, body.compact-cards.vehicle-rows-mode .vehicle-card {
  display: grid; grid-template-columns: 160px 80px 60px 70px 74px minmax(150px,1fr) 292px 190px;
  grid-template-rows: minmax(46px,auto); align-items: center; column-gap: 8px;
  min-width: 0; min-height: 64px; padding: 8px 12px; border-radius: 9px;
  contain-intrinsic-block-size: auto 64px;
}
.vehicle-rows-mode .vehicle-card-summary, .vehicle-rows-mode .vehicle-location-row, .vehicle-rows-mode .vehicle-card-details { display: contents; }
.vehicle-rows-mode .vehicle-card-toggle, .vehicle-rows-mode .vehicle-route-history { display: none; }
.vehicle-rows-mode .vehicle-card-summary .vehicle-select { grid-column: 1; grid-row: 1; grid-template-columns: 34px minmax(0,1fr); grid-template-rows: 20px 16px; gap: 1px 8px; align-self: center; min-width: 0; }
.vehicle-rows-mode .vehicle-card-summary .vehicle-type-icon { width: 34px; height: 34px; border-radius: 9px; }
.vehicle-rows-mode .vehicle-card-summary .vehicle-type-icon svg { width: 22px; height: 22px; }
.vehicle-rows-mode .vehicle-card-summary .vehicle-registration { font-size: 12px; line-height: 20px; }
.vehicle-rows-mode .vehicle-row-meta { display: block; grid-column: 2; grid-row: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; line-height: 16px; font-weight: 450; font-variant-numeric: tabular-nums; }
.vehicle-rows-mode .vehicle-expanded-status { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 3px; min-width: 0; }
.vehicle-rows-mode .vehicle-expanded-status .status-pill { padding: 2px 6px; font-size: 9px; line-height: 14px; }
.vehicle-rows-mode .vehicle-expanded-status .vehicle-energy { margin: 0; gap: 9px; }
.vehicle-rows-mode .vehicle-expanded-status .energy-indicator { gap: 3px; font-size: 10px; line-height: 14px; }
.vehicle-rows-mode .vehicle-expanded-status .energy-indicator .icon { width: 13px; height: 13px; }
.vehicle-rows-mode .vehicle-card-details .gps-warning { font-size: 8px; line-height: 11px; }
.vehicle-rows-mode .vehicle-card-summary .vehicle-speed, .vehicle-rows-mode .vehicle-card-summary .vehicle-distance, .vehicle-rows-mode .vehicle-card-summary .vehicle-updated { grid-row: 1; display: grid; grid-template-columns: 12px minmax(0,1fr); grid-template-rows: 18px 14px; align-items: center; gap: 1px 5px; justify-self: stretch; width: 100%; min-height: 34px; font-size: 11px; line-height: 18px; text-align: left; }
.vehicle-rows-mode .vehicle-card-summary .vehicle-speed { grid-column: 3; }
.vehicle-rows-mode .vehicle-card-summary .vehicle-distance { grid-column: 4; }
.vehicle-rows-mode .vehicle-card-summary .vehicle-updated { grid-column: 5; font-size: 10px; }
.vehicle-rows-mode .vehicle-card-summary .vehicle-speed::after, .vehicle-rows-mode .vehicle-card-summary .vehicle-distance::after, .vehicle-rows-mode .vehicle-card-summary .vehicle-updated::after { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: 9px; line-height: 14px; font-weight: 450; }
.vehicle-rows-mode .vehicle-card-summary .vehicle-speed::after { content: 'Speed'; }
.vehicle-rows-mode .vehicle-card-summary .vehicle-distance::after { content: 'Today'; }
.vehicle-rows-mode .vehicle-card-summary .vehicle-updated::after { content: 'GPS update'; }
.vehicle-rows-mode .vehicle-location-row .vehicle-address { grid-column: 6; grid-row: 1; align-items: flex-start; min-width: 0; font-size: 10px; line-height: 16px; }
.vehicle-rows-mode .vehicle-location-row .vehicle-address .icon { margin-top: 2px; }
.vehicle-rows-mode .vehicle-location-row .vehicle-address > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; }
.vehicle-rows-mode .vehicle-card-details .card-telemetry { grid-column: 7; grid-row: 1; grid-template-columns: 56px 68px 78px 90px; gap: 0; padding: 0; min-width: 0; }
.vehicle-rows-mode .vehicle-card-details .telemetry-item { min-height: 34px; padding: 2px 7px; }
.vehicle-rows-mode .vehicle-card-details .telemetry-item:first-child { padding-left: 0; }
.vehicle-rows-mode .vehicle-card-details .telemetry-item strong { font-size: 11px; line-height: 17px; }
.vehicle-rows-mode .vehicle-card-details .telemetry-item small { font-size: 9px; line-height: 13px; }
.vehicle-rows-mode .vehicle-card-details .vehicle-action-strip { grid-column: 8; grid-row: 1; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 2px; padding: 0 0 0 9px; border-top: 0; border-left: 1px solid var(--card-divider); }
.vehicle-rows-mode .vehicle-card-details .vehicle-action { height: 32px; min-height: 32px; padding: 6px; border-radius: 7px; }
.vehicle-rows-mode .vehicle-card-details .vehicle-action .icon { width: 15px; height: 15px; }
@media (min-width:761px) and (min-height:501px), (min-width:1025px) {
  .dashboard-active .page-content { padding-left: 5px; padding-right: 5px; max-width: none; margin-left: 0; margin-right: 0; }
  .dashboard-active .fleet-workspace { column-gap: 5px; }
  .dashboard-active .fleet-status-bar, .dashboard-active .topbar { padding-left: 5px; padding-right: 5px; }
}
@media (max-width:760px), (max-width:1024px) and (max-height:500px) {
  .fleet-list-open .fleet-list-heading { position: relative; inset: auto; min-height: 0; }
  .fleet-list-window-actions { gap: 4px; }
  .fleet-list-window-actions button { width: 32px; height: 32px; min-width: 32px; min-height: 32px; padding: 6px; border-radius: 7px; }
  .fleet-list-window-actions .icon { width: 14px; height: 14px; }
  .fleet-list-open .vehicles-heading, .vehicles-panel .vehicles-heading { display: none; }
  .vehicle-rows-mode .vehicles-panel[data-drawer] .vehicles-heading { display: flex; position: static; flex: none; min-height: 38px; padding: 4px 10px 0; }
  .vehicle-rows-mode .vehicles-heading > div:first-child { display: block; }
  .vehicle-rows-mode .vehicles-heading > .vehicle-view-actions { display: flex; }
  .vehicle-rows-mode .vehicles-heading [data-action=filters] { display: inline-flex; }
  .vehicle-rows-mode .vehicle-view-actions .icon-button { width: 32px; height: 32px; }
  .vehicle-search-tools { display: flex; align-items: center; flex: none; gap: 5px; margin: 6px 10px; }
  .vehicle-search-tools > .search-field { flex: 1; width: 100%; height: 34px; min-height: 34px; padding: 0 8px; gap: 6px; border-radius: 7px; background: white; }
  .vehicle-search-tools > .search-field input { width: 100%; }
  .vehicle-search-tools .search-field kbd { display: none; }
  .mobile-filter-button { display: flex; flex: none; width: 30px; height: 32px; border-radius: 7px; border: 1px solid var(--line); background: #fff; }
  .mobile-filter-button .icon { width: 14px; height: 14px; }
  .mobile-filter-button.active { color: var(--violet); background: var(--violet-soft); }
  .fleet-list-open .vehicle-list { padding-left: 10px; padding-right: 10px; }
  .vehicle-view-actions .icon-button { width: 36px; height: 36px; }
  .vehicle-rows-mode .vehicle-route-history { max-width: calc(100vw - 34px); }
  .vehicle-card-summary { grid-template-columns: 34px minmax(0,1fr) auto; grid-template-rows: 18px 16px; gap: 2px 7px; padding: 6px 8px; }
  .vehicle-card-summary .vehicle-select { grid-template-columns: 34px minmax(0,1fr); grid-template-rows: 18px 16px; gap: 2px 7px; }
  .vehicle-card-summary .vehicle-type-icon { width: 34px; height: 34px; border-radius: 8px; }
  .vehicle-card-summary .vehicle-type-icon svg { width: 22px; height: 22px; }
  .vehicle-card-summary .vehicle-registration { font-size: 12px; line-height: 18px; }
  .vehicle-card-summary .vehicle-distance { font-size: 11px; line-height: 16px; }
  .vehicle-card-summary .vehicle-speed { font-size: 11px; line-height: 18px; }
  .vehicle-card-summary .vehicle-updated { font-size: 10px; line-height: 16px; }
  .vehicle-location-row { gap: 5px; padding-left: 8px; }
  .vehicle-location-row .vehicle-address, .drawer-detail-panel .vehicle-location-row .vehicle-address { font-size: 10px; gap: 5px; }
  .vehicle-card-toggle, .vehicle-card-close { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 7px; border: 0; border-radius: 6px; color: var(--violet); touch-action: manipulation; }
  .vehicle-card-toggle .icon, .vehicle-card-close .icon { width: 14px; height: 14px; }
  .vehicle-drawer-controls { display: flex; align-items: center; flex: none; gap: 2px; }
  .vehicle-drawer-controls .vehicle-card-toggle .icon, .is-expanded > .vehicle-location-row .vehicle-drawer-controls .vehicle-card-toggle .icon { transform: none; }
  .vehicle-card-close { color: var(--secondary); }
  .vehicle-card-close:hover, .vehicle-card-close:focus-visible { background: var(--violet-soft); color: var(--violet); }
  .vehicle-card-details .vehicle-action, .drawer-detail-panel .vehicle-card-details .vehicle-action { min-height: 34px; }
  .vehicle-card-details .vehicle-action .icon { width: 15px; height: 15px; }
  .route-history-icon { min-height: 30px; width: 28px; border-radius: 8px; }
}
@media (max-width:1024px) and (max-height:500px) {
  .fleet-list-open .drawer-list-panel > .search-field { margin-right: 105px; }
}
