@media print {
/* Hide EVERYTHING */
html, body, body * {
display: none !important;
visibility: hidden !important;
}
/* Reveal the report AND all its ancestors */
#home-profile-report,
#home-profile-report *,
#home-profile-report :is(div, section, article, span, p, h1, h2, h3, h4, h5, h6),
#home-profile-report :is(*) {
display: block !important;
visibility: visible !important;
}
/* Reveal parent containers up the chain */
#home-profile-report,
#home-profile-report * {
display: block !important;
}
#home-profile-report {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
background: white !important;
padding: 0 !important;
margin: 0 !important;
border: none !important;
box-shadow: none !important;
}
/* Hide the print button */
#print-summary-btn {
display: none !important;
}
}