/* Ketchup Your Credit — print stylesheet for the Reports page. Loaded with
   media="print" so it only applies to window.print()/Ctrl+P output, never
   the on-screen view. Nothing is ever written to disk to produce this —
   it's the browser's own print-to-PDF, not a server-generated file. */

@media print {
    @page {
        size: letter;
        margin: 1.5cm;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.kyc-body-root {
        background: #fff;
    }

    .kyc-header,
    .kyc-sidebar,
    .kyc-no-print,
    .kyc-page[hidden] {
        display: none !important;
    }

    .kyc-shell-body {
        display: block !important;
        min-height: 0 !important;
    }

    .kyc-main {
        padding: 0 !important;
        overflow: visible !important;
    }

    /* Whichever page is currently active (no [hidden] attribute) is the
       one printed — Reports or, once earned, the Certificate. */
    .kyc-page:not([hidden]) {
        display: block !important;
    }

    .kyc-report-sheet,
    .kyc-certificate-sheet {
        box-shadow: none !important;
        border-radius: 0 !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .kyc-certificate-sheet {
        border: none !important;
    }

    .kyc-certificate-inner {
        border: 2px solid var(--kyc-accent) !important;
    }

    .kyc-report-header,
    .kyc-report-tile-grid,
    .kyc-report-tile,
    .kyc-certificate-inner,
    .kyc-debt-table tr,
    .kyc-report-table tr {
        break-inside: avoid;
    }

    .kyc-report-table thead {
        display: table-header-group;
    }
}
