- codes.html, code-management.js 삭제 (tasks.html에서 동일 기능 제공) - 사이드바에서 코드 관리 링크 제거 - daily-work-report, tbm, workplace-management JS 모듈 분리 - common/security.js 추가 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
737 lines
13 KiB
CSS
737 lines
13 KiB
CSS
/* daily-patrol.css - 일일순회점검 페이지 스타일 */
|
|
|
|
/* 점검 시작 영역 */
|
|
.patrol-start-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 2rem;
|
|
padding: 3rem 1.5rem;
|
|
background: var(--surface-color, #fff);
|
|
border-radius: 12px;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.patrol-start-section .btn-lg {
|
|
padding: 1.25rem 3rem;
|
|
font-size: 1.25rem;
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.patrol-start-section .btn-icon {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
/* 공장 선택 영역 */
|
|
.factory-selection-area {
|
|
padding: 2rem;
|
|
background: var(--surface-color, #fff);
|
|
border-radius: 12px;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.factory-selection-header {
|
|
text-align: center;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.factory-selection-header h3 {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
margin: 0 0 0.5rem;
|
|
}
|
|
|
|
.factory-selection-subtitle {
|
|
color: var(--text-secondary, #64748b);
|
|
margin: 0;
|
|
}
|
|
|
|
.factory-cards-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 1.5rem;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.factory-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 2rem 1.5rem;
|
|
background: var(--bg-color, #f8fafc);
|
|
border: 2px solid var(--border-color, #e2e8f0);
|
|
border-radius: 16px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.factory-card:hover {
|
|
border-color: var(--primary-color, #3b82f6);
|
|
background: #eff6ff;
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
|
|
}
|
|
|
|
.factory-card:active {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.factory-card-icon {
|
|
width: 80px;
|
|
height: 80px;
|
|
border-radius: 12px;
|
|
background: var(--surface-color, #fff);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 1rem;
|
|
overflow: hidden;
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.factory-card-icon img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.factory-card-name {
|
|
font-size: 1.125rem;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 오늘 점검 현황 요약 */
|
|
.today-status-summary {
|
|
display: flex;
|
|
gap: 1.5rem;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 1rem 2rem;
|
|
background: var(--bg-color, #f8fafc);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.status-card {
|
|
text-align: center;
|
|
padding: 1rem 1.5rem;
|
|
background: var(--surface-color, #fff);
|
|
border-radius: 8px;
|
|
min-width: 100px;
|
|
}
|
|
|
|
.status-label {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary, #64748b);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.status-value {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.status-value.completed {
|
|
color: var(--success-color, #16a34a);
|
|
}
|
|
|
|
.status-value.pending {
|
|
color: var(--warning-color, #f59e0b);
|
|
}
|
|
|
|
.status-sub {
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary, #64748b);
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
/* 점검 영역 */
|
|
.patrol-area {
|
|
background: var(--surface-color, #fff);
|
|
border-radius: 12px;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* 세션 정보 바 */
|
|
.session-info-bar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1rem 1.5rem;
|
|
background: linear-gradient(135deg, var(--primary-color, #3b82f6), #2563eb);
|
|
color: #fff;
|
|
}
|
|
|
|
.session-info {
|
|
display: flex;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.session-info-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.session-info-label {
|
|
font-size: 0.75rem;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.session-info-value {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.session-progress {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.progress-bar {
|
|
width: 150px;
|
|
height: 8px;
|
|
background: rgba(255, 255, 255, 0.3);
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: #fff;
|
|
border-radius: 4px;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.progress-text {
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* 점검 콘텐츠 영역 */
|
|
.patrol-content {
|
|
display: grid;
|
|
grid-template-columns: 1fr 400px;
|
|
min-height: 500px;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.patrol-content {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* 지도 영역 */
|
|
.patrol-map-section {
|
|
padding: 1.5rem;
|
|
border-right: 1px solid var(--border-color, #e2e8f0);
|
|
}
|
|
|
|
.map-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.map-header h3 {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
|
|
.map-legend {
|
|
display: flex;
|
|
gap: 1rem;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.legend-item .dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.legend-item.completed .dot {
|
|
background: var(--success-color, #16a34a);
|
|
}
|
|
|
|
.legend-item.in-progress .dot {
|
|
background: var(--primary-color, #3b82f6);
|
|
}
|
|
|
|
.legend-item.pending .dot {
|
|
background: var(--border-color, #cbd5e1);
|
|
}
|
|
|
|
/* 지도 컨테이너 */
|
|
.patrol-map-container {
|
|
position: relative;
|
|
width: 100%;
|
|
aspect-ratio: 16/10;
|
|
background: var(--bg-color, #f8fafc);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
border: 1px solid var(--border-color, #e2e8f0);
|
|
}
|
|
|
|
.patrol-map-container img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
/* 작업장 마커 */
|
|
.workplace-marker {
|
|
position: absolute;
|
|
padding: 0.5rem 0.75rem;
|
|
background: var(--surface-color, #fff);
|
|
border: 2px solid var(--border-color, #cbd5e1);
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
transition: all 0.2s;
|
|
transform: translate(-50%, -50%);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.workplace-marker:hover {
|
|
transform: translate(-50%, -50%) scale(1.05);
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.workplace-marker.completed {
|
|
border-color: var(--success-color, #16a34a);
|
|
background: #dcfce7;
|
|
}
|
|
|
|
.workplace-marker.in-progress {
|
|
border-color: var(--primary-color, #3b82f6);
|
|
background: #dbeafe;
|
|
}
|
|
|
|
.workplace-marker.selected {
|
|
border-color: var(--primary-color, #3b82f6);
|
|
background: var(--primary-color, #3b82f6);
|
|
color: #fff;
|
|
z-index: 10;
|
|
}
|
|
|
|
/* 작업장 목록 */
|
|
.workplace-list-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
|
gap: 0.75rem;
|
|
margin-top: 1rem;
|
|
padding: 0.5rem;
|
|
background: var(--bg-color, #f8fafc);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.workplace-card {
|
|
padding: 1rem;
|
|
background: var(--surface-color, #fff);
|
|
border: 2px solid var(--border-color, #e2e8f0);
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
text-align: center;
|
|
}
|
|
|
|
.workplace-card:hover {
|
|
border-color: var(--primary-color, #3b82f6);
|
|
}
|
|
|
|
.workplace-card.completed {
|
|
border-color: var(--success-color, #16a34a);
|
|
background: #f0fdf4;
|
|
}
|
|
|
|
.workplace-card.in-progress {
|
|
border-color: var(--primary-color, #3b82f6);
|
|
background: #eff6ff;
|
|
}
|
|
|
|
.workplace-card.selected {
|
|
border-color: var(--primary-color, #3b82f6);
|
|
background: var(--primary-color, #3b82f6);
|
|
color: #fff;
|
|
}
|
|
|
|
.workplace-card.selected .workplace-card-status {
|
|
color: rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
.workplace-card-name {
|
|
font-weight: 600;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.workplace-card-status {
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary, #64748b);
|
|
}
|
|
|
|
/* 체크리스트 영역 */
|
|
.patrol-checklist-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--bg-color, #f8fafc);
|
|
}
|
|
|
|
.checklist-header {
|
|
padding: 1rem 1.5rem;
|
|
border-bottom: 1px solid var(--border-color, #e2e8f0);
|
|
background: var(--surface-color, #fff);
|
|
}
|
|
|
|
.checklist-header h3 {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
margin: 0 0 0.25rem;
|
|
}
|
|
|
|
.checklist-subtitle {
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary, #64748b);
|
|
margin: 0;
|
|
}
|
|
|
|
.checklist-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.checklist-placeholder {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 200px;
|
|
color: var(--text-secondary, #64748b);
|
|
}
|
|
|
|
/* 체크리스트 카테고리 */
|
|
.checklist-category {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.checklist-category-title {
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: var(--text-secondary, #64748b);
|
|
text-transform: uppercase;
|
|
margin-bottom: 0.75rem;
|
|
padding-bottom: 0.5rem;
|
|
border-bottom: 1px solid var(--border-color, #e2e8f0);
|
|
}
|
|
|
|
/* 체크 항목 */
|
|
.check-item {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 0.75rem;
|
|
padding: 0.75rem;
|
|
background: var(--surface-color, #fff);
|
|
border-radius: 8px;
|
|
margin-bottom: 0.5rem;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.check-item:hover {
|
|
background: #f1f5f9;
|
|
}
|
|
|
|
.check-item.checked {
|
|
background: #f0fdf4;
|
|
}
|
|
|
|
.check-item-checkbox {
|
|
width: 24px;
|
|
height: 24px;
|
|
border: 2px solid var(--border-color, #cbd5e1);
|
|
border-radius: 6px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.check-item.checked .check-item-checkbox {
|
|
background: var(--success-color, #16a34a);
|
|
border-color: var(--success-color, #16a34a);
|
|
color: #fff;
|
|
}
|
|
|
|
.check-item-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.check-item-text {
|
|
font-size: 0.9rem;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.check-item-required {
|
|
color: var(--error-color, #dc2626);
|
|
margin-left: 0.25rem;
|
|
}
|
|
|
|
.check-item-note {
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary, #64748b);
|
|
}
|
|
|
|
/* 체크 결과 선택 */
|
|
.check-result-selector {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.check-result-btn {
|
|
padding: 0.25rem 0.75rem;
|
|
border: 1px solid var(--border-color, #e2e8f0);
|
|
border-radius: 4px;
|
|
font-size: 0.75rem;
|
|
background: var(--surface-color, #fff);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.check-result-btn.good.active {
|
|
background: #dcfce7;
|
|
border-color: var(--success-color, #16a34a);
|
|
color: var(--success-color, #16a34a);
|
|
}
|
|
|
|
.check-result-btn.warning.active {
|
|
background: #fef3c7;
|
|
border-color: var(--warning-color, #f59e0b);
|
|
color: var(--warning-color, #f59e0b);
|
|
}
|
|
|
|
.check-result-btn.bad.active {
|
|
background: #fee2e2;
|
|
border-color: var(--error-color, #dc2626);
|
|
color: var(--error-color, #dc2626);
|
|
}
|
|
|
|
/* 체크리스트 액션 */
|
|
.checklist-actions {
|
|
padding: 1rem 1.5rem;
|
|
border-top: 1px solid var(--border-color, #e2e8f0);
|
|
background: var(--surface-color, #fff);
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
/* 물품 현황 섹션 */
|
|
.items-section {
|
|
padding: 1.5rem;
|
|
border-top: 1px solid var(--border-color, #e2e8f0);
|
|
}
|
|
|
|
.items-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.items-header h3 {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
|
|
.items-map-container {
|
|
position: relative;
|
|
width: 100%;
|
|
aspect-ratio: 16/9;
|
|
background: var(--bg-color, #f8fafc);
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border-color, #e2e8f0);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.items-map-container img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
/* 물품 마커 */
|
|
.item-marker {
|
|
position: absolute;
|
|
border: 2px solid;
|
|
border-radius: 4px;
|
|
background: rgba(255, 255, 255, 0.8);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.2rem;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.item-marker:hover {
|
|
transform: scale(1.1);
|
|
z-index: 10;
|
|
}
|
|
|
|
.item-marker.container {
|
|
border-color: #3b82f6;
|
|
background: rgba(59, 130, 246, 0.2);
|
|
}
|
|
|
|
.item-marker.plate {
|
|
border-color: #10b981;
|
|
background: rgba(16, 185, 129, 0.2);
|
|
}
|
|
|
|
.item-marker.material {
|
|
border-color: #f59e0b;
|
|
background: rgba(245, 158, 11, 0.2);
|
|
}
|
|
|
|
.item-marker.tool {
|
|
border-color: #8b5cf6;
|
|
background: rgba(139, 92, 246, 0.2);
|
|
}
|
|
|
|
.item-marker.other {
|
|
border-color: #6b7280;
|
|
background: rgba(107, 114, 128, 0.2);
|
|
}
|
|
|
|
/* 물품 범례 */
|
|
.items-legend {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
margin-top: 1rem;
|
|
padding-top: 1rem;
|
|
border-top: 1px solid var(--border-color, #e2e8f0);
|
|
}
|
|
|
|
.item-legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.item-legend-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* 순회점검 완료 섹션 */
|
|
.patrol-complete-section {
|
|
padding: 1.5rem;
|
|
border-top: 1px solid var(--border-color, #e2e8f0);
|
|
display: flex;
|
|
gap: 1rem;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.patrol-complete-section .form-group {
|
|
flex: 1;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* 반응형 */
|
|
@media (max-width: 768px) {
|
|
.patrol-start-section {
|
|
padding: 2rem 1rem;
|
|
}
|
|
|
|
.patrol-start-section .btn-lg {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.today-status-summary {
|
|
flex-direction: row;
|
|
width: 100%;
|
|
}
|
|
|
|
.status-card {
|
|
flex: 1;
|
|
min-width: auto;
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.factory-selection-area {
|
|
padding: 1.5rem 1rem;
|
|
}
|
|
|
|
.factory-cards-container {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 1rem;
|
|
}
|
|
|
|
.factory-card {
|
|
padding: 1.5rem 1rem;
|
|
}
|
|
|
|
.factory-card-icon {
|
|
width: 60px;
|
|
height: 60px;
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.factory-card-name {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.patrol-content {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.patrol-map-section {
|
|
border-right: none;
|
|
border-bottom: 1px solid var(--border-color, #e2e8f0);
|
|
}
|
|
|
|
.patrol-complete-section {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.session-info-bar {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.session-info {
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
}
|