/* Shared on-screen and isolated A4 document. No workspace chrome is copied. */
.report-document {
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: #24445d;
  background: #fff;
  border: 1px solid #d9e8f4;
  border-radius: 24px;
  padding: 32px;
  max-width: 980px;
  margin: 0 auto;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.report-masthead {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 3px solid #a8d4f3;
  padding-bottom: 16px;
  font-size: 12px;
  color: #53728b;
}
.report-document h1 {
  font-size: 28px;
  line-height: 1.4;
  margin: 24px 0 8px;
  font-weight: 750;
}
.report-document h2 {
  font-size: 18px;
  line-height: 1.5;
  margin: 28px 0 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid #d9e8f4;
  break-after: avoid;
}
.report-document p {
  font-size: 14px;
  margin: 8px 0;
  white-space: pre-wrap;
}
.report-document .report-caption {
  font-size: 12px;
  color: #53728b;
}
.report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #edf6ff;
  border-radius: 16px;
  margin: 24px 0;
  padding: 16px;
  gap: 12px;
}
.report-metrics div {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.report-metrics strong {
  font-size: 27px;
}
.report-metrics span {
  font-size: 12px;
}
.report-chart {
  margin: 20px 0;
}
.report-legend {
  color: #397da9;
}
.report-legend span {
  color: #477f75;
  margin-left: 12px;
}
.report-bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(80px, 3fr) 112px;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
  font-size: 12px;
  break-inside: avoid;
}
.report-bar-track {
  height: 18px;
  background: #f0f5fa;
  border-radius: 5px;
  display: flex;
  overflow: hidden;
}
.report-bar-track i {
  background: #88bcdf;
}
.report-bar-track b {
  background: #a7d4cc;
}
.report-bar-row small {
  font-size: 11px;
  text-align: right;
}
.report-item {
  padding-left: 14px;
  border-left: 3px solid #d9ebfc;
}
.report-document a {
  color: #236791;
  text-decoration: underline;
}
@media (max-width: 600px) {
  .report-document {
    padding: 18px;
    border-radius: 16px;
  }
  .report-document h1 {
    font-size: 22px;
  }
  .report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-masthead {
    flex-direction: column;
    gap: 4px;
  }
  .report-bar-row {
    grid-template-columns: 80px minmax(50px, 1fr);
    gap: 8px;
  }
  .report-bar-row small {
    grid-column: 2;
    text-align: left;
  }
}
@media print {
  @page {
    size: A4;
    margin: 16mm 14mm;
  }
  html,
  body {
    margin: 0;
    padding: 0;
    background: #fff;
  }
  .report-document {
    border: 0;
    border-radius: 0;
    padding: 0;
    max-width: none;
    color: #172f43;
    font-size: 10pt;
  }
  .report-document h1 {
    font-size: 21pt;
  }
  .report-document h2 {
    font-size: 13pt;
  }
  .report-document p {
    font-size: 10pt;
    orphans: 3;
    widows: 3;
  }
  .report-metrics {
    break-inside: avoid;
  }
  .report-masthead {
    break-after: avoid;
  }
  .report-document * {
    animation: none !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .report-bar-row {
    grid-template-columns: 110px 1fr 112px;
  }
  .report-prose {
    overflow: visible;
  }
  .report-document a {
    overflow-wrap: anywhere;
  }
}

.report-document h3 { font-size: 14px; margin: 16px 0 5px; color: #24445d; break-after: avoid; }
.report-document ul, .report-document ol { padding-left: 24px; font-size: 14px; }
.report-document li { margin: 5px 0; }
.report-document table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 16px 0; }
.report-document th,.report-document td { padding: 9px; border: 1px solid #d9e8f4; text-align: left; vertical-align: top; }
.report-document th { background: #edf6ff; }
.report-document code { font-family: monospace; background: #f0f5fa; padding: 1px 4px; }
.report-table-wrap { overflow-x: auto; }
.report-page-capture { margin: 24px 0; break-inside: avoid; }
.report-page-capture img { display: block; width: 100%; height: auto; border: 1px solid #d9e8f4; }
.report-page-capture figcaption { font-size: 12px; margin-bottom: 8px; }
@media print {
  .report-evidence { break-before: page; }
  .report-page-capture { break-before: page; }
  .report-page-capture img { max-height: 235mm; width: auto; max-width: 100%; margin: 0 auto; }
  .report-document thead { display: table-header-group; }
  .report-document tr { break-inside: avoid; }
  .report-table-wrap { overflow: visible; }
}

.report-inline-evidence { margin: 14px 0 20px; }
.report-crop { margin: 14px 0; padding: 12px; background: #f6faff; border: 1px solid #d9e8f4; border-radius: 10px; break-inside: avoid; }
.report-crop figcaption { font-size: 11px; line-height: 1.5; margin-bottom: 8px; }
.report-crop img { display: block; width: 100%; height: auto; }
@media print { .report-crop { break-before: auto; padding: 8px; } .report-crop img { max-height: 95mm; width: auto; max-width: 100%; margin: auto; } }
