/* @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"); */

html {
  font-size: var(--base-font-size, 16px);
  height: 100%;
}

:root {
  --base-font-size: 16px;
  --maincolorline: #212529;
}

a {
  text-decoration: none;
}

body {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: "Kanit", sans-serif;
}

header {
  flex: 0 0 auto;
  background: #ffffff;
  justify-content: center;
  flex: 0 0 auto;
  position: relative;
  z-index: 1050;
}

.icon-all {
  color: #63126e;
}

.main-content {
  /* background: linear-gradient(2deg, #f3d2f2, #f5f5f5); */
  /* background: linear-gradient(135deg, #e9d5ff, #f5f3ff); */
  background: linear-gradient(to bottom, #fafafa 0%, #f5f3ff 45%, #e9d5ff 100%);

  /* background: #f8f8f8 url(../images/bgCase_2.png);
  background-repeat: no-repeat;
  background-position: right bottom; */
  /* background: #f5f5f5; */
  padding: 1.25rem;
  flex: 1 0 auto;
}

.text-sub {
  text-align: left;
}

/* footer {
  flex: 0 0 auto;
  background: linear-gradient(to bottom, #e9d5ff 0%, #c4b5fd 100%);
  border-top: 1px solid #c7b7f7;
  color: #312e81;
} */
footer {
  flex: 0 0 auto;
  background: linear-gradient(to bottom, #e9d5ff 0%, #c4b5fd 100%);
  color: #312e81;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(124, 58, 237, 0.25), transparent);
}

.menu {
  width: 100%;
  height: auto;
  box-shadow:
    0 0.5rem 1rem rgba(0, 0, 0, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.logo {
  height: auto;
  width: 70px;
  height: 70px;
  /* height: 100%; */
}

.bd-navbar {
  background-color: transparent;
  box-shadow:
    0 0.5rem 1rem rgba(0, 0, 0, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.text-logo {
  font-size: small;
  font-weight: 300;
}

.btn-menu:hover {
  width: 40px;
  border-radius: 100px;
  background: #589a8d;
}

.text-footer {
  font-weight: 200;
}

.text-logo-main-menu {
  font-size: inherit;
  font-weight: 400;
  margin: 0px;
  font-size: 16px;
}

.text-logo-sub-menu {
  font-size: small;
  font-weight: 300;
  margin: 0px;
}

.text-login {
  font-weight: 400;
  color: #fff;
  margin-top: 10px;
  font-size: larger;
}

.icon-login {
  margin-right: 5px;
}

.text-login:hover {
  font-weight: 400;
  color: #fff;
  margin-top: 10px;
  font-size: larger;
}

.text-logo-main {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  text-align: center;
}

.text-logo-sub {
  font-size: 17px;
  font-weight: 200;
  text-align: center;
}

.btn-menu {
  width: 40px;
  border-radius: 100px;
  background: #265c4b;
}

@media (min-width: 375px) {
}

@media (min-width: 425px) {
}

@media (min-width: 768px) {
  .text-sub {
    font-size: 15px !important;
  }
}

@media (min-width: 1024px) {
}

@media (min-width: 1200px) {
  .icon_st {
    width: 100% !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .text-sub {
    font-size: 16px !important;
  }

  .text-h-category {
    font-size: 20px !important;
    font-weight: 400;
    color: #b7141a;
    margin: 0px;
  }

  .text-h-category:hover {
    font-size: 20px !important;
    font-weight: 400;
    color: #e2b60d;
    margin: 0px;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .icon_st {
    width: 35% !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

.flip-card {
  background-color: transparent;
  width: 300px;
  height: 300px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front {
  background-color: #bbb;
  color: black;
}

.flip-card-back {
  background-color: #2980b9;
  color: white;
  transform: rotateY(180deg);
}

.offcanvas {
  max-width: 80%;
}

.link-menu {
  text-decoration: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 400;
}

.link-menu:hover {
  text-decoration: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 400;
}

.icon-menu {
  color: #ffff;
}

.main-Procedure {
  background: linear-gradient(359deg, #ffbfbf, white);
}

.box-menu {
  padding: 10px;
  background-color: #007566;
  /* border-top: 1px solid #007566; */
  border-bottom: 1px solid #007566;
}

.box-menu:hover {
  padding: 10px;
  background-color: #8fc1b5;
  /* border-top: 1px solid #007566; */
  border-bottom: 1px solid #8fc1b5;
}

.text-h-category {
  font-size: 18px;
  font-weight: 400;
  color: #b7141a;
  margin: 0px;
}

.text-h-category:hover {
  font-size: 18px;
  font-weight: 400;
  color: #e2b60d;
  margin: 0px;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .text-h-category {
    font-size: 1.5rem;
  }
}

.box_zoom {
  transition: all ease-in-out 0.9s;
  border: 2px solid #b7141a;
}

.card-img-top {
  border-radius: 5px 0px 0px 5px;
}

.box_zoom:hover {
  transform: scale(0.9);
  border: 2px solid #e2b60d;
}

.banner {
  width: 65px;
  height: 65px;
}

.icon_st {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.text-sub {
  font-size: 16px;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .text-sub {
    font-size: 15px;
  }
}

.bg-login {
  background-image: url(../images/bg_green.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;
  max-height: auto;
}

.hr-confirm {
  margin-right: auto;
  margin-left: auto;
  max-width: 15%;
  /* text-align: center; */
  background-color: #e2b60d;
  height: 10px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.text-h {
  color: #b7141a;
}

#myBtn {
  display: none;
  position: fixed;
  bottom: 11px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #e2b60d;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
  transition: ease-in-out 0.5s;
}

#myBtn:hover {
  display: none;
  position: fixed;
  bottom: 11px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #ececec;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
  transition: ease-in-out 0.5s;
}

.myBtn {
  text-align: left;
  bottom: 11px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #763c7e;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
  transition: ease-in-out 0.5s;
}

.myBtn:hover {
  bottom: 11px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #e2b60d;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
  transition: ease-in-out 0.5s;
}

.purple-toggler {
  background-color: #8000ff;
  /* เธชเธตเธกเนเธงเธ */
  border-color: #8000ff;
  /* เน€เธชเนเธเธเธญเธเธชเธตเน€เธ”เธตเธขเธงเธเธฑเธ */
}

.purple-toggler:hover {
  background-color: #a64dff;
  /* เธชเธตเธกเนเธงเธเธญเนเธญเธเน€เธกเธทเนเธญ hover */
  border-color: #a64dff;
}

.navbar-toggler {
  padding: var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);
  font-size: var(--bs-navbar-toggler-font-size);
  line-height: 1;
  color: #e2b60d;
  background-color: transparent;
  border: var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);
  border-radius: var(--bs-navbar-toggler-border-radius);
  transition: var(--bs-navbar-toggler-transition);
}

.navbar-toggler-icon {
  display: inline-block;
  color: #e2b60d;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-image: var(--bs-navbar-toggler-icon-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.main-box {
  background: linear-gradient(359deg, #ffbfbf, white);
  height: auto;
  width: 100%;
}

.member-box {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  color: white;
  font-size: 24px;
  font-weight: bold;
}

.bg-1 {
  background-color: #7b1f28;
  color: #ffffff;
  border: 2px solid #ebcf6a;
}

.bg-2 {
  background-color: #d4af37;
  color: #2e2e2e;
  border: 2px solid #ebcf6a;
}

.nav-link {
  font-size: 15px;
}

.navbar-logo {
  /* height: 40px; */
  width: 200px;
}

.navbar {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
}

@media (max-width: 576px) {
  .navbar-logo {
    /* height: 32px; */
    width: 150px;
  }
}

@media (max-width: 600px) {
  .custom-form {
    padding: 3px 2px;
  }
}

.card-header {
  background-color: #ffffff;
}

.form-control {
  min-height: calc(1.5em + 0.75rem + 2px);
  font-size: 0.8rem;
  padding: 0.375rem 0.7rem;
}

textarea.form-control {
  min-height: calc(1.5em + 1.6rem + 2px);
}

.badge.bg-preview {
  /* background: #e9e9ea;
  color: #353637;
  font-size: 14px;
  word-break: break-word; */
  display: inline-block;
  padding: 0.4em 0.7em;
  font-size: 0.875rem;
  font-weight: 600;

  color: #ffffff;
  background: linear-gradient(135deg, #8a4aa8 0%, #a78bfa 100%);
  border: 1px solid rgba(255, 215, 160, 0.35);

  /* border-radius: 999px; */
  box-shadow:
    0 3px 8px rgba(138, 74, 168, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);

  /* max-height: 6em; */
  overflow: hidden;
  word-break: break-word;
  white-space: pre-wrap;
  line-height: 1.2;
}
.badge.bg-preview a {
  color: #ffffff; /* ทำให้ลิงก์เป็นสีขาว */
  text-decoration: none; /* เอาเส้นใต้ลิงก์ออก (ถ้าไม่ต้องการ) */
}

.badge.bg-preview a:hover {
  color: #f0f0f0; /* สีตอน hover สามารถปรับได้ */
  text-decoration: underline; /* หรือจะให้มีเส้นใต้ตอน hover */
}

select.form-control[readonly],
.form-control[readonly],
[readonly].datatable-input,
[readonly].custom-select,
[readonly].dataTable-selector,
[readonly].dataTable-input {
  opacity: 0.9 !important;
  background-color: #f3f5f7 !important;
}
select[readonly].select2 + .select2-container {
  pointer-events: none;
  touch-action: none;

  .select2-selection {
    background: #eee;
    box-shadow: none;
  }

  /*.select2-selection__arrow,*/
  .select2-selection__clear {
    display: none;
  }
}

input[type="radio"][readonly] {
  pointer-events: none;
  opacity: 0.7; /* ทำให้ดูจางลงเล็กน้อยว่าถูก lock ไว้ */
}

/* 2. สำคัญมาก: สั่งห้ามคลิกที่ Label ที่ครอบอยู่ด้วย */
/* เพราะถ้าคลิกโดนตัวหนังสือ Radio ก็จะเปลี่ยนค่าอยู่ดี */
label:has(input[type="radio"][readonly]) {
  pointer-events: none;
  cursor: not-allowed;
  color: #6c757d; /* เปลี่ยนสีตัวอักษรเป็นสีเทาแบบ Bootstrap */
}
