body {
    margin: 0;
    padding: 0;
}

.print-body {
    background-color: rgba(0, 0, 0, 0.60);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.print-heading {
    font-size : 12px;
    font-weight : 400;
    text-transform : uppercase;
}
.print-subheading {
    font-size : 10px;
    font-weight : 400;
    text-transform : uppercase;
}
.print-tblheading {
    font-size : 10px;
    font-weight : 400;
}
.print-value {
    font-size : 10px;
    font-weight : 400;
}

.print-body .no-print {
    display: none;
}

.print-page {
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.60);
    padding-bottom: 25px;
    min-height: 100vh;
}

.page {
    margin: 1cm auto;
    border: 1px #D3D3D3 solid;
    border-radius: 5px;
    background: white;
    /* background-image: url("print/knitpack/knisey/pre-image.jpeg"); */
    background-size: 100%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;      /* TWEENER - IE 10 */
    display: -webkit-flex;     /* NEW - Chrome */
    display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
    /* transform: scale(0.5); */
}


.a3.portrait {    
    width: 29.7cm;
    min-height: 42cm;
    margin-left: auto;
    margin-right: auto;
    transform: scale(0.7);
    margin-top: -150px;
}

.a3.landscape {
    width: 42cm;
    min-height: 29.7cm;
    /* transform: scale(0.7);   */
    /* margin-left: auto;
    margin-right: auto;
    transform: scale(0.7);
    margin-top: -150px; */
}

.a4.portrait {    
    width: 21cm;
    min-height: 29.7cm;
}

.a4.landscape {
    width: 29.7cm;
    min-height: 21cm;    
}

.a5.landscape {
    width: 21cm;
    min-height: 14.8cm;
}

.a5.portrait {
    width: 14.85cm;
    min-height: 21cm;
}

.subpage {
    width: 100%;
    position: relative;
    margin:1cm;
}

.fullpage-print > .a4.portrait .maintable {
    min-height: 29.7cm;
}

.fullpage-print > .a4.landscape .maintable {
    min-height: 21cm;
}

.fullpage-print > .a5.portrait .maintable {
    min-height: 21cm;
}

.fullpage-print > .a5.landscape .maintable {
    min-height: 14.8cm;
}

/* .maintable {
    border-collapse: collapse;
    border: 1px solid black;
} */

.inner-table {
    vertical-align: top;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-padding2left {
    padding-left: 2mm;
}

.text-padding2right {
    padding-right: 2mm;
}

.page .maintable {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
}

.page .maintable tfoot {
  page-break-after:always;
  border-spacing: 0;
}

.border-no-top {
    border-top: none !important;
    border-top-width: 0 !important;
}

.border-no-bottom {
    border-bottom: none !important;
    border-bottom-width: 0 !important;
}

.border-no-left {
    border-left: none !important;
    border-left-width: 0 !important;
}

.border-no-right {
    border-right: none !important;
    border-right-width: 0 !important;
}

.border1px {
    border-width: 1px;
}

.border2px {
    border-width: 2px;
}

.border3px {
    border-width: 3px;
}

.border4px {
    border-width: 4px;
}

.border5px {
    border-width: 5px;
}

.border-solid {
    border-style: solid;
}

.border-dashed {
    border-style: dashed;
}

.border-dotted {
    border-style: dotted;
}

.border-double {
    border-style: double;
}

.border-red {
    border-color: red;
}

.border-green {
    border-color: green;
}

.border-blue {
    border-color: blue;
}

.border-black {
    border-color: black;
}

.pageheader {
    position: absolute; 
    top: 0; 
    width: 100%;
    overflow: auto;
}

.pagefooter {
    position: absolute; 
    bottom: 0; 
    width: 100%;
    overflow: auto;  
}

.pagecontent {
    position: relative;
    width: 100%;
    border: 1px solid black;
}

.maintable td {
    vertical-align: text-top;
}

table {
    border-collapse: collapse;
    margin: 0;
}

tr {
    border-collapse: collapse;
    margin: 0;
}

.tbody-content > tr {
    border-collapse: collapse;
    height: fit-content;
}

.tbody-content > tr > td {
    border-collapse: collapse;
    height: fit-content;
}

td {
    border-collapse: collapse;
    margin: 0;
    height: fit-content;
}

.prefer-case {
    text-transform: capitalize;
}

@page {
    /* size: a4; */
}

@media print {

    body, page {
        margin: 0;
        box-shadow: 0;
    }     

    .page {
        width: 100%;
        height: auto;
        margin: 0;
        border: initial;
        border-radius: initial;
        width: initial;
        min-height: initial; 
        box-shadow: initial;
        background: initial;
        page-break-after: always;
        background: white;
        /* background-image: url("print/knitpack/knisey/pre-image.jpeg"); */
        background-size: 100%;
    }

    .print-body {
        background-color: white !important;
    }

    .print-page {
        background-color: white !important;
    }

    .maintable {
        width: 100%;
    }
    
    .fullpage-print > .page .maintable {
        min-height: 100vh !important;
    }

    .subpage {
        margin: 0cm;
        width: 100%;
    }

    thead { display: table-header-group; }
    tfoot { display: table-footer-group; }
    tbody { display: table-row-group; }
}
