body {
  background: #fafafa !important;
  overflow-x: hidden;
}

* {
  font-family: 'Sarabun', sans-serif !important;
}

h2 {
  font-size: 30px;
  font-weight: bolder;
}

.title {
  font-size: 22px;
}

.fa {
  font-family: 'FontAwesome', sans-serif !important;
  margin-top: -15px !important;
}

/* #footer {
  margin-top: 20px;
  text-align: center;
  color: #333;
  padding: 20px;
  width: 100%;
} */

#banner {
  margin: 15px;

}

#banner .block {
  text-align: center;
  padding: 10px;
}

#banner .block {
  font-size: 1.4vw;
  color: #fff;
  font-family: 'Sarabun', sans-serif !important;
}

#banner .number {
  display: block;
  text-align: center;
  width: 70%;
  margin: 0 auto;
  border-radius: 1em;
  background-color: rgba(0, 0, 0, 0.1);
  color: #fff;
  margin-top: 5px;
  font-size: 2vw;
  font-family: 'Sarabun', sans-serif !important;

}

#banner img {
  width: 54px;
  display: block;
  margin: 0 auto;
  fill: "white";
  margin-bottom: 5px;
}

#banner .title {
  font-size: 1.5vw;
  font-family: 'Sarabun', sans-serif !important;
  font-weight: bold;

}

#banner .row,
.cover>div {
  padding: 10px 0 0 10px;

  border: solid #d5d5d5 1px;
  -moz-border-radius: 0.4em;
  border-radius: 0.4em;
  box-shadow: 0 0 4px #ccc;
  background-color: #fff;
}

#banner .col-lg-2 {
  padding-left: 0 !important;
  margin-bottom: 10px;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  appearance: none;
  outline: 0;
  box-shadow: none;
  border: solid 1px #ccc;
  background-image: none;

}

/* Remove IE arrow */
select::-ms-expand {
  display: none;
}

/* Custom Select */
.select {
  position: relative;
  display: flex;
  width: calc(100% - 10px);
  height: 3em;
  line-height: 3;
  overflow: hidden;
  border-radius: .25em;
  margin-bottom: 10px;
}

select {
  flex: 1;
  padding: 0 .5em;
  color: #333;
  cursor: pointer;
}

/* Arrow */
.select::after {
  content: '\25BC';
  position: absolute;
  top: 0;
  right: 0;
  padding: 0 1em;
  background: #34495e;
  cursor: pointer;
  pointer-events: none;
  -webkit-transition: .25s all ease;
  -o-transition: .25s all ease;
  transition: .25s all ease;
}

/* Transition */
.select:hover::after {
  color: #f39c12;
}

.form-input,
.select-dash {
  text-align: left !important;
}

.flex-contrainer {
  display: flex;
  justify-content: space-between;
}

.flex-contrainer div {
  flex: 0 1 20%;
}

.flex-contrainer div:not(:last-child) {
  margin-right: 15px;
}

.block {
  border-radius: 4px;
}


.block.lv1 {
  background-color: #208ffa;
}

.block.lv2 {
  background-color: #0eaa6a;
}

.block.lv3 {
  background-color: #efdf57;
}

.block.lv4 {
  background-color: #ffaa4f;
}

.block.lv5 {
  background-color: #ec433c;
}

.fullH {
  height: 100%;
}






#header {
  padding: 0 15px 0 20px;
  background-color: #fff;
}

#header h3 {
  font-family: 'Sarabun', sans-serif !important;
  font-size: 1.6vw;
  margin-top: -5px;
  color: #00622e;
  /*text-shadow: 2px 1.5px #17838f;*/
}

#header h3:first-child {
  margin-top: 10px;
}

.btn-custom {
  font-family: 'Sarabun', sans-serif !important;
  font-size: 1vw;
  background-color: #3a4ed5;
  color: #fff;
  border-radius: 20px;
  padding: 5px 40px;
  margin-top: 10px;
  transition: opacity 0.22s ease 0.24s, transform 0.22s ease 0.24s, color 0.22s ease 0s;
}

.btn-custom:active,
.btn-custom:hover {
  color: #ffffff;
  background: #030a6e;
}

hr {
  overflow: hidden;
  clear: both;
}


.top-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  line-height: 60px;
  margin: 0;
}

.top-nav * {
  font-family: 'Sarabun', sans-serif !important;
  font-size: 1.2vw;
  font-weight: bold;
}

.top-nav a {
  color: #333;
}

.top-nav li {
  position: relative;
}

.top-nav>li {
  display: inline-block;
  padding: 5px 15px;
}

.dropbtn {
  padding: 16px;
  font-size: 1.1vm;
  border: none;
  background-color: transparent;
}

.submenu {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 120px;
  margin-top: 5px;
  margin-left: 15px;
  padding: 5px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 99;
}

.submenu li {
  display: block;
  padding: 5px;
  line-height: 20px;

}

.submenu li:first-child {
  border-bottom: solid 1px #efefef;
}

.submenu a {
  padding: 2px;
  text-decoration: none;
  display: block;
  font-size: 0.8vm !important;
}

.top-nav li:hover .submenu {
  display: block;
}


.top-nav li>a::before {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 3px;
  content: "";
  -webkit-transition: .3s;
  transition: .3s;
  background: #3a4ed5;
}

.top-nav li:hover>a:before {
  width: 70%
}

.top-nav li:hover .fa {
  color: #3a4ed5 !important;
}

.top-nav li.active>a {
  color: #3a4ed5 !important;
}

.top-nav li.active>a:before {
  width: 70%
}



table {
  border: 0;
}

tbody tr:hover {
  background-color: #f2f3f9;
}

thead th {
  border-bottom: solid 1px #000 !important;
  border-top: 0;
}

th,
td {
  background-color: transparent !important;
  border-left: 0;
  border-right: 0;
}





#cover {
  min-height: 605px;
}

#cover>div {
  margin: 0 auto;
  width: 70%;
  padding: 15px;
}

#cover h3 {
  margin-top: 30px;
  margin-bottom: 30px;
}

#cover h4 {
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.5vw;
  overflow: hidden;
}

.form-input,
.select-dash {
  box-shadow: none;
  display: block;
  padding: 10px 10px 10px 10px;
  color: #29293a;
  /*background-color: #7099a5;  border: 0px solid #f2f3f9; */
  background-color: #fafafa;
  border-radius: 35px;
  -webkit-appearance: button;
  -moz-appearance: button;
  appearance: button;
  text-align: center;
  text-align-last: center;
}

.select-dash {
  /*background-color:#f2f3f9;*/
  border: 1px solid #e8e8f0;
  border-radius: 0;
}

.flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex div {
  box-shadow: 0 9px 35px 0 rgba(0, 0, 0, .07);
}

.resultPercent *,
.resultPercent3 * {
  font-size: 1.3vw !important;
  color: #000;
}

.flex div {
  display: inline-block;
  border-radius: 20px;
  border: solid 1px #efefef;
  padding: 20px 0;
  width: 20%;
  text-align: center;
}

.flex div:not(:first-child) {
  margin-left: 20px;
}

.resultPercent3 div {
  width: 33%;
}

hr {
  margin: 0;
  padding: 0;
  border-top: 0;
  height: 2px;
  background: #dedede;
  background: linear-gradient(to right, transparent, #dedede, transparent);
}

.bg--light-gray-1 {
  background-color: #fafafa;
  color: #333;
}

#p-c {
  text-align: center;
}

.page {
  display: inline-block;
}

.doc-item {
  list-style-type: none;
  padding: 0;
  margin: 0;
  vertical-align: top;
}

.doc-item li {
  width: 200px;
  display: inline-block;
  margin-top: 0;
  margin-left: 55px;
}

.doc-item .img {
  width: 200px;
  height: 200px;
  display: block;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  background-size: cover;
  background-position: 50% 50%;
  margin-bottom: 15px;
}

.doc-item h3 {
  width: 100%;
  padding-top: 0;
  margin-top: 0 !important;
  margin-bottom: 50px !important;
  font-family: 'Sarabun', sans-serif !important;
  font-size: 1.2vw;
}



#subNav {
  position: absolute;
  z-index: 99;
  list-style-type: none;
  padding: 0;
  margin: 0 0 0 25px;
  border-bottom: solid 1px #efefef;
  border-radius: 2px;
}

#subNav * {
  font-family: 'Sarabun', sans-serif !important;
  font-weight: bold;
  color: #999;
}

#subNav li {
  border: solid 1px #efefef;
  border-bottom: 0;
  background-color: #fff;
  width: 154px;
  padding: 10px;
}

#subNav li select {
  background-color: #fff;
  width: 100%;
  text-align-last: left;
  padding: 0 5px;
  border: 0;
  margin: 0;
}

/*#3a4ed5!important*/
#subNav li.active {
  position: relative;
  border: 0;
  box-shadow: 0 0 5px #DDD;
  border-left: 4px solid #3a4ed5;
  border-right: 4px solid #3a4ed5;
  margin: 0 -4px;
  width: 162px;
  background-color: #3a4ed5;
}

#subNav li.active a,
#subNav li.active i {
  color: #fff !important;
}

#subNav li:hover a,
#subNav li:hover i {
  color: #3a4ed5 !important;
}

#subNav li.active:before {
  content: "";
  position: absolute;
  top: 42%;
  left: 0;
  border-left: 5px solid #3a4ed5;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

#subNav li.active:after {
  content: "";
  position: absolute;
  top: 42%;
  right: 0;
  border-right: 5px solid #3a4ed5;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.part2-cover {
  border: solid 1px #efefef;
  padding: 10px;
  background-color: #fff;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .07);
}

.part2-cover div:first-child {
  background-color: #efefef !important;
}


.cover-shadow>div {
  background: #fff;
  border-color: #efefef;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .07);
  padding: 20px 10px;
  /*margin-right:20px;*/
}

.cover-shadow * {
  font-family: 'Sarabun', sans-serif !important;
}

.jvectormap-region.jvectormap-element {
  font-size: 9px;
  text-shadow: -1px -1px 3px #fff, 1px -1px 3px #fff, -1px 1px 3px #fff, 1px 1px 3px #fff;
}

.map-cover {
  padding-right: 15px;
}

.map-cover .map {
  padding: 5px;
  background-color: #efefef;
  border: solid 1px #ddd;
}

.map-cover .title {
  background-color: #ddd;
  padding: 5px;
  text-align: center;
}

#hos-level-detail {
  list-style-type: none;
  padding: 0;
  margin: 0;
  width: 75%;
  margin: 0 auto;
  display: flex;
  padding-left: 10px;
}

#hos-level-detail li {
  flex-grow: 1;
}

.map-level-color {
  width: 30px;
  height: 30px;
  float: left;
}

.map-level-title {
  width: calc(100% - 80px);
  line-height: 30px;
  float: left;
  padding-left: 5px;
}

@media (max-width: 600px) {
  #cover {
    width: 100%;
  }

  #cover>div {
    width: calc(100% - 30px) !important;
    padding: 0;
  }

  .content {
    padding: 0 !important;
  }

  .content * {
    font-size: 3.5vw;
  }

  .content>div {
    padding: 0;
  }

  .content table {
    margin-top: 10px !important;
  }

  #vmap {
    width: 330px !important;
    margin-bottom: 10px;
  }

  h2 {
    font-size: 5vw;
    padding: 20px 0 0 0 !important;
  }
}

@media (min-width: 601px) {
  .content {
    width: 75%;
    margin: 0 auto;
    padding: 20px 0;
  }

}

.gage {
  margin-bottom: 15px;
}

.gage .title {
  padding: 0 10px;
  margin: 0;
  line-height: 20px;
  height: 20px;
  text-align: center;
}

/* ทำให้ตัวเลือกที่ถูกปิดใช้งาน (disabled) จางลงอย่างชัดเจน */
.select-dash option:disabled {
  color: #bdbdbda9 !important;      /* เทาอ่อนชัดเจน */
  background-color: #f5f5f5 !important; /* พื้นหลังอ่อนลง เมื่อเมนูถูกเปิด */
}

/* กันบางเบราว์เซอร์ที่ยังไฮไลท์สีเวลา hover */
.select-dash option:disabled:hover {
  background-color: #f5f5f5 !important;
}
