/**
 * 추천인 결제 내역 페이지 스타일
 */

/* 헤더 타이틀 */
.referral-payments-page .header-logo h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 권한 없음 메시지 */
#accessDeniedSection {
    display: none;
    padding: 24px;
    text-align: center;
}

#accessDeniedSection p {
    font-size: 16px;
    color: #666;
}

#accessDeniedSection a {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    background: #FF6F0F;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

/* 본문 컨테이너 */
#mainContent {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    padding-bottom: 80px;
}

/* 요약 카드 */
.referral-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.referral-summary-card {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.referral-summary-card.total {
    background: linear-gradient(135deg, #FF6F0F 0%, #e85a00 100%);
    color: white;
}

.referral-summary-card.pending {
    background: #f0f0f0;
    color: #333;
}

.referral-summary-card .label {
    font-size: 13px;
    margin-bottom: 4px;
}

.referral-summary-card.total .label {
    opacity: 0.9;
}

.referral-summary-card.pending .label {
    color: #666;
}

.referral-summary-card .value {
    font-size: 22px;
    font-weight: 700;
}

/* 검색 (한 줄) */
.referral-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.referral-search-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    min-width: 40px;
}

/* 기간 한 필드 (daterangepicker) */
.referral-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    min-width: 200px;
}

.referral-date-range:hover {
    border-color: #FF6F0F;
}

.referral-date-range-icon {
    color: #666;
}

#reportrangeSpan {
    flex: 1;
}

.referral-search #searchKeyword {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.referral-search #searchBtn {
    padding: 10px 20px;
    background: #FF6F0F;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.referral-search #resetBtn {
    padding: 10px 20px;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.referral-search #resetBtn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* 테이블 래퍼 */
.referral-table-wrap {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

#referralPaymentsTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

#referralPaymentsTable thead tr {
    background: #f5f5f5;
}

#referralPaymentsTable th {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
}

#referralPaymentsTable th.text-right {
    text-align: right;
}

#referralPaymentsTable tbody tr {
    border-bottom: 1px solid #eee;
}

#referralPaymentsTable tbody td {
    padding: 10px 8px;
}

#referralPaymentsTable tbody td.text-right {
    text-align: right;
}

/* 로딩 / 없음 */
#tableLoading,
#tableEmpty {
    text-align: center;
    padding: 24px;
    color: #999;
}

#tableEmpty {
    display: none;
}

/* 페이징 */
#paginationWrap {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#paginationWrap .page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}

#paginationWrap .page-btn.active {
    border-color: #FF6F0F;
    background: #FF6F0F;
    color: #fff;
}
