✨ 새로운 기능: - 작업 분석 페이지 구현 (기간별, 프로젝트별, 작업자별, 오류별) - 개별 분석 실행 버튼으로 API 부하 최적화 - 연차/휴무 집계 방식 개선 (주말 제외, 작업내용 통합) - 프로젝트 관리 시스템 (활성화/비활성화) - 작업자 관리 시스템 (CRUD 기능) - 코드 관리 시스템 (작업유형, 작업상태, 오류유형) 🎨 UI/UX 개선: - 기간별 작업 현황을 테이블 형태로 변경 - 작업자별 rowspan 그룹화로 가독성 향상 - 연차/휴무 프로젝트 하단 배치 및 시각적 구분 - 기간 확정 시스템으로 사용자 경험 개선 - 반응형 디자인 적용 🔧 기술적 개선: - Rate Limiting 제거 (내부 시스템 최적화) - 주말 연차/휴무 자동 제외 로직 - 작업공수 계산 정확도 향상 - 데이터베이스 마이그레이션 추가 - API 엔드포인트 확장 및 최적화 🐛 버그 수정: - projectSelect 요소 참조 오류 해결 - 차트 높이 무한 증가 문제 해결 - 날짜 표시 형식 단순화 - 작업보고서 저장 validation 오류 수정
1376 lines
27 KiB
CSS
1376 lines
27 KiB
CSS
/* ========== 일일 작업보고서 전용 스타일 ========== */
|
|
|
|
/* 메인 레이아웃 */
|
|
.work-report-container {
|
|
min-height: 100vh;
|
|
background: var(--bg-secondary);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.work-report-header {
|
|
background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
|
|
color: white;
|
|
padding: var(--space-8) var(--space-6);
|
|
text-align: center;
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.work-report-header h1 {
|
|
font-size: var(--text-4xl);
|
|
font-weight: var(--font-bold);
|
|
margin-bottom: var(--space-2);
|
|
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.work-report-header .subtitle {
|
|
font-size: var(--text-lg);
|
|
opacity: 0.9;
|
|
font-weight: var(--font-medium);
|
|
}
|
|
|
|
.work-report-main {
|
|
flex: 1;
|
|
padding: var(--space-8) var(--space-6);
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
/* 뒤로가기 버튼 */
|
|
.back-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
padding: var(--space-3) var(--space-4);
|
|
background: var(--bg-primary);
|
|
color: var(--primary-600);
|
|
border: 2px solid var(--primary-200);
|
|
border-radius: var(--radius-lg);
|
|
text-decoration: none;
|
|
font-weight: var(--font-semibold);
|
|
transition: var(--transition-normal);
|
|
margin-bottom: var(--space-6);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.back-button:hover {
|
|
background: var(--primary-50);
|
|
border-color: var(--primary-300);
|
|
transform: translateY(-1px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
/* 진행 단계 표시 */
|
|
.progress-steps {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-bottom: var(--space-8);
|
|
padding: var(--space-6);
|
|
background: var(--bg-primary);
|
|
border-radius: var(--radius-xl);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.progress-step {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
position: relative;
|
|
flex: 1;
|
|
max-width: 200px;
|
|
}
|
|
|
|
.progress-step:not(:last-child)::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 20px;
|
|
right: -50%;
|
|
width: 100%;
|
|
height: 2px;
|
|
background: var(--border-light);
|
|
z-index: 1;
|
|
}
|
|
|
|
.progress-step.active:not(:last-child)::after,
|
|
.progress-step.completed:not(:last-child)::after {
|
|
background: var(--primary-500);
|
|
}
|
|
|
|
.step-circle {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: var(--radius-full);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: var(--font-bold);
|
|
font-size: var(--text-sm);
|
|
background: var(--gray-200);
|
|
color: var(--gray-600);
|
|
transition: var(--transition-normal);
|
|
z-index: 2;
|
|
position: relative;
|
|
}
|
|
|
|
.progress-step.active .step-circle {
|
|
background: var(--primary-500);
|
|
color: white;
|
|
box-shadow: 0 0 0 4px var(--primary-100);
|
|
}
|
|
|
|
.progress-step.completed .step-circle {
|
|
background: var(--success-500);
|
|
color: white;
|
|
}
|
|
|
|
.step-label {
|
|
font-size: var(--text-sm);
|
|
font-weight: var(--font-medium);
|
|
color: var(--text-secondary);
|
|
text-align: center;
|
|
}
|
|
|
|
.progress-step.active .step-label {
|
|
color: var(--primary-600);
|
|
font-weight: var(--font-semibold);
|
|
}
|
|
|
|
.progress-step.completed .step-label {
|
|
color: var(--success-600);
|
|
}
|
|
|
|
/* 단계별 섹션 */
|
|
.step-section {
|
|
background: var(--bg-primary);
|
|
border-radius: var(--radius-xl);
|
|
padding: var(--space-8);
|
|
margin-bottom: var(--space-6);
|
|
box-shadow: var(--shadow-md);
|
|
border: 1px solid var(--border-light);
|
|
opacity: 0.5;
|
|
transform: translateY(20px);
|
|
transition: all 0.4s ease;
|
|
}
|
|
|
|
.step-section.active {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
border-color: var(--primary-200);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.step-section.completed {
|
|
opacity: 0.8;
|
|
border-color: var(--success-200);
|
|
}
|
|
|
|
.step-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-4);
|
|
margin-bottom: var(--space-6);
|
|
padding-bottom: var(--space-4);
|
|
border-bottom: 2px solid var(--border-light);
|
|
}
|
|
|
|
.step-number {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: var(--radius-full);
|
|
background: var(--primary-500);
|
|
color: white;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: var(--font-bold);
|
|
font-size: var(--text-lg);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.step-number.completed {
|
|
background: var(--success-500);
|
|
}
|
|
|
|
.step-title {
|
|
font-size: var(--text-2xl);
|
|
font-weight: var(--font-bold);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* 폼 요소들 */
|
|
.form-group {
|
|
margin-bottom: var(--space-6);
|
|
}
|
|
|
|
.form-label {
|
|
display: block;
|
|
margin-bottom: var(--space-3);
|
|
font-weight: var(--font-semibold);
|
|
color: var(--text-primary);
|
|
font-size: var(--text-base);
|
|
}
|
|
|
|
.form-input {
|
|
width: 100%;
|
|
padding: var(--space-4);
|
|
border: 2px solid var(--border-light);
|
|
border-radius: var(--radius-lg);
|
|
font-size: var(--text-base);
|
|
background: var(--bg-primary);
|
|
transition: var(--transition-normal);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.form-input:focus {
|
|
outline: none;
|
|
border-color: var(--primary-500);
|
|
box-shadow: 0 0 0 3px var(--primary-100);
|
|
}
|
|
|
|
/* 작업자 선택 그리드 */
|
|
.worker-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
|
|
gap: var(--space-4);
|
|
margin-bottom: var(--space-6);
|
|
}
|
|
|
|
.worker-card {
|
|
padding: var(--space-5);
|
|
border: 2px solid var(--border-light);
|
|
border-radius: var(--radius-xl);
|
|
background: var(--bg-primary);
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
text-align: center;
|
|
font-weight: var(--font-semibold);
|
|
font-size: var(--text-lg);
|
|
min-height: 100px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: var(--shadow-sm);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.worker-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 3px;
|
|
background: var(--primary-500);
|
|
transform: scaleX(0);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.worker-card:hover {
|
|
border-color: var(--primary-300);
|
|
background: var(--primary-50);
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.worker-card:hover::before {
|
|
transform: scaleX(1);
|
|
}
|
|
|
|
.worker-card.selected {
|
|
border-color: var(--primary-500);
|
|
background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
|
|
color: white;
|
|
box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
|
|
}
|
|
|
|
.worker-card.selected::before {
|
|
transform: scaleX(1);
|
|
background: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
/* 작업 항목 */
|
|
.work-entry {
|
|
background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
|
|
border: 2px solid var(--border-light);
|
|
border-radius: var(--radius-2xl);
|
|
padding: var(--space-8);
|
|
margin-bottom: var(--space-6);
|
|
position: relative;
|
|
transition: var(--transition-normal);
|
|
box-shadow: var(--shadow-md);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.work-entry::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 4px;
|
|
background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.work-entry:hover {
|
|
border-color: var(--primary-300);
|
|
box-shadow: var(--shadow-lg);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.work-entry:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.work-entry-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: var(--space-6);
|
|
padding-bottom: var(--space-4);
|
|
border-bottom: 2px solid var(--border-light);
|
|
}
|
|
|
|
.work-entry-title {
|
|
font-size: var(--text-xl);
|
|
font-weight: var(--font-bold);
|
|
color: var(--text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.work-entry-title::before {
|
|
content: '🔧';
|
|
font-size: var(--text-lg);
|
|
}
|
|
|
|
.remove-work-btn {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: var(--radius-full);
|
|
background: linear-gradient(135deg, var(--error-500), var(--error-600));
|
|
color: white;
|
|
border: none;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: var(--transition-normal);
|
|
font-size: var(--text-lg);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.remove-work-btn:hover {
|
|
background: linear-gradient(135deg, var(--error-600), var(--error-700));
|
|
transform: scale(1.1) rotate(90deg);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.work-entry-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: var(--space-6);
|
|
}
|
|
|
|
.work-entry-full {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
/* 폼 필드 그룹 */
|
|
.form-field-group {
|
|
background: var(--bg-primary);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-5);
|
|
border: 1px solid var(--border-light);
|
|
transition: var(--transition-normal);
|
|
}
|
|
|
|
.form-field-group:hover {
|
|
border-color: var(--primary-200);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.form-field-group.focused {
|
|
border-color: var(--primary-500);
|
|
box-shadow: 0 0 0 3px var(--primary-100);
|
|
}
|
|
|
|
.form-field-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
margin-bottom: var(--space-3);
|
|
font-weight: var(--font-semibold);
|
|
color: var(--text-primary);
|
|
font-size: var(--text-base);
|
|
}
|
|
|
|
.form-field-icon {
|
|
font-size: var(--text-lg);
|
|
}
|
|
|
|
.form-select {
|
|
width: 100%;
|
|
padding: var(--space-4);
|
|
border: 2px solid var(--border-light);
|
|
border-radius: var(--radius-lg);
|
|
font-size: var(--text-base);
|
|
background: var(--bg-primary);
|
|
transition: var(--transition-normal);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.form-select:focus {
|
|
outline: none;
|
|
border-color: var(--primary-500);
|
|
box-shadow: 0 0 0 3px var(--primary-100);
|
|
}
|
|
|
|
.form-select:hover {
|
|
border-color: var(--primary-300);
|
|
}
|
|
|
|
/* 에러 유형 섹션 */
|
|
.error-type-section {
|
|
background: linear-gradient(135deg, var(--error-50) 0%, var(--warning-50) 100%);
|
|
border: 2px solid var(--error-200);
|
|
border-radius: var(--radius-xl);
|
|
padding: var(--space-6);
|
|
margin-top: var(--space-4);
|
|
opacity: 0;
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
transform: translateY(-10px);
|
|
}
|
|
|
|
.error-type-section.visible {
|
|
opacity: 1;
|
|
max-height: 200px;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.error-type-section .form-field-label {
|
|
color: var(--error-700);
|
|
}
|
|
|
|
.error-type-section .form-field-icon {
|
|
color: var(--error-500);
|
|
}
|
|
|
|
/* 시간 입력 */
|
|
.time-input-section {
|
|
background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
|
|
border: 2px solid var(--primary-200);
|
|
border-radius: var(--radius-xl);
|
|
padding: var(--space-6);
|
|
margin-top: var(--space-4);
|
|
}
|
|
|
|
.quick-time-buttons {
|
|
display: flex;
|
|
gap: var(--space-2);
|
|
margin-top: var(--space-3);
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
|
|
.quick-time-btn {
|
|
padding: var(--space-3) var(--space-4);
|
|
background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
|
|
border: 2px solid var(--primary-300);
|
|
border-radius: var(--radius-xl);
|
|
cursor: pointer;
|
|
font-size: var(--text-sm);
|
|
font-weight: var(--font-semibold);
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
color: var(--primary-700);
|
|
min-width: 60px;
|
|
text-align: center;
|
|
box-shadow: var(--shadow-sm);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.quick-time-btn::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
|
|
transition: left 0.5s ease;
|
|
}
|
|
|
|
.quick-time-btn:hover {
|
|
background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
|
|
color: white;
|
|
transform: translateY(-2px) scale(1.05);
|
|
box-shadow: var(--shadow-lg);
|
|
border-color: var(--primary-400);
|
|
}
|
|
|
|
.quick-time-btn:hover::before {
|
|
left: 100%;
|
|
}
|
|
|
|
.quick-time-btn:active {
|
|
transform: translateY(0) scale(0.98);
|
|
}
|
|
|
|
/* 총 작업시간 표시 */
|
|
.total-hours-display {
|
|
text-align: center;
|
|
font-size: var(--text-2xl);
|
|
font-weight: var(--font-bold);
|
|
padding: var(--space-6);
|
|
background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
|
|
color: white;
|
|
border-radius: var(--radius-xl);
|
|
margin-bottom: var(--space-6);
|
|
box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
|
|
}
|
|
|
|
/* 버튼 스타일 */
|
|
.btn {
|
|
padding: var(--space-4) var(--space-6);
|
|
border: none;
|
|
border-radius: var(--radius-lg);
|
|
font-size: var(--text-base);
|
|
font-weight: var(--font-semibold);
|
|
cursor: pointer;
|
|
transition: var(--transition-normal);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-2);
|
|
text-decoration: none;
|
|
min-height: 48px;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
transform: none !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--primary-500);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
background: var(--primary-600);
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.btn-success {
|
|
background: var(--success-500);
|
|
color: white;
|
|
}
|
|
|
|
.btn-success:hover:not(:disabled) {
|
|
background: var(--success-600);
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--gray-500);
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary:hover:not(:disabled) {
|
|
background: var(--gray-600);
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.btn-block {
|
|
width: 100%;
|
|
}
|
|
|
|
/* 메시지 */
|
|
.message {
|
|
padding: var(--space-4) var(--space-5);
|
|
border-radius: var(--radius-lg);
|
|
margin-bottom: var(--space-6);
|
|
font-weight: var(--font-medium);
|
|
border: 1px solid;
|
|
}
|
|
|
|
.message.error {
|
|
background: var(--error-50);
|
|
color: var(--error-700);
|
|
border-color: var(--error-200);
|
|
}
|
|
|
|
.message.success {
|
|
background: var(--success-50);
|
|
color: var(--success-700);
|
|
border-color: var(--success-200);
|
|
}
|
|
|
|
.message.loading {
|
|
background: var(--primary-50);
|
|
color: var(--primary-700);
|
|
border-color: var(--primary-200);
|
|
}
|
|
|
|
.message.warning {
|
|
background: var(--warning-50);
|
|
color: var(--warning-700);
|
|
border-color: var(--warning-200);
|
|
}
|
|
|
|
/* 반응형 디자인 */
|
|
@media (max-width: 1024px) {
|
|
.work-report-main {
|
|
padding: var(--space-6) var(--space-4);
|
|
}
|
|
|
|
.progress-steps {
|
|
padding: var(--space-4);
|
|
}
|
|
|
|
.progress-step:not(:last-child)::after {
|
|
right: -40%;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.work-report-header {
|
|
padding: var(--space-6) var(--space-4);
|
|
}
|
|
|
|
.work-report-header h1 {
|
|
font-size: var(--text-3xl);
|
|
}
|
|
|
|
.work-report-main {
|
|
padding: var(--space-4) var(--space-3);
|
|
}
|
|
|
|
.step-section {
|
|
padding: var(--space-6);
|
|
}
|
|
|
|
.worker-grid {
|
|
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
.worker-card {
|
|
min-height: 80px;
|
|
padding: var(--space-3);
|
|
font-size: var(--text-base);
|
|
}
|
|
|
|
.work-entry-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.work-entry-full {
|
|
grid-column: span 1;
|
|
}
|
|
|
|
.progress-steps {
|
|
flex-direction: column;
|
|
gap: var(--space-4);
|
|
}
|
|
|
|
.progress-step:not(:last-child)::after {
|
|
display: none;
|
|
}
|
|
|
|
.quick-time-buttons {
|
|
gap: var(--space-1);
|
|
}
|
|
|
|
.quick-time-btn {
|
|
padding: var(--space-1) var(--space-3);
|
|
font-size: var(--text-xs);
|
|
}
|
|
}
|
|
|
|
/* 슬라이드 다운 애니메이션 */
|
|
@keyframes slideDown {
|
|
from {
|
|
opacity: 0;
|
|
max-height: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
max-height: 200px;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.work-report-header h1 {
|
|
font-size: var(--text-2xl);
|
|
}
|
|
|
|
.step-section {
|
|
padding: var(--space-4);
|
|
}
|
|
|
|
.step-header {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.step-number {
|
|
width: 40px;
|
|
height: 40px;
|
|
font-size: var(--text-base);
|
|
}
|
|
|
|
.step-title {
|
|
font-size: var(--text-xl);
|
|
}
|
|
|
|
.worker-grid {
|
|
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
|
|
}
|
|
|
|
.total-hours-display {
|
|
font-size: var(--text-xl);
|
|
padding: var(--space-4);
|
|
}
|
|
}
|
|
|
|
/* 가이드 그리드 */
|
|
.guide-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: var(--space-4);
|
|
margin-top: var(--space-4);
|
|
}
|
|
|
|
.guide-item {
|
|
text-align: center;
|
|
padding: var(--space-5);
|
|
background: var(--bg-tertiary);
|
|
border-radius: var(--radius-xl);
|
|
border: 2px solid var(--border-light);
|
|
transition: var(--transition-normal);
|
|
}
|
|
|
|
.guide-item:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-lg);
|
|
border-color: var(--primary-300);
|
|
background: var(--primary-50);
|
|
}
|
|
|
|
.guide-icon {
|
|
font-size: var(--text-3xl);
|
|
margin-bottom: var(--space-3);
|
|
display: block;
|
|
}
|
|
|
|
.guide-item strong {
|
|
display: block;
|
|
font-size: var(--text-base);
|
|
font-weight: var(--font-bold);
|
|
margin-bottom: var(--space-2);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.guide-grid {
|
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
.guide-item {
|
|
padding: var(--space-4);
|
|
}
|
|
|
|
.guide-icon {
|
|
font-size: var(--text-2xl);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.guide-grid {
|
|
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
|
|
}
|
|
|
|
.guide-item {
|
|
padding: var(--space-3);
|
|
}
|
|
|
|
.guide-item strong {
|
|
font-size: var(--text-sm);
|
|
}
|
|
}
|
|
|
|
/* ========== 개별 작업 보고서 전용 스타일 ========== */
|
|
|
|
/* 작업자 정보 카드 */
|
|
.worker-info-card {
|
|
background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
|
|
border: 2px solid var(--primary-200);
|
|
border-radius: var(--radius-2xl);
|
|
padding: var(--space-8);
|
|
margin-bottom: var(--space-8);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-6);
|
|
box-shadow: var(--shadow-lg);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.worker-info-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 4px;
|
|
background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
|
|
}
|
|
|
|
.worker-avatar-large {
|
|
width: 80px;
|
|
height: 80px;
|
|
border-radius: var(--radius-full);
|
|
background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-inverse);
|
|
font-weight: var(--font-bold);
|
|
font-size: var(--text-3xl);
|
|
box-shadow: var(--shadow-lg);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.worker-info-details {
|
|
flex: 1;
|
|
}
|
|
|
|
.worker-info-details h2 {
|
|
font-size: var(--text-2xl);
|
|
font-weight: var(--font-bold);
|
|
color: var(--text-primary);
|
|
margin: 0 0 var(--space-2) 0;
|
|
}
|
|
|
|
.worker-info-details p {
|
|
font-size: var(--text-base);
|
|
color: var(--text-secondary);
|
|
margin: 0 0 var(--space-1) 0;
|
|
}
|
|
|
|
.worker-status-summary {
|
|
display: flex;
|
|
gap: var(--space-6);
|
|
}
|
|
|
|
.status-item {
|
|
text-align: center;
|
|
padding: var(--space-4);
|
|
background: var(--bg-primary);
|
|
border-radius: var(--radius-xl);
|
|
border: 1px solid var(--border-light);
|
|
min-width: 100px;
|
|
}
|
|
|
|
.status-label {
|
|
display: block;
|
|
font-size: var(--text-sm);
|
|
color: var(--text-secondary);
|
|
margin-bottom: var(--space-1);
|
|
}
|
|
|
|
.status-value {
|
|
display: block;
|
|
font-size: var(--text-xl);
|
|
font-weight: var(--font-bold);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.status-value.warning {
|
|
color: var(--error-600);
|
|
}
|
|
|
|
/* 섹션 헤더 */
|
|
.section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: var(--space-6);
|
|
padding-bottom: var(--space-4);
|
|
border-bottom: 2px solid var(--border-light);
|
|
}
|
|
|
|
.section-header h3 {
|
|
font-size: var(--text-xl);
|
|
font-weight: var(--font-bold);
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
}
|
|
|
|
/* 기존 작업 목록 */
|
|
.existing-work-section {
|
|
margin-bottom: var(--space-8);
|
|
}
|
|
|
|
.existing-work-item {
|
|
background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
|
|
border: 2px solid var(--border-light);
|
|
border-radius: var(--radius-xl);
|
|
padding: var(--space-6);
|
|
margin-bottom: var(--space-4);
|
|
transition: var(--transition-normal);
|
|
box-shadow: var(--shadow-md);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.existing-work-item::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 3px;
|
|
background: var(--success-500);
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.existing-work-item:hover {
|
|
border-color: var(--primary-300);
|
|
box-shadow: var(--shadow-lg);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.existing-work-item:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.work-item-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: var(--space-4);
|
|
}
|
|
|
|
.work-item-info h4 {
|
|
font-size: var(--text-lg);
|
|
font-weight: var(--font-semibold);
|
|
color: var(--text-primary);
|
|
margin: 0 0 var(--space-1) 0;
|
|
}
|
|
|
|
.work-item-info p {
|
|
font-size: var(--text-sm);
|
|
color: var(--text-secondary);
|
|
margin: 0;
|
|
}
|
|
|
|
.work-item-status {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.status-badge {
|
|
padding: var(--space-1) var(--space-3);
|
|
border-radius: var(--radius-full);
|
|
font-size: var(--text-xs);
|
|
font-weight: var(--font-medium);
|
|
}
|
|
|
|
.status-badge.normal {
|
|
background: var(--success-100);
|
|
color: var(--success-700);
|
|
border: 1px solid var(--success-300);
|
|
}
|
|
|
|
.status-badge.error {
|
|
background: var(--error-100);
|
|
color: var(--error-700);
|
|
border: 1px solid var(--error-300);
|
|
}
|
|
|
|
.work-hours {
|
|
font-size: var(--text-lg);
|
|
font-weight: var(--font-bold);
|
|
color: var(--primary-600);
|
|
}
|
|
|
|
.work-item-error {
|
|
background: var(--error-50);
|
|
border: 1px solid var(--error-200);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-3);
|
|
margin-bottom: var(--space-4);
|
|
}
|
|
|
|
.error-label {
|
|
font-size: var(--text-sm);
|
|
font-weight: var(--font-medium);
|
|
color: var(--error-600);
|
|
}
|
|
|
|
.error-type {
|
|
font-size: var(--text-sm);
|
|
color: var(--error-700);
|
|
margin-left: var(--space-2);
|
|
}
|
|
|
|
.work-item-actions {
|
|
display: flex;
|
|
gap: var(--space-2);
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
/* 새 작업 추가 섹션 */
|
|
.new-work-section {
|
|
margin-bottom: var(--space-8);
|
|
}
|
|
|
|
/* 휴가 처리 섹션 */
|
|
.vacation-section {
|
|
margin-bottom: var(--space-8);
|
|
}
|
|
|
|
.vacation-buttons {
|
|
display: flex;
|
|
gap: var(--space-4);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.vacation-process-btn {
|
|
flex: 1;
|
|
min-width: 150px;
|
|
padding: var(--space-4) var(--space-6);
|
|
font-size: var(--text-base);
|
|
font-weight: var(--font-medium);
|
|
background: linear-gradient(135deg, var(--warning-500), var(--warning-600));
|
|
border: none;
|
|
color: var(--text-inverse);
|
|
border-radius: var(--radius-xl);
|
|
transition: var(--transition-normal);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.vacation-process-btn:hover {
|
|
background: linear-gradient(135deg, var(--warning-600), var(--warning-700));
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
/* 빈 상태 */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: var(--space-12);
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-xl);
|
|
border: 2px dashed var(--border-light);
|
|
}
|
|
|
|
.empty-icon {
|
|
font-size: var(--text-6xl);
|
|
margin-bottom: var(--space-4);
|
|
}
|
|
|
|
.empty-state h3 {
|
|
font-size: var(--text-xl);
|
|
font-weight: var(--font-semibold);
|
|
color: var(--text-primary);
|
|
margin: 0 0 var(--space-2) 0;
|
|
}
|
|
|
|
.empty-state p {
|
|
font-size: var(--text-base);
|
|
color: var(--text-secondary);
|
|
margin: 0;
|
|
}
|
|
|
|
/* 개별 보고서 반응형 디자인 */
|
|
@media (max-width: 768px) {
|
|
.worker-info-card {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
gap: var(--space-4);
|
|
}
|
|
|
|
.worker-status-summary {
|
|
justify-content: center;
|
|
gap: var(--space-4);
|
|
}
|
|
|
|
.section-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
.work-item-header {
|
|
flex-direction: column;
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
.work-item-status {
|
|
align-items: flex-start;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.vacation-buttons {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.vacation-process-btn {
|
|
min-width: auto;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.worker-status-summary {
|
|
flex-direction: column;
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
.status-item {
|
|
min-width: auto;
|
|
}
|
|
|
|
.work-item-actions {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
/* ========================================
|
|
저장 결과 모달 스타일
|
|
======================================== */
|
|
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
backdrop-filter: blur(8px);
|
|
z-index: 10000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
animation: fadeIn 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.result-modal {
|
|
background: var(--bg-primary);
|
|
border-radius: var(--radius-2xl);
|
|
box-shadow: var(--shadow-2xl);
|
|
width: 90%;
|
|
max-width: 500px;
|
|
max-height: 80vh;
|
|
overflow: hidden;
|
|
animation: slideUp 0.3s ease-out;
|
|
border: 2px solid var(--border-light);
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30px) scale(0.95);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
}
|
|
|
|
.modal-header {
|
|
background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
|
|
color: var(--text-inverse);
|
|
padding: var(--space-6);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-bottom: 2px solid var(--primary-700);
|
|
}
|
|
|
|
.modal-header h2 {
|
|
margin: 0;
|
|
font-size: var(--text-xl);
|
|
font-weight: var(--font-bold);
|
|
}
|
|
|
|
.modal-close-btn {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-inverse);
|
|
font-size: var(--text-2xl);
|
|
cursor: pointer;
|
|
padding: var(--space-2);
|
|
border-radius: var(--radius-full);
|
|
transition: var(--transition-fast);
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.modal-close-btn:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.modal-body {
|
|
padding: var(--space-8);
|
|
max-height: 60vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.result-content {
|
|
text-align: center;
|
|
}
|
|
|
|
.result-icon {
|
|
font-size: 4rem;
|
|
margin-bottom: var(--space-6);
|
|
display: block;
|
|
}
|
|
|
|
.result-icon.success {
|
|
color: var(--success-500);
|
|
}
|
|
|
|
.result-icon.error {
|
|
color: var(--error-500);
|
|
}
|
|
|
|
.result-icon.warning {
|
|
color: var(--warning-500);
|
|
}
|
|
|
|
.result-title {
|
|
font-size: var(--text-2xl);
|
|
font-weight: var(--font-bold);
|
|
margin-bottom: var(--space-4);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.result-title.success {
|
|
color: var(--success-600);
|
|
}
|
|
|
|
.result-title.error {
|
|
color: var(--error-600);
|
|
}
|
|
|
|
.result-title.warning {
|
|
color: var(--warning-600);
|
|
}
|
|
|
|
.result-message {
|
|
font-size: var(--text-lg);
|
|
color: var(--text-secondary);
|
|
margin-bottom: var(--space-6);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.result-details {
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-4);
|
|
margin-top: var(--space-4);
|
|
text-align: left;
|
|
}
|
|
|
|
.result-details h4 {
|
|
font-size: var(--text-base);
|
|
font-weight: var(--font-semibold);
|
|
color: var(--text-primary);
|
|
margin: 0 0 var(--space-2) 0;
|
|
}
|
|
|
|
.result-details ul {
|
|
margin: 0;
|
|
padding-left: var(--space-4);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.result-details li {
|
|
margin-bottom: var(--space-1);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.modal-footer {
|
|
background: var(--bg-secondary);
|
|
padding: var(--space-6);
|
|
border-top: 1px solid var(--border-light);
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.modal-footer .btn {
|
|
min-width: 120px;
|
|
padding: var(--space-3) var(--space-6);
|
|
font-weight: var(--font-semibold);
|
|
}
|
|
|
|
/* 반응형 디자인 */
|
|
@media (max-width: 480px) {
|
|
.result-modal {
|
|
width: 95%;
|
|
margin: var(--space-4);
|
|
}
|
|
|
|
.modal-header {
|
|
padding: var(--space-4);
|
|
}
|
|
|
|
.modal-body {
|
|
padding: var(--space-6);
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: var(--space-4);
|
|
}
|
|
|
|
.result-icon {
|
|
font-size: 3rem;
|
|
}
|
|
|
|
.result-title {
|
|
font-size: var(--text-xl);
|
|
}
|
|
|
|
.result-message {
|
|
font-size: var(--text-base);
|
|
}
|
|
} |