/* USABusca — relatório VinAudit */
.vehicle-report {
  margin: 24px 28px 0;
  padding: 26px;
  background: #fff;
  border: 1px solid #dfe4ec;
  border-radius: 16px;
}
.report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.report-head h3 { margin: 4px 0 0; font-size: 21px; }
.report-head .eyebrow { margin: 0; }
.report-gate { display: grid; justify-items: start; gap: 13px; }
.report-gate > p:first-child { max-width: 720px; margin: 0; color: #697588; font-size: 13px; line-height: 1.65; }
.report-cost { max-width: 720px; margin: -4px 0 0; color: #7b8492; font-size: 11px; line-height: 1.5; }
.vehicle-report > .alert { margin: 14px 0; }
.report-alert { padding: 15px 17px; border: 1px solid; border-radius: 12px; font-size: 13px; font-weight: 600; line-height: 1.55; }
.report-alert.danger { color: #8d1427; background: #fff1f3; border-color: #efb7c0; }
.report-alert.warning { color: #754c08; background: #fff8e8; border-color: #ead29b; }
.report-alert.success { color: #1e5c40; background: #f0f8f3; border-color: #b9d9c7; }
.report-alert.neutral { color: #334d70; background: #f2f6fb; border-color: #d5e0ed; }
.report-meta { margin: 11px 1px 18px; color: #697588; font-size: 11px; line-height: 1.5; }
.report-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.report-stat { padding: 14px 12px; background: #f6f8fb; border: 1px solid #e2e7ee; border-radius: 11px; }
.report-stat span { display: block; min-height: 28px; color: #697588; font-size: 10px; line-height: 1.35; }
.report-stat strong { display: block; margin-top: 7px; color: #14213a; font-size: 23px; }
.report-stat.alert { background: #fff5f6; border-color: #efcbd1; }
.report-stat.alert strong { color: #b31e35; }
.report-events { display: grid; gap: 9px; margin-top: 19px; }
.report-group { overflow: hidden; border: 1px solid #e1e6ed; border-radius: 11px; }
.report-group summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; color: #14213a; background: #fbfcfe; cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; }
.report-group summary::-webkit-details-marker { display: none; }
.report-group summary::after { content: '+'; order: 2; color: #697588; font-size: 17px; font-weight: 400; }
.report-group[open] summary::after { content: '−'; }
.report-group summary strong { margin-left: auto; color: #697588; font-size: 11px; }
.report-event-list { border-top: 1px solid #e8ecf1; }
.report-event { display: grid; grid-template-columns: 108px 1fr; gap: 16px; padding: 14px 16px; border-bottom: 1px solid #edf0f4; }
.report-event:last-child { border-bottom: 0; }
.report-event > span { color: #697588; font-size: 11px; }
.report-event strong { display: block; color: #1e2f49; font-size: 12px; line-height: 1.5; }
.report-event p { margin: 4px 0 0; color: #697588; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.report-disclaimer, .report-no-events { margin: 18px 0 0; color: #697588; font-size: 11px; line-height: 1.6; }

@media (max-width: 1100px) {
  .report-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .vehicle-report { margin: 20px 14px 0; padding: 20px 16px; border-radius: 14px; }
  .report-head { display: block; }
  .report-head .source-pill { display: inline-block; margin-top: 12px; }
  .report-gate .button { width: 100%; }
  .report-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .report-stat { padding: 12px 9px; }
  .report-stat span { font-size: 9px; }
  .report-event { grid-template-columns: 1fr; gap: 5px; }
}
@media (max-width: 390px) {
  .report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  .vehicle-report { margin: 20px 0 0; padding: 18px; break-inside: auto; }
  .report-gate, #reportError { display: none !important; }
  .report-head, .report-alert, .report-stat, .report-event, .report-group { break-inside: avoid; }
  .report-group summary::after { display: none; }
}
