/* 통계 카드 */
.stats-cards {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.stat-card {
    flex: 1;
    min-width: 150px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}
.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}
.stat-card .stat-label {
    font-size: 13px;
    color: #888;
}
.stat-card.waiting .stat-value { color: #fd7e14; }
.stat-card.approved .stat-value { color: #28a745; }
.stat-card.rejected .stat-value { color: #dc3545; }
.stat-card.total .stat-value { color: #667eea; }

/* 테이블 */
.prove-table {
    width: 100%;
}
.prove-table th {
    background: #f8f9fa;
    font-weight: 600;
    white-space: nowrap;
}
.prove-table td {
    vertical-align: middle;
}

/* 상태 배지 */
.badge-waiting { background: #fd7e14; color: #fff; }
.badge-approved { background: #28a745; color: #fff; }
.badge-rejected { background: #dc3545; color: #fff; }

/* 파일 링크 */
.file-link {
    color: #667eea;
    cursor: pointer;
}
.file-link:hover {
    text-decoration: underline;
}

/* 액션 버튼 */
.action-btn {
    padding: 4px 10px;
    font-size: 12px;
    margin: 2px;
}

/* 모달 */
.modal-lg-custom {
    max-width: 700px;
}
.file-preview {
    max-width: 100%;
    max-height: 400px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.file-preview-container {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 파일 보기 모달 z-index 높이기 (상세보기 모달 위에 표시) */
#fileViewModal {
    z-index: 1060 !important;
}
#fileViewModal + .modal-backdrop,
.modal-backdrop.show + .modal-backdrop {
    z-index: 1055 !important;
}

/* 승인/반려 폼 */
.approval-form .form-group {
    margin-bottom: 15px;
}
.approval-form label {
    font-weight: 600;
    margin-bottom: 5px;
}

/* 모달 헤더 스타일 개선 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header .modal-title {
    margin: 0;
    flex: 1;
}
.modal-header .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    padding: 0 10px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.modal-header .close-btn:hover {
    opacity: 1;
}
.modal-header.bg-primary .close-btn {
    color: #fff;
}
