/**
 * DAPA 회원 관리 탭 전용 스타일시트
 *
 * 목적: members.php의 인라인 CSS를 분리하여 캐싱 최적화
 * 작성일: 2025-01-14
 * 파일 크기: 136라인 (기존 인라인 CSS 제거로 성능 향상)
 */

/* 전체 글자 크기 14px 통일 */
.admin-members * {
    font-size: 14px !important;
}

.members-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 테이블 기본 스타일 */
.period-stats-table.members-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.period-stats-table.members-table th {
    background: #f8f9fa;
    color: #495057;
    padding: 10px 6px;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
    border-bottom: 2px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    white-space: nowrap;
}

.period-stats-table.members-table th:last-child {
    border-right: none;
}

.period-stats-table.members-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #f0f0f0;
    text-align: center;
    font-size: 14px;
    white-space: nowrap;
}

/* 컬럼별 정렬 */
.member-rank {
    text-align: center !important;
}

.member-id {
    text-align: center !important;
    font-weight: 600;
}

.pv-period,
.amount-period {
    text-align: right !important;
    font-weight: 600;
}

.posts-period,
.sequence-count,
.product-info,
.agreement-status {
    text-align: center !important;
}

.performance-ratio {
    text-align: center !important;
    font-weight: 600;
}

.period-stats-table.members-table td:last-child {
    border-right: none;
}

.period-stats-table.members-table tr:hover {
    background: #f8f9fa;
}

/* 순위 숫자만 표시 (배지 스타일 제거) */

/* 데이터 컬러링 */
.pv-period {
    color: #28a745;
}

.amount-period {
    color: #e91e63;
}

.posts-period {
    color: #6f42c1;
}

.sequence-count {
    color: #17a2b8;
}

.product-info {
    color: #fd7e14;
}

.agreement-status {
    color: #28a745;
}

.performance-ratio {
    color: #6f42c1;
}

.no-data {
    padding: 40px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
}

/* 페이징 스타일 추가 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 5px;
}

.btn-page {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-page:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.btn-page.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.btn-page:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .period-stats-table.members-table {
        font-size: 12px;
        min-width: 600px;
    }

    .period-stats-table.members-table th,
    .period-stats-table.members-table td {
        padding: 6px 3px;
        font-size: 12px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 3px;
    }

    .btn-page {
        padding: 6px 10px;
        font-size: 12px;
    }
}