/* ========== 리포트 모달 ========== */
#reportModal .modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.report-header h2 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.report-period-selector {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.report-period-selector select {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.report-period-selector button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.report-period-selector button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* ========== 뷰 토글 버튼 ========== */
.view-toggle-container {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.view-toggle-btn {
    flex: 1;
    padding: 12px 20px;
    background: white;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.view-toggle-btn:first-child {
    border-right: 1px solid #e0e0e0;
}

.view-toggle-btn:hover {
    background: #f8f9fa;
}

.view-toggle-btn.active {
    background: var(--btn-primary-bg);
    color: white;
}

/* ========== 통계 카드 ========== */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.stat-card.green {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.stat-card.orange {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.stat-card.blue {
    background: var(--btn-primary-bg);
}

.stat-card-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card-subtext {
    font-size: 12px;
    opacity: 0.8;
}

/* ========== 월별 통계 테이블 ========== */
.monthly-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.monthly-stats-table thead {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.monthly-stats-table th {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.monthly-stats-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.monthly-stats-table tbody tr:hover {
    background: #f8f9fa;
}

.amount-highlight {
    font-weight: 700;
    color: var(--primary-color);
}

.amount-positive {
    color: #4CAF50;
    font-weight: 600;
}

.amount-negative {
    color: #f44336;
    font-weight: 600;
}

/* ========== 회원별 납부 현황 ========== */
.member-payment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.member-payment-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.member-payment-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.12);
    transform: translateY(-2px);
}

.member-payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.member-payment-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-payment-status {
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.status-good {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.status-warning {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

.status-danger {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.member-payment-details {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
}

.member-payment-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
}

.member-payment-detail-item strong {
    color: #333;
    font-size: 15px;
}

/* ========== 리포트 액션 버튼 ========== */
.report-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    justify-content: center;
}

.report-action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-action-btn.print {
    background: #4CAF50;
}

.report-action-btn.export {
    background: var(--primary-color);
}

.report-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.report-action-btn.print:hover {
    background: #388E3C;
}

.report-action-btn.export:hover {
    background: var(--primary-dark);
}

/* ========== 리포트 섹션 제목 ========== */
.report-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}