/* 2.84: final A4 layout for individual oocyte/embryo freezing reports.
   Keep physical page width and CSS margins consistent; do not shrink to fit. */
@page{size:A4 portrait;margin:0}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report){box-sizing:border-box!important;width:210mm!important;max-width:210mm!important;min-height:296mm!important;height:auto!important;padding:12mm 13mm!important;display:flex!important;flex-direction:column!important;gap:3mm!important;font-size:11.5pt!important;line-height:1.4!important;break-inside:auto!important;page-break-inside:auto!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-letterhead{display:grid!important;grid-template-columns:20mm minmax(0,1fr) 43mm;grid-template-rows:auto auto;gap:1.5mm 4mm;align-items:center;min-height:22mm!important;margin:0 0 2mm!important;padding:0 0 4mm!important;text-align:start!important;border:0!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-logo{grid-column:1;grid-row:1/3;width:20mm!important;height:20mm!important;margin:0!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-head-ar{grid-column:2;grid-row:1;font-size:17pt!important;line-height:1.25!important;text-align:start}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-head-en{grid-column:2;grid-row:2;font-size:11pt!important;line-height:1.3!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-code{grid-column:3;grid-row:1/3;position:static!important;min-width:0!important;font-size:9pt!important;line-height:1.4!important;text-align:end;overflow-wrap:anywhere}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-code strong{font-size:10pt!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) h2{font-size:18pt!important;margin:2mm 0!important;line-height:1.3!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-subtitle{font-size:10pt!important;margin-bottom:2mm!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-meta{gap:3mm 6mm!important;padding:4mm 0!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-pair{grid-template-columns:30mm minmax(0,1fr)!important;gap:2mm!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-pair span{font-size:10.5pt!important;line-height:1.4!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-pair strong{font-size:11.5pt!important;line-height:1.4!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .freezing-report-panel{padding:4mm!important;margin:2mm 0!important;break-inside:auto!important;page-break-inside:auto!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .freezing-report-panel h3{font-size:13pt!important;margin:0 0 4mm!important;line-height:1.4!important;break-after:avoid}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .freezing-report-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:4mm 5mm!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .freezing-report-grid>div{grid-template-columns:1fr!important;gap:1mm!important;break-inside:avoid}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .freezing-report-grid span{font-size:10.5pt!important;line-height:1.4!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .freezing-report-grid strong{font-size:11.5pt!important;line-height:1.45!important;white-space:pre-line!important;overflow-wrap:anywhere}
#sfa-intake #sfa-report-view .report-paper .freezing-report-grid>div:has(#sfa-report-oocyte-locations,#sfa-report-embryo-locations){grid-column:1/-1!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-comments{padding:3mm 0!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-comments h3{font-size:11.5pt!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) #sfa-report-interpretation{font-size:11pt!important;line-height:1.4!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-status-note{font-size:9.5pt!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-signoffs{padding-top:3mm!important;margin-top:2mm!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-signoffs span{font-size:10pt!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-signoffs strong{font-size:11pt!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report)>.report-footer{margin-top:auto!important;padding-top:4mm!important;break-inside:avoid}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) :is(.report-footer-address,.report-footer-note,.institution-report-header){font-size:9.5pt!important;line-height:1.4!important}
@media print{#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report){border:0!important;margin:0!important;box-shadow:none!important;overflow:visible!important}#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-letterhead{break-inside:avoid}}
@media screen and (max-width:850px){#sfa-intake #sfa-report-view{overflow-x:auto}}

#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-head-en{font-family:Tajawal,Arial,sans-serif!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-footer-address{color:#526b75!important;font-weight:400!important}
#sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report) .report-footer-note{border-color:#d2e1e6!important}
/* A named page gives every continued sheet real printer-safe margins, rather
   than padding only the first and last fragments of a long report. */
@page cryo-sheet{size:A4 portrait;margin:12mm 13mm}
@media print{
 html:has(.report-paper:is(.oocyte-freezing-report,.embryo-freezing-report)),
 html:has(.report-paper:is(.oocyte-freezing-report,.embryo-freezing-report)) body,
 html:has(.report-paper:is(.oocyte-freezing-report,.embryo-freezing-report)) #sfa-intake,
 html:has(.report-paper:is(.oocyte-freezing-report,.embryo-freezing-report)) #sfa-intake>main,
 html:has(.report-paper:is(.oocyte-freezing-report,.embryo-freezing-report)) #sfa-intake #sfa-exam-workspace,
 html:has(.report-paper:is(.oocyte-freezing-report,.embryo-freezing-report)) #sfa-intake #sfa-report-view{width:184mm!important;min-width:0!important;max-width:184mm!important;min-height:0!important;margin:0!important;padding:0!important}
 #sfa-intake #sfa-report-view .report-paper:is(.oocyte-freezing-report,.embryo-freezing-report){page:cryo-sheet;width:184mm!important;max-width:184mm!important;min-height:272mm!important;padding:0!important}
 #sfa-intake #sfa-report-view .report-paper .freezing-report-grid>div:has(#sfa-report-oocyte-locations,#sfa-report-embryo-locations){break-inside:auto!important;page-break-inside:auto!important}
}
/* Setup notices belong to the workspace, never to a patient report. */
@media print{#clean-start280-notice{display:none!important}}
