.report-lead {
  align-items: center;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.report-degraded {
  border-color: #ead7b7;
  background: #fffaf2;
}

.report-attention-panel,
.report-classes-panel {
  margin-bottom: 14px;
}

.report-attention-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.report-attention-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfa;
  color: inherit;
  text-align: right;
  font: inherit;
  cursor: pointer;
}

.report-attention-card:hover,
.report-attention-card:focus-visible {
  border-color: #c5d9d2;
  background: #f8fbfa;
  outline: none;
}

.report-attention-card > span:first-child strong,
.report-attention-card > span:first-child small {
  display: block;
}

.report-attention-card > span:first-child strong {
  color: var(--ink);
  font-size: 10px;
}

.report-attention-card > span:first-child small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.report-attention-metrics {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.report-attention-metrics em {
  padding: 4px 7px;
  border-radius: 8px;
  background: #fff3e5;
  color: #8e5d27;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.report-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(150px, .65fr));
  gap: 8px;
  margin-bottom: 11px;
}

.report-filters input,
.report-filters select {
  width: 100%;
  min-height: 39px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfa;
  color: var(--ink);
}

.report-search {
  position: relative;
}

.report-search > span {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.report-search input {
  padding-right: 34px;
}

.report-table table {
  min-width: 980px;
}

.report-table th,
.report-table td {
  vertical-align: middle;
}

.report-class-row:hover {
  background: #fbfdfc;
}

.report-class-name,
.report-family-cell {
  display: grid;
  gap: 2px;
}

.report-class-name strong,
.report-family-cell strong {
  color: var(--ink);
}

.report-class-name small,
.report-family-cell small {
  color: var(--muted);
  font-size: 8px;
}

@media (max-width: 1180px) {
  .report-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-attention-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .report-summary-grid,
  .report-attention-grid,
  .report-filters {
    grid-template-columns: 1fr;
  }

  .report-lead {
    align-items: stretch;
  }

  .report-lead .page-actions {
    width: 100%;
  }

  .report-lead .page-actions > * {
    flex: 1;
  }
}

@media print {
  .sidebar,
  .topbar,
  .report-filters,
  .report-open-class,
  #exportReport,
  #printReport {
    display: none !important;
  }

  .app-shell {
    display: block !important;
  }

  .content {
    margin: 0 !important;
    padding: 0 !important;
  }

  .report-summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


.report-period-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -2px 0 12px;
}

.report-period-toolbar > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.report-period-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7faf8;
}

.report-period-switch button {
  min-width: 56px;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.report-period-switch button.active {
  color: var(--teal-dark);
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(33, 53, 46, .08);
}

.report-analysis-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.report-charts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 12px;
  margin-bottom: 14px;
}

.report-chart-panel {
  min-width: 0;
  margin: 0;
}

.report-metric-picker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.report-metric-picker select {
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfa;
  color: var(--ink);
  font: inherit;
}

.report-chart-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.report-trend-wrap {
  overflow-x: auto;
}

.report-chart-legend {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 8px;
}

.report-chart-legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.report-chart-legend i {
  width: 18px;
  height: 3px;
  border-radius: 999px;
}

.report-chart-legend i.absent {
  background: #d56a5e;
}

.report-chart-legend i.late {
  background: #d29b50;
}

.report-line-chart {
  display: block;
  width: 100%;
  min-width: 640px;
  height: auto;
}

.report-line-chart text {
  fill: var(--muted);
  font-size: 8px;
  font-family: inherit;
}

.report-chart-grid-line {
  stroke: #e7eeeb;
  stroke-width: 1;
}

.report-chart-y-label {
  fill: var(--muted);
  font-size: 8px;
}

.report-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.report-line.absent {
  stroke: #d56a5e;
}

.report-line.late {
  stroke: #d29b50;
}

.report-line-dot {
  stroke: #fff;
  stroke-width: 1.5;
}

.report-line-dot.absent {
  fill: #d56a5e;
}

.report-line-dot.late {
  fill: #d29b50;
}

.report-comparison-bars {
  display: grid;
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  padding-left: 2px;
}

.report-comparison-row {
  display: grid;
  grid-template-columns: minmax(100px, .85fr) minmax(130px, 1.5fr) 48px;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  text-align: right;
  font: inherit;
  cursor: pointer;
}

.report-comparison-row:hover {
  background: #f8fbfa;
}

.report-comparison-label {
  min-width: 0;
}

.report-comparison-label strong,
.report-comparison-label small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-comparison-label small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
}

.report-comparison-track {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #edf2f0;
  appearance: none;
}

.report-comparison-track::-webkit-progress-bar {
  border-radius: 999px;
  background: #edf2f0;
}

.report-comparison-track::-webkit-progress-value {
  border-radius: 999px;
  background: var(--teal);
}

.report-comparison-track::-moz-progress-bar {
  border-radius: 999px;
  background: var(--teal);
}

.report-comparison-value {
  color: var(--ink);
  text-align: left;
  font-size: 9px;
}

@media (max-width: 1180px) {
  .report-analysis-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .report-period-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .report-period-switch {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .report-period-switch button {
    min-width: 0;
  }

  .report-analysis-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-comparison-row {
    grid-template-columns: minmax(90px, 1fr) minmax(90px, 1fr) 42px;
  }
}

@media print {
  .report-period-toolbar,
  .report-metric-picker {
    display: none !important;
  }

  .report-charts-grid {
    grid-template-columns: 1fr;
  }
}
