:root {
  --ink: #17352d;
  --muted: #66736f;
  --line: #c9dad3;
  --line-strong: #a9c5ba;
  --paper: #ffffff;
  --canvas: #eef3f0;
  --green: #1f6b4e;
  --green-dark: #124b36;
  --green-soft: #e7f2ed;
  --rose: #a94262;
  --rose-soft: #f8e9ee;
  --amber: #a76c17;
  --amber-soft: #fff4dc;
  --blue: #386b86;
  --blue-soft: #e8f1f5;
  --danger: #a13c3c;
  --shadow: 0 12px 32px rgba(22, 54, 44, 0.1);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { background: var(--canvas); }

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
}

button,
input,
select,
textarea { font: inherit; }

button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 8px 13px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

button:hover { border-color: var(--green); background: var(--green-soft); }
button:disabled { cursor: wait; opacity: 0.72; }
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 3px solid rgba(31, 107, 78, 0.18); outline-offset: 1px; }

button.primary {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #fff;
}

button.primary:hover { background: var(--green); }

.hidden { display: none !important; }

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 3px 14px rgba(22, 54, 44, 0.06);
}

.brand-lockup { display: flex; align-items: center; gap: 12px; min-width: 310px; }
.brand-lockup img { width: 104px; height: 38px; object-fit: contain; }
.brand-lockup div { display: grid; gap: 2px; }
.brand-lockup strong { font-size: 16px; }
.brand-lockup span { color: var(--muted); font-size: 12px; }
.topbar nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.topbar nav button { min-height: 36px; white-space: nowrap; }

.app-view { width: min(1440px, calc(100% - 34px)); margin: 24px auto 46px; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--rose); font-size: 11px; font-weight: 800; text-transform: uppercase; }

h1,
h2,
h3,
p { margin-top: 0; }

.dashboard { display: grid; gap: 14px; max-width: 1080px; }
.dashboard-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 110px;
  padding: 23px 28px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.dashboard-hero { min-height: 230px; border-left: 5px solid var(--green); }
.dashboard-band h1 { max-width: 720px; margin-bottom: 10px; font-size: 30px; line-height: 1.12; }
.dashboard-band h2 { margin-bottom: 0; font-size: 20px; }
.dashboard-band p { max-width: 700px; margin-bottom: 0; color: var(--muted); line-height: 1.55; }

.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 20px 22px;
  border-left: 5px solid var(--green);
  background: #fff;
}

.view-header h1 { margin-bottom: 0; font-size: 25px; }

.search-panel,
.settings-section,
.editor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.search-panel { padding: 22px; }
.search-panel > label { max-width: 760px; }

label {
  display: grid;
  gap: 6px;
  color: #39534a;
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #b9cec5;
  border-radius: 5px;
  padding: 10px 11px;
  background: #fff;
  color: #182f28;
  line-height: 1.35;
}

textarea { resize: vertical; }
input::placeholder,
textarea::placeholder { color: #94a49e; }

.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .wide { grid-column: 1 / -1; }
.setting-toggle { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #f7faf8; cursor: pointer; }
.setting-toggle input { flex: 0 0 19px; width: 19px; height: 19px; margin: 0; accent-color: var(--green); }
.setting-toggle span { display: grid; gap: 3px; }
.setting-toggle small { color: var(--muted); font-size: 11px; font-weight: 500; }
.scope-field { padding: 12px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 6px; background: var(--blue-soft); }
.scope-field small { color: #577068; font-size: 11px; font-weight: 500; line-height: 1.35; }

.history-results { display: grid; gap: 12px; margin-top: 18px; }
.empty-history,
.empty-config {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 34px 20px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
}

.empty-history b { color: var(--ink); }

.patient-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: #fbfdfc;
}

.patient-result > div { display: grid; gap: 4px; }
.patient-result > div span { color: var(--muted); font-size: 12px; }
.patient-result > section { grid-column: 1 / -1; display: grid; gap: 7px; }
.version-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-top: 1px solid var(--line); }
.version-card > span { display: grid; gap: 2px; }
.version-card > span span { color: var(--muted); font-size: 11px; }
.version-card > div { display: flex; flex-wrap: wrap; gap: 6px; }

.settings-view { max-width: 1120px; }
.settings-section { margin-bottom: 14px; padding: 20px; }
.settings-title,
.section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.settings-title > span,
.section-heading > span {
  display: grid;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.settings-title h2,
.section-heading h2 { margin-bottom: 3px; font-size: 19px; }
.settings-title p,
.section-heading p { margin-bottom: 0; color: var(--muted); font-size: 12px; }

.config-toolbar {
  position: sticky;
  z-index: 4;
  top: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -5px 0 14px;
  padding: 10px 0;
  background: #fff;
}

.config-toolbar > input { max-width: 440px; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #f5f8f6; }
.segmented button { min-height: 32px; border: 0; background: transparent; }
.segmented button.active { background: var(--green-dark); color: #fff; }

.config-variants { display: grid; gap: 9px; }
.config-variant { border: 1px solid var(--line); border-radius: 6px; background: #fbfdfc; overflow: hidden; }
.config-variant > summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.config-variant > summary::-webkit-details-marker { display: none; }
.config-variant > summary > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 800; }
.config-variant > summary > div { display: grid; gap: 3px; }
.config-variant > summary small { color: var(--muted); font-size: 11px; }
.config-variant > summary i { color: var(--amber); font-size: 11px; font-style: normal; font-weight: 800; }
.config-variant[open] > summary { border-bottom: 1px solid var(--line); background: #f3f8f5; }

.template-list { display: grid; gap: 10px; padding: 12px; }
.template-row { border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 5px; background: #fff; }
.template-row.provisional { border-left-color: var(--amber); }
.template-row > header { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #e3ece8; }
.template-row > header span { border-radius: 4px; padding: 3px 7px; background: var(--amber-soft); color: var(--amber); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.template-row > header span.configured { background: var(--green-soft); color: var(--green); }
.template-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(120px, 1fr); gap: 10px; padding: 12px; }
.template-interpretation { grid-column: 1 / -1; }

.settings-actions {
  position: sticky;
  z-index: 8;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 -5px 18px rgba(22, 54, 44, 0.08);
}

#settingsStatus { color: var(--muted); font-size: 12px; }

.workspace {
  display: grid;
  grid-template-columns: minmax(480px, 0.92fr) minmax(630px, 1.08fr);
  align-items: start;
  gap: 18px;
}

.editor-panel { display: grid; gap: 14px; min-width: 0; }
.editor-card { padding: 18px; }

.result-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f3f7f5;
}

.result-tabs button { border: 0; background: transparent; }
.result-tabs button.active { background: var(--green-dark); color: #fff; }
.result-tabs.single-panel { grid-template-columns: minmax(0, 1fr); }
.variant-editor { display: grid; gap: 10px; }

.variant-card { border: 1px solid var(--line); border-radius: 6px; background: #fbfdfc; overflow: hidden; }
.variant-card.has-provisional { border-color: #dec28e; }
.variant-card > header { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.variant-card > header > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; }
.variant-card h3 { margin-bottom: 3px; font-size: 14px; }
.variant-card header p { margin-bottom: 0; color: var(--muted); font-size: 10px; }
.provisional-badge { border-radius: 4px; padding: 4px 6px; background: var(--amber-soft); color: var(--amber); font-size: 9px; text-transform: uppercase; }
.variant-fields { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(110px, 0.7fr); gap: 10px; padding: 12px; }
.interpretation-field { grid-column: 1 / -1; }

.preview-shell {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  min-width: 0;
  overflow: auto;
  border: 1px solid #b9cac3;
  background: #d9e1dd;
  box-shadow: var(--shadow);
}

.preview-toolbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-bottom: 1px solid #b9cac3;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.report { display: grid; justify-items: center; gap: 18px; padding: 18px; }
.report-page {
  position: relative;
  width: 210mm;
  height: 297mm;
  min-width: 210mm;
  padding: 11mm 12mm 13mm;
  overflow: hidden;
  background: #fff;
  color: #18342c;
  box-shadow: 0 3px 14px rgba(21, 51, 42, 0.15);
  font-family: Arial, Helvetica, sans-serif;
}

.pdf-exporting .report-page { box-shadow: none; }

.report-header { display: grid; grid-template-columns: 39mm minmax(0, 1fr); align-items: center; gap: 5mm; min-height: 19mm; margin-bottom: 4mm; padding-bottom: 3mm; border-bottom: 0.35mm solid #a6c9ba; }
.report-header.compact { min-height: 15mm; margin-bottom: 3.5mm; }
.report-header img { width: 37mm; height: 14mm; object-fit: contain; object-position: left center; }
.report-header div { border-left: 0.7mm solid var(--rose); padding-left: 4mm; }
.report-header h1 { margin-bottom: 1.2mm; color: var(--rose); font-size: 14pt; line-height: 1.05; }
.report-header p { margin-bottom: 0; color: #536c63; font-size: 8.3pt; font-weight: 700; line-height: 1.25; }

.patient-band { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 1.3mm; margin-bottom: 2.4mm; }
.patient-band div { display: grid; gap: 0.7mm; min-height: 11mm; padding: 2.2mm 2.5mm; border: 0.25mm solid #c1d8ce; background: #f7faf8; }
.patient-band div:nth-child(n+4) { grid-column: span 1; }
.patient-band small { color: #547066; font-size: 5.8pt; font-weight: 800; }
.patient-band b { overflow-wrap: anywhere; font-size: 7.5pt; line-height: 1.2; }

.method-note { margin-bottom: 2.6mm; padding: 2.4mm 3mm; border-left: 1mm solid var(--blue); background: var(--blue-soft); font-size: 6.8pt; line-height: 1.35; }
.report-section-title { display: flex; align-items: center; gap: 2.4mm; margin: 3mm 0 2mm; padding-bottom: 1.5mm; border-bottom: 0.25mm solid #b9d2c7; }
.report-section-title > span { display: grid; flex: 0 0 7mm; width: 7mm; height: 7mm; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 7.5pt; font-weight: 800; }
.report-section-title h2 { margin-bottom: 0; font-size: 10.5pt; line-height: 1.1; }
.report-section-title p { margin: 0.5mm 0 0; color: var(--muted); font-size: 6.2pt; }

.criteria-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5mm; }
.criteria-grid div { min-height: 16mm; padding: 2.2mm 2.5mm; border: 0.25mm solid #c6d9d1; background: #fbfdfc; }
.criteria-grid div:nth-child(1) { border-top: 1mm solid var(--green); }
.criteria-grid div:nth-child(2) { border-top: 1mm solid var(--amber); }
.criteria-grid div:nth-child(3) { border-top: 1mm solid var(--rose); }
.criteria-grid b { display: block; margin-bottom: 1mm; font-size: 6.7pt; }
.criteria-grid p { margin-bottom: 0; color: #53665f; font-size: 6pt; line-height: 1.3; }

.variant-stack { display: grid; gap: 1.7mm; }
.report-variant { border: 0.25mm solid #c4d8d0; background: #fff; }
.report-variant > header { display: grid; grid-template-columns: 7mm minmax(0, 1fr); align-items: center; gap: 2mm; padding: 1.5mm 2.4mm; background: #eaf3ef; }
.report-variant > header > span { display: grid; width: 5.5mm; height: 5.5mm; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 6.5pt; font-weight: 800; }
.report-variant > header > div { display: block; }
.report-variant > header b { font-size: 6.8pt; }
.report-variant > p { margin: 0; padding: 1.4mm 2.5mm; border-top: 0.2mm solid #dbe6e1; font-size: 6.25pt; line-height: 1.28; }
.report-variant > p.hgvs-line { background: #f7faf8; color: #4c675d; font-size: 5.9pt; }
.report-variant > p:last-child { min-height: 10mm; }
.result-tag { display: inline-block; padding: 0.6mm 1.4mm; border-radius: 2mm; font-size: 5.8pt; font-weight: 800; }
.result-tag.reference { background: var(--green-soft); color: var(--green-dark); }
.result-tag.heterozygous { background: var(--amber-soft); color: #865715; }
.result-tag.variant { background: var(--rose-soft); color: #842b48; }
.result-tag.pending { background: #edf0ef; color: #5e6864; }

.summary-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 5.7pt; }
.summary-table th,
.summary-table td { border: 0.22mm solid #bcd2c8; padding: 1.2mm 1.4mm; vertical-align: top; overflow-wrap: anywhere; line-height: 1.25; }
.summary-table th { background: #dfece6; color: #294a3f; font-size: 5.5pt; text-transform: uppercase; }
.summary-table th:nth-child(1) { width: 5%; }
.summary-table th:nth-child(2) { width: 22%; }
.summary-table th:nth-child(3) { width: 21%; }
.summary-table th:nth-child(4) { width: 19%; }
.summary-table th:nth-child(5) { width: 33%; }
.summary-table.no-hgvs th:nth-child(1) { width: 5%; }
.summary-table.no-hgvs th:nth-child(2) { width: 25%; }
.summary-table.no-hgvs th:nth-child(3) { width: 25%; }
.summary-table.no-hgvs th:nth-child(4) { width: 45%; }
.summary-table tbody tr:nth-child(even) { background: #f7faf8; }

.integrated-summary { display: grid; gap: 1mm; padding: 2.6mm 3mm; border: 0.25mm solid #c1d7cd; background: #f7faf8; font-size: 7pt; line-height: 1.35; }
.integrated-summary p { margin-bottom: 0; }
.risk-banner { display: flex; align-items: center; justify-content: space-between; gap: 4mm; margin: 2.5mm 0; padding: 2.5mm 3.5mm; border-left: 1.2mm solid currentColor; }
.risk-banner small { font-size: 6pt; font-weight: 800; }
.risk-banner b { font-size: 11pt; }
.risk-banner.risk-low { background: var(--green-soft); color: var(--green-dark); }
.risk-banner.risk-medium { background: var(--amber-soft); color: #84540f; }
.risk-banner.risk-high { background: var(--rose-soft); color: #842b48; }
.risk-banner.risk-indeterminate { background: var(--blue-soft); color: #315c74; }
.integrated-text,
.additional-text,
.biochemical-note { padding: 2.5mm 3mm; border: 0.25mm solid #c7d9d1; font-size: 7pt; line-height: 1.4; }
.additional-text { margin-top: 1.8mm; border-left: 1mm solid var(--amber); background: #fffaf0; }
.additional-text b { display: block; margin-bottom: 1mm; }
.additional-text p { margin-bottom: 0; }
.biochemical-note { border-left: 1mm solid var(--blue); background: var(--blue-soft); }
.bibliography { margin: 0; padding: 0 0 0 5mm; font-size: 5.6pt; line-height: 1.3; }
.bibliography li { margin-bottom: 0.8mm; padding-left: 0.7mm; }
.legal-note { margin-top: 2mm; padding: 2.2mm 2.7mm; border: 0.25mm solid #d7c89d; background: #fff9e9; color: #514b3d; font-size: 5.7pt; font-weight: 700; line-height: 1.28; }

.signature { position: absolute; right: 12mm; bottom: 15mm; display: flex; justify-content: flex-end; width: 62mm; text-align: center; }
.signature > div { display: grid; justify-items: center; width: 100%; }
.signature img { width: 28mm; height: 12mm; object-fit: contain; margin-bottom: -2mm; }
.signature span { width: 100%; border-top: 0.28mm solid #2d463d; }
.signature b { margin-top: 1mm; font-size: 7pt; }
.signature small { margin-top: 0.7mm; font-size: 5.6pt; line-height: 1.2; }

.report-footer { position: absolute; right: 12mm; bottom: 5mm; left: 12mm; display: flex; align-items: center; justify-content: space-between; padding-top: 1.6mm; border-top: 0.25mm solid #b9d2c7; color: #60756d; font-size: 5.6pt; }
.report-footer b { display: grid; width: 5mm; height: 5mm; place-items: center; border-radius: 50%; background: var(--green); color: #fff; }

.instructions-dialog { width: min(760px, calc(100vw - 30px)); max-height: 88vh; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); }
.instructions-dialog::backdrop { background: rgba(16, 36, 30, 0.55); }
.instructions-dialog > header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.instructions-dialog > header div { display: grid; gap: 2px; }
.instructions-dialog > header span { color: var(--muted); font-size: 11px; }
.instructions-content { padding: 18px 24px 24px; }
.instructions-content ol { display: grid; gap: 12px; margin: 0; padding-left: 22px; line-height: 1.5; }
.instructions-content li { padding-left: 4px; }

.toast { position: fixed; z-index: 100; right: 20px; bottom: 20px; max-width: min(420px, calc(100vw - 40px)); transform: translateY(15px); border-radius: 6px; padding: 12px 15px; background: var(--green-dark); color: #fff; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity 160ms ease, transform 160ms ease; }
.toast[data-tone="error"] { background: var(--danger); }
.toast.show { transform: translateY(0); opacity: 1; }
.fatal-error { display: grid; justify-items: center; gap: 8px; max-width: 620px; margin: 80px auto; padding: 30px; border: 1px solid #dfb6b6; background: #fff; color: var(--danger); text-align: center; }

@media (max-width: 1120px) {
  .topbar { position: static; align-items: flex-start; flex-direction: column; }
  .topbar nav { justify-content: flex-start; }
  .workspace { grid-template-columns: 1fr; }
  .preview-shell { position: static; max-height: none; }
  .config-toolbar { top: 0; }
}

@media (max-width: 680px) {
  body { font-size: 14px; }
  .topbar { gap: 12px; padding: 10px 12px; }
  .brand-lockup { min-width: 0; width: 100%; }
  .brand-lockup img { width: 88px; }
  .brand-lockup strong { font-size: 14px; }
  .topbar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .topbar nav button { white-space: normal; }
  .app-view { width: calc(100% - 18px); margin-top: 12px; }
  .dashboard-band,
  .view-header { align-items: stretch; flex-direction: column; padding: 18px; }
  .dashboard-hero { min-height: 0; }
  .dashboard-band h1 { font-size: 24px; }
  .form-grid.two,
  .template-fields,
  .variant-fields { grid-template-columns: minmax(0, 1fr); }
  .form-grid .wide,
  .template-interpretation,
  .interpretation-field { grid-column: auto; }
  .config-toolbar { align-items: stretch; flex-direction: column; }
  .config-toolbar > input { max-width: none; }
  .segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .config-variant > summary { grid-template-columns: 32px minmax(0, 1fr); }
  .config-variant > summary i { grid-column: 2; }
  .settings-actions { align-items: stretch; flex-direction: column; }
  .patient-result { grid-template-columns: minmax(0, 1fr); }
  .patient-result > section { grid-column: auto; }
  .version-card { align-items: flex-start; flex-direction: column; }
  .variant-card > header { grid-template-columns: 32px minmax(0, 1fr); }
  .provisional-badge { grid-column: 2; justify-self: start; }
  .preview-toolbar { position: static; }
  .report { justify-items: start; padding: 10px; }
  .instructions-dialog > header { align-items: flex-start; }
}

@media print {
  @page { size: A4 portrait; margin: 0; }
  html,
  body { width: 210mm; margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body * { visibility: hidden !important; }
  #report,
  #report * { visibility: visible !important; }
  #report { position: absolute; top: 0; left: 0; display: block; width: 210mm; margin: 0; padding: 0; }
  .report-page { width: 210mm; height: 297mm; min-width: 210mm; margin: 0; break-after: page; page-break-after: always; box-shadow: none; }
  .report-page:last-child { break-after: auto; page-break-after: auto; }
}
