#preloader {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99999;
  height: 100%;
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}
#loader_container {
  animation: fade 1.2s linear infinite;
}
#loader {
  width: 100%;
}
#loader::before,
#loader::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 14px;
}
#loader::before {
  animation: load 1.5s linear infinite 0s;
}
#loader::after {
  animation: load 1.5s linear infinite 0.5s;
}
@keyframes load {
  50% {
    height: 42px;
  }
}
@keyframes fade {
  0% {
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  99% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.background-none {
  background: unset !important;
}
label.is-invalid {
  color: #dc3545;
  font-style: italic;
  font-size: 12px;
}
label.is-valid {
  color: #28a745;
  font-style: italic;
  font-size: 12px;
}
label.error {
  color: #dc3545;
  font-style: italic;
  font-size: 12px;
}
span.error {
  color: #dc3545;
  font-style: italic;
  font-size: 12px;
}
.combodate {
  display: flex;
  align-items: center;
}
.datepicker {
  cursor: pointer;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  margin-left: 5px;
  margin-top: 2px;
  margin-bottom: 2px;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__display {
  padding-left: 0px;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove {
  border-right: none;
  position: relative;
}
.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove:hover {
  color: red;
  border-radius: unset;
  background-color: unset;
}
.select2-container .select2-search--inline .select2-search__field {
  font-family: "Prompt", sans-serif;
  margin-top: 0;
  height: 21px;
}

.blink {
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

/**====== Data Tables css end ======**/
.peity-chart + .peity {
  width: 100%;
  height: 250px;
}

article {
  position: relative;
  overflow: hidden;
  min-width: 100%;
  min-height: 100%;
  background: #d2d6de;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

main {
  flex-grow: 1;
}

header, main, footer {
  flex-shrink: 0;
}
.main-header {
  position: relative;
  max-height: 100px;
  z-index: 999;
}
.module-menu .single-module {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 2px 5px 10px rgb(0 0 0 / 20%);
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  transition: all 0.4s ease;
}
.module-menu .single-module .single-module-img {
  display: flex;
  justify-content: center;
}
.module-menu .single-module .single-module-img img {
  text-align: center;
  width: 25%;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  transition: all 0.4s ease;
}
.module-menu .single-module .single-module-content h4 {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  color: #3a4b58;
  margin-bottom: 0px;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  transition: all 0.4s ease;
  text-transform: uppercase;
}
.module-menu:hover .single-module .single-module-img img {
  transform: scale(1.1);
}
.module-menu:hover .single-module {
  background-color: #fff;
  box-shadow: unset;
}
.module-menu:hover .single-module .single-module-content h4 {
  color: #000;
}

.select2-container {
  box-sizing: border-box;
  display: block;
  margin: 0;
  position: relative;
  vertical-align: middle;
}
select.form-control.is-valid + .select2 .select2-selection {
  border-color: #17c666;
  padding-right: calc(0.75em + 2.8625rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2317C666' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center, center right 2rem;
  background-size: calc(0.75em + 0.575rem) calc(0.75em + 0.575rem);
}

select.form-control.is-valid + .select2 .select2-selection:focus {
  border-color: #17c666;
  box-shadow: 0 0 0 0.2rem rgba(23, 198, 102, 0.25);
}

select.form-control.is-invalid + .select2 .select2-selection {
  border-color: #ea4d4d;
  padding-right: calc(0.75em + 2.8625rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23EA4D4D' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23EA4D4D' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center, center right 2rem;
  background-size: calc(0.75em + 0.575rem) calc(0.75em + 0.575rem);
}

select.form-control.is-invalid + .select2 .select2-selection:focus {
  border-color: #ea4d4d;
  box-shadow: 0 0 0 0.2rem rgba(234, 77, 77, 0.25);
}

.hide-show-login {
  top: 13px;
  right: 25px;
  position: absolute;
  z-index: 5;
  display: none;
}
.hide-show-login i {
  font-size: 14px;
  float: right;
  cursor: pointer;
  position: absolute;
}

.hide-show-repass {
  right: 10px;
  float: right;
  position: relative;
  z-index: 5;
  display: none;
  top: -30px;
}
.hide-show-repass i {
  font-size: 14px;
  float: right;
  cursor: pointer;
  position: relative;
}
.hide-show-confirmpass {
  right: 10px;
  float: right;
  position: relative;
  z-index: 5;
  display: none;
  top: -30px;
}
.hide-show-confirmpass i {
  font-size: 14px;
  float: right;
  cursor: pointer;
  position: relative;
}

button.close {
  padding: 0;
  background-color: transparent;
  border: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.close {
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.5;
}

/* ================ overlay ================== */
.overlay {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  background: #222;
  z-index: 1200;
  opacity: 0.9;
}

.overlay .overlay_inner {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}

.overlay .overlay_content {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.overlay .overlay_content .overlay_content_text {
  text-align: center;
  color: #fff;
  font-weight: 400;
  font-size: 1.25em;
  margin-top: 10px;
}

.overlay .overlay_content .spinner {
  width: 75px;
  height: 75px;
  display: inline-block;
  border-width: 5px;
  border-color: rgba(255, 255, 255, 0.05);
  border-top-color: #fff;
  animation: spin 1s infinite linear;
  border-radius: 100%;
  border-style: solid;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/*======================== Stepwizard ======================================*/
.stepwizard-step p {
  margin-top: 10px;
}
.stepwizard-row {
  display: contents;
}
.stepwizard {
  display: table;
  width: 100%;
  position: relative;
}
.stepwizard-step button[disabled] {
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
}
.step .stepwizard-row:before {
  top: 0;
  bottom: 0;
  left: 0;
  position: absolute;
  content: " ";
  width: 100%;
  height: 100%;
  background-color: none;
  z-order: 0;
}
.stepwizard-step {
  width: 200px;
  display: inline-block;
  text-align: center;
  position: relative;
}
.step {
  position: initial;
  right: 0;
  top: 20px;
  display: block;
}

.step .success-line {
  width: 100%;
  height: 1px;
  margin: 0;
  padding: 0;
  display: inline-block;
  position: absolute;
  top: 20px;
  border-top: 2px solid #05c158;
}
.step .wait-line {
  width: 100%;
  height: 1px;
  margin: 0;
  padding: 0;
  display: inline-block;
  position: absolute;
  top: 20px;
  border-top: 2px solid #d2d6e1;
}
.step em.st1 {
  left: 60px;
}
.step em.st2 {
  left: 140px;
}
.step p {
  padding: 0px 5px;
}
.step div.stepwizard-step .btn-waiting + em + p {
  color: #060606 !important;
}
.step div.stepwizard-step .btn-active + em + p {
  color: #1690ed !important;
}
.step div.stepwizard-step .btn-success + em + p {
  color: #05c158 !important;
}
.step div.stepwizard-step .step-btn {
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 50px;
  font-size: 20px;
  font-style: normal;
  text-align: center;
  display: inline-block;
}
.step div.stepwizard-step .btn-active {
  color: #ffffff;
  background: #1690ed;
  pointer-events: none;
}
.step div.stepwizard-step .btn-success {
  color: #ffffff;
  background: #05c158;
  pointer-events: none;
}
.step div.stepwizard-step .btn-waiting {
  color: #060606;
  background: #d2d6e1;
  pointer-events: none;
}

/* .stepwizard {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.stepwizard-row {
  display: flex;
  justify-content: space-between;
  width: 80%;
  max-width: 800px;
  position: relative;
}

.step-line {
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background-color: #d2d6e1;
  z-index: 0;
}

.stepwizard-step {
  position: relative;
  text-align: center;
  z-index: 1;
  flex: 1;
}

.step-btn {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  display: inline-block;
  font-size: 20px;
  background-color: #d2d6e1;
  color: #060606;
  position: relative;
  z-index: 1;
}

.btn-active {
  background-color: #1690ed;
  color: #fff !important;
}

.btn-success {
  background-color: #05c158;
  color: #fff !important;
}

.text-active {
  color: #1690ed !important;
}

.text-wait {
  color: #0c2e60 !important;
}

@media (max-width: 768px) {
  .stepwizard-row {
    flex-direction: column;
    align-items: center;
  }

  .step-line {
    display: none;
  }

  .stepwizard-step {
    margin-bottom: 20px;
  }
} */


/*======================== Stepwizard ======================================*/

/* @media only screen and (min-width: 1200px) {
  .digit-group input {
      width: 70px;
      height: 70px;
      text-align: center;
      font-size: 2.5rem;
      font-family: 'Prompt', sans-serif;
      background-color: #ffffff;
      font-weight: 900;
      color: #0077CC;
      margin: 0 2px;
      border: 1px solid #ced4da;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      border-radius: 4px;
      transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }

  .digit-group input:focus {
      color: #293240;
      background-color: #ffffff;
      border-color: #1690ed;
      outline: 0;
      box-shadow: none;
  }

  .digit-group .splitter {
      padding: 0 5px;
      color: #0077CC;
      font-size: 26px;
  }
} */

.digit-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.digit-group input {
  text-align: center;
  font-family: 'Prompt', sans-serif;
  font-weight: 900;
  background-color: #ffffff;
  color: #0077CC;
  border: 1px solid #ced4da;
  border-radius: 8px;
  transition: all 0.25s ease;
  outline: none;
}

/* ✅ เอฟเฟกต์เวลา focus */
.digit-group input:focus {
  border-color: #1690ed;
  box-shadow: 0 0 6px rgba(22, 144, 237, 0.5);
  background-color: #f0f8ff;
}

/* ✅ เอฟเฟกต์เมื่อกรอกข้อมูลแล้ว (มีค่า) */
.digit-group input.filled {
  background-color: #ffffff;
  color: #1690ed;
  border-color: #1690ed;
  animation: pulseFill 0.3s ease;
}

/* ✅ Animation เวลากรอก */
@keyframes pulseFill {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ✅ หน้าจอใหญ่ (Desktop) */
@media only screen and (min-width: 1200px) {
  .digit-group input {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
  }
}

/* ✅ หน้าจอกลาง (Tablet) */
@media only screen and (max-width: 1199px) and (min-width: 768px) {
  .digit-group input {
    width: 55px;
    height: 55px;
    font-size: 2rem;
  }
}

/* ✅ หน้าจอเล็ก (Mobile) */
@media only screen and (max-width: 767px) {
  .digit-group {
    /* flex-wrap: wrap; */
    gap: 4px;
  }

  .digit-group input {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }
}

