@charset "UTF-8";
/* 홈페이지 조직도 (homepage/shared/IM/orgChart.jsp) */
.org-chart__top-img { margin: 20px 0 0; text-align: center; }
.org-chart__top-img img { max-width: 100%; height: auto; vertical-align: top; }
.org-chart { padding: 30px 0 60px; color: #333; text-align: left; }
.org-chart [hidden] { display: none !important; }
.org-chart .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.org-chart__empty { padding: 60px 0; text-align: center; color: #888; }
.org-chart__guide { margin: 0 0 24px; text-align: center; color: #666; font-size: 15px; }

/* ---------- 조직도 ---------- */
.org-chart__diagram { position: relative; padding-bottom: 10px; }
.org-chart__diagram ul { list-style: none; margin: 0; padding-left: 0; padding-right: 0; }

.org-chart__box { display: inline-block; border: 1px solid #d5dbe3; border-radius: 6px; background: #fff; color: #333; font-size: 15px; font-weight: 600; line-height: 1.3; padding: 10px 18px; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,.08); transition: border-color .15s, color .15s, background-color .15s; }
.org-chart__box:hover, .org-chart__box:focus { border-color: #0096e0; color: #0096e0; }
.org-chart__box:focus { outline: 2px solid #0096e0; outline-offset: 2px; }
.org-chart__box.is-active { background: #0096e0; border-color: #0096e0; color: #fff; }

/* 상단 : 세로 연결 */
.org-chart__top { display: flex; flex-direction: column; align-items: center; }
.org-chart__top li { position: relative; padding-bottom: 22px; }
.org-chart__top li:after { content: ""; position: absolute; left: 50%; bottom: 0; height: 22px; border-left: 1px solid #b8c2cc; }
/* 상단 : 위쪽(이사장)은 작고 연하게, 마지막 상단(대표이사)은 진하고 크게 */
.org-chart__box--top { min-width: 120px; padding: 8px 16px; background: #f7f8fa; border-color: #e1e5ea; color: #666; font-size: 14px; font-weight: 500; box-shadow: none; }
.org-chart__box--top-main { min-width: 170px; padding: 12px 26px 14px; background: #2f4a6d; border-color: #2f4a6d; color: #fff; font-size: 17px; font-weight: 700; box-shadow: 0 3px 8px rgba(0,0,0,.15); }
.org-chart__box--top-main:hover, .org-chart__box--top-main:focus { background: #0096e0; border-color: #0096e0; color: #fff; }
/* 상단옆 : 그 상단 아래 연결선을 늘려(70px) 중간에서 오른쪽으로 가로선 연결 — 아래 상단(대표이사) 상자보다 바깥에 오도록 110px 띄움 */
.org-chart__top li.org-chart__top-item--aside { padding-bottom: 70px; }
.org-chart__top li.org-chart__top-item--aside:after { height: 70px; }
.org-chart__aside { position: absolute; left: 50%; bottom: 0; height: 70px; display: flex; align-items: center; gap: 8px; padding-left: 110px; white-space: nowrap; }
.org-chart__aside:before { content: ""; position: absolute; left: 0; top: 50%; width: 110px; border-top: 1px solid #b8c2cc; }
.org-chart__aside .org-chart__box--side { min-width: 120px; padding: 8px 16px; color: #666; font-size: 14px; box-shadow: none; }
/* 이사장·이사회(작은 상자)는 같은 크기, 글자는 상자 정가운데
   ※ 14px에서는 '사'만 1px 아래로 그려져 글자끼리 삐뚤어 보임 → 15px(이·사·장·회가 한 줄로 그려지는 크기)
   ※ 15px 글자 높이 13px + 위아래 각 10px + 테두리 = 35px (실제 화면 픽셀로 위아래 10px씩 확인).
      대표이사·본부 상자의 위아래 여백이 다른 것은 Spoqa Han Sans 한글이 글자칸 안에서 아래로 치우쳐 있어서 */
.org-chart__box--top:not(.org-chart__box--top-main), .org-chart__aside .org-chart__box--side { display: inline-flex; justify-content: center; align-items: center; box-sizing: border-box; height: 35px; padding-top: 0; padding-bottom: 0; font-size: 15px; line-height: 1; }

/* 상단보조 : 중앙선 왼쪽(.org-chart__side-left)·오른쪽(.org-chart__side-right), 좌우 열은 각각 위에서부터 채움 */
.org-chart__side { position: relative; display: grid; grid-template-columns: 1fr 60px 1fr; grid-auto-flow: row dense; row-gap: 12px; padding: 0 0 26px; }
.org-chart__side:before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid #b8c2cc; }
.org-chart__side li { position: relative; grid-column: 1; justify-self: end; }
.org-chart__side li.org-chart__side-right { grid-column: 3; justify-self: start; }
.org-chart__side li:after { content: ""; position: absolute; top: 50%; right: -30px; width: 30px; border-top: 1px solid #b8c2cc; }
.org-chart__side li.org-chart__side-right:after { right: auto; left: -30px; }
.org-chart__box--side { min-width: 130px; padding-top: 10.75px; padding-bottom: 9.25px; background: #f6f7f9; font-weight: 500; }

/* 본부 + 팀 : 가로선은 첫 본부 중앙 ~ 마지막 본부 중앙까지 */
.org-chart__hq { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 16px; padding-top: 22px; }
.org-chart__hq-item { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.org-chart__hq-item:before { content: ""; position: absolute; left: 50%; top: -22px; height: 22px; border-left: 1px solid #b8c2cc; }
.org-chart__hq-item:after { content: ""; position: absolute; top: -22px; left: -8px; right: -8px; border-top: 1px solid #b8c2cc; }
.org-chart__hq-item:first-child:after { left: 50%; }
.org-chart__hq-item:last-child:after { right: 50%; }
.org-chart__hq-item:only-child:after { display: none; }
.org-chart__box--hq { width: 100%; max-width: 240px; padding: 13.5px 10px 14.5px; font-size: 16px; }
.org-chart__hq-item--c0 .org-chart__box--hq { border-color: #8fd9e0; background: #e7f8fa; }
.org-chart__hq-item--c1 .org-chart__box--hq { border-color: #8cc8f0; background: #e8f4fc; }
.org-chart__hq-item--c2 .org-chart__box--hq { border-color: #b7c1f5; background: #eef0fd; }
.org-chart__hq-item .org-chart__box--hq.is-active { background: #0096e0; border-color: #0096e0; color: #fff; }

/* 팀 : 본부 아래 세로 목록 + 왼쪽 세로선에서 각 팀으로 가로 연결선
   (.org-chart__diagram ul 리셋보다 우선하도록 .org-chart__diagram 을 붙임) */
.org-chart__diagram .org-chart__teams { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 240px; margin: 12px 0 0; padding: 0 0 0 20px; box-sizing: border-box; }
.org-chart__teams li { position: relative; }
.org-chart__teams li:before { content: ""; position: absolute; left: -12px; top: 50%; width: 12px; border-top: 1px solid #b8c2cc; }
.org-chart__teams li:after { content: ""; position: absolute; left: -12px; top: -6px; bottom: 0; border-left: 1px solid #b8c2cc; }
.org-chart__teams li:first-child:after { top: -12px; }
.org-chart__teams li:last-child:after { bottom: 50%; }
.org-chart__box--team { display: block; width: 100%; box-sizing: border-box; padding: 8px 12px; font-size: 14px; font-weight: 500; text-align: left; box-shadow: none; }

/* 팀 가로 나열(768px 이상) : 본부 아래 가로선에서 팀마다 세로선, 팀 이름은 세로쓰기
   칸이 좁아지면 orgChart.js 가 그 본부에 .org-chart__hq-item--list 를 붙여 위의 세로 목록으로 되돌린다 */
@media (min-width: 768px) {
	.org-chart__hq-item--list { flex-grow: 5 !important; }
	.org-chart__diagram .org-chart__hq-item:not(.org-chart__hq-item--list) .org-chart__teams { position: relative; flex-direction: row; justify-content: center; align-items: stretch; gap: 6px; max-width: none; margin: 0; padding: 24px 0 0; }
	.org-chart__hq-item:not(.org-chart__hq-item--list) .org-chart__teams:before { content: ""; position: absolute; left: 50%; top: 0; height: 12px; border-left: 1px solid #b8c2cc; }
	.org-chart__hq-item:not(.org-chart__hq-item--list) .org-chart__teams li { display: flex; flex: 1 1 0; min-width: 0; max-width: 56px; }
	.org-chart__hq-item:not(.org-chart__hq-item--list) .org-chart__teams li:before { left: 50%; top: -12px; width: 0; height: 12px; border-top: 0; border-left: 1px solid #b8c2cc; }
	.org-chart__hq-item:not(.org-chart__hq-item--list) .org-chart__teams li:after { left: -3px; right: -3px; top: -12px; bottom: auto; height: 0; border-left: 0; border-top: 1px solid #b8c2cc; }
	.org-chart__hq-item:not(.org-chart__hq-item--list) .org-chart__teams li:first-child:after { left: 50%; top: -12px; }
	.org-chart__hq-item:not(.org-chart__hq-item--list) .org-chart__teams li:last-child:after { right: 50%; bottom: auto; }
	.org-chart__hq-item:not(.org-chart__hq-item--list) .org-chart__teams li:only-child:after { display: none; }
	.org-chart__hq-item:not(.org-chart__hq-item--list) .org-chart__box--team { display: flex; justify-content: center; align-items: flex-start; padding: 14px 0; font-size: 15px; }
	.org-chart__hq-item:not(.org-chart__hq-item--list) .org-chart__team-nm { writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 1px; }
	/* 세로쓰기에선 띄어쓰기가 한 글자 높이로 벌어져 숨김 (가로 목록에선 그대로 띄어 씀) */
	.org-chart__hq-item:not(.org-chart__hq-item--list) .org-chart__team-gap { display: none; }
	.org-chart__hq-item:not(.org-chart__hq-item--list) .org-chart__box--team-long { font-size: 13px; }
	.org-chart__hq-item:not(.org-chart__hq-item--list) .org-chart__box--team-long .org-chart__team-nm { letter-spacing: 0; }
}

/* ---------- 부서 정보 ---------- */
.org-chart__info-head { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 40px 0 16px; }
.org-chart__info-title { margin: 0; font-size: 18px; font-weight: 700; }
.org-chart__all-btn { border: 0; border-radius: 14px; background: #4a5563; color: #fff; font-size: 13px; padding: 5px 14px; cursor: pointer; }
.org-chart__all-btn:hover, .org-chart__all-btn:focus { background: #0096e0; }

.org-chart__dept { outline: none; }
.org-chart__no-mbr { color: #888; }

/* 부서별 담당자 : 왼쪽 부서명 / 오른쪽 담당자. 선은 다른 게시판 표처럼 위 2px 진회색 + 사이 1px 연회색,
   부서명과 첫 담당자 첫 줄의 높이를 맞춤 */
.org-chart__member-list { margin: 0 0 24px; }
.org-chart__member-list:after { content: ""; display: block; clear: both; }
.org-chart__member-dept { float: left; width: 22%; margin: 0 3% 0 0; padding: 16px 0 0; border-top: 2px solid #333; background: none; color: #333; font-size: 17px; font-weight: bold; line-height: 1.5; text-align: right; word-break: keep-all; }
.org-chart__member { float: left; width: 75%; margin: 0; padding: 16px 0; border-top: 2px solid #333; line-height: 1.5; }
.org-chart__member--sub { float: right; border-top: 1px solid #ddd; }
.org-chart__member p { margin: 0; padding-bottom: 8px; }
.org-chart__member-position, .org-chart__member-name { font-weight: bold; }
.org-chart__member-tel { background: url("../images/img/tel_img.png") no-repeat left 3px; padding-left: 25px; }
.org-chart__member-tel a { color: inherit; text-decoration: none; }

/* ---------- 모바일 ---------- */
@media (max-width: 767px) {
	.org-chart { padding-top: 16px; }
	.org-chart__side { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
	.org-chart__side:before, .org-chart__side li:after { display: none; }
	.org-chart__top li.org-chart__top-item--aside { padding-bottom: 22px; }
	.org-chart__top li.org-chart__top-item--aside:after { height: 22px; }
	.org-chart__aside { position: static; height: auto; padding-left: 0; justify-content: center; margin: 8px 0 0; text-align: center; }
	.org-chart__aside:before { display: none; }
	.org-chart__hq { flex-direction: column; align-items: stretch; padding-top: 0; gap: 18px; }
	.org-chart__hq-item:before, .org-chart__hq-item:after { display: none; }
	.org-chart__box--hq { max-width: none; }
	.org-chart__diagram .org-chart__teams { max-width: none; }

	/* 좁은 화면 : 부서명을 위 한 줄로, 담당자는 그 아래 전체 너비 */
	.org-chart__member-dept { float: none; width: auto; margin: 0; padding: 14px 0 4px; font-size: 16px; text-align: left; }
	.org-chart__member, .org-chart__member--sub { float: none; width: auto; padding: 12px 0; border-top: 1px solid #ddd; }
}
