@media print {
    /* Hide navigation and UI controls */
    #app-sidebar,
    #app-header,
    #cmdPrevWeek, #cmdNextWeek, #cmdToday, #cmdWeekPicker,
    #cmdFilterProject, #cmdApplyTemplate, #cmdSaveTemplate,
    #cmdRequestTimeOff, #cmdScheduleCrew, #cmdCompareActual,
    #cmdPrint, /* Hide the print button itself */
    .btn-st-primary, .btn-st-secondary, .btn-st-outline, .btn-st-ghost,
    input[type="text"], input[type="search"],
    .add-shift-btn, .cmd-edit-shift, .cmd-delete-shift {
        display: none !important;
    }

    /* Layout adjustments */
    body, #app, #content {
        background-color: white !important;
        color: black !important;
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }

    #content {
        padding-left: 0 !important;
        padding-top: 0 !important;
    }

    #app-content {
        height: auto !important;
    }

    /* Ensure grid is visible */
    #schedule-grid-container {
        overflow: visible !important;
    }

    .card-st {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        background: transparent !important;
    }

    /* Print-friendly text */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Show page title */
    .print-title {
        display: block !important;
        font-size: 18pt;
        font-weight: bold;
        margin-bottom: 20px;
        text-align: center;
        color: black !important;
    }

    /* Adjust grid layout for print */
    .schedule-grid-employee {
        background-color: white !important;
        border-color: #ccc !important;
        color: black !important;
    }

    .shift-block {
        border: 1px solid #ccc !important;
        background-color: white !important; /* Force white bg if color print not supported */
    }
}

.print-title {
    display: none;
}
