/* SEOULWOMAN_U_SEOUL/src/main/webapp/WEB-INF/jsp/egovframework/itgcms/global/module/organization/userOrgchtList.jsp 의 <style> 을 옮김 (2026-10-11, W3C: body 안 style 금지) */
/* ===== 조직개편 조직도 (2본부 / 한 줄) ===== */
.org_chart .org_depth1 .org_depth3 .org_depth5{
    display:flex !important; flex-wrap:nowrap;
    justify-content:center; align-items:flex-start;
    gap:16px; margin:120px 0 0 0;
}
/* 원본 연결선 제거 (선은 아래 스크립트가 그림) */
.org_chart .org_depth1 .org_depth3 .org_depth5:before,
.org_chart .org_depth1 .org_depth3 .org_depth5:after,
.org_chart .org_depth1 .org_depth3 .org_depth5 > li:after,
.org_chart .org_depth1 .org_depth3 .org_depth5 > li:last-child:after,
.org_chart .org_depth1 .org_depth3 .org_depth5 .org_depth6 > li:after{
    display:none !important;
}
/* 묶음: 블록 + 가운데 정렬, 인라인 여백 제거(font-size:0) */
.org_chart .org_depth1 .org_depth3 .org_depth5 > li{
    float:none !important; width:auto !important; margin:0 !important;
    display:block; text-align:center; font-size:0;
}
/* ★ 본부 띠: 글자폭에 맞춰 좁게 + 가운데 (컬럼 폭과 분리) */
.org_chart .org_depth1 .org_depth3 .org_depth5 > li > .btn_gray{
    display:inline-flex; align-items:center; justify-content:center;
    margin:0 auto 8px;
    min-width:130px;
    min-height:44px;                 /* ★ 다른 버튼과 같은 높이 */
    white-space:nowrap;
    font-size:16px; line-height:1.4;
    padding:7px 20px; box-sizing:border-box;
}
/* ★ 하위 컬럼 폭 (이 값만 키우면 더 넓어짐) */
.org_chart .org_depth1 .org_depth3 .org_depth5 .org_depth6{
    float:none !important;
    display:inline-block; vertical-align:top;
    width:110px !important;          /* ← 하위 버튼 폭 */
    margin:0 3px !important;
}
/* 글자 (실머리 / 팀) */
.org_chart .org_depth1 .org_depth3 .org_depth5 .btn_blue,
.org_chart .org_depth1 .org_depth3 .org_depth5 .btn_depth6{
    font-size:14px; line-height:1.3;
    padding:4px; white-space:normal; word-break:keep-all;
    text-align:center;
    box-sizing:border-box;
    min-height:44px;                 /* ★ 모든 버튼 같은 높이 */
    display:flex;                    /* 세로 가운데 정렬용 */
    align-items:center;
    justify-content:center;
}
/* 수탁기관 */
.org_chart .org_depth1 .org_depth3 .org_depth5 > li.wp20{
    display:inline-block; vertical-align:top; width:130px !important;
}
.org_chart .org_depth1 .org_depth3 .org_depth5 > li.wp20 > .btn_sky{
    display:flex; align-items:center; justify-content:center;
    width:100%;
    font-size:16px; line-height:1.25;
    min-height:44px; padding:6px 4px;       /* 38 → 44, flex 추가 */
    white-space:normal; word-break:keep-all; box-sizing:border-box;
}
.org_chart .org_depth1 .org_depth3 .org_depth5 .org_depth7{
    width:130px !important; margin-top:0 !important;
}
.org_chart .org_depth1 .org_depth3 .org_depth5 .org_depth7 .btn_depth6{
    font-size:15px; line-height:1.3; padding:4px;
    white-space:normal; word-break:keep-all;
    min-height:44px;
    display:flex; align-items:center; justify-content:center;
}

.org_chart .org_depth1 .org_depth3 .org_depth5 > li > .btn_ghost{
    display:inline-flex; align-items:center; justify-content:center;
    margin:0 auto 8px;
    width:auto;
    min-height:44px;
    visibility:hidden;
    pointer-events:none;
}

.org_chart .org_depth1 .org_depth3 .org_depth5 .org_depth6 > li > .btn_ghost{
    display:inline-flex; align-items:center; justify-content:center;
    margin:0 auto 8px;
    width:auto;
    min-height:44px;
    visibility:hidden;
    pointer-events:none;
}

/* 모바일: 조직도가 화면보다 넓으면 조직도 영역 안에서만 가로 스크롤 — 360px 가로 넘침 해소 (2026-10-11) */
@media (max-width: 1023px) {
  .org_chart { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* 가운데 정렬이면 넘친 왼쪽(경영기획실 열)이 스크롤 영역 밖으로 나가 닿을 수 없음 → 왼쪽부터 배치 (2026-10-15, 웹호환성 3.2) */
  .org_chart .org_depth1 .org_depth3 .org_depth5 { justify-content: flex-start; }
}

/* 10-19 외부 기관 버튼 — 휴대폰은 터치한 버튼에 :hover 가 남아 보라색(sub.css .btn_depth6:hover)이 안 풀림 → 터치 기기에서만 평상시 색 */
@media (hover: none) {
  .org_chart button.btn_depth6[onclick^="fn_goOut"]:hover { background: #fff; color: #333; }
  .org_chart button.btn_depth6[onclick^="fn_goOut"]:active { background: #4b24af; color: #fff; } /* 누르고 있는 동안만 보라색(PC 클릭 느낌) */
}
