.dataTable-wrapper.no-header .dataTable-container {
  border-top: 1px solid #d9d9d9;
}

.dataTable-wrapper.no-footer .dataTable-container {
  border-bottom: 1px solid #d9d9d9;
}

.dataTable-top,
.dataTable-bottom {
  padding: 8px 10px;
}

.dataTable-top>nav:first-child,
.dataTable-top>div:first-child,
.dataTable-bottom>nav:first-child,
.dataTable-bottom>div:first-child {
  float: left;
}

.dataTable-top>nav:last-child,
.dataTable-top>div:last-child,
.dataTable-bottom>nav:last-child,
.dataTable-bottom>div:last-child {
  float: right;
}

.dataTable-selector {
  padding: 6px;
}

.dataTable-input {
  padding: 6px 12px;
}

.dataTable-info {
  margin: 7px 0;
}

/* PAGER */
.dataTable-pagination ul {
  margin: 0;
  padding-left: 0;
}

.dataTable-pagination li {
  list-style: none;
  float: left;
}

.dataTable-pagination a {
  border: 1px solid transparent;
  float: left;
  margin-left: 2px;
  padding: 6px 12px;
  position: relative;
  text-decoration: none;
  color: #333;
}

.dataTable-pagination a:hover {
  background-color: #d9d9d9;
}

.dataTable-pagination .active a,
.dataTable-pagination .active a:focus,
.dataTable-pagination .active a:hover {
  background-color: #d9d9d9;
  cursor: default;
}

.dataTable-pagination .ellipsis a,
.dataTable-pagination .disabled a,
.dataTable-pagination .disabled a:focus,
.dataTable-pagination .disabled a:hover {
  cursor: not-allowed;
}

.dataTable-pagination .disabled a,
.dataTable-pagination .disabled a:focus,
.dataTable-pagination .disabled a:hover {
  cursor: not-allowed;
  opacity: 0.4;
}

.dataTable-pagination .pager a {
  font-weight: bold;
}

/* TABLE */
.dataTable-table {
  max-width: 100%;
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
}

.dataTable-table>tbody>tr>td,
.dataTable-table>tbody>tr>th,
.dataTable-table>tfoot>tr>td,
.dataTable-table>tfoot>tr>th,
.dataTable-table>thead>tr>td,
.dataTable-table>thead>tr>th {
  vertical-align: top;
  padding: 8px 10px;
}

.dataTable-table>thead>tr>th {
  vertical-align: bottom;
  text-align: left;
  border-bottom: 1px solid #d9d9d9;
}

.dataTable-table>tfoot>tr>th {
  vertical-align: bottom;
  text-align: left;
  border-top: 1px solid #d9d9d9;
}

.dataTable-table th {
  vertical-align: bottom;
  text-align: left;
}

.dataTable-table th a {
  text-decoration: none;
  color: inherit;
}

.dataTable-sorter {
  display: inline-block;
  height: 100%;
  position: relative;
}

.dataTable-sorter::before,
.dataTable-sorter::after {
  content: "";
  height: 0;
  width: 0;
  position: absolute;
  right: -15px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: 0.2;
}

.dataTable-sorter::before {
  border-top: 4px solid #000;
  bottom: 3px;
}

.dataTable-sorter::after {
  border-bottom: 4px solid #000;
  border-top: 4px solid transparent;
  top: 0px;
}

.asc .dataTable-sorter::after,
.desc .dataTable-sorter::before {
  opacity: 0.6;
}

.dataTables-empty {
  text-align: center;
}

.dataTable-top::after,
.dataTable-bottom::after {
  clear: both;
  content: " ";
  display: table;
}

/* Container chính */
.custom-select-wrapper {
  position: relative;
  display: inline-block;
}

/* Button chính */
.custom-select-btn {
  background: #ffffff;
  border: 1px solid #dedede;
  border-radius: 8px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  outline: none;
}

.custom-badge {
  background-color: #000000;
  color: #ffffff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.chevron-icon {
  font-size: 12px;
  color: #666;
}

/* Card Dropdown Popover */
.custom-select-card {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 280px;
  background: #ffffff;
  border: 1px solid #dedede;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 12px;
  display: none;
  /* Mặc định ẩn */
  z-index: 9999;
}

.custom-select-card.active {
  display: block !important;
  /* Hiện khi bật class active */
}

/* Ô tìm kiếm */
.custom-search-box {
  position: relative;
  background-color: #f8f9fa;
  border: 1px solid #dedede;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  height: 36px;
  margin-bottom: 8px;
}

.custom-search-box i {
  color: #888;
  margin-right: 8px;
}

.custom-search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13px;
}

/* Danh sách User */
.custom-user-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  max-height: 200px;
  overflow-y: auto;
}

.custom-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}

.custom-user-item:hover {
  background-color: #f5f5f5;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-size: 13px;
  color: #333;
}

.custom-check-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #0d1117;
}

/* Footer Buttons */
.custom-action-footer {
  display: flex;
  gap: 8px;
  padding-top: 6px;
}

.btn-custom-clear {
  flex: 1;
  background-color: #f1f5f9;
  border: none;
  padding: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
}

.btn-custom-clear:hover {
  background-color: #e2e8f0;
}

.btn-custom-select {
  flex: 1;
  background-color: #0d1117;
  color: #ffffff;
  border: none;
  padding: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-custom-select:hover {
  background-color: #1a202c;
}

/* Container Wrapper */
.custom-select-wrapper {
  position: relative;
  display: inline-block;
  font-family: inherit;
}

/* Main Trigger Button */
.custom-select-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333333;
  cursor: pointer;
  outline: none;
}

/* Badge Counter Indicator */
.custom-badge {
  background-color: #0d1117;
  color: #ffffff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.chevron-icon {
  font-size: 12px;
  color: #666666;
}

/* Dropdown Menu Card */
.custom-select-card {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 270px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 12px;
  display: none;
  z-index: 9999;
}

/* Visible State */
.custom-select-card.active {
  display: block !important;
}

/* Search Box Input */
.custom-search-box {
  background-color: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  height: 36px;
  margin-bottom: 8px;
}

.custom-search-box i {
  color: #94a3b8;
}

.custom-search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  margin-left: 8px;
  font-size: 13px;
}

/* List Items Container */
.custom-user-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  max-height: 200px;
  overflow-y: auto;
}

.custom-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.custom-user-item:hover {
  background-color: #f8f9fa;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-info img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-size: 13px;
  color: #334155;
}

/* ------------------------------------------------------------- */
/* CUSTOM CHECKBOX DESIGN (Soft Rounded Border & Native Hide)     */
/* ------------------------------------------------------------- */
.custom-checkbox-container {
  display: inline-block;
  position: relative;
  width: 18px;
  height: 18px;
  cursor: pointer;
  user-select: none;
}

/* Hide default input */
.custom-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Soft rounded box (Default Unchecked) */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 5px;
  transition: all 0.2s ease;
}

/* Hover state */
.custom-checkbox-container:hover input~.checkmark {
  border-color: #94a3b8;
}

/* Checked state (Black background) */
.custom-checkbox-container input:checked~.checkmark {
  background-color: #0d1117;
  border-color: #0d1117;
}

/* Checkmark tick icon (SVG / Pure CSS Path) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox-container input:checked~.checkmark:after {
  display: block;
}

/* Footer Buttons */
.custom-action-footer {
  display: flex;
  gap: 8px;
}

.btn-custom-clear,
.btn-custom-select {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-custom-clear {
  background-color: #f1f5f9;
  color: #475569;
}

.btn-custom-clear:hover {
  background-color: #e2e8f0;
}

.btn-custom-select {
  background-color: #0d1117;
  color: #ffffff;
}

.btn-custom-select:hover {
  background-color: #1a202c;
}

/* Container Wrapper */
.dropdown-wrapper {
  position: relative;
  display: inline-block;
  font-family: inherit;
}

/* Trigger Button */
.dropdown-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333333;
  cursor: pointer;
  outline: none;
}

/* Badge Counter */
.badge-count {
  background-color: #0d1117;
  color: #ffffff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.chevron-icon {
  font-size: 12px;
  color: #666666;
}