/* ==========================================================================
   Print layout — what a list looks like when it becomes a PDF.
   Loaded on every page but only takes effect for print, except on the
   dedicated print views which opt in via .wr-printable.
   ========================================================================== */

.wr-print-only { display: none; }

/* A print view renders on screen too, so the user sees exactly what will come out. */
.wr-printable {
    background: #fff;
    color: #000;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.6rem 1.4rem 3rem;
}

.wr-print-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 3px solid #CE1126;
    padding-bottom: .7rem;
    margin-bottom: 1rem;
}

.wr-print-head .mark {
    width: 34px; height: 34px; border-radius: 8px;
    background: #1B45D7; color: #fff;
    display: grid; place-items: center;
    font-size: .72rem; font-weight: 800;
    flex-shrink: 0;
}

.wr-print-head h1 { font-size: 1.18rem; margin: 0 0 .15rem; }
.wr-print-head .sub { font-size: .78rem; color: #475569; }
.wr-print-head .stamp { margin-left: auto; text-align: right; font-size: .72rem; color: #475569; }

.wr-print-filters {
    border: 1px solid #CBD5E8;
    border-left: 3px solid #1B45D7;
    border-radius: 6px;
    padding: .6rem .8rem;
    margin-bottom: 1rem;
    font-size: .78rem;
}
.wr-print-filters b { display: block; font-size: .64rem; letter-spacing: .1em; color: #475569; margin-bottom: .3rem; }
.wr-print-filters ul { margin: 0; padding-left: 1.1rem; }
.wr-print-filters li { margin-bottom: .1rem; }

.wr-print-notes {
    font-size: .76rem;
    color: #334155;
    border: 1px solid #E3E8F4;
    background: #F8FAFF;
    border-radius: 6px;
    padding: .6rem .8rem;
    margin-bottom: 1rem;
}

table.wr-print-table { width: 100%; border-collapse: collapse; font-size: .72rem; }
.wr-print-table th {
    text-align: left;
    background: #EEF2FE;
    border: 1px solid #CBD5E8;
    padding: .3rem .4rem;
    font-size: .62rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #12327C;
}
.wr-print-table td { border: 1px solid #E3E8F4; padding: .28rem .4rem; vertical-align: top; }
.wr-print-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.wr-print-table tbody tr:nth-child(even) { background: #FAFBFF; }
.wr-print-table tfoot td { font-weight: 700; background: #EEF2FE; }

.wr-print-footnote { margin-top: 1rem; font-size: .7rem; color: #475569; }
.wr-print-confidential { color: #CE1126; font-weight: 700; letter-spacing: .06em; }

/* ------------------------------------------------------------------ printing */

@media print {
    /* Everything that is not the printable document goes away. */
    .wr-topbar, .wr-subnav, .wr-sidebar, .wr-crumbbar,
    .wr-brief, .wr-steps, .wr-summary, .wr-no-print { display: none !important; }

    .wr-print-only { display: block; }

    html, body {
        background: #fff !important;
        color: #000 !important;
        font-size: 10pt;
    }

    .wr-shell, .wr-body, .wr-main, .wr-content { display: block; padding: 0; margin: 0; }
    .wr-printable { max-width: none; margin: 0; padding: 0; }

    /* Wide annex tables need the long edge of the page. */
    @page {
        size: A4 landscape;
        margin: 12mm 10mm 14mm;
    }

    /* Repeat the header on every page so a 199-row list stays readable. */
    thead { display: table-header-group; }
    tfoot { display: table-footer-group; }
    tr, img { page-break-inside: avoid; }

    .wr-print-head { page-break-after: avoid; }
    .wr-print-filters, .wr-print-notes { page-break-inside: avoid; }

    a { color: #000; text-decoration: none; }

    /* A URL after every link is noise on paper. */
    a[href]::after { content: none !important; }
}
