/* ตารางหลัก */
table {
  font-size: 15px;
  width: 100%;
  min-width: 600px;
  border-collapse: separate; /* แยกขอบเพื่อให้เว้นช่องได้ */
}

/* หัวข้อและข้อมูล */
th, td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

/* หัวตาราง */
thead th {
  background-color: #f0f4f8;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  position: sticky; /* ค้างหัวตาราง */
  top: 0;
  z-index: 2;
}

/* กำหนดเว้นช่องเฉพาะ tbody */
tbody {
  border-spacing: 0 8px; /* เว้นเฉพาะแนวตั้ง */
  display: table-row-group;
}

/* แถวใน tbody */
tbody tr {
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

/* สลับสีแถว */
tbody tr:nth-child(odd) td {
  background-color: #fff;
}
tbody tr:nth-child(even) td {
  background-color: #cbfcd9;
}

/* hover effect */
tbody tr:hover td {
  background-color: #d9ecff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* breadcrumb */
.breadcrumb {
  background-color: #fff;
}

.breadcrumb a {
  font-family: 'Sarabun', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.025em;
  color: #000;
  display: inline-block;
  text-decoration: none;
}

.breadcrumb > li {
  font-size: 16px;
  font-weight: 300;
  text-shadow: none;
  color: #000;
  display: inline-block;
  margin-right: 8px;
}

.breadcrumb > li::after {
  content: "›";
  margin-left: 8px;
  color: #999;
}

.breadcrumb > li:last-child::after {
  content: "";
}
