feat: 다수 기능 개선 - 순찰, 출근, 작업분석, 모바일 UI 등

- 순찰/점검 기능 개선 (zone-detail 페이지 추가)
- 출근/근태 시스템 개선 (연차 조회, 근무현황)
- 작업분석 대분류 그룹화 및 마이그레이션 스크립트
- 모바일 네비게이션 UI 추가
- NAS 배포 도구 및 문서 추가

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-02-09 14:41:01 +09:00
parent 1548253f56
commit 2b1c7bfb88
633 changed files with 361224 additions and 1090 deletions

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,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,348 @@
/**
* annual-vacation-overview.css
* 연간 연차 현황 페이지 스타일
*/
.page-container {
min-height: 100vh;
background: var(--color-bg-primary);
}
.main-content {
padding: 2rem 0;
}
.content-wrapper {
max-width: 1400px;
margin: 0 auto;
padding: 0 2rem;
}
/* 페이지 헤더 */
.page-header {
margin-bottom: 2rem;
}
.page-title {
font-size: 2rem;
font-weight: 700;
color: var(--color-text-primary);
margin-bottom: 0.5rem;
}
.page-description {
font-size: 1rem;
color: var(--color-text-secondary);
margin: 0;
}
/* 필터 섹션 */
.filter-section {
margin-bottom: 2rem;
}
.filter-controls {
display: flex;
gap: 1rem;
align-items: flex-end;
flex-wrap: wrap;
}
.form-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
min-width: 200px;
}
.form-group label {
font-size: 0.875rem;
font-weight: 600;
color: var(--color-text-primary);
}
.form-select {
padding: 0.625rem 1rem;
border: 1px solid var(--color-border);
border-radius: 8px;
background: white;
font-size: 0.875rem;
color: var(--color-text-primary);
transition: all 0.2s;
}
.form-select:focus {
outline: none;
border-color: var(--color-primary);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
/* 탭 네비게이션 */
.tabs-section {
margin-bottom: 2rem;
}
.tabs-nav {
display: flex;
gap: 0.5rem;
border-bottom: 2px solid var(--color-border);
padding: 0;
margin: 0;
}
.tab-btn {
padding: 1rem 2rem;
border: none;
background: none;
color: var(--color-text-secondary);
font-size: 1rem;
font-weight: 600;
cursor: pointer;
position: relative;
transition: all 0.2s;
border-radius: 8px 8px 0 0;
}
.tab-btn:hover {
color: var(--color-primary);
background: rgba(59, 130, 246, 0.05);
}
.tab-btn.active {
color: var(--color-primary);
background: white;
}
.tab-btn.active::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
right: 0;
height: 2px;
background: var(--color-primary);
}
/* 탭 컨텐츠 */
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
/* 월 선택 컨트롤 */
.month-controls {
display: flex;
gap: 1rem;
align-items: center;
}
.month-controls .form-select {
min-width: 120px;
}
/* 차트 섹션 */
.chart-section {
margin-bottom: 2rem;
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem;
border-bottom: 1px solid var(--color-border);
}
.card-title {
font-size: 1.25rem;
font-weight: 600;
color: var(--color-text-primary);
margin: 0;
}
.chart-controls {
display: flex;
gap: 0.5rem;
}
.btn-outline {
background: white;
border: 1px solid var(--color-border);
color: var(--color-text-secondary);
}
.btn-outline:hover {
background: var(--color-bg-secondary);
border-color: var(--color-primary);
color: var(--color-primary);
}
.btn-outline.active {
background: var(--color-primary);
border-color: var(--color-primary);
color: white;
}
.chart-container {
position: relative;
height: 500px;
padding: 1.5rem;
}
/* 테이블 섹션 */
.table-section {
margin-bottom: 2rem;
}
.table-responsive {
overflow-x: auto;
}
.data-table {
width: 100%;
border-collapse: collapse;
font-size: 0.875rem;
}
.data-table thead {
background: var(--color-bg-secondary);
}
.data-table th {
padding: 1rem;
text-align: left;
font-weight: 600;
color: var(--color-text-primary);
border-bottom: 2px solid var(--color-border);
white-space: nowrap;
}
.data-table tbody tr {
border-bottom: 1px solid var(--color-border);
transition: background 0.2s;
}
.data-table tbody tr:hover {
background: var(--color-bg-secondary);
}
.data-table td {
padding: 1rem;
color: var(--color-text-primary);
}
.loading-state {
padding: 3rem 1rem !important;
text-align: center;
}
.loading-state .spinner {
margin: 0 auto 1rem;
width: 40px;
height: 40px;
border: 4px solid var(--color-border);
border-top-color: var(--color-primary);
border-radius: 50%;
animation: spin 1s linear infinite;
}
.loading-state p {
margin: 0;
color: var(--color-text-secondary);
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* 사용률 프로그레스 바 */
.usage-rate-cell {
display: flex;
align-items: center;
gap: 0.5rem;
}
.progress-bar {
flex: 1;
height: 8px;
background: var(--color-bg-secondary);
border-radius: 4px;
overflow: hidden;
}
.progress-fill {
height: 100%;
border-radius: 4px;
transition: width 0.3s ease;
}
.progress-fill.low {
background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}
.progress-fill.medium {
background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}
.progress-fill.high {
background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}
.usage-rate-text {
font-weight: 600;
min-width: 45px;
text-align: right;
}
/* 반응형 */
@media (max-width: 768px) {
.content-wrapper {
padding: 0 1rem;
}
.page-title {
font-size: 1.5rem;
}
.tabs-nav {
flex-direction: column;
gap: 0;
}
.tab-btn {
border-radius: 0;
}
.filter-controls {
flex-direction: column;
align-items: stretch;
}
.form-group {
width: 100%;
min-width: auto;
}
.chart-container {
height: 400px;
}
.card-header {
flex-direction: column;
gap: 1rem;
align-items: flex-start;
}
.chart-controls {
width: 100%;
}
.chart-controls button {
flex: 1;
}
}

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,300 @@
/* 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: 2rem 1.5rem;
margin-bottom: 0;
}
.work-report-header h1 {
font-size: clamp(1.5rem, 4vw, 2.5rem);
font-weight: 700;
margin: 0 0 0.75rem 0;
text-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.3);
word-wrap: break-word;
overflow-wrap: break-word;
}
.work-report-header .subtitle {
font-size: clamp(0.875rem, 2vw, 1.1rem);
opacity: 0.9;
margin: 0;
font-weight: 300;
word-wrap: break-word;
overflow-wrap: break-word;
max-width: 90%;
margin-left: auto;
margin-right: auto;
}
.work-report-main {
background: #f8f9fa;
min-height: calc(100vh - 12rem);
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: 0.5rem;
font-weight: 500;
margin: 0 1.5rem 1.5rem 1.5rem;
transition: all 0.3s ease;
box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.1);
white-space: nowrap;
}
.back-button:hover {
background: white;
color: #007bff;
transform: translateY(-0.0625rem);
box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.15);
}
/* 반응형 헤더 */
@media (max-width: 768px) {
.work-report-header {
padding: 1.5rem 1rem;
}
.work-report-header h1 {
margin-bottom: 0.5rem;
}
.back-button {
margin: 0 1rem 1rem 1rem;
padding: 0.625rem 1.25rem;
font-size: 0.875rem;
}
}
@media (max-width: 480px) {
.work-report-header {
padding: 1.25rem 0.75rem;
}
.work-report-header .subtitle {
font-size: 0.8125rem;
}
.back-button {
margin: 0 0.75rem 0.75rem 0.75rem;
padding: 0.5rem 1rem;
font-size: 0.8125rem;
}
}
/* 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;
}

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,477 @@
/* ✅ design-system.css - 한글 기반 모던 디자인 시스템 */
/* ========== 색상 시스템 ========== */
:root {
/* 주요 브랜드 색상 (하늘색 계열) */
--primary-50: #f0f9ff;
--primary-100: #e0f2fe;
--primary-200: #bae6fd;
--primary-300: #7dd3fc;
--primary-400: #38bdf8;
--primary-500: #0ea5e9;
--primary-600: #0284c7;
--primary-700: #0369a1;
--primary-800: #075985;
--primary-900: #0c4a6e;
/* 헤더 그라디언트 */
--header-gradient: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #7dd3fc 100%);
/* 보조 색상 */
--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;
/* 따뜻한 중성 색상 (베이지/크림) */
--warm-50: #fafaf9; /* 매우 밝은 크림 */
--warm-100: #f5f5f4; /* 밝은 크림 */
--warm-200: #e7e5e4; /* 베이지 */
--warm-300: #d6d3d1; /* 중간 베이지 */
--warm-400: #a8a29e; /* 진한 베이지 */
--warm-500: #78716c; /* 그레이 베이지 */
/* 부드러운 작업 상태 색상 (눈이 편한 톤) */
--status-success-bg: #dcfce7; /* 부드러운 초록 배경 */
--status-success-text: #16a34a; /* 부드러운 초록 텍스트 */
--status-info-bg: #e0f2fe; /* 부드러운 하늘색 배경 */
--status-info-text: #0284c7; /* 부드러운 하늘색 텍스트 */
--status-warning-bg: #fef3c7; /* 부드러운 노랑 배경 */
--status-warning-text: #ca8a04; /* 부드러운 노랑 텍스트 */
--status-error-bg: #fee2e2; /* 부드러운 빨강 배경 */
--status-error-text: #dc2626; /* 부드러운 빨강 텍스트 */
--status-critical-bg: #fecaca; /* 진한 빨강 배경 */
--status-critical-text: #b91c1c; /* 진한 빨강 텍스트 */
--status-vacation-bg: #fed7aa; /* 부드러운 주황 배경 */
--status-vacation-text: #ea580c; /* 부드러운 주황 텍스트 */
/* 배경 색상 */
--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,509 @@
/* equipment-detail.css - 설비 상세 페이지 스타일 */
/* 헤더 */
.eq-detail-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
}
.eq-detail-header .page-title-section {
display: flex;
align-items: flex-start;
gap: 1rem;
}
.btn-back {
display: flex;
align-items: center;
gap: 0.25rem;
padding: 0.5rem 0.75rem;
background: #f3f4f6;
border: 1px solid #d1d5db;
border-radius: 6px;
cursor: pointer;
font-size: 0.875rem;
color: #374151;
transition: all 0.15s ease;
}
.btn-back:hover {
background: #e5e7eb;
}
.back-arrow {
font-size: 1.1rem;
}
.eq-header-info {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.eq-header-meta {
font-size: 0.875rem;
color: #6b7280;
}
.eq-status-badge {
padding: 0.375rem 0.75rem;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 600;
white-space: nowrap;
}
.eq-status-badge.active { background: #d1fae5; color: #065f46; }
.eq-status-badge.maintenance { background: #fef3c7; color: #92400e; }
.eq-status-badge.repair_needed { background: #fee2e2; color: #991b1b; }
.eq-status-badge.inactive { background: #e5e7eb; color: #374151; }
.eq-status-badge.external { background: #dbeafe; color: #1e40af; }
.eq-status-badge.repair_external { background: #ede9fe; color: #5b21b6; }
/* 기본 정보 카드 */
.eq-info-card {
background: white;
border-radius: 12px;
padding: 1.25rem;
margin-bottom: 1.5rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.eq-info-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1rem;
}
.eq-info-item {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.eq-info-label {
font-size: 0.75rem;
color: #6b7280;
font-weight: 500;
}
.eq-info-value {
font-size: 0.9375rem;
color: #111827;
}
/* 섹션 */
.eq-section {
background: white;
border-radius: 12px;
padding: 1.25rem;
margin-bottom: 1.5rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.eq-section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.eq-section-title {
font-size: 1rem;
font-weight: 600;
color: #111827;
margin: 0;
}
/* 사진 그리드 */
.eq-photo-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 0.75rem;
}
.eq-photo-item {
position: relative;
aspect-ratio: 1;
border-radius: 8px;
overflow: hidden;
cursor: pointer;
}
.eq-photo-item img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.2s ease;
}
.eq-photo-item:hover img {
transform: scale(1.05);
}
.eq-photo-delete {
position: absolute;
top: 4px;
right: 4px;
width: 24px;
height: 24px;
background: rgba(239, 68, 68, 0.9);
border: none;
border-radius: 50%;
color: white;
font-size: 14px;
cursor: pointer;
opacity: 0;
transition: opacity 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
}
.eq-photo-item:hover .eq-photo-delete {
opacity: 1;
}
.eq-photo-empty {
grid-column: 1 / -1;
text-align: center;
padding: 2rem;
color: #9ca3af;
font-size: 0.875rem;
}
/* 위치 정보 */
.eq-location-card {
display: flex;
gap: 1.5rem;
align-items: flex-start;
}
.eq-location-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.eq-location-row {
display: flex;
gap: 0.5rem;
}
.eq-location-label {
font-size: 0.875rem;
color: #6b7280;
min-width: 80px;
}
.eq-location-value {
font-size: 0.875rem;
color: #111827;
font-weight: 500;
}
.eq-location-value.eq-moved {
color: #dc2626;
}
.eq-map-preview {
width: 200px;
height: 150px;
background: #f3f4f6;
border-radius: 8px;
overflow: hidden;
position: relative;
}
.eq-map-preview img {
width: 100%;
height: 100%;
object-fit: cover;
}
.eq-map-marker {
position: absolute;
width: 12px;
height: 12px;
background: #dc2626;
border: 2px solid white;
border-radius: 50%;
transform: translate(-50%, -50%);
box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
/* 액션 버튼 */
.eq-action-buttons {
display: flex;
gap: 0.75rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
}
.btn-action {
flex: 1;
min-width: 140px;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.875rem 1rem;
border-radius: 10px;
font-size: 0.9375rem;
font-weight: 600;
border: none;
cursor: pointer;
transition: all 0.15s ease;
}
.btn-action .btn-icon {
font-size: 1.25rem;
}
.btn-move {
background: #dbeafe;
color: #1e40af;
}
.btn-move:hover { background: #bfdbfe; }
.btn-repair {
background: #fef3c7;
color: #92400e;
}
.btn-repair:hover { background: #fde68a; }
.btn-export {
background: #ede9fe;
color: #5b21b6;
}
.btn-export:hover { background: #ddd6fe; }
/* 이력 리스트 */
.eq-history-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.eq-history-item {
display: flex;
gap: 1rem;
padding: 0.875rem;
background: #f9fafb;
border-radius: 8px;
align-items: flex-start;
}
.eq-history-date {
font-size: 0.8125rem;
color: #6b7280;
white-space: nowrap;
min-width: 80px;
}
.eq-history-content {
flex: 1;
}
.eq-history-title {
font-size: 0.875rem;
font-weight: 500;
color: #111827;
margin-bottom: 0.25rem;
}
.eq-history-detail {
font-size: 0.8125rem;
color: #6b7280;
}
.eq-history-status {
font-size: 0.75rem;
padding: 0.25rem 0.5rem;
border-radius: 12px;
font-weight: 500;
}
.eq-history-status.pending { background: #fef3c7; color: #92400e; }
.eq-history-status.in_progress { background: #dbeafe; color: #1e40af; }
.eq-history-status.completed { background: #d1fae5; color: #065f46; }
.eq-history-status.exported { background: #ede9fe; color: #5b21b6; }
.eq-history-status.returned { background: #d1fae5; color: #065f46; }
.eq-history-empty {
text-align: center;
padding: 1.5rem;
color: #9ca3af;
font-size: 0.875rem;
}
.eq-history-action {
padding: 0.375rem 0.75rem;
background: #10b981;
color: white;
border: none;
border-radius: 6px;
font-size: 0.75rem;
cursor: pointer;
}
.eq-history-action:hover {
background: #059669;
}
/* 모달 스타일 추가 */
.photo-preview-container {
margin-top: 1rem;
text-align: center;
}
.photo-preview {
max-width: 100%;
max-height: 300px;
border-radius: 8px;
}
.move-step {
min-height: 200px;
}
.move-instruction {
font-size: 0.875rem;
color: #6b7280;
margin-bottom: 1rem;
text-align: center;
}
.move-map-container {
width: 100%;
height: 300px;
background: #f3f4f6;
border-radius: 8px;
margin-bottom: 1rem;
position: relative;
overflow: hidden;
}
.move-map-container img {
width: 100%;
height: 100%;
object-fit: contain;
cursor: crosshair;
}
.move-marker {
position: absolute;
width: 20px;
height: 20px;
background: #dc2626;
border: 3px solid white;
border-radius: 50%;
transform: translate(-50%, -50%);
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
pointer-events: none;
}
.checkbox-label {
display: flex;
align-items: center;
gap: 0.5rem;
cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
width: 18px;
height: 18px;
}
.repair-photo-previews {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
margin-top: 0.5rem;
}
.repair-photo-preview {
width: 60px;
height: 60px;
border-radius: 6px;
object-fit: cover;
}
/* 사진 확대 보기 */
.photo-view-container {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.9);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
cursor: pointer;
}
.photo-view-close {
position: absolute;
top: 20px;
right: 20px;
background: none;
border: none;
color: white;
font-size: 2rem;
cursor: pointer;
}
.photo-view-image {
max-width: 90%;
max-height: 90%;
object-fit: contain;
}
/* 버튼 스타일 */
.btn-sm {
padding: 0.375rem 0.75rem;
font-size: 0.8125rem;
}
.btn-outline {
background: transparent;
border: 1px solid #d1d5db;
color: #374151;
}
.btn-outline:hover {
background: #f3f4f6;
}
/* 반응형 */
@media (max-width: 768px) {
.eq-detail-header {
flex-direction: column;
}
.eq-location-card {
flex-direction: column;
}
.eq-map-preview {
width: 100%;
height: 200px;
}
.eq-action-buttons {
flex-direction: column;
}
.btn-action {
min-width: auto;
}
.eq-info-grid {
grid-template-columns: repeat(2, 1fr);
}
}

View File

@@ -0,0 +1,361 @@
/* equipment-management.css */
/* 설비 관리 페이지 전용 스타일 */
/* 통계 요약 섹션 */
.eq-stats-section {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 1rem;
margin-bottom: 1.5rem;
}
.eq-stat-card {
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
border-radius: 12px;
padding: 1.25rem;
border: 1px solid #e2e8f0;
transition: all 0.2s ease;
}
.eq-stat-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.eq-stat-card.highlight {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
color: white;
border: none;
}
.eq-stat-card.highlight .eq-stat-label {
color: rgba(255, 255, 255, 0.85);
}
.eq-stat-label {
font-size: 0.8rem;
color: #64748b;
margin-bottom: 0.5rem;
font-weight: 500;
}
.eq-stat-value {
font-size: 1.75rem;
font-weight: 700;
line-height: 1.2;
}
.eq-stat-sub {
font-size: 0.75rem;
color: #94a3b8;
margin-top: 0.25rem;
}
.eq-stat-card.highlight .eq-stat-sub {
color: rgba(255, 255, 255, 0.7);
}
/* 필터 섹션 개선 */
.eq-filter-section {
background: #f8fafc;
border-radius: 12px;
padding: 1rem 1.25rem;
margin-bottom: 1.5rem;
display: flex;
flex-wrap: wrap;
gap: 1rem;
align-items: flex-end;
}
.eq-filter-group {
display: flex;
flex-direction: column;
gap: 0.35rem;
min-width: 140px;
}
.eq-filter-group label {
font-size: 0.75rem;
font-weight: 600;
color: #64748b;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.eq-filter-group .form-control {
padding: 0.5rem 0.75rem;
font-size: 0.875rem;
border-radius: 8px;
border: 1px solid #e2e8f0;
background: white;
}
.eq-filter-group .form-control:focus {
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.eq-search-group {
flex: 1;
min-width: 200px;
}
.eq-search-group .form-control {
width: 100%;
}
/* 테이블 개선 */
.eq-table-container {
background: white;
border-radius: 12px;
border: 1px solid #e2e8f0;
overflow: hidden;
}
.eq-table {
width: 100%;
border-collapse: collapse;
font-size: 0.875rem;
}
.eq-table thead {
background: #f1f5f9;
position: sticky;
top: 0;
z-index: 10;
}
.eq-table th {
padding: 0.875rem 1rem;
text-align: left;
font-weight: 600;
color: #475569;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.5px;
border-bottom: 2px solid #e2e8f0;
white-space: nowrap;
}
.eq-table td {
padding: 0.75rem 1rem;
border-bottom: 1px solid #f1f5f9;
vertical-align: middle;
}
.eq-table tbody tr {
transition: background 0.15s ease;
}
.eq-table tbody tr:hover {
background: #f8fafc;
}
.eq-table tbody tr:last-child td {
border-bottom: none;
}
/* 테이블 컬럼별 스타일 */
.eq-col-code {
font-weight: 600;
color: #1e40af;
white-space: nowrap;
}
.eq-col-name {
font-weight: 500;
color: #1e293b;
max-width: 200px;
}
.eq-col-model,
.eq-col-spec {
color: #64748b;
font-size: 0.8125rem;
max-width: 150px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.eq-col-price {
font-weight: 600;
color: #059669;
text-align: right;
white-space: nowrap;
}
.eq-col-date {
color: #64748b;
font-size: 0.8125rem;
white-space: nowrap;
}
/* 상태 배지 */
.eq-status {
display: inline-flex;
align-items: center;
padding: 0.25rem 0.625rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 600;
white-space: nowrap;
}
.eq-status-active {
background: #dcfce7;
color: #166534;
}
.eq-status-maintenance {
background: #fef3c7;
color: #92400e;
}
.eq-status-inactive {
background: #fee2e2;
color: #991b1b;
}
/* 액션 버튼 */
.eq-actions {
display: flex;
gap: 0.5rem;
}
.eq-btn-action {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.15s ease;
font-size: 0.875rem;
}
.eq-btn-edit {
background: #eff6ff;
color: #3b82f6;
}
.eq-btn-edit:hover {
background: #3b82f6;
color: white;
}
.eq-btn-delete {
background: #fef2f2;
color: #ef4444;
}
.eq-btn-delete:hover {
background: #ef4444;
color: white;
}
/* 빈 상태 */
.eq-empty-state {
text-align: center;
padding: 4rem 2rem;
color: #64748b;
}
.eq-empty-state p {
margin-bottom: 1.5rem;
font-size: 1rem;
}
/* 테이블 스크롤 래퍼 */
.eq-table-wrapper {
overflow-x: auto;
max-height: calc(100vh - 380px);
overflow-y: auto;
}
/* 결과 카운트 */
.eq-result-count {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 1rem;
background: #f8fafc;
border-bottom: 1px solid #e2e8f0;
font-size: 0.8125rem;
color: #64748b;
}
.eq-result-count strong {
color: #1e293b;
}
/* 반응형 */
@media (max-width: 1200px) {
.eq-stats-section {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 768px) {
.eq-stats-section {
grid-template-columns: repeat(2, 1fr);
}
.eq-filter-section {
flex-direction: column;
}
.eq-filter-group {
width: 100%;
}
.eq-table th,
.eq-table td {
padding: 0.625rem 0.75rem;
}
.eq-col-spec,
.eq-col-model {
display: none;
}
}
/* 모달 개선 */
.eq-modal-body {
padding: 1.5rem;
}
.eq-form-section {
margin-bottom: 1.5rem;
padding-bottom: 1.5rem;
border-bottom: 1px solid #f1f5f9;
}
.eq-form-section:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}
.eq-form-section-title {
font-size: 0.8rem;
font-weight: 600;
color: #3b82f6;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 1rem;
}
.eq-form-row {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
@media (max-width: 600px) {
.eq-form-row {
grid-template-columns: 1fr;
}
}

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

View File

@@ -0,0 +1,583 @@
/**
* 나의 출근 현황 페이지 스타일
*/
/* 페이지 헤더 */
.page-header {
margin-bottom: 24px;
}
.page-title {
font-size: 28px;
font-weight: 700;
color: #1a1a1a;
margin: 0 0 8px 0;
display: flex;
align-items: center;
gap: 12px;
}
.title-icon {
font-size: 32px;
}
.page-description {
font-size: 14px;
color: #666;
margin: 0;
}
/* 통계 카드 섹션 */
.stats-section {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin-bottom: 24px;
}
.stat-card {
background: white;
border-radius: 12px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
display: flex;
align-items: center;
gap: 16px;
transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.stat-icon {
font-size: 36px;
width: 56px;
height: 56px;
display: flex;
align-items: center;
justify-content: center;
background: #f8f9fa;
border-radius: 12px;
}
.stat-info {
flex: 1;
}
.stat-value {
font-size: 24px;
font-weight: 700;
color: #1a1a1a;
margin-bottom: 4px;
}
.stat-label {
font-size: 13px;
color: #666;
font-weight: 500;
}
/* 탭 컨테이너 */
.tab-container {
display: flex;
gap: 8px;
margin-bottom: 20px;
border-bottom: 2px solid #e9ecef;
}
.tab-btn {
background: none;
border: none;
padding: 12px 24px;
font-size: 14px;
font-weight: 600;
color: #6c757d;
cursor: pointer;
border-bottom: 3px solid transparent;
transition: all 0.2s;
display: flex;
align-items: center;
gap: 8px;
}
.tab-btn:hover {
color: #495057;
background: #f8f9fa;
}
.tab-btn.active {
color: #007bff;
border-bottom-color: #007bff;
}
.tab-icon {
font-size: 16px;
}
/* 탭 컨텐츠 */
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
/* 테이블 스타일 */
#attendanceTable {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
#attendanceTable thead {
background: #f8f9fa;
}
#attendanceTable th {
padding: 16px 12px;
font-weight: 600;
color: #495057;
text-align: center;
border-bottom: 2px solid #dee2e6;
}
#attendanceTable td {
padding: 14px 12px;
text-align: center;
border-bottom: 1px solid #f1f3f5;
}
#attendanceTable tbody tr {
transition: background-color 0.2s;
cursor: pointer;
}
#attendanceTable tbody tr:hover {
background-color: #f8f9fa;
}
.loading-cell,
.empty-cell,
.error-cell {
text-align: center;
padding: 40px 20px;
color: #6c757d;
font-size: 14px;
}
.error-cell {
color: #dc3545;
}
.notes-cell {
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: left;
color: #6c757d;
font-size: 13px;
}
/* 상태 배지 */
.status-badge {
display: inline-block;
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
text-transform: capitalize;
}
.status-badge.normal {
background: #d4edda;
color: #155724;
}
.status-badge.late {
background: #fff3cd;
color: #856404;
}
.status-badge.early {
background: #ffe5b5;
color: #a56200;
}
.status-badge.absent {
background: #f8d7da;
color: #721c24;
}
.status-badge.vacation {
background: #cce5ff;
color: #004085;
}
/* 달력 스타일 */
#calendarContainer {
background: white;
border-radius: 12px;
padding: 24px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.calendar-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
}
.calendar-header h3 {
font-size: 20px;
font-weight: 700;
color: #1a1a1a;
margin: 0;
}
.calendar-nav-btn {
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 8px;
width: 40px;
height: 40px;
font-size: 18px;
cursor: pointer;
transition: all 0.2s;
}
.calendar-nav-btn:hover {
background: #e9ecef;
border-color: #adb5bd;
}
.calendar-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 8px;
}
.calendar-day-header {
text-align: center;
font-weight: 600;
font-size: 13px;
color: #495057;
padding: 12px 8px;
background: #f8f9fa;
border-radius: 4px;
}
.calendar-day {
aspect-ratio: 1;
border: 1px solid #e9ecef;
border-radius: 8px;
padding: 8px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transition: all 0.2s;
background: white;
}
.calendar-day.empty {
background: #f8f9fa;
border-color: #f1f3f5;
}
.calendar-day.has-record {
cursor: pointer;
font-weight: 600;
}
.calendar-day.has-record:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
/* 달력 날짜 상태별 색상 */
.calendar-day.normal {
background: #d4edda;
border-color: #c3e6cb;
color: #155724;
}
.calendar-day.late {
background: #fff3cd;
border-color: #ffeaa7;
color: #856404;
}
.calendar-day.early {
background: #ffe5b5;
border-color: #ffd98a;
color: #a56200;
}
.calendar-day.absent {
background: #f8d7da;
border-color: #f5c6cb;
color: #721c24;
}
.calendar-day.vacation {
background: #cce5ff;
border-color: #b8daff;
color: #004085;
}
.calendar-day-number {
font-size: 14px;
margin-bottom: 4px;
}
.calendar-day-status {
font-size: 16px;
}
/* 달력 범례 */
.calendar-legend {
display: flex;
flex-wrap: wrap;
gap: 16px;
justify-content: center;
margin-top: 24px;
padding-top: 20px;
border-top: 1px solid #e9ecef;
}
.legend-item {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: #495057;
}
.legend-dot {
width: 16px;
height: 16px;
border-radius: 50%;
border: 2px solid #dee2e6;
}
.legend-dot.normal {
background: #d4edda;
border-color: #c3e6cb;
}
.legend-dot.late {
background: #fff3cd;
border-color: #ffeaa7;
}
.legend-dot.early {
background: #ffe5b5;
border-color: #ffd98a;
}
.legend-dot.absent {
background: #f8d7da;
border-color: #f5c6cb;
}
.legend-dot.vacation {
background: #cce5ff;
border-color: #b8daff;
}
/* 모달 스타일 */
.modal {
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
}
.modal-content {
background-color: white;
border-radius: 12px;
width: 90%;
max-width: 500px;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.modal-header {
padding: 20px 24px;
border-bottom: 1px solid #e9ecef;
display: flex;
justify-content: space-between;
align-items: center;
}
.modal-header h2 {
margin: 0;
font-size: 20px;
font-weight: 700;
color: #1a1a1a;
}
.modal-close-btn {
background: none;
border: none;
font-size: 28px;
color: #6c757d;
cursor: pointer;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.2s;
}
.modal-close-btn:hover {
background: #f8f9fa;
color: #343a40;
}
.modal-body {
padding: 24px;
}
.modal-footer {
padding: 16px 24px;
border-top: 1px solid #e9ecef;
display: flex;
justify-content: flex-end;
gap: 12px;
}
/* 상세 정보 그리드 */
.detail-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}
.detail-item {
display: flex;
flex-direction: column;
gap: 8px;
}
.detail-item.full-width {
grid-column: 1 / -1;
}
.detail-item label {
font-size: 13px;
font-weight: 600;
color: #6c757d;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.detail-item div {
font-size: 15px;
color: #1a1a1a;
}
/* 버튼 스타일 */
.btn-primary {
background-color: #007bff;
color: white;
border: none;
padding: 8px 16px;
border-radius: 6px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s;
}
.btn-primary:hover {
background-color: #0056b3;
}
.btn-secondary {
background-color: #6c757d;
color: white;
border: none;
padding: 8px 16px;
border-radius: 6px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s;
}
.btn-secondary:hover {
background-color: #5a6268;
}
/* 반응형 디자인 */
@media (max-width: 768px) {
.stats-section {
grid-template-columns: 1fr;
}
.stat-card {
padding: 16px;
}
.stat-icon {
width: 48px;
height: 48px;
font-size: 28px;
}
.stat-value {
font-size: 20px;
}
.tab-btn {
padding: 10px 16px;
font-size: 13px;
}
.calendar-grid {
gap: 4px;
}
.calendar-day {
padding: 4px;
}
.calendar-day-number {
font-size: 12px;
}
.calendar-day-status {
font-size: 14px;
}
.detail-grid {
grid-template-columns: 1fr;
}
#attendanceTable {
font-size: 12px;
}
#attendanceTable th,
#attendanceTable td {
padding: 10px 8px;
}
.notes-cell {
max-width: 120px;
}
}

View File

@@ -0,0 +1,350 @@
/* My Dashboard CSS */
.dashboard-container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem 1.5rem;
background: #f8f9fa;
min-height: 100vh;
}
.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: 0.5rem;
font-weight: 500;
margin-bottom: 1.5rem;
transition: all 0.3s ease;
box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.1);
}
.back-button:hover {
background: white;
color: #007bff;
transform: translateY(-0.0625rem);
}
.page-header {
text-align: center;
margin-bottom: 2rem;
}
.page-header h1 {
font-size: 2rem;
color: #333;
margin-bottom: 0.5rem;
}
.page-header p {
color: #666;
font-size: 1.1rem;
}
/* 사용자 정보 카드 */
.user-info-card {
background: white;
border-radius: 0.75rem;
padding: 1.5rem;
margin-bottom: 2rem;
box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
}
.info-row {
display: flex;
gap: 2rem;
flex-wrap: wrap;
}
.info-item {
display: flex;
gap: 0.5rem;
}
.info-item .label {
font-weight: 600;
color: #555;
}
/* 연차 정보 위젯 */
.vacation-widget {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border-radius: 0.75rem;
padding: 2rem;
margin-bottom: 2rem;
box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.15);
}
.vacation-widget h2 {
margin-bottom: 1.5rem;
}
.vacation-summary {
display: flex;
justify-content: space-around;
margin-bottom: 1.5rem;
}
.vacation-summary .stat {
text-align: center;
}
.vacation-summary .label {
display: block;
font-size: 0.9rem;
opacity: 0.9;
margin-bottom: 0.5rem;
}
.vacation-summary .value {
display: block;
font-size: 2rem;
font-weight: 700;
}
.progress-bar {
height: 1.5rem;
background: rgba(255,255,255,0.2);
border-radius: 0.75rem;
overflow: hidden;
}
.progress {
height: 100%;
background: rgba(255,255,255,0.8);
transition: width 0.5s ease;
}
/* 캘린더 섹션 */
.calendar-section {
background: white;
border-radius: 0.75rem;
padding: 2rem;
margin-bottom: 2rem;
box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
}
.calendar-section h2 {
margin-bottom: 1rem;
}
.calendar-controls {
display: flex;
justify-content: center;
align-items: center;
gap: 2rem;
margin-bottom: 1.5rem;
}
.calendar-controls button {
background: #667eea;
color: white;
border: none;
border-radius: 0.5rem;
padding: 0.5rem 1rem;
cursor: pointer;
font-size: 1rem;
}
.calendar-controls button:hover {
background: #764ba2;
}
.calendar-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 0.5rem;
}
.calendar-header {
text-align: center;
font-weight: 600;
padding: 0.5rem;
background: #f8f9fa;
border-radius: 0.25rem;
}
.calendar-day {
aspect-ratio: 1;
display: flex;
align-items: center;
justify-content: center;
border-radius: 0.25rem;
background: #f8f9fa;
cursor: pointer;
transition: all 0.2s ease;
}
.calendar-day:hover:not(.empty) {
transform: scale(1.05);
}
.calendar-day.empty {
background: transparent;
}
.calendar-day.normal {
background: #d4edda;
color: #155724;
}
.calendar-day.late {
background: #fff3cd;
color: #856404;
}
.calendar-day.vacation {
background: #d1ecf1;
color: #0c5460;
}
.calendar-day.absent {
background: #f8d7da;
color: #721c24;
}
.calendar-legend {
display: flex;
justify-content: center;
gap: 1.5rem;
margin-top: 1.5rem;
flex-wrap: wrap;
}
.calendar-legend span {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9rem;
}
.dot {
width: 1rem;
height: 1rem;
border-radius: 50%;
}
.dot.normal {
background: #d4edda;
}
.dot.late {
background: #fff3cd;
}
.dot.vacation {
background: #d1ecf1;
}
.dot.absent {
background: #f8d7da;
}
/* 근무 시간 통계 */
.work-hours-stats {
background: white;
border-radius: 0.75rem;
padding: 2rem;
margin-bottom: 2rem;
box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
margin-top: 1.5rem;
}
.stat-card {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 1.5rem;
border-radius: 0.75rem;
text-align: center;
}
.stat-card .label {
display: block;
font-size: 0.9rem;
opacity: 0.9;
margin-bottom: 0.5rem;
}
.stat-card .value {
display: block;
font-size: 2rem;
font-weight: 700;
}
/* 최근 작업 보고서 */
.recent-reports {
background: white;
border-radius: 0.75rem;
padding: 2rem;
margin-bottom: 2rem;
box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
}
.recent-reports h2 {
margin-bottom: 1.5rem;
}
.report-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
border-bottom: 1px solid #e9ecef;
}
.report-item:last-child {
border-bottom: none;
}
.report-item .date {
color: #666;
font-size: 0.9rem;
}
.report-item .project {
flex: 1;
margin: 0 1rem;
font-weight: 500;
}
.report-item .hours {
color: #667eea;
font-weight: 600;
}
.empty-message {
text-align: center;
color: #999;
padding: 2rem;
}
/* 반응형 */
@media (max-width: 768px) {
.dashboard-container {
padding: 1rem;
}
.vacation-summary {
flex-direction: column;
gap: 1rem;
}
.calendar-grid {
gap: 0.25rem;
}
.calendar-legend {
gap: 0.75rem;
}
}

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);
}

File diff suppressed because it is too large Load Diff

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;
}

View File

@@ -0,0 +1,472 @@
/**
* vacation-allocation.css
* 휴가 발생 입력 페이지 스타일
*/
.page-container {
min-height: 100vh;
background: var(--color-bg-primary);
}
.main-content {
padding: 2rem 0;
}
.content-wrapper {
max-width: 1400px;
margin: 0 auto;
padding: 0 2rem;
}
/* 페이지 헤더 */
.page-header {
margin-bottom: 2rem;
}
.page-title {
font-size: 2rem;
font-weight: 700;
color: var(--color-text-primary);
margin-bottom: 0.5rem;
}
.page-description {
font-size: 1rem;
color: var(--color-text-secondary);
margin: 0;
}
/* 탭 네비게이션 */
.tab-navigation {
display: flex;
gap: 0.5rem;
margin-bottom: 2rem;
border-bottom: 2px solid var(--color-border);
}
.tab-button {
padding: 1rem 2rem;
background: none;
border: none;
border-bottom: 3px solid transparent;
font-size: 1rem;
font-weight: 600;
color: var(--color-text-secondary);
cursor: pointer;
transition: all 0.2s;
position: relative;
bottom: -2px;
}
.tab-button:hover {
color: var(--color-primary);
background: var(--color-bg-secondary);
}
.tab-button.active {
color: var(--color-primary);
border-bottom-color: var(--color-primary);
}
/* 탭 콘텐츠 */
.tab-content {
display: none;
}
.tab-content.active {
display: block;
animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* 폼 섹션 */
.form-section {
margin-bottom: 2rem;
padding-bottom: 2rem;
border-bottom: 1px solid var(--color-border);
}
.form-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
margin-bottom: 1.5rem;
}
.form-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.form-group.full-width {
grid-column: 1 / -1;
}
.form-group label {
font-size: 0.875rem;
font-weight: 600;
color: var(--color-text-primary);
}
.required {
color: #ef4444;
}
.form-select,
.form-input {
padding: 0.625rem 1rem;
border: 1px solid var(--color-border);
border-radius: 8px;
background: white;
font-size: 0.875rem;
color: var(--color-text-primary);
transition: all 0.2s;
}
.form-select:focus,
.form-input:focus {
outline: none;
border-color: var(--color-primary);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.form-input[type="number"] {
max-width: 200px;
}
.form-group small {
font-size: 0.75rem;
color: var(--color-text-secondary);
}
/* 자동 계산 섹션 */
.auto-calculate-section {
background: var(--color-bg-secondary);
padding: 1.5rem;
border-radius: 8px;
margin-bottom: 1.5rem;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.section-header h3 {
font-size: 1rem;
font-weight: 600;
color: var(--color-text-primary);
margin: 0;
}
.alert {
padding: 1rem;
border-radius: 8px;
margin-bottom: 1rem;
font-size: 0.875rem;
}
.alert-info {
background: #dbeafe;
color: #1e40af;
border: 1px solid #93c5fd;
}
.alert-warning {
background: #fef3c7;
color: #92400e;
border: 1px solid #fde68a;
}
.alert-success {
background: #d1fae5;
color: #065f46;
border: 1px solid #6ee7b7;
}
/* 폼 액션 버튼 */
.form-actions {
display: flex;
gap: 1rem;
margin-top: 1.5rem;
}
/* 기존 데이터 섹션 */
.existing-data-section {
margin-top: 2rem;
}
.existing-data-section h3 {
font-size: 1.125rem;
font-weight: 600;
color: var(--color-text-primary);
margin-bottom: 1rem;
}
/* 미리보기 섹션 */
.preview-section {
margin-top: 2rem;
animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
from {
opacity: 0;
max-height: 0;
}
to {
opacity: 1;
max-height: 1000px;
}
}
.preview-section h3 {
font-size: 1.125rem;
font-weight: 600;
color: var(--color-text-primary);
margin-bottom: 1rem;
}
/* 테이블 */
.table-responsive {
overflow-x: auto;
border-radius: 8px;
border: 1px solid var(--color-border);
}
.data-table {
width: 100%;
border-collapse: collapse;
font-size: 0.875rem;
}
.data-table thead {
background: var(--color-bg-secondary);
}
.data-table th {
padding: 1rem;
text-align: left;
font-weight: 600;
color: var(--color-text-primary);
border-bottom: 2px solid var(--color-border);
white-space: nowrap;
}
.data-table tbody tr {
border-bottom: 1px solid var(--color-border);
transition: background 0.2s;
}
.data-table tbody tr:hover {
background: var(--color-bg-secondary);
}
.data-table td {
padding: 1rem;
color: var(--color-text-primary);
}
.loading-state {
padding: 3rem 1rem !important;
text-align: center;
}
.loading-state .spinner {
margin: 0 auto 1rem;
width: 40px;
height: 40px;
border: 4px solid var(--color-border);
border-top-color: var(--color-primary);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.loading-state p {
margin: 0;
color: var(--color-text-secondary);
}
/* 액션 버튼 */
.action-buttons {
display: flex;
gap: 0.5rem;
}
.btn-icon {
padding: 0.5rem;
min-width: auto;
font-size: 1rem;
}
/* 배지 */
.badge {
display: inline-block;
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 600;
}
.badge-info {
background: #dbeafe;
color: #1e40af;
}
.badge-success {
background: #d1fae5;
color: #065f46;
}
.badge-warning {
background: #fef3c7;
color: #92400e;
}
.badge-error {
background: #fee2e2;
color: #991b1b;
}
/* 모달 */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 1000;
align-items: center;
justify-content: center;
}
.modal.active {
display: flex;
}
.modal-content {
background: white;
border-radius: 12px;
max-width: 600px;
width: 90%;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem;
border-bottom: 1px solid var(--color-border);
}
.modal-header h3 {
font-size: 1.25rem;
font-weight: 600;
color: var(--color-text-primary);
margin: 0;
}
.modal-close {
background: none;
border: none;
font-size: 1.5rem;
color: var(--color-text-secondary);
cursor: pointer;
padding: 0;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.2s;
}
.modal-close:hover {
background: var(--color-bg-secondary);
color: var(--color-text-primary);
}
.modal-body {
padding: 1.5rem;
}
/* 반응형 */
@media (max-width: 768px) {
.content-wrapper {
padding: 0 1rem;
}
.page-title {
font-size: 1.5rem;
}
.tab-navigation {
overflow-x: auto;
}
.tab-button {
padding: 0.75rem 1.25rem;
font-size: 0.875rem;
white-space: nowrap;
}
.form-row {
grid-template-columns: 1fr;
}
.form-actions {
flex-direction: column;
}
.form-actions button {
width: 100%;
}
.section-header {
flex-direction: column;
gap: 1rem;
align-items: flex-start;
}
.modal-content {
width: 95%;
max-height: 95vh;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,431 @@
/* 작업 관리 페이지 스타일 */
/* 기본 레이아웃 */
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;
}
/* 헤더 스타일은 navbar.html에서 관리됨 */
/* 메인 콘텐츠 */
.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-main {
padding: 1.5rem;
}
.management-grid {
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1rem;
}
}
@media (max-width: 768px) {
.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-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;
}

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;
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff