fix: 캘린더 모달 중복 카드 문제 및 삭제 권한 개선

- monthly_worker_status 조회 시 GROUP BY로 중복 데이터 합산
- 작업보고서 삭제 권한을 그룹장 이상으로 제한 (admin, system, group_leader)
- 중복 데이터 정리를 위한 마이그레이션 SQL 추가 (009_fix_duplicate_monthly_status.sql)
- synology_deployment 버전에도 동일 수정 적용
This commit is contained in:
Hyungi Ahn
2025-12-02 13:08:44 +09:00
parent beaffcad49
commit a9bce9d20b
419 changed files with 275129 additions and 394 deletions

View File

@@ -0,0 +1,677 @@
/* admin-settings.css */
/* 기본 레이아웃 */
.work-report-container {
min-height: 100vh;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.work-report-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
text-align: center;
padding: 3rem 2rem;
margin-bottom: 0;
}
.work-report-header h1 {
font-size: 2.5rem;
font-weight: 700;
margin: 0 0 1rem 0;
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.work-report-header .subtitle {
font-size: 1.1rem;
opacity: 0.9;
margin: 0;
font-weight: 300;
}
.work-report-main {
background: #f8f9fa;
min-height: calc(100vh - 200px);
padding-top: 2rem;
}
.back-button {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
background: rgba(255, 255, 255, 0.9);
color: #495057;
text-decoration: none;
border-radius: 8px;
font-weight: 500;
margin: 0 2rem 2rem 2rem;
transition: all 0.3s ease;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.back-button:hover {
background: white;
color: #007bff;
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.dashboard-main {
padding: 0 2rem 2rem 2rem;
max-width: 1400px;
margin: 0 auto;
}
.page-header {
margin-bottom: 2rem;
}
.page-title-section {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.page-title {
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 2rem;
font-weight: 700;
color: #1a1a1a;
margin: 0;
}
.title-icon {
font-size: 2.25rem;
}
.page-description {
font-size: 1rem;
color: #666;
margin: 0;
}
/* 설정 섹션 */
.settings-section {
background: white;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
overflow: hidden;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 2rem;
background: #f8f9fa;
border-bottom: 1px solid #e9ecef;
}
.section-title {
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 1.25rem;
font-weight: 600;
color: #1a1a1a;
margin: 0;
}
.section-icon {
font-size: 1.5rem;
}
/* 사용자 컨테이너 */
.users-container {
padding: 2rem;
}
.users-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
gap: 1rem;
}
/* 검색 박스 */
.search-box {
position: relative;
flex: 1;
max-width: 300px;
}
.search-input {
width: 100%;
padding: 0.75rem 1rem 0.75rem 2.5rem;
border: 2px solid #e9ecef;
border-radius: 8px;
font-size: 0.9rem;
transition: all 0.2s ease;
}
.search-input:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.search-icon {
position: absolute;
left: 0.75rem;
top: 50%;
transform: translateY(-50%);
font-size: 1rem;
color: #666;
}
/* 필터 버튼 */
.filter-buttons {
display: flex;
gap: 0.5rem;
}
.filter-btn {
padding: 0.5rem 1rem;
border: 2px solid #e9ecef;
background: white;
border-radius: 6px;
font-size: 0.85rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.filter-btn:hover {
border-color: #007bff;
color: #007bff;
}
.filter-btn.active {
background: #007bff;
border-color: #007bff;
color: white;
}
/* 사용자 테이블 */
.users-table-container {
border: 1px solid #e9ecef;
border-radius: 8px;
overflow: hidden;
}
.users-table {
width: 100%;
border-collapse: collapse;
font-size: 0.9rem;
}
.users-table th {
background: #f8f9fa;
padding: 1rem;
text-align: left;
font-weight: 600;
color: #495057;
border-bottom: 2px solid #e9ecef;
}
.users-table td {
padding: 1rem;
border-bottom: 1px solid #e9ecef;
vertical-align: middle;
}
.users-table tbody tr:hover {
background: #f8f9fa;
}
/* 사용자 정보 */
.user-info {
display: flex;
align-items: center;
gap: 0.75rem;
}
.user-avatar-small {
width: 36px;
height: 36px;
background: #007bff;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 0.9rem;
}
.user-details h4 {
margin: 0;
font-size: 0.9rem;
font-weight: 600;
color: #1a1a1a;
}
.user-details p {
margin: 0;
font-size: 0.8rem;
color: #666;
}
/* 역할 배지 */
.role-badge {
display: inline-flex;
align-items: center;
gap: 0.25rem;
padding: 0.25rem 0.75rem;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 600;
}
.role-badge.admin {
background: #dc3545;
color: white;
}
.role-badge.leader {
background: #fd7e14;
color: white;
}
.role-badge.user {
background: #28a745;
color: white;
}
/* 상태 배지 */
.status-badge {
display: inline-flex;
align-items: center;
gap: 0.25rem;
padding: 0.25rem 0.75rem;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 600;
}
.status-badge.active {
background: #d4edda;
color: #155724;
}
.status-badge.inactive {
background: #f8d7da;
color: #721c24;
}
/* 액션 버튼 */
.action-buttons {
display: flex;
gap: 0.5rem;
}
.action-btn {
padding: 0.4rem 0.8rem;
border: none;
border-radius: 4px;
font-size: 0.8rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.action-btn.edit {
background: #007bff;
color: white;
}
.action-btn.edit:hover {
background: #0056b3;
}
.action-btn.delete {
background: #dc3545;
color: white;
}
.action-btn.delete:hover {
background: #c82333;
}
.action-btn.toggle {
background: #6c757d;
color: white;
}
.action-btn.toggle:hover {
background: #545b62;
}
/* 빈 상태 */
.empty-state {
text-align: center;
padding: 3rem 2rem;
color: #666;
}
.empty-icon {
font-size: 4rem;
margin-bottom: 1rem;
}
.empty-state h3 {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: #1a1a1a;
}
.empty-state p {
font-size: 0.9rem;
margin: 0;
}
/* 모달 스타일 */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal-container {
background: white;
border-radius: 12px;
box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
width: 90%;
max-width: 500px;
max-height: 90vh;
overflow-y: auto;
}
.modal-container.small {
max-width: 400px;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 2rem;
border-bottom: 1px solid #e9ecef;
}
.modal-header h2 {
margin: 0;
font-size: 1.25rem;
font-weight: 600;
color: #1a1a1a;
}
.modal-close-btn {
background: none;
border: none;
font-size: 1.5rem;
color: #666;
cursor: pointer;
padding: 0;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.2s ease;
}
.modal-close-btn:hover {
background: #f8f9fa;
color: #1a1a1a;
}
.modal-body {
padding: 2rem;
}
.modal-footer {
display: flex;
justify-content: flex-end;
gap: 1rem;
padding: 1.5rem 2rem;
border-top: 1px solid #e9ecef;
background: #f8f9fa;
}
/* 폼 스타일 */
.form-group {
margin-bottom: 1.5rem;
}
.form-label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: #1a1a1a;
font-size: 0.9rem;
}
.form-control {
width: 100%;
padding: 0.75rem;
border: 2px solid #e9ecef;
border-radius: 6px;
font-size: 0.9rem;
transition: all 0.2s ease;
}
.form-control:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.form-help {
display: block;
margin-top: 0.25rem;
font-size: 0.8rem;
color: #666;
}
/* 삭제 경고 */
.delete-warning {
text-align: center;
padding: 1rem 0;
}
.warning-icon {
font-size: 3rem;
margin-bottom: 1rem;
}
.delete-warning p {
margin-bottom: 0.5rem;
font-size: 1rem;
color: #1a1a1a;
}
.warning-text {
font-size: 0.9rem;
color: #dc3545;
font-weight: 500;
}
/* 버튼 스타일 */
.btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
border: none;
border-radius: 6px;
font-size: 0.9rem;
font-weight: 500;
text-decoration: none;
cursor: pointer;
transition: all 0.2s ease;
}
.btn-primary {
background: #007bff;
color: white;
}
.btn-primary:hover {
background: #0056b3;
transform: translateY(-1px);
}
.btn-secondary {
background: #6c757d;
color: white;
}
.btn-secondary:hover {
background: #545b62;
}
.btn-danger {
background: #dc3545;
color: white;
}
.btn-danger:hover {
background: #c82333;
}
.btn-icon {
font-size: 1rem;
}
/* 토스트 알림 */
.toast-container {
position: fixed;
top: 20px;
right: 20px;
z-index: 1100;
}
.toast {
background: white;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
padding: 1rem 1.5rem;
margin-bottom: 0.5rem;
display: flex;
align-items: center;
gap: 0.75rem;
min-width: 300px;
animation: slideIn 0.3s ease;
}
.toast.success {
border-left: 4px solid #28a745;
}
.toast.error {
border-left: 4px solid #dc3545;
}
.toast.warning {
border-left: 4px solid #ffc107;
}
.toast-icon {
font-size: 1.25rem;
}
.toast-message {
flex: 1;
font-size: 0.9rem;
color: #1a1a1a;
}
.toast-close {
background: none;
border: none;
font-size: 1.25rem;
color: #666;
cursor: pointer;
padding: 0;
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
/* 반응형 */
@media (max-width: 1024px) {
.dashboard-main {
padding: 1.5rem;
}
.users-header {
flex-direction: column;
align-items: stretch;
gap: 1rem;
}
.search-box {
max-width: none;
}
}
@media (max-width: 768px) {
.dashboard-main {
padding: 1rem;
}
.section-header {
flex-direction: column;
align-items: stretch;
gap: 1rem;
}
.users-table-container {
overflow-x: auto;
}
.users-table {
min-width: 600px;
}
.modal-container {
width: 95%;
margin: 1rem;
}
.modal-body {
padding: 1.5rem;
}
}
@media (max-width: 480px) {
.filter-buttons {
flex-wrap: wrap;
}
.action-buttons {
flex-direction: column;
}
}

View File

@@ -0,0 +1,50 @@
body {
font-family: 'Malgun Gothic', sans-serif;
margin: 0;
background: #f0f2f5;
}
.main-layout {
display: flex;
}
#sidebar-container {
width: 250px;
background: #1a237e;
color: white;
min-height: 100vh;
}
#content-container {
flex: 1;
padding: 30px;
}
h1, h2 {
color: #1976d2;
}
a {
color: #1976d2;
text-decoration: none;
}
/* Admin 권한 배지 스타일 */
.admin-badge {
background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
color: white;
font-size: 0.7rem;
font-weight: bold;
padding: 2px 6px;
border-radius: 10px;
margin-left: 8px;
text-transform: uppercase;
letter-spacing: 0.5px;
box-shadow: 0 2px 4px rgba(255,107,53,0.3);
display: inline-block;
vertical-align: middle;
}
.admin-only-link {
position: relative;
}
.admin-only-link:hover .admin-badge {
background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
box-shadow: 0 3px 6px rgba(255,107,53,0.4);
}

View File

@@ -0,0 +1,883 @@
/* 근태 검증 관리 시스템 - 개선된 스타일 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
color: #333;
line-height: 1.6;
min-height: 100vh;
}
/* 뒤로가기 버튼 */
.back-btn {
background: rgba(255,255,255,0.95);
color: #667eea;
border: 3px solid #667eea;
padding: 12px 24px;
border-radius: 12px;
text-decoration: none;
font-weight: 700;
font-size: 16px;
display: inline-flex;
align-items: center;
gap: 8px;
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);
}
/* 페이지 헤더 */
.page-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 16px;
padding: 2.5rem;
margin-bottom: 2rem;
box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
border: 1px solid rgba(255, 255, 255, 0.1);
}
/* 메인 카드 */
.main-card {
background: white;
border-radius: 16px;
padding: 2rem;
margin-bottom: 2rem;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(255, 255, 255, 0.8);
backdrop-filter: blur(10px);
transition: all 0.3s ease;
}
.main-card:hover {
transform: translateY(-2px);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.loading-card {
background: white;
border-radius: 16px;
padding: 3rem;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
text-align: center;
}
/* 캘린더 헤더 */
.calendar-header {
display: flex;
align-items: center;
justify-content: between;
margin-bottom: 2rem;
padding-bottom: 1rem;
border-bottom: 2px solid #f0f0f0;
}
.nav-btn {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
border-radius: 12px;
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}
.nav-btn:hover {
transform: translateY(-2px) scale(1.05);
box-shadow: 0 6px 24px rgba(102, 126, 234, 0.4);
}
/* 월간 요약 */
.summary-section {
margin-bottom: 2rem;
padding: 1.5rem;
background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
border-radius: 16px;
border: 1px solid rgba(102, 126, 234, 0.2);
}
.summary-title {
text-align: center;
font-size: 1.25rem;
font-weight: 700;
color: #333;
margin-bottom: 1rem;
}
.summary-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem;
}
.summary-card {
background: white;
border-radius: 12px;
padding: 1.5rem;
text-align: center;
transition: all 0.3s ease;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
border: 2px solid transparent;
}
.summary-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.summary-card.normal {
border-color: #10b981;
}
.summary-card.warning {
border-color: #f59e0b;
}
.summary-card.error {
border-color: #ef4444;
}
.summary-number {
font-size: 2rem;
font-weight: 800;
margin-bottom: 0.5rem;
}
.summary-card.normal .summary-number {
color: #10b981;
}
.summary-card.warning .summary-number {
color: #f59e0b;
}
.summary-card.error .summary-number {
color: #ef4444;
}
.summary-label {
font-size: 0.875rem;
font-weight: 600;
color: #666;
}
/* 요일 헤더 */
.weekday-header {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 0.5rem;
margin-bottom: 1rem;
}
.weekday {
padding: 1rem;
text-align: center;
font-size: 0.875rem;
font-weight: 700;
color: #64748b;
background: #f8fafc;
border-radius: 8px;
}
.weekday.sunday {
color: #ef4444;
}
.weekday.saturday {
color: #3b82f6;
}
/* 캘린더 그리드 */
.calendar-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 0.5rem;
margin-bottom: 2rem;
}
.calendar-day {
position: relative;
min-height: 80px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
background: white;
border: 2px solid #e2e8f0;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.calendar-day.hover-enabled:hover {
transform: translateY(-3px);
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
border-color: #3b82f6;
}
.calendar-day.selected {
transform: scale(1.05);
z-index: 10;
border-color: #3b82f6;
box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}
.calendar-day.loading-state {
background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
border-color: #3b82f6;
animation: loading-pulse 1.5s infinite;
}
@keyframes loading-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.calendar-day.error-state {
background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
border-color: #ef4444;
color: #991b1b;
}
.calendar-day.normal {
background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
border-color: #10b981;
color: #064e3b;
}
.calendar-day.needs-review {
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
border-color: #f59e0b;
color: #92400e;
}
.calendar-day.missing {
background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
border-color: #ef4444;
color: #991b1b;
}
.calendar-day.no-data {
background: #f9fafb;
border-color: #e5e7eb;
color: #9ca3af;
position: relative;
}
.calendar-day.no-data::after {
content: "클릭하여 확인";
position: absolute;
bottom: 4px;
font-size: 10px;
color: #6b7280;
opacity: 0;
transition: opacity 0.3s;
}
.calendar-day.no-data.hover-enabled:hover::after {
opacity: 1;
}
.status-dot {
position: absolute;
top: 8px;
right: 8px;
width: 12px;
height: 12px;
border-radius: 50%;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
transition: all 0.3s ease;
}
.status-dot.pulse {
animation: pulse 1s infinite;
}
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.2); }
}
.status-dot.normal {
background: #10b981;
}
.status-dot.warning {
background: #f59e0b;
}
.status-dot.error {
background: #ef4444;
}
/* 범례 */
.legend {
display: flex;
justify-content: center;
gap: 2rem;
flex-wrap: wrap;
}
.legend-item {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
font-weight: 600;
color: #64748b;
}
.legend-dot {
width: 16px;
height: 16px;
border-radius: 50%;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.legend-dot.normal {
background: #10b981;
}
.legend-dot.warning {
background: #f59e0b;
}
.legend-dot.error {
background: #ef4444;
}
/* 빈 상태 */
.empty-state {
text-align: center;
padding: 4rem 2rem;
}
.empty-icon {
font-size: 4rem;
margin-bottom: 1.5rem;
}
.empty-title {
font-size: 1.5rem;
font-weight: 700;
color: #374151;
margin-bottom: 1rem;
}
.empty-description {
color: #6b7280;
font-size: 1rem;
max-width: 500px;
margin: 0 auto;
}
/* 작업자 카드 */
.worker-card {
background: white;
border-radius: 16px;
padding: 1.5rem;
margin-bottom: 1.5rem;
border: 2px solid transparent;
transition: all 0.3s ease;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.worker-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.worker-card.normal {
background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
border-color: #10b981;
}
.worker-card.needs-review {
background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
border-color: #f59e0b;
}
.worker-card.missing {
background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
border-color: #ef4444;
}
.worker-header {
display: flex;
justify-content: between;
align-items: center;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}
.worker-info {
display: flex;
align-items: center;
gap: 1rem;
}
.worker-avatar {
width: 48px;
height: 48px;
background: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 1.25rem;
color: #374151;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.worker-name {
font-size: 1.25rem;
font-weight: 700;
color: #374151;
}
.worker-id {
font-size: 0.875rem;
color: #6b7280;
margin-top: 0.25rem;
}
.status-badge {
font-size: 1.5rem;
filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}
/* 데이터 행 */
.data-section {
background: rgba(255, 255, 255, 0.7);
border-radius: 12px;
padding: 1.5rem;
margin-bottom: 1rem;
}
.data-row {
display: flex;
justify-content: between;
align-items: center;
padding: 0.75rem 0;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.data-row:last-child {
border-bottom: none;
}
.data-label {
font-weight: 600;
color: #4b5563;
}
.data-value {
font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
font-weight: 700;
font-size: 1rem;
}
.difference-positive {
color: #dc2626;
background: rgba(220, 38, 38, 0.1);
padding: 0.25rem 0.75rem;
border-radius: 6px;
font-weight: 700;
}
.difference-negative {
color: #2563eb;
background: rgba(37, 99, 235, 0.1);
padding: 0.25rem 0.75rem;
border-radius: 6px;
font-weight: 700;
}
/* 버튼 */
.btn-primary {
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 12px;
font-weight: 700;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
}
.btn-secondary {
background: #6b7280;
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 12px;
font-weight: 700;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 16px rgba(107, 114, 128, 0.3);
}
.btn-secondary:hover {
background: #4b5563;
transform: translateY(-2px);
}
.edit-btn {
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.875rem;
width: 100%;
margin-top: 1rem;
}
.edit-btn:hover {
transform: translateY(-1px);
box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}
.delete-btn {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 6px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.75rem;
margin-left: 0.5rem;
}
.delete-btn:hover {
transform: translateY(-1px);
box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}
/* 필터 */
.filter-container {
display: flex;
justify-content: between;
align-items: center;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 2px solid #f0f0f0;
}
.filter-select {
background: white;
border: 2px solid #e5e7eb;
border-radius: 8px;
padding: 0.75rem 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.filter-select:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
/* 모달 */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.75);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
animation: fadeIn 0.3s ease;
}
.modal.hidden {
display: none;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.modal-content {
background: white;
border-radius: 20px;
width: 90%;
max-width: 500px;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
animation: slideIn 0.3s ease;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(-50px) scale(0.9);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.modal-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 1.5rem;
border-radius: 20px 20px 0 0;
display: flex;
justify-content: between;
align-items: center;
}
.modal-header h3 {
margin: 0;
font-size: 1.25rem;
font-weight: 700;
}
.close-btn {
background: rgba(255, 255, 255, 0.2);
color: white;
border: none;
border-radius: 50%;
width: 36px;
height: 36px;
cursor: pointer;
font-size: 1.25rem;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.close-btn:hover {
background: rgba(255, 255, 255, 0.3);
transform: rotate(90deg);
}
.modal-body {
padding: 1.5rem;
}
.modal-footer {
display: flex;
justify-content: flex-end;
gap: 1rem;
padding: 1.5rem;
border-top: 2px solid #f0f0f0;
background: #f8fafc;
border-radius: 0 0 20px 20px;
}
/* 폼 요소 */
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 700;
color: #374151;
font-size: 0.875rem;
}
.form-input {
width: 100%;
padding: 0.75rem 1rem;
border: 2px solid #e5e7eb;
border-radius: 8px;
font-size: 1rem;
transition: all 0.3s ease;
}
.form-input:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.form-textarea {
width: 100%;
padding: 0.75rem 1rem;
border: 2px solid #e5e7eb;
border-radius: 8px;
font-size: 1rem;
resize: vertical;
min-height: 80px;
transition: all 0.3s ease;
}
.form-textarea:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
/* 메시지 */
.message {
padding: 1rem 1.5rem;
border-radius: 12px;
margin-bottom: 1.5rem;
font-weight: 600;
border: 2px solid transparent;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.message.success {
background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
color: #065f46;
border-color: #10b981;
}
.message.error {
background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
color: #991b1b;
border-color: #ef4444;
}
.message.warning {
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
color: #92400e;
border-color: #f59e0b;
}
.message.loading {
background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
color: #1e40af;
border-color: #3b82f6;
}
/* 로딩 스피너 */
.loading-spinner {
width: 32px;
height: 32px;
border: 3px solid #e5e7eb;
border-top: 3px solid #3b82f6;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
/* 애니메이션 */
.fade-in {
animation: fadeInUp 0.5s ease-out;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* 반응형 디자인 */
@media (max-width: 768px) {
.summary-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
.calendar-day {
min-height: 60px;
font-size: 0.875rem;
}
.worker-header {
flex-direction: column;
gap: 1rem;
text-align: center;
}
.legend {
flex-direction: column;
gap: 1rem;
}
.modal-content {
width: 95%;
margin: 1rem;
}
.main-card {
padding: 1.5rem;
}
.page-header {
padding: 2rem;
}
}
@media (max-width: 480px) {
.calendar-day {
min-height: 50px;
font-size: 0.75rem;
}
.summary-card {
padding: 1rem;
}
.summary-number {
font-size: 1.5rem;
}
.worker-card {
padding: 1rem;
}
.modal-body, .modal-footer {
padding: 1rem;
}
}

View File

@@ -0,0 +1,72 @@
body {
font-family: Arial, sans-serif;
margin: 20px;
background: #f8f9fa;
}
h2 {
text-align: center;
color: #343a40;
}
.controls {
display: flex;
flex-wrap: wrap;
gap: 12px;
justify-content: center;
align-items: center;
margin-bottom: 16px;
}
.controls label {
font-weight: bold;
}
.controls select,
.controls button {
padding: 6px 10px;
border-radius: 4px;
border: 1px solid #ccc;
font-weight: bold;
cursor: pointer;
}
button#loadAttendance {
background-color: #4CAF50;
color: white;
border: none;
}
button#downloadPdf {
background-color: #007BFF;
color: white;
border: none;
}
#attendanceTableContainer {
max-height: 600px;
overflow: auto;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 10px;
font-size: 14px;
}
th, td {
border: 1px solid #ddd;
padding: 6px;
text-align: center;
background: white;
}
th {
background: #f2f2f2;
}
.divider {
border-left: 3px solid #333 !important;
}
tr.separator td {
border-bottom: 2px solid #999;
padding: 0;
height: 4px;
background: transparent;
}
.overtime-cell { background: #e9e5ff !important; }
.leave { background: #f5e0d6 !important; }
.holiday { background: #ffd6d6 !important; }
.paid-leave { background: #d6f0ff !important; }
.no-data { background: #ddd !important; }
.overtime-sum { background: #e9e5ff !important; }

View File

@@ -0,0 +1,259 @@
/* Common CSS - 공통 스타일 */
/* ========== 통일된 헤더 스타일 ========== */
.work-report-container {
min-height: 100vh;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.work-report-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
text-align: center;
padding: 3rem 2rem;
margin-bottom: 0;
}
.work-report-header h1 {
font-size: 2.5rem;
font-weight: 700;
margin: 0 0 1rem 0;
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.work-report-header .subtitle {
font-size: 1.1rem;
opacity: 0.9;
margin: 0;
font-weight: 300;
}
.work-report-main {
background: #f8f9fa;
min-height: calc(100vh - 200px);
padding-top: 2rem;
}
.back-button {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
background: rgba(255, 255, 255, 0.9);
color: #495057;
text-decoration: none;
border-radius: 8px;
font-weight: 500;
margin: 0 2rem 2rem 2rem;
transition: all 0.3s ease;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.back-button:hover {
background: white;
color: #007bff;
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
/* Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f8fafc;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
line-height: 1.25;
margin-bottom: 0.5rem;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }
/* ========== 헤더 액션 버튼 ========== */
.header-actions {
display: flex;
align-items: center;
gap: 1rem;
margin-right: 1rem;
}
.dashboard-btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.6rem 1.2rem;
background: rgba(255, 255, 255, 0.15);
color: white;
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 8px;
font-size: 0.9rem;
font-weight: 500;
text-decoration: none;
cursor: pointer;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
}
.dashboard-btn:hover {
background: rgba(255, 255, 255, 0.25);
border-color: rgba(255, 255, 255, 0.5);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.dashboard-btn .btn-icon {
font-size: 1rem;
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.5rem 1rem;
border: none;
border-radius: 0.375rem;
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
text-decoration: none;
}
.btn-primary {
background-color: #3b82f6;
color: white;
}
.btn-primary:hover {
background-color: #2563eb;
}
.btn-secondary {
background-color: #6b7280;
color: white;
}
.btn-secondary:hover {
background-color: #4b5563;
}
/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
/* Container */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}
/* Cards */
.card {
background: white;
border-radius: 0.5rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
border: 1px solid #e5e7eb;
}
.card-header {
padding: 1rem;
border-bottom: 1px solid #e5e7eb;
}
.card-body {
padding: 1rem;
}
/* Forms */
.form-group {
margin-bottom: 1rem;
}
.form-label {
display: block;
font-weight: 500;
margin-bottom: 0.25rem;
color: #374151;
}
.form-control {
width: 100%;
padding: 0.5rem 0.75rem;
border: 1px solid #d1d5db;
border-radius: 0.375rem;
font-size: 0.875rem;
transition: border-color 0.2s ease;
}
.form-control:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
/* Loading */
.loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid #f3f3f3;
border-top: 3px solid #3b82f6;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Responsive */
@media (max-width: 768px) {
.container {
padding: 0 0.5rem;
}
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.125rem; }
}

View File

@@ -0,0 +1,90 @@
/* /css/daily-issue.css */
body {
font-family: Arial, sans-serif;
background: #f5f7fa;
margin: 0;
padding: 40px 20px;
}
.container {
max-width: 500px;
margin: auto;
background: #fff;
border-radius: 12px;
box-shadow: 0 0 10px rgba(0,0,0,0.05);
padding: 32px;
}
h2 {
text-align: center;
color: #333;
margin-bottom: 24px;
}
label {
display: block;
margin-top: 20px;
font-weight: bold;
color: #333;
}
select, input[type="date"], button {
width: 100%;
padding: 10px;
margin-top: 6px;
border: 1px solid #ccc;
border-radius: 6px;
box-sizing: border-box;
font-size: 1rem;
}
button#submitBtn {
margin-top: 30px;
background: #1976d2;
color: white;
border: none;
font-size: 1rem;
border-radius: 6px;
cursor: pointer;
transition: background 0.2s;
}
button#submitBtn:hover {
background: #125cb1;
}
.multi-select-box {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 8px;
}
.multi-select-box .btn {
flex: 1 0 30%;
padding: 8px;
border: 1px solid #1976d2;
border-radius: 4px;
background: white;
color: #1976d2;
text-align: center;
cursor: pointer;
transition: background 0.2s, color 0.2s;
}
.multi-select-box .btn.selected {
background: #1976d2;
color: white;
}
.time-range {
display: flex;
gap: 8px;
align-items: center;
margin-top: 6px;
}
.time-range select {
flex: 1;
}

View File

@@ -0,0 +1,548 @@
/* daily-report-viewer.css */
/* 전체 레이아웃 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
color: #333;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
min-height: 100vh;
}
/* 헤더 */
.page-header {
text-align: center;
margin-bottom: 30px;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 20px;
padding: 30px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.page-header h1 {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 10px;
background: linear-gradient(135deg, #667eea, #764ba2);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.subtitle {
color: #666;
font-size: 1.1rem;
font-weight: 400;
}
/* 날짜 선택기 */
.date-selector {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 25px;
margin-bottom: 30px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.date-input-group {
display: flex;
align-items: center;
gap: 15px;
flex-wrap: wrap;
justify-content: center;
}
.date-input-group label {
font-weight: 600;
color: #333;
font-size: 1.1rem;
}
.date-input {
padding: 12px 16px;
border: 2px solid #e1e5e9;
border-radius: 10px;
font-size: 1rem;
transition: all 0.3s ease;
background: white;
min-width: 150px;
}
.date-input:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.search-btn, .today-btn {
padding: 12px 24px;
border: none;
border-radius: 10px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.search-btn {
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
}
.search-btn:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}
.today-btn {
background: #f8f9fa;
color: #667eea;
border: 2px solid #667eea;
}
.today-btn:hover {
background: #667eea;
color: white;
}
/* 로딩 스피너 */
.loading-spinner {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 50px;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 15px;
margin: 30px 0;
}
.spinner {
width: 50px;
height: 50px;
border: 4px solid #f3f3f3;
border-top: 4px solid #667eea;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: 15px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loading-spinner p {
color: #666;
font-size: 1.1rem;
}
/* 에러 메시지 */
.error-message {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 25px;
margin: 30px 0;
border-left: 5px solid #e74c3c;
}
.error-content {
display: flex;
align-items: center;
gap: 12px;
}
.error-icon {
font-size: 1.5rem;
}
.error-text {
color: #e74c3c;
font-weight: 600;
font-size: 1.1rem;
}
/* 데이터 없음 메시지 */
.no-data-message {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 50px;
text-align: center;
margin: 30px 0;
}
.no-data-content {
color: #666;
}
.no-data-icon {
font-size: 3rem;
display: block;
margin-bottom: 20px;
}
.no-data-content h3 {
font-size: 1.5rem;
margin-bottom: 10px;
color: #333;
}
/* 요약 카드 */
.report-summary {
margin-bottom: 30px;
}
.summary-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.summary-card {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 25px;
text-align: center;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.summary-card:hover {
transform: translateY(-5px);
}
.summary-card.error-card {
border-left: 5px solid #e74c3c;
}
.card-header {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
margin-bottom: 15px;
}
.card-icon {
font-size: 1.5rem;
}
.card-title {
font-weight: 600;
color: #666;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.card-value {
font-size: 2rem;
font-weight: 700;
color: #333;
}
.error-card .card-value {
color: #e74c3c;
}
/* 작업자 리포트 */
.workers-report {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 30px;
margin-bottom: 30px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.section-title {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 25px;
color: #333;
border-bottom: 3px solid #667eea;
padding-bottom: 10px;
}
.workers-list {
display: flex;
flex-direction: column;
gap: 20px;
}
.worker-card {
background: #f8f9fa;
border-radius: 12px;
padding: 20px;
border-left: 5px solid #667eea;
transition: all 0.3s ease;
}
.worker-card:hover {
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
transform: translateX(5px);
}
.worker-header {
display: flex;
justify-content: between;
align-items: center;
margin-bottom: 15px;
flex-wrap: wrap;
gap: 10px;
}
.worker-name {
font-size: 1.3rem;
font-weight: 700;
color: #333;
display: flex;
align-items: center;
gap: 8px;
}
.worker-total-hours {
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
padding: 8px 16px;
border-radius: 20px;
font-weight: 600;
font-size: 0.9rem;
}
.work-entries {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 15px;
}
.work-entry {
background: white;
border-radius: 8px;
padding: 15px;
border: 1px solid #e1e5e9;
transition: all 0.3s ease;
}
.work-entry:hover {
border-color: #667eea;
box-shadow: 0 3px 10px rgba(102, 126, 234, 0.1);
}
.work-entry.error-entry {
border-left: 4px solid #e74c3c;
background: #fff5f5;
}
.entry-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.project-name {
font-weight: 600;
color: #333;
font-size: 1rem;
}
.work-hours {
background: #e8f4f8;
color: #2c5aa0;
padding: 4px 12px;
border-radius: 15px;
font-weight: 600;
font-size: 0.9rem;
}
.work-entry.error-entry .work-hours {
background: #ffebee;
color: #c62828;
}
.entry-details {
display: flex;
flex-direction: column;
gap: 5px;
font-size: 0.9rem;
color: #666;
}
.entry-detail {
display: flex;
justify-content: space-between;
align-items: center;
}
.detail-label {
font-weight: 500;
}
.detail-value {
color: #333;
}
.error-type {
color: #e74c3c;
font-weight: 600;
}
/* 내보내기 섹션 */
.export-section {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 25px;
text-align: center;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.export-section h3 {
font-size: 1.3rem;
font-weight: 700;
margin-bottom: 20px;
color: #333;
}
.export-buttons {
display: flex;
justify-content: center;
gap: 15px;
flex-wrap: wrap;
}
.export-btn {
padding: 12px 24px;
border: none;
border-radius: 10px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 8px;
}
.excel-btn {
background: #217346;
color: white;
}
.excel-btn:hover {
background: #1a5a37;
transform: translateY(-2px);
}
.print-btn {
background: #495057;
color: white;
}
.print-btn:hover {
background: #343a40;
transform: translateY(-2px);
}
/* 반응형 디자인 */
@media (max-width: 768px) {
.container {
padding: 15px;
}
.page-header {
padding: 20px;
}
.page-header h1 {
font-size: 2rem;
}
.date-input-group {
flex-direction: column;
align-items: stretch;
}
.date-input-group > * {
width: 100%;
text-align: center;
}
.summary-cards {
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
}
.work-entries {
grid-template-columns: 1fr;
}
.worker-header {
flex-direction: column;
align-items: flex-start;
}
.export-buttons {
flex-direction: column;
}
}
/* 인쇄 스타일 */
@media print {
body {
background: white;
}
.container {
max-width: none;
margin: 0;
padding: 20px;
}
.date-selector,
.export-section {
display: none;
}
.summary-card,
.workers-report,
.worker-card,
.work-entry {
background: white !important;
box-shadow: none !important;
border: 1px solid #ddd !important;
}
.page-header {
background: white !important;
box-shadow: none !important;
border-bottom: 2px solid #333;
}
.page-header h1 {
color: #333 !important;
-webkit-text-fill-color: #333 !important;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,452 @@
/* ✅ design-system.css - 한글 기반 모던 디자인 시스템 */
/* ========== 색상 시스템 ========== */
:root {
/* 주요 브랜드 색상 */
--primary-50: #e3f2fd;
--primary-100: #bbdefb;
--primary-200: #90caf9;
--primary-300: #64b5f6;
--primary-400: #42a5f5;
--primary-500: #2196f3;
--primary-600: #1e88e5;
--primary-700: #1976d2;
--primary-800: #1565c0;
--primary-900: #0d47a1;
/* 보조 색상 */
--secondary-50: #f3e5f5;
--secondary-100: #e1bee7;
--secondary-200: #ce93d8;
--secondary-300: #ba68c8;
--secondary-400: #ab47bc;
--secondary-500: #9c27b0;
--secondary-600: #8e24aa;
--secondary-700: #7b1fa2;
--secondary-800: #6a1b9a;
--secondary-900: #4a148c;
/* 그레이 스케일 */
--gray-50: #fafafa;
--gray-100: #f5f5f5;
--gray-200: #eeeeee;
--gray-300: #e0e0e0;
--gray-400: #bdbdbd;
--gray-500: #9e9e9e;
--gray-600: #757575;
--gray-700: #616161;
--gray-800: #424242;
--gray-900: #212121;
/* 상태 색상 */
--success-50: #e8f5e8;
--success-500: #4caf50;
--success-700: #388e3c;
--warning-50: #fff8e1;
--warning-500: #ff9800;
--warning-700: #f57c00;
--error-50: #ffebee;
--error-500: #f44336;
--error-700: #d32f2f;
--info-50: #e1f5fe;
--info-500: #03a9f4;
--info-700: #0288d1;
/* 배경 색상 */
--bg-primary: #ffffff;
--bg-secondary: #f8fafc;
--bg-tertiary: #f1f5f9;
--bg-overlay: rgba(0, 0, 0, 0.5);
/* 텍스트 색상 */
--text-primary: #1a202c;
--text-secondary: #4a5568;
--text-tertiary: #718096;
--text-inverse: #ffffff;
/* 경계선 */
--border-light: #e2e8f0;
--border-medium: #cbd5e0;
--border-dark: #a0aec0;
/* 그림자 */
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
/* 반경 */
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-xl: 16px;
--radius-full: 9999px;
/* 간격 */
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-5: 20px;
--space-6: 24px;
--space-8: 32px;
--space-10: 40px;
--space-12: 48px;
--space-16: 64px;
--space-20: 80px;
--space-24: 96px;
/* 폰트 크기 */
--text-xs: 12px;
--text-sm: 14px;
--text-base: 16px;
--text-lg: 18px;
--text-xl: 20px;
--text-2xl: 24px;
--text-3xl: 30px;
--text-4xl: 36px;
--text-5xl: 48px;
/* 폰트 두께 */
--font-light: 300;
--font-normal: 400;
--font-medium: 500;
--font-semibold: 600;
--font-bold: 700;
--font-extrabold: 800;
/* 애니메이션 */
--transition-fast: 150ms ease-in-out;
--transition-normal: 250ms ease-in-out;
--transition-slow: 350ms ease-in-out;
}
/* ========== 기본 리셋 ========== */
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
font-family: 'Pretendard', 'Malgun Gothic', 'Apple SD Gothic Neo', system-ui, sans-serif;
font-size: var(--text-base);
line-height: 1.6;
color: var(--text-primary);
background-color: var(--bg-secondary);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* ========== 타이포그래피 ========== */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-inverse { color: var(--text-inverse); }
/* ========== 카드 컴포넌트 ========== */
.card {
background: var(--bg-primary);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
border: 1px solid var(--border-light);
transition: var(--transition-normal);
}
.card:hover {
box-shadow: var(--shadow-md);
transform: translateY(-1px);
}
.card-header {
padding: var(--space-6);
border-bottom: 1px solid var(--border-light);
}
.card-body {
padding: var(--space-6);
}
.card-footer {
padding: var(--space-6);
border-top: 1px solid var(--border-light);
background: var(--bg-tertiary);
border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
/* ========== 버튼 컴포넌트 ========== */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
padding: var(--space-3) var(--space-4);
font-size: var(--text-sm);
font-weight: var(--font-medium);
border-radius: var(--radius-md);
border: none;
cursor: pointer;
transition: var(--transition-fast);
text-decoration: none;
white-space: nowrap;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-primary {
background: var(--primary-500);
color: var(--text-inverse);
}
.btn-primary:hover:not(:disabled) {
background: var(--primary-600);
transform: translateY(-1px);
box-shadow: var(--shadow-md);
}
.btn-secondary {
background: var(--gray-100);
color: var(--text-primary);
border: 1px solid var(--border-medium);
}
.btn-secondary:hover:not(:disabled) {
background: var(--gray-200);
}
.btn-success {
background: var(--success-500);
color: var(--text-inverse);
}
.btn-success:hover:not(:disabled) {
background: var(--success-700);
}
.btn-warning {
background: var(--warning-500);
color: var(--text-inverse);
}
.btn-warning:hover:not(:disabled) {
background: var(--warning-700);
}
.btn-error {
background: var(--error-500);
color: var(--text-inverse);
}
.btn-error:hover:not(:disabled) {
background: var(--error-700);
}
.btn-sm {
padding: var(--space-2) var(--space-3);
font-size: var(--text-xs);
}
.btn-lg {
padding: var(--space-4) var(--space-6);
font-size: var(--text-lg);
}
/* ========== 배지 컴포넌트 ========== */
.badge {
display: inline-flex;
align-items: center;
gap: var(--space-1);
padding: var(--space-1) var(--space-2);
font-size: var(--text-xs);
font-weight: var(--font-medium);
border-radius: var(--radius-full);
white-space: nowrap;
}
.badge-primary {
background: var(--primary-100);
color: var(--primary-800);
}
.badge-success {
background: var(--success-50);
color: var(--success-700);
}
.badge-warning {
background: var(--warning-50);
color: var(--warning-700);
}
.badge-error {
background: var(--error-50);
color: var(--error-700);
}
.badge-gray {
background: var(--gray-100);
color: var(--gray-700);
}
/* ========== 상태 표시기 ========== */
.status-dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: var(--radius-full);
margin-right: var(--space-2);
}
.status-dot.active {
background: var(--success-500);
box-shadow: 0 0 0 2px var(--success-100);
}
.status-dot.inactive {
background: var(--gray-400);
}
.status-dot.warning {
background: var(--warning-500);
box-shadow: 0 0 0 2px var(--warning-100);
}
.status-dot.error {
background: var(--error-500);
box-shadow: 0 0 0 2px var(--error-100);
}
/* ========== 그리드 시스템 ========== */
.grid {
display: grid;
gap: var(--space-6);
}
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
.grid-cols-2,
.grid-cols-3,
.grid-cols-4 {
grid-template-columns: 1fr;
}
}
/* ========== 플렉스 유틸리티 ========== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
/* ========== 간격 유틸리티 ========== */
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
/* ========== 반응형 유틸리티 ========== */
@media (max-width: 640px) {
.sm\:hidden { display: none; }
.sm\:text-sm { font-size: var(--text-sm); }
.sm\:p-4 { padding: var(--space-4); }
}
@media (max-width: 768px) {
.md\:hidden { display: none; }
.md\:flex-col { flex-direction: column; }
}
@media (max-width: 1024px) {
.lg\:hidden { display: none; }
}
/* ========== 애니메이션 ========== */
.fade-in {
animation: fadeIn var(--transition-normal) ease-in-out;
}
.slide-up {
animation: slideUp var(--transition-normal) ease-out;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* ========== 로딩 스피너 ========== */
.spinner {
width: 20px;
height: 20px;
border: 2px solid var(--gray-200);
border-top: 2px solid var(--primary-500);
border-radius: var(--radius-full);
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

View File

@@ -0,0 +1,61 @@
body {
font-family: 'Segoe UI', sans-serif;
background-color: #f9f9f9;
margin: 0;
padding: 0;
}
.container {
max-width: 600px;
margin: 50px auto;
background: #fff;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
padding: 30px;
}
h2 {
text-align: center;
margin-bottom: 20px;
color: #333;
}
form label {
display: block;
margin-bottom: 6px;
font-weight: bold;
color: #444;
}
form input[type="text"],
form input[type="file"],
form textarea {
width: 100%;
padding: 10px;
margin-bottom: 16px;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 14px;
box-sizing: border-box;
}
form textarea {
resize: vertical;
min-height: 100px;
}
button {
width: 100%;
background-color: #007bff;
color: white;
border: none;
padding: 12px;
font-size: 16px;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #0056b3;
}

View File

@@ -0,0 +1,54 @@
body {
margin: 0;
padding: 0;
background: url('/img/login-bg.jpeg') no-repeat center center fixed;
background-size: cover;
font-family: 'Malgun Gothic', sans-serif;
}
.login-container {
background: rgba(0, 0, 0, 0.65);
width: 400px;
padding: 40px;
margin: 100px auto;
border-radius: 12px;
text-align: center;
color: white;
box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.logo {
width: 200px;
margin-bottom: 20px;
}
input {
display: block;
width: 100%;
margin: 15px 0;
padding: 12px;
font-size: 1rem;
border-radius: 6px;
border: none;
}
button {
padding: 12px 20px;
font-size: 1rem;
cursor: pointer;
border: none;
background-color: #1976d2;
color: white;
border-radius: 6px;
transition: background-color 0.3s;
}
button:hover {
background-color: #1565c0;
}
.error-message {
margin-top: 10px;
color: #ff6b6b;
font-weight: bold;
}

View File

@@ -0,0 +1,160 @@
/* ✅ /css/main-layout.css - 공통 레이아웃 스타일 */
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
background-color: #f5f5f5;
}
/* 메인 레이아웃 구조 */
.main-layout {
display: flex;
min-height: 100vh;
flex-direction: column;
}
#navbar-container {
position: sticky;
top: 0;
z-index: 1000;
}
.content-wrapper {
display: flex;
flex: 1;
}
#sidebar-container {
flex-shrink: 0;
}
#content-container,
#sections-container,
#admin-sections,
#user-sections {
flex: 1;
padding: 24px;
max-width: 1200px;
margin: 0 auto;
width: 100%;
}
/* 카드 스타일 */
.card {
background: white;
border-radius: 8px;
padding: 24px;
margin-bottom: 24px;
box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
/* 섹션 스타일 */
section {
background: white;
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
section h2 {
font-size: 18px;
margin: 0 0 16px 0;
color: #333;
border-bottom: 2px solid #1976d2;
padding-bottom: 8px;
}
section ul {
list-style: none;
padding: 0;
margin: 0;
}
section li {
padding: 8px 0;
border-bottom: 1px solid #f0f0f0;
}
section li:last-child {
border-bottom: none;
}
section a {
color: #1976d2;
text-decoration: none;
display: block;
padding: 4px 0;
transition: all 0.3s;
}
section a:hover {
color: #0d47a1;
padding-left: 8px;
}
/* 로딩 상태 */
.loading {
text-align: center;
padding: 60px 20px;
color: #666;
}
.loading::after {
content: '.';
animation: dots 1.5s steps(3, end) infinite;
}
@keyframes dots {
0%, 20% { content: '.'; }
40% { content: '..'; }
60%, 100% { content: '...'; }
}
/* 에러 상태 */
.error-state {
text-align: center;
padding: 60px 20px;
color: #d32f2f;
}
.error-state button {
margin-top: 16px;
padding: 8px 24px;
background: #1976d2;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
.error-state button:hover {
background: #1565c0;
}
/* 반응형 디자인 */
@media (max-width: 1024px) {
#content-container,
#sections-container {
padding: 16px;
}
}
@media (max-width: 768px) {
.content-wrapper {
flex-direction: column;
}
#sidebar-container {
order: -1;
}
section h2 {
font-size: 16px;
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,953 @@
/* 시스템 대시보드 전용 스타일 */
/* 시스템 대시보드 배경 - 깔끔한 흰색 */
.main-layout .content-wrapper {
background: #ffffff;
min-height: calc(100vh - 80px);
padding: 0;
border-left: 1px solid #e0e0e0;
}
/* 시스템 관리자 배너 */
.system-banner {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 2rem;
margin-bottom: 2rem;
position: relative;
overflow: hidden;
}
.system-banner::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
opacity: 0.3;
}
.banner-content {
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
z-index: 1;
}
.banner-left {
display: flex;
align-items: center;
gap: 1.5rem;
}
.system-icon {
font-size: 3rem;
background: rgba(255,255,255,0.2);
padding: 1rem;
border-radius: 50%;
backdrop-filter: blur(10px);
border: 2px solid rgba(255,255,255,0.3);
}
.banner-text h1 {
margin: 0 0 0.5rem 0;
font-size: 2.2rem;
font-weight: 700;
text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.banner-text p {
margin: 0;
font-size: 1.1rem;
opacity: 0.9;
font-weight: 300;
}
.banner-right {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 1rem;
}
.system-status {
display: flex;
align-items: center;
gap: 0.5rem;
background: rgba(255,255,255,0.15);
padding: 0.5rem 1rem;
border-radius: 20px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255,255,255,0.2);
}
.quick-actions {
display: flex;
gap: 0.5rem;
}
.quick-btn {
background: rgba(255,255,255,0.2);
border: 1px solid rgba(255,255,255,0.3);
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
font-size: 1.2rem;
}
.quick-btn:hover {
background: rgba(255,255,255,0.3);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
animation: pulse 2s infinite;
}
.status-dot.online {
background: #2ecc71;
box-shadow: 0 0 10px rgba(46,204,113,0.5);
}
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}
/* 메인 컨텐츠 패딩 조정 */
.main-content {
padding: 0 2rem 2rem 2rem;
}
/* 반응형 배너 */
@media (max-width: 768px) {
.system-banner {
padding: 1.5rem;
}
.banner-content {
flex-direction: column;
gap: 1.5rem;
text-align: center;
}
.banner-left {
flex-direction: column;
gap: 1rem;
}
.system-icon {
font-size: 2.5rem;
padding: 0.8rem;
}
.banner-text h1 {
font-size: 1.8rem;
}
.banner-text p {
font-size: 1rem;
}
.banner-right {
align-items: center;
}
.main-content {
padding: 0 1rem 2rem 1rem;
}
}
.page-header {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 2rem;
color: #333;
border-bottom: 2px solid #f0f0f0;
padding-bottom: 1rem;
}
.page-header h1 {
margin: 0;
font-size: 1.8rem;
font-weight: 500;
color: #2c3e50;
}
/* 시스템 배지 */
.system-badge {
background: #e74c3c;
color: white;
padding: 0.2rem 0.6rem;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
border: 1px solid #c0392b;
}
.header-right {
display: flex;
align-items: center;
}
.user-info {
display: flex;
align-items: center;
gap: 1rem;
}
.logout-btn {
background: #e74c3c;
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 8px;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.3s ease;
}
.logout-btn:hover {
background: #c0392b;
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}
/* 메인 컨텐츠 */
.main-content {
max-width: 1200px;
margin: 0 auto;
padding: 0;
display: flex;
flex-direction: column;
gap: 2rem;
width: 100%;
}
/* 시스템 상태 개요 */
.system-overview {
margin-bottom: 2rem;
}
.system-overview h2 {
color: #2c3e50;
margin-bottom: 1.5rem;
font-size: 1.4rem;
font-weight: 500;
display: flex;
align-items: center;
gap: 0.5rem;
border-bottom: 1px solid #ecf0f1;
padding-bottom: 0.5rem;
}
.status-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1rem;
margin-bottom: 2rem;
}
.status-card {
background: #ffffff;
border: 1px solid #e0e0e0;
border-radius: 8px;
padding: 1.5rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: box-shadow 0.2s ease;
}
.status-card:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.status-icon {
width: 60px;
height: 60px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
background: linear-gradient(45deg, #3498db, #2980b9);
color: white;
}
.status-info h3 {
margin: 0 0 0.5rem 0;
color: #2c3e50;
font-size: 1rem;
font-weight: 500;
}
.status-value {
font-size: 1.3rem;
font-weight: 600;
margin: 0.5rem 0;
}
.status-value.online {
color: #27ae60;
}
.status-value.warning {
color: #f39c12;
}
.status-value.error {
color: #e74c3c;
}
.status-info small {
color: #7f8c8d;
font-size: 0.85rem;
}
/* 관리 섹션 */
.management-section {
margin-bottom: 2rem;
}
.management-section h2 {
color: #2c3e50;
margin-bottom: 1.5rem;
font-size: 1.4rem;
font-weight: 500;
display: flex;
align-items: center;
gap: 0.5rem;
border-bottom: 1px solid #ecf0f1;
padding-bottom: 0.5rem;
}
.management-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1rem;
}
.management-card {
background: #ffffff;
border: 1px solid #e0e0e0;
border-radius: 8px;
padding: 1.5rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: box-shadow 0.2s ease;
display: flex;
flex-direction: column;
height: 100%;
}
.management-card:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.management-card.primary {
border-left: 4px solid #3498db;
}
.card-header {
display: flex;
align-items: center;
gap: 0.8rem;
margin-bottom: 1rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid #f0f0f0;
}
.card-header i {
font-size: 1.2rem;
color: #3498db;
}
.card-header h3 {
margin: 0;
color: #2c3e50;
font-size: 1.1rem;
font-weight: 500;
}
.card-content {
display: flex;
flex-direction: column;
height: 100%;
}
.card-content p {
color: #7f8c8d;
margin-bottom: 1.5rem;
line-height: 1.5;
font-size: 0.9rem;
flex: 1;
}
.card-actions {
display: flex;
gap: 0.8rem;
margin-top: auto;
}
.btn {
padding: 0.6rem 1rem;
border: 1px solid #ddd;
border-radius: 4px;
cursor: pointer;
font-size: 0.9rem;
font-weight: 500;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 0.5rem;
background: #ffffff;
text-decoration: none;
}
.btn-primary {
background: #3498db;
color: white;
border-color: #2980b9;
}
.btn-primary:hover {
background: #2980b9;
}
.btn-secondary {
background: #95a5a6;
color: white;
border-color: #7f8c8d;
}
.btn-secondary:hover {
background: #7f8c8d;
}
/* 최근 활동 */
.recent-activity {
margin-bottom: 2rem;
}
.recent-activity h2 {
color: white;
margin-bottom: 1.5rem;
font-size: 1.8rem;
font-weight: 600;
display: flex;
align-items: center;
gap: 0.5rem;
}
.activity-container {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 16px;
padding: 1.5rem;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.activity-list {
max-height: 400px;
overflow-y: auto;
}
.activity-item {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
transition: background-color 0.3s ease;
}
.activity-item:hover {
background: rgba(52, 152, 219, 0.05);
}
.activity-item:last-child {
border-bottom: none;
}
.activity-icon {
width: 40px;
height: 40px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(45deg, #3498db, #2980b9);
color: white;
font-size: 1rem;
}
.activity-info h4 {
margin: 0 0 0.3rem 0;
color: #2c3e50;
font-size: 1rem;
font-weight: 600;
}
.activity-info p {
margin: 0;
color: #7f8c8d;
font-size: 0.9rem;
}
.activity-time {
margin-left: auto;
color: #95a5a6;
font-size: 0.8rem;
}
/* 모달 */
.modal {
display: none;
position: fixed;
z-index: 2000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(5px);
}
.modal-content {
background: white;
margin: 5% auto;
padding: 0;
border-radius: 16px;
width: 90%;
max-width: 800px;
max-height: 80vh;
overflow: hidden;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.modal-header {
background: linear-gradient(45deg, #3498db, #2980b9);
color: white;
padding: 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.modal-header h3 {
margin: 0;
font-size: 1.3rem;
font-weight: 600;
}
.close-btn {
background: none;
border: none;
color: white;
font-size: 1.5rem;
cursor: pointer;
padding: 0;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: background-color 0.3s ease;
}
.close-btn:hover {
background: rgba(255, 255, 255, 0.2);
}
.modal-body {
padding: 2rem;
max-height: 60vh;
overflow-y: auto;
}
/* 반응형 디자인 */
@media (max-width: 1200px) {
.status-grid {
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.management-grid {
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
}
@media (max-width: 768px) {
.main-layout .content-wrapper {
padding: 1rem;
}
.page-header {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
}
.page-header h1 {
font-size: 1.5rem;
}
.status-grid,
.management-grid {
grid-template-columns: 1fr;
gap: 0.8rem;
}
.status-card,
.management-card {
padding: 1rem;
}
.modal-content {
width: 95%;
margin: 5% auto;
}
.system-overview h2,
.management-section h2,
.recent-activity h2 {
font-size: 1.2rem;
}
}
@media (max-width: 480px) {
.main-layout .content-wrapper {
padding: 0.5rem;
}
.status-card,
.management-card {
padding: 0.8rem;
}
.btn {
padding: 0.5rem 0.8rem;
font-size: 0.8rem;
}
}
/* 계정 관리 스타일 */
.account-management {
padding: 1rem;
}
.account-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 2px solid #ecf0f1;
}
.account-header h4 {
margin: 0;
color: #2c3e50;
font-size: 1.3rem;
font-weight: 600;
}
.account-filters {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
}
.account-filters input,
.account-filters select {
padding: 0.7rem;
border: 2px solid #ecf0f1;
border-radius: 8px;
font-size: 0.9rem;
transition: border-color 0.3s ease;
}
.account-filters input:focus,
.account-filters select:focus {
outline: none;
border-color: #3498db;
}
.users-table {
overflow-x: auto;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.users-table table {
width: 100%;
border-collapse: collapse;
background: white;
}
.users-table th,
.users-table td {
padding: 1rem;
text-align: left;
border-bottom: 1px solid #ecf0f1;
}
.users-table th {
background: linear-gradient(45deg, #3498db, #2980b9);
color: white;
font-weight: 600;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.users-table tr:hover {
background: rgba(52, 152, 219, 0.05);
}
.role-badge {
padding: 0.3rem 0.8rem;
border-radius: 20px;
font-size: 0.75rem;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.role-badge.role-system {
background: linear-gradient(45deg, #e74c3c, #c0392b);
color: white;
}
.role-badge.role-admin {
background: linear-gradient(45deg, #f39c12, #e67e22);
color: white;
}
.role-badge.role-leader {
background: linear-gradient(45deg, #9b59b6, #8e44ad);
color: white;
}
.role-badge.role-user {
background: linear-gradient(45deg, #95a5a6, #7f8c8d);
color: white;
}
.status-badge {
padding: 0.3rem 0.8rem;
border-radius: 20px;
font-size: 0.75rem;
font-weight: bold;
text-transform: uppercase;
}
.status-badge.active {
background: linear-gradient(45deg, #27ae60, #2ecc71);
color: white;
}
.status-badge.inactive {
background: linear-gradient(45deg, #e74c3c, #c0392b);
color: white;
}
.action-buttons {
display: flex;
gap: 0.5rem;
}
.btn-small {
padding: 0.4rem 0.6rem;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 0.8rem;
transition: all 0.3s ease;
}
.btn-edit {
background: linear-gradient(45deg, #3498db, #2980b9);
color: white;
}
.btn-edit:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}
.btn-delete {
background: linear-gradient(45deg, #e74c3c, #c0392b);
color: white;
}
.btn-delete:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}
.loading-spinner {
text-align: center;
padding: 3rem;
color: #7f8c8d;
}
.loading-spinner i {
font-size: 2rem;
margin-bottom: 1rem;
}
.error-message {
text-align: center;
padding: 3rem;
color: #e74c3c;
}
.error-message i {
font-size: 3rem;
margin-bottom: 1rem;
}
.error-message p {
margin: 1rem 0;
font-size: 1.1rem;
}
/* 알림 스타일 */
.notification {
position: fixed;
top: 20px;
right: 20px;
padding: 1rem 1.5rem;
border-radius: 8px;
color: white;
font-weight: 500;
z-index: 3000;
animation: slideIn 0.3s ease;
}
.notification-info {
background: linear-gradient(45deg, #3498db, #2980b9);
}
.notification-success {
background: linear-gradient(45deg, #27ae60, #2ecc71);
}
.notification-warning {
background: linear-gradient(45deg, #f39c12, #e67e22);
}
.notification-error {
background: linear-gradient(45deg, #e74c3c, #c0392b);
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
/* 사용자 폼 스타일 */
.user-edit-form,
.user-create-form {
padding: 1.5rem;
}
.user-edit-form h4,
.user-create-form h4 {
margin: 0 0 2rem 0;
color: #2c3e50;
font-size: 1.3rem;
font-weight: 600;
display: flex;
align-items: center;
gap: 0.5rem;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
color: #2c3e50;
font-weight: 500;
font-size: 0.9rem;
}
.form-group input,
.form-group select {
width: 100%;
padding: 0.8rem;
border: 2px solid #ecf0f1;
border-radius: 8px;
font-size: 0.9rem;
transition: border-color 0.3s ease;
box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus {
outline: none;
border-color: #3498db;
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}
.form-group input:disabled {
background: #f8f9fa;
color: #6c757d;
cursor: not-allowed;
}
.form-actions {
display: flex;
gap: 1rem;
justify-content: flex-end;
margin-top: 2rem;
padding-top: 1.5rem;
border-top: 2px solid #ecf0f1;
}
/* 스크롤바 스타일링 */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.1);
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: linear-gradient(45deg, #3498db, #2980b9);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: linear-gradient(45deg, #2980b9, #3498db);
}

View File

@@ -0,0 +1,57 @@
body {
font-family: 'Malgun Gothic', sans-serif;
background-color: #f5f5f5;
margin: 0;
padding: 0;
}
header {
background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
color: white;
padding: 30px;
text-align: center;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
main {
padding: 30px;
max-width: 1200px;
margin: auto;
}
.card {
background: white;
padding: 24px;
border-radius: 12px;
margin-bottom: 24px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.quick-menu {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin-top: 16px;
}
.menu-item {
display: flex;
align-items: center;
gap: 12px;
padding: 16px;
background: #f8f9fa;
border-radius: 8px;
text-decoration: none;
color: #333;
transition: all 0.3s ease;
}
.menu-item:hover {
background: #e8f5e9;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.icon {
font-size: 24px;
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,612 @@
/* 작업 관리 페이지 스타일 */
/* 기본 레이아웃 */
body {
margin: 0;
padding: 0;
font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
}
/* 헤더 스타일 */
.dashboard-header {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 100;
}
.header-left {
display: flex;
align-items: center;
}
.logo-section {
display: flex;
align-items: center;
gap: 1rem;
}
.logo {
height: 40px;
width: auto;
}
.company-info {
display: flex;
flex-direction: column;
}
.company-name {
font-size: 1.25rem;
font-weight: 700;
color: #1f2937;
margin: 0;
line-height: 1.2;
}
.company-subtitle {
font-size: 0.875rem;
color: #6b7280;
font-weight: 500;
}
.header-center {
display: flex;
align-items: center;
}
.current-time {
display: flex;
flex-direction: column;
align-items: center;
padding: 0.5rem 1rem;
background: rgba(59, 130, 246, 0.1);
border-radius: 0.5rem;
border: 1px solid rgba(59, 130, 246, 0.2);
}
.time-label {
font-size: 0.75rem;
color: #6b7280;
margin-bottom: 0.125rem;
}
.time-value {
font-size: 1rem;
font-weight: 600;
color: #1f2937;
font-family: 'Courier New', monospace;
}
.header-right {
display: flex;
align-items: center;
gap: 1rem;
}
.header-actions {
display: flex;
align-items: center;
gap: 0.75rem;
}
.dashboard-btn {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
background: rgba(255, 255, 255, 0.15);
color: #374151;
text-decoration: none;
border-radius: 1.25rem;
font-size: 0.85rem;
font-weight: 500;
transition: all 0.3s ease;
border: 1px solid rgba(255, 255, 255, 0.3);
backdrop-filter: blur(10px);
}
.dashboard-btn:hover {
background: rgba(255, 255, 255, 0.25);
transform: translateY(-1px);
text-decoration: none;
color: #1f2937;
}
.user-profile {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 1rem;
background: rgba(255, 255, 255, 0.1);
border-radius: 2rem;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
}
.user-profile:hover {
background: rgba(255, 255, 255, 0.2);
}
.user-avatar {
width: 2.5rem;
height: 2.5rem;
background: linear-gradient(135deg, #3b82f6, #1d4ed8);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 600;
font-size: 1rem;
}
.user-info {
display: flex;
flex-direction: column;
}
.user-name {
font-size: 0.875rem;
font-weight: 600;
color: #1f2937;
line-height: 1.2;
}
.user-role {
font-size: 0.75rem;
color: #6b7280;
}
/* 메인 콘텐츠 */
.dashboard-main {
flex: 1;
padding: 2rem;
min-height: calc(100vh - 80px);
}
.page-header {
margin-bottom: 2rem;
}
.page-title-section {
text-align: center;
margin-bottom: 2rem;
}
.page-title {
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
font-size: 2.5rem;
font-weight: 700;
color: white;
margin: 0 0 0.5rem 0;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.title-icon {
font-size: 2.5rem;
}
.page-description {
font-size: 1.125rem;
color: rgba(255, 255, 255, 0.9);
margin: 0;
font-weight: 400;
}
/* 관리 메뉴 그리드 */
.management-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 1.5rem;
margin-bottom: 3rem;
}
.management-card {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-radius: 1rem;
padding: 1.5rem;
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
cursor: pointer;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.management-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #3b82f6, #8b5cf6);
transform: scaleX(0);
transition: transform 0.3s ease;
}
.management-card:hover::before {
transform: scaleX(1);
}
.management-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.card-header {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1rem;
}
.card-icon {
font-size: 2rem;
width: 3rem;
height: 3rem;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
border-radius: 0.75rem;
}
.card-title {
font-size: 1.25rem;
font-weight: 600;
color: #1f2937;
margin: 0;
}
.card-content {
margin-bottom: 1.5rem;
}
.card-description {
font-size: 0.875rem;
color: #6b7280;
line-height: 1.5;
margin: 0 0 1rem 0;
}
.card-stats {
display: flex;
gap: 1rem;
}
.stat-item {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.stat-label {
font-size: 0.75rem;
color: #9ca3af;
font-weight: 500;
}
.stat-value {
font-size: 1.5rem;
font-weight: 700;
color: #3b82f6;
}
.card-footer {
display: flex;
justify-content: flex-end;
}
.card-action {
font-size: 0.875rem;
color: #3b82f6;
font-weight: 500;
transition: color 0.3s ease;
}
.management-card:hover .card-action {
color: #1d4ed8;
}
/* 최근 활동 섹션 */
.recent-activity-section {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-radius: 1rem;
padding: 1.5rem;
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 1px solid #e5e7eb;
}
.section-title {
font-size: 1.25rem;
font-weight: 600;
color: #1f2937;
margin: 0;
}
.refresh-btn {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
background: #3b82f6;
color: white;
border: none;
border-radius: 0.5rem;
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
}
.refresh-btn:hover {
background: #2563eb;
transform: translateY(-1px);
}
.activity-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.activity-item {
display: flex;
align-items: flex-start;
gap: 1rem;
padding: 1rem;
background: #f8fafc;
border-radius: 0.75rem;
border: 1px solid #e2e8f0;
transition: all 0.3s ease;
}
.activity-item:hover {
background: #f1f5f9;
border-color: #cbd5e1;
}
.activity-icon {
font-size: 1.25rem;
width: 2.5rem;
height: 2.5rem;
display: flex;
align-items: center;
justify-content: center;
background: white;
border-radius: 0.5rem;
border: 1px solid #e2e8f0;
flex-shrink: 0;
}
.activity-content {
flex: 1;
}
.activity-title {
font-size: 0.875rem;
font-weight: 500;
color: #1f2937;
margin-bottom: 0.25rem;
line-height: 1.4;
}
.activity-meta {
display: flex;
gap: 1rem;
font-size: 0.75rem;
color: #6b7280;
}
.activity-user {
font-weight: 500;
}
/* 반응형 디자인 */
@media (max-width: 1024px) {
.dashboard-header {
padding: 1rem;
}
.dashboard-main {
padding: 1.5rem;
}
.management-grid {
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1rem;
}
}
@media (max-width: 768px) {
.header-center {
display: none;
}
.company-info {
display: none;
}
.dashboard-btn .btn-text {
display: none;
}
.user-info {
display: none;
}
.page-title {
font-size: 2rem;
}
.management-grid {
grid-template-columns: 1fr;
}
.section-header {
flex-direction: column;
gap: 1rem;
align-items: flex-start;
}
}
@media (max-width: 480px) {
.dashboard-header {
padding: 0.75rem;
}
.dashboard-main {
padding: 1rem;
}
.page-title {
font-size: 1.75rem;
}
.management-card {
padding: 1rem;
}
.recent-activity-section {
padding: 1rem;
}
}
/* ========== 빠른 액세스 섹션 ========== */
.quick-access-section {
margin-bottom: 3rem;
}
.section-title {
font-size: 1.5rem;
font-weight: 700;
color: #1f2937;
margin-bottom: 1.5rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.quick-actions-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 1rem;
max-width: 800px;
}
.quick-action-btn {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.75rem;
padding: 1.5rem 1rem;
background: rgba(255, 255, 255, 0.95);
border: 2px solid rgba(59, 130, 246, 0.1);
border-radius: 12px;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
color: inherit;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
backdrop-filter: blur(10px);
min-height: 120px;
justify-content: center;
}
.quick-action-btn:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
border-color: rgba(59, 130, 246, 0.3);
background: rgba(255, 255, 255, 1);
}
.quick-icon {
font-size: 2rem;
line-height: 1;
}
.quick-text {
font-size: 0.875rem;
font-weight: 600;
color: #374151;
text-align: center;
white-space: nowrap;
}
/* ========== 관리 섹션 ========== */
.management-section {
margin-bottom: 3rem;
}
/* ========== 시스템 상태 섹션 ========== */
.system-status-section {
margin-bottom: 3rem;
}
.status-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
margin-top: 1.5rem;
}
.status-card {
display: flex;
align-items: center;
gap: 1rem;
padding: 1.5rem;
background: rgba(255, 255, 255, 0.95);
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.status-icon {
font-size: 2rem;
line-height: 1;
}
.status-info {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.status-label {
font-size: 0.875rem;
color: #6b7280;
font-weight: 500;
}
.status-value {
font-size: 1.5rem;
font-weight: 700;
color: #1f2937;
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,108 @@
/* ✅ /css/workreport.css */
body {
font-family: 'Malgun Gothic', sans-serif;
background-color: #f8f9fa;
margin: 0;
padding: 30px;
color: #333;
}
h2 {
text-align: center;
color: #1976d2;
margin-bottom: 20px;
}
#calendar {
max-width: 500px;
margin: 0 auto 30px;
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 4px;
text-align: center;
}
#calendar .nav {
grid-column: span 7;
display: flex;
justify-content: space-between;
margin-bottom: 10px;
}
#calendar button {
padding: 8px;
background-color: #ffffff;
border: 1px solid #ccc;
cursor: pointer;
border-radius: 4px;
}
#calendar button:hover {
background-color: #e3f2fd;
}
.selected-date {
background-color: #4caf50 !important;
color: white;
font-weight: bold;
}
table {
width: 100%;
max-width: 1200px;
margin: auto;
border-collapse: collapse;
background-color: white;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
th, td {
border: 1px solid #ddd;
padding: 10px;
text-align: center;
}
th {
background-color: #f1f3f4;
color: #333;
}
select,
input[type="text"] {
width: 100%;
padding: 6px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
.remove-btn {
background-color: #d9534f;
color: white;
border: none;
padding: 6px 12px;
border-radius: 4px;
cursor: pointer;
}
.remove-btn:hover {
background-color: #c9302c;
}
.submit-btn {
display: block;
margin: 30px auto;
padding: 12px 30px;
font-size: 1rem;
font-weight: bold;
background-color: #1976d2;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
}
.submit-btn:hover {
background-color: #1565c0;
}

View File

@@ -0,0 +1,839 @@
/* work-review.css - 작업 검토 페이지 전용 스타일 (개선된 버전) */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f5f7fa;
color: #333;
line-height: 1.4;
}
.main-layout-with-navbar {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.content-wrapper {
flex: 1;
padding: 20px;
}
.review-container {
max-width: 1400px;
margin: 0 auto;
}
/* 페이지 헤더 */
.page-header {
text-align: center;
margin-bottom: 2rem;
padding: 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);
}
.page-header h1 {
font-size: 2.2rem;
margin-bottom: 0.5rem;
font-weight: 700;
}
.subtitle {
font-size: 1rem;
opacity: 0.9;
}
/* 뒤로가기 버튼 */
.back-btn {
background: rgba(255,255,255,0.95);
color: #667eea;
border: 3px solid #667eea;
padding: 12px 24px;
border-radius: 12px;
text-decoration: none;
font-weight: 700;
font-size: 16px;
display: inline-flex;
align-items: center;
gap: 8px;
margin-bottom: 20px;
transition: all 0.3s ease;
}
.back-btn:hover {
background: #667eea;
color: white;
transform: translateY(-2px);
}
/* 컨트롤 패널 */
.control-panel {
background: white;
border-radius: 16px;
padding: 2rem;
margin-bottom: 2rem;
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
}
.month-navigation {
display: flex;
align-items: center;
gap: 1rem;
}
.nav-btn, .today-btn {
background: #007bff;
color: white;
border: none;
border-radius: 8px;
padding: 12px 16px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s;
font-size: 16px;
}
.nav-btn:hover, .today-btn:hover {
background: #0056b3;
transform: translateY(-2px);
}
.today-btn {
background: #28a745;
}
.today-btn:hover {
background: #1e7e34;
}
.current-month {
font-size: 1.5rem;
font-weight: 700;
color: #333;
min-width: 200px;
text-align: center;
}
.control-actions {
display: flex;
gap: 12px;
}
/* 사용법 안내 */
.usage-guide {
background: white;
border-radius: 16px;
padding: 2rem;
margin-bottom: 2rem;
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.usage-guide h3 {
margin-bottom: 1.5rem;
color: #333;
font-size: 1.3rem;
text-align: center;
}
.guide-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
}
.guide-item {
display: flex;
align-items: center;
gap: 15px;
padding: 1rem;
border-radius: 12px;
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
border: 2px solid #dee2e6;
transition: all 0.3s ease;
}
.guide-item:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.guide-icon {
font-size: 2rem;
width: 50px;
text-align: center;
}
.guide-text {
flex: 1;
}
.guide-text strong {
color: #007bff;
font-size: 1.1rem;
}
/* 캘린더 */
.calendar-container {
background: white;
border-radius: 16px;
padding: 2rem;
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
margin-bottom: 2rem;
}
.calendar-container h3 {
color: #333;
font-size: 1.3rem;
}
.calendar-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 2px;
border: 3px solid #dee2e6;
border-radius: 12px;
overflow: hidden;
}
.day-header {
background: #343a40;
color: white;
padding: 15px;
text-align: center;
font-weight: 700;
font-size: 1.1rem;
}
.day-cell {
background: white;
border: 1px solid #dee2e6;
min-height: 80px;
padding: 8px;
position: relative;
transition: all 0.3s ease;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
}
.day-cell:hover {
transform: scale(1.05);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
z-index: 10;
}
.day-cell.other-month {
background: #f8f9fa;
color: #6c757d;
cursor: not-allowed;
}
.day-cell.today {
border: 3px solid #007bff;
background: #e7f3ff;
}
.day-cell.selected {
background: #d4edda;
border: 3px solid #28a745;
transform: scale(1.02);
}
.day-cell.selected .day-number {
color: #155724;
font-weight: 800;
}
.day-number {
font-size: 1.2rem;
font-weight: 700;
margin-bottom: 5px;
}
/* 선택된 날짜 정보 패널 */
.day-info-panel {
background: white;
border-radius: 16px;
padding: 2rem;
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
margin-bottom: 2rem;
}
.day-info-placeholder {
text-align: center;
padding: 3rem;
color: #6c757d;
}
.day-info-placeholder h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
color: #495057;
}
.day-info-content {
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.day-info-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
padding-bottom: 1rem;
border-bottom: 3px solid #dee2e6;
}
.day-info-header h3 {
color: #333;
font-size: 1.5rem;
margin: 0;
}
.day-info-actions {
display: flex;
gap: 12px;
}
.review-toggle, .refresh-day-btn {
padding: 10px 20px;
border: none;
border-radius: 8px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s;
font-size: 14px;
}
.review-toggle {
background: #007bff;
color: white;
}
.review-toggle.reviewed {
background: #28a745;
}
.review-toggle:hover {
transform: translateY(-2px);
}
.refresh-day-btn {
background: #6c757d;
color: white;
}
.refresh-day-btn:hover {
background: #545b62;
transform: translateY(-2px);
}
/* 일별 요약 정보 */
.day-summary {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
margin-bottom: 2rem;
padding: 1.5rem;
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
border-radius: 12px;
border: 2px solid #dee2e6;
}
.summary-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}
.summary-label {
font-weight: 600;
color: #6c757d;
font-size: 0.9rem;
}
.summary-value {
font-size: 1.3rem;
font-weight: 700;
color: #333;
}
.summary-value.normal-work {
color: #28a745;
}
.summary-value.overtime {
color: #6f42c1;
}
.summary-value.vacation {
color: #ffc107;
}
.summary-value.reviewed {
color: #28a745;
}
.summary-value.unreviewed {
color: #fd7e14;
}
/* 작업자별 상세 섹션 */
.workers-detail-container h4 {
margin-bottom: 1rem;
color: #333;
font-size: 1.2rem;
}
.worker-detail-section {
border: 2px solid #dee2e6;
border-radius: 12px;
margin-bottom: 1rem;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.worker-header-detail {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.delete-worker-btn {
background: rgba(220, 53, 69, 0.9);
color: white;
border: none;
border-radius: 6px;
padding: 8px 16px;
cursor: pointer;
font-size: 14px;
font-weight: 600;
transition: all 0.3s;
}
.delete-worker-btn:hover {
background: #c82333;
transform: translateY(-1px);
}
.worker-work-items {
padding: 1rem;
background: white;
}
.work-item-detail {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
margin-bottom: 0.5rem;
background: #f8f9fa;
border-radius: 8px;
border-left: 4px solid #007bff;
transition: all 0.3s ease;
}
.work-item-detail:hover {
background: #e9ecef;
transform: translateX(5px);
}
.work-item-info {
flex: 1;
}
.work-item-actions {
display: flex;
gap: 8px;
}
.edit-work-btn, .delete-work-btn {
padding: 8px 16px;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
font-weight: 600;
transition: all 0.3s;
white-space: nowrap;
}
.edit-work-btn {
background: #007bff;
color: white;
}
.edit-work-btn:hover {
background: #0056b3;
transform: translateY(-1px);
}
.delete-work-btn {
background: #dc3545;
color: white;
}
.delete-work-btn:hover {
background: #c82333;
transform: translateY(-1px);
}
/* 메시지 */
.message {
padding: 15px 20px;
border-radius: 8px;
margin-bottom: 20px;
font-weight: 600;
animation: slideInDown 0.3s ease;
}
@keyframes slideInDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.message.loading {
background: #cce5ff;
color: #0066cc;
border: 2px solid #99d6ff;
}
.message.success {
background: #d4edda;
color: #155724;
border: 2px solid #c3e6cb;
}
.message.error {
background: #f8d7da;
color: #721c24;
border: 2px solid #f5c6cb;
}
.message.warning {
background: #fff3cd;
color: #856404;
border: 2px solid #ffeaa7;
}
/* 수정 모달 스타일 */
.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: 500px;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 10px 40px rgba(0,0,0,0.3);
animation: slideInUp 0.3s ease;
}
@keyframes slideInUp {
from {
opacity: 0;
transform: translateY(50px) scale(0.9);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.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: 18px;
font-weight: 700;
}
.close-modal-btn {
background: rgba(255,255,255,0.2);
color: white;
border: none;
border-radius: 50%;
width: 30px;
height: 30px;
cursor: pointer;
font-size: 16px;
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);
}
.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: 14px;
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;
}
/* 확인 모달 */
.confirm-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.8);
display: flex;
justify-content: center;
align-items: center;
z-index: 1002;
animation: fadeIn 0.3s ease;
}
.confirm-modal-content {
background: white;
border-radius: 16px;
width: 90%;
max-width: 400px;
box-shadow: 0 10px 40px rgba(0,0,0,0.3);
animation: slideInUp 0.3s ease;
}
.confirm-modal-header {
padding: 24px 24px 16px;
border-bottom: 2px solid #f0f0f0;
}
.confirm-modal-header h3 {
margin: 0;
font-size: 18px;
font-weight: 700;
color: #dc3545;
}
.confirm-modal-body {
padding: 16px 24px;
}
.confirm-modal-footer {
display: flex;
justify-content: flex-end;
gap: 12px;
padding: 16px 24px 24px;
border-top: 2px solid #f0f0f0;
background: #f8f9fa;
border-radius: 0 0 16px 16px;
}
/* 버튼 스타일 */
.btn {
padding: 10px 20px;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s;
font-size: 14px;
}
.btn-secondary {
background: #6c757d;
color: white;
}
.btn-secondary:hover {
background: #545b62;
transform: translateY(-1px);
}
.btn-success {
background: #28a745;
color: white;
}
.btn-success:hover {
background: #1e7e34;
transform: translateY(-1px);
}
.btn-danger {
background: #dc3545;
color: white;
}
.btn-danger:hover {
background: #c82333;
transform: translateY(-1px);
}
/* 반응형 */
@media (max-width: 768px) {
.content-wrapper {
padding: 10px;
}
.control-panel {
flex-direction: column;
text-align: center;
}
.month-navigation {
flex-direction: column;
gap: 0.5rem;
}
.guide-grid {
grid-template-columns: 1fr;
}
.guide-item {
flex-direction: column;
text-align: center;
}
.day-cell {
min-height: 60px;
padding: 5px;
}
.day-number {
font-size: 1rem;
}
.day-summary {
grid-template-columns: 1fr 1fr;
}
.day-info-header {
flex-direction: column;
gap: 15px;
text-align: center;
}
.day-info-actions {
flex-direction: column;
width: 100%;
}
.review-toggle, .refresh-day-btn {
width: 100%;
}
.work-item-detail {
flex-direction: column;
align-items: stretch;
gap: 12px;
}
.work-item-actions {
justify-content: center;
}
.worker-header-detail {
flex-direction: column;
gap: 10px;
text-align: center;
}
.edit-modal-content {
width: 95%;
margin: 20px;
}
.edit-modal-footer, .confirm-modal-footer {
flex-direction: column;
}
.edit-work-btn, .delete-work-btn {
flex: 1;
padding: 12px;
font-size: 14px;
}
}