.modal-content.pdf-mode-modal-content {
  max-width: 640px;
  width: 100%;
  text-align: left;
  position: relative;
}

.pdf-mode-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted, #71717a);
  padding: 0.25rem;
}

.pdf-mode-subtitle {
  color: var(--text-secondary, #71717a);
  margin: 0.25rem 0 1.25rem;
}

.pdf-mode-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 560px) {
  .pdf-mode-options {
    grid-template-columns: 1fr 1fr;
  }
}

.pdf-mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  background: var(--card-bg, #fff);
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  padding: 1.1rem 1rem 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, transform 0.1s ease,
    box-shadow 0.15s ease;
}

.pdf-mode-card:hover,
.pdf-mode-card:focus-visible {
  border-color: #4338ca;
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.pdf-mode-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #4338ca;
  color: #fff;
}

.pdf-mode-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main, #1e293b);
}

.pdf-mode-desc {
  font-size: 0.85rem;
  color: var(--text-secondary, #475569);
  line-height: 1.45;
}

.pdf-mode-meta {
  margin-top: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: #4338ca;
  letter-spacing: 0.01em;
}
#printReportRoot {
  position: fixed;
  left: -99999px;
  top: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}

body.printing-report #printReportRoot {
  position: static;
  left: auto;
  width: auto;
  height: auto;
  overflow: visible;
}

body.printing-report .dashboard-page,
body.printing-report #pdfProcessingModal,
body.printing-report #pdfModeModal {
  display: none !important;
}

.report-doc {
  --report-ink: #1e1b2e;
  --report-muted: #5b5b6b;
  --report-accent: #4338ca;
  --report-line: #d8d8e3;
  background: #fff;
  color: var(--report-ink);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 11pt;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
}

.report-doc h1,
.report-doc h2,
.report-doc h3 {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--report-ink);
  margin: 0;
}

.report-cover {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  page-break-after: always;
  position: relative;
}

.report-cover .report-kicker {
  font-size: 11pt;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--report-accent);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.report-cover h1 {
  font-size: 34pt;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.report-cover .report-cover-sub {
  font-size: 15pt;
  color: var(--report-muted);
  margin-top: 0.8rem;
  font-weight: 500;
}

.report-cover-meta {
  margin-top: 3rem;
  border-top: 1.5px solid var(--report-line);
  padding-top: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  font-size: 10pt;
  color: var(--report-muted);
  max-width: 460px;
}

.report-cover-meta strong {
  color: var(--report-ink);
  display: block;
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.report-section {
  page-break-inside: avoid;
  margin-bottom: 1.8rem;
}

.report-section-title {
  font-size: 16pt;
  font-weight: 800;
  border-bottom: 2px solid var(--report-accent);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.report-section-title .report-section-num {
  color: var(--report-accent);
  font-weight: 800;
}

.report-entity-block {
  page-break-before: always;
}

.report-entity-block.report-no-break-before {
  page-break-before: auto;
}

.report-subsection-title {
  font-size: 13pt;
  font-weight: 700;
  color: var(--report-accent);
  margin: 1.4rem 0 0.7rem;
}

.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 0.8rem 0 1.2rem;
}

.report-stat-box {
  border: 1.2px solid var(--report-line);
  border-radius: 6px;
  padding: 0.6rem 0.4rem;
  text-align: center;
}

.report-stat-box .v {
  font-size: 15pt;
  font-weight: 800;
  color: var(--report-ink);
  display: block;
}

.report-stat-box .l {
  font-size: 8pt;
  color: var(--report-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.report-chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.8rem 0;
  align-items: start;
}

.report-chart-box {
  border: 1px solid var(--report-line);
  border-radius: 6px;
  padding: 0.7rem;
  text-align: left;
}

.report-chart-box .report-chart-label {
  font-size: 9.5pt;
  font-weight: 700;
  color: var(--report-ink);
  margin-bottom: 0.4rem;
  text-align: center;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.5pt;
  margin: 0.6rem 0 1rem;
}

.report-table caption {
  text-align: left;
  font-size: 9pt;
  color: var(--report-muted);
  margin-bottom: 0.3rem;
}

.report-table th,
.report-table td {
  border: 1px solid var(--report-line);
  padding: 0.4rem 0.5rem;
  text-align: left;
}

.report-table th {
  background: #f3f1fb;
  font-weight: 700;
  color: var(--report-ink);
}

.report-table td.num,
.report-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.report-table tr.report-row-warn td {
  background: #fdf2f2;
}

.report-footnote {
  font-size: 8.5pt;
  color: var(--report-muted);
  margin-top: 1rem;
  border-top: 1px solid var(--report-line);
  padding-top: 0.5rem;
}

.report-toc {
  margin-top: 2.5rem;
}

.report-toc-item {
  display: flex;
  justify-content: space-between;
  font-size: 10.5pt;
  padding: 0.35rem 0;
  border-bottom: 1px dotted var(--report-line);
}

.report-insight-list {
  margin: 0.6rem 0 1rem;
  padding-left: 1.1rem;
}

.report-insight-list li {
  margin-bottom: 0.45rem;
  font-size: 10pt;
}

.report-page-footer {
  display: none;
}

.report-chart-flex {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.report-svg-chart {
  flex-shrink: 0;
  overflow: visible;
}

.report-bar-svg {
  max-width: 100%;
}

.report-legend {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 8.5pt;
}

.report-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--report-ink);
}

.report-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.report-bar-label {
  font-size: 8.5px;
  font-family: "Inter", Arial, sans-serif;
  fill: var(--report-ink);
}

.report-bar-value {
  font-size: 8.5px;
  font-family: "Inter", Arial, sans-serif;
  fill: var(--report-muted);
  font-weight: 600;
}

.report-empty-note,
.report-flag-note {
  font-size: 9pt;
  color: var(--report-muted);
}

.report-flag-note {
  color: #b91c1c;
  font-weight: 600;
  margin-top: 0.5rem;
}

@media print {
  @page {
    size: A4;
    margin: 16mm 14mm 18mm 14mm;
  }

  html,
  body {
    background: #fff !important;
  }

  .report-doc {
    max-width: none;
  }

  .report-section,
  .report-entity-block {
    break-inside: avoid;
  }

  .report-cover {
    page-break-after: always;
  }
}

.spinner-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color, #e2e8f0);
  border-top: 4px solid #4338ca;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.progress-container {
  width: 100%;
  height: 8px;
  background-color: var(--border-color, #e2e8f0);
  border-radius: 4px;
  margin: 1rem 0;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background-color: #4338ca;
  width: 0%;
  transition: width 0.3s ease;
}
