- 페이지 폴더 재구성: safety/, attendance/ 폴더 신규 생성 - work/ → safety/: 이슈 신고, 출입 신청 관련 페이지 이동 - common/ → attendance/: 근태/휴가 관련 페이지 이동 - admin/ 정리: safety-* 파일들을 safety/로 이동 - 사이드바 네비게이션 메뉴 구현 - 카테고리별 메뉴: 작업관리, 안전관리, 근태관리, 시스템관리 - 접기/펼치기 기능 및 상태 저장 - 관리자 전용 메뉴 자동 표시/숨김 - 날씨 API 연동 (기상청 단기예보) - TBM 및 navbar에 현재 날씨 표시 - weatherService.js 추가 - 안전 체크리스트 확장 - 기본/날씨별/작업별 체크 유형 추가 - checklist-manage.html 페이지 추가 - 이슈 신고 시스템 구현 - workIssueController, workIssueModel, workIssueRoutes 추가 - DB 마이그레이션 파일 추가 (실행 대기) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
787 lines
12 KiB
CSS
787 lines
12 KiB
CSS
/* admin-settings.css */
|
|
|
|
/* 기본 레이아웃 */
|
|
.work-report-container {
|
|
min-height: 100vh;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
}
|
|
|
|
.work-report-header {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
text-align: center;
|
|
padding: 3rem 2rem;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.work-report-header h1 {
|
|
font-size: 2.5rem;
|
|
font-weight: 700;
|
|
margin: 0 0 1rem 0;
|
|
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
.work-report-header .subtitle {
|
|
font-size: 1.1rem;
|
|
opacity: 0.9;
|
|
margin: 0;
|
|
font-weight: 300;
|
|
}
|
|
|
|
.work-report-main {
|
|
background: #f8f9fa;
|
|
min-height: calc(100vh - 200px);
|
|
padding-top: 2rem;
|
|
}
|
|
|
|
.back-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.75rem 1.5rem;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
color: #495057;
|
|
text-decoration: none;
|
|
border-radius: 8px;
|
|
font-weight: 500;
|
|
margin: 0 2rem 2rem 2rem;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.back-button:hover {
|
|
background: white;
|
|
color: #007bff;
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
.dashboard-main {
|
|
padding: 0 2rem 2rem 2rem;
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.page-header {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.page-title-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.page-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: #1a1a1a;
|
|
margin: 0;
|
|
}
|
|
|
|
.title-icon {
|
|
font-size: 2.25rem;
|
|
}
|
|
|
|
.page-description {
|
|
font-size: 1rem;
|
|
color: #666;
|
|
margin: 0;
|
|
}
|
|
|
|
/* 설정 섹션 */
|
|
.settings-section {
|
|
background: white;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1.5rem 2rem;
|
|
background: #f8f9fa;
|
|
border-bottom: 1px solid #e9ecef;
|
|
}
|
|
|
|
.section-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: #1a1a1a;
|
|
margin: 0;
|
|
}
|
|
|
|
.section-icon {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
/* 사용자 컨테이너 */
|
|
.users-container {
|
|
padding: 2rem;
|
|
}
|
|
|
|
.users-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1.5rem;
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* 검색 박스 */
|
|
.search-box {
|
|
position: relative;
|
|
flex: 1;
|
|
max-width: 300px;
|
|
}
|
|
|
|
.search-input {
|
|
width: 100%;
|
|
padding: 0.75rem 1rem 0.75rem 2.5rem;
|
|
border: 2px solid #e9ecef;
|
|
border-radius: 8px;
|
|
font-size: 0.9rem;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.search-input:focus {
|
|
outline: none;
|
|
border-color: #007bff;
|
|
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
|
|
}
|
|
|
|
.search-icon {
|
|
position: absolute;
|
|
left: 0.75rem;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
font-size: 1rem;
|
|
color: #666;
|
|
}
|
|
|
|
/* 필터 버튼 */
|
|
.filter-buttons {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.filter-btn {
|
|
padding: 0.5rem 1rem;
|
|
border: 2px solid #e9ecef;
|
|
background: white;
|
|
border-radius: 6px;
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.filter-btn:hover {
|
|
border-color: #007bff;
|
|
color: #007bff;
|
|
}
|
|
|
|
.filter-btn.active {
|
|
background: #007bff;
|
|
border-color: #007bff;
|
|
color: white;
|
|
}
|
|
|
|
/* 사용자 테이블 */
|
|
.users-table-container {
|
|
border: 1px solid #e9ecef;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.users-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.users-table th {
|
|
background: #f8f9fa;
|
|
padding: 1rem;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
color: #495057;
|
|
border-bottom: 2px solid #e9ecef;
|
|
}
|
|
|
|
.users-table td {
|
|
padding: 1rem;
|
|
border-bottom: 1px solid #e9ecef;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.users-table tbody tr:hover {
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
/* 사용자 정보 */
|
|
.user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.user-avatar-small {
|
|
width: 36px;
|
|
height: 36px;
|
|
background: #007bff;
|
|
color: white;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.user-details h4 {
|
|
margin: 0;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
color: #1a1a1a;
|
|
}
|
|
|
|
.user-details p {
|
|
margin: 0;
|
|
font-size: 0.8rem;
|
|
color: #666;
|
|
}
|
|
|
|
/* 역할 배지 */
|
|
.role-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 12px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.role-badge.admin {
|
|
background: #dc3545;
|
|
color: white;
|
|
}
|
|
|
|
.role-badge.leader {
|
|
background: #fd7e14;
|
|
color: white;
|
|
}
|
|
|
|
.role-badge.user {
|
|
background: #28a745;
|
|
color: white;
|
|
}
|
|
|
|
/* 상태 배지 */
|
|
.status-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 12px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.status-badge.active {
|
|
background: #d4edda;
|
|
color: #155724;
|
|
}
|
|
|
|
.status-badge.inactive {
|
|
background: #f8d7da;
|
|
color: #721c24;
|
|
}
|
|
|
|
/* 액션 버튼 */
|
|
.action-buttons {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.action-btn {
|
|
padding: 0.4rem 0.8rem;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.action-btn.edit {
|
|
background: #007bff;
|
|
color: white;
|
|
}
|
|
|
|
.action-btn.edit:hover {
|
|
background: #0056b3;
|
|
}
|
|
|
|
.action-btn.delete {
|
|
background: #dc3545;
|
|
color: white;
|
|
}
|
|
|
|
.action-btn.delete:hover {
|
|
background: #c82333;
|
|
}
|
|
|
|
.action-btn.toggle {
|
|
background: #6c757d;
|
|
color: white;
|
|
}
|
|
|
|
.action-btn.toggle:hover {
|
|
background: #545b62;
|
|
}
|
|
|
|
/* 빈 상태 */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 3rem 2rem;
|
|
color: #666;
|
|
}
|
|
|
|
.empty-icon {
|
|
font-size: 4rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.empty-state h3 {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.5rem;
|
|
color: #1a1a1a;
|
|
}
|
|
|
|
.empty-state p {
|
|
font-size: 0.9rem;
|
|
margin: 0;
|
|
}
|
|
|
|
/* 모달 스타일 */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.modal-container {
|
|
background: white;
|
|
border-radius: 12px;
|
|
box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
|
|
width: 90%;
|
|
max-width: 500px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.modal-container.small {
|
|
max-width: 400px;
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1.5rem 2rem;
|
|
border-bottom: 1px solid #e9ecef;
|
|
}
|
|
|
|
.modal-header h2 {
|
|
margin: 0;
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: #1a1a1a;
|
|
}
|
|
|
|
.modal-close-btn {
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.5rem;
|
|
color: #666;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 4px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.modal-close-btn:hover {
|
|
background: #f8f9fa;
|
|
color: #1a1a1a;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 2rem;
|
|
}
|
|
|
|
.modal-footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 1rem;
|
|
padding: 1.5rem 2rem;
|
|
border-top: 1px solid #e9ecef;
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
/* 폼 스타일 */
|
|
.form-group {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.form-label {
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
font-weight: 600;
|
|
color: #1a1a1a;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.form-control {
|
|
width: 100%;
|
|
padding: 0.75rem;
|
|
border: 2px solid #e9ecef;
|
|
border-radius: 6px;
|
|
font-size: 0.9rem;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.form-control:focus {
|
|
outline: none;
|
|
border-color: #007bff;
|
|
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
|
|
}
|
|
|
|
.form-help {
|
|
display: block;
|
|
margin-top: 0.25rem;
|
|
font-size: 0.8rem;
|
|
color: #666;
|
|
}
|
|
|
|
/* 삭제 경고 */
|
|
.delete-warning {
|
|
text-align: center;
|
|
padding: 1rem 0;
|
|
}
|
|
|
|
.warning-icon {
|
|
font-size: 3rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.delete-warning p {
|
|
margin-bottom: 0.5rem;
|
|
font-size: 1rem;
|
|
color: #1a1a1a;
|
|
}
|
|
|
|
.warning-text {
|
|
font-size: 0.9rem;
|
|
color: #dc3545;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 버튼 스타일 */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.75rem 1.5rem;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #007bff;
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #0056b3;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: #6c757d;
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: #545b62;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: #dc3545;
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: #c82333;
|
|
}
|
|
|
|
.btn-icon {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* 토스트 알림 */
|
|
.toast-container {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
z-index: 1100;
|
|
}
|
|
|
|
.toast {
|
|
background: white;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
padding: 1rem 1.5rem;
|
|
margin-bottom: 0.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
min-width: 300px;
|
|
animation: slideIn 0.3s ease;
|
|
}
|
|
|
|
.toast.success {
|
|
border-left: 4px solid #28a745;
|
|
}
|
|
|
|
.toast.error {
|
|
border-left: 4px solid #dc3545;
|
|
}
|
|
|
|
.toast.warning {
|
|
border-left: 4px solid #ffc107;
|
|
}
|
|
|
|
.toast-icon {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.toast-message {
|
|
flex: 1;
|
|
font-size: 0.9rem;
|
|
color: #1a1a1a;
|
|
}
|
|
|
|
.toast-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.25rem;
|
|
color: #666;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
transform: translateX(100%);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateX(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* 반응형 */
|
|
@media (max-width: 1024px) {
|
|
.dashboard-main {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.users-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.search-box {
|
|
max-width: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.dashboard-main {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.section-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.users-table-container {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.users-table {
|
|
min-width: 600px;
|
|
}
|
|
|
|
.modal-container {
|
|
width: 95%;
|
|
margin: 1rem;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 1.5rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.filter-buttons {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.action-buttons {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
/* 페이지 권한 관리 스타일 */
|
|
.page-access-list {
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-3);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.page-access-category {
|
|
margin-bottom: var(--space-4);
|
|
}
|
|
|
|
.page-access-category:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.page-access-category-title {
|
|
font-size: var(--text-sm);
|
|
font-weight: var(--font-semibold);
|
|
color: var(--text-secondary);
|
|
margin-bottom: var(--space-2);
|
|
padding-bottom: var(--space-2);
|
|
border-bottom: 1px solid var(--border-light);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.page-access-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: var(--space-2);
|
|
border-radius: var(--radius-sm);
|
|
transition: var(--transition-normal);
|
|
}
|
|
|
|
.page-access-item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.page-access-item label {
|
|
display: flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
flex: 1;
|
|
margin: 0;
|
|
}
|
|
|
|
.page-access-item input[type="checkbox"] {
|
|
margin-right: var(--space-2);
|
|
width: 18px;
|
|
height: 18px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.page-access-item .page-name {
|
|
font-size: var(--text-sm);
|
|
color: var(--text-primary);
|
|
font-weight: var(--font-medium);
|
|
}
|
|
|
|
/* 권한 관리 버튼 스타일 */
|
|
.action-btn.permissions {
|
|
background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
|
|
color: white;
|
|
}
|
|
|
|
.action-btn.permissions:hover {
|
|
background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
|
|
}
|
|
|
|
/* 비밀번호 초기화 버튼 스타일 */
|
|
.action-btn.reset-pw {
|
|
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
|
|
color: white;
|
|
}
|
|
|
|
.action-btn.reset-pw:hover {
|
|
background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
|
|
}
|
|
|
|
/* 페이지 권한 모달 사용자 정보 */
|
|
.page-access-user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
padding: var(--space-4);
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-lg);
|
|
margin-bottom: var(--space-4);
|
|
}
|
|
|
|
.page-access-user-info h3 {
|
|
margin: 0;
|
|
font-size: var(--text-lg);
|
|
font-weight: var(--font-semibold);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.page-access-user-info p {
|
|
margin: 0;
|
|
font-size: var(--text-sm);
|
|
color: var(--text-secondary);
|
|
}
|