/* daily-work-report.css - 덮어쓰기 방지 완전 스타일 */ /* 기본 레이아웃 */ .daily-work-report-container { max-width: 1200px; margin: 0 auto; padding: 20px; font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; } /* 단계 표시 */ .steps-container { display: flex; justify-content: center; margin-bottom: 30px; position: relative; } .step { display: flex; align-items: center; margin: 0 20px; opacity: 0.5; transition: all 0.3s ease; } .step.active { opacity: 1; transform: scale(1.1); } .step.completed { opacity: 1; } .step-number { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #e9ecef 0%, #adb5bd 100%); display: flex; align-items: center; justify-content: center; font-weight: bold; color: #495057; margin-right: 10px; transition: all 0.3s ease; } .step.active .step-number { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); color: white; box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); } .step.completed .step-number { background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%); color: white; } /* 🛡️ 보호 모드 표시기 */ .protection-indicator { position: fixed; top: 20px; right: 20px; background: linear-gradient(135deg, #27ae60 0%, #229954 100%); color: white; padding: 10px 15px; border-radius: 25px; font-size: 12px; font-weight: bold; box-shadow: 0 2px 10px rgba(39, 174, 96, 0.3); z-index: 1000; border: 2px solid #1e8449; animation: pulse-protection 2s infinite; } .protection-indicator::before { content: "🛡️"; margin-right: 8px; } @keyframes pulse-protection { 0%, 100% { box-shadow: 0 2px 10px rgba(39, 174, 96, 0.3); } 50% { box-shadow: 0 4px 20px rgba(39, 174, 96, 0.5); } } /* 메시지 컨테이너 */ .message-container { margin-bottom: 20px; } .message { padding: 15px; border-radius: 8px; margin-bottom: 10px; font-weight: 500; border: 2px solid transparent; transition: all 0.3s ease; } .message.success { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); color: white; border-color: #1e7e34; box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); } .message.error { background: linear-gradient(135deg, #dc3545 0%, #c82333 100%); color: white; border-color: #bd2130; box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3); } .message.warning { background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); color: white; border-color: #d68910; box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3); animation: fadeInShake 0.5s ease-out; } .message.loading { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); color: white; border-color: #2471a3; position: relative; overflow: hidden; } .message.loading::after { content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); animation: loading-shimmer 1.5s infinite; } @keyframes loading-shimmer { 0% { left: -100%; } 100% { left: 100%; } } @keyframes fadeInShake { 0% { opacity: 0; transform: translateX(-10px); } 50% { opacity: 1; transform: translateX(5px); } 100% { opacity: 1; transform: translateX(0); } } /* 단계별 콘텐츠 */ .step-content { background: white; border-radius: 12px; padding: 30px; margin-bottom: 20px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); border: 2px solid #e9ecef; } /* 1단계: 날짜 선택 */ .date-selection { text-align: center; } .date-input { padding: 15px; font-size: 18px; border: 2px solid #dee2e6; border-radius: 8px; width: 200px; margin: 20px 0; transition: all 0.3s ease; } .date-input:focus { border-color: #007bff; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); outline: none; } /* 2단계: 작업자 선택 */ .worker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; margin: 20px 0; } .worker-btn { padding: 15px; border: 2px solid #dee2e6; border-radius: 10px; background: white; cursor: pointer; transition: all 0.3s ease; font-weight: 500; font-size: 14px; position: relative; } .worker-btn:hover { border-color: #007bff; background: #f8f9fa; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2); } .worker-btn.selected { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); color: white; border-color: #0056b3; box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); } /* 🚫 차단된 작업자 버튼 스타일 */ .worker-btn.blocked { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important; color: white !important; border: 2px solid #a93226 !important; opacity: 0.7; cursor: not-allowed !important; position: relative; animation: pulse-blocked 2s infinite; } .worker-btn.blocked:hover { transform: none !important; box-shadow: none !important; } .worker-btn.blocked::after { content: "🚫"; position: absolute; top: -5px; right: -5px; background: #fff; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 12px; border: 2px solid #e74c3c; } @keyframes pulse-blocked { 0%, 100% { opacity: 0.7; } 50% { opacity: 0.5; } } /* 3단계: 작업 입력 */ .work-entries-container { margin: 20px 0; } .work-entry { background: #f8f9fa; border: 2px solid #e9ecef; border-radius: 12px; padding: 20px; margin-bottom: 20px; transition: all 0.3s ease; } .work-entry:hover { border-color: #007bff; box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1); } .work-entry-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .work-entry-title { font-size: 18px; font-weight: bold; color: #495057; } .remove-work-btn { background: #dc3545; color: white; border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; } .remove-work-btn:hover { background: #c82333; transform: scale(1.1); } .work-entry-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; } .form-group { display: flex; flex-direction: column; } .form-group label { font-weight: bold; margin-bottom: 8px; color: #495057; font-size: 14px; } .large-select { padding: 12px; border: 2px solid #dee2e6; border-radius: 8px; font-size: 14px; transition: all 0.3s ease; background: white; } .large-select:focus { border-color: #007bff; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); outline: none; } /* 에러 유형 섹션 */ .error-type-section { opacity: 0.5; transition: all 0.3s ease; } .error-type-section.visible { opacity: 1; } /* 시간 입력 */ .time-input-row { grid-column: 1 / -1; } .quick-time-buttons { display: flex; gap: 10px; margin-top: 10px; } .quick-time-btn { padding: 8px 15px; background: #e9ecef; border: 2px solid #dee2e6; border-radius: 20px; cursor: pointer; font-size: 12px; font-weight: bold; transition: all 0.3s ease; } .quick-time-btn:hover { background: #007bff; color: white; border-color: #0056b3; transform: translateY(-2px); } /* 총 시간 표시 */ .total-hours-display { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 15px; border-radius: 10px; text-align: center; font-size: 18px; font-weight: bold; margin: 20px 0; box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); } /* 버튼 스타일 */ .btn { padding: 12px 25px; border: 2px solid transparent; border-radius: 8px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; font-size: 14px; text-decoration: none; display: inline-block; } .btn-primary { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); color: white; border-color: #0056b3; } .btn-primary:hover { background: linear-gradient(135deg, #0056b3 0%, #004085 100%); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); } .btn-success { background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%); color: white; border-color: #1e7e34; } .btn-success:hover { background: linear-gradient(135deg, #1e7e34 0%, #155724 100%); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); } .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; box-shadow: none !important; } /* 작업 추가 버튼 */ .add-work-container { text-align: center; margin: 30px 0; } .add-work-btn { background: linear-gradient(135deg, #17a2b8 0%, #138496 100%); color: white; border: 2px solid #138496; padding: 15px 30px; border-radius: 25px; font-size: 16px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; } .add-work-btn:hover { background: linear-gradient(135deg, #138496 0%, #0f6674 100%); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(23, 162, 184, 0.3); } /* 저장 버튼 */ .submit-container { text-align: center; margin: 40px 0; } .submit-btn { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); color: white; border: 2px solid #1e7e34; padding: 18px 40px; border-radius: 30px; font-size: 18px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; } .submit-btn:hover { background: linear-gradient(135deg, #1e7e34 0%, #17a2b8 100%); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4); } /* 오늘 작업자 현황 */ .daily-workers-section { margin-top: 40px; padding: 20px; background: #f8f9fa; border-radius: 12px; border: 2px solid #e9ecef; } .daily-workers-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 15px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 10px; border: 2px solid #5a6fd8; } .daily-workers-header h4 { margin: 0; font-size: 16px; font-weight: bold; } .refresh-btn { background: rgba(255, 255, 255, 0.2); color: white; border: 2px solid rgba(255, 255, 255, 0.3); padding: 8px 15px; border-radius: 20px; cursor: pointer; font-size: 12px; font-weight: bold; transition: all 0.3s ease; } .refresh-btn:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); } /* 작업자 현황 그리드 */ .worker-status-grid { display: grid; gap: 20px; } .worker-status-item { background: white; border: 2px solid #e9ecef; border-radius: 12px; padding: 20px; transition: all 0.3s ease; } .worker-status-item:hover { border-color: #007bff; box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1); } .worker-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #e9ecef; } .worker-name { font-size: 18px; font-weight: bold; color: #495057; } .worker-total-hours { background: linear-gradient(135deg, #17a2b8 0%, #138496 100%); color: white; padding: 5px 15px; border-radius: 15px; font-size: 14px; font-weight: bold; } /* 개별 작업 항목 */ .individual-works-container { margin-top: 15px; } .individual-work-item { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border: 2px solid #dee2e6; border-radius: 10px; padding: 15px; margin-bottom: 10px; transition: all 0.3s ease; } .individual-work-item:hover { background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%); border-color: #adb5bd; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); } .work-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 15px; } .detail-item { display: flex; flex-direction: column; gap: 5px; } .detail-label { font-size: 12px; font-weight: bold; color: #6c757d; text-transform: uppercase; letter-spacing: 0.5px; } .detail-value { font-size: 14px; font-weight: 600; color: #212529; padding: 8px 12px; background: white; border: 1px solid #ced4da; border-radius: 6px; } /* 액션 버튼들 */ .action-buttons { display: flex; gap: 10px; justify-content: flex-end; } .edit-btn, .delete-btn { padding: 8px 15px; border: none; border-radius: 6px; font-size: 12px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; } .edit-btn { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); color: white; border: 2px solid #2471a3; } .edit-btn:hover { background: linear-gradient(135deg, #2980b9 0%, #2471a3 100%); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3); } .delete-btn { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); color: white; border: 2px solid #a93226; } .delete-btn:hover { background: linear-gradient(135deg, #c0392b 0%, #a93226 100%); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3); } /* 데이터 없음 메시지 */ .no-data-message { text-align: center; padding: 40px; color: #6c757d; font-size: 16px; line-height: 1.6; } .no-data-message small { display: block; margin-top: 10px; font-size: 14px; color: #adb5bd; } /* 로딩 스피너 */ .loading-spinner { text-align: center; padding: 40px; font-size: 16px; color: #007bff; font-weight: bold; } /* 반응형 디자인 */ @media (max-width: 768px) { .daily-work-report-container { padding: 10px; } .work-entry-row { grid-template-columns: 1fr; } .worker-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; } .work-details-grid { grid-template-columns: 1fr; } .daily-workers-header { flex-direction: column; gap: 10px; text-align: center; } .protection-indicator { position: relative; top: auto; right: auto; margin: 10px auto; text-align: center; } .steps-container { flex-direction: column; align-items: center; } .step { margin: 10px 0; } } @media (max-width: 480px) { .worker-grid { grid-template-columns: 1fr 1fr; } .action-buttons { flex-direction: column; } .date-input { width: 100%; } }