
#head-tr th:last-child {
  max-width: 150px;
  width: 150px !important; /* Ép kích thước */
  overflow: hidden;
  white-space: nowrap;
}

#add-form input[type="checkbox"] {
  transform: scale(1.5);
  margin-right: 6px;
}

#edit-form input[type="checkbox"] {
  transform: scale(1.5);
  margin-right: 6px;
}

.darkmode {
  opacity: 0;
  position: absolute;
  display: none !important;
}

.darkmode-label {
  background-color: #1ec1e5;
  width: 60px;
  height: 30px;
  border-radius: 20px;
  position: relative;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.darkmode-label .ball {
  background-color: #fff;
  width: 24px;
  height: 24px;
  position: absolute;
  left: 4px;
  top: 3px;
  border-radius: 50%;
  transition: transform 0.3s linear;
}

.darkmode:checked + .darkmode-label .ball {
  transform: translateX(28px);
}

.darkmode:checked + .darkmode-label {
  background-color: #1d7588;
}

#darkmode {display: none;}

tr.bg-transition td {
  transition: background-color 1s ease;
}

tr.bg-danger-lower td {
  background-color: #ff6b6b !important;
}

tr.bg-warning-lower td {
  background-color: #d1b228 !important;
}

tr.bg-success-lower td {
  background-color: #14A44D !important;
}

table[data-filter=hide] .ft-form{
  display:none
}

td a.qty-false {
  color: red !important;
  font-size: 25px;
  font-weight: bolder;
}

td.weight-false {
  background: #e0d148
}


.chart-container {
  width: 100%;
  aspect-ratio: 4/3

}

/* Ẩn dropdown ban đầu */
.more-dropdown {
  position: absolute;
  top: 50%; /* Điều chỉnh tùy vào menu */
  left: 100%; /* Ẩn khỏi màn hình ban đầu */
  background: #fff;
  border-radius: 5px;
  list-style: none;
  padding: 10px;
  min-width: 400px;
  z-index: 9999;
  transform: translateX(-50px); /* Hiệu ứng trượt vào */
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s;
}



/* Khi mở menu */
.more-dropdown.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

/* Định dạng menu con */
.more-dropdown ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.more-dropdown li {
  padding: 8px 12px;
  white-space: nowrap;
}

.more-dropdown li a {
  text-decoration: none;
  color: #333;
  display: block;
}

.more-dropdown li a:hover {
  background: #f1f1f1;
}



.toggle-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 60px;
  height: 30px;
  background: #ccc;
  border-radius: 15px;
  position: relative;
  transition: background 0.3s;
}

.toggle-circle {
  width: 26px;
  height: 26px;
  background: white;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: all 0.3s;
}

.toggle-container.active {
  background: #4CAF50;
}

.toggle-container.active .toggle-circle {
  left: 32px;
}



/* Style cho notification */

.notification-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
}

.badge {
  position: absolute;
  top: 0;
  right: 0;
  color: white;
  font-size: 0.8rem;
  padding: 4px 6px;
  border-radius: 50%;
  display: none; /* Ẩn mặc định */
}


.notification-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border: 1px solid #ddd;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 400px;
  max-height: 500px; /* Giới hạn chiều cao */
  overflow-y: auto; /* Thêm thanh cuộn dọc */
  display: none;
  z-index: 1000;
}

.notification-dropdown.active {
  display: block;
}

.notification-item {
  margin: 0;
  line-height: 1.2;
  border-bottom: 1px solid #eee;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item.seen {
  opacity: 0.75; /* Làm mờ thông báo đã xem */
}

.no-notifications {
  padding: 10px;
  text-align: center;
  color: #777;
}
