/* management-dashboard.css - 관리자 대시보드 전용 스타일 */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', 'Noto Sans KR', Tahoma, Geneva, Verdana, sans-serif; background-color: #f5f7fa; color: #333; line-height: 1.6; } /* 메인 레이아웃 */ .main-layout-with-navbar { display: flex; flex-direction: column; min-height: 100vh; } .content-wrapper { flex: 1; padding: 20px; } .dashboard-container { max-width: 1400px; margin: 0 auto; } /* 페이지 헤더 */ .page-header { text-align: center; margin-bottom: 2.5rem; padding: 3rem 2rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,0.12); position: relative; } .page-header h1 { font-size: 2.5rem; margin-bottom: 0.8rem; font-weight: 700; } .subtitle { font-size: 1.1rem; opacity: 0.9; margin-bottom: 1rem; } .permission-badge { display: inline-block; background: rgba(255,255,255,0.2); color: white; padding: 8px 20px; border-radius: 25px; font-size: 14px; font-weight: 600; border: 2px solid rgba(255,255,255,0.3); } /* 뒤로가기 버튼 */ .back-btn { background: rgba(255,255,255,0.95); color: #667eea; border: 3px solid #667eea; padding: 16px 32px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 18px; display: inline-flex; align-items: center; gap: 12px; margin-bottom: 24px; transition: all 0.3s ease; box-shadow: 0 3px 12px rgba(102, 126, 234, 0.2); } .back-btn:hover { background: #667eea; color: white; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3); } /* 메시지 스타일 */ .message { padding: 20px 32px; border-radius: 12px; margin-bottom: 32px; font-weight: 600; font-size: 18px; box-shadow: 0 3px 12px rgba(0,0,0,0.1); } .message.warning { background: #fff3cd; color: #856404; border: 2px solid #ffeaa7; } .message.error { background: #f8d7da; color: #721c24; border: 2px solid #f5c6cb; } .message.success { background: #d4edda; color: #155724; border: 2px solid #c3e6cb; } .message.loading { background: #cce5ff; color: #0066cc; border: 2px solid #99d6ff; } /* 날짜 선택 카드 */ .date-selection-card { background: white; border-radius: 16px; padding: 2rem; box-shadow: 0 6px 24px rgba(0,0,0,0.08); margin-bottom: 2rem; } .date-selection-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid #f0f0f0; } .date-selection-header h3 { margin: 0; color: #333; font-size: 1.4rem; } .refresh-btn { background: #28a745; color: white; border: none; border-radius: 8px; padding: 12px 20px; cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.3s; display: flex; align-items: center; gap: 8px; } .refresh-btn:hover { background: #1e7e34; transform: translateY(-1px); } .date-selection-body { display: flex; gap: 20px; align-items: center; justify-content: center; } .date-input { padding: 15px 20px; font-size: 18px; border: 3px solid #e1e5e9; border-radius: 12px; background: white; transition: border-color 0.3s; min-width: 200px; } .date-input:focus { outline: none; border-color: #007bff; box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15); } /* 버튼 스타일 */ .btn { padding: 15px 30px; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; box-shadow: 0 3px 12px rgba(0,0,0,0.1); } .btn-primary { background: #007bff; color: white; } .btn-primary:hover { background: #0056b3; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3); } .btn-secondary { background: #6c757d; color: white; } .btn-secondary:hover { background: #545b62; transform: translateY(-2px); } /* 요약 섹션 */ .summary-section { background: white; border-radius: 16px; padding: 2rem; box-shadow: 0 6px 24px rgba(0,0,0,0.08); margin-bottom: 2rem; } .summary-section h3 { margin-bottom: 1.5rem; color: #333; font-size: 1.4rem; } .summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; } .summary-card { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border-radius: 12px; padding: 1.5rem; display: flex; align-items: center; gap: 15px; border: 2px solid #dee2e6; transition: all 0.3s ease; } .summary-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); } .summary-icon { font-size: 2rem; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.8); } .summary-content { flex: 1; } .summary-number { font-size: 2rem; font-weight: 700; color: #333; line-height: 1; } .summary-label { font-size: 0.9rem; color: #666; margin-top: 4px; } /* 개별 요약 카드 색상 */ .summary-card.total-workers { background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); border-color: #2196f3; } .summary-card.completed-workers { background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%); border-color: #4caf50; } .summary-card.missing-workers { background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%); border-color: #f44336; } .summary-card.total-hours { background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%); border-color: #9c27b0; } .summary-card.total-entries { background: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%); border-color: #ff9800; } .summary-card.error-count { background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%); border-color: #e91e63; } /* 액션 바 */ .action-bar { background: white; border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 16px rgba(0,0,0,0.06); margin-bottom: 2rem; display: flex; justify-content: space-between; align-items: center; } .filter-section { display: flex; gap: 20px; align-items: center; } .filter-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 16px; color: #333; } .filter-checkbox input[type="checkbox"] { display: none; } .checkmark { width: 20px; height: 20px; border: 2px solid #007bff; border-radius: 4px; position: relative; transition: all 0.3s ease; } .filter-checkbox input[type="checkbox"]:checked + .checkmark { background: #007bff; } .filter-checkbox input[type="checkbox"]:checked + .checkmark::after { content: "✓"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-weight: bold; font-size: 12px; } /* 작업자 섹션 */ .workers-section { background: white; border-radius: 16px; padding: 2rem; box-shadow: 0 6px 24px rgba(0,0,0,0.08); margin-bottom: 2rem; } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid #f0f0f0; } .section-header h3 { margin: 0; color: #333; font-size: 1.4rem; } .legend { display: flex; gap: 15px; } .legend-item { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 20px; border: 2px solid; } .legend-item.completed { color: #28a745; border-color: #28a745; background: rgba(40, 167, 69, 0.1); } .legend-item.missing { color: #dc3545; border-color: #dc3545; background: rgba(220, 53, 69, 0.1); } .legend-item.partial { color: #ffc107; border-color: #ffc107; background: rgba(255, 193, 7, 0.1); } /* 작업자 테이블 스타일 */ .table-container { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.06); } .workers-table { width: 100%; border-collapse: collapse; font-size: 14px; } .workers-table thead { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; } .workers-table th { padding: 16px 12px; text-align: left; font-weight: 700; font-size: 14px; border-bottom: 2px solid rgba(255,255,255,0.2); } .workers-table th:first-child { padding-left: 20px; } .workers-table th:last-child { padding-right: 20px; } .workers-table tbody tr { border-bottom: 1px solid #e9ecef; transition: all 0.3s ease; } .workers-table tbody tr:hover { background: #f8f9fa; transform: scale(1.01); box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .workers-table tbody tr:last-child { border-bottom: none; } .workers-table td { padding: 16px 12px; vertical-align: middle; line-height: 1.4; } .workers-table td:first-child { padding-left: 20px; } .workers-table td:last-child { padding-right: 20px; } /* 작업자 이름 스타일 */ .worker-name-cell { font-weight: 700; color: #333; display: flex; align-items: center; gap: 8px; } /* 상태 배지 스타일 */ .status-badge { padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; color: white; white-space: nowrap; text-align: center; min-width: 70px; } .status-badge.completed { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); } .status-badge.missing { background: linear-gradient(135deg, #dc3545 0%, #c82333 100%); } .status-badge.partial { background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%); color: #333; } /* 시간 표시 스타일 */ .hours-cell { font-weight: 700; font-size: 16px; color: #495057; } .hours-cell.zero { color: #dc3545; opacity: 0.7; } .hours-cell.partial { color: #ffc107; } .hours-cell.full { color: #28a745; } /* 작업 유형 태그 */ .work-types-container { display: flex; flex-wrap: wrap; gap: 4px; max-width: 120px; } .work-type-tag { background: #e3f2fd; color: #1565c0; padding: 4px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; white-space: nowrap; border: 1px solid #bbdefb; } /* 프로젝트 태그 */ .projects-container { display: flex; flex-wrap: wrap; gap: 4px; max-width: 150px; } .project-tag { background: #f3e5f5; color: #7b1fa2; padding: 4px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; white-space: nowrap; border: 1px solid #e1bee7; } /* 기여자 태그 */ .contributors-container { display: flex; flex-wrap: wrap; gap: 4px; max-width: 120px; } .contributor-tag { background: #e8f5e8; color: #2e7d32; padding: 4px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; white-space: nowrap; border: 1px solid #c8e6c9; } /* 업데이트 시간 스타일 */ .update-time { font-size: 12px; color: #666; white-space: nowrap; } .update-time.recent { color: #28a745; font-weight: 600; } .update-time.old { color: #dc3545; } /* 상세 버튼 */ .detail-btn { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); color: white; border: none; border-radius: 20px; padding: 8px 16px; cursor: pointer; font-size: 12px; font-weight: 600; transition: all 0.3s; white-space: nowrap; } .detail-btn:hover { background: linear-gradient(135deg, #0056b3 0%, #004085 100%); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3); } /* 데이터 없음 행 */ .no-data-row { text-align: center; padding: 40px 20px; color: #666; font-style: italic; } /* 테이블 반응형 */ @media (max-width: 1200px) { .workers-table { font-size: 13px; } .workers-table th, .workers-table td { padding: 12px 8px; } .work-types-container, .projects-container, .contributors-container { max-width: 100px; } } @media (max-width: 992px) { .table-container { overflow-x: auto; } .workers-table { min-width: 800px; font-size: 12px; } .workers-table th, .workers-table td { padding: 10px 6px; } .work-types-container, .projects-container, .contributors-container { max-width: 80px; } .work-type-tag, .project-tag, .contributor-tag { font-size: 10px; padding: 3px 6px; } } @media (max-width: 768px) { .workers-table { min-width: 700px; font-size: 11px; } .workers-table th, .workers-table td { padding: 8px 4px; } .status-badge { font-size: 10px; padding: 4px 8px; min-width: 60px; } .detail-btn { font-size: 10px; padding: 6px 12px; } } /* 로딩 스피너 */ .loading-spinner { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 2rem; background: white; border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,0.08); } .spinner { width: 50px; height: 50px; border: 4px solid #f3f3f3; border-top: 4px solid #007bff; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 1rem; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .loading-spinner p { color: #666; font-size: 1.1rem; font-weight: 600; } /* 데이터 없음 메시지 */ .no-data-message { text-align: center; padding: 4rem 2rem; background: white; border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,0.08); } .no-data-icon { font-size: 4rem; margin-bottom: 1rem; } .no-data-message h3 { color: #333; margin-bottom: 1rem; font-size: 1.5rem; } .no-data-message p { color: #666; font-size: 1.1rem; line-height: 1.6; } /* 작업자 상세 모달 */ .worker-detail-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center; z-index: 1000; animation: fadeIn 0.3s ease; } .modal-content { background: white; border-radius: 16px; width: 90%; max-width: 800px; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.3); animation: slideIn 0.3s ease; } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 2px solid #f0f0f0; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 16px 16px 0 0; } .modal-header h3 { margin: 0; font-size: 20px; font-weight: 700; } .close-modal-btn { background: rgba(255,255,255,0.2); color: white; border: none; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all 0.3s; } .close-modal-btn:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); } .modal-body { padding: 24px; } /* 사용법 안내 */ .guide-section { background: white; border-radius: 16px; padding: 2rem; box-shadow: 0 6px 24px rgba(0,0,0,0.08); margin-top: 2rem; } .guide-section h3 { margin-bottom: 1.5rem; color: #333; font-size: 1.4rem; text-align: center; } .guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; } .guide-item { text-align: center; padding: 20px; background: #f8f9fa; border-radius: 12px; border: 2px solid #e9ecef; transition: all 0.3s ease; } .guide-item:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); border-color: #667eea; } .guide-icon { font-size: 28px; margin-bottom: 12px; } .guide-item strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #333; } /* 애니메이션 */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideIn { from { opacity: 0; transform: translateY(-50px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } } /* 수정 모달 스타일 */ .edit-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center; z-index: 1001; /* 상세 모달보다 위에 */ animation: fadeIn 0.3s ease; } .edit-modal-content { background: white; border-radius: 16px; width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.3); animation: slideIn 0.3s ease; } .edit-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 2px solid #f0f0f0; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 16px 16px 0 0; } .edit-modal-header h3 { margin: 0; font-size: 20px; font-weight: 700; } .edit-modal-body { padding: 24px; } .edit-form-group { margin-bottom: 20px; } .edit-form-group label { display: block; margin-bottom: 8px; font-weight: 700; color: #555; font-size: 14px; } .edit-select, .edit-input { width: 100%; padding: 12px 16px; border: 2px solid #e1e5e9; border-radius: 8px; font-size: 16px; background: white; transition: border-color 0.3s; } .edit-select:focus, .edit-input:focus { outline: none; border-color: #007bff; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1); } .edit-modal-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 24px; border-top: 2px solid #f0f0f0; background: #f8f9fa; border-radius: 0 0 16px 16px; }