.vehicle-search-control {
  display: flex;
  gap: 9px;
}

.vehicle-search-control input {
  min-width: 0;
  flex: 1;
}

.vehicle-search-results {
  display: grid;
  gap: 7px;
  min-height: 22px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.vehicle-search-label {
  color: var(--muted);
}

.vehicle-result,
.vehicle-selected {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(6, 20, 37, 0.56);
  color: var(--ink);
  text-align: left;
  font: inherit;
}

.vehicle-result {
  cursor: pointer;
}

.vehicle-result:hover {
  border-color: rgba(96, 225, 219, 0.55);
  background: rgba(96, 225, 219, 0.08);
}

.vehicle-result strong,
.vehicle-selected strong {
  color: var(--cyan);
  font-size: 13px;
}

.vehicle-result span,
.vehicle-selected span {
  color: var(--muted);
  font-size: 12px;
}

.vehicle-selected {
  border-color: rgba(120, 224, 162, 0.35);
  background: rgba(120, 224, 162, 0.08);
}

.vehicle-search-empty {
  color: var(--warn);
}

@media (max-width: 600px) {
  .vehicle-search-control {
    flex-direction: column;
  }
}

.stock-deduction {
  display: grid;
  gap: 4px;
  margin: 10px 0 3px;
  padding: 10px 12px;
  border: 1px solid rgba(120, 224, 162, 0.3);
  border-radius: 10px;
  background: rgba(120, 224, 162, 0.07);
}

.stock-deduction label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.stock-deduction input {
  accent-color: var(--cyan);
}

.stock-deduction span {
  color: var(--muted);
  font-size: 12px;
}

.invoice-stock-preview {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(120, 224, 162, 0.3);
  border-radius: 10px;
  background: rgba(120, 224, 162, 0.07);
  color: var(--green);
  font-size: 12px;
}

.invoice-stock-preview span {
  color: var(--ink);
}

.invoice-stock-preview.muted {
  border-color: var(--line);
  background: rgba(93, 180, 255, 0.06);
  color: var(--muted);
}

.invoice-stock-preview.warning {
  border-color: rgba(255, 200, 107, 0.38);
  background: rgba(255, 200, 107, 0.08);
  color: var(--warn);
}
