﻿/* Print Styles for Reports */
@media print {
    /* Hide navigation/sidebar */
    .sidebar,
    .navbar,
    nav,
    .menu,
    .top-row {
        display: none !important;
    }

    /* Hide buttons */
    .btn,
    button,
    #buttonRow {
        display: none !important;
    }

    /* Hide header/footer */
    header,
    footer {
        display: none !important;
    }

    /* Hide dev messages */
    #devWarning {
        display: none !important;
    }

    /* Hide page title outside report */
    /* But only hide if the page has a report template */
    body:has(#reportTemplate) > h1,
    main:has(#reportTemplate) > h1,
    .content:has(#reportTemplate) > h1 {
        display: none !important;
    }

    /* Make report full width */
    #reportTemplate {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* Remove padding/margins */
    .content {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Show only report content */
    /*body * {
        visibility: hidden;
    }*/

    #reportTemplate,
    #reportTemplate * {
        visibility: visible;
    }

        /*#reportTemplate {
        position: absolute;
        left: 0;
        top: 0;
    }*/

        /* Show report title */
        #reportTemplate h1 {
            display: block !important;
            visibility: visible !important;
        }

    @page {
        margin: 0.5in;
    }
}
/* End of Print Styles for Reports */
