@media print {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .no-print, .portal-topbar, .portal-sidebar, .portal-sidebar-backdrop,
    .a11y-fab, .a11y-panel, .bu-univ-header, .bu-univ-navbar,
    nav, footer, .footer-tier1, .footer-tier2-govph, .btn {
        display: none !important;
    }
    .portal-shell, #mainContent, .container, .container-xl, .container-fluid {
        margin: 0 !important;
        padding: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }
    .paper-stage, .paper-scale-wrap {
        display: block !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
        width: 100% !important;
    }
    .exact-paper-sheet {
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    /* Certificates fill 100% of chosen printer sheet edge-to-edge (zero white border gaps!) */
    .exact-cert-sheet {
        width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
    }
    .print-sheet:not(.exact-paper-sheet) {
        box-shadow: none !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .print-sheet table.table-bordered th,
    .print-sheet table.table-bordered td {
        border: 1px solid #334155 !important;
    }
    .print-sheet table.luc-fees-tbl td,
    .print-sheet table.table-borderless td,
    .print-sheet table.table-borderless th {
        border: none !important;
    }
}
