- 설비 마커 클릭 시 슬라이드 패널로 상세 정보 표시 - 설비 사진 업로드/삭제 기능 - 설비 임시 이동 기능 (3단계 지도 기반 선택) - Step 1: 공장 선택 - Step 2: 레이아웃 지도에서 작업장 선택 - Step 3: 상세 지도에서 위치 선택 - 설비 외부 반출/반입 기능 - 설비 수리 신청 기능 (기존 신고 시스템 연동) - DB 마이그레이션 추가 (사진, 임시이동, 외부반출 테이블) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
510 lines
8.3 KiB
CSS
510 lines
8.3 KiB
CSS
/* equipment-detail.css - 설비 상세 페이지 스타일 */
|
|
|
|
/* 헤더 */
|
|
.eq-detail-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.eq-detail-header .page-title-section {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.btn-back {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
padding: 0.5rem 0.75rem;
|
|
background: #f3f4f6;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 0.875rem;
|
|
color: #374151;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.btn-back:hover {
|
|
background: #e5e7eb;
|
|
}
|
|
|
|
.back-arrow {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.eq-header-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.eq-header-meta {
|
|
font-size: 0.875rem;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.eq-status-badge {
|
|
padding: 0.375rem 0.75rem;
|
|
border-radius: 20px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.eq-status-badge.active { background: #d1fae5; color: #065f46; }
|
|
.eq-status-badge.maintenance { background: #fef3c7; color: #92400e; }
|
|
.eq-status-badge.repair_needed { background: #fee2e2; color: #991b1b; }
|
|
.eq-status-badge.inactive { background: #e5e7eb; color: #374151; }
|
|
.eq-status-badge.external { background: #dbeafe; color: #1e40af; }
|
|
.eq-status-badge.repair_external { background: #ede9fe; color: #5b21b6; }
|
|
|
|
/* 기본 정보 카드 */
|
|
.eq-info-card {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 1.25rem;
|
|
margin-bottom: 1.5rem;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.eq-info-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 1rem;
|
|
}
|
|
|
|
.eq-info-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.eq-info-label {
|
|
font-size: 0.75rem;
|
|
color: #6b7280;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.eq-info-value {
|
|
font-size: 0.9375rem;
|
|
color: #111827;
|
|
}
|
|
|
|
/* 섹션 */
|
|
.eq-section {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 1.25rem;
|
|
margin-bottom: 1.5rem;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.eq-section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.eq-section-title {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: #111827;
|
|
margin: 0;
|
|
}
|
|
|
|
/* 사진 그리드 */
|
|
.eq-photo-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.eq-photo-item {
|
|
position: relative;
|
|
aspect-ratio: 1;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.eq-photo-item img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.eq-photo-item:hover img {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.eq-photo-delete {
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 4px;
|
|
width: 24px;
|
|
height: 24px;
|
|
background: rgba(239, 68, 68, 0.9);
|
|
border: none;
|
|
border-radius: 50%;
|
|
color: white;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.eq-photo-item:hover .eq-photo-delete {
|
|
opacity: 1;
|
|
}
|
|
|
|
.eq-photo-empty {
|
|
grid-column: 1 / -1;
|
|
text-align: center;
|
|
padding: 2rem;
|
|
color: #9ca3af;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
/* 위치 정보 */
|
|
.eq-location-card {
|
|
display: flex;
|
|
gap: 1.5rem;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.eq-location-info {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.eq-location-row {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.eq-location-label {
|
|
font-size: 0.875rem;
|
|
color: #6b7280;
|
|
min-width: 80px;
|
|
}
|
|
|
|
.eq-location-value {
|
|
font-size: 0.875rem;
|
|
color: #111827;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.eq-location-value.eq-moved {
|
|
color: #dc2626;
|
|
}
|
|
|
|
.eq-map-preview {
|
|
width: 200px;
|
|
height: 150px;
|
|
background: #f3f4f6;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.eq-map-preview img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.eq-map-marker {
|
|
position: absolute;
|
|
width: 12px;
|
|
height: 12px;
|
|
background: #dc2626;
|
|
border: 2px solid white;
|
|
border-radius: 50%;
|
|
transform: translate(-50%, -50%);
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
/* 액션 버튼 */
|
|
.eq-action-buttons {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
margin-bottom: 1.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.btn-action {
|
|
flex: 1;
|
|
min-width: 140px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
padding: 0.875rem 1rem;
|
|
border-radius: 10px;
|
|
font-size: 0.9375rem;
|
|
font-weight: 600;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.btn-action .btn-icon {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.btn-move {
|
|
background: #dbeafe;
|
|
color: #1e40af;
|
|
}
|
|
.btn-move:hover { background: #bfdbfe; }
|
|
|
|
.btn-repair {
|
|
background: #fef3c7;
|
|
color: #92400e;
|
|
}
|
|
.btn-repair:hover { background: #fde68a; }
|
|
|
|
.btn-export {
|
|
background: #ede9fe;
|
|
color: #5b21b6;
|
|
}
|
|
.btn-export:hover { background: #ddd6fe; }
|
|
|
|
/* 이력 리스트 */
|
|
.eq-history-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.eq-history-item {
|
|
display: flex;
|
|
gap: 1rem;
|
|
padding: 0.875rem;
|
|
background: #f9fafb;
|
|
border-radius: 8px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.eq-history-date {
|
|
font-size: 0.8125rem;
|
|
color: #6b7280;
|
|
white-space: nowrap;
|
|
min-width: 80px;
|
|
}
|
|
|
|
.eq-history-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.eq-history-title {
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: #111827;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.eq-history-detail {
|
|
font-size: 0.8125rem;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.eq-history-status {
|
|
font-size: 0.75rem;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.eq-history-status.pending { background: #fef3c7; color: #92400e; }
|
|
.eq-history-status.in_progress { background: #dbeafe; color: #1e40af; }
|
|
.eq-history-status.completed { background: #d1fae5; color: #065f46; }
|
|
.eq-history-status.exported { background: #ede9fe; color: #5b21b6; }
|
|
.eq-history-status.returned { background: #d1fae5; color: #065f46; }
|
|
|
|
.eq-history-empty {
|
|
text-align: center;
|
|
padding: 1.5rem;
|
|
color: #9ca3af;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.eq-history-action {
|
|
padding: 0.375rem 0.75rem;
|
|
background: #10b981;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 0.75rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.eq-history-action:hover {
|
|
background: #059669;
|
|
}
|
|
|
|
/* 모달 스타일 추가 */
|
|
.photo-preview-container {
|
|
margin-top: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.photo-preview {
|
|
max-width: 100%;
|
|
max-height: 300px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.move-step {
|
|
min-height: 200px;
|
|
}
|
|
|
|
.move-instruction {
|
|
font-size: 0.875rem;
|
|
color: #6b7280;
|
|
margin-bottom: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.move-map-container {
|
|
width: 100%;
|
|
height: 300px;
|
|
background: #f3f4f6;
|
|
border-radius: 8px;
|
|
margin-bottom: 1rem;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.move-map-container img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
cursor: crosshair;
|
|
}
|
|
|
|
.move-marker {
|
|
position: absolute;
|
|
width: 20px;
|
|
height: 20px;
|
|
background: #dc2626;
|
|
border: 3px solid white;
|
|
border-radius: 50%;
|
|
transform: translate(-50%, -50%);
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.checkbox-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.checkbox-label input[type="checkbox"] {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.repair-photo-previews {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
flex-wrap: wrap;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.repair-photo-preview {
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 6px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
/* 사진 확대 보기 */
|
|
.photo-view-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0,0,0,0.9);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.photo-view-close {
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 20px;
|
|
background: none;
|
|
border: none;
|
|
color: white;
|
|
font-size: 2rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.photo-view-image {
|
|
max-width: 90%;
|
|
max-height: 90%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
/* 버튼 스타일 */
|
|
.btn-sm {
|
|
padding: 0.375rem 0.75rem;
|
|
font-size: 0.8125rem;
|
|
}
|
|
|
|
.btn-outline {
|
|
background: transparent;
|
|
border: 1px solid #d1d5db;
|
|
color: #374151;
|
|
}
|
|
|
|
.btn-outline:hover {
|
|
background: #f3f4f6;
|
|
}
|
|
|
|
/* 반응형 */
|
|
@media (max-width: 768px) {
|
|
.eq-detail-header {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.eq-location-card {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.eq-map-preview {
|
|
width: 100%;
|
|
height: 200px;
|
|
}
|
|
|
|
.eq-action-buttons {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.btn-action {
|
|
min-width: auto;
|
|
}
|
|
|
|
.eq-info-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|