/* Loaded last so Print is not a blank page. The app shell uses
   height:100vh, overflow:hidden and contain:layout — Chrome then prints white. */
@media print {
    @page {
        margin: 12mm;
    }

    html[data-bi-printing],
    html[data-bi-printing] * {
        animation: none !important;
        transition: none !important;
    }

    html,
    html:has(body.mos-app),
    html:has(body.ops-app),
    body,
    body.mos-app,
    body.ops-app,
    body.pu-theme,
    body.pu-theme.mos-app {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        background: #fff !important;
        color: #111 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .mos-sidebar,
    .mos-topbar,
    .quick-access,
    .bimos-confirm,
    .bimos-toast-host,
    .item-tip-pop,
    .fa-list-page-head,
    .pu-view-actions,
    .fa-acct-report-form,
    .fa-list-filter,
    .fa-acct-report-kpis,
    .fa-list-flash,
    .preview-bar,
    .no-print,
    .lp-report-toolbar,
    .lc-panel,
    .lc-overlay,
    [data-live-chat],
    .ds-panel,
    [data-docshare-panel],
    .bimos-toast-host,
    .bimos-confirm,
    #opening-cash-gate,
    .item-tip-pop,
    .ai-assistant,
    [data-ai-assistant] {
        display: none !important;
    }

    .mos-shell,
    .mos-main,
    .mos-content,
    .pu-list,
    .pu-list-card,
    .pu-detail,
    .pu-view,
    .fa-acct-report-page,
    .fa-acct-report-body,
    .fa-pay-body,
    .fa-acct-report-sheet-wrap,
    .fa-acct-report-sheet,
    .report-print-root,
    body.mos-app .preview-sheet,
    body.ops-app .preview-sheet,
    body.pu-theme .preview-sheet,
    body.mos-app #print-area,
    body.ops-app #print-area,
    body.pu-theme #print-area,
    .chalan,
    .lp-report,
    .lp-report-body {
        display: block !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        contain: none !important;
        position: static !important;
        float: none !important;
        transform: none !important;
        filter: none !important;
        box-shadow: none !important;
        background: #fff !important;
    }

    .mos-shell,
    .mos-main {
        display: block !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.pu-theme.mos-app,
    body.pu-theme .mos-main,
    body.pu-theme .mos-content,
    body.pu-theme .pu-list-card,
    body.pu-theme .mos-main:has(.pu-list),
    body.pu-theme .mos-content:has(.pu-list),
    body.pu-theme .mos-main:has(.pu-view),
    body.pu-theme .mos-content:has(.pu-view) {
        background: #fff !important;
        color: #111 !important;
    }

    .fa-acct-report-body.is-document {
        background: #fff !important;
        border: 0 !important;
        padding: 0 !important;
    }

    .fa-acct-report-sheet,
    .preview-sheet {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .pu-print-head {
        display: block !important;
    }

    .rpr-child {
        display: table-row !important;
    }

    .rpr-slot-text {
        visibility: visible !important;
    }
}
