﻿@media print {
    /* Hide elements not needed for print */
    .no-print {
        display: none !important;
    }

    /* Show elements only when printing */
    .print-only {
        display: block !important;
    }

    /* Reset MudBlazor nav/drawer/appbar */
    .mud-drawer,
    .mud-appbar,
    .mud-nav-menu {
        display: none !important;
    }

    /* Ensure full-width content when sidebar is hidden */
    .mud-main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    /* Avoid breaking cards/tables across pages */
    .mud-card,
    .mud-table-container,
    .mud-expand-panel {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Force black text and white background for ink efficiency */
    body {
        background: white !important;
        color: black !important;
    }

    /* Hide the chevron toggle icon on expansion panels */
    .mud-expand-panel-icon {
        display: none !important;
    }

    /* Hide the entire expansion panel if it is collapsed */
    .mud-expand-panel:has(.mud-collapse-container--collapsed) {
        display: none !important;
    }

    /* Force the image column spacing that pe-sm would normally provide (print view doesn't recognize breakpoint classes) */
    .print-image-item {
        padding-right: 40px !important;
    }
}
