/* Keep the document snapshot out of the screen layout. */
#alhawil-print-root{display:none}
@media print{
 @page{size:A4;margin:12mm}
 html,body{width:auto!important;min-width:0!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;background:#fff!important;color:#111!important}
 .public-header,.portal-header,.admin-sidebar,.bottom-nav,.mobile-menu,.site-footer,.skip-link,.language-switch,.campaign-banner,.campaign-dialog,.reader-actions,.reader-index,.reading-progress,[data-print-ignore]{display:none!important}
 body.printing-document>:not(#alhawil-print-root){display:none!important}
 body.printing-document #alhawil-print-root{display:block!important;position:static!important;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;visibility:visible!important;font-size:11pt;line-height:1.65}
 #alhawil-print-root *,#alhawil-print-root *::before,#alhawil-print-root *::after{box-shadow:none!important;text-shadow:none!important;animation:none!important;transition:none!important}
 #alhawil-print-root .reveal-ready{opacity:1!important;transform:none!important}
 #alhawil-print-root :is(.shell,.portal-content,.inner-page,.knowledge-reading,.template-layout,.reader-grid,.admin-shell){display:block!important;width:100%!important;max-width:none!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;overflow:visible!important}
 #alhawil-print-root>:first-child,#alhawil-print-root :is(.card,.panel,.content-card,.reader-article,.template-paper,.invoice-paper,.workflow-summary-paper){position:static!important;inset:auto!important;max-height:none!important;min-height:0!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:visible!important;background:#fff!important}
 #alhawil-print-root :is(.btn,button,.bill-action,.editor-tools,.material-filter){display:none!important}
 #alhawil-print-root [hidden]{display:none!important}
 #alhawil-print-root .feedback{display:block!important;border:1px solid #888!important;padding:8pt!important;margin:8pt 0!important;font-weight:700}
 #alhawil-print-root :is(h1,h2,h3,h4){break-after:avoid;page-break-after:avoid;line-height:1.45}
 #alhawil-print-root h1,#alhawil-print-root .print-heading{font-size:18pt!important;margin:0 0 10pt!important}
 #alhawil-print-root h2{font-size:14pt!important;margin:10pt 0 5pt!important}
 #alhawil-print-root .panel-title{display:block!important}
 #alhawil-print-root .panel-title h2{display:block!important}
 #alhawil-print-root .panel-title h2 svg{width:18pt;height:18pt;vertical-align:middle;margin-inline-end:5pt}
 #alhawil-print-root h3{font-size:12pt!important;margin:10pt 0 5pt!important}
 #alhawil-print-root p{orphans:3;widows:3;margin:6pt 0;overflow-wrap:anywhere}
 #alhawil-print-root :is(.reader-article,.article-prose,.template-output){font-size:12pt!important;line-height:1.65!important;max-height:none!important;min-height:0!important}
 #alhawil-print-root :is(.reader-heading,.reader-meta){margin:0 0 10pt!important;max-width:none!important}
 #alhawil-print-root .reader-heading>p{font-size:11pt!important}
 #alhawil-print-root :is(.source-note,small,.reader-meta,.template-paper footer){font-size:9pt!important;line-height:1.5!important}
 #alhawil-print-root .template-paper header{margin-bottom:10pt;padding-bottom:8pt;break-inside:avoid}
 #alhawil-print-root .template-paper footer{position:static;margin-top:14pt;padding-top:7pt}
 #alhawil-print-root .print-value{display:block;min-height:1.3em;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:400;color:#111;padding:3pt 0}
 #alhawil-print-root :is(.form-stack,.form-grid){gap:8pt;align-items:start}
 #alhawil-print-root :is(.table-wrap,.legal-table-wrap,.legal-table-embed){display:block!important;overflow:visible!important;width:100%!important;max-height:none!important}
 #alhawil-print-root table{display:table!important;width:100%!important;table-layout:fixed;border-collapse:collapse;font-size:10pt}
 #alhawil-print-root thead{display:table-header-group!important;position:static!important;clip-path:none!important;overflow:visible!important;width:auto!important;height:auto!important}
 #alhawil-print-root tbody{display:table-row-group!important}
 #alhawil-print-root tr{display:table-row!important;break-inside:avoid;page-break-inside:avoid}
 #alhawil-print-root :is(th,td){display:table-cell!important;position:static!important;min-width:0!important;max-width:none!important;text-align:start;padding:5pt!important;white-space:normal!important;overflow-wrap:anywhere;vertical-align:top}
 #alhawil-print-root td::before{display:none!important}
 #alhawil-print-root :is(.definition,.workflow-summary-fields,.law-facts){break-inside:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:6pt 12pt}
 #alhawil-print-root .definition{grid-template-columns:38mm minmax(0,1fr)}
 #alhawil-print-root :is(.definition dd,.workflow-summary-fields dd){min-width:0;overflow-wrap:anywhere}
 #alhawil-print-root :is(.workflow-summary-fields>div,.law-facts>div){break-inside:avoid;padding:6pt!important}
 #alhawil-print-root :is(img,svg){max-width:100%;break-inside:avoid}
 #alhawil-print-root img{height:auto;max-height:210mm;object-fit:contain}
 #alhawil-print-root .brand img{width:40px;height:38px}
 #alhawil-print-root a{color:inherit;text-decoration:none}
 #alhawil-print-root pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:none;overflow:visible}
}
