/* Generic report print rules exclude the dedicated Dubai landscape report. */
/* Readable report typography. Calculator controls and calculation logic are unchanged. */
#reportView:not(.dubai-report-view) .rep-content {
  font-size: 11.5pt;
  line-height: 1.55;
}
#reportView:not(.dubai-report-view) .rep-p,
#reportView:not(.dubai-report-view) .rep-content p,
#reportView:not(.dubai-report-view) .rep-content li,
#reportView:not(.dubai-report-view) .rep-verdict-reasons,
#reportView:not(.dubai-report-view) .rep-verdict-conditions,
#reportView:not(.dubai-report-view) .callout p,
#reportView:not(.dubai-report-view) .sw li {
  font-size: 11.5pt;
  line-height: 1.55;
}
#reportView:not(.dubai-report-view) table.rep-t,
#reportView:not(.dubai-report-view) table.sens,
#reportView:not(.dubai-report-view) table.rep-t th,
#reportView:not(.dubai-report-view) table.sens th,
#reportView:not(.dubai-report-view) .jv-cols .rep-t {
  font-size: 11pt;
  line-height: 1.45;
}
#reportView:not(.dubai-report-view) .rep-h4,
#reportView:not(.dubai-report-view) .sw h4 {
  font-size: 14pt;
  line-height: 1.3;
}
#reportView:not(.dubai-report-view) .rep-ch-head h2 {
  font-size: 18pt;
  line-height: 1.25;
}
#reportView:not(.dubai-report-view) .rep-fig figcaption,
#reportView:not(.dubai-report-view) .kpi-l,
#reportView:not(.dubai-report-view) .kpi-s,
#reportView:not(.dubai-report-view) .jv-kpi-l,
#reportView:not(.dubai-report-view) .jv-kpi-s,
#reportView:not(.dubai-report-view) .rep-toc .toc-row,
#reportView:not(.dubai-report-view) .callout b {
  font-size: 11pt;
  line-height: 1.4;
}
#reportView:not(.dubai-report-view) .kpi-v,
#reportView:not(.dubai-report-view) .jv-kpi-v {
  font-size: 18pt;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

@media print {
  /* Reserve physical space for the existing running header and footer. */
  @page { margin: 20mm 12mm 18mm; }

  html, body {
    height: auto !important;
    overflow: visible !important;
  }
  #reportView:not(.dubai-report-view),
  #reportView:not(.dubai-report-view) .rep-page,
  #reportView:not(.dubai-report-view) .rep-content {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
    zoom: 1 !important;
  }
  #reportView:not(.dubai-report-view) .rep-page {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  #reportView:not(.dubai-report-view) .rep-content { padding: 0 !important; }
  #reportView:not(.dubai-report-view) .rep-runhead,
  #reportView:not(.dubai-report-view) .rep-runfoot {
    left: 0;
    right: 0;
    padding: 2mm 0 !important;
    font-size: 10pt !important;
    line-height: 1.25 !important;
    gap: 5mm;
  }
  #reportView:not(.dubai-report-view) .rep-runhead { top: -15mm; }
  #reportView:not(.dubai-report-view) .rep-runfoot { bottom: -13mm; }
  #reportView:not(.dubai-report-view) .rep-runhead > *,
  #reportView:not(.dubai-report-view) .rep-runfoot > * { min-width: 0; overflow-wrap: anywhere; }

  #reportView:not(.dubai-report-view) .rep-content :is(p, li, small, figcaption),
  #reportView:not(.dubai-report-view) .rep-content .callout b,
  #reportView:not(.dubai-report-view) .rep-content .rep-pill,
  #reportView:not(.dubai-report-view) .rep-content .rep-verdict-h,
  #reportView:not(.dubai-report-view) .rep-content .jv-decision-h,
  #reportView:not(.dubai-report-view) .rep-content .jv-decision-grid span,
  #reportView:not(.dubai-report-view) .rep-content .jv-tl {
    font-size: 11pt !important;
    line-height: 1.5 !important;
  }
  #reportView:not(.dubai-report-view) .rep-content p { font-size: 11.5pt !important; text-align: start; }
  #reportView:not(.dubai-report-view) .rep-content :is(p, li) { orphans: 3; widows: 3; }
  #reportView:not(.dubai-report-view) .rep-content :is(h1, h2, h3, h4),
  #reportView:not(.dubai-report-view) .rep-ch-head { break-after: avoid-page; page-break-after: avoid; }
  #reportView:not(.dubai-report-view) .rep-content h1 { font-size: 23pt !important; line-height: 1.25 !important; }
  #reportView:not(.dubai-report-view) .rep-content h2 { font-size: 18pt !important; line-height: 1.25 !important; }
  #reportView:not(.dubai-report-view) .rep-content :is(h3, h4) { font-size: 14pt !important; line-height: 1.3 !important; }

  /* A long chapter/table may continue onto the next page; keep each row whole. */
  #reportView:not(.dubai-report-view) .rep-chapter,
  #reportView:not(.dubai-report-view) .rep-content table,
  #reportView:not(.dubai-report-view) .rep-content tbody,
  #reportView:not(.dubai-report-view) .rep-twrap,
  #reportView:not(.dubai-report-view) .kpi-grid,
  #reportView:not(.dubai-report-view) .swot,
  #reportView:not(.dubai-report-view) .jv-cols {
    break-inside: auto !important;
    page-break-inside: auto !important;
  }
  #reportView:not(.dubai-report-view) .rep-chapter { padding-top: 3mm !important; }
  #reportView:not(.dubai-report-view) .rep-twrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }
  #reportView:not(.dubai-report-view) .rep-content table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    font-size: 11pt !important;
    border-collapse: collapse;
  }
  #reportView:not(.dubai-report-view) .rep-content :is(th, td) {
    padding: 2mm 1.5mm !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
    letter-spacing: normal !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    vertical-align: top;
  }
  #reportView:not(.dubai-report-view) .rep-content :is(th, td) :is(span, small, b, strong, a) {
    font-size: inherit !important;
    white-space: normal !important;
  }
  #reportView:not(.dubai-report-view) .rep-content thead { display: table-header-group; }
  #reportView:not(.dubai-report-view) .rep-content tfoot { display: table-row-group; }
  #reportView:not(.dubai-report-view) .rep-content tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  #reportView:not(.dubai-report-view) .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #reportView:not(.dubai-report-view) .jv-cols,
  #reportView:not(.dubai-report-view) .swot,
  #reportView:not(.dubai-report-view) .rep-toc { display: block !important; }
  #reportView:not(.dubai-report-view) .jv-cols > *,
  #reportView:not(.dubai-report-view) .swot > * { margin-bottom: 5mm; }
  #reportView:not(.dubai-report-view) .kpi,
  #reportView:not(.dubai-report-view) .jv-kpi,
  #reportView:not(.dubai-report-view) .sw { break-inside: avoid; page-break-inside: avoid; }

  /* Preserve charts and the parcel/location maps at their intrinsic aspect ratio. */
  #reportView:not(.dubai-report-view) figure,
  #reportView:not(.dubai-report-view) .rep-fig { max-width: 100%; break-inside: avoid; page-break-inside: avoid; }
  #reportView:not(.dubai-report-view) figure img,
  #reportView:not(.dubai-report-view) .rep-fig img {
    display: block;
    max-width: 100% !important;
    max-height: 205mm !important;
    height: auto !important;
    object-fit: contain !important;
  }
  #reportView:not(.dubai-report-view) .rep-fig :is(svg, canvas),
  #reportView:not(.dubai-report-view) .rep-canvas {
    max-width: 100% !important;
    max-height: 145mm !important;
    height: auto !important;
    object-fit: contain;
  }
  #reportView:not(.dubai-report-view) .rep-cover-page { overflow: visible; break-after: page; }
  #reportView:not(.dubai-report-view) .rc-meta,
  #reportView:not(.dubai-report-view) .rc-sub,
  #reportView:not(.dubai-report-view) .rc-kick,
  #reportView:not(.dubai-report-view) .rc-tags span,
  #reportView:not(.dubai-report-view) .rc-conf { font-size: 10.5pt; letter-spacing: .04em; }
  #reportView:not(.dubai-report-view) .rc-conf { position: static; padding: 0 8mm 8mm; }

  /* The separate property-valuation print window uses the same readable scale. */
  body.feas-valuation-print { font: 12pt/1.5 Arial, sans-serif; margin: 0; }
  .feas-valuation-print :is(p, li, td, th, small) { font-size: 11pt !important; line-height: 1.45 !important; }
  .feas-valuation-print table { width: 100% !important; min-width: 0 !important; table-layout: fixed; }
  .feas-valuation-print :is(td, th) { white-space: normal !important; overflow-wrap: anywhere; padding: 2mm 1.5mm !important; }
  .feas-valuation-print thead { display: table-header-group; }
  .feas-valuation-print tr { break-inside: avoid; page-break-inside: avoid; }
  .feas-valuation-print :is(h1, h2, h3) { break-after: avoid-page; page-break-after: avoid; }
  .feas-valuation-print h1 { font-size: 22pt !important; }
  .feas-valuation-print h2 { font-size: 18pt !important; }
  .feas-valuation-print h3 { font-size: 14pt !important; }
}
