﻿@font-face{
    font-family:'THSarabunNew';
    font-weight:normal;
    font-style:normal;
    src:url('fonts/THSarabunNew.ttf') format('woff');
    src:url('fonts/THSarabunNew.ttf') format('truetype');
    src:url('fonts/THSarabunNew.ttf') format('truetype');
}



body {

    /*padding-top: 50px;*/
    padding-bottom: 20px;
    font-family: 'Kanit', sans-serif;    
    font-size:14px;
}
input[type=text],
input[type=datetime],
input[type=number],
input[type='email'],
textarea,
select{
     /*font-family:THSarabunNew !important;
         font-size: 12px;*/
       padding-top: 0px;
    padding-bottom: 0px;
}
input,select,textarea{
        color: black;
}
.form-control {
        color: black;
}
 #printArea{
        font-family:THSarabunNew !important;
         font-size: 12px;
 }

.dropdown-menu {
    font-size: 17px;
}
/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}
/*body
{
    font-size: .85em;
    font-family: "Trebuchet MS", Verdana, Helvetica, Sans-Serif;
    color: #232323;
    background-color: #fff;
}

header,
footer,
nav,
section {
    display: block;
}*/

/* Styles for basic forms
-----------------------------------------------------------*/

fieldset 
{
    border:1px solid #ddd;
    padding:0 1.4em 1.4em 1.4em;
    margin:0 0 1.5em 0;
}

legend 
{
    font-size:1.2em;
    font-weight: bold;
}

textarea 
{
    min-height: 75px;
}

.editor-label 
{
    margin: 1em 0 0 0;
}

.editor-field 
{
    margin:0.5em 0 0 0;
}

label.error
{
    color: Red;
}
.field-validation-valid
{
    display: none;
}
.validation-summary-valid
{
    display: none;
}
/* Styles for validation helpers
-----------------------------------------------------------*/
/*.field-validation-error
{
    color: #ff0000;
}

.field-validation-valid
{
    display: none;
}

.input-validation-error
{
    border: 1px solid #ff0000;
    background-color: #ffeeee;
}*/

/*.validation-summary-errors
{
    font-weight: bold;
    color: #ff0000;
}*/

/*.validation-summary-valid
{
    display: none;
}
img.ui-datepicker-trigger {
    float: right;
}

.hasDatepicker[readonly], .ui-datepicker-trigger {
    cursor: pointer;
    background: white;
}*/

@media print {
    body * {
        visibility: hidden;
		/*clear:both!important;*/
		padding:0px;
		margin:0px;
    }

    #printArea, #printArea * {
        visibility: visible;
    }
    .printArea,.printArea *{
        visibility: visible;
    }
    .ignorPrint, .ignorPrint * {
        visibility: hidden ;
    }
    #printArea {
		/*clear:both!important;*/
        width: 21cm;
        padding: 1cm;
        margin: 0cm auto;
        border-radius: 5px;
        background: white;
		/*margin-top: -340px;*/
    }

    #headerArea,
    #topPrintButton, bottomPrintButton,
    #topicHeaderArea,
    #footerArea {
        display: none;
    }

    #printArea .eachPrint {
		display: block;
        page-break-before: always;
    }

	#printArea .eachPrint:first-child {
		display: block;
		page-break-before: avoid;
	}
	
	
	

}

#printArea {
    width: 21cm;
    padding: 1cm;
    margin: 0cm auto;
    border-radius: 5px;
    background: white;
}
#printArea .maintable {
		margin-top:20px;
    line-height: 24px;
	}
    #printArea .data {
        color: blue;
        border-bottom: 1px dotted black;
    }



       .list-group-item {
            padding: 10px 20px;
            background-color: #2D8FCC;
            border: 1px solid #dddddd;
            border-right-style: none;
            border-left-style: none;
        }

        a.list-group-item {
            color: white;
        }

            a.list-group-item:hover,
            a.list-group-item:focus {
                background-color: #274D95;
            }

        #contentArea {
            background-color: white;
        }

        #middleArea {
            background-color: #2D8FCC;
            margin-left: 0px;
        }

        .fontSizeHeader {
               font-size: 20px;
               padding:12px 0;
        }

        button.ui-datepicker-trigger {
            float: right;
            margin-top: -28px;
            padding-right: 3px;
        }

img.ui-datepicker-trigger {
    float: right;
    margin-right: 5px;
    width: 22px;
    margin-top: -25px;
}




#search-results table  {
    padding:0px;
}
  #search-results table td {
    word-break: break-all;
    font-size: 12px;
    padding: 8px;
}
  #search-results table th {
    font-size: 12px;
    font-weight:normal;
    padding-left: 8px;
}

#import-result {
    width: 1134px;
    height: 400px;
    overflow: scroll;
}
      #import-result table  {
    padding:0px;
}
  #import-result table td {
    word-break: break-all;
    font-size: 10px;
        padding: 4px;
}
  #import-result table th {
    font-size: 10px;
    padding-left: 5px;
}
  #filterSearch input[type=text]{
      width:120px;
  }
  
  #filterSearch input[type=text].hasDatepicker{
      width:73px;
  }

  #filterSearch img.ui-datepicker-trigger {
    margin-top: 0;
    
    float: inherit;
}
   #filterSearch tr:first-child td {
    font-size:14px;
}
  #filterSearch tr td {
    padding:1px;
}

  #filterSearch #filter{
      width: 67px;
    padding: 3px;
  }

  table.dataTable thead .sorting:after {
    opacity: 0.2;
    content: "";
}
  table.dataTable thead .sorting_asc:after {
    content: "";
}
  table.dataTable thead .sorting_desc:after {
    content: "";
}




  
.custom btn {
    display: inline-block;
    padding: 10px;
    border-radius: 5px; 
    color: #aaa;
    font-size: .875em;
}

ul.custompagination {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
  
.custompagination {
    padding: 20px;
    margin-bottom: 20px;
        float: right;
}


.custompagination li{
    display: inline-block;
    padding: 5px 10px;
    margin-right: 4px;
    border-radius: 3px;
    border: solid 1px #c0c0c0;
    background: #e9e9e9;
    /*box-shadow: inset 0px 1px 0px rgba(255,255,255, .8), 0px 1px 3px rgba(0,0,0, .1);*/
    font-size: .875em;
    font-weight: bold;
    text-decoration: none;
    color: #717171;
    text-shadow: 0px 1px 0px rgba(255,255,255, 1);
}

.custompagination li:hover,.custompagination .gradient li:hover{
    background: #fefefe;
    /*background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FEFEFE), to(#f0f0f0));
    background: -moz-linear-gradient(0% 0% 270deg,#FEFEFE, #f0f0f0);*/
}

.custompage.active {
    border: none;
        border: solid 1px #c0c0c0;
    /*background: #616161;
    box-shadow: inset 0px 0px 8px rgba(0,0,0, .5), 0px 1px 0px rgba(255,255,255, .8);*/
    /*color: #f0f0f0;*/
    /*text-shadow: 0px 0px 3px rgba(0,0,0, .5);*/
}

.custompage.gradient {
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f8f8f8), to(#e9e9e9));
    background: -moz-linear-gradient(0% 0% 270deg,#f8f8f8, #e9e9e9);
}

.custompagination.dark {
    background: #414449;
    color: #feffff;
}

.page.dark {
    border: solid 1px #32373b;
    background: #3e4347;
    box-shadow: inset 0px 1px 1px rgba(255,255,255, .1), 0px 1px 3px rgba(0,0,0, .1);
    color: #feffff;
    text-shadow: 0px 1px 0px rgba(0,0,0, .5);
}

.page.dark:hover, .page.dark.gradient:hover {
    background: #3d4f5d;
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#547085), to(#3d4f5d));
    background: -moz-linear-gradient(0% 0% 270deg,#547085, #3d4f5d);
}

.page.dark.active {
    border: none;
    background: #2f3237;
    box-shadow: inset 0px 0px 8px rgba(0,0,0, .5), 0px 1px 0px rgba(255,255,255, .1);
}

.page.dark.gradient {
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#565b5f), to(#3e4347));
    background: -moz-linear-gradient(0% 0% 270deg,#565b5f, #3e4347);
}