.valuation-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 576px) {
  .valuation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .valuation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .valuation-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .valuation-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1600px) {
  .valuation-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.valuation-card {
  --valuation-accent: var(--blue);
  --valuation-accent-soft: var(--blue50);
  background: #fff;
  border: 1px solid
    color-mix(in srgb, var(--valuation-accent) 28%, var(--border));
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.valuation-card.is-outbid {
  border-color: color-mix(in srgb, var(--valuation-accent) 55%, var(--border));
}
.valuation-card.is-outbid,
.valuation-row.is-outbid {
  --valuation-accent: #dc2626;
  --valuation-accent-soft: var(--red50);
}
.valuation-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.ac-cover {
  position: relative;
  aspect-ratio: 16/9;
  background: #f1f5f9;
  overflow: hidden;
}
.ac-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ac-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #cbd5e1;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}
.ac-placeholder-label {
  width: auto;
  height: auto;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  color: #cbd5e1;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.ac-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}
.valuation-card .ac-status-badge .badge {
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.ac-id {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  border-radius: 4px;
  padding: 2px 7px;
}
.ac-body {
  padding: 15px 16px 14px;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.ac-plate {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--t1);
  letter-spacing: 0.5px;
  line-height: 1.15;
}
.ac-title {
  margin-top: 8px;
  color: var(--t2);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-provider {
  margin-top: 4px;
  color: var(--t3);
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--t2);
  margin-bottom: 12px;
  gap: 6px;
}
.ac-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ac-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0 12px;
  border-top: 1px solid var(--border);
  margin-top: 10px;
}
.ac-offer-label {
  display: block;
  margin-bottom: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--t3);
}
.ac-offer-val {
  font-size: 1.18rem;
  line-height: 1.1;
}
.ac-timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  border-radius: 999px;
  background: var(--valuation-accent-soft);
  padding: 4px 9px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--valuation-accent);
}
.valuation-card .ac-timer {
  flex-shrink: 0;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 0.78rem;
  color: var(--valuation-accent);
}
.ac-timer-ended {
  background: var(--slate50);
  color: var(--t3);
  font-weight: 400;
}
.ac-timer-urgent {
  background: var(--red50);
  color: #dc2626 !important;
}
.stats-compact {
  margin-bottom: 18px !important;
}
.stats-compact .stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.stats-compact .stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.86rem;
  margin-bottom: 0;
  flex-shrink: 0;
}
.stats-compact .stat-val {
  font-size: 1.18rem;
}
.stats-compact .stat-lbl {
  font-size: 0.72rem;
  margin-top: 1px;
}
.view-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--rsm);
  background: #fff;
}
.view-toggle-btn {
  width: 31px;
  height: 29px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--t2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.view-toggle-btn.active {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.filter-search {
  flex: 1 1 320px;
  min-width: 0;
}
.ac-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 800;
}
.ac-location span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ac-statline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
  color: var(--t2);
  font-size: 0.75rem;
}
.ac-statline span {
  min-width: 0;
  white-space: nowrap;
}
.valuation-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 11px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--rsm);
  background: var(--valuation-accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.24);
}
.valuation-action.is-closed {
  background: #9d9d9d;
  box-shadow: 0 6px 14px rgba(100, 116, 139, 0.22);
}
.valuation-action.is-offered {
  background: #6b7280;
  box-shadow: 0 6px 14px rgba(107, 114, 128, 0.2);
  cursor: not-allowed;
  opacity: 0.75;
}
.valuation-card .valuation-action {
  margin-top: auto;
  padding: 10px 12px;
  font-size: 0.9rem;
  border-radius: 8px;
}
.is-outbid .valuation-action {
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.22);
}
.offer-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--slate50);
  color: var(--t2);
  font-size: 0.72rem;
  font-weight: 700;
}
.offer-state.outbid {
  background: var(--red50);
  color: #dc2626;
}
.offer-state.winning {
  background: var(--green50);
  color: #15803d;
}
.offer-state.not-valued {
  background: var(--slate50);
  color: #475569;
}
.valuation-list {
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.valuation-row {
  --valuation-accent: var(--blue);
  --valuation-accent-soft: var(--blue50);
  display: grid;
  min-width: 980px;
  grid-template-columns:
    minmax(260px, 1.45fr) minmax(170px, 0.9fr) minmax(150px, 0.7fr)
    minmax(125px, 0.7fr) 148px;
  gap: 16px;
  align-items: center;
  padding: 13px 16px;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.valuation-row:last-child {
  border-bottom: 0;
}
.valuation-row:hover {
  background: var(--slate50);
  border-left-color: var(--valuation-accent);
}
.valuation-list-head {
  display: grid;
  min-width: 980px;
  grid-template-columns:
    minmax(260px, 1.45fr) minmax(170px, 0.9fr) minmax(150px, 0.7fr)
    minmax(125px, 0.7fr) 148px;
  gap: 16px;
  padding: 10px 16px;
  background: var(--slate50);
  border-bottom: 1px solid var(--border);
  color: var(--t2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vr-vehicle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.vr-thumb {
  position: relative;
  width: 62px;
  aspect-ratio: 4/3;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eef2f7;
}
.vr-thumb .ac-img,
.vr-thumb .ac-placeholder {
  font-size: 1.35rem;
}
.vr-id {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 1;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  padding: 1px 5px;
  font-size: 0.64rem;
  font-weight: 700;
}
.vr-main {
  min-width: 0;
}
.vr-plate {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--t1);
}
.vr-title,
.vr-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vr-title {
  color: var(--t2);
  font-size: 0.78rem;
  margin-top: 2px;
}
.vr-sub {
  color: var(--t3);
  font-size: 0.72rem;
  margin-top: 2px;
}
.vr-location {
  color: #1d4ed8;
  font-weight: 800;
  font-size: 0.84rem;
}
.vr-location-sub {
  color: var(--t2);
  font-size: 0.74rem;
  margin-top: 3px;
}
.vr-offer {
  font-size: 1rem;
  font-weight: 800;
}
.vr-action {
  width: 100%;
  margin-top: 0;
}
@media (max-width: 991px) {
  .valuation-list-head {
    display: none;
  }
  .valuation-list {
    gap: 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .valuation-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
    background: #fff;
    border: 1px solid
      color-mix(in srgb, var(--valuation-accent) 26%, var(--border));
    border-left-width: 3px;
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
  }
  .vr-action {
    max-width: none;
  }
}
@media (max-width: 575px) {
  .filter-bar {
    align-items: stretch;
  }
  .filter-bar .ms-auto {
    margin-left: 0 !important;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}
@media (max-width: 767px) {
  .view-toggle {
    display: none;
  }
}
