@import url(../fonts/thsarabunnew.css);
body {
  background: #eee !important;
  font-family: 'THSarabunNew', sans-serif;
}

.dataTables_wrapper select{
  font-family: 'THSarabunNew', sans-serif;
  font-size: 14px;
  height: calc(2.25rem + 2px);
  background-clip: padding-box;
  display: inline-block;
  width: auto !important;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.dataTables_wrapper input[type="search"]{
  display: inline-block;
  padding: .375rem .75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.wrapper {
  margin: 75px 0;
}

.bootstrap-select .dropdown-toggle .filter-option{
  overflow-x: hidden;
}

hr.form-split{
  margin: 50px 0;
}

h1 {
  text-align: center;
  margin: 15px;
}

h2 {
  margin: 15px 0;
  font-size: 28px;
}

h5.h5-detail {
  padding: 5px;
  margin: 15px 0;
}

h6.h6-detail {
  padding: 5px;
  margin-top: 15px;
  font-weight: bold;
}

.btn {
  padding-top: .5rem;
}

.alert {
  display: none;
}

#comment strong {
  display: block;
  font-size: 1.1em;
  text-decoration: underline;
  margin-bottom: 10px;
}

.create textarea {
  width: 100%;
  margin-bottom: 30px;
}

.create #send-document {
  padding: 15px;
}

.create #send-document:hover {
  /* background-color: #fafafa; */
  padding: 15px;
}

.create .bootstrap-filestyle.input-group {
  border: 1px solid #ced4da;
}

.create .bootstrap-filestyle.input-group>.form-control {
  border-top: 0 !important;
  border-left: 0 !important;
  border-bottom: 0 !important;
  border-right: 1px solid #ced4da !important;
}

.create .group-span-filestyle.input-group-btn {
  height: 0;
}

.create .form-bottom {
  margin: 15px 0;
}

.form-check {
  display: inline-block;
  margin-right: 15px;
}

input[disabled] {
  background-color: #fff !important;
}

.logo {
  width: 100%;
  max-width: 266px;
margin-bottom: 15px;
}

.menu {
  width: 100%;
  max-width: 1090px;
  margin: 0 auto;
  padding: 1.5rem 1rem .5rem 1rem;
}

.menu .hello, .menu .logout {
  padding: 0;
  display: inline-block;
}

.menu .logout {
  float: right;
}

#div-documents {
  max-width: 1090px;
  padding: 30px 45px;
  margin: 0 auto 45px;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

#div-documents.table {
  max-width: 1090px !important;
}

table th, table td {
  padding: 5px;
}

table a.btn {
  margin: 5px;
}

select.type-filter{
  width: 170px;
}

#pdf-name {
  line-height: 35px;
  padding: 10px 0;
}

#div-documents .dataTables_info, .dataTables_paginate, .dataTables_length, .dataTables_filter {
  font-size: 14px;
  font-weight: normal;
}

#form-signin {
  max-width: 380px;
  padding: 30px 30px 45px;
  margin: 0 auto;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

#form-signin .form-signin-heading {
  font-size: 24px;
  margin-bottom: 30px;
}

#form-signin .checkbox {
  font-weight: normal;
}

#form-signin .form-control {
  position: relative;
  font-size: 16px;
  height: auto;
  padding: 10px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#form-signin .form-control:focus {
  z-index: 2;
}

#form-signin input[type="text"] {
  margin-bottom: -1px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

#form-signin input[type="password"] {
  margin-bottom: 20px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

#form-signin .btn {
  font-size: 18px;
}

.login-status .alert {
  margin: 15px 0;
}

.version {
  text-align: center;
  margin: 30px 0;
  font-size: 14px;
  color: rgba(0, 0, 0, .5);
}

#pdf-main-container {
  width: 100%;
  max-width: 1090px;
  margin: 75px auto;
}

#pdf-loader, #page-loader {
  display: none;
  /* position: absolute; */
  margin-top: 300px;
  width: 100%;
  max-width: 1090px;
  height: 100px;
  line-height: 100px;
  text-align: center;
  color: #999999;
}

#pdf-contents {
  display: none;
}

#pdf-meta {
  display: none;
  height: 58px;
  padding: 10px 10px;
  z-index: 2;
  width: 100%;
  max-width: 1090px;
  background: #3d3d3d;
}

#pdf-buttons {
  float: left;
}

#pdf-buttons .btn {
  border-radius: 0;
  font-size: 14px;
  margin: .1rem;
  background-color: #c0c0c0;
}

#pdf-buttons .btn.highlight {
  border-radius: 0;
  font-size: 16px;
  margin: .1rem;
  background-color: #ffc107;
}

#pdf-buttons .btn i {
  font-size: 18px;
}

#page-count-container {
  float: right;
  color: #ffffff;
  line-height: 33px;
  font-size: 14px;
}

#pdf-current-page {
  display: inline;
}

#pdf-page {
  width: 35px;
  background: #5b5b5b;
  border: 1px solid #343434;
  height: 24px;
  color: #ffffff;
  text-align: right;
  font-size: 14px;
  line-height: 24px;
  padding-right: 5px;
}

#pdf-total-pages {
  display: inline;
}

#pdf-viewer {
  position: relative;
  width: 100%;
  max-width: 1090px;
  overflow: auto;
}

#pdf-canvas {
  position: absolute;
  z-index: 0;
}

#pdf-signature-canvas {
  position: absolute;
  z-index: 1;
}

#sign-main-container {
  width: 100%;
  max-width: 1090px;
  margin: 75px auto;
}

#sign-pdf-viewer {
  width: 100%;
  max-width: 1090px;
  height: 600px;
  margin-top: 58px;
}

#sign-pdf-buttons .btn {
  border-radius: 0;
}

#signature-pad {
  position: relative;
}

#please-wait {
  text-align: center;
  color: #999999;
  line-height: 100px;
  height: 100px;
  font-size: 12px;
}

#sign-here {
  border: 1px solid #eaeaea;
  background: url(../images/sign-background.png) center center no-repeat;
}

#sign-img {
  display: none;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: auto 80%;
}

#sign-above {
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: #c3c3c3;
  padding: .2rem;
  margin-bottom: 0;
}

.form-group.more-detail label {
  font-size: 14px;
}

#view-main-container {
  width: 100%;
  max-width: 1090px;
  margin: 75px auto;
}

.bootstrap-select .dropdown-toggle .filter-option-inner-inner{
  overflow: visible !important;
}

@media only screen and (max-width: 1090px) {
  .container {
    margin: 0 auto;
  }
  #pdf-meta {
    height: auto;
  }
  #pdf-buttons {
    float: none;
    text-align: center;
  }
  #pdf-buttons .btn {
    font-size: 16px;
    margin: .5rem;
    padding: .7rem .9rem;
  }
  #page-count-container {
    float: none;
    text-align: center;
    margin: .5rem;
  }
}

@media only screen and (max-width: 414px) {
  .container {
    margin: 0 auto;
  }
  h1{
    font-size: 2rem !important;
  }
  .menu .hello, .menu .logout {
    padding: 0;
    display: block;
    width: 100%;
    text-align: center;
  }
  .menu .logout {
    float: none;
  }
  #pdf-meta {
    height: auto;
  }
  #pdf-buttons {
    float: none;
    text-align: center;
  }
  #pdf-buttons .btn {
    font-size: 16px;
    margin: .5rem;
    padding: .7rem .9rem;
  }
  #page-count-container {
    float: none;
    text-align: center;
    margin: .5rem;
  }
}
