Files
tk-factory-services/tksafety/web/static/css/tksafety.css
Hyungi Ahn fe5f7cd155 feat(ux): 전체 시스템 모바일 UX 개선 — 햄버거메뉴·필터반응형·터치타겟·iOS줌방지
7개 시스템(tkpurchase/tksafety/tksupport/tkuser/system1/system2/system3)의
모바일 사용성 일괄 개선. system1(tkfb)의 모바일 메뉴 패턴을 3개 신규 시스템에 적용.

주요 변경:
- 모바일 햄버거 메뉴: tkpurchase/tksafety/tksupport에 toggleMobileMenu+overlay 추가
- 필터 반응형: 768px 이하 2열 그리드 전환 (filter-bar/filter-actions 클래스)
- 터치 타겟 44px: 테이블 액션 버튼 36px+gap, tksafety ±버튼 w-11
- iOS 줌 방지: input/select/textarea font-size 16px
- tkuser: 탭 가로스크롤+fade힌트, 사이드바·grid·드롭다운 반응형
- system1: 대시보드 인라인 width 제거, 이동설비 그리드 1열
- system2: 사진그리드 4열, 유형버튼 2열 (480px 이하)
- system3: 카드 내 액션 버튼 stopPropagation 추가
- 캐시 무효화: 전체 HTML ?v=2026031401

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 17:57:47 +09:00

114 lines
4.6 KiB
CSS

/* tksafety global styles */
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f8fafc; margin: 0; }
.fade-in { opacity: 0; transition: opacity 0.3s; }
.fade-in.visible { opacity: 1; }
/* Input */
.input-field { border: 1px solid #e2e8f0; transition: border-color 0.15s; outline: none; }
.input-field:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
/* Toast */
.toast-message { transition: opacity 0.3s; }
/* Nav active */
.nav-link.active { background: rgba(59,130,246,0.15); color: #2563eb; font-weight: 600; }
/* Stat card */
.stat-card { background: white; border-radius: 0.75rem; padding: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.stat-card .stat-label { font-size: 0.8rem; color: #6b7280; margin-top: 0.25rem; }
/* Table */
.visit-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.visit-table th { background: #f1f5f9; padding: 0.625rem 0.75rem; text-align: left; font-weight: 600; color: #475569; white-space: nowrap; border-bottom: 2px solid #e2e8f0; }
.visit-table td { padding: 0.625rem 0.75rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.visit-table tr:hover { background: #f8fafc; }
/* Badge */
.badge { display: inline-flex; align-items: center; padding: 0.125rem 0.5rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; }
.badge-green { background: #ecfdf5; color: #059669; }
.badge-blue { background: #eff6ff; color: #2563eb; }
.badge-amber { background: #fffbeb; color: #d97706; }
.badge-red { background: #fef2f2; color: #dc2626; }
.badge-gray { background: #f3f4f6; color: #6b7280; }
/* Purpose badges */
.purpose-day_labor { background: #dbeafe; color: #1d4ed8; }
.purpose-equipment_repair { background: #fef3c7; color: #92400e; }
.purpose-inspection { background: #ede9fe; color: #6d28d9; }
.purpose-delivery { background: #d1fae5; color: #065f46; }
.purpose-safety_audit { background: #fee2e2; color: #991b1b; }
.purpose-client_audit { background: #fce7f3; color: #9d174d; }
.purpose-construction { background: #e0e7ff; color: #3730a3; }
.purpose-other { background: #f3f4f6; color: #374151; }
/* Collapsible */
.collapsible-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.collapsible-content.open { max-height: 500px; }
/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 1rem; }
.modal-content { background: white; border-radius: 0.75rem; max-width: 40rem; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
/* Safety warning */
.safety-warning { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
/* Checklist tabs */
.checklist-tab { border-bottom-color: transparent; color: #6b7280; }
.checklist-tab:hover { color: #374151; background: #f9fafb; }
.checklist-tab.active { border-bottom-color: #2563eb; color: #2563eb; font-weight: 600; }
/* Responsive */
@media (max-width: 768px) {
.stat-card .stat-value { font-size: 1.25rem; }
.visit-table { font-size: 0.8rem; }
.visit-table th, .visit-table td { padding: 0.5rem; }
.hide-mobile { display: none; }
}
/* Mobile menu */
#mobileOverlay { z-index: 30; }
#sideNav { transition: transform 0.3s ease; }
@media (max-width: 1023px) {
#sideNav {
position: fixed; top: 3.5rem; left: 0; bottom: 0;
width: 14rem; background: white; z-index: 40;
transform: translateX(-100%);
box-shadow: 2px 0 8px rgba(0,0,0,0.1);
padding: 0.5rem; overflow-y: auto;
display: flex !important; flex-direction: column; gap: 0.25rem;
}
#sideNav.mobile-open { transform: translateX(0); }
}
/* Filter responsive */
@media (max-width: 768px) {
.filter-bar {
display: grid !important; grid-template-columns: 1fr 1fr;
gap: 0.5rem; align-items: end;
}
.filter-bar > div { width: 100%; }
.filter-bar > div > input,
.filter-bar > div > select { width: 100%; }
.filter-actions {
grid-column: 1 / -1; display: flex; gap: 0.5rem;
}
.filter-actions > * { flex: 1; }
}
/* Table action button touch targets */
@media (max-width: 768px) {
.visit-table td:last-child button,
.visit-table td:last-child a {
display: inline-flex; align-items: center; justify-content: center;
min-width: 36px; min-height: 36px; padding: 6px;
}
.visit-table td:last-child { gap: 2px; display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; }
}
/* iOS zoom prevention */
@media (max-width: 768px) {
input, select, textarea { font-size: 16px !important; }
}