security: 보안 강제 시스템 구축 + 하드코딩 비밀번호 제거

보안 감사 결과 CRITICAL 2건, HIGH 5건 발견 → 수정 완료 + 자동화 구축.

[보안 수정]
- issue-view.js: 하드코딩 비밀번호 → crypto.getRandomValues() 랜덤 생성
- pushSubscriptionController.js: ntfy 비밀번호 → process.env.NTFY_SUB_PASSWORD
- DEPLOY-GUIDE.md/PROGRESS.md/migration SQL: 평문 비밀번호 → placeholder
- docker-compose.yml/.env.example: NTFY_SUB_PASSWORD 환경변수 추가

[보안 강제 시스템 - 신규]
- scripts/security-scan.sh: 8개 규칙 (CRITICAL 2, HIGH 4, MEDIUM 2)
  3모드(staged/all/diff), severity, .securityignore, MEDIUM 임계값
- .githooks/pre-commit: 로컬 빠른 피드백
- .githooks/pre-receive-server.sh: Gitea 서버 최종 차단
  bypass 거버넌스([SECURITY-BYPASS: 사유] + 사용자 제한 + 로그)
- SECURITY-CHECKLIST.md: 10개 카테고리 자동/수동 구분
- docs/SECURITY-GUIDE.md: 운영자 가이드 (워크플로우, bypass, FAQ)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-04-10 09:44:21 +09:00
parent bbffa47a9d
commit ba9ef32808
257 changed files with 786 additions and 18 deletions

View File

@@ -0,0 +1,176 @@
/* ai-assistant.css — AI 어시스턴트 페이지 전용 스타일 */
/* 페이드인 애니메이션 */
.fade-in { opacity: 0; animation: fadeIn 0.5s ease-in forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.header-fade-in { opacity: 0; animation: headerFadeIn 0.6s ease-out forwards; }
@keyframes headerFadeIn { to { opacity: 1; transform: translateY(0); } from { transform: translateY(-10px); } }
.content-fade-in { opacity: 0; animation: contentFadeIn 0.7s ease-out 0.2s forwards; }
@keyframes contentFadeIn { to { opacity: 1; transform: translateY(0); } from { transform: translateY(20px); } }
/* 채팅 컨테이너 */
.chat-container {
max-height: 500px;
overflow-y: auto;
scroll-behavior: smooth;
}
.chat-container::-webkit-scrollbar {
width: 6px;
}
.chat-container::-webkit-scrollbar-track {
background: #f1f5f9;
border-radius: 3px;
}
.chat-container::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 3px;
}
.chat-container::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}
/* 채팅 말풍선 */
.chat-bubble {
max-width: 85%;
animation: bubbleIn 0.3s ease-out;
}
@keyframes bubbleIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.chat-bubble-user {
background: #7c3aed;
color: white;
border-radius: 18px 18px 4px 18px;
padding: 10px 16px;
margin-left: auto;
}
.chat-bubble-ai {
background: #f1f5f9;
color: #1e293b;
border-radius: 18px 18px 18px 4px;
padding: 10px 16px;
}
/* AI 답변 마크다운 스타일 */
.chat-bubble-ai .prose { color: #1e293b; }
.chat-bubble-ai .prose h1,
.chat-bubble-ai .prose h2,
.chat-bubble-ai .prose h3 { font-size: 0.95em; font-weight: 700; margin: 0.8em 0 0.3em; color: #334155; }
.chat-bubble-ai .prose p { margin: 0.4em 0; }
.chat-bubble-ai .prose ul,
.chat-bubble-ai .prose ol { margin: 0.3em 0; padding-left: 1.4em; }
.chat-bubble-ai .prose li { margin: 0.15em 0; }
.chat-bubble-ai .prose strong { color: #7c3aed; }
.chat-bubble-ai .prose code { background: #e2e8f0; padding: 0.1em 0.3em; border-radius: 3px; font-size: 0.85em; }
.chat-bubble-ai .prose blockquote { border-left: 3px solid #7c3aed; padding-left: 0.8em; margin: 0.5em 0; color: #64748b; }
.chat-bubble-ai .prose hr { border-color: #e2e8f0; margin: 0.6em 0; }
.chat-bubble-ai .source-link {
color: #7c3aed;
cursor: pointer;
text-decoration: underline;
text-decoration-style: dotted;
}
.chat-bubble-ai .source-link:hover {
color: #6d28d9;
text-decoration-style: solid;
}
/* 로딩 도트 애니메이션 */
.typing-indicator {
display: flex;
gap: 4px;
padding: 12px 16px;
}
.typing-dot {
width: 8px;
height: 8px;
background: #94a3b8;
border-radius: 50%;
animation: typingBounce 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
40% { transform: scale(1); opacity: 1; }
}
/* 빠른 질문 버튼 */
.quick-question-btn {
transition: all 0.2s ease;
border: 1px solid #e2e8f0;
}
.quick-question-btn:hover {
border-color: #7c3aed;
background: #faf5ff;
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
}
/* 상태 카드 */
.status-card {
transition: all 0.2s ease;
}
.status-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
/* 섹션 카드 */
.section-card {
transition: all 0.2s ease;
}
/* 결과 아이템 */
.result-item {
transition: all 0.15s ease;
cursor: pointer;
}
.result-item:hover {
background: #f8fafc;
border-color: #7c3aed;
}
/* 모바일 반응형 */
@media (max-width: 768px) {
.chat-container {
max-height: 400px;
}
.chat-bubble {
max-width: 92%;
}
button, a, [onclick], select {
min-height: 44px;
min-width: 44px;
}
body {
padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important;
}
}

View File

@@ -0,0 +1,49 @@
/* issue-view.css — 부적합 조회 페이지 전용 스타일 */
body {
background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
min-height: 100vh;
}
.glass-effect {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.input-field {
background: white;
border: 1px solid #e5e7eb;
transition: all 0.2s;
}
.input-field:focus {
outline: none;
border-color: #60a5fa;
box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}
.line-clamp-2 {
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.nav-link {
color: #6b7280;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
transition: all 0.2s;
text-decoration: none;
}
.nav-link:hover {
background-color: #f3f4f6;
color: #3b82f6;
}
.nav-link.active {
background-color: #3b82f6;
color: white;
}

View File

@@ -0,0 +1,16 @@
/* issues-archive.css — 폐기함 페이지 전용 스타일 */
.archived-card {
border-left: 4px solid #6b7280;
background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}
.completed-card {
border-left: 4px solid #10b981;
background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
}
.chart-container {
position: relative;
height: 300px;
}

View File

@@ -0,0 +1,73 @@
/* issues-dashboard.css — 현황판 페이지 전용 스타일 */
/* 대시보드 페이지는 @keyframes 기반 애니메이션 사용 (공통 CSS와 다른 방식) */
.fade-in { opacity: 0; animation: fadeIn 0.5s ease-in forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.header-fade-in { opacity: 0; animation: headerFadeIn 0.6s ease-out forwards; }
@keyframes headerFadeIn { to { opacity: 1; transform: translateY(0); } from { transform: translateY(-10px); } }
.content-fade-in { opacity: 0; animation: contentFadeIn 0.7s ease-out 0.2s forwards; }
@keyframes contentFadeIn { to { opacity: 1; transform: translateY(0); } from { transform: translateY(20px); } }
/* 대시보드 카드 스타일 */
.dashboard-card {
transition: all 0.2s ease;
background: #ffffff;
border-left: 4px solid #64748b;
}
.dashboard-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
/* 이슈 카드 스타일 (대시보드 전용 오버라이드) */
.issue-card {
transition: all 0.2s ease;
border-left: 4px solid transparent;
background: #ffffff;
}
.issue-card:hover {
transform: translateY(-2px);
border-left-color: #475569;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.issue-card label {
font-weight: 600;
color: #374151;
}
.issue-card .bg-gray-50 {
background-color: #f9fafb;
border: 1px solid #e5e7eb;
transition: all 0.2s ease;
}
.issue-card .bg-gray-50:hover {
background-color: #f3f4f6;
}
.issue-card .fas.fa-image:hover {
transform: scale(1.2);
color: #3b82f6;
}
/* 진행 중 애니메이션 */
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.animate-pulse {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
/* 반응형 그리드 */
.dashboard-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
}

View File

@@ -0,0 +1,6 @@
/* issues-inbox.css — 수신함 페이지 전용 스타일 */
.issue-card.unread {
border-left-color: #3b82f6;
background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

View File

@@ -0,0 +1,183 @@
/* issues-management.css — 관리함 페이지 전용 스타일 */
/* 액션 버튼 */
.action-btn {
transition: all 0.2s ease;
}
.action-btn:hover {
transform: scale(1.05);
}
/* 모달 블러 */
.modal {
backdrop-filter: blur(4px);
}
/* 이슈 테이블 컬럼 헤더 */
.issue-table th {
background-color: #f9fafb;
font-weight: 600;
color: #374151;
font-size: 0.875rem;
white-space: nowrap;
}
.issue-table tbody tr:hover {
background-color: #f9fafb;
}
/* 컬럼별 너비 조정 */
.col-no { min-width: 60px; }
.col-project { min-width: 120px; }
.col-content { min-width: 250px; max-width: 300px; }
.col-cause { min-width: 100px; }
.col-solution { min-width: 200px; max-width: 250px; }
.col-department { min-width: 100px; }
.col-person { min-width: 120px; }
.col-date { min-width: 120px; }
.col-confirmer { min-width: 120px; }
.col-comment { min-width: 200px; max-width: 250px; }
.col-status { min-width: 100px; }
.col-photos { min-width: 150px; }
.col-completion { min-width: 80px; }
.col-actions { min-width: 120px; }
/* 이슈 사진 */
.issue-photo {
width: 60px;
height: 40px;
object-fit: cover;
border-radius: 0.375rem;
cursor: pointer;
margin: 2px;
}
.photo-container {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
/* 편집 가능한 필드 스타일 */
.editable-field {
min-width: 100%;
padding: 4px 8px;
border: 1px solid #d1d5db;
border-radius: 4px;
font-size: 0.875rem;
}
.editable-field:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 1px #3b82f6;
}
.text-wrap {
white-space: normal;
word-wrap: break-word;
line-height: 1.4;
}
.btn-sm {
padding: 4px 8px;
font-size: 0.75rem;
border-radius: 4px;
margin: 2px;
white-space: nowrap;
min-width: fit-content;
}
/* 관리함 전용 collapse-content (max-height 기반 트랜지션) */
.collapse-content {
max-height: 5000px;
overflow: visible;
transition: max-height 0.3s ease-out;
}
.collapse-content.collapsed {
max-height: 0;
overflow: hidden;
}
/* 관리함 전용 이슈 카드 오버라이드 */
.issue-card label {
font-weight: 500;
}
.issue-card input:focus,
.issue-card select:focus,
.issue-card textarea:focus {
transform: scale(1.01);
transition: transform 0.1s ease;
}
.issue-card .bg-gray-50 {
border-left: 4px solid #e5e7eb;
}
/* 카드 내 아이콘 스타일 */
.issue-card i {
width: 16px;
text-align: center;
}
/* ===== 카드 헤더 반응형 ===== */
.issue-card-header {
display: flex;
flex-direction: column;
gap: 12px;
margin-bottom: 16px;
}
.issue-card-header .header-top {
display: flex;
align-items: flex-start;
justify-content: space-between;
flex-wrap: wrap;
gap: 8px;
}
.issue-card-header .header-meta {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
}
.issue-card-header .header-actions {
display: flex;
flex-wrap: wrap;
gap: 6px;
flex-shrink: 0;
}
.issue-card-header .header-actions button {
white-space: nowrap;
}
/* 중간 화면에서 버튼 줄바꿈 */
@media (max-width: 1280px) {
.issue-card-header .header-top {
flex-direction: column;
}
.issue-card-header .header-actions {
width: 100%;
justify-content: flex-end;
}
}
/* 완료됨 카드 3열 → 좁은 화면에서 적응 */
@media (max-width: 1280px) and (min-width: 769px) {
.completed-card-grid {
grid-template-columns: 1fr 1fr !important;
}
}
@media (max-width: 960px) and (min-width: 769px) {
.completed-card-grid {
grid-template-columns: 1fr !important;
}
}

View File

@@ -0,0 +1,489 @@
/* m-common.css — TKQC 모바일 공통 스타일 */
/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #f3f4f6;
color: #1f2937;
padding-top: 48px;
padding-bottom: calc(64px + env(safe-area-inset-bottom));
-webkit-overflow-scrolling: touch;
overscroll-behavior-y: contain;
}
input, select, textarea, button { font-family: inherit; font-size: 16px; touch-action: manipulation; }
button { cursor: pointer; border: none; background: none; padding: 0; }
/* ===== Fixed Header ===== */
.m-header {
position: fixed; top: 0; left: 0; right: 0;
height: 48px; z-index: 100;
background: #fff; border-bottom: 1px solid #e5e7eb;
display: flex; align-items: center; justify-content: space-between;
padding: 0 16px;
box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.m-header-title {
font-size: 17px; font-weight: 700; color: #111827;
display: flex; align-items: center; gap: 8px;
}
.m-header-actions { display: flex; align-items: center; gap: 8px; }
.m-header-btn {
width: 36px; height: 36px; border-radius: 8px;
display: flex; align-items: center; justify-content: center;
color: #6b7280; transition: background 0.15s;
}
.m-header-btn:active { background: #f3f4f6; }
/* ===== Bottom Navigation ===== */
.m-bottom-nav {
position: fixed; bottom: 0; left: 0; right: 0;
height: calc(64px + env(safe-area-inset-bottom));
background: #fff; border-top: 1px solid #e5e7eb;
display: flex; z-index: 100;
padding-bottom: env(safe-area-inset-bottom);
box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}
.m-nav-item {
flex: 1; display: flex; flex-direction: column;
align-items: center; justify-content: center;
text-decoration: none; color: #9ca3af;
font-size: 10px; font-weight: 500; gap: 2px;
position: relative; min-height: 44px;
transition: color 0.15s;
}
.m-nav-item i { font-size: 20px; }
.m-nav-item.active { color: #2563eb; font-weight: 700; }
.m-nav-item.active::before {
content: ''; position: absolute; top: 2px;
width: 4px; height: 4px; border-radius: 50%; background: #2563eb;
}
.m-nav-item.highlight { color: #f97316; }
.m-nav-item.highlight.active { color: #f97316; }
.m-nav-item:active { opacity: 0.7; }
/* ===== Stats Bar ===== */
.m-stats-bar {
display: flex; gap: 8px; padding: 12px 16px;
overflow-x: auto; -webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
.m-stats-bar::-webkit-scrollbar { display: none; }
.m-stat-pill {
flex-shrink: 0; padding: 8px 14px; border-radius: 20px;
background: #fff; border: 1px solid #e5e7eb;
display: flex; align-items: center; gap: 6px;
font-size: 13px; font-weight: 500; color: #6b7280;
box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.m-stat-pill .m-stat-value {
font-weight: 700; font-size: 15px; color: #111827;
}
.m-stat-pill.blue { border-color: #93c5fd; background: #eff6ff; }
.m-stat-pill.blue .m-stat-value { color: #2563eb; }
.m-stat-pill.green { border-color: #86efac; background: #f0fdf4; }
.m-stat-pill.green .m-stat-value { color: #16a34a; }
.m-stat-pill.amber { border-color: #fcd34d; background: #fffbeb; }
.m-stat-pill.amber .m-stat-value { color: #d97706; }
.m-stat-pill.red { border-color: #fca5a5; background: #fef2f2; }
.m-stat-pill.red .m-stat-value { color: #dc2626; }
.m-stat-pill.purple { border-color: #c4b5fd; background: #f5f3ff; }
.m-stat-pill.purple .m-stat-value { color: #7c3aed; }
.m-stat-pill.slate { border-color: #cbd5e1; background: #f8fafc; }
.m-stat-pill.slate .m-stat-value { color: #475569; }
/* ===== Project Filter ===== */
.m-filter-bar {
padding: 0 16px 12px;
}
.m-filter-select {
width: 100%; padding: 10px 12px; border-radius: 10px;
border: 1px solid #d1d5db; background: #fff;
font-size: 14px; color: #374151;
appearance: none; -webkit-appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
background-repeat: no-repeat; background-position: right 12px center;
}
/* ===== Tab Bar ===== */
.m-tab-bar {
display: flex; background: #fff; border-bottom: 1px solid #e5e7eb;
padding: 0 16px;
}
.m-tab {
flex: 1; text-align: center; padding: 12px 0;
font-size: 14px; font-weight: 600; color: #9ca3af;
border-bottom: 2px solid transparent;
transition: color 0.2s, border-color 0.2s;
}
.m-tab.active { color: #2563eb; border-bottom-color: #2563eb; }
.m-tab:active { opacity: 0.7; }
/* ===== Date Group ===== */
.m-date-group { padding: 0 16px; margin-bottom: 8px; }
.m-date-header {
display: flex; align-items: center; gap: 8px;
padding: 10px 0; font-size: 13px; font-weight: 600; color: #6b7280;
}
.m-date-header i { font-size: 10px; color: #9ca3af; transition: transform 0.2s; }
.m-date-header .m-date-count {
font-size: 12px; font-weight: 400; color: #9ca3af;
}
.m-date-header.collapsed i { transform: rotate(-90deg); }
/* ===== Issue Card ===== */
.m-card {
background: #fff; border-radius: 12px; margin: 0 16px 10px;
border: 1px solid #e5e7eb; overflow: hidden;
box-shadow: 0 1px 3px rgba(0,0,0,0.04);
transition: transform 0.1s;
}
.m-card:active { transform: scale(0.985); }
.m-card-header {
padding: 12px 14px 8px; display: flex; align-items: center;
justify-content: space-between;
}
.m-card-no {
font-size: 15px; font-weight: 800; color: #2563eb;
}
.m-card-project {
font-size: 12px; color: #6b7280; margin-left: 8px;
}
.m-card-title {
padding: 0 14px 8px; font-size: 15px; font-weight: 600; color: #111827;
line-height: 1.4;
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
overflow: hidden;
}
.m-card-body { padding: 0 14px 12px; }
.m-card-footer {
padding: 8px 14px; border-top: 1px solid #f3f4f6;
display: flex; align-items: center; justify-content: space-between;
font-size: 12px; color: #9ca3af;
}
/* Card border accents */
.m-card.border-blue { border-left: 4px solid #3b82f6; }
.m-card.border-green { border-left: 4px solid #22c55e; }
.m-card.border-red { border-left: 4px solid #ef4444; }
.m-card.border-purple { border-left: 4px solid #8b5cf6; }
.m-card.border-amber { border-left: 4px solid #f59e0b; }
/* ===== Status Badge ===== */
.m-badge {
display: inline-flex; align-items: center; gap: 4px;
padding: 3px 8px; border-radius: 10px;
font-size: 11px; font-weight: 600;
}
.m-badge.in-progress { background: #dbeafe; color: #1d4ed8; }
.m-badge.pending-completion { background: #ede9fe; color: #6d28d9; }
.m-badge.overdue { background: #fee2e2; color: #b91c1c; }
.m-badge.completed { background: #dcfce7; color: #15803d; }
.m-badge.review { background: #dbeafe; color: #1d4ed8; }
.m-badge.urgent { background: #ffedd5; color: #c2410c; }
/* ===== Photo Thumbnails ===== */
.m-photo-row {
display: flex; gap: 6px; overflow-x: auto;
scrollbar-width: none; padding: 4px 0;
}
.m-photo-row::-webkit-scrollbar { display: none; }
.m-photo-thumb {
width: 60px; height: 60px; flex-shrink: 0; border-radius: 8px;
object-fit: cover; border: 1px solid #e5e7eb;
}
/* ===== Action Buttons ===== */
.m-action-row {
display: flex; gap: 8px; padding: 8px 14px 12px;
}
.m-action-btn {
flex: 1; padding: 10px 0; border-radius: 10px;
font-size: 13px; font-weight: 600; color: #fff;
text-align: center; min-height: 44px;
display: flex; align-items: center; justify-content: center; gap: 6px;
transition: opacity 0.15s;
}
.m-action-btn:active { opacity: 0.8; }
.m-action-btn.red { background: #ef4444; }
.m-action-btn.blue { background: #3b82f6; }
.m-action-btn.green { background: #22c55e; }
.m-action-btn.purple { background: #8b5cf6; }
/* ===== Bottom Sheet ===== */
.m-sheet-overlay {
position: fixed; inset: 0; background: rgba(0,0,0,0.5);
z-index: 200; opacity: 0; visibility: hidden;
transition: opacity 0.25s, visibility 0.25s;
}
.m-sheet-overlay.open { opacity: 1; visibility: visible; }
.m-sheet {
position: fixed; bottom: 0; left: 0; right: 0;
z-index: 201; background: #fff;
border-radius: 16px 16px 0 0;
max-height: 90vh; overflow-y: auto;
-webkit-overflow-scrolling: touch;
transform: translateY(100%);
transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
padding-bottom: env(safe-area-inset-bottom);
box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
}
.m-sheet.open { transform: translateY(0); }
.m-sheet-handle {
width: 36px; height: 4px; border-radius: 2px;
background: #d1d5db; margin: 10px auto 4px;
}
.m-sheet-header {
position: sticky; top: 0; background: #fff;
padding: 8px 16px 12px; z-index: 1;
border-radius: 16px 16px 0 0;
display: flex; align-items: center; justify-content: space-between;
border-bottom: 1px solid #f3f4f6;
}
.m-sheet-title { font-size: 17px; font-weight: 700; color: #111827; }
.m-sheet-close {
width: 32px; height: 32px; border-radius: 16px;
display: flex; align-items: center; justify-content: center;
color: #9ca3af; font-size: 18px; background: #f3f4f6;
}
.m-sheet-close:active { background: #e5e7eb; }
.m-sheet-body { padding: 16px; }
.m-sheet-footer {
position: sticky; bottom: 0; background: #fff;
padding: 12px 16px; border-top: 1px solid #e5e7eb;
}
/* ===== Form Inputs ===== */
.m-input, .m-select, .m-textarea {
width: 100%; padding: 12px; border-radius: 10px;
border: 1px solid #d1d5db; background: #fff;
font-size: 16px; color: #111827;
min-height: 44px;
transition: border-color 0.15s;
}
.m-input:focus, .m-select:focus, .m-textarea:focus {
outline: none; border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.m-textarea { resize: vertical; min-height: 88px; }
.m-label {
display: block; font-size: 13px; font-weight: 600;
color: #374151; margin-bottom: 6px;
}
.m-form-group { margin-bottom: 16px; }
/* ===== Submit Button ===== */
.m-submit-btn {
width: 100%; padding: 14px; border-radius: 12px;
font-size: 15px; font-weight: 700; color: #fff;
background: #3b82f6; min-height: 48px;
display: flex; align-items: center; justify-content: center; gap: 8px;
transition: opacity 0.15s;
}
.m-submit-btn:active { opacity: 0.8; }
.m-submit-btn:disabled { opacity: 0.5; }
.m-submit-btn.green { background: #22c55e; }
.m-submit-btn.red { background: #ef4444; }
/* ===== Toast ===== */
.m-toast {
position: fixed; bottom: calc(80px + env(safe-area-inset-bottom));
left: 50%; transform: translateX(-50%) translateY(20px);
padding: 12px 20px; border-radius: 12px;
font-size: 14px; font-weight: 500; color: #fff;
background: #1f2937; z-index: 300;
opacity: 0; transition: opacity 0.3s, transform 0.3s;
max-width: calc(100vw - 32px); text-align: center;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.m-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.m-toast.success { background: #16a34a; }
.m-toast.error { background: #dc2626; }
.m-toast.warning { background: #d97706; }
/* ===== Loading ===== */
.m-loading {
display: flex; align-items: center; justify-content: center;
padding: 40px; color: #9ca3af;
}
.m-loading .m-spinner {
width: 28px; height: 28px; border: 3px solid #e5e7eb;
border-top-color: #3b82f6; border-radius: 50%;
animation: m-spin 0.6s linear infinite;
}
@keyframes m-spin { to { transform: rotate(360deg); } }
.m-loading-overlay {
position: fixed; inset: 0; background: #fff; z-index: 150;
display: flex; flex-direction: column;
align-items: center; justify-content: center;
transition: opacity 0.3s;
}
.m-loading-overlay.hide { opacity: 0; pointer-events: none; }
.m-loading-overlay .m-spinner { width: 36px; height: 36px; }
.m-loading-overlay p { margin-top: 12px; color: #6b7280; font-size: 14px; }
/* ===== Empty State ===== */
.m-empty {
text-align: center; padding: 60px 20px; color: #9ca3af;
}
.m-empty i { font-size: 48px; margin-bottom: 12px; display: block; }
.m-empty p { font-size: 14px; line-height: 1.5; }
/* ===== Opinion / Comment Section ===== */
.m-opinions-toggle {
display: inline-flex; align-items: center; gap: 4px;
padding: 4px 10px; border-radius: 12px;
background: #f3f4f6; font-size: 12px; font-weight: 600;
color: #6b7280;
}
.m-opinions-toggle:active { background: #e5e7eb; }
.m-opinion-card {
padding: 10px; margin: 6px 0; border-radius: 10px;
border-left: 3px solid #22c55e; background: #f0fdf4;
}
.m-opinion-header {
display: flex; align-items: center; gap: 6px;
margin-bottom: 4px; font-size: 12px;
}
.m-opinion-avatar {
width: 22px; height: 22px; border-radius: 11px;
background: #3b82f6; color: #fff;
display: flex; align-items: center; justify-content: center;
font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.m-opinion-author { font-weight: 600; color: #111827; }
.m-opinion-time { color: #9ca3af; }
.m-opinion-text { font-size: 13px; color: #374151; line-height: 1.5; padding-left: 28px; white-space: pre-wrap; }
.m-opinion-actions {
display: flex; gap: 6px; padding-left: 28px; margin-top: 6px;
}
.m-opinion-action-btn {
padding: 3px 8px; border-radius: 6px;
font-size: 11px; font-weight: 500;
display: flex; align-items: center; gap: 3px;
}
.m-opinion-action-btn.comment-btn { background: #dbeafe; color: #1d4ed8; }
.m-opinion-action-btn.edit-btn { background: #dcfce7; color: #15803d; }
.m-opinion-action-btn.delete-btn { background: #fee2e2; color: #b91c1c; }
.m-opinion-action-btn.reply-btn { background: #dbeafe; color: #1d4ed8; }
/* Comment */
.m-comment {
margin: 4px 0 4px 28px; padding: 8px 10px; border-radius: 8px;
background: #fff; border: 1px solid #e5e7eb; font-size: 12px;
}
.m-comment-header {
display: flex; align-items: center; gap: 4px; margin-bottom: 2px;
}
.m-comment-avatar {
width: 18px; height: 18px; border-radius: 9px;
background: #9ca3af; color: #fff;
display: flex; align-items: center; justify-content: center;
font-size: 8px; font-weight: 700; flex-shrink: 0;
}
.m-comment-text { color: #374151; padding-left: 22px; }
/* Reply */
.m-reply {
margin: 3px 0 3px 50px; padding: 6px 8px; border-radius: 6px;
background: #eff6ff; font-size: 11px;
border-left: 2px solid #93c5fd;
}
.m-reply-header {
display: flex; align-items: center; gap: 3px; margin-bottom: 1px;
}
.m-reply-text { color: #374151; padding-left: 0; }
/* ===== Info Row ===== */
.m-info-row {
display: flex; align-items: center; gap: 6px;
font-size: 12px; color: #6b7280; margin: 2px 0;
}
.m-info-row i { width: 14px; text-align: center; }
/* ===== Collapsible Detail ===== */
.m-detail-toggle {
display: flex; align-items: center; gap: 4px;
font-size: 12px; color: #3b82f6; font-weight: 500;
padding: 4px 0;
}
.m-detail-content {
max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.m-detail-content.open { max-height: 2000px; }
/* ===== Completion Section ===== */
.m-completion-info {
background: #f5f3ff; border: 1px solid #ddd6fe;
border-radius: 10px; padding: 12px; margin-top: 8px;
}
/* ===== Management Fields (read-only display) ===== */
.m-field-display {
padding: 8px 10px; background: #f9fafb; border-radius: 8px;
border: 1px solid #e5e7eb; font-size: 13px; color: #374151;
min-height: 36px;
}
.m-field-display.empty { color: #9ca3af; font-style: italic; }
/* ===== Radio Group ===== */
.m-radio-group { display: flex; flex-direction: column; gap: 8px; }
.m-radio-item {
display: flex; align-items: center; gap: 10px;
padding: 12px; border-radius: 10px; border: 1px solid #e5e7eb;
background: #fff; min-height: 44px;
transition: border-color 0.15s, background 0.15s;
}
.m-radio-item.selected { border-color: #3b82f6; background: #eff6ff; }
.m-radio-item input[type="radio"] { width: 18px; height: 18px; accent-color: #3b82f6; }
/* ===== Photo Upload ===== */
.m-photo-upload {
border: 2px dashed #d1d5db; border-radius: 12px;
padding: 20px; text-align: center; color: #9ca3af;
transition: border-color 0.15s;
}
.m-photo-upload:active { border-color: #3b82f6; }
.m-photo-upload i { font-size: 28px; margin-bottom: 8px; }
.m-photo-upload p { font-size: 13px; }
.m-photo-preview {
width: 100%; max-height: 200px; object-fit: contain;
border-radius: 8px; margin-top: 8px;
}
/* ===== Fullscreen Photo Modal ===== */
.m-photo-modal {
position: fixed; inset: 0; z-index: 300;
background: rgba(0,0,0,0.9);
display: flex; align-items: center; justify-content: center;
opacity: 0; visibility: hidden;
transition: opacity 0.2s, visibility 0.2s;
}
.m-photo-modal.open { opacity: 1; visibility: visible; }
.m-photo-modal img {
max-width: 100%; max-height: 100%; object-fit: contain;
}
.m-photo-modal-close {
position: absolute; top: 12px; right: 12px;
width: 36px; height: 36px; border-radius: 18px;
background: rgba(0,0,0,0.5); color: #fff;
display: flex; align-items: center; justify-content: center;
font-size: 18px;
}
/* ===== Utility ===== */
.hidden { display: none !important; }
.text-ellipsis-2 {
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
overflow: hidden;
}
.text-ellipsis-3 {
display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
overflow: hidden;
}

View File

@@ -0,0 +1,297 @@
/* 모바일 캘린더 스타일 */
.mobile-calendar {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
user-select: none;
-webkit-user-select: none;
-webkit-touch-callout: none;
}
/* 빠른 선택 버튼들 */
.quick-select-buttons {
scrollbar-width: none;
-ms-overflow-style: none;
}
.quick-select-buttons::-webkit-scrollbar {
display: none;
}
.quick-btn {
flex-shrink: 0;
padding: 8px 16px;
background: #f3f4f6;
border: 1px solid #e5e7eb;
border-radius: 20px;
font-size: 14px;
font-weight: 500;
color: #374151;
transition: all 0.2s ease;
white-space: nowrap;
}
.quick-btn:hover,
.quick-btn:active {
background: #3b82f6;
color: white;
border-color: #3b82f6;
transform: scale(0.95);
}
.quick-btn.active {
background: #3b82f6;
color: white;
border-color: #3b82f6;
}
/* 캘린더 헤더 */
.calendar-header {
padding: 0 8px;
}
.nav-btn {
width: 40px;
height: 40px;
border-radius: 50%;
background: #f9fafb;
border: 1px solid #e5e7eb;
display: flex;
align-items: center;
justify-content: center;
color: #6b7280;
transition: all 0.2s ease;
}
.nav-btn:hover,
.nav-btn:active {
background: #3b82f6;
color: white;
border-color: #3b82f6;
transform: scale(0.9);
}
.month-year {
color: #1f2937;
font-weight: 600;
min-width: 120px;
text-align: center;
}
/* 요일 헤더 */
.weekdays {
margin-bottom: 8px;
}
.weekday {
text-align: center;
font-size: 12px;
font-weight: 600;
color: #6b7280;
padding: 8px 4px;
text-transform: uppercase;
}
.weekday:first-child {
color: #ef4444; /* 일요일 빨간색 */
}
.weekday:last-child {
color: #3b82f6; /* 토요일 파란색 */
}
/* 캘린더 그리드 */
.calendar-grid {
gap: 2px;
}
.calendar-day {
aspect-ratio: 1;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
font-weight: 500;
border-radius: 8px;
cursor: pointer;
transition: all 0.15s ease;
position: relative;
background: white;
border: 1px solid transparent;
min-height: 40px;
}
.calendar-day:hover {
background: #eff6ff;
border-color: #bfdbfe;
transform: scale(1.05);
}
.calendar-day:active {
transform: scale(0.95);
}
/* 다른 달 날짜 */
.calendar-day.other-month {
color: #d1d5db;
background: #f9fafb;
}
.calendar-day.other-month:hover {
background: #f3f4f6;
color: #9ca3af;
}
/* 오늘 날짜 */
.calendar-day.today {
background: #fef3c7;
color: #92400e;
font-weight: 700;
border-color: #f59e0b;
}
.calendar-day.today:hover {
background: #fde68a;
}
/* 선택된 날짜 */
.calendar-day.selected {
background: #dbeafe;
color: #1e40af;
border-color: #3b82f6;
}
/* 범위 시작/끝 */
.calendar-day.range-start,
.calendar-day.range-end {
background: #3b82f6;
color: white;
font-weight: 700;
}
.calendar-day.range-start:hover,
.calendar-day.range-end:hover {
background: #2563eb;
}
/* 범위 시작일에 표시 */
.calendar-day.range-start::before {
content: '';
position: absolute;
top: 2px;
left: 2px;
width: 6px;
height: 6px;
background: #10b981;
border-radius: 50%;
}
/* 범위 끝일에 표시 */
.calendar-day.range-end::after {
content: '';
position: absolute;
bottom: 2px;
right: 2px;
width: 6px;
height: 6px;
background: #ef4444;
border-radius: 50%;
}
/* 선택된 범위 표시 */
.selected-range {
border: 1px solid #bfdbfe;
animation: slideIn 0.3s ease;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.clear-btn {
width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
transition: all 0.2s ease;
}
.clear-btn:hover {
background: rgba(59, 130, 246, 0.1);
}
/* 사용법 안내 */
.usage-hint {
opacity: 0.7;
line-height: 1.4;
}
/* 터치 디바이스 최적화 */
@media (hover: none) and (pointer: coarse) {
.calendar-day {
min-height: 44px; /* 터치 타겟 최소 크기 */
}
.nav-btn {
min-width: 44px;
min-height: 44px;
}
.quick-btn {
min-height: 44px;
padding: 12px 16px;
}
}
/* 작은 화면 최적화 */
@media (max-width: 375px) {
.calendar-day {
font-size: 13px;
min-height: 36px;
}
.quick-btn {
padding: 6px 12px;
font-size: 13px;
}
.month-year {
font-size: 16px;
}
}
/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
.mobile-calendar {
color: #f9fafb;
}
.calendar-day {
background: #374151;
color: #f9fafb;
}
.calendar-day:hover {
background: #4b5563;
}
.nav-btn {
background: #374151;
color: #f9fafb;
border-color: #4b5563;
}
.quick-btn {
background: #374151;
color: #f9fafb;
border-color: #4b5563;
}
}

View File

@@ -0,0 +1,404 @@
/* tkqc-common.css — 부적합 관리 시스템 공통 스타일 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
/* ===== 로딩 오버레이 ===== */
.loading-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255, 255, 255, 0.9);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.loading-overlay.active {
opacity: 1;
visibility: visible;
}
/* ===== 날짜 그룹 ===== */
.date-group {
margin-bottom: 1.5rem;
}
.date-header {
cursor: pointer;
transition: all 0.2s ease;
}
.date-header:hover {
background-color: #f3f4f6 !important;
}
.collapse-content {
transition: all 0.3s ease;
}
.collapse-content.collapsed {
display: none;
}
/* ===== 우선순위 표시 ===== */
.priority-high { border-left-color: #ef4444 !important; }
.priority-medium { border-left-color: #f59e0b !important; }
.priority-low { border-left-color: #10b981 !important; }
/* ===== 상태 배지 ===== */
.badge {
display: inline-flex;
align-items: center;
padding: 0.25rem 0.75rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 500;
}
.badge-new { background: #dbeafe; color: #1e40af; }
.badge-processing { background: #fef3c7; color: #92400e; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-completed { background: #d1fae5; color: #065f46; }
.badge-archived { background: #f3f4f6; color: #374151; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
/* ===== 이슈 카드 ===== */
.issue-card {
transition: all 0.2s ease;
border-left: 4px solid transparent;
}
.issue-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
/* ===== 사진 프리뷰 ===== */
.photo-preview {
max-width: 150px;
max-height: 100px;
object-fit: cover;
border-radius: 8px;
cursor: pointer;
transition: transform 0.2s ease;
}
.photo-preview:hover {
transform: scale(1.05);
}
.photo-gallery {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-top: 8px;
}
/* ===== 사진 모달 ===== */
.photo-modal-overlay {
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: 10000;
}
.photo-modal-content {
position: relative;
max-width: 90%;
max-height: 90vh;
}
.photo-modal-content img {
max-width: 100%;
max-height: 90vh;
object-fit: contain;
border-radius: 8px;
}
.photo-modal-close {
position: absolute;
top: -12px;
right: -12px;
background: rgba(255, 255, 255, 0.9);
border: none;
border-radius: 50%;
width: 40px;
height: 40px;
cursor: pointer;
font-size: 18px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.photo-modal-close:hover {
background: white;
}
/* ===== 페이드인 애니메이션 ===== */
.fade-in {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
opacity: 1;
transform: translateY(0);
}
.header-fade-in {
opacity: 0;
transform: translateY(-10px);
transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.header-fade-in.visible {
opacity: 1;
transform: translateY(0);
}
.content-fade-in {
opacity: 0;
transform: translateY(30px);
transition: opacity 0.8s ease-out, transform 0.8s ease-out;
transition-delay: 0.2s;
}
.content-fade-in.visible {
opacity: 1;
transform: translateY(0);
}
/* ===== 프로그레스바 ===== */
.progress-bar {
background: #475569;
transition: width 0.8s ease;
}
/* ===== 모달 공통 ===== */
.modal-backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 50;
}
/* ===== 이슈 테이블 ===== */
.issue-table-container {
overflow-x: auto;
border: 1px solid #e5e7eb;
border-radius: 0.5rem;
margin-top: 0.5rem;
}
.issue-table {
min-width: 2000px;
width: 100%;
border-collapse: collapse;
}
.issue-table th,
.issue-table td {
padding: 0.75rem;
text-align: left;
border-bottom: 1px solid #f3f4f6;
vertical-align: top;
}
/* ===== 상태 보더 ===== */
.status-new { border-left-color: #3b82f6; }
.status-processing { border-left-color: #f59e0b; }
.status-pending { border-left-color: #8b5cf6; }
.status-completed { border-left-color: #10b981; }
/* ===== 탭 스크롤 인디케이터 ===== */
.tab-scroll-container {
position: relative;
overflow: hidden;
}
.tab-scroll-container::after {
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 40px;
background: linear-gradient(to right, transparent, white);
pointer-events: none;
opacity: 0;
transition: opacity 0.2s;
}
.tab-scroll-container.has-overflow::after {
opacity: 1;
}
.tab-scroll-inner {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
.tab-scroll-inner::-webkit-scrollbar {
display: none;
}
/* ===== 모바일 하단 네비게이션 ===== */
.tkqc-mobile-nav {
display: none;
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 64px;
background: #ffffff;
border-top: 1px solid #e5e7eb;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
z-index: 1000;
padding-bottom: env(safe-area-inset-bottom);
}
.tkqc-mobile-nav-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex: 1;
height: 100%;
text-decoration: none;
color: #6b7280;
font-size: 0.6875rem;
font-weight: 500;
cursor: pointer;
transition: color 0.2s;
-webkit-tap-highlight-color: transparent;
}
.tkqc-mobile-nav-item i {
font-size: 1.25rem;
margin-bottom: 0.25rem;
}
.tkqc-mobile-nav-item:active {
background: #f3f4f6;
}
.tkqc-mobile-nav-item.active {
color: #2563eb;
font-weight: 600;
}
.tkqc-mobile-nav-item.active i {
transform: scale(1.1);
}
/* ===== 모바일 반응형 ===== */
@media (max-width: 768px) {
/* 터치 타겟 최소 44px */
button, a, [onclick], select {
min-height: 44px;
min-width: 44px;
}
.tab-btn {
padding: 12px 16px;
font-size: 14px;
}
.photo-preview {
max-width: 80px;
max-height: 60px;
}
.photo-modal-content {
max-width: 95%;
}
.badge {
font-size: 0.65rem;
padding: 0.2rem 0.5rem;
}
/* 하단 네비게이션 표시 */
.tkqc-mobile-nav {
display: flex;
align-items: center;
justify-content: space-around;
}
body {
padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important;
}
/* 테이블 → 카드 변환 */
.issue-table {
min-width: unset;
}
.issue-table thead {
display: none;
}
.issue-table tr {
display: block;
margin-bottom: 1rem;
border-radius: 0.5rem;
padding: 0.75rem;
background: white;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
border-left: 4px solid #3b82f6;
}
.issue-table td {
display: flex;
justify-content: space-between;
padding: 0.25rem 0;
border-bottom: none;
}
.issue-table td::before {
content: attr(data-label);
font-weight: 600;
color: #374151;
margin-right: 1rem;
flex-shrink: 0;
}
/* 대시보드 그리드 모바일 */
.dashboard-grid {
grid-template-columns: 1fr;
}
/* 2x2 그리드를 1열로 */
.grid-cols-2 {
grid-template-columns: 1fr !important;
}
/* 이슈 카드 터치 최적화 */
.issue-card {
padding: 1rem;
}
.issue-card:hover {
transform: none;
}
}