:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #172b4d;
  background: #f3f6fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body { margin: 0; }

.page {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 9px;
  color: #087e8b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

h1 { margin: 0; font-size: clamp(27px, 4vw, 36px); letter-spacing: -.04em; }
.subtitle { margin: 9px 0 0; color: #62718a; }
.status { color: #087e8b; font-size: 14px; font-weight: 600; }
.status.error, .error { color: #b42318; }

.filters, .summary-card, .report-card {
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  background: #fff;
}

.filters {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

label { display: grid; flex: 1; gap: 7px; color: #52627a; font-size: 13px; font-weight: 600; }
input, select, .button { min-height: 42px; border-radius: 7px; font: inherit; }
input, select { width: 100%; border: 1px solid #cbd5e1; padding: 0 11px; color: #172b4d; background: #fff; }
input:focus, select:focus { outline: 3px solid #b8e2e6; border-color: #087e8b; }

.button { border: 0; padding: 0 17px; cursor: pointer; font-weight: 650; white-space: nowrap; }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button-primary { color: #fff; background: #087e8b; }
.button-primary:hover:not(:disabled) { background: #066875; }
.button-secondary { color: #34445c; background: #eaf0f6; }
.button-secondary:hover:not(:disabled) { background: #dbe4ee; }

.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.summary-card { display: grid; gap: 9px; padding: 17px 19px; }
.summary-card span { color: #62718a; font-size: 13px; }
.summary-card strong { font-size: 24px; }

.report-card { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 13px 16px; border-bottom: 1px solid #edf0f4; white-space: nowrap; }
th { color: #52627a; background: #f8fafc; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
td { font-size: 14px; }
td strong { display: inline-block; min-width: 115px; }
.badge { margin-left: 7px; color: #718096; font-size: 12px; }
.empty { padding: 32px 16px; color: #62718a; text-align: center; white-space: normal; }
.table-note { margin: 0; padding: 13px 16px; color: #62718a; font-size: 12px; }

@media (max-width: 760px) {
  .page { width: min(100% - 24px, 1200px); padding-top: 28px; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .filters { align-items: stretch; flex-direction: column; }
  .filters .button { width: 100%; }
  .summary { gap: 8px; }
  .summary-card { padding: 13px; }
  .summary-card strong { font-size: 20px; }
}
