/* ============================================================
 * 지식이음 우측 세로 썸네일 사이드바 (기증자료 이미지 뷰어용)
 * - 지식이음 side.css(.quickWrap/.quickBox/.lst …)를 px 기반으로 이식
 * - 뷰어 컨테이너(.viewer-canvas) 뒤에 삽입되므로 backdrop 위에서 클릭 가능
 * ============================================================ */

/* ----- 우측 사이드바 래퍼 ----- */
/* 지식이음 동일: quickWrap(91.5vh) > quickBox(84.7vh) → 남는 아래 공간에 로고 바, 하단 저작권 푸터와 안 겹침 */
.quickWrap { position:absolute; right:0; top:48px; width:320px; height:91.5vh; z-index:10; line-height:normal; font-size:initial; }

/* 펼치기 탭(세로) */
.quickBtn_area { position:absolute; right:-16px; top:64px; transition:0.3s; transform:rotate(-90deg); }
.quickBtn { display:inline-block; color:#000; text-align:center; font-weight:bold; padding:12px 16px; background:#f2f2fa; border-top-right-radius:8px; border-top-left-radius:8px; text-decoration:none; }
.quickBtn span { position:relative; }
.quickWrap.active .quickBtn_area { right:-45px; }

/* ----- 패널 본체 ----- */
.quickBox { display:block; width:320px; visibility:hidden; box-shadow:0 5px 5px 2px rgba(0,0,0,0.1); position:absolute; transition:0.5s; right:-200px; top:0; padding:48px 0 32px 16px; height:84.7vh; background:#f2f2fa; box-sizing:border-box; }
.quickWrap.active .quickBox { right:0; visibility:visible; }

/* 스크롤 목록 영역 */
.quickBox .box_inbox { height:100%; overflow-y:auto; overflow-x:hidden; padding-right:10px; padding-bottom:90px; box-sizing:border-box; scrollbar-color:#2f2c67 #e8e8e8; scrollbar-width:thin; }
.quickBox .box_inbox::-webkit-scrollbar { width:8px; }
.quickBox .box_inbox::-webkit-scrollbar-thumb { background:#2f2c67; border-radius:10px; }
.quickBox .box_inbox::-webkit-scrollbar-track { background:#e8e8e8; }

/* 접기 버튼 */
.quickBox .clsBtn { color:#2f2c67; font-size:18px; font-weight:bold; position:absolute; left:-26px; width:26px; top:34px; background:#f2f2fa; border:0; border-bottom-left-radius:8px; border-top-left-radius:8px; line-height:50px; cursor:pointer; }
.quickBox .clsBtn span { display:inline-flex; }

/* 사이드바 최하단 로고 바 (지식이음 .bott 그대로 이식: 네이비 바 + 지식이음 로고) */
.quickWrap .bott { display:flex; align-items:center; justify-content:center; position:absolute; left:0; bottom:0; width:100%; height:86px; padding:0 20px; background:#2f2c67; text-align:center; box-sizing:border-box; z-index:20; }
/* viewBox만 있는 SVG는 width:auto 시 자연크기(349px)로 넘침 → 고정 높이로 제한해 좌우 여백 확보 */
.quickWrap .bott img { display:inline-block; width:auto; height:38px; max-width:100%; }
/* 접힘 상태에서는 로고 바 숨김 */
.quickWrap:not(.active) .bott { display:none; }

/* 썸네일 항목 묶음 */
.box_item { }
.box_item.m_t10 { margin-top:10px; }

.quickBox .lst { position:relative; border:1px solid #cccccc; }
.quickBox .lst a { display:block; text-decoration:none; color:#000; }
.quickBox .lst a dl:hover { border:3px dotted #6699cc; box-sizing:border-box; }
.quickBox .lst a .select { border:3px dotted #6699cc !important; box-sizing:border-box !important; }
.quickBox .lst dl { position:relative; overflow:hidden; border-bottom:1px dotted #ccc; padding:10px; margin:0; background:#fff; box-sizing:border-box; }
.quickBox .lst dl:last-child { border-bottom:none; }
.quickBox .lst dl dt { float:left; width:35%; height:90px; margin:0; border:1px solid #ccc; text-align:center; overflow:hidden; display:flex; align-items:center; justify-content:center; box-sizing:border-box; }
.quickBox .lst dl dt img { height:100%; max-width:100% !important; margin:0 auto; }
.quickBox .lst dl dd { float:left; width:65%; margin:0; padding-left:8px; display:inline-block; font-size:15px; line-height:1.4; word-break:break-all; color:#333; box-sizing:border-box; }

/* ----- 상단 제목 헤더 위치 보정(viewer.css .viewer-header top:-50px → 0) + 좌측 정렬 ----- */
.viewer-container .viewer-header { top:0 !important; height:56px !important; display:flex !important; align-items:center !important; justify-content:flex-start !important; padding:0 24px !important; pointer-events:none; }
.viewer-container .viewer-header .viewer-title { position:static !important; margin:0 !important; max-width:calc(100% - 90px) !important; color:#fff !important; font-size:18px !important; font-weight:500 !important; line-height:1.3 !important; text-align:left !important; opacity:1 !important; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; left:auto !important; top:auto !important; }

/* 다운로드 버튼은 viewer.css 의 .viewer-toolbar2 / .viewer-download 스타일을 그대로 사용(지식이음 동일) */