﻿@page {
    margin: 0;
    font-size:small;
}

/*body {
    margin: 0
}
*/
.sheet {
    margin: 0 auto;
    /*overflow: hidden;*/
    position: relative;
    box-sizing: border-box;
    page-break-after: always
}

body.A3 .sheet {
    width: 297mm;
    height: 419mm
}

body.A3.landscape .sheet {
    width: 420mm;
    height: 296mm
}

body.A4 .sheet {
    width: 210mm;
    height: 296mm
}

body.A4.landscape .sheet {
    width: 297mm;
    height: 209mm
}

body.A5 .sheet {
    width: 148mm;
    height: 209mm
}

body.A5.landscape .sheet {
    width: 210mm;
    height: 147mm
}

body.letter .sheet {
    width: 216mm;
    height: 279mm
}

body.letter.landscape .sheet {
    width: 280mm;
    height: 215mm
}

body.legal .sheet {
    width: 216mm;
    height: 356mm
}

body.legal.landscape .sheet {
    width: 357mm;
    height: 215mm
}

.sheet.padding-10mm {
    padding: 10mm
}

.sheet.padding-15mm {
    padding: 15mm
}

.sheet.padding-20mm {
    padding: 20mm
}

.sheet.padding-25mm {
    padding: 25mm
}

@media screen {
    body {
        background: #e0e0e0;
    }

    .sheet {
        background: #fff;
        box-shadow: 0 .5mm 2mm rgba(0,0,0,.3);
        margin: 5mm auto
    }
}

@media print {
    
    .sheet {
        margin: 0 auto;
    }
    
    body .A3.landscape {
        width: 420mm;
        font-size: small;
    }

    body.A3, body.A4.landscape {
        width: 297mm;
        font-size: small;
    }

    body.A4, body.A5.landscape {
        width: 210mm;
        font-size: small;
    }

    body.A5 {
        width: 148mm;
        font-size: small;
    }

    body.legal, body.letter {
        width: 216mm;
        font-size: small;
    }

        body.letter.landscape {
            width: 280mm;
            font-size: small;
        }

        body.legal.landscape {
            width: 357mm;
            font-size: small;
        }

    body.print_data {
        color: black !important;
        background-color: white !important;
    }

    body.MyPrint {
        border-collapse: collapse !important;
        /*text-align: center;*/
        margin: 0 auto;
        border-radius: 20px;
        border: 1px none black;
    }

        body.MyPrint tr:first-child td {
            height: 35px;
            padding: 5px;
            border: 1px solid black;
            border-collapse: collapse !important;
            font-weight: bold;
            font-size: large;
            text-align: center;
        }

        body.MyPrint tr td {
            font-weight: normal;
            font-size: medium;
            padding: 3px;
            vertical-align: middle;
            border: black 1px solid;
            border-collapse: collapse !important;
        }

    body.tb_PrintVersion {
        border-collapse: collapse !important;
        /*text-align: center;*/
        margin: 0 auto;
    }

        body.tb_PrintVersion tr:first-child td {
            height: 35px;
            padding: 5px;
            border: 1px solid black;
            border-collapse: collapse !important;
            font-weight: bold;
            font-size: medium;
            text-align: center;
        }

        body.tb_PrintVersion tr td {
            font-weight: normal;
            font-size: small;
            padding: 3px;
            vertical-align: middle;
            border: black 1px solid;
            border-collapse: collapse !important;
        }
}

