/* @import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Thai:wght@100..900&display=swap'); */
@import url("https://fonts.googleapis.com/css2?family=Anuphan:wght@100..700&display=swap");
* {
  font-family: "Anuphan", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

/* สำหรับ Boostrap */
select {
  text-align: center;
}
select:hover {
  cursor: pointer;
}

/******  **************************/
.dp-n {
  display: none !important;
}
.vd-n {
  background-color: yellow !important;
  border: 1px solid red !important;
}

.cursor {
  cursor: pointer;
}

/******  **************************/
.box-blue {
  color: white;
  background-color: CornflowerBlue;
  border: 1px solid CornflowerBlue;
  border-radius: 3px;
  padding: 2px 3px;
}
.box-green {
  color: white;
  background-color: forestgreen;
  border: 1px solid forestgreen;
  border-radius: 3px;
  padding: 2px 3px;
}
.box-orange {
  color: white;
  background-color: darkorange;
  border: 1px solid darkorange;
  border-radius: 3px;
  padding: 2px 3px;
}
.box-red {
  color: white;
  background-color: red;
  border: 1px solid red;
  border-radius: 3px;
  padding: 2px 3px;
}
.box-gray {
  color: white;
  background-color: gray;
  border: 1px solid gray;
  border-radius: 3px;
  padding: 2px 3px;
}
.box-black {
  color: white;
  background-color: black;
  border: 1px solid black;
  border-radius: 3px;
  padding: 2px 3px;
}
.box-pink {
  color: white;
  background-color: plum;
  border: 1px solid plum;
  border-radius: 3px;
  padding: 2px 3px;
}
.box-yg {
  color: white;
  background-color: YellowGreen;
  border: 1px solid YellowGreen;
  border-radius: 3px;
  padding: 2px 3px;
}
.box-peach {
  color: white;
  background-color: #ff7171;
  border: 1px solid #ff7171;
  border-radius: 3px;
  padding: 2px 3px;
}

/******  **************************/
.fc-blue {
  color: CornflowerBlue;
}
.fc-green {
  color: forestgreen;
}
.fc-orange {
  color: darkorange;
}
.fc-red {
  color: red;
}
.fc-gray {
  color: gray;
}
.fc-black {
  color: black;
}
.fc-pink {
  color: plum;
}
.fc-pink {
  color: plum;
}
.fc-yg {
  color: yellowgreen;
}
.fc-wheat {
  color: wheat;
}
.fc-gray {
  color: gray;
}
.fc-ligray {
  color: lightgray;
}
.fc-liblue {
  color: lightblue;
}

/******  **************************/
.green {
  border-top: 3px solid lime;
  border-bottom: 3px solid lime;
  background-color: darkgreen;
  color: white;
  font-weight: bold;
}
.yellow {
  border-top: 3px solid darkgoldenrod;
  border-bottom: 3px solid darkgoldenrod;
  background-color: yellow;
  color: black;
  font-weight: bold;
}
.blue {
  border-top: 3px solid darkslateblue;
  border-bottom: 3px solid darkslateblue;
  background-color: DodgerBlue;
  color: white;
  font-weight: bold;
}
.red {
  border-top: 3px solid red;
  border-bottom: 3px solid red;
  background-color: darkred;
  color: white;
  font-weight: bold;
}
/* ต้องตั้งเวลา 3.0 ให้ตรงกับ  showToast */
@keyframes fadeToastIn {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 90px;
    opacity: 1;
  }
}
@keyframes fadeToastIOut {
  from {
    bottom: 90px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}
@-webkit-keyframes fadeToastIn {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 90px;
    opacity: 1;
  }
}
@-webkit-keyframes fadeToastIOut {
  from {
    bottom: 90px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

/***  ****/
.page-notify {
  text-align: center;
  position: absolute;
  z-index: 99999;
  left: 0;
  bottom: 90px;
  width: 100%;
  padding: 17px 0 5px 0;
  line-height: 1.75rem;
  animation: none;
  visibility: "visible";
  animation: fadeNotifyIn 0.5s, fadeNotifyOut 0.5s 4s;
}
@keyframes fadeNotifyIn {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 90px;
    opacity: 1;
  }
}
@keyframes fadeNotifyOut {
  from {
    bottom: 90px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}
@-webkit-keyframes fadeNotifyIn {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 90px;
    opacity: 1;
  }
}
@-webkit-keyframes fadeNotifyOut {
  from {
    bottom: 90px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

/*** ปรับแต่งคลาส row ***/
.row {
  margin-top: 6px !important;
}
/* .row > * {
  padding-left: 0!important;
  padding-right: 0!important;
} */

/*** ปรับแต่ง form elememt ***/
.form-group label {
  margin-bottom: 0.2rem;
  font-size: 0.85rem;
}
.form-group select,
.form-group textarea,
.form-group input {
  font-size: 0.85rem;
  color: blue;
}
.form-group select::placeholder,
.form-group textarea::placeholder,
.form-group input::placeholder {
  color: lightblue;
}

/*** ใน Row List ***/
.form-select,
.form-control {
  font-size: 0.85rem !important;
  color: blue !important;
}
.form-select::placeholder,
.form-control::placeholder {
  color: lightblue !important;
}

/*** ปรับแต่ง Modals ***/
.modal-content {
  margin-top: 55px;
}

/*** ปรับแต่ง card-body ***/
.card-header {
  padding: 5px 10px !important;
}
.card-body {
  padding: 5px 10px 10px 10px !important;
}

/*** ปรับแต่ง Data Table ***/
table {
  width: 100% !important;
}
table th,
table td {
  line-height: 1.85rem;
  font-size: 0.85rem;
  padding: 3px 5px !important;
}
table tr:hover {
  background-color: lightgrey !important;
}

.dt-search,
.dt-info,
.dt-length label {
  font-size: 0.85rem;
}

/*** ปรับแต่ง Sweet ALert ***/
h2.swal2-title {
  font-size: 1.2rem;
  margin-top: 15px;
}

/*** flatpkr ***/
.date-picker-ctn {
  position: relative;
}
.date-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  font-size: 0.85rem;
  transform: translateX(40%) translateY(30%);
  color: lightblue;
}
.flatpickr-input {
  cursor: pointer;
}

/*** detail/summary ***/
/* 
details[open] {
} 
*/

details > summary {
  /* border-top: 1px solid gray; */
  border-bottom: 1px solid gray;
  /* border-radius: 5px 5px 0 0 ; */
  cursor: pointer;
  padding: 3px 5px;
  margin-top: 7px;
  font-size: 1rem;
}

/*** Utilities ***/
.strike {
  text-decoration: Line-Through;
}

.fs-head {
  font-size: 0.85rem;
}

/***  ****/
/* .select2{
  height: 38px;
}
.select2 .select2-selection__rendered {
  color: blue!important;
}
.select2-container--default .select2-results__option {
  color: blue;
  padding: 3px;
  font-size: 0.9rem;
}
.select2-container--default .select2-selection--single {
  height: 38px;
} */
