.item-hide{display:none !important; }
.item-active{display:block !important;}
.max-h-200{max-height:200px !important; overflow:hidden;}
.max-h-225{max-height:225px !important; overflow:hidden;}
.max-h-250{max-height:250px !important; overflow:hidden;}
.page-tab.outter{ background-color: #f0f1f7; position:sticky; top:0;}
.page-tab.outter ~ .contents-wrap{ height:calc(100% - 30px);}
.page-tab.outter ~ .layout-group{ height:calc(100% - 30px); box-sizing:border-box;}
.page-tab.outter ~ .contents-wrap .contents-header{ position:sticky; top:30px; z-index:9; background-color:#fff;}
.dashboard-chart-item{
    height:336px !important;
}
.dashboard-chart-item .item-body{
    height:calc(100% - 50px) !important;
}
.item-body .chart-wrap{
    height:100% !important;
}
.chart-wrap .chart{
    height:100% !important;

}

td a.checked:after {
    display: inline-block;
    content: '';
    width: 2.8rem;
    height: 1.4rem;
    flex-shrink: 0;
    background: url(../img/contents/ic_dropbox_active.svg) center no-repeat;
}

/* ========================================
   1. COMPONENT STYLES - TREE
   ======================================== */

.tree ul.none{
    display: none;
}
.item .folder{
    display: inline-block !important;
    padding-left:5px !important;
}
.tree .item {
    font-size: 14px !important;
    font-weight: 600 !important;
    display: flex;
    align-items: center;
}
.tree .item .toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex-shrink: 0;
}
.tree .item i {
    color: #2c2c2c;
    margin-right: 0.5rem;
    margin-top: 0px;
    font-size: 17px ;
}
.folder-item {
    padding-left: 2rem;
    padding-top: 0.5rem;
    font-size: 1.4rem;
    display: flex;
    justify-content: space-between; 
}

.tree-wrap{
    height: calc(100vh - 280px) !important;
    max-height: 780px;
}

.tree,
.tree ul {
    list-style: none; /* 기본 불릿 제거 */
    margin: 0;
    padding: 0;
    position: relative;
}

/* 하위 트리 들여쓰기 - 루트를 제외한 모든 ul */
.tree li ul {
    margin-left: 20px !important; /* 각 depth마다 20px씩 들여쓰기 */
    padding-left: 0 !important;
}

.tree li {
    margin: 0;
    padding: 10px 0px 0 0px;
    position: relative;
}
.tree li .folder{
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    width: 100%;
    height: 100%;
    padding: 0 10px;
}
/* 수직 점선 */
.tree li::before {
    content: "";
    position: absolute;
    top: 0;
    left: -15px;
    border-left: 1px dotted #6e6e6e;
    height: 100%;
}

/* 수평 점선 */
.tree li::after {
    content: "";
    position: absolute;
    top: 18px;
    left: -15px;
    width: 10px;
    border-top: 1px dotted #6e6e6e;
}
.tree li.no-toggle::after {
    width: 30px;
}

/* 루트 요소의 선 제거 */
.tree > li::before,
.tree > li::after {
    display: none;
}

.tree li .item {
    display: flex;
    /* background-color: #ffffff; */
    position: relative;
}
.tree li .item .me-auto {
    flex-grow: 1;
}
.nav-item{
    border-left: 4px solid transparent;
}
.nav-item.active{
    border-color: var(--primary);
}

/* ========================================
   2. DRAG AND DROP - 라이브러리 카테고리 이동
   ======================================== */
.bim-lib-item{cursor:grab;}
body.bim-dragging, body.bim-dragging *{cursor:pointer !important; user-select:none;}
.bim-drag-ghost{position:fixed; z-index:9999; pointer-events:none; display:flex; align-items:center; gap:8px; padding:8px 12px; background:#fff; border:1px solid #dedede; border-radius:6px; box-shadow:0 4px 12px rgba(0,0,0,0.15); max-width:220px;}
.bim-drag-ghost-img{width:40px; height:40px; border-radius:4px; object-fit:cover; flex-shrink:0;}
.bim-drag-ghost-name{font-size:13px; font-weight:600; color:#333; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
[data-node-id].drag-over{background-color:#EDF1FF; border-radius:4px; outline:2px dashed var(--primary); outline-offset:-2px;}

/* ========================================
   3. IMAGE ERROR HANDLING & PLACEHOLDER
   ======================================== */

/* 이미지 에러 시 placeholder 표시 */
.bim-lib-item .photo img[src*="no-image-placeholder"],
.bim-detail-photo img[src*="no-image-placeholder"] {
    object-fit: contain;
    background-color: #fafafa;
    padding: 30px;
}

/* 상세정보 이미지 스타일 */
.bim-detail-photo .bim-photo {
    position: relative;
    overflow: hidden;
    background-color: #fafafa;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bim-detail-photo .bim-photo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.bim-detail-photo .bim-photo img[src*="no-image-placeholder"] {
    padding: 40px;
}

/* 등록 모달 썸네일 placeholder */
.img-placeholder {
    width: 100%;
    height: 200px;
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.img-placeholder:hover {
    border-color: #999;
    background-color: #f5f5f5;
}

.img-placeholder .placeholder-content {
    text-align: center;
    color: #999;
}

.img-placeholder svg {
    margin: 0 auto 12px;
    opacity: 0.5;
}

.img-placeholder p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* 등록 모달 내 썸네일 미리보기 이미지 */
.form-uploaded-file .img {
    position: relative;
    width: 100%;
    max-height: 200px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-uploaded-file .img img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

/* 모달 내 이미지 로드 실패 시 placeholder로 전환 */
.form-uploaded-file .img img[src*="no-image-placeholder"] {
    padding: 20px;
}

/* ========================================
   3. BIM LIBRARY - EMPTY STATE & FORM
	 ======================================== */

/* 빈 상태 메시지 - 화면 중앙 배치 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 80px 20px;
    text-align: center;
    color: #999;
}

.empty-state svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

/* 라이브러리 등록/수정 폼 */
.required {
    color: #e74c3c;
    font-weight: bold;
    margin-right: 4px;
}

.error-message {
    display: block;
    margin-top: 4px;
    color: red;
    font-size: 12px;
}

.form-file-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-file-row .form-guide {
    margin-top: 0;
    flex-shrink: 0;
}

.file-info {
    margin: 0;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

.file-size {
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-clear-x {
    background: none;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 13px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-clear-x:hover {
    background: #f0f0f0;
    color: #333;
}

.btn-clear-x:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

label.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.form-note {
		display: block;
		margin-top: 4px;
		color: #999;
		font-size: 12px;
}

/* 폴더 선택 드롭다운 */
select optgroup {
    font-weight: bold;
    font-size: 14px;
    color: #2c3e50;
    background-color: #f8f9fa;
    padding: 4px 8px;
}

select optgroup option {
    font-weight: normal;
    padding-left: 12px;
    color: #495057;
    background-color: #ffffff;
}

/* 텍스트영역 */
textarea.w100 {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

/* 파일 선택 안내 */
.file-count-info {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

/* ========================================
   4. BIM LIBRARY - DETAIL SCROLL FIX
   ======================================== */

/* 상세 페이지 스크롤 수정 */
.data-view-wrap .data-view-body.scrolled-y {
    max-height: calc(100vh - 480px);
    overflow-y: auto;
}

/* simplebar 스크롤 영역 높이 설정 */
.data-view-wrap .data-view-body.scrolled-y[data-simplebar] {
    max-height: calc(100vh - 480px);
}

/* ========================================
   5. BIM LIBRARY - DETAIL TEXT OVERFLOW
   ======================================== */

/* 텍스트 오버플로우 처리 */
.bim-detail-info .input-box.text-ellipsis {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
    max-width: 100% !important;
    width: auto !important;
    word-break: break-all;
    cursor: default;
}

/* 툴팁이 있는 경우 커서 변경 */
.bim-detail-info .input-box.text-ellipsis[title]:not([title=""]):not([title="-"]) {
    cursor: help;
}

/* 부모 요소 너비 제한 */
.bim-detail-info .data {
    max-width: 100%;
    overflow: hidden;
}

/* 썸네일/버튼 영역과 세부정보 영역 사이 간격 */
.data-view-body.scrolled-y.top-line {
    margin-top: 16px;
}

/* ========================================
   6. BIM LIBRARY - CATEGORY TREE EMPTY STATE
   ======================================== */

/* 카테고리 트리 빈 상태 */
.tree-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    padding: 20px;
    text-align: center;
}

.tree-empty-state p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* 라이브러리 등록 버튼 비활성화 */
.tree-lnb-btns .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========================================
   7. BIM LIBRARY - MODAL LOADING BAR
   ======================================== */

/* 모달 헤더 하단 회색선을 로딩바로 변환 */
.modal-header.loading {
    border-bottom-color: transparent;
    position: relative;
    overflow: visible;
}

.modal-header.loading::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #E0E2EE;
    z-index: 1;
}

.modal-header.loading::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30%;
    height: 3px;
    background-color: var(--primary);
    z-index: 2;
    animation: loading-bar-slide 1.5s ease-in-out infinite;
}

@keyframes loading-bar-slide {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(250%); }
    100% { transform: translateX(-100%); }
}

/* 페이지 공용 프로그레스 바 (data-list-wrap 내부) */
.data-list-wrap {
    position: relative;
}
.progress-bar-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    overflow: hidden;
    z-index: 10;
}
.progress-bar-fill {
    width: 30%;
    height: 100%;
    background-color: var(--primary);
    animation: loading-bar-slide 1.5s ease-in-out infinite;
}

/* ========================================
   8. BADGE - 추가 상태 색상
   ======================================== */

/* 거절/실패/에러 (빨간색) */
.badge-project-status.reject{color:#E74C3C; background-color:#E74C3C1F;}
/* 대기/보류 (노란색) */
.badge-project-status.wait{color:#7f7200; background-color:#d0b55b2e;}
/* 외부연동/구독 (보라색) */
.badge-project-status.external{color:#8B5CF6; background-color:#8B5CF61F;}

/* ========================================
   9. BUTTON - 추가 색상 (success/green)
   ======================================== */

.btn.filled.success{background-color:#017F00; color:#fff;}
.btn.filled.success:hover{background-color:#016300; color:#fff;}
.btn.lined.success{border:1px solid #017F00; color:#017F00;}
.btn.lined.success:hover{background-color:#F0FFF0; border-color:#016300; color:#016300;}

/* ========================================
   10. SCHEDULE - 일정관리
   ======================================== */

/* 중간 사이즈 모달 (600px) */
.modal.popup.md .modalWrap{width:600px;}

/* 스크롤 가능한 모달 바디 */
.modal-body.scrollable{overflow-y:auto; max-height:calc(100vh - 200px);}

/* 일정 섹션 구분 */
.schedule-section{margin-top:20px;}

/* 일정 섹션 헤더 (타이틀 + 액션 버튼) */
.schedule-section-header{display:flex; align-items:center; margin-bottom:8px;}

/* 일정 상세 내용 영역 */
.schedule-content{padding:12px 0; white-space:pre-wrap;}

/* 참석자 태그 목록 */
.attendee-tag-list{display:flex; flex-wrap:wrap; gap:4px; margin-top:8px;}

/* 참석자 삭제 버튼 */
.attendee-remove-btn{font-weight:700; color:#999;}

/* 구독 URL 보조 텍스트 */
.sub-url-text{font-size:11px; color:#999; word-break:break-all;}

/* 구독 목록 스크롤 컨테이너 */
.subscription-list-wrap{margin-top:8px; max-height:300px; overflow-y:auto;}
.subscription-list-wrap thead th{position:sticky; top:0; z-index:1; background-color:#EEEEEE;}
/* 유형 목록 스크롤 컨테이너 */
td.text-ellipsis{max-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.code-list-wrap{margin-top:8px; max-height:230px; overflow-y:auto;}
.code-list-wrap thead th{position:sticky; top:0; z-index:1; background-color:#EEEEEE;}

/* 폼 액션 우측 정렬 */
.form-actions-right{text-align:right; margin-top:10px;}

/* 인라인 플렉스 정렬 (gap 6px) */
.inline-flex-center{display:inline-flex; align-items:center; gap:6px;}

/* 캘린더 컨테이너 */
.calendar-container{height:100%;}

/* 캘린더 네비게이션 버튼 */
.calendar-nav-btn{display:inline-flex; align-items:center; padding:4px; cursor:pointer;}

/* 캘린더 날짜 라벨 */
.calendar-date-label{min-width:80px; text-align:center;}

/* 폼 입력 행 (flex + gap) */
.form-input-row{display:flex; gap:6px;}

/* 참석자 선택 모달 (z-index 상위) */
.modal.popup.above{z-index:10000;}

/* 일정 네비게이션 그룹 */
.calendar-nav-group{display:inline-flex; align-items:center; gap:2px;}

/* 폰트 사이즈 유틸리티 */
.fs-12{font-size:12px;}

/* ========================================
   11. TREE - 폴더 버튼 & 툴팁 (folder-btn-wrap)
   ======================================== */

/* 폴더 삭제 버튼 아이콘 */
.btn-item-del{width:16px;height:16px;background:url(../img/contents/ic_folder_minus.svg) center no-repeat;}

/* folder-btn-wrap 공통 (manage/template 등 folder-item 컨텍스트) */
.folder-btn-wrap{position:relative;display:inline-flex;}
.folder-btn-wrap .tooltip{position:absolute;left:50%;transform:translateX(-50%);top:calc(100% + 5px);z-index:2; background-color:#0B0E24; color:#fff;font-size:14px; height:28px;padding:0 10px; border-radius:2px; box-shadow:2px 2px 4px #0B0E2433; display:inline-flex; align-items:center; visibility:hidden; white-space:nowrap;}
.folder-btn-wrap .tooltip:before{display:block;content:'';width:10px;height:10px;position:absolute;left:50%;transform:translateX(-50%) rotate(45deg);top:-4px; background-color:#0B0E24; border-radius:2px;}
.folder-btn-wrap button:hover + .tooltip{visibility:visible;}
.folder-btn-wrap:last-child .tooltip{left:auto;right:0;transform:none;}
.folder-btn-wrap:last-child .tooltip:before{left:auto;right:3px;transform:rotate(45deg);}

/* TreeView .item 컨텍스트 (bimlibrary 등) */
.item:hover .folder-button{display:flex;}
.item .folder-button{margin-left:auto;flex-shrink: 0;display:flex;gap:2px;height:19px; display:none;}
.item .folder-btn-wrap{position:relative;display:inline-flex;}
.item .folder-btn-wrap .tooltip{position:absolute;left:50%;transform:translateX(-50%);top:calc(100% + 5px);z-index:2; background-color:#0B0E24; color:#fff;font-size:14px; height:28px;padding:0 10px; border-radius:2px; box-shadow:2px 2px 4px #0B0E2433; display:inline-flex; align-items:center; visibility:hidden; white-space:nowrap;}
.item .folder-btn-wrap .tooltip:before{display:block;content:'';width:10px;height:10px;position:absolute;left:50%;transform:translateX(-50%) rotate(45deg);top:-4px; background-color:#0B0E24; border-radius:2px;}
.item .folder-btn-wrap button:hover + .tooltip{visibility:visible;}
.item .folder-btn-wrap:last-child .tooltip{left:auto;right:0;transform:none;}
.item .folder-btn-wrap:last-child .tooltip:before{left:auto;right:3px;transform:rotate(45deg);}

.bi.folder-lock{
    color:gold !important;
    font-size:11px !important;
    position: absolute;
    margin-left: -20px;
    z-index: 1;
}
.tree .item:has(.folder-checkbox) .folder-lock{
    display: none;
}

.bi.folder-restore{
    color:greenyellow !important;
    font-size:10px !important;
    position: absolute;
    margin-left: -20px;
    z-index: 1;
}
.tree .item:has(.folder-checkbox) .folder-restore{
    display: none;
}

.bi.folder-hide{
    color:#3d9bff !important;
    font-size:13px !important;
    position: absolute;
    margin-left: -20px;
    z-index: 1;
}
.tree .item:has(.folder-checkbox) .folder-hide{
    display: none;
}


.header-nav-wrap .dep1-p{display:flex; align-items:center; height:44px; padding:10px 20px; gap:6px; font-size:16px; color:#fff;line-height:1;font-weight:500;}



.p-0{padding: 0px;}
.pe-4{padding-right: 4px;}
.pe-8{padding-right: 8px;}
.pe-16{padding-right: 16px;}