- TBM 팀원 추가 시 중복 배정 검증 및 409 에러 처리 (tbmController, tbmModel, tbm-create.js, tbm.js, tbm/api.js) - tkuser/tkfb 설비 배치도 좌표계를 좌상단 기준으로 통일 (CSS left/top 방식) - tkuser 설비 배치도에 드래그 이동, 코너 리사이즈, 배치 버튼 추가 - 대분류 지도 영역 수정 버튼 추가 (workplace-layout-map.js, tkuser-layout-map.js) - tkfb workplace-status 캔버스 maxWidth 800 통일 - zone-detail.css object-fit:contain 제거 → height:auto로 마커 위치 정확도 개선 - imageUploadService 업로드 경로 Docker 볼륨 마운트 경로로 수정 - repair-management 카테고리 필터 nonconformity → facility 수정 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1493 lines
25 KiB
CSS
1493 lines
25 KiB
CSS
/* zone-detail.css - 구역 상세 페이지 스타일 */
|
|
|
|
/* 헤더 */
|
|
.zone-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 1.5rem;
|
|
background: linear-gradient(135deg, var(--primary-color, #3b82f6), #1d4ed8);
|
|
border-radius: 16px;
|
|
color: #fff;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.zone-header-left {
|
|
flex: 1;
|
|
}
|
|
|
|
.zone-header-center {
|
|
flex: 2;
|
|
text-align: center;
|
|
}
|
|
|
|
.zone-header-right {
|
|
flex: 1;
|
|
text-align: right;
|
|
}
|
|
|
|
.btn-back {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
color: #fff;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 8px;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.btn-back:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.zone-title {
|
|
margin: 0;
|
|
font-size: 1.75rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.zone-subtitle {
|
|
margin: 0.25rem 0 0;
|
|
font-size: 0.9rem;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.current-date {
|
|
font-size: 0.9rem;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* 요약 카드 */
|
|
.summary-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.summary-card {
|
|
background: var(--surface-color, #fff);
|
|
border-radius: 12px;
|
|
padding: 1.25rem;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.summary-card-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.summary-card-icon.equipment {
|
|
background: #dbeafe;
|
|
}
|
|
|
|
.summary-card-icon.repair {
|
|
background: #fef3c7;
|
|
}
|
|
|
|
.summary-card-icon.issues {
|
|
background: #fee2e2;
|
|
}
|
|
|
|
.summary-card-icon.visits {
|
|
background: #d1fae5;
|
|
}
|
|
|
|
.summary-card-icon.tbm {
|
|
background: #e0e7ff;
|
|
}
|
|
|
|
.summary-card-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.summary-card-value {
|
|
font-size: 1.75rem;
|
|
font-weight: 700;
|
|
color: var(--text-primary, #1e293b);
|
|
line-height: 1;
|
|
}
|
|
|
|
.summary-card-label {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary, #64748b);
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.summary-card.warning .summary-card-value {
|
|
color: #b45309;
|
|
}
|
|
|
|
.summary-card.danger .summary-card-value {
|
|
color: #dc2626;
|
|
}
|
|
|
|
/* 탭 네비게이션 */
|
|
.tab-navigation {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
padding: 0.5rem;
|
|
background: var(--surface-color, #fff);
|
|
border-radius: 12px;
|
|
margin-bottom: 1rem;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.tab-btn {
|
|
flex: 1;
|
|
min-width: 120px;
|
|
padding: 0.875rem 1rem;
|
|
border: none;
|
|
background: transparent;
|
|
border-radius: 8px;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary, #64748b);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.tab-btn:hover {
|
|
background: var(--bg-color, #f1f5f9);
|
|
color: var(--text-primary, #1e293b);
|
|
}
|
|
|
|
.tab-btn.active {
|
|
background: var(--primary-color, #3b82f6);
|
|
color: #fff;
|
|
}
|
|
|
|
/* 탭 콘텐츠 */
|
|
.tab-contents {
|
|
background: var(--surface-color, #fff);
|
|
border-radius: 12px;
|
|
min-height: 400px;
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
.content-loading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 3rem;
|
|
color: var(--text-secondary, #64748b);
|
|
}
|
|
|
|
.loading-spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 3px solid var(--border-color, #e2e8f0);
|
|
border-top-color: var(--primary-color, #3b82f6);
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.content-empty {
|
|
text-align: center;
|
|
padding: 3rem;
|
|
color: var(--text-secondary, #64748b);
|
|
}
|
|
|
|
.content-empty-icon {
|
|
font-size: 3rem;
|
|
margin-bottom: 1rem;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.content-empty-text {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* 섹션 스타일 */
|
|
.content-section {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.content-section:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary, #1e293b);
|
|
margin: 0 0 1rem;
|
|
padding-bottom: 0.5rem;
|
|
border-bottom: 2px solid var(--primary-color, #3b82f6);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.section-badge {
|
|
background: var(--primary-color, #3b82f6);
|
|
color: #fff;
|
|
font-size: 0.75rem;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.section-badge.warning {
|
|
background: #f59e0b;
|
|
}
|
|
|
|
.section-badge.danger {
|
|
background: #dc2626;
|
|
}
|
|
|
|
/* 카드 리스트 */
|
|
.card-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
/* 신고/이슈 카드 */
|
|
.issue-card {
|
|
background: var(--bg-color, #f8fafc);
|
|
border-radius: 10px;
|
|
padding: 1rem 1.25rem;
|
|
border-left: 4px solid var(--border-color, #cbd5e1);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.issue-card:hover {
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.issue-card.safety {
|
|
border-left-color: #dc2626;
|
|
}
|
|
|
|
.issue-card.nonconformity {
|
|
border-left-color: #f59e0b;
|
|
}
|
|
|
|
.issue-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.issue-card-title {
|
|
font-weight: 600;
|
|
font-size: 1rem;
|
|
color: var(--text-primary, #1e293b);
|
|
}
|
|
|
|
.issue-card-status {
|
|
font-size: 0.75rem;
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.issue-card-status.pending {
|
|
background: #fef3c7;
|
|
color: #b45309;
|
|
}
|
|
|
|
.issue-card-status.received {
|
|
background: #dbeafe;
|
|
color: #1d4ed8;
|
|
}
|
|
|
|
.issue-card-status.in_progress {
|
|
background: #e0e7ff;
|
|
color: #4338ca;
|
|
}
|
|
|
|
.issue-card-status.completed {
|
|
background: #dcfce7;
|
|
color: #166534;
|
|
}
|
|
|
|
.issue-card-status.closed {
|
|
background: #f1f5f9;
|
|
color: #64748b;
|
|
}
|
|
|
|
.issue-card-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary, #64748b);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.issue-card-meta span {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.issue-card-severity {
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.issue-card-severity.critical {
|
|
background: #fee2e2;
|
|
color: #dc2626;
|
|
}
|
|
|
|
.issue-card-severity.high {
|
|
background: #fed7aa;
|
|
color: #c2410c;
|
|
}
|
|
|
|
.issue-card-severity.medium {
|
|
background: #fef3c7;
|
|
color: #b45309;
|
|
}
|
|
|
|
.issue-card-severity.low {
|
|
background: #d1fae5;
|
|
color: #059669;
|
|
}
|
|
|
|
.issue-card-desc {
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary, #64748b);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* 설비 카드 */
|
|
.equipment-card {
|
|
background: var(--bg-color, #f8fafc);
|
|
border-radius: 10px;
|
|
padding: 1rem 1.25rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.equipment-card.attention {
|
|
background: #fef2f2;
|
|
border: 1px solid #fecaca;
|
|
}
|
|
|
|
.equipment-card-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 8px;
|
|
background: var(--surface-color, #fff);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.equipment-card-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.equipment-card-name {
|
|
font-weight: 600;
|
|
font-size: 0.95rem;
|
|
color: var(--text-primary, #1e293b);
|
|
}
|
|
|
|
.equipment-card-code {
|
|
font-size: 0.8rem;
|
|
color: var(--text-tertiary, #94a3b8);
|
|
}
|
|
|
|
.equipment-card-status {
|
|
font-size: 0.75rem;
|
|
padding: 4px 10px;
|
|
border-radius: 8px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.equipment-card-status.active {
|
|
background: #dcfce7;
|
|
color: #166534;
|
|
}
|
|
|
|
.equipment-card-status.repair_needed {
|
|
background: #fee2e2;
|
|
color: #dc2626;
|
|
}
|
|
|
|
.equipment-card-status.under_repair {
|
|
background: #fef3c7;
|
|
color: #b45309;
|
|
}
|
|
|
|
/* 수리 요청 카드 */
|
|
.repair-card {
|
|
background: #fffbeb;
|
|
border-radius: 10px;
|
|
padding: 1rem 1.25rem;
|
|
border-left: 4px solid #f59e0b;
|
|
}
|
|
|
|
.repair-card.emergency {
|
|
background: #fef2f2;
|
|
border-left-color: #dc2626;
|
|
}
|
|
|
|
.repair-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.repair-card-equipment {
|
|
font-weight: 600;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.repair-card-priority {
|
|
font-size: 0.7rem;
|
|
padding: 3px 8px;
|
|
border-radius: 6px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.repair-card-priority.emergency {
|
|
background: #fee2e2;
|
|
color: #dc2626;
|
|
}
|
|
|
|
.repair-card-priority.high {
|
|
background: #fed7aa;
|
|
color: #c2410c;
|
|
}
|
|
|
|
.repair-card-priority.normal {
|
|
background: #fef3c7;
|
|
color: #b45309;
|
|
}
|
|
|
|
.repair-card-priority.low {
|
|
background: #d1fae5;
|
|
color: #059669;
|
|
}
|
|
|
|
.repair-card-category {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary, #64748b);
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.repair-card-desc {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary, #64748b);
|
|
}
|
|
|
|
.repair-card-date {
|
|
font-size: 0.75rem;
|
|
color: var(--text-tertiary, #94a3b8);
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
/* 방문자 카드 */
|
|
.visit-card {
|
|
background: var(--bg-color, #f8fafc);
|
|
border-radius: 10px;
|
|
padding: 1rem 1.25rem;
|
|
}
|
|
|
|
.visit-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.visit-card-name {
|
|
font-weight: 600;
|
|
font-size: 1rem;
|
|
color: var(--text-primary, #1e293b);
|
|
}
|
|
|
|
.visit-card-company {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary, #64748b);
|
|
}
|
|
|
|
.visit-card-purpose {
|
|
font-size: 0.9rem;
|
|
color: var(--primary-color, #3b82f6);
|
|
font-weight: 500;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.visit-card-details {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary, #64748b);
|
|
}
|
|
|
|
.visit-card-details span {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
/* TBM 카드 */
|
|
.tbm-card {
|
|
background: var(--bg-color, #f8fafc);
|
|
border-radius: 10px;
|
|
padding: 1.25rem;
|
|
}
|
|
|
|
.tbm-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.tbm-card-task {
|
|
font-weight: 600;
|
|
font-size: 1.1rem;
|
|
color: var(--text-primary, #1e293b);
|
|
}
|
|
|
|
.tbm-card-status {
|
|
font-size: 0.75rem;
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.tbm-card-status.completed {
|
|
background: #dcfce7;
|
|
color: #166534;
|
|
}
|
|
|
|
.tbm-card-status.in_progress {
|
|
background: #dbeafe;
|
|
color: #1d4ed8;
|
|
}
|
|
|
|
.tbm-card-status.draft {
|
|
background: #f1f5f9;
|
|
color: #64748b;
|
|
}
|
|
|
|
.tbm-card-info {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.75rem;
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary, #64748b);
|
|
}
|
|
|
|
.tbm-card-info span {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.tbm-card-content {
|
|
background: var(--surface-color, #fff);
|
|
border-radius: 8px;
|
|
padding: 0.75rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.tbm-card-content-title {
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: var(--text-tertiary, #94a3b8);
|
|
margin-bottom: 0.25rem;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.tbm-card-content-text {
|
|
font-size: 0.9rem;
|
|
color: var(--text-primary, #1e293b);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.tbm-card-team {
|
|
padding-top: 0.75rem;
|
|
border-top: 1px dashed var(--border-color, #e2e8f0);
|
|
}
|
|
|
|
.tbm-card-team-title {
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
color: var(--text-secondary, #64748b);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.tbm-card-team-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.tbm-team-member {
|
|
background: var(--surface-color, #fff);
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 16px;
|
|
font-size: 0.8rem;
|
|
color: var(--text-primary, #1e293b);
|
|
border: 1px solid var(--border-color, #e2e8f0);
|
|
}
|
|
|
|
.tbm-team-member.signed {
|
|
background: #dcfce7;
|
|
border-color: #86efac;
|
|
}
|
|
|
|
/* 순회점검 카드 */
|
|
.patrol-card {
|
|
background: var(--bg-color, #f8fafc);
|
|
border-radius: 10px;
|
|
padding: 1rem 1.25rem;
|
|
}
|
|
|
|
.patrol-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.patrol-card-date {
|
|
font-weight: 600;
|
|
font-size: 1rem;
|
|
color: var(--text-primary, #1e293b);
|
|
}
|
|
|
|
.patrol-card-time {
|
|
font-size: 0.8rem;
|
|
padding: 3px 10px;
|
|
border-radius: 6px;
|
|
background: var(--primary-color, #3b82f6);
|
|
color: #fff;
|
|
}
|
|
|
|
.patrol-card-info {
|
|
display: flex;
|
|
gap: 1.5rem;
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary, #64748b);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.patrol-card-stats {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.patrol-stat {
|
|
text-align: center;
|
|
padding: 0.5rem 1rem;
|
|
background: var(--surface-color, #fff);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.patrol-stat-value {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
color: var(--text-primary, #1e293b);
|
|
}
|
|
|
|
.patrol-stat-value.warning {
|
|
color: #f59e0b;
|
|
}
|
|
|
|
.patrol-stat-value.danger {
|
|
color: #dc2626;
|
|
}
|
|
|
|
.patrol-stat-label {
|
|
font-size: 0.7rem;
|
|
color: var(--text-tertiary, #94a3b8);
|
|
}
|
|
|
|
.patrol-card-notes {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary, #64748b);
|
|
padding-top: 0.5rem;
|
|
border-top: 1px dashed var(--border-color, #e2e8f0);
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
/* ==================== 구역 지도 에디터 ==================== */
|
|
|
|
.map-editor-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.map-editor-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.map-editor-header h3 {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary, #1e293b);
|
|
}
|
|
|
|
.map-editor-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.map-editor-container {
|
|
display: flex;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.zone-map-container {
|
|
flex: 1;
|
|
position: relative;
|
|
background: var(--bg-color, #f8fafc);
|
|
border: 2px solid var(--border-color, #e2e8f0);
|
|
border-radius: 12px;
|
|
min-height: 200px;
|
|
overflow: hidden;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.zone-map-container.adding-item {
|
|
cursor: crosshair;
|
|
border-color: var(--primary-color, #3b82f6);
|
|
border-style: dashed;
|
|
}
|
|
|
|
.zone-map-image {
|
|
width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
}
|
|
|
|
.map-placeholder {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 400px;
|
|
color: var(--text-secondary, #64748b);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.map-placeholder-icon {
|
|
font-size: 3rem;
|
|
margin-bottom: 1rem;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* 지도 위 현황 마커 */
|
|
.zone-item-marker {
|
|
position: absolute;
|
|
border: 3px solid var(--marker-color, #3b82f6);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
justify-content: flex-end;
|
|
background: transparent;
|
|
min-width: 40px;
|
|
min-height: 30px;
|
|
z-index: 5;
|
|
}
|
|
|
|
.zone-item-marker:hover {
|
|
transform: scale(1.03);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
|
|
z-index: 20;
|
|
border-width: 4px;
|
|
}
|
|
|
|
.zone-item-marker.selected {
|
|
border-color: #1d4ed8;
|
|
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
|
|
z-index: 15;
|
|
}
|
|
|
|
/* 주의 수준별 스타일 */
|
|
.zone-item-marker.warning-high {
|
|
border-color: #dc2626;
|
|
animation: pulseWarning 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
.zone-item-marker.warning-mid {
|
|
border-color: #f59e0b;
|
|
}
|
|
|
|
@keyframes pulseWarning {
|
|
0%, 100% { border-color: #dc2626; }
|
|
50% { border-color: #fca5a5; }
|
|
}
|
|
|
|
/* 마커 라벨 - 항상 표시 */
|
|
.zone-item-marker-label {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 100%;
|
|
margin-top: 2px;
|
|
color: var(--marker-color, #3b82f6);
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
white-space: nowrap;
|
|
text-shadow:
|
|
1px 1px 0 #fff,
|
|
-1px -1px 0 #fff,
|
|
1px -1px 0 #fff,
|
|
-1px 1px 0 #fff,
|
|
0 1px 0 #fff,
|
|
0 -1px 0 #fff;
|
|
}
|
|
|
|
/* 유형 라벨 */
|
|
.zone-item-marker-type {
|
|
position: absolute;
|
|
left: 0;
|
|
top: calc(100% + 14px);
|
|
font-size: 9px;
|
|
color: #6b7280;
|
|
white-space: nowrap;
|
|
text-shadow:
|
|
1px 1px 0 #fff,
|
|
-1px -1px 0 #fff,
|
|
1px -1px 0 #fff,
|
|
-1px 1px 0 #fff;
|
|
}
|
|
|
|
.zone-item-marker:hover .zone-item-marker-label {
|
|
color: #1d4ed8;
|
|
}
|
|
|
|
/* 드래그 선택 영역 */
|
|
.selection-box {
|
|
position: absolute;
|
|
border: 2px dashed var(--primary-color, #3b82f6);
|
|
background: rgba(59, 130, 246, 0.15);
|
|
pointer-events: none;
|
|
border-radius: 4px;
|
|
z-index: 100;
|
|
}
|
|
|
|
/* 선택 영역 크기 표시 */
|
|
.selection-size-label {
|
|
position: absolute;
|
|
bottom: -20px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: var(--primary-color, #3b82f6);
|
|
color: #fff;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
padding: 2px 6px;
|
|
border-radius: 3px;
|
|
white-space: nowrap;
|
|
display: none;
|
|
}
|
|
|
|
/* 하단 안내 바 */
|
|
.add-item-guide-bar {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: rgba(59, 130, 246, 0.95);
|
|
color: #fff;
|
|
padding: 8px 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
font-size: 0.85rem;
|
|
z-index: 50;
|
|
border-radius: 0 0 8px 8px;
|
|
}
|
|
|
|
.add-item-guide-bar .guide-icon {
|
|
font-size: 1.2rem;
|
|
animation: bounceGuide 1s ease-in-out infinite;
|
|
}
|
|
|
|
.add-item-guide-bar .guide-text {
|
|
opacity: 0.95;
|
|
}
|
|
|
|
.add-item-guide-bar .guide-text strong {
|
|
color: #fef08a;
|
|
}
|
|
|
|
@keyframes bounceGuide {
|
|
0%, 100% { transform: translateY(0); }
|
|
50% { transform: translateY(-3px); }
|
|
}
|
|
|
|
/* 등록 모드 커서 */
|
|
.zone-map-container.adding-item {
|
|
cursor: crosshair;
|
|
}
|
|
|
|
.zone-map-container.adding-item .zone-item-marker,
|
|
.zone-map-container.adding-item .equipment-marker {
|
|
pointer-events: none;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* 범례 */
|
|
.map-legend {
|
|
background: var(--surface-color, #fff);
|
|
border: 1px solid var(--border-color, #e2e8f0);
|
|
border-radius: 8px;
|
|
padding: 1rem;
|
|
min-width: 180px;
|
|
}
|
|
|
|
.legend-title {
|
|
font-weight: 600;
|
|
font-size: 0.85rem;
|
|
color: var(--text-primary, #1e293b);
|
|
margin-bottom: 0.75rem;
|
|
padding-bottom: 0.5rem;
|
|
border-bottom: 1px solid var(--border-color, #e2e8f0);
|
|
}
|
|
|
|
.legend-items {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary, #64748b);
|
|
}
|
|
|
|
.legend-color {
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 4px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* 물품 목록 */
|
|
.zone-items-list {
|
|
background: var(--surface-color, #fff);
|
|
border: 1px solid var(--border-color, #e2e8f0);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.zone-items-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1rem 1.25rem;
|
|
background: var(--bg-color, #f8fafc);
|
|
border-bottom: 1px solid var(--border-color, #e2e8f0);
|
|
}
|
|
|
|
.zone-items-header h4 {
|
|
margin: 0;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.zone-items-count {
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary, #64748b);
|
|
}
|
|
|
|
.zone-items-empty {
|
|
padding: 2rem;
|
|
text-align: center;
|
|
color: var(--text-secondary, #64748b);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.zone-item-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 0.875rem 1.25rem;
|
|
border-bottom: 1px solid var(--border-color, #e2e8f0);
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.zone-item-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.zone-item-row:hover {
|
|
background: var(--bg-color, #f8fafc);
|
|
}
|
|
|
|
.zone-item-row.selected {
|
|
background: #eff6ff;
|
|
}
|
|
|
|
.zone-item-color {
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 4px;
|
|
flex-shrink: 0;
|
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.zone-item-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.zone-item-name {
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
color: var(--text-primary, #1e293b);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.zone-item-meta {
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary, #64748b);
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.zone-item-warning {
|
|
font-size: 0.7rem;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-weight: 600;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.zone-item-warning.good {
|
|
background: #dcfce7;
|
|
color: #15803d;
|
|
}
|
|
|
|
.zone-item-warning.caution {
|
|
background: #fef3c7;
|
|
color: #b45309;
|
|
}
|
|
|
|
.zone-item-warning.needs_management {
|
|
background: #fee2e2;
|
|
color: #dc2626;
|
|
}
|
|
|
|
.zone-item-warning.danger {
|
|
background: #fee2e2;
|
|
color: #dc2626;
|
|
}
|
|
|
|
/* 색상 선택 */
|
|
.color-picker-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.color-input {
|
|
width: 50px;
|
|
height: 38px;
|
|
padding: 2px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.color-presets {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.color-preset {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 6px;
|
|
border: 2px solid transparent;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.color-preset:hover {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.color-preset.selected {
|
|
border-color: var(--text-primary, #1e293b);
|
|
}
|
|
|
|
/* 라디오 버튼 그룹 */
|
|
.radio-group {
|
|
display: flex;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.radio-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.4rem;
|
|
cursor: pointer;
|
|
padding: 0.5rem 0.75rem;
|
|
border: 1px solid var(--border-color, #e2e8f0);
|
|
border-radius: 6px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.radio-label:hover {
|
|
background: var(--surface-hover, #f8fafc);
|
|
}
|
|
|
|
.radio-label:has(input:checked) {
|
|
border-color: var(--primary-color, #3b82f6);
|
|
background: rgba(59, 130, 246, 0.08);
|
|
}
|
|
|
|
.radio-label input[type="radio"] {
|
|
margin: 0;
|
|
accent-color: var(--primary-color, #3b82f6);
|
|
}
|
|
|
|
.radio-text {
|
|
font-size: 0.9rem;
|
|
color: var(--text-primary, #1e293b);
|
|
}
|
|
|
|
/* select + 추가 버튼 */
|
|
.select-with-add {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.select-with-add select {
|
|
flex: 1;
|
|
}
|
|
|
|
.btn-add-option {
|
|
width: 36px;
|
|
height: 38px;
|
|
border: 1px solid var(--border-color, #e2e8f0);
|
|
border-radius: 6px;
|
|
background: var(--surface-color, #fff);
|
|
color: var(--primary-color, #3b82f6);
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-add-option:hover {
|
|
background: var(--primary-color, #3b82f6);
|
|
color: #fff;
|
|
border-color: var(--primary-color, #3b82f6);
|
|
}
|
|
|
|
/* 사진 업로드 영역 */
|
|
.photo-upload-area {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.photo-preview-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.photo-preview-item {
|
|
position: relative;
|
|
width: 70px;
|
|
height: 70px;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
border: 1px solid var(--border-color, #e2e8f0);
|
|
}
|
|
|
|
.photo-preview-item img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.photo-preview-item .photo-remove {
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 2px;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
color: #fff;
|
|
border: none;
|
|
font-size: 12px;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.photo-preview-item .photo-remove:hover {
|
|
background: #ef4444;
|
|
}
|
|
|
|
.btn-add-photo {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 70px;
|
|
height: 70px;
|
|
border: 2px dashed var(--border-color, #d1d5db);
|
|
border-radius: 8px;
|
|
background: var(--surface-hover, #f8fafc);
|
|
color: var(--text-secondary, #64748b);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
gap: 4px;
|
|
}
|
|
|
|
.btn-add-photo:hover {
|
|
border-color: var(--primary-color, #3b82f6);
|
|
color: var(--primary-color, #3b82f6);
|
|
background: rgba(59, 130, 246, 0.05);
|
|
}
|
|
|
|
.btn-add-photo .photo-icon {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.btn-add-photo span:last-child {
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
/* 반응형 */
|
|
@media (max-width: 768px) {
|
|
.zone-header {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.zone-header-left,
|
|
.zone-header-right {
|
|
text-align: center;
|
|
}
|
|
|
|
.summary-cards {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.tab-navigation {
|
|
gap: 0.25rem;
|
|
padding: 0.25rem;
|
|
}
|
|
|
|
.tab-btn {
|
|
min-width: auto;
|
|
padding: 0.75rem 0.5rem;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.tab-content {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.tbm-card-info {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
/* 지도 에디터 반응형 */
|
|
.map-editor-header {
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.map-editor-container {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.map-legend {
|
|
order: -1;
|
|
min-width: auto;
|
|
width: 100%;
|
|
}
|
|
|
|
.legend-items {
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.zone-map-container {
|
|
min-height: 150px;
|
|
}
|
|
|
|
.zone-item-marker {
|
|
min-width: 24px;
|
|
min-height: 24px;
|
|
font-size: 0.6rem;
|
|
}
|
|
|
|
.color-picker-row {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.color-input {
|
|
width: 100%;
|
|
height: 44px;
|
|
}
|
|
|
|
.color-presets {
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.color-preset {
|
|
width: 36px;
|
|
height: 36px;
|
|
}
|
|
}
|
|
|
|
/* ==================== 설비 마커 ==================== */
|
|
.equipment-marker {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
pointer-events: auto;
|
|
border: 2px solid #047857;
|
|
border-radius: 3px;
|
|
background: transparent;
|
|
transition: all 0.15s ease;
|
|
z-index: 5;
|
|
}
|
|
|
|
.equipment-marker:hover {
|
|
z-index: 100;
|
|
border-width: 3px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* 마커 라벨 */
|
|
.equipment-marker .marker-label {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 100%;
|
|
margin-top: 2px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: #047857;
|
|
white-space: nowrap;
|
|
text-shadow:
|
|
1px 1px 0 #fff,
|
|
-1px -1px 0 #fff,
|
|
1px -1px 0 #fff,
|
|
-1px 1px 0 #fff,
|
|
0 1px 0 #fff,
|
|
0 -1px 0 #fff,
|
|
1px 0 0 #fff,
|
|
-1px 0 0 #fff;
|
|
}
|
|
|
|
/* 정상 상태 */
|
|
.equipment-marker.active {
|
|
border-color: #047857;
|
|
}
|
|
.equipment-marker.active .marker-label {
|
|
color: #047857;
|
|
}
|
|
|
|
/* 점검중 */
|
|
.equipment-marker.maintenance {
|
|
border-color: #d97706;
|
|
}
|
|
.equipment-marker.maintenance .marker-label {
|
|
color: #d97706;
|
|
}
|
|
|
|
/* 수리 필요 */
|
|
.equipment-marker.repair {
|
|
border-color: #dc2626;
|
|
animation: equipRepairPulse 1.5s infinite;
|
|
}
|
|
.equipment-marker.repair .marker-label {
|
|
color: #dc2626;
|
|
}
|
|
|
|
@keyframes equipRepairPulse {
|
|
0%, 100% { border-color: #dc2626; }
|
|
50% { border-color: #fca5a5; }
|
|
}
|
|
|
|
/* 비활성/이동됨 */
|
|
.equipment-marker.inactive {
|
|
border-color: #9ca3af;
|
|
border-style: dashed;
|
|
background: rgba(156, 163, 175, 0.1);
|
|
}
|
|
.equipment-marker.inactive .marker-label {
|
|
color: #6b7280;
|
|
}
|
|
|
|
/* 임시 배치 (다른 곳에서 온 설비) */
|
|
.equipment-marker.moved {
|
|
border-color: #8b5cf6;
|
|
border-style: dashed;
|
|
border-width: 3px;
|
|
background: rgba(139, 92, 246, 0.15);
|
|
}
|
|
.equipment-marker.moved .marker-label {
|
|
color: #7c3aed;
|
|
}
|