body {
  font-family: "Noto Sans Thai", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
}

.highlight-box {
    border: 1px solid #104006; /* สีเขียวเข้ม */
    border-radius: 10px;
    padding: 20px;
    /* background-color: #ffffff; */
    /* box-shadow: 0 0 55px rgba(16, 64, 6, 0.3); */
    margin-top: 20px;
}




/* Style for the Navbar */
.navbar {
  position: fixed; /* ให้ navbar อยู่ที่ตำแหน่ง fix */
  top: 0;
  left: 0;
  width: 100%; /* ทำให้ navbar ยาวเต็มความกว้าง */
  background-image: url('../../assets/images/navbar.png'); /* ใช้รูป navbar */
  background-color: #ffffff;
  background-size: cover; /* ปรับให้รูปเต็มพื้นที่ */
  background-position: center; /* จัดตำแหน่งภาพกลาง */
  height: 80px; /* ความสูงของ navbar */
  display: flex;
  justify-content: flex-start; /* ชิดซ้าย */
  align-items: center;
  padding-left: 20px; /* เพิ่มระยะห่างจากขอบซ้าย */
  z-index: 1000; /* ให้ navbar อยู่บนสุด */
}

.navbar .logo-container {
  display: flex;
  justify-content: flex-start; /* ชิดซ้าย */
  align-items: center;
}

.navbar .logo-container img {
  width: 220px;
  height: 50px; /* ปรับขนาดของโลโก้ */
  margin-left: 15px;
}


.custom-btn {
  display: flex !important;
  border: none!important;
  flex-direction: column !important;
  justify-content: center !important; /* กึ่งกลางข้อความในปุ่มแนวตั้ง */
  align-items: center !important; /* กึ่งกลางข้อความในปุ่มแนวนอน */
  height: 100px !important;
  width: 230px !important;
  background-color: transparent !important;
  color: #6d5922 !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  border-radius: 5px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
  gap: 10px !important;
  margin-bottom: 30px!important;
  margin-left: auto !important; /* กึ่งกลางแนวนอน */
  margin-right: auto !important; /* กึ่งกลางแนวนอน */
  align-self: center !important; /* กึ่งกลางใน flex container */
  user-select: none!important;
  text-align: center!important;
}

.custom-btn .number {
  font-size: 40px !important;
  line-height: 1 !important;
}

.custom-btn span:nth-child(2) {
  line-height: 1.6 !important;
}

.label-text {
    font-size: 22px;
    line-height: 1.4;
}

h3 {
  margin-top: 45px;
}



/* .header {
  background-color: #114007;
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
} */

.icon {
display: inline-block;
width: 32px;  /* กำหนดขนาดของไอคอน */
height: 30px;
background-size: cover;
}


thead {
  position: sticky;
  top: 0;
  z-index: 2; 
}


.container {
  display: flex;
  height: calc(100vh - 50px);
  margin-top: 1%;
}


/* แถบเมนูด้านข้าง */

.menu {
  width: 290px;
  height: auto;
  padding: 20px 10px 10px 10px;
  flex-direction: column !important;
  border-right: 1px solid #6d5922; 
}

.menu button {
  display: block;
  width: 89%;
  padding: 10px;
  border: 1px solid #c4c4c4; /* เพิ่มเส้นขอบ */
  text-align: left;
  background-color: transparent;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  font-family: "Noto Sans Thai", sans-serif;
  margin: 0 auto;
  border-radius: 10px; /* ขอบมน */
  margin-bottom: 10px;
  transition: all 0.3s ease;
}




.menu .active {
  background-color: #114007;
  color: white;
}

.content {
  flex-grow: 1;
  background-color: white;
  display: flex;
  flex-direction: column;
  padding: 20px;
  font-family: "Noto Sans Thai", sans-serif;
}


.button-tab {
  display: flex;
  align-items: center; /* จัดตำแหน่งให้รูปภาพและปุ่มอยู่กลางในแนวตั้ง */
  gap: 10px; /* ระยะห่างระหว่างปุ่ม */
}

.tab-item img {
  width: 30px; /* ปรับขนาดรูปตามต้องการ */
  height: auto;
  cursor: pointer;
  transform: translateY(-2px);
transition: all 0.5s ease;
}

.buttont {
  padding: 10px;
  background-color: #ffffff;
  border-radius: 5px;
  border: 1px solid #c4c4c4; /* เพิ่มเส้นขอบ */
  cursor: pointer;
  font-size: 18px;
  font-family: "Noto Sans Thai", sans-serif;
  margin: 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap; /* ป้องกันข้อความขึ้นบรรทัดใหม่ */
  transition: all 0.3s ease;
}

.buttont:hover, .menu button:hover {
  background-color: #dadada !important;
  color: black !important;
}


.buttont.active, .menu button.active {
  background-color: #114007 !important;
  color: white !important;
  /* border-bottom: 2px solid #6d5922; */
}



/* ตั้งค่า tab-menu ให้ชิดซ้ายสุด */
.tab-menu {
  display: flex;
  background-color: transparent;
  height: 70px;
  justify-content: flex-start; /* ชิดซ้าย */
  align-items: center;
  gap: 0; /* ลบช่องว่างระหว่างรายการ */
  padding: 0; /* ลบ padding */
  margin: 0; /* ลบ margin */
  width: 100%; /* ครอบเต็มความกว้าง */
}

/* ปรับ <a> และปุ่มให้ชิดติดกัน */
.tab-menu a {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
 
}

.back {
  width: 48px!important;
  height: auto; /* ให้ความสูงปรับตามสัดส่วนของรูป */
  margin-right:15px;
}

.back:hover {
  transform: scale(1.1); /* ขยายขนาดขึ้น 10% เมื่อ hover */
  opacity: 0.8; /* ลดความทึบลงเล็กน้อย */
}

/* ปรับปุ่ม */
.tab-menu button {
  padding: 10px;
  background-color: #D9D9D9;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-family: "Noto Sans Thai", sans-serif;
  margin: 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap; /* ป้องกันข้อความขึ้นบรรทัดใหม่ */
}




.tab-menu .active button {
  background-color: #6d5922!important;
  color: black!important;
  border-bottom: 2px solid #6d5922;
}

.tab-menu button:not(.active):hover {
  background-color: #696969;
  color: white;
  cursor: pointer;
}

.tab-menu a, .menu a {
  flex: 1;
  text-decoration: none; /* ป้องกันไม่ให้มีเส้นขีดใต้ */
}



.input-box {
  width: 90%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.custom-input {
    width: 90%;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    background-color: #f0f0f0;
    font-family: "Noto Sans Thai", sans-serif;
    font-size:16px;
}


.button-container {
  display: flex;
  justify-content: flex-end; /* ปรับตำแหน่งปุ่มไปทางขวา */
  margin-top: 20px;
}

.button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Noto Sans Thai", sans-serif;
}

#export-button {
  background-color: #23282c;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-right :5px;
}

#export-button:hover {
  background-color: #3a3f44;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}



.input-box, label {
  font-family: "Noto Sans Thai", sans-serif;
  }


  .btn-container {
    display: flex;
    gap: 10px; /* ระยะห่างระหว่างปุ่ม */
    align-items: center; /* จัดให้อยู่แนวเดียวกัน */
  }
  
.btn-add,.btn-delete,.btn-view {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Noto Sans Thai", sans-serif;
    color: white;
  }

  .btn-view {
    background-color: #6d5922;
    color: white;
  }
  
  .btn-view:hover {
    background-color: #c5ae62;
  }
  

  :root {
    --primary-color: #6d5922;
    --secondary-color: #114007;
    --text-color: white;
    --hover-color: #5b4a1e;
}

.expand-button {
  font-family: "Noto Sans Thai", sans-serif;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    
}

.expand-button::before {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.2);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.expand-button:hover::before {
    opacity: 1;
}

.expand-button:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.expand-button.expanded {
    background-color: var(--secondary-color);
}

.expand-button svg {
    margin-right: 8px;

}


  /* ปุ่มเพิ่ม */
  .btn-add {
    background-color: #4B4B4B; /* สีเทาเข้มสำหรับสถานะปกติ */
    color: white;
}

.btn-add:hover {
    background-color: #666666; /* สีเทาเข้มที่สว่างขึ้นนิดหน่อยเมื่อ hover */
}


  /* ปุ่มแก้ไข */
  .edit-button, .save-button {
    background-color: #e6e7e8;
    color: black;
  }
  .edit-button:hover, .save-button:hover {
    background-color: #d1d3d4; /* สีส้มเข้มขึ้นเมื่อ hover */
  }

  /* ปุ่มลบ*/
  .btn-delete {
    background-color: red;
    color: white;
}
  .btn-delete:hover {
    background-color: darkred;
}


select, input[type="text"] {
  font-family: "Noto Sans Thai", sans-serif;
  font-size: 16px;
}


/* popup บันทึกข้อมูล */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}



.popup-container {
  background-color: #114007;
  width: 350px;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.popup-icon {
  width: 80px;
  height: 80px;
  color: white;
  margin: 0 auto 20px;
  animation: bounce 1s infinite;
}

.popup-title {
  color: white;
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: bold;
}

.popup-message {
  color: white;
  margin-bottom: 25px;
}

.popup-close {
  font-family: "Noto Sans Thai", sans-serif;
  background-color: white;
  color: #114007;
  border: 2px solid white;
  padding: 10px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.popup-close:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.popup-close:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.popup-overlay-wrong {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-overlay-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-container-wrong {
  background-color: #ffffff;
  width: 350px;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.popup-icon-wrong {
  width: 80px;
  height: 80px;
  color: #dc2626;
  margin: 0 auto 20px;
  animation: bounce 1s infinite;
}

.popup-title-wrong {
  color: #dc2626;
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: bold;
}

.popup-message-wrong {
  color: #8a9099;
  margin-bottom: 25px;
}

.popup-close-wrong {
  font-family: "Noto Sans Thai", sans-serif;
  background-color: white;
  color: #000000;
  border: 2px solid white;
  padding: 10px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.popup-close-wrong:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.popup-close-wrong:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.popup-overlay-detail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* popup ยืนยันการลบ */
.delete-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.delete-modal-container {
  background-color: white;
  width: 350px;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.delete-modal-icon {
  width: 80px;
  height: 80px;
  color: #DC2626;
  margin: 0 auto 20px;
  animation: shake 0.5s;
}

.delete-modal-title {
  color: #DC2626;
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: bold;
}

.delete-modal-message {
  color: #4B5563;
  margin-bottom: 25px;
}

.delete-modal-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.delete-modal-cancel, .delete-modal-confirm {
  font-family: "Noto Sans Thai", sans-serif;
  padding: 10px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.delete-modal-cancel {
  background-color: #F3F4F6;
  color: #4B5563;
  border-color: #E5E7EB;
}

.delete-modal-confirm {
  background-color: #DC2626;
  color: white;
}

.delete-modal-cancel:hover {
  background-color: #E5E7EB;
}

.delete-modal-confirm:hover {
  background-color: #B91C1C;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}







td[colspan] {
  background-color: white;
  font-weight: bold;
  text-align: center;
}


/* กำหนดสีพื้นหลังของแถวเลขคี่ */
#data-table tbody tr:nth-child(odd) {
  background-color: white;
}

/* กำหนดสีพื้นหลังของแถวเลขคู่ */
#data-table tbody tr:nth-child(even) {
  background-color: #fdfcf4;
}


#dataTable tbody tr:nth-child(odd) {
  background-color: #ffffff;
}
#dataTable tbody tr:nth-child(even) {
  background-color: #fdfcf4;
}

input:disabled, 
select:disabled {
    cursor: not-allowed;
}

/* สไตล์สำหรับไอคอน */
.header .icon {
  transition: transform 0.3s ease; /* ทำให้ภาพเปลี่ยนแปลงอย่างนุ่มนวล */
}

/* เมื่อ hover ที่ภาพ */
.header .icon:hover {
  transform: scale(1.07);
  cursor: pointer;
}



/* ตาราง */
/* สีพื้นหลังของหัวข้อ */
th {
  background-color: #114007
  ; /* สีเขียว */
  color: white; /* สีตัวอักษร */
  padding: 10px;
}

.editable:empty:before {
  content: attr(data-placeholder); /* ใช้ข้อความจาก data-placeholder */
  color: gray; /* สีตัวอักษรจางๆ */
  font-size:14px;
}



.wrapper {
  color: #6b4f1d;
  line-height: 1.3;
  user-select: none; /* ห้ามคลุมดำ! */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  margin-left:5px;
  margin-top:3px;
}

a {
  text-decoration: none;
}

.title-th {
  font-weight: 500;
  font-size: 1.6rem;
  font-family: "Noto Sans Thai", sans-serif;
}

.title-en {
  font-weight: 500;
  font-size: 1.2rem;
  font-family: "Noto Sans Thai", sans-serif;
}

.english-abbr {
  font-weight: 600;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 6px;
    z-index: 999;
    min-width: 100px;
    right: 50px;
}

.dropdown-menu a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
}

.dropdown-menu a:hover {
    background-color: #f3efe0;
}

.dropdown-menu.show {
    display: block;
}

.card-items {
  width: 100%;
  height: auto;
  margin: 10px 0;
  background-color: #ffffff;
  border: 1px solid #114007;
  border-radius: 5px;
}

.head-items {
  justify-content: space-between;
  padding: 10px 20px;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  gap: 20px;
  align-items: center;
  color: #114007;
  border-bottom: 1px solid #114007;
  cursor: pointer;
  background-color: #A7C1A8;
}

.title-items {
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-items {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  background-color: #EEEFE0;
}

.content-part3 {
  width: 80%;
  margin-left: 30px;
  background-color: white;
  display: flex;
  flex-direction: column;
  font-family: "Noto Sans Thai", sans-serif;
}

.form-input {
  width:90%; 
  border: 1px solid #ccc; 
  border-radius: 5px; 
  padding: 5px; 
}

.form-input:disabled {
  width:90%; 
  border: 1px solid #ccc; 
  border-radius: 5px; 
  padding: 5px; 
  background-color: #f0f0f0;
}

.text-center {
  text-align: center;
}

.title-page {
  font-size: 22px; 
  color: #6d5922; 
  font-weight: 600 !important";
}
