﻿/* On screen, hide the read-only copy used for print */
.print-only {
    display: none;
}

@media print {
    /* Hide everything except the read-only invoice */
    body > *:not(.print-only) {
        display: none !important;
    }

    nav, header, footer, .sidebar, .invoice-actions,
    .modal-overlay, .modal-actions, .modal-close-btn,
    .invoice-document--editable, .no-print {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    .invoice-document--readonly {
        margin: 0;
        padding: 1rem;
        color: #000 !important;
        background: white !important;
    }

    /* Optional: page break controls */
    .practitioner-section {
        page-break-inside: avoid;
    }

    .policy-section {
        page-break-inside: avoid;
    }
}
