.stats_cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.stat_card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-left: 4px solid #007bff;
}

.stat_card.apply {
  border-left-color: #ffc107;
}

.stat_card.approved {
  border-left-color: #28a745;
}

.stat_card.rejected {
  border-left-color: #dc3545;
}

.stat_card.suspended {
  border-left-color: #6c757d;
}

.stat_card h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
  font-weight: bold;
}

.stat_card p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.filter_wrap {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.filter_row {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.filter_item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter_item label {
  font-weight: bold;
  color: #333;
}

.filter_item select,
.filter_item input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.btn_filter {
  padding: 8px 20px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn_filter:hover {
  background: #0056b3;
}

.affiliate_table {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.affiliate_table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.affiliate_table th,
.affiliate_table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.affiliate_table th {
  background: #f8f9fa;
  font-weight: bold;
  color: #333;
}

.affiliate_table tr:hover {
  background: #f8f9fa;
}

.pagination {
  text-align: center;
  margin: 20px 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 2px;
  text-decoration: none;
  border: 1px solid #ddd;
  color: #007bff;
}

.pagination a:hover {
  background: #e9ecef;
}

.pagination .current {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

.promo_link .btn_action {
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}


.campaign_manage_wrap {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}


/* 각 컬럼 너비 고정 */
.affiliate_table th:nth-child(1),
.affiliate_table td:nth-child(1) {
  width: 25%;
}

/* 어필리에이터 */
.affiliate_table th:nth-child(2),
.affiliate_table td:nth-child(2) {
  width: 30%;
}

/* 캠페인 */
.affiliate_table th:nth-child(3),
.affiliate_table td:nth-child(3) {
  width: 18%;
}

/* 상태 */
.affiliate_table th:nth-child(4),
.affiliate_table td:nth-child(4) {
  width: 27%;
}

.affiliate_table th:nth-child(5),
.affiliate_table td:nth-child(5) {
  width: 100%;
}

.status_badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  display: inline-block;
  min-width: 60px;
}

.status_apply {
  background: #fff3cd;
  color: #856404;
}

.status_approved {
  background: #d4edda;
  color: #155724;
}

.status_rejected {
  background: #f8d7da;
  color: #721c24;
}

.status_suspended {
  background: #e2e3e5;
  color: #383d41;
}

.action_buttons {
  display: flex;
  gap: 5px;
  min-width: 120px;
  /* 최소 너비 고정 */
  justify-content: flex-start;
}

.btn_action {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  color: white;
  min-width: 50px;
  /* 버튼 최소 너비 통일 */
  text-align: center;
}

.btn_approve {
  background: #28a745;
}

.btn_approve:hover {
  background: #218838;
}

.btn_reject {
  background: #dc3545;
}

.btn_reject:hover {
  background: #c82333;
}

.btn_suspend {
  background: #6c757d;
}

.btn_suspend:hover {
  background: #5a6268;
}

.pagination {
  text-align: center;
  margin: 20px 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 2px;
  text-decoration: none;
  border: 1px solid #ddd;
  color: #007bff;
}

.pagination a:hover {
  background: #e9ecef;
}

.pagination .current {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.empty_message {
  text-align: center;
  padding: 40px;
  color: #666;
}