/* ============================================
   print.css — linked with media="print"
   Keep screen rules out of this file.
   ============================================ */

/* App chrome and ephemeral UI — not for paper */
#menu,
.toast,
.pr-toolbar,
.list-reset,
.auth-handoff-actions {
    display: none !important;
}

/* HR handoff slip: one clean page */
.auth-handoff {
    border: none !important;
    box-shadow: none !important;
    max-width: none;
    margin: 0;
    padding: 0;
}

.auth-handoff-code {
    border: 1px solid #000 !important;
    background: #fff !important;
    color: #000 !important;
}

/* One employee per printed page (Monday stack) */
.pr-person {
    break-after: page;
    page-break-after: always;
}

.pr-person:last-child {
    break-after: auto;
    page-break-after: auto;
}

.pr-sheet,
.pr-person-head,
.pr-person-totals {
    break-inside: avoid;
    page-break-inside: avoid;
}

.pr-totals-free-high {
    font-weight: 700;
    /* still readable on B&W printers */
    text-decoration: underline;
}

/* Use the full printable area; browser/print dialog owns margins */
#content {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Ink-friendly defaults */
*,
*::before,
*::after {
    box-shadow: none !important;
    text-shadow: none !important;
}

body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.4;
}

/* Prefer keeping cards/sections intact when we style them */
.box {
    break-inside: avoid;
    page-break-inside: avoid;
}

/* Avoid awkward breaks after headings */
h1, h2, h3, h4, h5, h6 {
    break-after: avoid;
    page-break-after: avoid;
}

/* Expand any clipped regions so printed data is not cut off */
#content, #content * {
    overflow: visible !important;
}
