@media print {
  a[href]:after {
    content: none !important;
  }
}


.keep-together {
    page-break-inside: avoid;
}

.break-before {
    page-break-before: always;
}

.break-after {
    page-break-after: always;
}

body {
    font-family: 'chulalongkornregular', sans-serif;
	font-size: 16px;
}

.section-content {
  padding-top: 5%;
}

.dropdown-menu-center {
    right: auto;
    left: 50%;
    -webkit-transform: translate(-50%, 0);
    -o-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
}

.text-error {
	color:red;
}

.text-nohead {
		font-family: 'chulalongkornregular', sans-serif;
}

.text-nowrap {
    white-space: nowrap;
}

ul {
    list-style-position: inside;
}

.no-margin{margin:0;}

.white-bg{
    background:#ffffff !important;
}

.info-bg{
    background:#d9edf7 !important;
}

.lb-sm {
  font-size: 12px;
}

.lb-md {
  font-size: 16px;
}

.lb-lg {
  font-size: 20px;
}

.padding-0{
    padding-right:0;
    padding-left:0;
}


.fixheader{
 position: fixed;
 width: 98%;
 z-index: 2;	
}

.btn-circle {
  width: 30px;
  height: 30px;
  text-align: center;
  padding: 6px 0;
  font-size: 12px;
  line-height: 1.42;
  border-radius: 15px;
}

.btn-icon:after {
    font-family: "Glyphicons Halflings";
    content: "\e113";
  }

 .btn-icon.collapsed:after {
    content: "\e114";
  }

.top5 { margin-top:5px; }
.top7 { margin-top:7px; }
.top10 { margin-top:10px; }
.top15 { margin-top:15px; }
.top17 { margin-top:17px; }
.top20 { margin-top:20px; }
.top30 { margin-top:30px; }
.top40 { margin-top:40px; }
.top50 { margin-top:50px; }
.top60 { margin-top:60px; }
.top70 { margin-top:70px; }
.top80 { margin-top:80px; }
.top90 { margin-top:90px; }
.top100 { margin-top:100px; }
.top150 { margin-top:150px; }
.top200 { margin-top:200px; }
.top300 { margin-top:300px; }

.bottom5 { margin-bottom:5px; }
.bottom7 { margin-bottom:7px; }
.bottom10 { margin-bottom:10px; }
.bottom15 { margin-bottom:15px; }
.bottom17 { margin-bottom:17px; }
.bottom20 { margin-bottom:20px; }
.bottom30 { margin-bottom:30px; }
.bottom40 { margin-bottom:40px; }
.bottom50 { margin-bottom:50px; }
.bottom60 { margin-bottom:60px; }
.bottom70 { margin-bottom:70px; }
.bottom80 { margin-bottom:80px; }
.bottom90 { margin-bottom:90px; }
.bottom100 { margin-bottom:100px; }
.bottom150 { margin-bottom:150px; }
.bottom200 { margin-bottom:200px; }
.bottom300 { margin-bottom:300px; }

.left5 { margin-left:5px; }
.left7 { margin-left:7px; }
.left10 { margin-left:10px; }
.left15 { margin-left:15px; }
.left17 { margin-left:17px; }
.left20 { margin-left:20px; }
.left25 { margin-left:25px; }
.left30 { margin-left:30px; }
.left35 { margin-left:35px; }
.left40 { margin-left:40px; }
.left45 { margin-left:45px; }
.left50 { margin-left:50px; }
.left60 { margin-left:60px; }
.left70 { margin-left:70px; }
.left80 { margin-left:80px; }
.left90 { margin-left:90px; }
.left100 { margin-left:100px; }

.round5 {border-radius: 5px;}
.round10 {border-radius: 10px;}

.pointarea { cursor: pointer;}

.vertical-center {
  min-height: 100%;  /* Fallback for browsers do NOT support vh unit */
  min-height: 100vh; /* These two lines are counted as one :-)       */

  display: flex;
  align-items: center;
}

.table tbody>tr>td.vert-align{
    vertical-align: middle;
}

.vertical-top {
    display: inline-block;
    vertical-align: top !important;
    float: none;
}

.table tbody>tr>td.pad-0{
    padding:0; margin:0;
}

.table tbody>tr>td.pad-2{
    padding:2px; margin:0;
}

.borderless td, .borderless th {
    border: none;
}

.thumbnail {
        position: relative;
        padding: 10px;
    }

.Absolute-Center {
  margin: auto;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
}

.Absolute-Center.is-Responsive {
  width: 50%; 
  min-width: 200px;
  max-width: 400px;
  padding: 10px;
}

.title-Main {
	margin: 1em 0 0.5em 0;
	font-weight: normal;
	position: relative;
	text-shadow: 0 -1px rgba(0,0,0,0.6);
	background: #355681;
	background: rgba(53,86,129, 0.8);
	border: 1px solid #fff;
	padding: 5px 15px;
	color: white;
	border-radius: 0 10px 0 10px;
	box-shadow: inset 0 0 5px rgba(53,86,129, 0.5);
}

.title-MainBody {
	margin: 0;
	font-weight: normal;
	position: relative;
	background: #e5f0f6;
	padding: 10px 10px;
}


.full-width {
    display:block;
}

.nodatachosen {
	color:#AAA;
}

 .footercolor {
      background-color: #555;
      color: white;
      padding: 15px;
    }

.table-nonfluid {
   width: auto !important;
}

.table-center
{
  margin: 0 auto !important;
  float: none !important;
}

.table-nomargin-bottom table {
	margin-bottom: 0px;
}

.nobordertop td, .nobordertop th {
    border-top: none !important;
}

.nopadding {padding:0;}
.nomargin {margin:0}

.badge-danger {
background-color: #d9534f;
}
.badge-primary {
background-color: #145bf4;
}
.badge-warning {
background-color: #f0ad4e;
}
.badge-success {
background-color: #5cb85c;
}
.badge-info {
background-color: #5bc0de;
}
.badge-inverse {
background-color: #333333;
}

.tdSmWidth{ width: 40px !important; }
.tdMdWidth{ width: 80px !important; }
.tdLgWidth{ width: 160px !important; }

.form-horizontal .control-label.text-left{
text-align:left;
}

.panel.noborder {
    border: 0;
    box-shadow: none;
}
.panel.noborder > .panel-heading {
    border: 0;
}
.panel.noborder > .panel-body {
    border: 0;
}
.panel.noborder > .panel-footer {
    border: 0;
}

@media (min-width: 768px) {
  .modal-xl {
    width: 90%;
   max-width:1200px;
  }
}

.badge-notify{
   background:red;
   position:relative;
   top: -20px;
   left: -35px;
  }

.navbar-xs .navbar-primary .navbar { min-height:20px; height: 20px; }
.navbar-xs .navbar-primary .navbar .navbar-brand{ padding: 0px 12px;font-size: 14px;line-height: 20px; }
.navbar-xs .navbar-primary .navbar .navbar-nav > li > a {  padding-top: 0px; padding-bottom: 0px; line-height: 20px;}
#myNavbar > ul > li > a {color:#218C5B;}
#myNavbar > ul > li > ul > li > a {color:#218C5B;}

.bg1{background:#008000;}
.bg2{background:#228b22;}
.bg3{background:#32cd32;}

.LineBtn {
	position: fixed;
	right:30px;
	bottom:85px;
	z-index: 99;
	border: none;
	outline: none;
	cursor: pointer;
}

.FacebookBtn {
	position: fixed;
	right:30px;
	bottom:140px;
	z-index: 99;
	border: none;
	outline: none;
	cursor: pointer;
}


#ScrlBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: #79ad85; /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 0px 10px 0px 10px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
}

#ScrlBtn:hover {
    background-color: #999; /* Add a dark-grey background on hover */
}


div.hl-box {
    position: relative;
    background: #eee;
    padding: 10px;
	border-radius: 10px;
}

div.hl-box:hover {
    cursor: hand;
    cursor: pointer;
    opacity: .8;
}

div.dl-box {
    position: relative;
	border: none;
    box-shadow: none;
    padding: 10px;
	border-radius: 10px;
}

div.dl-box:hover {
    background: #eee;
	cursor: hand;
    cursor: pointer;
    opacity: .7;
}


a.divLink {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-decoration: none;
    /* Makes sure the link doesn't get underlined */
    z-index: 10;
    /* raises anchor tag above everything else in div */
    background-color: white;
    /*workaround to make clickable in IE */
    opacity: 0;
    /*workaround to make clickable in IE */
    filter: alpha(opacity=0);
    /*workaround to make clickable in IE */
}

 .System-Topic{
      background-color: #228b22;
	  font-family: 'chulalongkornregular', sans-serif;
      color: white;
    }
.System-Menu{
	color: #228b22;
	font-family: 'chulalongkornregular', sans-serif;
	font-size: 24px;
}
.System-SubMenu{
	color: #228b22;
	font-family: 'chulalongkornregular', sans-serif;
	font-size: 20px;
}

.Combo-Text{
	color: #228b22;
	font-family: 'chulalongkornregular', sans-serif;
	font-size: 16px;
}

.Menu-Text{
	font-family: 'chulalongkornregular', sans-serif;
	font-size: 18px;
}


.CntPage-Topic{
	color: #228b22;
	font-family: 'chulalongkornregular', sans-serif;
	font-size: 28px;
}

.CntPage-Topic2{
	color: #228b22;
	font-family: 'chulalongkornregular', sans-serif;
	font-size: 18px;
}

.CntPage-SubTopic{
	color: #838e7c;
	font-family: 'chulalongkornregular', sans-serif;
	font-size: 18px;
}

.CntPage-Remark{
	color: #838e7c;
	font-family: 'chulalongkornregular', sans-serif;
	font-size: 10px;
}


.ColPage-Topic{
	color: #228b22;
	font-family: 'chulalongkornregular', sans-serif;
	font-size: 36px;
}


.ColPage-Page{
	color: #aaaaaa;
	font-family: 'chulalongkornregular', sans-serif;
	font-size: 20px;
}

.ColHighlight-Topic{
	color: #228b22;
	font-family: 'chulalongkornregular', sans-serif;
	font-size: 22px;
}

.ColMore-Topic{
	color: #aaaaaa;
	font-family: 'chulalongkornregular', sans-serif;
	font-size: 14px;
}


.Contact-Topic{
	color: #666666;
	font-family: 'chulalongkornregular', sans-serif;
	font-size: 20px;
}


.Section-Menu-Text{
	font-family: 'chulalongkornregular', sans-serif;
	font-size: 20px;
}




.Chapter-Menu-Text{
	font-family: 'chulalongkornregular', sans-serif;
	font-size: 16px;
}

a.Chapter-Menu-Text:link {color: green;}
a.Chapter-Menu-Text:visited {color: green;}



.hl-Topic{
	color: #228b22;
	font-family: 'chulalongkornregular', sans-serif;
	font-size: 16px;
}
.hl-Desc{
	color: #333333;
}

.dl-Topic{
	color: #228b22;
	font-family: 'chulalongkornregular', sans-serif;
	font-size: 16px;
}
.dl-Desc{
	color: #333333;
}


.btn-file {
    position: relative;
    overflow: hidden;
}
.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}


.google-maps {
        position: relative;
        padding-bottom: 75%; // This is the aspect ratio
        height: 0;
        overflow: hidden;
    }
.google-maps iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
}

.Icon-Status-1 {color:green;}
.Icon-Status-0 {color:red;}

.carousel-control .glyphicon-chevron-right, .carousel-control .icon-next {
  right: 40px;
  font-size: 50px;
  opacity:100;
}

.carousel-control .glyphicon-chevron-left, .carousel-control .icon-prev {
  left: 20px;
  font-size: 50px;
  opacity:100;
}


/* Tab Navigation */
.nav-tabs {
    margin: 0;
    padding: 0;
    border: 0;    
}
.nav-tabs > li > a {
    background: #DADADA;
    border-radius: 0;
    box-shadow: inset 0 -8px 7px -9px rgba(0,0,0,.4),-2px -2px 5px -2px rgba(0,0,0,.4);
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover {
    background: #F5F5F5;
    box-shadow: inset 0 0 0 0 rgba(0,0,0,.4),-2px -3px 5px -2px rgba(0,0,0,.4);
}

/* Tab Content */
.tab-pane {
    background: #F5F5F5;
    box-shadow: 0 0 4px rgba(0,0,0,.4);
    border-radius: 0;
    padding: 10px;
}

/*Photoswipe*/
.my-gallery {
  width: 100%;
}
.my-gallery img {
  height: auto;
}
.my-gallery figcaption {
  display: none;
}
.pswp__caption .pswp__caption__center {
    font-size: 20px;
}
.pswp__caption .pswp__caption__center small{
    font-size: 18px;
}

.image-border{
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 7px;
}

  .Cell-Header{
	background:#ecf2f8;
  }

    .Cell-Header-Total{
	background:#ebffeb;
  }
  .Cell-Total{
	background:#f3fef7;
  }

 .map-container {
  display: inline-block;
  position: relative;
}

 .map-container > .map-image {
	height: auto;
    max-width: 100%;
    width: auto;
}

.map-container > .map-marks {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
}

.map-container > .map-marks > .map-mark {
  position: absolute;
}

.map-container > .map-marks > .map-mark > .map-mark-image {
    -webkit-transform: translateX(-50%) translateY(-50%);
       -moz-transform: translateX(-50%) translateY(-50%);
        -ms-transform: translateX(-50%) translateY(-50%);
         -o-transform: translateX(-50%) translateY(-50%);
            transform: translateX(-50%) translateY(-50%);
}



.cert-container {
  position: relative;
  width: 1250px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.cert-text1{
	position: absolute;
	text-align: center;
	top: 390px;
	font-family: 'chulalongkornregular', sans-serif;
	font-size: 32px;
}

.cert-text2{
	position: absolute;
	top: 595px;
	left: 600px;
	font-family: 'chulalongkornregular', sans-serif;
	font-size: 28px;
}



.reportChart {width:900px;}

.label-error {background-color: white; color: red; border-style: solid; border-width:1px; border-color:red}
.label-active {background-color: white; color: blue; border-style: solid; border-width:1px; border-color:blue}
.label-survey {background-color: white; color: #a274e3; border-style: solid; border-width:1px; border-color:#a274e3;}
.label-chem {background-color: white; color: #6abdeb; border-style: solid; border-width:1px; border-color:#6abdeb;}
.label-BSL {background-color: white; color: #458252; border-style: solid; border-width:1px; border-color:#458252;}
.label-RS {background-color: white; color: #f27c05; border-style: solid; border-width:1px; border-color:#f27c05;}


.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.icons-container {
  display: flex;
  align-items: center;
}


.icons-wrapper {
  display: flex;
  flex-direction: column;
  padding-left: 4px;
}

.icons-wrapper i.fa{
  line-height: 0;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}


.video-youtube {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
