/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
/* Nút Thông tin (Info) - Sử dụng tông Cyan thương hiệu */
@media (max-width: 1023px) {
  /* Mặc định ẩn sidebar sang trái */
  aside {
    position: fixed !important;
    top: 0;
    left: -100%;
    /* Đẩy hết sang trái */
    height: 100vh;
    z-index: 50;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 280px !important;
  }

  /* Khi có class .active sẽ trượt vào */
  aside.active {
    left: 0;
  }

  /* Điều chỉnh nội dung chính nếu cần */
  main {
    width: 100%;
  }

  .nav-fixed {
    position: fixed;
    width: 100%;
  }
}

.btn-info,
.btn-warning,
.btn-danger,
.btn-success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;

  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.2);
  cursor: pointer;
}

.btn-info {
  background-color: #0891b2;
  /* Cyan 600 */
  color: #ffffff !important;
}

.btn-info:hover {
  background-color: #0e7490;
  /* Cyan 700 */
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(8, 145, 178, 0.3);
}

/* Nút Cảnh báo (Warning) - Sử dụng tông Amber/Orange */
.btn-warning {
  background-color: #f59e0b;
  /* Amber 500 */
  color: #ffffff !important;
}

.btn-warning:hover {
  background-color: #d97706;
  /* Amber 600 */
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
}

.btn-success {
  background-color: #059669;
  /* Emerald 600 */
  color: #ffffff !important;
}

.btn-success:hover {
  background-color: #047857;
  /* Emerald 700 */
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3);
}

.btn-danger {
  background-color: #dc2626;
  /* Red 600 */
  color: #ffffff !important;
}

.btn-danger:hover {
  background-color: #b91c1c;
  /* Red 700 */
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
}

/* Hiệu ứng khi nhấn (Active) */
.btn-info:active,
.btn-warning:active,
.btn-danger:active,
.btn-success:active {
  transform: translateY(0);
}

.tab-item {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
}

/* Trạng thái Tab đang được chọn */
.tab-active {
  color: #0891b2 !important;
  /* Màu xanh Cyan thương hiệu */
  border-bottom-color: #0891b2;
  background-color: #ecfeff;
  position: relative;
}

/* Trạng thái Tab bình thường */
.tab-normal {
  color: #64748b !important;
  /* Màu xám Slate */
  background-color: transparent;
}

/* Hiệu ứng khi di chuột qua Tab bình thường */
.tab-normal:hover {
  color: #334155 !important;
  background-color: #f8fafc;
  border-bottom-color: #cbd5e1;
}

/* Tổng quan bảng */
table {
  width: 100%;
  background-color: #ffffff;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

/* Header của bảng */
table thead tr {
  background-color: #f8fafc;
  color: #64748b;
  text-align: left;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}

table th {
  padding: 15px 20px;
  font-weight: 600;
  border-bottom: 2px solid #f1f5f9;
}

/* Nội dung dòng (Rows) */
table td {
  padding: 15px 20px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-size: 14px;
  transition: background 0.2s;
}

/* Hiệu ứng khi di chuột qua dòng */
table tbody tr:hover {
  background-color: #f0f9ff;
  /* Màu xanh lơ nhạt */
}

/* Loại bỏ viền dưới cho dòng cuối cùng */
table tbody tr:last-child td {
  border-bottom: none;
}

.form-control {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #1e293b;
  background-color: #ffffff;
  background-clip: padding-box;
  border: 1px solid #cbd5e1;
  appearance: none;
  border-radius: 8px;
  /* Bo góc hiện đại */
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Hiệu ứng khi nhấn vào ô nhập (Focus) */
.form-control:focus {
  color: #0f172a;
  background-color: #fff;
  border-color: #06b6d4;
  /* Màu Cyan thương hiệu */
  outline: 0;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
  /* Hiệu ứng tỏa sáng nhẹ */
}

/* Định dạng cho Placeholder */
.form-control::placeholder {
  color: #94a3b8;
  opacity: 1;
}

/* Vô hiệu hóa ô nhập */
.form-control:disabled,
.form-control[readonly] {
  background-color: #f1f5f9;
  opacity: 1;
}

.form-group {
  margin-bottom: 1.5rem;
  /* Khoảng cách giữa các dòng form */
}

.form-group label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #475569;
  font-size: 13px;
}

/* Thêm hỗ trợ cho thông báo lỗi dưới ô input */
.form-group .help-block {
  display: block;
  margin-top: 0.25rem;
  font-size: 12px;
  color: #ef4444;
  /* Màu đỏ thông báo lỗi */
}

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}