.page-tabs {
  display: flex;
  gap: 32px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--hairline);
}

.page-tab {
  padding: 12px 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.page-tab.is-active {
  border-bottom-color: var(--brand);
  color: var(--brand);
}

.vehicles-toolbar {
  align-items: center;
}

.vehicles-toolbar--has-filters {
  align-items: flex-start;
}

.vehicles-toolbar .drivers-toolbar__head {
  flex: 1 1 auto;
  min-width: 0;
}

.vehicles-toolbar .drivers-count--recalls {
  white-space: nowrap;
}

.vehicles-toolbar .drivers-actions {
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}

.filter-pill img {
  width: 16px;
  height: 16px;
}

.filter-count {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--muted);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

.icon-btn img {
  width: 16px;
  height: 16px;
}

.vehicles-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.vehicles-table th,
.vehicles-table td {
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: middle;
}

.vehicles-table th {
  height: auto;
  min-height: 48px;
  padding: 12px;
  background: var(--grey-200);
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.vehicles-table th + th,
.vehicles-table td + td {
  border-left: 1px solid var(--hairline);
}

.vehicles-table td {
  min-height: 92px;
  padding: 16px 12px;
  background: var(--white);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.vehicles-scroll {
  overflow-x: auto;
}

.vehicles-table--diagnostics,
.vehicles-table--evs,
.vehicles-table--recalls {
  min-width: 1280px;
}

.vehicles-table--diagnostics .col-vehicle {
  width: 248px;
  min-width: 248px;
  overflow: visible;
}

.vehicles-table--diagnostics .cell-vehicle__name,
.vehicles-table--diagnostics .cell-vehicle__sub {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}

.vehicles-table--diagnostics .col-comm {
  width: 128px;
  min-width: 128px;
}

.vehicles-table--diagnostics .col-fuel {
  width: 112px;
  min-width: 112px;
}

.vehicles-table--diagnostics .col-oil {
  width: 92px;
  min-width: 92px;
}

.vehicles-table--diagnostics .col-critical {
  width: 128px;
  min-width: 128px;
}

.vehicles-table--diagnostics .col-warning {
  width: 220px;
  min-width: 220px;
}

.vehicles-table--diagnostics .issue--diag span {
  white-space: nowrap;
}

.vehicles-table col.table-col-check {
  width: 40px;
}

.vehicles-table th.col-check,
.vehicles-table td.col-check {
  width: 40px;
  padding: 0;
  overflow: hidden;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
}

.table-check-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  box-sizing: border-box;
}

.vehicles-table thead th.col-check .table-check-slot {
  min-height: 48px;
}

.vehicles-table tbody td.col-check .table-check-slot {
  min-height: 92px;
}

.vehicles-table:not(.vehicles-table--even-cols) .col-vehicle {
  width: 240px;
  padding: 16px 12px;
  overflow: hidden;
}

.vehicles-table:not(.vehicles-table--even-cols) .col-status {
  width: 160px;
}

.vehicles-table:not(.vehicles-table--even-cols) .col-action {
  width: 160px;
}

.vehicles-table:not(.vehicles-table--even-cols) .col-added {
  width: 160px;
}

.vehicles-table:not(.vehicles-table--even-cols) .col-driver {
  width: 200px;
}

/* Even column layout: 40px check + equal-width data columns (colgroup table-col-even) */
.vehicles-table--even-cols .col-vehicle,
.vehicles-table--even-cols .col-status,
.vehicles-table--even-cols .col-action,
.vehicles-table--even-cols .col-added,
.vehicles-table--even-cols .col-location,
.vehicles-table--even-cols .col-comm,
.vehicles-table--even-cols .col-fuel,
.vehicles-table--even-cols .col-oil,
.vehicles-table--even-cols .col-critical,
.vehicles-table--even-cols .col-warning,
.vehicles-table--even-cols .col-range,
.vehicles-table--even-cols .col-charge,
.vehicles-table--even-cols .col-complete,
.vehicles-table--even-cols .col-charger,
.vehicles-table--even-cols .col-recall,
.vehicles-table--even-cols .col-device,
.vehicles-table--even-cols .col-health,
.vehicles-table--even-cols .col-plan,
.vehicles-table--even-cols .col-fleet,
.vehicles-table--even-cols .col-more,
.vehicles-table--even-cols .col-order,
.vehicles-table--even-cols .col-make,
.vehicles-table--even-cols .col-year,
.vehicles-table--even-cols .col-status-date,
.vehicles-table--even-cols .col-delivery,
.vehicles-table--even-cols .col-parent {
  width: auto;
  min-width: 0;
}

.vehicles-table--even-cols th:not(.col-check),
.vehicles-table--even-cols td:not(.col-check) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.th-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.th-status img {
  width: 16px;
  height: 16px;
}

.status-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.status-cell img {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.action-cell {
  margin: 0;
  color: rgba(0, 0, 0, 0.8);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.added-cell {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.driver-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.driver-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--hairline);
  border-radius: 50px;
  background: var(--input);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.driver-cell__name {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.driver-cell__email {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-menu,
.columns-menu {
  position: absolute;
  z-index: 8;
  min-width: 220px;
  padding: 8px 0;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: 0 1px 12px rgba(29, 42, 52, 0.06);
}

.toolbar-pop {
  position: relative;
}

.vehicles-empty {
  margin: 0;
  padding: 64px 24px;
  color: var(--muted);
  text-align: center;
}

.cell-vehicle {
  align-items: center;
}

.vehicles-table .cell-vehicle img {
  width: 60px;
  height: 60px;
  max-width: 60px;
  flex-shrink: 0;
}

.vehicles-table .cell-vehicle__name,
.vehicles-table .cell-vehicle__sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicles-table tbody tr.vehicles-row {
  cursor: pointer;
}

.vehicles-table tbody tr.vehicles-row:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.vehicles-table .cell-vehicle__name {
  color: var(--ink);
  font-weight: 400;
}

.vehicles-table:not(.vehicles-table--even-cols):not(.vehicles-table--diagnostics) .col-fuel,
.vehicles-table:not(.vehicles-table--even-cols) .col-range,
.vehicles-table:not(.vehicles-table--even-cols):not(.vehicles-table--diagnostics) .col-oil,
.vehicles-table:not(.vehicles-table--even-cols):not(.vehicles-table--diagnostics) .col-comm,
.vehicles-table:not(.vehicles-table--even-cols):not(.vehicles-table--diagnostics) .col-critical,
.vehicles-table:not(.vehicles-table--even-cols):not(.vehicles-table--diagnostics) .col-warning,
.vehicles-table:not(.vehicles-table--even-cols) .col-charge,
.vehicles-table:not(.vehicles-table--even-cols) .col-complete,
.vehicles-table:not(.vehicles-table--even-cols) .col-charger,
.vehicles-table:not(.vehicles-table--even-cols) .col-location {
  width: 160px;
  white-space: nowrap;
}

.vehicles-table .col-complete {
  white-space: nowrap;
}


.fuel-stack,
.issue-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.fuel-stack {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.fuel-level,
.charge-status,
.issue {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.fuel-level img,
.charge-status img,
.issue img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.issue {
  white-space: nowrap;
}

.issue img {
  width: 18px;
  height: 18px;
}

.fuel-level__value,
.charge-status__label {
  color: var(--ink);
}

.issue--diag span {
  color: var(--ink);
  font-weight: 400;
}

.issue--diag img {
  width: 20px;
  height: 20px;
}

.issue.is-ok {
  color: var(--ink);
  font-weight: 400;
}

.issue.is-ok span {
  color: var(--ink);
}

.issue.is-muted span {
  color: #b0b9c4;
}

.recall-list {
  margin: 0;
  padding-left: 21px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.recall-list li {
  overflow-wrap: break-word;
}

.vehicles-search {
  min-width: 280px;
}

/* Manage vehicles — Figma 5835:28279, menu 5835:29863 */
.btn-manage {
  gap: 8px;
}

.btn-manage img {
  width: 16px;
  height: 16px;
}

.manage-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 8px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 4px 12px var(--hairline);
}

.manage-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 200px;
  padding: 12px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #303030;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  white-space: nowrap;
}

.manage-menu button:hover {
  background: var(--brand-100);
}

.manage-menu__divider {
  height: 1px;
  margin: 8px 0;
  background: var(--hairline);
}

/* Add vehicles — Figma 5835:28941 (manual), 5835:29175 (upload) */
.av-modal {
  width: min(700px, 100%);
  outline: none;
}

.av-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 0;
}

.av-intro {
  margin: 0;
  padding: 4px 16px 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

.av-link {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.av-link:hover {
  text-decoration: underline;
}

.av-section {
  padding: 0 16px 16px;
}

.av-section--vins {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 24px;
}

.av-section--drop {
  padding-top: 24px;
}

.av-vins {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: center;
  gap: 8px;
  height: 160px;
  padding: 12px 16px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input);
  cursor: text;
}

.av-vins:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px #c2dff9;
}

.av-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 2px 8px;
  border: 1px solid #b0b9c4;
  border-radius: 4px;
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.av-vins__input {
  flex: 1;
  min-width: 160px;
  height: 22px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  outline: none;
}

.av-vins__input::placeholder {
  color: var(--muted);
}

.av-vins.is-invalid,
.av-dropdown .gr-select.is-invalid {
  border-color: #cc0300;
}

.av-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.av-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 12px;
  border: 2px dashed #999;
  border-radius: 12px;
  background: rgba(12, 17, 20, 0.02);
  text-align: center;
}

.av-drop.is-dragging {
  border-color: var(--brand);
  background: var(--brand-100);
}

.av-drop.is-invalid {
  border-color: #cc0300;
}

.av-drop__prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 0 16px;
}

.av-drop__text {
  margin: 0;
  color: #000;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.av-upload {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 175px;
}

.av-upload__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
}

.av-upload__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}

.av-upload__name {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.av-upload__percent {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.av-section--drop.is-uploaded {
  padding-top: 12px;
}

.av-uploaded {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  min-height: 69px;
  padding: 16px;
  border-radius: 8px;
  background: var(--brand-100);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}

.av-uploaded__delete {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.av-uploaded__delete:hover {
  text-decoration: underline;
}

.av-uploaded__delete:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.av-upload__track {
  height: 6px;
  overflow: hidden;
  border-radius: 8px;
  background: #d9d9d9;
}

.av-upload__fill {
  min-width: 6px;
  height: 100%;
  border-radius: 8px;
  background: var(--brand);
}

.av-drop__caption {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.av-error {
  margin: 0;
  padding: 0 16px 16px;
}

.av-ack {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 16px 16px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}

.av-ack.is-invalid .ui-checkbox__input {
  border-color: #cc0300;
}

.av-foot__btn {
  min-width: 108px;
  padding: 12px 20px;
}

.av-submit {
  width: 108px;
  height: 48px;
  padding: 0 20px;
}

.av-submit:disabled,
.btn-manage.is-loading {
  border-color: rgba(12, 17, 20, 0.2);
  background: #d6dbe1;
  color: #b0b9c4;
  opacity: 1;
  cursor: default;
}

.av-spinner,
.btn-manage__spinner {
  animation: av-spin 0.9s linear infinite;
}

.btn-manage.is-loading {
  position: relative;
}

.btn-manage.is-loading .btn-manage__label,
.btn-manage.is-loading .btn-manage__chevron {
  visibility: hidden;
}

.btn-manage__spinner {
  position: absolute;
  top: calc(50% - 10px);
  left: calc(50% - 10px);
}

.btn-manage.is-loading img.btn-manage__spinner {
  width: 20px;
  height: 20px;
}

@keyframes av-spin {
  to {
    transform: rotate(360deg);
  }
}

.import-snack {
  position: fixed;
  right: 16px;
  bottom: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  width: 339px;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #1b232a;
  box-shadow: 0 1px 12px rgba(29, 42, 52, 0.06);
  color: #fff;
}

.import-snack__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.import-snack__title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.import-snack__toggle {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: -4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  cursor: pointer;
}

.import-snack__toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.import-snack__toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.import-snack__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.import-snack__body[hidden] {
  display: none;
}

.import-snack__meta {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.import-snack__progress {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 24px;
}

.import-snack__track {
  flex: 1;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: #d6dbe1;
}

.import-snack__fill {
  height: 100%;
  border-radius: 4px;
  background: var(--brand);
}

.import-snack__count {
  font-size: 12px;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}

.comm-cell {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.oil-life {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.oil-life__value {
  color: var(--ink);
}

.oil-life img {
  width: 18px;
  height: 18px;
}

.location-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.location-cell img,
.action-cell img {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: text-bottom;
}

