﻿.oxy-vehicles {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: 1rem;
  min-height: 560px;
}

.oxy-vehicles-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.oxy-vehicles-toolbar input,
.oxy-vehicles-toolbar select {
  padding: 0.65rem 0.85rem;
  border: none;
  border-radius: var(--oxy-radius);
  background: var(--oxy-surface-lowest);
  font: inherit;
  min-width: 180px;
}

.oxy-vehicles-toolbar .count {
  color: var(--oxy-muted);
  font-size: 0.9rem;
  margin-left: auto;
}

.oxy-vehicles-list {
  background: var(--oxy-surface-lowest);
  border-radius: var(--oxy-radius);
  overflow: auto;
  max-height: calc(100vh - 220px);
}

.oxy-vehicles-list table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.oxy-vehicles-list th,
.oxy-vehicles-list td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--oxy-muted) 18%, transparent);
  vertical-align: middle;
}

.oxy-vehicles-list th {
  position: sticky;
  top: 0;
  background: var(--oxy-surface-lowest);
  color: var(--oxy-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 1;
}

.oxy-vehicles-list tr {
  cursor: pointer;
}

.oxy-vehicles-list tr:hover,
.oxy-vehicles-list tr.active {
  background: color-mix(in srgb, var(--oxy-primary-container) 10%, transparent);
}

.oxy-veh-thumb {
  width: 72px;
  height: 40px;
  object-fit: contain;
  background: var(--oxy-surface-low);
  border-radius: 6px;
  display: block;
}

.oxy-vehicles-detail {
  background: var(--oxy-surface-lowest);
  border-radius: var(--oxy-radius);
  padding: 1rem;
  overflow: auto;
  max-height: calc(100vh - 180px);
}

.oxy-vehicles-detail .hero {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.oxy-vehicles-detail .hero-img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  background: var(--oxy-surface-low);
  border-radius: var(--oxy-radius);
}

.oxy-vehicles-detail .hero-3d {
  width: 100%;
  height: 280px;
  background: var(--oxy-surface-low);
  border-radius: var(--oxy-radius);
  --poster-color: transparent;
}

.oxy-vehicles-detail .hero-3d-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--oxy-muted);
}

.oxy-vehicles-detail h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--oxy-primary);
}

.oxy-vehicles-detail .muted {
  color: var(--oxy-muted);
  font-size: 0.9rem;
}

.oxy-veh-section {
  margin-top: 1rem;
}

.oxy-veh-section h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--oxy-primary);
}

.oxy-veh-section dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.75rem;
  margin: 0;
  font-size: 0.88rem;
}

.oxy-veh-section dt {
  color: var(--oxy-muted);
}

.oxy-veh-section dd {
  margin: 0;
}

.oxy-veh-json {
  margin-top: 0.5rem;
  max-height: 280px;
  overflow: auto;
  background: var(--oxy-surface-low);
  border-radius: var(--oxy-radius);
  padding: 0.75rem;
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.oxy-vehicles-pager {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--oxy-muted) 18%, transparent);
}

@media (max-width: 960px) {
  .oxy-vehicles {
    grid-template-columns: 1fr;
  }

  .oxy-vehicles-list,
  .oxy-vehicles-detail {
    max-height: none;
  }
}
