/* Reusable print helper
   Usage: add body.printing just before calling window.print(),
   and wrap the area to print in .print-container. */

@media print {
    body.printing * { visibility: hidden !important; }
    body.printing .print-container,
    body.printing .print-container * { visibility: visible !important; }

    body.printing .print-container {
        position: absolute;
        left: 0; top: 0;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        background: #fff;
        padding: 16px;
    }

    /* Optional: browser page margins */
    @page { size: auto; margin: 12mm; }
}
