/* ═══════════════════════════════════════════════════
   BL Daily Pay — Print Styles (Payslip)
   ═══════════════════════════════════════════════════ */

@media print {
    /* Hide everything except payslip */
    body * {
        visibility: hidden;
    }

    .payslip-doc,
    .payslip-doc * {
        visibility: visible;
    }

    .payslip-doc {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }

    /* Hide print button, navigation, etc */
    .sidebar, .top-header, .page-actions,
    .payslip-filters, #payslipActions,
    .toast-container, .modal-overlay {
        display: none !important;
    }

    /* Page setup — default (detail mode) */
    @page {
        size: A5 landscape;
        margin: 10mm;
    }

    /* Summary mode: 8.5×5.5" half-letter */
    body.print-summary @page {
        size: 8.5in 5.5in;
        margin: 6mm;
    }

    /* Ensure clean black text */
    .payslip-doc {
        color: #000;
        background: #fff;
        font-size: 11pt;
    }

    .payslip-doc h2 {
        color: #000;
    }

    .payslip-total-section .total-amount {
        color: #000;
    }

    /* Table borders for print */
    .payslip-table th,
    .payslip-table td {
        border: 1px solid #ccc;
    }
}
