
@media screen {
    .only-print {
        display: none !important;
    }
    tbody tr.print-head {
        display: none !important;
    }
}

@media print {
    html, body {
        font-size: 12pt !important;
        line-height: 1;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-print-color-adjust:exact;
    }

    ::-webkit-scrollbar { display:none !important;}

    .btn.fa-copy {
        display: none;
    }

    #pageHeader {
        position: running(pageHeader) !important;
        display: block;
    }
    #pageFooter {
        position: running(pageFooter) !important;
        display: block;
    }
    
    @page {
        margin: 1.5cm 1cm;
        @top-center { content: element(pageHeader); }
        @bottom-center { content: element(pageFooter); }
        @top-right { content: counter(page) ' / ' counter(pages);}
    }    

    .only-print {
        display: block !important;
    }

    table.only-print {
        display: table;
        min-width: 100% !important;
    }

    [data-layout-list] td:not([data-name]), [data-layout-list] th:not([data-name]) {
        display: none;
    }

    tr:not(.none-print,.unchecked) {
        display: table-row !important;
        border-right: 1px solid #dee2e6;
    }

    tr.only-print {
        display: table-row !important;
    }

    td, th {
        border-left: 1px solid #dee2e6;
    }

    th.only-print, td.only-print {
        display: table-cell !important;
    }

    .d-flex.only-print {
        display: flex !important;
    }

    .none-print:not(.print) {
        display:none !important;
    }

    .w-input-text {
        width: 120px !important;
    }

    #layout-popup {
        display: flex;
        width: fit-content !important;
        height: fit-content !important;
    }
    #layout-popup .content {
        width: fit-content !important;
        margin: 0 !important;
        height: fit-content !important;
        max-height: fit-content !important;
    }

    tr, td, th {
        -webkit-print-color-adjust: exact;
    }

    .tab-pane {
        width: fit-content !important;
        height: fit-content !important;
        padding: 0 !important;
    }

    .list-scroll, .list-table {
        width: fit-content !important;
        height: fit-content !important;
    }

    [data-info-list-view] {
        display: none;
    }

    [data-layout-list], [data-layout-form]  {
        width: fit-content !important;
        height: fit-content !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    table { page-break-inside:auto; border-bottom: 1px solid #dee2e6;}
    tr    { page-break-before:auto; page-break-inside:avoid; page-break-after:auto;}
    td    { page-break-inside:avoid; page-break-after:auto; padding: 10px !important; -webkit-print-color-adjust: exact; }
    th    { background-color: #747474 !important; padding: 10px !important; -webkit-print-color-adjust: exact;}
    thead { display:table-row-group;}
    tbody tr.print-head {
        position: fixed;
        display:block;
        page-break-before: always !important;
        page-break-inside: avoid !important;
    }

    .col-lg-12, .col-md-12, .col-xs-12, .col-sm-12 {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        width: 100%;
    }
    .col-lg-11, .col-md-11, .col-xs-11, .col-sm-11 {
        -ms-flex: 0 0 91.66666667%;
        flex: 0 0 91.66666667%;
        width: 91.66666667%;
    }
    .col-lg-10, .col-md-10, .col-xs-10, .col-sm-10 {
        -ms-flex: 0 0 83.33333333%;
        flex: 0 0 83.33333333%;
        width: 83.33333333%;
    }
    .col-lg-9, .col-md-9, .col-xs-9, .col-sm-9 {
        -ms-flex: 0 0 75%;
        flex: 0 0 75%;
        width: 75%;
    }
    .col-lg-8, .col-md-8, .col-xs-8, .col-sm-8 {
        -ms-flex: 0 0 66.66666667%;
        flex: 0 0 66.66666667%;
        width: 66.66666667%;
    }
    .col-lg-7, .col-md-7, .col-xs-7, .col-sm-7 {
        -ms-flex: 0 0 58.33333333%;
        flex: 0 0 58.33333333%;
        width: 58.33333333%;
    }
    .col-lg-6, .col-md-6, .col-xs-6, .col-sm-6 {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        width: 50%;
    }
    .col-lg-5, .col-md-5, .col-xs-5, .col-sm-5 {
        -ms-flex: 0 0 41.66666667%;
        flex: 0 0 41.66666667%;
        width: 41.66666667%;
    }
    .col-lg-4, .col-md-4, .col-xs-4, .col-sm-4 {
        -ms-flex: 0 0 33.33333333%;
        flex: 0 0 33.33333333%;
        width: 33.33333333%;
    }
    .col-lg-3, .col-md-3, .col-xs-3, .col-sm-3 {
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
        width: 25%;
    }
    .col-lg-2, .col-md-2, .col-xs-2, .col-sm-2 {
        -ms-flex: 0 0 16.66666667%;
        flex: 0 0 16.66666667%;
        width: 16.66666667%;
    }
    .col-lg-1, .col-md-1, .col-xs-1, .col-sm-1 {
        -ms-flex: 0 0 0.33333333%;
        flex: 0 0 0.33333333%;
        width: 8.33333333%;
    }
}