.report-filters {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 18px;
  margin: 0 0 24px;
}
.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.report-filter-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin: 17px 0 12px;
}
.report-filter-spacer {
  flex: 1;
}
.report-filters small {
  line-height: 1.7;
}
.report-filters .error {
  margin-bottom: 9px;
}
.reference-report {
  margin: 0 0 28px;
  color: #dce0e7;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}
.report-section-head {
  margin-bottom: 15px;
}
.report-section-head h2 {
  font-size: 17px;
  margin: 0 0 7px;
}
.report-section-head p {
  font-size: 11px;
  color: #939cab;
  margin: 0;
}
.report-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
.report-account {
  background: #11141b;
  border: 1px solid #282e39;
  border-radius: 8px;
  padding: 17px 16px;
}
.report-account h2 {
  font-size: 14px;
  margin: 0 0 10px;
}
.report-account > p {
  font-size: 10px;
  color: #939cab;
  line-height: 1.8;
  margin: 0 0 18px;
}
.report-account-pairs,
.report-account-gauges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.report-account-pairs {
  row-gap: 19px;
}
.report-account-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.report-account-cell > span {
  font-size: 11px;
  line-height: 1.4;
  color: #969fad;
}
.report-account-cell > strong {
  font-size: 14px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.1px;
  white-space: nowrap;
}
.report-account-unit {
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 3px;
  color: #8b95a7;
}
.report-account-subhead {
  font-size: 11px;
  font-weight: 500;
  color: #8b95a7;
  border-top: 1px solid #2c313c;
  margin: 20px 0 13px;
  padding-top: 13px;
}
.report-account-gauge {
  gap: 3px;
}
.report-account-gauge > strong {
  font-size: 13px;
}
.report-account-gauge:last-child {
  grid-column: 1 / -1;
}
.report-account-percent {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.15;
  color: #aeb7c6;
  font-variant-numeric: tabular-nums;
}
.report-account-bar {
  height: 4px;
  margin-top: 3px;
  border-radius: 2px;
  background: #262b36;
  overflow: hidden;
}
.report-account-bar > i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #e0594d, #e8b74d, #45bf7d);
}
.report-account-detail {
  border-top: 1px solid #2c313c;
  margin-top: 18px;
  padding-top: 14px;
  row-gap: 15px;
}
.report-account-detail .report-account-cell > strong {
  font-size: 12px;
}
.report-account-note {
  font-size: 10px;
  color: #8792a2;
  line-height: 1.8;
  border-top: 1px solid #2c313c;
  margin-top: 17px;
  padding-top: 14px;
}
.reference-report .positive {
  color: #3fbd7c !important;
}
.reference-report .negative {
  color: #f07489 !important;
}
.report-main {
  min-width: 0;
}
.report-stat-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
}
.report-stat-card {
  background: #080a0e;
  border: 1px solid #282e39;
  min-width: 0;
  overflow: hidden;
  border-radius: 5px;
}
.report-stat-card h2 {
  font-size: 13px;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin: 0;
  padding: 18px 9px;
  background: #090b0e;
}
.report-stat-card dl {
  margin: 0;
}
.report-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 34px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.5;
}
.report-stat-row:nth-child(even) {
  background: #1b1d26;
}
.report-stat-row dt {
  color: #969eab;
  flex: 1;
  min-width: 0;
}
.report-stat-row dd {
  color: #e5e7ed;
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  max-width: 61%;
}
.report-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}
.report-chart-card {
  background: #080a0e;
  border: 1px solid #282e39;
  border-radius: 5px;
  padding: 14px 9px 7px;
  min-width: 0;
}
.report-chart-card h3 {
  font-size: 12px;
  text-align: center;
  margin: 0 0 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.report-chart-card svg {
  width: 100%;
  height: auto;
  display: block;
}
.report-chart-card text {
  font-size: 10px;
  font-family: "Microsoft YaHei UI", sans-serif;
  fill: #919aa9;
}
.report-chart-card .report-pie-total {
  fill: #f1f3f7;
  font-size: 21px;
  font-weight: bold;
}
.report-chart-card .report-axis-note {
  fill: #6f798a;
  font-size: 9px;
}
.report-chart-card .report-peak {
  fill: #dfe3ea;
  font-size: 9px;
  font-weight: 600;
}
.report-chart-hint {
  font-size: 9px;
  line-height: 1.8;
  color: #7f8a9b;
  text-align: center;
  margin: 7px 0 3px;
}
.report-chart-empty {
  min-height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #8993a4;
}
.report-method-note {
  font-size: 10px !important;
  line-height: 1.9;
  color: #8993a4;
  margin: 14px 0 0;
}
.pdf-report {
  margin: 0;
  background: #fff;
  color: #18202d;
  font-family: "Microsoft YaHei", sans-serif;
}
.pdf-report > header {
  border-bottom: 2px solid #233b5b;
  margin-bottom: 16px;
  padding-bottom: 10px;
}
.pdf-report > header h1 {
  font-size: 22px;
  margin: 0 0 6px;
}
.pdf-report > header p {
  font-size: 10px;
  margin: 3px 0;
  color: #596477;
}
.pdf-report > footer {
  font-size: 9px;
  color: #596477;
  border-top: 1px solid #ccd2db;
  padding-top: 8px;
  margin-top: 10px;
}
.pdf-extra {
  font-size: 11px;
  line-height: 1.8;
  border: 1px solid #d5dbe4;
  padding: 8px 12px;
  margin-top: 10px;
}
@media screen and (max-width: 1250px) {
  .report-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .report-account-pairs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .report-account-gauges {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
  }
  .report-account-gauge:last-child {
    grid-column: auto;
  }
  .report-account > p {
    margin-bottom: 15px;
  }
  .report-account-note {
    margin-top: 14px;
  }
  .report-stat-row {
    font-size: 11px;
  }
}
@media screen and (max-width: 760px) {
  .report-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-filter-actions button {
    font-size: 11px;
    padding: 9px;
  }
  .report-filter-spacer {
    display: none;
  }
  .report-stat-columns,
  .report-chart-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .report-account-pairs,
  .report-account-gauges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-account-gauge:last-child {
    grid-column: 1 / -1;
  }
  .report-stat-row {
    font-size: 12px;
    padding: 9px 13px;
  }
  .report-chart-card svg {
    max-width: 420px;
    margin: auto;
  }
  .report-chart-card h3 {
    font-size: 13px;
  }
  .report-filters {
    padding: 14px;
  }
}
@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }
  .reference-report {
    color: #15202c;
    margin: 0;
  }
  .report-layout {
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 10px;
  }
  .report-account,
  .report-stat-card,
  .report-chart-card {
    background: white;
    border-color: #b8c1ce;
    box-shadow: none;
    border-radius: 3px;
  }
  .report-account {
    padding: 9px 8px;
  }
  .report-account h2 {
    font-size: 12px;
  }
  .report-account > p {
    font-size: 8px;
    margin-bottom: 10px;
  }
  .report-account-pairs,
  .report-account-gauges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .report-account-gauge:last-child {
    grid-column: 1 / -1;
  }
  .report-account-subhead {
    margin: 8px 0 7px;
    padding-top: 7px;
    font-size: 8px;
  }
  .report-account-cell > span {
    font-size: 7px;
    color: #576477;
  }
  .report-account-cell > strong {
    font-size: 8px;
  }
  .report-account-gauge > strong {
    font-size: 8px;
  }
  .report-account-percent {
    font-size: 9px;
    color: #576477;
  }
  .report-account-unit {
    font-size: 5px;
    margin-left: 2px;
  }
  .report-account-bar {
    height: 3px;
    background: #dde3ec;
  }
  .report-account-bar > i {
    background: #2c9464;
  }
  .report-account-detail {
    margin-top: 9px;
    padding-top: 8px;
  }
  .report-chart-hint {
    font-size: 7px;
    margin: 3px 0 1px;
  }
  .report-account-note {
    font-size: 8px;
    line-height: 1.6;
    margin-top: 12px;
    padding-top: 10px;
  }
  .report-section-head {
    margin-bottom: 8px;
  }
  .report-section-head h2 {
    font-size: 13px;
  }
  .report-section-head p {
    font-size: 9px;
    color: #576477;
  }
  .report-stat-card h2 {
    background: #edf1f6;
    color: #192a40;
    font-size: 11px;
    padding: 10px 6px;
  }
  .report-stat-row {
    font-size: 8px;
    min-height: 0;
    padding: 3px 7px;
    line-height: 1.4;
    break-inside: avoid;
  }
  .report-stat-row dt {
    color: #506078;
  }
  .report-stat-row dd {
    color: #182333;
  }
  .report-stat-row:nth-child(even) {
    background: #f0f3f7;
  }
  .report-chart-grid {
    margin-top: 8px;
  }
  .report-chart-card {
    padding: 10px 7px 5px;
    break-inside: avoid;
  }
  .report-chart-card h3 {
    font-size: 10px;
    margin-bottom: 5px;
  }
  .report-chart-card svg {
    max-height: 140px;
  }
  .report-chart-card text {
    fill: #4d5b6f;
  }
  .report-chart-card .report-pie-total {
    fill: #17283f;
  }
  .report-chart-card .report-peak {
    fill: #17283f;
  }
  .report-chart-empty {
    min-height: 140px;
  }
  .report-method-note {
    font-size: 8px !important;
    line-height: 1.6;
    color: #556278;
    margin-top: 8px;
  }
  .pdf-report > header {
    margin-bottom: 10px;
  }
  .pdf-report > header h1 {
    font-size: 17px;
  }
  .pdf-extra {
    font-size: 9px;
  }
  .report-stat-columns {
    align-items: stretch;
  }
}
