/* =========================================================
   FACILITY SCHEDULER: WEEKLY BLOCK PRINT ENGINE
   ========================================================= */

@page scheduler-portrait {
    size: letter portrait; /* Switched back to Portrait since tables are narrower now! */
    margin: 0.4in;
}

@media print {
    body.print-scheduler {
        page: scheduler-portrait;
        background-color: white !important;
        font-family: Arial, sans-serif !important;
    }

    /* 1. Hide ALL web UI (Navbars, Buttons, and the Massive Web Spreadsheet) */
    body.print-scheduler .navbar,
    body.print-scheduler #sidebar,
    body.print-scheduler .sidebar,
    body.print-scheduler .no-print,
    body.print-scheduler .dash-table-container,
    body.print-scheduler .dash-spreadsheet-container {
        display: none !important;
    }

    /* 2. Show the "Ghost" Print Tables */
    body.print-scheduler #print-only-roster {
        display: block !important;
        width: 100% !important;
    }

    /* 3. Keep weeks from splitting across two pieces of paper */
    body.print-scheduler .week-block {
        page-break-inside: avoid !important; /* For older printers */
        break-inside: avoid !important;      /* The modern Chrome/Edge fix! */
        margin-bottom: 40px !important;
        display: block !important;           /* Forces the browser to respect the break */
        position: relative !important;
        width: 100% !important;
    }

    /* 4. Strip away website backgrounds */
    body.print-scheduler .container-fluid,
    body.print-scheduler .card {
        background-color: white !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
}