/* NAFS print harmonization V5 — presentation only; question banks remain untouched. */
@page { size:A4; margin:13mm !important; }
@media screen {
 #reportPreview .nafs-print-sheet {background:#fff;color:#18243a;max-width:210mm;margin-inline:auto;box-sizing:border-box;}
 #reportPreview .nafs-ach-scroll {overflow-x:auto;}
}
@media print {
 html,body {direction:rtl!important;background:#fff!important;color:#111!important;margin:0!important;padding:0!important;-webkit-print-color-adjust:exact;print-color-adjust:exact;}
 body {font-family:Arial,Tahoma,sans-serif!important;font-size:11pt!important;}
 .print-document {display:block!important;position:static!important;visibility:visible!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;overflow:visible!important;}
 .print-document .nafs-print-sheet {display:block!important;direction:rtl!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;overflow:visible!important;color:#111!important;line-height:1.65!important;font-family:Arial,Tahoma,sans-serif!important;}
 .nafs-print-sheet * {box-sizing:border-box;}
 .nafs-print-sheet table {width:100%!important;max-width:100%!important;table-layout:auto!important;border-collapse:collapse!important;direction:rtl!important;font-size:9pt!important;}
 .nafs-print-sheet thead {display:table-header-group!important;}
 .nafs-print-sheet tfoot {display:table-footer-group!important;}
 .nafs-print-sheet tr {break-inside:avoid!important;page-break-inside:avoid!important;}
 .nafs-print-sheet th,.nafs-print-sheet td {border:1px solid #b9c1cd!important;padding:5px 6px!important;text-align:right!important;white-space:normal!important;overflow-wrap:anywhere!important;vertical-align:top!important;}
 .nafs-print-sheet .nafs-ach-scroll,.nafs-print-sheet .report-portfolio-block {overflow:visible!important;max-height:none!important;height:auto!important;max-width:100%!important;}
 .nafs-print-sheet img,.nafs-print-sheet svg,.nafs-print-sheet canvas {max-width:100%!important;object-fit:contain!important;}
 .nafs-print-sheet .reportQFigure img {max-height:135px!important;width:auto!important;height:auto!important;}
 .nafs-print-sheet .reportOption img {max-height:85px!important;width:auto!important;height:auto!important;}
 .nafs-print-sheet .reportQuestion {break-inside:auto!important;page-break-inside:auto!important;overflow:visible!important;border:1px solid #b7c0cd!important;}
 .nafs-print-sheet .reportQHeading,.nafs-print-sheet .reportQStem,.nafs-print-sheet .reportOption,.nafs-print-sheet .reportAnswerSummary,.nafs-print-sheet .reportMethod {break-inside:avoid!important;page-break-inside:avoid!important;}
 .nafs-print-sheet .reportQHeading {break-after:avoid!important;page-break-after:avoid!important;}
 .nafs-print-sheet h1,.nafs-print-sheet h2,.nafs-print-sheet h3 {break-after:avoid!important;page-break-after:avoid!important;color:#17243b!important;}
 .nafs-print-sheet .reportTopinfo {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;}
 .nafs-print-sheet .reportTopinfo>div {break-inside:avoid!important;border:1px solid #b9c1cd!important;background:#fff!important;}
 .nafs-print-sheet .reportOptionGrid {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;}
 .nafs-print-sheet .reportOption {border:1px solid #b9c1cd!important;background:#fff!important;}
 .nafs-print-sheet .reportOption.correctAnswer {border:2px solid #333!important;}
 .nafs-print-sheet .reportOption.selectedAnswer:not(.correctAnswer) {border-style:dashed!important;}
 .nafs-print-sheet .reportHeader {break-inside:avoid!important;page-break-inside:avoid!important;border-bottom:2px solid #333!important;}
 .nafs-print-sheet .reportHeader .reportLogos img {max-height:45px!important;max-width:85px!important;}
 .nafs-print-sheet .reportTiny {font-size:9pt!important;}
 .nafs-print-sheet button,.nafs-print-sheet .btn,.nafs-print-sheet select {display:none!important;}
}
