/* Ảnh banner */
.img-banner-affi {
  width: 100%;
  height: 500px;
  object-fit: cover;
  max-width: 100%;
  border-radius: 12px;
}

/* Khung chính affiliate */
.afifliate {
  width: 100%;
  max-width: 100%;
  margin: 30px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  font-family: "Segoe UI", sans-serif;
  color: #333;
  box-sizing: border-box;
}

/* Banner nội dung */
.banner {
  text-align: center;
  margin-bottom: 30px;
}

/* Tiêu đề */
.titel-aff h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #2c3e50;
  padding-left: 10px;
}

/* Khung nhập và nút copy */
.input-aff {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.input-aff input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  color: #007bff;
  box-sizing: border-box;
}

.input-aff button {
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap; /* Giữ nút không bị ngắt dòng */
}

.input-aff button:hover {
  background-color: #2980b9;
}

/* Bảng dữ liệu */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-aff {
  width: 100%;
  min-width: 600px; /* Đặt kích thước tối thiểu cho bảng */
  border-collapse: collapse;
  margin-top: 10px;
}

.table-aff thead {
  background-color: #f5f8fa;
}

.table-aff th,
.table-aff td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.table-aff tr:hover {
  background-color: #f1f1f1;
}

.table-aff th {
  color: #2c3e50;
  font-weight: 600;
}

/* Layout 2 bảng 2 cột */
.tab-affiliate {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.tab-affiliate {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  overflow: hidden; /* Ngăn không cho trôi ra ngoài */
}

.tab-affiliate .aff-box {
  flex: 1;
  min-width: 300px;
  max-width: 100%; /* Không cho vượt quá khung */
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* Cuộn bên trong bảng */
  max-height: 400px;
  box-sizing: border-box;
}


/* Responsive mobile */
@media (max-width: 768px) {
  .tab-affiliate {
    flex-direction: column;
  }
.afifliate{
padding: 5px;    
}
  .input-aff {
    flex-direction: column;
    align-items: stretch;
  }

  .input-aff input,
  .input-aff button {
    width: 100%;
  }

  .img-banner-affi {
    height: 250px; /* Banner thấp hơn trên điện thoại */
  }

  .table-aff {
    min-width: 500px; /* Bảng nhỏ hơn cho mobile */
  }
}

/* Trạng thái rút tiền */
.status-pending {
  color: #f1c40f; /* Vàng */
  font-weight: bold;
}

.status-completed {
  color: #2ecc71; /* Xanh lá */
  font-weight: bold;
}

/* Tô màu cột Họ tên */
.name-highlight {
  color: #3498db; /* Xanh dương */
  font-weight: 600;
}

/* Tô màu số tiền */
.money-highlight {
  color: #27ae60; /* Xanh lá */
  font-weight: 600;
}

