@media print {
    html {
        overflow: visible !important;
    }
}

body.print-version,
body.generator {
    direction: rtl !important;
    overflow: visible !important;
    /*font-size: 14px;*/
}

    body.print-version table {
        font-size: small;
    }

        body.print-version table.small-font {
            font-size: 10px;
        }

    body.print-version .ht_clone_top.handsontable {
        display: none !important;
    }

    body.print-version .handsontable-container,
    body.print-version .wtHolder {
        height: auto !important;
    }

    body.print-version .frame {
        border: none !important;
    }

    body.print-version .htDimmed {
        text-align: right;
    }

    body.print-version #logo {
        padding: 10px 40px;
        margin-bottom: 20px;
    }

    body.print-version switch-box {
        display: none !important;
    }

    body.print-version .report-name {
        font-size: 20px;
    }

    body.print-version .header {
        overflow: hidden; /* clearfix: contain floated children so header has actual height */
    }

    body.print-version .header .image {
        padding: 5px 10px;
        height: 55px;
        max-width: 275px;
        background-repeat: no-repeat;
        display: inline-block;
        background-size: contain;
    }

        body.print-version .header .image img {
            max-height: 100%;
        }

    body.print-version .header .print-info {
        float: left;
        margin: 10px;
        font-size: 12px;
    }

        body.print-version .header .print-info div {
            text-align: left;
        }

    body.print-version .header .creator {
        float: left;
        margin: 10px;
        font-size: 12px;
    }

    body.print-version .dash {
        display: none !important;
    }

    body.print-version .calc-map {
        display: none;
    }

    body.print-version .section-title-container {
        margin: 15px 0 10px 0;
        font-size: 22px;
    }

    body.print-version .calc-tabs .comment {
        font-size: 12px;
    }

    body.print-version .grid-action {
        display: none;
    }

    body.print-version .calculator-box .frame-wrapper .calculator-inner .inner-calculator-content {
        height: auto;
        overflow-y: visible;
    }

    body.print-version .row {
        margin: 0 !important;
    }

    body.print-version .check-no {
        padding: 7px;
        line-height: normal;
        display: inline-block;
        border: 1px solid #B1B1B1;
        margin: 0;
        vertical-align: middle;
    }

    body.print-version .check-yes {
        padding: 7px;
        line-height: normal;
        display: inline-block;
        border: 1px solid #B1B1B1;
        margin: 0;
        vertical-align: middle;
        position: relative;
    }

        body.print-version .check-yes:after {
            content: '✔';
            position: absolute;
            top: -3px;
            left: 2px;
        }

    body.print-version .grid-container table {
        border: 1px solid black;
        margin: 5px 0;
    }

    body.print-version .table-bordered thead tr th,
    body.print-version .table-bordered tr th.table-title,
    body.print-version .table-bordered tr td.table-title {
        text-align: center;
        font-weight: bold;
    }

        body.print-version .table-bordered thead tr th.text-normal {
            font-weight: normal;
        }


    body.print-version .table-bordered th, body.print-version .table-bordered td {
        padding: 2px;
    }

    body.print-version .table-bordered {
        border: 1px solid black;
    }

    body.print-version .rv-rows .title {
        font-size: 17px;
        font-weight: bold;
    }

    body.print-version table.th-center th {
        text-align: center !important;
    }

    body.print-version table.table-h-35 tr th,
    body.print-version table.table-h-35 tr td {
        height: 35px;
    }

    body.print-version .table-condensed > tbody > tr > td,
    body.print-version table.table-pad-5 tr th,
    body.print-version table.table-pad-5 tr td {
        padding: 1px 3px !important;
    }

    body.print-version table.table-center tr th,
    body.print-version table.table-center tr td {
        text-align: center !important;
    }

    body.print-version.is-detailed.only-results .calculator-box .frame-wrapper .calculator-inner .inner-calculator-content > :not(result-view) {
        display: none;
    }

    body.print-version .calculator-header {
        text-align: center;
        padding-bottom: 20px;
    }

        body.print-version .calculator-header .header-text h1 {
            font-size: 22px !important;
            display: block;
        }

        body.print-version .calculator-header .header-text h3 {
            display: block !important;
            margin-top: -5px;
        }

        body.print-version .calculator-header .header-text .dash,
        body.print-version .calculator-header .header-text .icon {
            display: none !important;
        }

    body.print-version .calculator-inner .details-section {
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid silver;
    }

        body.print-version .calculator-inner .details-section h3 {
            font-size: 14px;
        }

    body.print-version .calculator-inner table {
        font-size: 14px;
        border-right: 0 !important;
        border-left: 0 !important;
    }

        body.print-version .calculator-inner table tbody tr td,
        body.print-version table tbody tr td.dir-ltr {
            direction: ltr;
            text-align: right;
        }

            body.print-version .calculator-inner table tbody tr td.center {
                text-align: center;
            }

    body.print-version footer-print {
        display: none;
    }

    body.print-version .editable-name {
        display: none !important;
    }

    body.print-version .frame-top {
        display: none;
    }

    body.print-version .calculator-box .frame-wrapper .calculator-inner {
        height: auto;
        padding-top: 0 !important;
    }

    body.print-version .calculator-box .frame-wrapper form {
        height: auto;
    }

    body.print-version .calculator-box .frame-wrapper {
        height: auto;
    }

    body.print-version .calculator-box {
        height: auto;
        box-shadow: none;
    }

    body.print-version .label-field {
        font-size: 14px;
        margin-top: 3px !important;
    }

    body.print-version .checkbox-print, body .radio-print {
        font-size: 14px;
        display: inline-block;
    }

    body.print-version .radio-print:first-child {
        margin-right: 0;
    }

    body.print-version .radio-print {
        margin-right: 15px;
    }

    body.print-version #attachments .title {
        font-size: 22px;
        margin: 5px 0;
        width: 100%;
        page-break-after: avoid;
    }

    body.print-version #attachments .sub-title {
        font-size: 14px;
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }

    body.print-version #attachments .attachments-table {
        width: 100%;
        page-break-before: always;
        page-break-after: always;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-start;
        min-height: 90vh;
    }

    /* 1 image per page */
    body.print-version #attachments.img-layout-1 .attachments-table {
        min-height: 90vh;
    }

    body.print-version #attachments.img-layout-1 .attachments-table .attachment-item {
        width: 100%;
        height: calc(90vh - 50px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* 2 images per page */
    body.print-version #attachments.img-layout-2 .attachments-table {
        min-height: 90vh;
    }

    body.print-version #attachments.img-layout-2 .attachments-table .attachment-item {
        width: 100%;
        height: calc(45vh - 25px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
    }

    /* 4 images per page (2x2 grid) */
    body.print-version #attachments.img-layout-4 .attachments-table {
        min-height: 90vh;
    }

    body.print-version #attachments.img-layout-4 .attachments-table .attachment-item {
        width: calc(50% - 10px);
        height: calc(45vh - 25px);
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 5px 10px 5px;
    }

    /* 6 images per page (2x3 grid) */
    body.print-version #attachments.img-layout-6 .attachments-table {
        min-height: 90vh;
    }

    body.print-version #attachments.img-layout-6 .attachments-table .attachment-item {
        width: calc(50% - 10px);
        height: calc(30vh - 25px);
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 5px 10px 5px;
    }

    body.print-version #attachments .attachments-table .attachment-item {
        text-align: center;
        box-sizing: border-box;
        page-break-inside: avoid;
    }

        body.print-version #attachments .attachments-table .attachment-item img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
        }

    body.print-version .scrollArea table td {
        padding: 1px 3px;
    }

    /* PDF Fixes*/
    body.print-version.export-pdf #attachments {
        page-break-before: always;
    }

    body.print-version.export-pdf #attachments .attachments-table {
        width: 880px;
        height: 1200px;
        page-break-before: always;
        page-break-after: always;
    }

    /* PDF Export - 1 image per page */
    body.print-version.export-pdf #attachments.img-layout-1 .attachments-table .attachment-item {
        width: 880px !important;
        height: 1150px !important;
    }

        body.print-version.export-pdf #attachments.img-layout-1 .attachments-table .attachment-item img {
            max-width: 880px !important;
            max-height: 1100px !important;
        }

    /* PDF Export - 2 images per page */
    body.print-version.export-pdf #attachments.img-layout-2 .attachments-table .attachment-item {
        width: 880px !important;
        height: 575px !important;
    }

        body.print-version.export-pdf #attachments.img-layout-2 .attachments-table .attachment-item img {
            max-width: 880px !important;
            max-height: 525px !important;
        }

    /* PDF Export - 4 images per page (2x2) */
    body.print-version.export-pdf #attachments.img-layout-4 .attachments-table .attachment-item {
        width: 430px !important;
        height: 575px !important;
    }

        body.print-version.export-pdf #attachments.img-layout-4 .attachments-table .attachment-item img {
            max-width: 430px !important;
            max-height: 525px !important;
        }

    /* PDF Export - 6 images per page (2x3) */
    body.print-version.export-pdf #attachments.img-layout-6 .attachments-table .attachment-item {
        width: 430px !important;
        height: 375px !important;
    }

        body.print-version.export-pdf #attachments.img-layout-6 .attachments-table .attachment-item img {
            max-width: 430px !important;
            max-height: 325px !important;
        }

body.print-version .custom-checkbox {
    font-size: 14px;
}

body.print-version .custom-checkbox label {
    font-size: 1em !important;
}

body.print-version .label-field > span {
    display: inline-block;
    vertical-align: middle;
}

body.print-version label {
    font-weight: normal;
}

body.print-version .label-field label {
    margin: 0;
    vertical-align: middle !important;
    font-size: 1em !important;
}

body.print-version .footer,
body.generator .footer {
    font-size: 12px;
    text-align: center;
    border-top: 1px solid silver;
}

body.print-version button {
    display: none !important;
}

body.print-version .ui-labelify {
    font-size: 15px;
}

body.print-version .ng-hide {
    display: none !important;
}

body.print-version .grid-container .grid {
    display: block !important;
}

body.print-version .avoid-breaking {
    -webkit-column-break-inside: avoid !important;
    page-break-inside: avoid !important;
    margin: 1px 0 1px 0;
}

body.print-version header {
    margin-bottom: 10px;
}

body.print-version footer {
    margin-top: 10px;
}

body.print-version span.colon {
    display: inline-block;
    font-weight: bold;
}

body.print-version header,
body.print-version footer {
    display: none;
    font-size: 12px !important;
    text-align: center !important;
}

body.print-version .no-print {
    display: none !important;
}

body.print-version .no-border {
    border: none !important;
}

body.print-version .no-td-border td,
body.print-version .no-td-border th {
    border: none !important;
}

body.print-version .print-width-100 {
    width: 100% !important;
}

body.print-version .print-width-30 {
    width: 30% !important;
}

body.print-version .inline {
    display: inline-block;
}

body.print-version .print-block {
    display: block !important;
}

body .page-break-before {
    page-break-before: always;
}

body .page-break-after {
    page-break-after: always;
}

.body .page {
    page-break-before: always;
}

body.print-version header,
body.print-version footer {
    display: block !important;
}

body.print-version .center {
    text-align: center;
}

body .document-content-html {
    margin: 30px 30px 30px 30px !important;
}

body.print-version .col-lg-1,
body.print-version .col-lg-2,
body.print-version .col-lg-3,
body.print-version .col-lg-4,
body.print-version .col-lg-5,
body.print-version .col-lg-6,
body.print-version .col-lg-7,
body.print-version .col-lg-8,
body.print-version .col-lg-9,
body.print-version .col-lg-10,
body.print-version .col-lg-11,
body.print-version .col-lg-12,
body.print-version .col-md-1,
body.print-version .col-md-2,
body.print-version .col-md-3,
body.print-version .col-md-4,
body.print-version .col-md-5,
body.print-version .col-md-6,
body.print-version .col-md-7,
body.print-version .col-md-8,
body.print-version .col-md-9,
body.print-version .col-md-10,
body.print-version .col-md-11,
body.print-version .col-md-12 {
    float: right;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.print-version .col-xs-12,
body.print-version .col-md-12,
body.print-version .col-lg-12 {
    width: 100%;
}

body.print-version .col-lg-11 {
    width: 91.66666666666666%;
}

body.print-version .col-lg-10 {
    width: 83.33333333333334%;
}

body.print-version .col-lg-9 {
    width: 75%;
}

body.print-version .col-lg-8 {
    width: 66.66666666666666%;
}

body.print-version .col-lg-7 {
    width: 58.333333333333336%;
}

body.print-version .col-md-6,
body.print-version .col-lg-6 {
    width: 50%;
}

body.print-version .col-lg-5 {
    width: 41.66666666666667%;
}

body.print-version .col-lg-4 {
    width: 33.33333333333333%;
}

body.print-version .col-lg-3 {
    width: 25%;
}

body.print-version .col-lg-2 {
    width: 16.666666666666664%;
}

body.print-version .col-lg-1 {
    width: 8.333333333333332%;
}

body.print-version .print-only {
    display: block;
}

body.print-version .print-pad-bottom-10 {
    padding-bottom: 10px;
}

body.print-version .print-pad-bottom-20 {
    padding-bottom: 20px;
}

body.print-version .print-top-150 {
    padding-top: 150px;
}

body.print-version .print-top-50 {
    margin-top: 50px;
}

body.print-version .print-top-130 {
    margin-top: 130px;
}

body.print-version .break-page {
    page-break-after: always;
}

body.print-version .print-pad-top-20 {
    padding-top: 20px;
}

body.print-version table.table-td-center tbody td {
    text-align: center;
}

/* PDF page break fix */
body.print-version thead {
    display: table-header-group !important;
}

body.print-version tfoot {
    display: table-row-group !important;
}

body.print-version tr:not(.allow-page-break) {
    page-break-inside: avoid !important;
}

body.print-version .allow-page-break {
    page-break-inside: auto !important;
}

body .wizard-table.rtl td {
    direction: rtl;
}

body .no-wrap {
    white-space: nowrap;
}

body.print-version .new-print .hotlike-table {
    border: 1px solid black !important;
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    min-height: 32px;
}

    body.print-version .new-print .hotlike-table thead th,
    body.print-version .new-print .hotlike-table tbody td {
        text-align: center;
    }

    body.print-version .new-print .hotlike-table tbody th {
        text-align: right;
    }

    body.print-version .new-print .hotlike-table tr.tr-totals {
        font-weight: bold;
    }

    body.print-version .new-print .hotlike-table th,
    body.print-version .new-print .hotlike-table td {
        line-height: initial;
        height: 28px;
        font-weight: normal;
        border: 1px solid #ddd;
    }

        body.print-version .new-print .hotlike-table th:not(.no-padding),
        body.print-version .new-print .hotlike-table td:not(.no-padding) {
            padding: 0px 4px;
        }

    body.print-version .new-print .hotlike-table tr.tr-totals th,
    body.print-version .new-print .hotlike-table tr.tr-totals td {
        background-color: #F3F3F3 !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

/* === Repeating page header on every print page (via <thead>) === */
body.print-version .print-doc-page-table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
}

body.print-version .print-doc-page-table thead td,
body.print-version .print-doc-page-table tbody td {
    border: 0;
    padding: 0;
}

body.print-version .print-doc-page-table thead {
    display: table-header-group !important;
}

body.print-version .print-doc-header {
    border-bottom: 1px solid #ccc;
    font-size: 12px;
    text-align: center;
    margin: 0;
    padding: 0;
}


/* === Repeating footer on every print page === */
/* body.print-version .footer {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    background: white;
    z-index: 999;
    border-top: 1px solid silver;
} */
