.button-clear {
  position: absolute;
  top: 96px;
  z-index: 1;
  right: 41vw;
}
.button-help {
  position: absolute;
  top: 0;
  right: 0; /* ย้ายไปที่มุมขวาบน */
  margin: 4.2rem; /* เพิ่มระยะห่างจากขอบบนและขวา */
}
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;
}

.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-new {
  top: 50%;  /* ให้อยู่กลางในแนวตั้ง */
  left: 50%;  /* ให้อยู่กลางในแนวนอน */
  position: relative;  /* ทำให้สามารถจัดตำแหน่งได้ */
  transform: translate(-50%, -50%);  /* เคลื่อนที่ modal กลับมาให้ตรงกลาง */
  background-color: white;
  overflow: hidden;  /* ป้องกันการเลื่อนในโมดอล */
}

.ti-modal-body-new {
  height: 50vh;
  display: flex;
  justify-content: center; /* จัดแนวนอนให้ตรงกลาง */
  align-items: center; /* จัดแนวตั้งให้ตรงกลาง */
  padding: 1rem;

}

form {
  width: 100%; /* ให้ฟอร์มใช้พื้นที่เต็ม */
  max-width: 600px; /* กำหนดขนาดสูงสุดให้ฟอร์ม */
}

.header-title-type {
  width: 100%;
  min-height: 50px; /* ใช้ min-height เพื่อให้มีความยืดหยุ่น */
  margin-top: 50px;
  margin-bottom: 10px;
  justify-content: space-between; /* จัดเรียงองค์ประกอบภายใน */
  align-items: center; /* จัดกลางแนวตั้ง */
}