Files
tk-factory-services/system2-report/web/css/project-management.css
Hyungi Ahn 733bb0cb35 feat: tkuser 통합 관리 서비스 + 전체 시스템 SSO 쿠키 인증 통합
- tkuser 서비스 신규 추가 (API + Web)
  - 사용자/권한/프로젝트/부서/작업자/작업장/설비/작업/휴가 통합 관리
  - 작업장 탭: 공장→작업장 드릴다운 네비게이션 + 구역지도 클릭 연동
  - 작업 탭: 공정(work_types)→작업(tasks) 계층 관리
  - 휴가 탭: 유형 관리 + 연차 배정(근로기준법 자동계산)
- 전 시스템 SSO 쿠키 인증으로 통합 (.technicalkorea.net 공유)
- System 2: 작업 이슈 리포트 기능 강화
- System 3: tkuser API 연동, 페이지 권한 체계 적용
- docker-compose에 tkuser-api, tkuser-web 서비스 추가
- ARCHITECTURE.md, DEPLOYMENT.md 문서 작성

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 13:45:52 +09:00

1571 lines
28 KiB
CSS

/* 프로젝트 관리 페이지 스타일 */
/* 기본 레이아웃 */
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 컴포넌트가 관리 */
/* 필요한 경우 navbar.html에서 수정하세요 */
.logo {
height: 40px;
width: auto;
}
.company-info {
display: flex;
flex-direction: column;
}
.company-name {
font-size: 1.25rem;
font-weight: 700;
color: #1f2937;
margin: 0;
line-height: 1.2;
}
.company-subtitle {
font-size: 0.875rem;
color: #6b7280;
font-weight: 500;
}
.header-center {
display: flex;
align-items: center;
}
.current-time {
display: flex;
flex-direction: column;
align-items: center;
padding: 0.5rem 1rem;
background: rgba(59, 130, 246, 0.1);
border-radius: 0.5rem;
border: 1px solid rgba(59, 130, 246, 0.2);
}
.time-label {
font-size: 0.75rem;
color: #6b7280;
margin-bottom: 0.125rem;
}
.time-value {
font-size: 1rem;
font-weight: 600;
color: #1f2937;
font-family: 'Courier New', monospace;
}
.header-right {
display: flex;
align-items: center;
gap: 1rem;
}
.header-actions {
display: flex;
align-items: center;
gap: 0.75rem;
}
.back-btn, .dashboard-btn {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
background: rgba(255, 255, 255, 0.15);
color: #374151;
text-decoration: none;
border-radius: 1.25rem;
font-size: 0.85rem;
font-weight: 500;
transition: all 0.3s ease;
border: 1px solid rgba(255, 255, 255, 0.3);
backdrop-filter: blur(10px);
}
.back-btn:hover, .dashboard-btn:hover {
background: rgba(255, 255, 255, 0.25);
transform: translateY(-1px);
text-decoration: none;
color: #1f2937;
}
.user-profile {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 1rem;
background: rgba(255, 255, 255, 0.1);
border-radius: 2rem;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
}
.user-profile:hover {
background: rgba(255, 255, 255, 0.2);
}
.user-avatar {
width: 2.5rem;
height: 2.5rem;
background: linear-gradient(135deg, #3b82f6, #1d4ed8);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 600;
font-size: 1rem;
}
.user-info {
display: flex;
flex-direction: column;
}
.user-name {
font-size: 0.875rem;
font-weight: 600;
color: #1f2937;
line-height: 1.2;
}
.user-role {
font-size: 0.75rem;
color: #6b7280;
}
/* 메인 콘텐츠 */
.dashboard-main {
flex: 1;
padding: 2rem;
min-height: calc(100vh - 80px);
max-width: 1600px;
margin: 0 auto;
width: 100%;
}
.page-header {
display: flex;
justify-content: space-between;
align-items: flex-end;
margin-bottom: 2rem;
}
.page-title-section {
flex: 1;
}
.page-title {
display: flex;
align-items: 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;
}
.page-actions {
display: flex;
gap: 1rem;
}
.btn {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
border: none;
border-radius: 0.75rem;
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
}
.btn-primary {
background: #3b82f6;
color: white;
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
background: #2563eb;
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}
.btn-secondary {
background: rgba(255, 255, 255, 0.9);
color: #374151;
border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
background: white;
transform: translateY(-2px);
}
.btn-danger {
background: #ef4444;
color: white;
}
.btn-danger:hover {
background: #dc2626;
transform: translateY(-2px);
}
/* 검색 및 필터 섹션 */
.search-section {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-radius: 1rem;
padding: 1.5rem;
margin-bottom: 2rem;
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.search-bar {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
}
.search-input {
flex: 1;
padding: 0.75rem 1rem;
border: 1px solid #d1d5db;
border-radius: 0.5rem;
font-size: 0.875rem;
transition: all 0.3s ease;
}
.search-input:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.search-btn {
padding: 0.75rem 1rem;
background: #3b82f6;
color: white;
border: none;
border-radius: 0.5rem;
cursor: pointer;
transition: all 0.3s ease;
}
.search-btn:hover {
background: #2563eb;
}
.filter-options {
display: flex;
gap: 1rem;
}
.filter-select {
padding: 0.5rem 1rem;
border: 1px solid #d1d5db;
border-radius: 0.5rem;
font-size: 0.875rem;
background: white;
cursor: pointer;
}
/* 프로젝트 섹션 */
.projects-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;
}
.project-stats {
display: flex;
gap: 1.5rem;
font-size: 0.875rem;
align-items: center;
}
.stat-item {
display: flex;
align-items: center;
gap: 0.25rem;
padding: 0.5rem 0.75rem;
border-radius: 0.5rem;
font-weight: 500;
transition: all 0.3s ease;
cursor: pointer;
position: relative;
}
.stat-item:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.stat-item.active {
transform: scale(1.05);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
z-index: 10;
}
.stat-item .stat-icon {
font-size: 1rem;
}
.stat-item span:not(.stat-icon) {
font-weight: 600;
}
/* 활성 프로젝트 통계 */
.active-stat {
background: rgba(16, 185, 129, 0.1);
color: #065f46;
border: 1px solid rgba(16, 185, 129, 0.2);
}
.active-stat span:not(.stat-icon) {
color: #10b981;
}
.active-stat.active {
background: rgba(16, 185, 129, 0.2);
border: 2px solid #10b981;
}
.active-stat:hover {
background: rgba(16, 185, 129, 0.15);
}
/* 비활성 프로젝트 통계 */
.inactive-stat {
background: rgba(239, 68, 68, 0.1);
color: #7f1d1d;
border: 1px solid rgba(239, 68, 68, 0.2);
}
.inactive-stat span:not(.stat-icon) {
color: #ef4444;
}
.inactive-stat.active {
background: rgba(239, 68, 68, 0.2);
border: 2px solid #ef4444;
}
.inactive-stat:hover {
background: rgba(239, 68, 68, 0.15);
}
/* 전체 프로젝트 통계 */
.total-stat {
background: rgba(59, 130, 246, 0.1);
color: #1e3a8a;
border: 1px solid rgba(59, 130, 246, 0.2);
}
.total-stat span:not(.stat-icon) {
color: #3b82f6;
}
.total-stat.active {
background: rgba(59, 130, 246, 0.2);
border: 2px solid #3b82f6;
}
.total-stat:hover {
background: rgba(59, 130, 246, 0.15);
}
/* 프로젝트 그리드 */
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 1.5rem;
justify-content: center;
}
/* 작업자 카드 전용 스타일 */
.worker-card .project-info {
display: flex;
align-items: flex-start;
gap: 1rem;
}
.worker-avatar {
width: 60px;
height: 60px;
border-radius: 50%;
background: linear-gradient(135deg, #3b82f6, #1d4ed8);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.avatar-initial {
color: white;
font-size: 1.5rem;
font-weight: 700;
}
.worker-card .project-name {
margin-top: 0.25rem;
}
.worker-card .project-meta {
margin-top: 0.5rem;
}
.worker-card.inactive .worker-avatar {
background: linear-gradient(135deg, #9ca3af, #6b7280);
box-shadow: 0 4px 12px rgba(156, 163, 175, 0.3);
}
/* 작업 유형 트리 뷰 스타일 */
.task-tree-container {
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);
}
.tree-header {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 1px solid #e5e7eb;
}
.btn-outline {
background: transparent;
border: 1px solid #d1d5db;
color: #374151;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
font-size: 0.875rem;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 0.5rem;
}
.btn-outline:hover {
background: #f3f4f6;
border-color: #9ca3af;
}
.task-tree {
max-height: 600px;
overflow-y: auto;
}
/* 카테고리 (대분류) 스타일 */
.tree-category {
margin-bottom: 1rem;
border: 1px solid #e5e7eb;
border-radius: 0.75rem;
overflow: hidden;
}
.category-header {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 1rem 1.25rem;
background: linear-gradient(135deg, #f8fafc, #e2e8f0);
cursor: pointer;
transition: all 0.3s ease;
border-bottom: 1px solid #e5e7eb;
}
.category-header:hover {
background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
}
.category-toggle {
font-size: 0.875rem;
color: #6b7280;
transition: transform 0.3s ease;
}
.category-icon {
font-size: 1.25rem;
}
.category-name {
font-size: 1.125rem;
font-weight: 600;
color: #1f2937;
flex: 1;
}
.category-count {
font-size: 0.875rem;
color: #6b7280;
background: rgba(107, 114, 128, 0.1);
padding: 0.25rem 0.5rem;
border-radius: 0.375rem;
}
.category-actions {
display: flex;
gap: 0.5rem;
}
.category-content {
background: #ffffff;
}
/* 서브카테고리 (중분류) 스타일 */
.tree-subcategory {
border-bottom: 1px solid #f3f4f6;
}
.tree-subcategory:last-child {
border-bottom: none;
}
.subcategory-header {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.875rem 1.25rem;
background: #f8fafc;
cursor: pointer;
transition: all 0.3s ease;
}
.subcategory-header:hover {
background: #f1f5f9;
}
.subcategory-toggle {
font-size: 0.75rem;
color: #6b7280;
margin-left: 1rem;
}
.subcategory-icon {
font-size: 1rem;
}
.subcategory-name {
font-size: 1rem;
font-weight: 500;
color: #374151;
flex: 1;
}
.subcategory-count {
font-size: 0.75rem;
color: #6b7280;
background: rgba(107, 114, 128, 0.1);
padding: 0.125rem 0.375rem;
border-radius: 0.25rem;
}
.subcategory-actions {
display: flex;
gap: 0.25rem;
}
.subcategory-content {
background: #ffffff;
}
/* 작업 (상세) 스타일 */
.tree-task {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.75rem 1.25rem 0.75rem 2.5rem;
border-bottom: 1px solid #f9fafb;
cursor: pointer;
transition: all 0.3s ease;
}
.tree-task:hover {
background: #f9fafb;
}
.tree-task:last-child {
border-bottom: none;
}
.task-info {
display: flex;
align-items: center;
gap: 0.75rem;
flex: 1;
}
.task-icon {
font-size: 0.875rem;
color: #6b7280;
}
.task-name {
font-size: 0.875rem;
font-weight: 500;
color: #1f2937;
}
.task-description {
font-size: 0.75rem;
color: #6b7280;
margin-left: 0.5rem;
font-style: italic;
}
.task-actions {
display: flex;
gap: 0.25rem;
opacity: 0;
transition: opacity 0.3s ease;
}
.tree-task:hover .task-actions {
opacity: 1;
}
/* 작은 버튼 스타일 */
.btn-small {
padding: 0.25rem 0.5rem;
border: none;
border-radius: 0.25rem;
font-size: 0.75rem;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}
.btn-small.btn-primary {
background: #3b82f6;
color: white;
}
.btn-small.btn-primary:hover {
background: #2563eb;
}
.btn-small.btn-secondary {
background: #6b7280;
color: white;
}
.btn-small.btn-secondary:hover {
background: #4b5563;
}
.btn-small.btn-edit {
background: #f59e0b;
color: white;
}
.btn-small.btn-edit:hover {
background: #d97706;
}
.btn-small.btn-delete {
background: #ef4444;
color: white;
}
.btn-small.btn-delete:hover {
background: #dc2626;
}
/* 코드 관리 전용 스타일 */
.code-tabs {
display: flex;
gap: 0.5rem;
margin-bottom: 2rem;
border-bottom: 3px solid #d1d5db;
padding-bottom: 0;
background: rgba(255, 255, 255, 0.9);
border-radius: 1rem 1rem 0 0;
padding: 0.5rem 0.5rem 0 0.5rem;
}
.tab-btn {
background: rgba(255, 255, 255, 0.7);
border: 2px solid #e5e7eb;
padding: 1rem 1.5rem;
border-radius: 0.75rem;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.95rem;
font-weight: 600;
color: #4b5563;
border-bottom: 3px solid transparent;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.tab-btn:hover {
background: rgba(59, 130, 246, 0.1);
color: #1e40af;
border-color: #3b82f6;
transform: translateY(-1px);
}
.tab-btn.active {
background: linear-gradient(135deg, #3b82f6, #1d4ed8);
color: #ffffff;
border-color: #1d4ed8;
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
transform: translateY(-2px);
}
.tab-icon {
font-size: 1rem;
}
.code-tab-content {
display: none;
}
.code-tab-content.active {
display: block;
}
.code-section {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
backdrop-filter: blur(20px);
border-radius: 1rem;
padding: 2rem;
border: 2px solid rgba(59, 130, 246, 0.2);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.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 {
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 1.25rem;
font-weight: 600;
color: #1f2937;
margin: 0;
}
.section-icon {
font-size: 1.5rem;
}
.section-actions {
display: flex;
gap: 0.75rem;
}
.code-stats {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
}
.code-stats .stat-item {
background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
border: 2px solid rgba(59, 130, 246, 0.3);
color: #1e40af;
padding: 0.75rem 1.25rem;
border-radius: 0.75rem;
font-size: 0.9rem;
font-weight: 600;
display: flex;
align-items: center;
gap: 0.5rem;
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}
.code-stats .critical-stat {
background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
border-color: rgba(239, 68, 68, 0.4);
color: #dc2626;
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.code-stats .high-stat {
background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.1));
border-color: rgba(249, 115, 22, 0.4);
color: #ea580c;
box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.code-stats .medium-stat {
background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
border-color: rgba(245, 158, 11, 0.4);
color: #d97706;
box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.code-stats .low-stat {
background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
border-color: rgba(16, 185, 129, 0.4);
color: #059669;
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.code-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 1.5rem;
}
.code-card {
background: linear-gradient(135deg, #ffffff, #f8fafc);
border: 2px solid #e5e7eb;
border-radius: 1rem;
padding: 1.5rem;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.code-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
border-color: #3b82f6;
background: linear-gradient(135deg, #ffffff, #f0f9ff);
}
.code-card.normal-status {
border-left: 6px solid #10b981;
background: linear-gradient(135deg, #ffffff, #f0fdf4);
}
.code-card.normal-status:hover {
background: linear-gradient(135deg, #f0fdf4, #dcfce7);
box-shadow: 0 12px 35px rgba(16, 185, 129, 0.3);
}
.code-card.error-status {
border-left: 6px solid #ef4444;
background: linear-gradient(135deg, #ffffff, #fef2f2);
}
.code-card.error-status:hover {
background: linear-gradient(135deg, #fef2f2, #fee2e2);
box-shadow: 0 12px 35px rgba(239, 68, 68, 0.3);
}
.code-card.error-type-card.severity-low {
border-left: 6px solid #10b981;
background: linear-gradient(135deg, #ffffff, #f0fdf4);
}
.code-card.error-type-card.severity-low:hover {
background: linear-gradient(135deg, #f0fdf4, #dcfce7);
box-shadow: 0 12px 35px rgba(16, 185, 129, 0.3);
}
.code-card.error-type-card.severity-medium {
border-left: 6px solid #f59e0b;
background: linear-gradient(135deg, #ffffff, #fffbeb);
}
.code-card.error-type-card.severity-medium:hover {
background: linear-gradient(135deg, #fffbeb, #fef3c7);
box-shadow: 0 12px 35px rgba(245, 158, 11, 0.3);
}
.code-card.error-type-card.severity-high {
border-left: 6px solid #f97316;
background: linear-gradient(135deg, #ffffff, #fff7ed);
}
.code-card.error-type-card.severity-high:hover {
background: linear-gradient(135deg, #fff7ed, #fed7aa);
box-shadow: 0 12px 35px rgba(249, 115, 22, 0.3);
}
.code-card.error-type-card.severity-critical {
border-left: 6px solid #ef4444;
background: linear-gradient(135deg, #ffffff, #fef2f2);
}
.code-card.error-type-card.severity-critical:hover {
background: linear-gradient(135deg, #fef2f2, #fee2e2);
box-shadow: 0 12px 35px rgba(239, 68, 68, 0.3);
}
.code-card.work-type-card {
border-left: 6px solid #6366f1;
background: linear-gradient(135deg, #ffffff, #faf5ff);
}
.code-card.work-type-card:hover {
background: linear-gradient(135deg, #faf5ff, #f3e8ff);
box-shadow: 0 12px 35px rgba(99, 102, 241, 0.3);
}
.code-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 1rem;
}
.code-icon {
font-size: 1.5rem;
margin-right: 0.75rem;
}
.code-info {
flex: 1;
}
.code-name {
font-size: 1.25rem;
font-weight: 700;
color: #111827;
margin: 0 0 0.5rem 0;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.code-label {
font-size: 0.8rem;
font-weight: 600;
color: #374151;
background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
padding: 0.25rem 0.75rem;
border-radius: 0.5rem;
border: 1px solid #d1d5db;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.code-description {
color: #6b7280;
font-size: 0.875rem;
line-height: 1.5;
margin: 0 0 1rem 0;
}
.solution-guide {
background: #f0f9ff;
border: 1px solid #bae6fd;
border-radius: 0.5rem;
padding: 0.75rem;
margin: 1rem 0;
font-size: 0.875rem;
color: #0c4a6e;
}
.code-meta {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.75rem;
color: #9ca3af;
margin-top: 1rem;
padding-top: 0.75rem;
border-top: 1px solid #f3f4f6;
}
.code-date {
font-size: 0.75rem;
color: #9ca3af;
}
.code-actions {
display: flex;
gap: 0.25rem;
opacity: 0;
transition: opacity 0.3s ease;
}
.code-card:hover .code-actions {
opacity: 1;
}
.form-checkbox {
margin-right: 0.5rem;
}
.form-help {
display: block;
margin-top: 0.25rem;
font-size: 0.75rem;
color: #6b7280;
}
/* 프로필 드롭다운 스타일 개선 */
.profile-dropdown {
position: relative;
}
.profile-dropdown .dropdown-item {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem 1rem;
color: #374151;
text-decoration: none;
transition: all 0.3s ease;
border: none;
background: transparent;
width: 100%;
text-align: left;
font-size: 0.875rem;
cursor: pointer;
font-family: inherit;
border-radius: 0.5rem;
margin: 0.25rem;
}
.profile-dropdown .dropdown-item:hover {
background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
color: #1f2937;
transform: translateX(2px);
}
.profile-dropdown .dropdown-item.logout-btn {
color: #dc2626;
border-top: 1px solid #e5e7eb;
margin-top: 0.5rem;
padding-top: 0.75rem;
}
.profile-dropdown .dropdown-item.logout-btn:hover {
background: linear-gradient(135deg, #fef2f2, #fee2e2);
color: #b91c1c;
}
.profile-dropdown .dropdown-icon {
font-size: 1.1rem;
width: 1.5rem;
text-align: center;
opacity: 0.8;
}
.profile-dropdown .dropdown-item:hover .dropdown-icon {
opacity: 1;
}
/* 헤더 사용자 프로필 스타일 개선 */
.user-profile {
position: relative;
cursor: pointer;
}
.user-profile .profile-dropdown {
position: absolute;
top: calc(100% + 0.5rem);
right: 0;
background: linear-gradient(135deg, #ffffff, #f8fafc);
border: 2px solid rgba(59, 130, 246, 0.2);
border-radius: 1rem;
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
min-width: 200px;
opacity: 0;
visibility: hidden;
transform: translateY(-10px);
transition: all 0.3s ease;
overflow: hidden;
z-index: 1000;
backdrop-filter: blur(20px);
}
.user-profile .profile-dropdown[style*="block"] {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
/* 반응형 디자인 */
@media (max-width: 768px) {
.code-tabs {
flex-direction: column;
gap: 0;
}
.tab-btn {
border-radius: 0;
border-bottom: 1px solid #e5e7eb;
}
.tab-btn.active {
border-bottom-color: #3b82f6;
}
.section-header {
flex-direction: column;
align-items: flex-start;
gap: 1rem;
}
.code-stats {
justify-content: center;
}
.code-grid {
grid-template-columns: 1fr;
}
.user-profile .profile-dropdown {
right: -1rem;
min-width: 180px;
}
}
.project-card {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 0.75rem;
padding: 1.5rem;
transition: all 0.3s ease;
cursor: pointer;
}
.project-card:hover {
background: #f1f5f9;
border-color: #cbd5e1;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.project-card.inactive {
opacity: 0.8;
background: #f8f9fa;
border-color: #e9ecef;
border-left: 4px solid #ef4444;
position: relative;
}
.project-card.inactive:hover {
background: #f1f3f4;
border-color: #dee2e6;
}
/* 비활성화 오버레이 */
.inactive-overlay {
position: absolute;
top: 0;
right: 0;
z-index: 10;
}
.inactive-badge {
background: linear-gradient(135deg, #ef4444, #dc2626);
color: white;
padding: 0.25rem 0.75rem;
border-radius: 0 0.75rem 0 0.5rem;
font-size: 0.75rem;
font-weight: 600;
box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}
/* 비활성 라벨 */
.inactive-label {
color: #ef4444;
font-size: 0.8rem;
font-weight: 600;
margin-left: 0.5rem;
background: rgba(239, 68, 68, 0.1);
padding: 0.125rem 0.5rem;
border-radius: 0.25rem;
}
/* 비활성 안내 */
.inactive-notice {
color: #f59e0b;
font-size: 0.75rem;
font-weight: 500;
background: rgba(245, 158, 11, 0.1);
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
border: 1px solid rgba(245, 158, 11, 0.2);
display: inline-block;
margin-top: 0.25rem;
}
.project-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 1rem;
}
.project-info {
flex: 1;
}
.project-job-no {
font-size: 0.75rem;
color: #6b7280;
font-weight: 500;
margin-bottom: 0.25rem;
}
.project-name {
font-size: 1rem;
font-weight: 600;
color: #1f2937;
margin: 0 0 0.5rem 0;
line-height: 1.4;
}
.project-meta {
display: flex;
flex-direction: column;
gap: 0.25rem;
font-size: 0.75rem;
color: #6b7280;
}
.project-actions {
display: flex;
gap: 0.5rem;
}
.btn-edit, .btn-delete {
padding: 0.375rem 0.75rem;
border: none;
border-radius: 0.375rem;
font-size: 0.75rem;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
}
.btn-edit {
background: #3b82f6;
color: white;
}
.btn-edit:hover {
background: #2563eb;
}
.btn-delete {
background: #ef4444;
color: white;
}
.btn-delete:hover {
background: #dc2626;
}
/* Empty State */
.empty-state {
text-align: center;
padding: 3rem 2rem;
color: #6b7280;
}
.empty-state .empty-icon {
font-size: 4rem;
margin-bottom: 1rem;
opacity: 0.5;
}
.empty-state h3 {
margin: 0 0 0.5rem 0;
color: #374151;
font-size: 1.25rem;
}
.empty-state p {
margin: 0 0 1.5rem 0;
font-size: 0.875rem;
}
/* 모달 스타일 */
.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;
padding: 1rem;
}
.modal-container {
background: white;
border-radius: 1rem;
max-width: 600px;
width: 100%;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem;
border-bottom: 1px solid #e5e7eb;
}
.modal-header h2 {
margin: 0;
font-size: 1.25rem;
font-weight: 600;
color: #1f2937;
}
.modal-close-btn {
background: none;
border: none;
font-size: 1.5rem;
color: #6b7280;
cursor: pointer;
padding: 0.25rem;
border-radius: 0.25rem;
transition: all 0.3s ease;
}
.modal-close-btn:hover {
background: #f3f4f6;
color: #374151;
}
.modal-body {
padding: 1.5rem;
}
.modal-footer {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem;
border-top: 1px solid #e5e7eb;
gap: 1rem;
}
/* 폼 스타일 */
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
margin-bottom: 1rem;
}
.form-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.form-label {
font-size: 0.875rem;
font-weight: 500;
color: #374151;
}
.form-control {
padding: 0.75rem;
border: 1px solid #d1d5db;
border-radius: 0.5rem;
font-size: 0.875rem;
transition: all 0.3s ease;
}
.form-control:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
/* 반응형 디자인 */
@media (max-width: 1024px) {
.dashboard-header {
padding: 1rem;
}
.dashboard-main {
padding: 1.5rem;
}
.page-header {
flex-direction: column;
align-items: flex-start;
gap: 1rem;
}
.projects-grid {
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
}
@media (max-width: 768px) {
.header-center {
display: none;
}
.company-info {
display: none;
}
.page-title {
font-size: 2rem;
}
.page-actions {
flex-direction: column;
}
.search-bar {
flex-direction: column;
}
.filter-options {
flex-direction: column;
}
.projects-grid {
grid-template-columns: 1fr;
}
.form-row {
grid-template-columns: 1fr;
}
.project-stats {
flex-direction: column;
gap: 0.75rem;
align-items: stretch;
}
.stat-item {
justify-content: center;
}
}
@media (max-width: 480px) {
.dashboard-header {
padding: 0.75rem;
}
.dashboard-main {
padding: 1rem;
}
.page-title {
font-size: 1.75rem;
}
.search-section,
.projects-section {
padding: 1rem;
}
.modal-container {
margin: 0.5rem;
max-height: 95vh;
}
}
/* 작업자 상태 토글 버튼 스타일 */
.btn-toggle {
background: none;
border: 2px solid;
border-radius: 50%;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 1rem;
transition: all 0.2s ease;
margin-right: 0.25rem;
}
.btn-deactivate {
border-color: #ef4444;
color: #ef4444;
background: rgba(239, 68, 68, 0.1);
}
.btn-deactivate:hover {
background: #ef4444;
color: white;
transform: scale(1.05);
}
.btn-activate {
border-color: #10b981;
color: #10b981;
background: rgba(16, 185, 129, 0.1);
}
.btn-activate:hover {
background: #10b981;
color: white;
transform: scale(1.05);
}