body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #FAFAFA;
}

#tiskContent *,
#private *,
#content-private *{
    box-sizing: border-box !important;
    -moz-box-sizing: border-box !important;
}

#tiskContent .cke_top *,
#private .cke_top *,
#content-private .cke_top *
{
     box-sizing: content-box !important;
    -moz-box-sizing: content-box !important;
    
}

.book {
    color: black;
    font-family: Arial;
    font-size: 13px;
    padding: 0px;
    margin: 0px;
}

.page {
    width: 210mm;
    min-height: 297mm;
    padding: 20mm 15mm;
    margin: 10mm auto;
    border: 1px #D3D3D3 solid;
    border-radius: 5px;
    background: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    overflow: hidden !important;
}
.subpage {
    padding: 5mm;
    /*border: 1px grey solid;*/
    height: 257mm;
    /*outline: 15mm #FFEAEA solid;*/
}

.inspection_record .subpage {
    border: 1px solid black;
    height: 267mm;
    padding: 15mm;
}

.inspection_record .page {
    padding: 10mm;
}

#tiskContent .fakt-udaje {
    margin-bottom: 20px;
}

#tiskContent.inspection_record .header-block:after {
   content: '';
   display: block;
   clear: both;  
} 

#tiskContent.inspection_record .fakt-udaje {
    width: 70%;
    float: left;
}

#tiskContent .logo {
    float: right;
    width: 120px;
}

#tiskContent .fakt-udaje div {
    margin-bottom: 5px;
}

#tiskContent .fakt-udaje .blue {
    color: #4286f4;
    text-decoration: underline;
}

#tiskContent .dodavatel-title {
    text-decoration: underline;
}

#tiskContent .dodavatel {
    font-weight: bold;
}

#tiskContent .title {
    font-size: 20px;
    text-align: center;
    font-weight: bold;
    text-decoration: underline;
    margin-top: 15px;
}

#tiskContent .subtitles {
    width: 64%;
    margin: 15px auto;
}

#tiskContent .subtitles:after {
    content: '';
    display: block;
    clear: both;
}

#tiskContent .subtitles .title {
    float: left;
}

#tiskContent .subtitles .title:first-child {
    margin-right: 200px;
}

#tiskContent table.data {
    margin-top: 20px;
    width: 100%;
}

#tiskContent table.data td {
    padding: 4px 0;
    padding-right: 10px;
}

#tiskContent table.data td.bold {
    font-weight: bold;
}

.page2{
    /*background: url(../img/documents/zaznam_o_prohlidce_2.jpg);
    background-size: 100% 100%;*/
    padding: 0px;
    border: none;
    text-align: center;
    position:relative;
}

.page2 img{
    width: 209mm;
    height: 292mm;
    overflow: hidden;
}

.inspection_record .page2 img {
    padding-left: 3mm;
}

.page2 .creator{
    position: absolute;
    bottom: 20px;
    bottom: 120px;
    left: 173px;
}

.page2 .client{
    position: absolute;
    bottom: 120px;
    left: 550px;
}

.page2.page2-filled {
    text-align: left;
}

.inspection_record .page2.page2-img {
  padding: 0;
}

.page2 .page2-filled .tab-things {
    width: 80%;
    margin: 0 auto;
    border-collapse: collapse;
}

.page2.page2-filled .tab-things tr td:first-child {
    border-left: 1px solid grey;
}

.page2.page2-filled .tab-things tr td:last-child {
    border-right: 1px solid grey;
}


#tiskContent .page2.page2-filled .pomucky {
    margin-bottom: 40px;
}

#tiskContent .page2.page2-filled .missing-things {
    margin-top: 40px;
    margin-bottom: 10px;
    font-weight: bold;
    text-decoration: underline;
}

#tiskContent .page2.page2-filled .missing-dots {
    line-height: 35px;
}

#tiskContent .page2.page2-filled .tab-things tr td {
    width: 17%;
    border-top: 1px solid grey;
    border-bottom: 1px solid grey;
    padding: 10px 5px;
}

#tiskContent .page2.page2-filled .signs {
    position: absolute;
    bottom: 35mm;
    width: 160mm;
}

#tiskContent .page2.page2-filled .signs td:first-child,
#tiskContent .page2.page2-filled .signs td:nth-child(3) {
    width: 10%;
}

#tiskContent .page2.page2-filled .signs td:nth-child(2) {
    width: 50%;
}

#tiskContent .page2.page2-filled .tab-things tr td.thing-pocet {
    width: 3%;
}

.printButton a {
    background-color: #000000;
    border-radius: 5px;
    color: #FFFFFF !important;
    display: block;
    font-size: 16px;
    font-weight: 700;
    height: 30px;
    line-height: 30px;
    margin-right: 30px;
    position: fixed;
    right: 2px;
    text-align: center;
    text-decoration: none;
    top: 50px;
    width: 86px;
    z-index: 2;
}


div.footer-window {
    position: fixed;
    margin-right: 2px;
    top: 14px;
    right: 0px;
    text-align: right;
}

div.button-back {
    /* width: 86px; */
    height: 30px;
    line-height: 30px;
    padding: 0px 0px 0px 15px;
    text-align: left;
    font-size: 15px;
    color: white;
    background-image: url(../img/bg-button-close.png);
    background-repeat: no-repeat;
    background-position: left top;
    font-weight: bold;
}

div.button-back a {
    color: #FFFFFF;
    padding-left: 20px;
    text-decoration: none;
    padding-right: 40px;
}

.footer-window div.button-back {
    left: -106px;
    top: 30px;
}

.order_sheet{
    font-size: 12px;
}

.order_sheet .offer_number{
    position: absolute;
    top: 18px;
    left: 680px;
}

.order_sheet .address_from{
    position: absolute;
    top: 202px;
    left: 30px;

}

.order_sheet .address_to{
    position: absolute;
    top: 202px;
    left: 430px;

}

.order_sheet .client_name{
    position: absolute;
    top: 144px;
    left: 30px;
    font-size: 14px;
}

.order_sheet .date{
    position: absolute;
    top: 144px;
    left: 580px;
    font-size: 14px;

}

.order_sheet .crew{
    position: absolute;
    top: 258px;
    left: 80px;
    font-size: 12px;
    text-align: left;

}

.order_sheet .driver{
    position: absolute;
    top: 1003px;
    left: 133px;
    font-size: 14px;
    text-align: left;
}

.order_sheet .crew div{
    line-height: 19px;
}

.order_sheet .crew div:nth-child(1){
    line-height: 18px;
}

.order_sheet .crew div:nth-child(2){
    line-height: 18px;

}

.order_sheet .crew div:nth-child(3){
    line-height: 20px;

}

.order_sheet .crew div:nth-child(4){
    line-height: 17px;

}

.order_sheet .crew div:nth-child(5){
    line-height: 20px;
}


.order_sheet .crew div:nth-child(6){
    line-height: 18px;

}
.order_sheet .crew div:nth-child(7){
    line-height: 21px;

}

.order_sheet .crew div:nth-child(8){
    line-height: 21px;
}

.order_sheet .crew div:nth-child(9){
    line-height: 21px;
}

.order_sheet .crew div:nth-child(10){
    line-height: 19px;
}

@page {
    size: A4;
    margin: 0;
}

@media print {

    html, body{
        width: 210mm !important;
        height: 297mm !important;      
    }

    #content-private.window {
        margin: 0 !important;
        padding: 0 !important;
    }

    .button-back,
    .printButton {
        display: none !important;
    }

    .page {
        margin: 0 !important;
        border: initial;
        border-radius: initial;
        width: initial;
        min-height: initial;
        box-shadow: initial;
        background: initial;
        overflow: hidden !important;
        /*page-break-after: always;*/
    }

    .page2{
        page-break-after: always;
    }


    .subpage{
        border: none;
    }

    .page2{
        /*background: url(../img/documents/zaznam_o_prohlidce_2.jpg);*/
        /*background-size: 100% 100%;*/
        border: none;
    }

}