@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700&display=swap");

:root {
  /* --primary-color: #15beb4; */
  --primary-color: #8083fa;
  --secondary-color: #eaf0f7;

  --bg-color: #d0d9e8;
  --bg-light-color: #eaf0f7;
  --bg-light-color-2: #f2f6fa;
  --front-color: #4b6684;
  --front2-color: #556f8b;
  --highlight-color: #e2f399;

  --white-color: #fff;
  --black-color: #000;
  --red-color: #be1515;
  --orange-color: #fc7e00;

  --content-width: 1436px;
}

body {
  font-family: "Noto Sans Thai", sans-serif;
  color: var(--front-color);
  background-color: #f5f9fa;
}

body.is-loading {
  overflow: hidden;
}

body.is-loading::after {
  content: "Loading...";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 9999;
  color: var(--white-color);
  font-size: 36px;
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.7);
}

img {
  max-width: 100%;
}

.btn {
  border-radius: 0.3rem;
  padding: var(--bs-btn-padding-y) 1.5rem;
  font-size: 15px;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #a1a3ff;
  border-color: #a1a3ff;
}

.btn-light {
  color: var(--primary-color);
  background-color: var(--bg-light-color);
}

.btn-light:hover{
  color: white;
  background-color: #a1a3ff;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.btn-success{
  background-color: #5864b6 !important;
  border-color: #5864b6;
}

.text-main{
  color: var(--primary-color) !important;
}

.input-group label.error {
  display: block;
  width: 100%;
  font-size: 14px;
  color: var(--red-color);
  margin-top: 5px;
}

.modal-full {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 997;
  background-color: #f5f9fa;
  display: none;
  opacity: 0;
  transition: all 0.3s;
}

.modal-full.is-active {
  display: block;
}

.modal-full.is-fade {
  opacity: 1;
}

.modal-full .modal-head-container {
  background-color: #eaf0f7;
}

.modal-full .modal-head-wrapper {
  width: var(--content-width);
  max-width: 100%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  height: 90px;
  align-items: center;
}

.modal-full .modal-head-title {
  color: var(--front-color);
  font-weight: 600;
  font-size: 28px;
}

.modal-full a.btn-close-modal {
  color: var(--front-color);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.modal-full .modal-container {
  margin-top: 40px;
}

.modal-full .modal-wrapper {
  width: var(--content-width);
  max-width: 100%;
  margin: auto;
}

.modal-full table.modal-table {
  width: 100%;
}

.modal-full table.modal-table thead {
  background-color: var(--bg-color);
}

.modal-full table.modal-table thead th {
  height: 65px;
  padding: 5px 10px;
  font-size: 18px;
  color: var(--front-color);
}

.modal-full table.modal-table tbody td {
  height: 70px;
  padding: 5px 10px;
  font-size: 18px;
  color: var(--front-color);
  border-bottom: 1px solid #f5f9fa;
  background-color: var(--white-color);
}

.modal-full table.modal-table i {
  font-size: 18px;
  color: var(--front-color);
}

.modal-full table.modal-table th.table-a-c,
.modal-full table.modal-table td.table-a-c {
  text-align: center;
}

.modal-full table.modal-table th.table-w-80,
.modal-full table.modal-table td.table-w-80 {
  width: 80px;
  white-space: nowrap;
}

.modal-full table.modal-table button.table-btn-icon {
  border: none;
  outline: none;
  background: none;
}

.modal-normal {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 998;
  transform: translateY(130%);
  transition: all 0.3s;
}

.modal-normal.modal-level-3 {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  transform: translateY(130%);
  transition: all 0.3s;
}

.modal-normal.is-active {
  transform: translateY(0%);
}

/* .modal-normal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
} */

.modal-overlay {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-normal .modal-container {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 580px;
  /* max-width: 100%; */
  max-width: calc(100% - 20px);
  background-color: #ffffff;
  border-radius: 20px;
  overflow: hidden;
}

.modal-normal .modal-header {
  padding: 20px;
  background-color: var(--primary-color);
  font-size: 28px;
  text-align: center;
  color: var(--white-color);
  justify-content: center;
}

.modal-normal .modal-body {
  padding: 40px 60px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-normal .modal-form-group {
  /* display: flex;
  justify-content: stretch;
   */
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;

  display: grid;
  grid-template-columns: 1fr 4fr;
}

.modal-normal .modal-form-group__label {
  font-size: 18px;
  font-weight: 600;
  color: var(--front-color);
  min-width: 140px;
}

.modal-normal .modal-form-group__input {
  flex-grow: 1;
}

.modal-normal .modal-form-group__input input,
.modal-normal .modal-form-group__input select {
  width: 100%;
  padding: 10px;
}

.modal-normal .modal-close {
  position: absolute;
  top: 50px;
  right: 50px;
}

.modal-normal .modal-close__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  font-size: 48px;
  color: var(--front-color);
  background-color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  line-height: 1;
}

.modal-normal .modal-close__btn i {
  margin-top: 3px;
}

.modal-form-group label.error {
  font-size: 14px;
  color: var(--red-color);
}

.input-price,
.preview-price {
  text-align: right;
}

.group-price-input .input-price {
  display: none;
}

.form-control.disabled {
  background-color: var(--bs-secondary-bg);
  opacity: 1;
}
