.button-clear {
  position: absolute;
  top: 96px;
  z-index: 1;
  right: 41vw;
}
.button-help {
  position: absolute;
  top: 0px;
  z-index: 1;
  right: 0vw;
  margin: 4.2rem;
  margin-right: 10px; /* เพิ่มใหม่ 12/16*/
}

table.ti-custom-table thead {
  height: 50px;
}
table.ti-custom-table thead th span {
  font-size: 12px;
  font-weight: bold;
}
a.custom-link {
  padding: 10px 40px; /* ปรับ padding ให้เพิ่มขนาด */
}
/* สไตล์ของแถบเมนู */
.nav-tabs {
  display: flex;
  width: 100%;
  cursor: pointer;
  margin-bottom: 10px;
  height: 20%;
}

.nav-item {
  list-style: none;
  margin-right: 10px; /* ช่องว่างระหว่างเมนู */
}

.nav-link {
  text-decoration: none;
  padding: 10px 20px;
  display: inline-block;
  font-size: large;
  border-width: 2px 2px 0px 2px;
  border-style: solid;
  border-color: #ccc;
  border-radius: 5px 5px 0px 0px;
}

.nav-link:hover {
  background-color: #f0f0f0; /* เปลี่ยนสีเมื่อ hover */
}

.nav-link.active {
  color: #ffffff; /* สีตัวอักษรในสถานะ active */
  font-size: large;
  border-bottom: 3.5px solid rgb(var(--color-primary)); /* เส้นใต้ */
  background-color: rgb(var(--color-primary));
  border-width: 2px 2px 0px 2px;
  border-style: solid;
  border-color: rgb(var(--color-primary));
  border-radius: 5px 5px 0px 0px;
}

.tab-content {
  margin-top: 20px;
}

.tab-pane.active {
  display: block;
}

.nav-item-text {
  list-style: none;
  margin-right: 10px; /* ช่องว่างระหว่างเมนู */
}
.nav-link-text {
  text-decoration: none;
  display: inline-block;
  font-size: large;
  color: #569bf5;
  border-bottom: 2px solid #569bf5;
  line-height: 0.8;
}
.ti-pagination .page-link.active {
  background-color: #569bf5;
  color: white;
  border-radius: 50%;
  padding: 8px 12px;
}
.box-body{
  padding: 0rem;
}
.page{
  min-height: 0vh;
}
// .ti-modal-content{
//   width: 70%;  /* ความกว้างที่คุณต้องการ */
//   position: absolute; /* ทำให้สามารถจัดตำแหน่งได้ */
//   top: 50%;  /* ให้อยู่กลางในแนวตั้ง */
//   left: 50%;  /* ให้อยู่กลางในแนวนอน */
//   transform: translate(-50%, -50%); /* เคลื่อนที่ modal กลับมาให้ตรงกลาง */
// }

.ti-modal-content {
  width: 70%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 90%; /* จำกัดความสูงให้อยู่ใน modal */
  overflow-y: auto; /* เปิดการเลื่อนแนวตั้ง */
}

// .ti-modal-body-content {
//   display: flex; /* ใช้ flexbox เพื่อจัดตำแหน่ง */
//   justify-content: center; /* จัดฟอร์มให้อยู่กลางในแนวนอน */
//   flex-direction: column; /* ทำให้ฟอร์มแสดงผลในรูปแบบคอลัมน์ */
//   height: calc(100% - 50px); /* ให้ความสูงเป็น 100% ลบด้วยระยะห่างข้างบน */
//   margin-left: 100px;
//   margin-right: 50px;
// }
.ti-modal-body-content {
  display: flex; /* ใช้ flexbox เพื่อจัดตำแหน่ง */
  justify-content: center; /* จัดฟอร์มให้อยู่กลางในแนวนอน */
  flex-direction: column; /* ทำให้ฟอร์มแสดงผลในรูปแบบคอลัมน์ */
  height: calc(100% - 50px); /* ให้ความสูงเป็น 100% ลบด้วยระยะห่างข้างบน */
  margin-left: calc(15% - 30px);
  margin-right: 20px;
}

.ti-modal-content-alert{
  width: 35%;  /* ความกว้างที่คุณต้องการ */
  position: absolute; /* ทำให้สามารถจัดตำแหน่งได้ */
  top: 50%;  /* ให้อยู่กลางในแนวตั้ง */
  left: 50%;  /* ให้อยู่กลางในแนวนอน */
  transform: translate(-50%, -50%); /* เคลื่อนที่ modal กลับมาให้ตรงกลาง */
  background-color: #ffffff;
}
.header-title-type {
  width: 100%;
  min-height: 50px; /* ใช้ min-height เพื่อให้มีความยืดหยุ่น */
  margin-top: 50px;
  margin-bottom: 10px;
  justify-content: space-between; /* จัดเรียงองค์ประกอบภายใน */
  align-items: center; /* จัดกลางแนวตั้ง */
}