#app .report-export-card {
  flex: 1 1 280px;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
}

.report-export-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 8px 16px;
}

.report-export-heading h2 { font-size: 18px; font-weight: 700; }
.report-export-heading p { margin-top: 5px; }
.report-export-heading p, .report-export-heading > span, .report-export-card li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.report-export-heading > span { white-space: nowrap; }
.report-export-period {
  display: grid;
  gap: 6px;
  border-inline-start: 3px solid var(--green);
  padding: 5px 0 5px 12px;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.report-export-period span { color: var(--muted); font-size: 13px; }
.report-export-card ul { display: grid; gap: 3px; list-style: disc; padding-inline-start: 19px; }
#app .report-export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  height: auto;
  padding: 10px 16px;
  line-height: 1.35;
  text-align: center;
}
.report-export-card .report-export-button { width: 100%; }
.report-export-button img { flex: 0 0 16px; width: 16px; height: 16px; }
#dialog:has(.report-preview) { width: min(760px, calc(100% - 24px)); }
.report-preview { display: grid; gap: 16px; }
.report-document {
  --muted: #455d58;
  --line: #dce6e2;
  color-scheme: light;
  color: #1c2f2d;
  background: #fff;
  padding: clamp(14px, 3vw, 28px);
  border: 1px solid #dce6e2;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.report-document-heading { border-top: 3px solid #14564b; padding-top: 13px; overflow-wrap: anywhere; }
#dialog .report-document-heading p, .report-document-heading p { margin: 0; color: #455d58; }
#dialog .report-document-heading .report-document-brand, .report-document-brand {
  color: #14564b;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.report-document h3 { font-size: 25px; line-height: 1.2; font-weight: 700; margin: 7px 0; }
.report-document-name { font-weight: 700; }
.report-indicators {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 17px 0;
}
.report-indicators div { padding: 9px 10px; border-radius: 6px; background: #eef3f1; }
.report-indicators div:last-child { background: #daeee6; }
.report-indicators dt { color: #455d58; font-size: 11px; }
.report-indicators dd { margin: 4px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.report-document h4 { margin: 0 0 8px; font-weight: 700; font-size: 14px; }
.report-document .table-scroll { overflow-x: auto; }
.report-document table { width: 100%; border-collapse: collapse; }
.report-document :is(th, td) { padding: 7px 8px; text-align: right; white-space: nowrap; color: inherit; }
.report-document :is(th, td):first-child { text-align: left; }
.report-document th, html[data-theme=dark] .report-document th { background: #e3efea; color: #1c2f2d; font-weight: 700; }
.report-document td { border-bottom: 1px solid #e7ecea; font-variant-numeric: tabular-nums; }
#dialog .report-document-source, .report-document-source { margin: 14px 0 0; font-size: 11px; color: #455d58; }
.report-preview-actions { display: flex; justify-content: flex-end; gap: 8px; }
.report-preview-actions button { min-height: 44px; }
#report-print { display: none; }

@media screen and (max-width: 540px) {
  .report-indicators { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-preview-actions button { flex: 1; }
}

@media print {
  @page report-a4 { size: A4; margin: 14mm; }
  html:has(.printing-report), body.printing-report { margin: 0; height: auto; overflow: visible; background: #fff; }
  body.printing-report > :not(#report-print) { display: none !important; }
  body.printing-report > #report-print { display: block; page: report-a4; }
  #report-print .report-document { border: 0; padding: 0; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  #report-print .table-scroll { overflow: visible; }
  #report-print th, #report-print td { font-size: 10pt; }
  #report-print th { color: #1c2f2d; background: #e3efea; }
  #report-print :is(tr, .report-indicators) { break-inside: avoid; }
}
