/* Modal */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease; } .modal-overlay:not(.hidden) { opacity: 1; visibility: visible; } .modal-content { background-color: var(--white); width: 100%; max-width: 600px; max-height: 90vh; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); transform: translateY(20px); transition: transform 0.2s ease; display: flex; flex-direction: column; } .modal-overlay:not(.hidden) .modal-content { transform: translateY(0); } .modal-header { background-color: var(--primary-color); color: var(--white); padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; } .modal-header h2 { font-size: 1.86rem; font-weight: 700; letter-spacing: -0.02em; color: var(--white); line-height: 1.2; } .modal-header .btn-icon { color: var(--white) !important; cursor: pointer; background: none !important; border: none !important; font-size: 2.33rem; line-height: 1; } .btn-icon { display: inline-flex; align-items: center; justify-content: center; background: none; border: none; padding: 0; cursor: pointer; color: var(--primary-color); transition: opacity 0.2s; } .btn-icon:hover { opacity: 0.7; } .modal-body { padding: 1.5rem; overflow-y: auto; flex: 1; } .grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; } .form-group { display: flex; flex-direction: column; gap: 0.375rem; } .form-group.full-width { grid-column: span 2; } /* Section Title for Grouping */ .form-section-title { grid-column: span 2; font-size: 1.53rem; font-weight: 800; color: var(--primary-color); padding: 1.5rem 0 0.5rem 0; border-bottom: 1px solid var(--border-color); margin-bottom: 0.75rem; display: flex; align-items: center; } .form-section-title:first-child { padding-top: 0; } .form-group label { font-size: 1.47rem; font-weight: 700; color: var(--text-muted); } .form-group input, .form-group select, .form-group textarea { height: 38px; padding: 0 0.625rem; border: 1px solid var(--border-color); border-radius: 4px; font-family: inherit; font-size: 1.53rem; outline: none; transition: all 0.2s; background-color: var(--white); box-sizing: border-box; } .form-group textarea { height: auto; padding: 0.625rem; resize: none; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(30, 81, 73, 0.1); } .modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; background-color: #FAFAFA; flex-shrink: 0; } .modal-footer .btn { height: 42px; padding: 0 1.25rem; font-size: 1.17rem; } .edit-only-btn { /* Dynamic visibility handled in JS, but base style here */ } /* File Upload Display */ .file-upload-wrapper { display: flex; flex-direction: column; gap: 4px; } #hw-file-name-display { font-size: 1.08rem; color: var(--text-muted); } .footer-actions { display: flex; gap: 0.5rem; } /* Wide Modal for History/Detail */ .modal-content.wide { max-width: 950px; } /* Upload Preview Specific */ .upload-sidebar { width: 240px; border-right: 1px solid var(--border-color); background-color: var(--bg-light); padding: 1.5rem 1rem; overflow-y: auto; flex-shrink: 0; } .upload-tab-container { display: flex; flex-direction: column; gap: 0.5rem; } .upload-tab-btn { padding: 0.75rem 1rem; border-radius: 8px; cursor: pointer; font-size: 24px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s; border: 1px solid transparent; color: var(--text-main); } .upload-tab-btn:hover { background-color: var(--white); border-color: var(--border-color); } .upload-tab-btn.active { background-color: var(--white); color: var(--primary-color); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); border-color: var(--border-color); font-weight: 800; } .preview-table-container { flex: 1; display: flex; flex-direction: column; background-color: var(--white); overflow: hidden; } .preview-stats-bar { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; background-color: var(--white); } .preview-table { width: 100%; border-collapse: collapse; min-width: max-content; } .preview-table thead { position: sticky; top: 0; z-index: 10; background-color: var(--bg-light); box-shadow: 0 1px 0 var(--border-color); } .preview-table th { padding: 0.75rem 1rem; text-align: left; font-size: 23px; font-weight: 700; border-bottom: 1px solid var(--border-color); color: var(--text-muted); } .preview-table td { padding: 0.75rem 1rem; font-size: 24px; border-bottom: 1px solid #f1f5f9; color: var(--text-main); } .preview-table tr:hover { background-color: var(--bg-light); } .modal-body-split { display: flex; gap: 2rem; min-height: 480px; } .modal-form-area { flex: 1.2; } .modal-history-area { flex: 0.8; border-left: 1px solid var(--border-color); padding-left: 1.5rem; display: flex; flex-direction: column; } .history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; } .history-header h3 { font-size: 1.67rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; color: var(--text-main); } /* 읽기 전용 필드 (자산번호 등) 통일 스타일 */ .is-readonly-field { border-color: transparent !important; background-color: transparent !important; pointer-events: none !important; color: var(--text-main) !important; font-weight: 700 !important; cursor: default; padding-left: 0 !important; } /* 입력 필드 + 버튼 그룹 (자산번호 생성 등) */ .input-with-btn { display: flex; gap: 0.5rem; align-items: center; width: 100%; } .input-with-btn input { flex: 1; min-width: 0; /* flex 컨테이너 안에서 너비 압축 방지 */ } .input-with-btn .btn { flex-shrink: 0; white-space: nowrap; } .history-timeline { flex: 1; overflow-y: auto; max-height: 500px; padding-right: 8px; margin-top: 8px; } .history-item { position: relative; padding-left: 20px; padding-bottom: 20px; border-left: 2px solid var(--border-color); } .history-item:last-child { border-left: 2px solid transparent; } .history-item::before { content: ''; position: absolute; left: -7px; top: 0; width: 12px; height: 12px; border-radius: 50%; background-color: var(--white); border: 2px solid var(--primary-color); z-index: 1; } /* Event Specific Markers */ .history-item.evt-dept::before { border-color: #3b82f6; } .history-item.evt-user::before { border-color: #8b5cf6; } .history-item.evt-role::before { border-color: #10b981; } .history-item.evt-status::before { border-color: #f59e0b; } .history-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; } .history-date { font-size: 15px; color: var(--text-muted); font-weight: 600; } .history-tag { font-size: 14px; font-weight: 800; padding: 2px 6px; border-radius: 10px; text-transform: uppercase; } .tag-dept { background: #eff6ff; color: #3b82f6; } .tag-user { background: #f5f3ff; color: #8b5cf6; } .tag-role { background: #ecfdf5; color: #10b981; } .tag-status { background: #fffbeb; color: #f59e0b; } .tag-default { background: #f3f4f6; color: #6b7280; } .history-user { font-size: 15px; font-weight: 700; color: var(--text-main); margin-bottom: 6px; display: block; } .history-details { font-size: 17px; color: var(--text-main); line-height: 1.5; background: #f8fafc; padding: 8px 10px; border-radius: 6px; border: 1px solid #f1f5f9; word-break: break-all; } .history-arrow { display: inline-block; margin: 0 4px; color: var(--text-muted); font-weight: 500; } .empty-history { padding: 2rem 0; text-align: center; color: var(--text-muted); font-size: 1.47rem; } /* Dashboard Detail Modal Table Fixed Header */ #dashboard-detail-modal .modal-body { overflow-y: auto; max-height: calc(80vh - 120px); padding: 0; } /* 모달 내부의 table-container 기존 전역 스타일 무력화 */ #dashboard-detail-modal .table-container { border: none; border-radius: 0; box-shadow: none; max-height: none; overflow: visible; } #dashboard-detail-modal table { width: 100%; border-collapse: separate; border-spacing: 0; } #dashboard-detail-modal thead th { position: sticky; top: 0; background-color: var(--bg-light); z-index: 10; border-bottom: 2px solid var(--border-color); box-shadow: none; padding: 0.75rem 1rem; font-size: 1.47rem; font-weight: 700; color: var(--text-main); text-align: left; white-space: nowrap; } #dashboard-detail-modal tbody td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-color); font-size: 1.47rem; color: var(--text-main); white-space: nowrap; } #dashboard-detail-modal tbody tr:last-child td { border-bottom: none; } #dashboard-detail-modal tbody tr:hover { background-color: var(--bg-light); } /* 뱃지 스타일 (대시보드 상세 목록용) */ #dashboard-detail-modal .badge { display: inline-block; padding: 0.125rem 0.5rem; border-radius: 4px; font-size: 1.4rem; font-weight: 600; line-height: 1.5; } #dashboard-detail-modal .badge-outline { border: 1px solid var(--primary-color); color: var(--primary-color); background: var(--primary-light); } #dashboard-detail-modal .badge-sw { border: 1px solid #3b82f6; color: #3b82f6; background: #eff6ff; } /* Layout Map & Image Picker Styles */ .layout-map-container { position: relative; display: inline-block; cursor: crosshair; background-color: #f0f0f0; border-radius: 4px; overflow: hidden; } .layout-map-container.readonly { cursor: default; } .layout-map-container.readonly .map-seat-obj { pointer-events: none; } .digital-overlay-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 8; } .digital-map-svg { width: 100%; height: 100%; } .map-seat-obj { fill: rgba(30, 81, 73, 0.02); stroke: rgba(30, 81, 73, 0.15); /* 평상시에도 아주 연하게 보이게 수정 */ stroke-width: 0.2; cursor: pointer; pointer-events: all; transition: all 0.2s; } .map-seat-obj:hover { fill: rgba(30, 81, 73, 0.3); stroke: rgba(30, 81, 73, 0.6); stroke-width: 0.5; } .layout-map-img { display: block; max-width: 100%; max-height: 75vh; user-select: none; -webkit-user-drag: none; } .layout-marker { position: absolute; width: 14px; height: 14px; background-color: rgba(30, 81, 73, 0.7); border: 2px solid #FFFFFF; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 10; box-shadow: 0 0 8px rgba(0,0,0,0.4); } .pulse-marker { background-color: rgba(255, 61, 0, 0.8) !important; border-color: #FFFFFF !important; animation: marker-pulse 1.2s infinite; } @keyframes marker-pulse { 0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(255, 61, 0, 0.6); } 70% { transform: translate(-50%, -50%) scale(1.6); box-shadow: 0 0 0 10px rgba(255, 61, 0, 0); } 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(255, 61, 0, 0); } } .image-picker-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.85); z-index: 2500; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; } .image-picker-header { width: 100%; max-width: 900px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .image-picker-header h3 { color: white; margin: 0; font-size: 1.67rem; font-weight: 700; } .image-picker-content { background: white; padding: 8px; border-radius: 8px; max-width: 95vw; max-height: 80vh; overflow: auto; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; } .picker-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 60px; background: rgba(0,0,0,0.5); color: white; display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; z-index: 100; user-select: none; transition: background 0.2s; } .picker-nav:hover { background: rgba(0,0,0,0.8); } .picker-nav.disabled { opacity: 0.2; cursor: not-allowed; } .picker-nav.prev { left: 10px; border-radius: 0 4px 4px 0; } .picker-nav.next { right: 10px; border-radius: 4px 0 0 4px; } .image-picker-footer { margin-top: 20px; display: flex; gap: 12px; } .btn-loc-action { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 6px; font-size: 14px !important; font-weight: 700; border-radius: 4px; height: 24px; min-width: 52px; white-space: nowrap; transition: all 0.2s; } .btn-loc-view { background-color: var(--primary-color); color: white !important; border: none; } .btn-loc-view:hover { background-color: #163d37; } .location-detail-container { display: flex; align-items: center; gap: 0.5rem; } .location-detail-container select { flex: 1; } /* Dynamic Remote Info Row */ .remote-info-row { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border-color); } .remote-info-row:last-child { border-bottom: none; } .ri-line { display: flex; gap: 8px; align-items: center; } .ri-line select, .ri-line input { height: 38px; box-sizing: border-box; font-size: 17px; padding: 0 10px; border: 1px solid var(--border-color); border-radius: 4px; outline: none; background-color: var(--white); color: var(--text-main); transition: border-color 0.2s; } .ri-line select:disabled, .ri-line input[readonly] { background-color: var(--bg-muted); border-color: transparent; cursor: default; } .ri-line select:focus, .ri-line input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(30, 81, 73, 0.1); } .ri-type, .ri-tool { width: 110px; flex-shrink: 0; } .ri-val1, .ri-id, .ri-pw { flex: 1; min-width: 0; } .ri-remove-btn { height: 38px; width: 38px; padding: 0; color: #E11D48; border: 1px solid #E11D48; background: transparent; border-radius: 4px; cursor: pointer; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; transition: all 0.2s; } .ri-remove-btn:hover { background-color: #FFF1F2; } .ri-spacer { width: 46px; /* 38px btn + 8px gap */ flex-shrink: 0; } .ri-connector { width: 24px; height: 24px; border-left: 1.5px solid #94a3b8; border-bottom: 1.5px solid #94a3b8; margin-top: -24px; margin-left: 12px; border-bottom-left-radius: 6px; flex-shrink: 0; } .ri-cred-line { margin-top: -4px; }