﻿table.fixed {table-layout:fixed; width:100%;}/*Setting the table width is important!*/
table.fixed td {overflow:hidden;}/*Hide text outside the cell.*/
table.fixed td:nth-of-type(1) {width:150px;}/*Setting the width of column 1.*/
table.fixed td:nth-of-type(2) {width:481px;}/*Setting the width of column 2.*/
table.fixed td:nth-of-type(3) {width:40px;}/*Setting the width of column 3.*/
table.fixed { table-layout:fixed; }
table.fixed td { overflow: hidden; }
table.fixed {
    background: transparent !important;
}


    table.fixed2 {
        table-layout: fixed;
        width: 100%;
    }/*Setting the table width is important!*/
table.fixed2 td {overflow:hidden;}/*Hide text outside the cell.*/
table.fixed2 td:nth-of-type(1) {width:150px;}/*Setting the width of column 1.*/
table.fixed2 td:nth-of-type(2) {width:210px;}/*Setting the width of column 2.*/
table.fixed2 td:nth-of-type(3) {width:120px;}/*Setting the width of column 3.*/
table.fixed2 { table-layout:fixed; }
table.fixed2 td { overflow: hidden; }

table.fixed3 tr td {vertical-align:top;}
table.fixed3 {table-layout:fixed; width:100%;}/*Setting the table width is important!*/
table.fixed3 td {overflow:hidden;}/*Hide text outside the cell.*/
table.fixed3 td:nth-of-type(1) {width:130px;}/*Setting the width of column 1.*/
table.fixed3 td:nth-of-type(2) {width:60px;}/*Setting the width of column 2.*/
table.fixed3 td:nth-of-type(3) {width:80px;}/*Setting the width of column 3.*/
table.fixed3 td:nth-of-type(4) {width:150px;padding-right:5px;}/*Setting the width of column 3.*/

table.fixed3 { table-layout:fixed; }
table.fixed3 td { overflow: hidden; padding:8px !important; }

table.fixed4 tr td {vertical-align:top;}
table.fixed4 {table-layout:fixed; width:100%;}/*Setting the table width is important!*/
table.fixed4 td {overflow:hidden;}/*Hide text outside the cell.*/
table.fixed4 td:nth-of-type(1) {width:350px;}/*Setting the width of column 1.*/
table.fixed4 td:nth-of-type(2) {width:150px;}/*Setting the width of column 2.*/
table.fixed4 { table-layout:fixed; }
table.fixed4 td { overflow: hidden; }

table.fixed5 {table-layout:fixed; width:100%;}/*Setting the table width is important!*/
table.fixed5 td {overflow:hidden;}/*Hide text outside the cell.*/
table.fixed5 td:nth-of-type(1) {width:481px;}/*Setting the width of column 1.*/
table.fixed5 td:nth-of-type(2) {width:150px;}/*Setting the width of column 2.*/
table.fixed5 td:nth-of-type(3) {width:40px;}/*Setting the width of column 3.*/
table.fixed5 { table-layout:fixed; }
table.fixed5 td { overflow: hidden; }
p {margin:0;}
.data {
    color: blue;
    border-bottom: 1px dotted black;
}
#preview-footer {
    margin-bottom:0;
}
#printArea {
    font-family: THSarabunNew !important;
}
#printArea span {
    line-height:2.4;
}
#printArea h1,#printArea h2,#printArea h3,#printArea h4,#printArea h5,#printArea h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: THSarabunNew !important;
}
.imgbackgroung {
    background-image: url('../Image/watermark.jpg');
    background-size: 300px auto;
    background-repeat: no-repeat;
    background-position: center;
}
.pagebreak { page-break-before: always; } /* page-break-after works, as well */
.page {
    width: 257mm;
    min-height: 297mm;
    padding: 20mm;
    margin: 10mm auto;
    border: 1px #D3D3D3 solid;
    /*border-radius: 5px;*/
    background: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.subpage {
    padding: 1cm;
    border: 1px #ddd solid;
    height: 277mm;
    outline: 2cm #f2f2f2 solid;
}
* {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}
@page {
    size: A4;
    margin: 0;
  
}
@media print {
    /*.imgbackgroung {
        background-image: url('../Image/watermark.jpg');
        background-size: 300px auto;
        background-repeat: no-repeat;
        background-position: center;
    }*/

    html, body {
        width: 210mm;
        height: 297mm;


    }
    .subpage {
        padding: 0;
        border: 0;
        height: 277mm !important;
        background-color: #fff;
        /*outline: 2cm #fff solid;*/
    }
    .page {
        width: 210mm;
        margin: 0;
        border: initial;
        border-radius: initial;
        width: initial;
        min-height: initial;
        box-shadow: initial;
        background: initial;
        -webkit-print-color-adjust: exact !important;
        page-break-after: always;
    }
    #printArea, #printArea * {
        visibility: visible;
    }

    #headerArea,
    #topPrintButton,
    #bottomPrintButton,
    #topicHeaderArea,
    #footerArea,
    #menuSideArea,
    #prview-header,
    #preview-footer,
    #menuItems,
    #printbtn,
    #thank {
        display: none !important;
    }
    .body-content {
        margin: 0;
        padding: 0;
        border:none;
        min-height:0;
    }
    .table {
        margin-bottom:0;
    }
    .border-bottom {
        border:none;
    }
    .container {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        margin: 0;
        padding: 0;
    }
}
