/* Logo tự co giãn theo màn hình, luôn gọn gàng */
.header-logo{
  max-height: clamp(40px, 8vw, 60px);
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Tiêu đề co giãn mượt, không bị to/nhỏ quá đà */
.main-header{
  font-weight: 700;
  line-height: 1.2;
  /* min 20px, ưu tiên 4.5vw, max 36px */
  font-size: clamp(20px, 4.5vw, 36px);
  /* tránh chữ dính viền khi rất hẹp */
  padding: 0 .25rem;
  word-break: break-word;
}

/* Vùng header tổng thể: giới hạn chiều rộng nội dung cực lớn */
.header-wrap{
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile: xếp dọc, logo nhỏ lại, khoảng cách gọn hơn */
@media (max-width: 576px){
  .header-wrap{
    gap: .5rem;
  }
  .header-logo{
    max-height: clamp(34px, 9vw, 48px);
  }
}
.tms-table-b2b-agents table td{
  padding: 10px 5px !important;
}
/* Màn cực hẹp: ẩn logo phải để ưu tiên tiêu đề (tùy chọn) */
@media (max-width: 360px){
  .header-wrap img:last-of-type{
    display: none;
  }
}
.tabs-clean {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 14px 16px;
  margin: 0;
  background: #f6f8f7;
  border: 1px solid #d6efe1;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 80, 50, 0.08);
}

.tab-item {
  background: #ffffff;
  border-radius: 10px;
  border: 2px solid transparent;
  min-width: 200px;
  transition: all 0.3s ease;
}

.tab-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 80, 50, 0.1);
}

/* Active xanh lá đậm */
.tab-item.is-active {
  border-color: #198754;
  background: #3cdd60;
  box-shadow: 0 8px 20px rgba(25, 135, 84, 0.35);
  color: #fff;
}

.tab-item.is-success.is-active {
  border-color: #3cdd60;
  background: #198754;
  box-shadow: 0 8px 20px rgba(25, 135, 84, 0.35);
  color: #fff;
}

.tab-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
}

.tab-icon {
  font-size: 28px;
}

.tab-title {
  font-weight: 700;
  font-size: 16px;
}

.tab-sub {
  font-size: 13px;
  opacity: 0.9;
}

/* Khi active -> chữ trắng */
.is-active .tab-title,
.is-active .tab-sub {
  color: #fff;
}

.tabs-body {
  margin-top: 16px;
  background: #ffffff;
  min-height: 120px;
  box-shadow: 0 12px 32px rgba(0, 80, 50, 0.05);
}
/* Mobile: thu nhỏ tab */
@media (max-width: 576px) {
  .tabs-clean {
    gap: 10px;
    padding: 10px 12px;
    overflow-x: auto;          /* Cho phép cuộn ngang khi nhiều tab */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .tab-item {
    min-width: 180px;          /* Thu nhỏ chiều rộng tab */
    border-radius: 8px;
  }

  .tab-inner {
    padding: 10px 12px;        /* Giảm padding */
    gap: 8px;
  }

  .tab-icon {
    font-size: 20px;           /* Icon nhỏ hơn */
  }

  .tab-title {
    font-size: 14px;           /* Tiêu đề nhỏ hơn */
  }

  .tab-sub {
    font-size: 12px;           /* Sub nhỏ hơn */
  }
}