- 월별 캘린더 UI로 작업 현황을 한눈에 확인 가능 - 미입력(빨강), 부분입력(주황), 확인필요(보라), 이상없음(초록) 상태 표시 - 범례 아이콘(●)을 사용한 직관적인 상태 표시 - 날짜 클릭 시 해당일 작업자별 상세 현황 모달 - 작업자 클릭 시 개별 작업 입력/수정 모달 - 휴가 처리 기능 (연차, 반차, 반반차, 조퇴) - 월별 집계 데이터 최적화로 API 호출 최소화 백엔드: - monthly_worker_status, monthly_summary 테이블 추가 - 자동 집계 stored procedure 및 trigger 구현 - 확인필요(12시간 초과) 상태 감지 로직 - 출석 관리 시스템 확장 프론트엔드: - 캘린더 그리드 UI 구현 - 상태별 색상 및 아이콘 표시 - 모달 기반 상세 정보 표시 - 반응형 디자인 적용
1162 lines
23 KiB
CSS
1162 lines
23 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;
|
|
}
|
|
} |