/* 정산 리포트 페이지 스타일 */

.settlement-page {
    background: #f8fafc;
    min-height: 100vh;
}

/* 정산 요약 카드 */
.settlement-summary {
    margin-bottom: 2rem;
}

/* 테이블 헤더 스타일 */
.table-header {
    background: #f9fafb;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header .header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.table-header h3 {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-header h3 i {
    color: #6b7280;
    font-size: 1rem;
}

.stats-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.stat-item i {
    color: #6b7280;
    font-size: 0.75rem;
}

.table-actions {
    display: flex;
    gap: 0.75rem;
}

.summary-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.card-header {
    background: #f8fafc;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h3 i {
    color: #3b82f6;
}

.card-content {
    padding: 1.5rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.summary-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.item-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.item-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
}

/* 정산 신청 섹션 */
.settlement-section {
    margin-bottom: 2rem;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

/* 문서 목록 */
.document-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.document-icon {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.document-info {
    flex: 1;
}

.document-name {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.document-status {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.document-status.uploaded {
    color: #059669;
}

.document-status i {
    font-size: 0.75rem;
}

/* 연락처 정보 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.contact-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #374151;
    min-width: 120px;
}

.contact-label i {
    color: #6b7280;
    width: 16px;
}

.contact-value {
    color: #1a202c;
    font-weight: 500;
}

/* 정산금액 테이블 */
.settlement-table-section {
    margin-bottom: 2rem;
}

.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.table-header {
    background: #f8fafc;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.table-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-header h3 i {
    color: #3b82f6;
}

.table-actions {
    display: flex;
    gap: 0.75rem;
}

.table-wrapper {
    overflow-x: auto;
}

.settlement-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.settlement-table th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    padding: 1rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
    white-space: nowrap;
}

.settlement-table td {
    padding: 1rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
    color: #1a202c;
    font-weight: 500;
}

.settlement-table tr:hover {
    background: #f8fafc;
}

.settlement-table tr:last-child td {
    border-bottom: none;
}

/* 컬럼 너비 */
.col-month {
    width: 100px;
    min-width: 100px;
}

.col-commission,
.col-adjustment,
.col-total-commission,
.col-request-amount,
.col-settlement-amount,
.col-balance {
    width: 140px;
    min-width: 140px;
}

/* 버튼 스타일 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-outline {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .section-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 0.5rem !important;
    }
    
    .page-header {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .summary-item {
        padding: 1rem;
    }
    
    .item-value {
        font-size: 1.25rem;
    }
    
    .document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .contact-label {
        min-width: auto;
    }
    
    .table-header .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .settlement-table th,
    .settlement-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .col-commission,
    .col-adjustment,
    .col-total-commission,
    .col-request-amount,
    .col-settlement-amount,
    .col-balance {
        width: 120px;
        min-width: 120px;
    }
}
