.reports-shell { padding-bottom: 24px; }
.reports-heading { margin: 2px 0 16px; }
.reports-heading h1 { margin: 8px 0 5px; font-size: 26px; line-height: 1.15; }
.reports-heading .subtle { margin: 0; }

.report-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--ate-line);
  border-radius: 6px;
  background: #fff;
}

.report-filters label { display: grid; gap: 5px; color: #33415a; font-size: 11px; font-weight: 800; }
.report-filters select, .report-filters input { width: 100%; min-height: 38px; padding: 7px 8px; border: 1px solid var(--ate-line); border-radius: 5px; background: #fff; color: var(--ate-ink); font: inherit; font-size: 12px; }
.report-filter-actions { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 8px; }
.report-filter-actions button { min-height: 40px; }

.reports-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 0 0 14px; }
.reports-summary div { min-height: 67px; padding: 10px 7px; border: 1px solid var(--ate-line); border-radius: 6px; background: #fff; }
.reports-summary strong, .reports-summary span { display: block; }
.reports-summary strong { font-size: 20px; line-height: 1; }
.reports-summary span { margin-top: 7px; color: var(--ate-muted); font-size: 10px; font-weight: 750; line-height: 1.15; }

.report-location { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--ate-line); }
.report-location:last-child { border-bottom: 0; }
.report-location span:first-child { min-width: 0; }
.report-location strong, .report-location small { display: block; }
.report-location strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.report-location small { margin-top: 3px; color: var(--ate-muted); font-size: 10px; }
.report-location > span:not(:first-child) { text-align: right; }
.report-location b { font-size: 14px; }
.report-issues b { color: #b23434; }

.report-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--ate-line); }
.report-row:last-child { border-bottom: 0; }
.report-row strong, .report-row small { display: block; }
.report-row strong { font-size: 13px; }
.report-row small { margin-top: 3px; color: var(--ate-muted); font-size: 11px; }
.report-row p { margin: 6px 0 0; font-size: 12px; line-height: 1.35; }
.report-row > b { padding-top: 1px; color: #16865c; font-size: 11px; white-space: nowrap; }
.report-row.issue > b { color: #a02f2f; }
.report-row .report-ai { margin-top: 7px; color: #245a9c; font-weight: 650; }
.report-row .report-ai.attention { color: #9a6500; }
.report-row .report-ai.issue { color: #a02f2f; }
.report-row .report-ai.uncertain,
.report-row .report-ai.pending { color: var(--ate-muted); }

@media (min-width: 680px) {
  .reports-heading h1 { font-size: 30px; }
  .report-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
  .report-filter-actions { grid-column: auto; grid-template-columns: 1fr; }
  .reports-summary { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .reports-summary div { padding: 12px; }
}
