.report-page {
  display: grid;
  gap: 12px;
}

.report-toolbar,
.owner-report-title,
.report-trend-heading,
.report-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-toolbar {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #cbd9e5;
  border-left: 4px solid #168c6b;
  background: #fff;
}

.report-toolbar > div,
.owner-report-title > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.report-toolbar h3,
.owner-report-title h3,
.report-trend-heading h3,
.report-section-heading h3 {
  margin: 0;
  color: #0b3558;
}

.report-toolbar-actions {
  display: flex;
  gap: 8px;
}

.report-health,
.report-generated,
.report-section-heading span,
.owner-report-title span {
  color: #64778a;
  font-size: 13px;
}

.report-health.is-connected::before {
  color: #168c6b;
  content: "● ";
}

.report-health.is-warning::before {
  color: #c53d31;
  content: "● ";
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #cbd9e5;
  border-top: 4px solid #178fcd;
  background: #fff;
}

.report-summary-item {
  display: flex;
  min-width: 0;
  min-height: 76px;
  padding: 11px 16px;
  border-right: 1px solid #dbe4ec;
  flex-direction: column;
  justify-content: center;
}

.report-summary-item:last-child {
  border-right: 0;
}

.report-summary-item > span {
  color: #607488;
  font-weight: 700;
}

.report-summary-item small {
  font-size: 11px;
  font-weight: 500;
}

.report-summary-item strong {
  margin-top: 3px;
  color: #082f50;
  font-size: clamp(24px, 2.2vw, 34px);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.report-summary-item em {
  margin-left: 4px;
  color: #607488;
  font-size: 13px;
  font-style: normal;
}

.report-trend-panel {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #cbd9e5;
  background: #fff;
}

.report-trend-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.report-trend-heading > div span {
  color: #64778a;
  font-size: 13px;
}

.report-period-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 520px;
  margin: 12px 0 8px;
  border: 1px solid #9fb8cd;
}

.report-period-switch button {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-right: 1px solid #9fb8cd;
  background: #f8fbfd;
  color: #244b69;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.report-period-switch button:last-child {
  border-right: 0;
}

.report-period-switch button.active {
  background: #1767a8;
  color: #fff;
}

.report-period-switch button:focus-visible,
.owner-report-refresh:focus-visible,
.report-data-details summary:focus-visible,
.owner-report-more summary:focus-visible,
.owner-report-all-process summary:focus-visible {
  outline: 3px solid #f2a51a;
  outline-offset: 2px;
}

.report-inline-error {
  display: flex;
  gap: 10px;
  margin: 8px 0;
  padding: 9px 11px;
  border-left: 4px solid #c53d31;
  background: #fff2f0;
  color: #6f2823;
  font-size: 13px;
}

.report-chart-wrap {
  position: relative;
  width: 100%;
  height: 300px;
  min-width: 0;
  overflow: hidden;
}

.report-chart-wrap canvas {
  max-width: 100% !important;
  max-height: 100% !important;
}

.report-chart-wrap.is-loading::after {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #52677a;
  content: "读取中…";
  font-size: 12px;
}

.report-chart-empty {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #607488;
  flex-direction: column;
  text-align: center;
}

.report-chart-empty span {
  margin-top: 5px;
  font-size: 13px;
}

.report-chart-library-error {
  padding: 20px;
  color: #9f3028;
  text-align: center;
}

.report-range-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 7px;
  border-top: 1px solid #e3eaf0;
  color: #607488;
}

.report-range-total strong {
  color: #0b3558;
  font-size: 18px;
}

.report-zero-note {
  margin: 7px 0 0;
  color: #607488;
  font-size: 13px;
  text-align: right;
}

.report-data-details,
.report-method-details,
.owner-report-more,
.owner-report-all-process {
  margin-top: 8px;
}

.report-data-details summary,
.report-method-details > summary,
.owner-report-more > summary,
.owner-report-all-process > summary {
  min-height: 44px;
  color: #24506f;
  cursor: pointer;
  font-weight: 700;
  line-height: 44px;
}

.report-data-list,
.report-method-grid,
.owner-report-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #dce6ee;
}

.report-data-list > div,
.report-method-grid > div,
.owner-report-detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #f8fbfd;
}

.report-data-list span,
.report-method-grid span,
.owner-report-detail-list span {
  color: #607488;
}

.report-process-panel {
  padding: 13px 16px;
}

.report-table-scroll {
  margin-top: 9px;
  overflow-x: auto;
}

.report-process-table {
  width: 100%;
  border-collapse: collapse;
  color: #173b58;
}

.report-process-table th,
.report-process-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #dce5ec;
  text-align: left;
}

.report-process-table thead th {
  background: #eef5fa;
  color: #52677a;
  font-size: 13px;
}

.report-process-table tbody th {
  font-weight: 700;
}

.report-process-status {
  display: inline-block;
  min-width: 48px;
  padding: 2px 7px;
  border: 1px solid #aab9c5;
  font-size: 12px;
  text-align: center;
}

.report-process-status.is-warning { border-color: #d9711d; color: #a94c07; }
.report-process-status.is-normal { border-color: #168c6b; color: #117357; }
.report-process-status.is-idle { color: #687b8d; }

.report-method-details {
  padding: 8px 16px 14px;
}

.report-method-details p,
.owner-report-more p {
  margin: 10px 0 0;
  color: #607488;
  font-size: 13px;
}

.owner-report-page {
  gap: 10px;
}

.owner-report-title {
  padding: 0 2px;
}

.owner-report-refresh {
  min-width: 64px;
  min-height: 44px;
  border: 1px solid #8ca9c0;
  background: #fff;
  color: #174f79;
  font: inherit;
  font-weight: 700;
}

.owner-report-process-section,
.owner-report-more {
  padding: 12px 14px;
  border: 1px solid #cbd9e5;
  background: #fff;
}

.owner-report-process-list {
  margin-top: 7px;
  border-top: 1px solid #dce5ec;
}

.owner-report-process-row {
  display: grid;
  min-height: 42px;
  padding: 7px 2px;
  border-bottom: 1px solid #dce5ec;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

.owner-report-process-row span {
  color: #163f5e;
  font-weight: 700;
}

.owner-report-process-row em {
  color: #64778a;
  font-size: 12px;
  font-style: normal;
}

.owner-report-more .owner-report-export-button {
  width: 100%;
  margin: 2px 0 10px;
}
