/* CSS để giữ dòng tiêu đề bảng cố định */

/* Đảm bảo table-responsive có chiều cao cố định để có thể scroll */
.table-responsive {
  max-height: 70vh; /* Sử dụng viewport height để phù hợp với kích thước màn hình */
  overflow-y: auto;
  position: relative; /* Cần thiết cho con absolute */
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-top: 20px;
}

/* Làm cho header của bảng cố định */
table thead {
  position: sticky;
  top: 0;
  z-index: 20;
}

thead tr th {
  position: sticky;
  top: 0;
  background-color: #2563eb;
  color: white;
  z-index: 20;
  padding: 12px 15px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.4);
}

/* Thêm thanh scroll mịn và đẹp mắt */
.table-responsive::-webkit-scrollbar {
  width: 8px;
  height: 8px; /* Cho phép scroll ngang */
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #999;
}
