body, html {
    height: auto; 
    margin: 0;
    padding: 0;
}

@page {    
    margin: 0;
}

@media print {
    @page {
        margin: 0;
    }

    #page-break {
        display: block;
        page-break-before: always;
        page-break-after: always; 
    }


    img {
        max-width: 100%;
        height: auto;
    }

    .tableprint {
        width: 100%;
        border-collapse: collapse;   
    }
    
    .tr_print{
        width: 100%;
        text-align: left;
        height: 5px;
        padding: 0;
        cursor:default;
        border: none;
    }    
}

@media print and (max-width: 80mm) {
    #mainreport{
        max-width:80mm;
        margin-left:auto;
        margin-right:auto;
    }
}

@media print and (min-width: 215.9mm) {
    #mainreport{
        max-width:215.9mm;
        height: 279.4mm;
        margin-left:auto;
        margin-right:auto;
    }

    body {
        min-height: 100vh;         
        margin: 0;
    }

    #htmldoc {
        height: auto;        
        overflow: visible;
    }
}

.ticketSize {
    max-width: 80mm;
    margin-left:auto;
    margin-right:auto;
}

.letterSize {
    max-width:215.9mm;
    height: 279.4mm;
    margin-left:auto;
    margin-right:auto;
}

#report{
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;        
    height: auto;        
}

#reporthtml {
    margin: 0 auto;
    padding: 10px;
    background: white;
    line-height: 1.2;
    display: block;
    box-shadow: 0 5px 30px 5px rgb(0 0 0 / 20%);
}

.headerdocument {
    position: relative; 
    top: 0;
    left: 0;
    right: 0;
    height: 160px;        
}

.footerdocument{
    position: relative; 
    bottom: 0;    
    height: 210px; 
}

.rpt_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.rpt_item {
    flex: 0 1 auto; 
    font-size: 12px;
    padding-right: 3px;
    color: black;
    font-family: Arial, Helvetica, sans-serif;    
    font-weight: normal;
}

#hr {
    margin:0;
    color: black;
}

.rp_row {
    display: grid;
    width: 100%;
    margin: 0 auto;
}

.rp_w100 {
    width: 100%;
}

.rp_w70 {
    width: 70%;
}

.rp_w50 {
    width: 50%;
}

.rp_w40 {
    width: 30%;
}
.rp_w30 {
    width: 30%;
}

.rp_w20 {
    width: 20%;
}

.rp_center{
    text-align:center;
}

.rp_linesubtitle {
    font-size: 15px;
    font-stretch: condensed;
    font-weight: 800;
    color: black;
    font-family: Arial, Helvetica, sans-serif;    
}

.rp_line {
    font-size: 12px;
    color: black;
    font-family: Arial, Helvetica, sans-serif;    
    font-weight: normal;
}

.rp_bold {    
    font-weight: bold;
}

.rp_bolder{
    font-weight: bolder;
}


.rp_left {
    text-align: left;
}

.rp_right {
    text-align: right
}

.rp_justify {
    text-align: justify
}

.rp_MT{
    margin-top: 5px;
}

.rp_MT20 {
    margin-top: 20px;
}

#th {
    color: white;
}