@charset "utf-8";

/* 내용관리 */
#ctt {margin:10px 0;padding:10px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9}
.ctt_admin {margin:0 5px;text-align:right}
#ctt header h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#ctt_con {padding:10px 0}
.ctt_img {text-align:center}

/* 조직도 스타일 */
.organ.s_style {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.organ_tree_wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.organ_tree_img {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* 조직도 이미지 맵 영역 (디버깅용 임시 border) */
.organ_tree_img {
    position: relative;
}

/* 이미지맵 area 요소 스타일 */
.organ_maps {
    cursor: pointer;
    transition: all 0.3s ease;
}

.organ_maps:hover {
    filter: brightness(1.1);
}

/* 안내 메시지 세로 정렬 */
.info-messages {
    margin-top: 15px;
}

.history_info {
    display: block;
    margin-bottom: 10px;
    padding: 10px 15px;
    background: #f8f9fa;
    color: #666;
    font-size: 13px;
    text-align: center;
    border-radius: 5px;
    border-left: 4px solid #4a90e2;
}

.user-tip {
    display: block;
    padding: 10px 15px;
    background: #f0f8ff;
    color: #333;
    font-size: 13px;
    text-align: center;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

.org-chart-img {
    display: block;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
}

/* PC 버전: 800px 고정 */
@media (min-width: 801px) {
    .org-chart-img {
        width: 800px !important;
        max-width: 800px;
        margin: 0 auto !important;
        display: block !important;
    }
    
    .organ_tree_img {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
}

/* 태블릿 및 모바일: 100% 반응형 */
@media (max-width: 800px) {
    .org-chart-img {
        width: 100% !important;
        max-width: 100%;
        margin: 0 auto !important;
    }
}

.history_info {
    display: block;
    margin-top: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    color: #666;
    font-size: 13px;
    text-align: center;
    border-radius: 5px;
    border-left: 4px solid #4a90e2;
}

/* 직원현황 테이블 */
.info-section .staff-statistics {
    margin: 20px 0 !important;
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 기본 테이블 스타일 리셋 */
.staff-statistics * {
    box-sizing: border-box;
}

.staff-statistics table {
    border-spacing: 0 !important;
    border-collapse: collapse !important;
}

/* 새로운 깔끔한 직원현황 테이블 스타일 */
.table-scroll-wrapper {
    overflow-x: auto;
    border: 1px solid #ddd !important;
    margin: 20px 0 !important;
}

.organ_table1 {
    width: 100% !important;
    min-width: 800px !important;
    border-collapse: collapse !important;
    background: #fff !important;
    font-size: 13px !important;
    border: none !important;
}

.organ_table1 th {
    background: #f8f8f8 !important;
    color: #333 !important;
    padding: 12px 8px !important;
    border: 1px solid #ddd !important;
    text-align: center !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    border-top: none !important;
    font-size: 1rem;
}

.organ_table1 td {
    padding: 10px 8px !important;
    border: 1px solid #ddd !important;
    text-align: center !important;
    background: #fff !important;
    white-space: nowrap !important;
    border-top: none !important;
    font-size: 1rem;
}

.organ_table1 th:first-child,
.organ_table1 td:first-child {
    background: #f8f8f8 !important;
    font-weight: 500 !important;
    border-left: none !important;
}

.organ_table1 th:last-child,
.organ_table1 td:last-child {
    border-right: none !important;
}

.organ_table1 tr:last-child th,
.organ_table1 tr:last-child td {
    border-bottom: none !important;
}

/* 테이블 제목 스타일 */
.info-section h3.section-title-with-icon {
    color: #4a90e2 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    margin: 0 0 20px 0 !important;
    padding: 15px 20px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-left: 4px solid #4a90e2 !important;
    border-radius: 5px !important;
}


table.organ_table1 td.total {
    font-weight: bold !important;
    background: #fff3cd !important;
    color: #856404 !important;
}

.staff-statistics table.organ_table1 tbody tr:nth-child(3) td:last-child,
table.organ_table1 tbody tr:nth-child(3) td:last-child {
    font-size: 16px !important;
    font-weight: bold !important;
    background: #d4edda !important;
    color: #155724 !important;
}

/* 반응형 직원현황 테이블 스타일 */
.table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #ddd;
}

.organ_table1 {
    width: 100%;
    min-width: 800px; /* 최소 너비 설정으로 가로 스크롤 유도 */
    border-collapse: collapse;
    background: #fff;
    border: none;
    font-size: 13px;
}

.organ_table1 th {
    background: #f8f8f8;
    color: #333;
    padding: 12px 8px;
    border: 1px solid #ddd;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
    min-width: 60px;
    border-top: none;
}

.organ_table1 td {
    padding: 10px 8px;
    border: 1px solid #ddd;
    text-align: center;
    background: #fff;
    white-space: nowrap;
    min-width: 60px;
    border-top: none;
}

/* 첫 번째 열(구분) 스타일 */
.organ_table1 th:first-child,
.organ_table1 td:first-child {
    background: #f8f8f8;
    font-weight: 500;
    border-left: none;
}

/* 마지막 열 스타일 */
.organ_table1 th:last-child,
.organ_table1 td:last-child {
    border-right: none;
}

/* 테이블 하단 경계선 제거 */
.organ_table1 tr:last-child th,
.organ_table1 tr:last-child td {
    border-bottom: none;
}

/* 호버 효과 */
.organ_table1 tbody tr:hover {
    background-color: #f9f9f9;
}

.organ_table1 tbody tr:hover td {
    background-color: #f9f9f9;
}

.organ_table1 tbody tr:hover td:first-child {
    background-color: #f0f0f0;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .table-scroll-wrapper {
        margin: 15px -10px !important;
        border-radius: 0 !important;
    }
    
    .organ_table1 {
        min-width: 1000px !important;
        font-size: 12px !important;
    }
    
    .organ_table1 th,
    .organ_table1 td {
        padding: 8px 6px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .organ_table1 {
        min-width: 1200px !important;
        font-size: 11px !important;
    }
    
    .organ_table1 th,
    .organ_table1 td {
        padding: 6px 4px !important;
        font-size: 11px !important;
    }
}

/* 스크롤바 스타일링 */
.table-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .staff-statistics table.organ_table1,
    table.organ_table1 {
        font-size: 11px !important;
    }
    
    .staff-statistics table.organ_table1 th,
    .staff-statistics table.organ_table1 td,
    table.organ_table1 th,
    table.organ_table1 td {
        padding: 8px 4px !important;
        font-size: 11px !important;
    }
    
    .staff-statistics {
        padding: 15px !important;
    }
    
    .organ_pop_con {
        width: 95%;
        max-height: 85vh;
    }
    
    .organ_pop_top {
        padding: 15px 20px;
    }
    
    .orgac_tit {
        font-size: 16px;
    }
    
    .organ_pop_txt {
        padding: 20px;
        max-height: 65vh;
    }
    
    .organ_pop_txt h4 {
        font-size: 14px;
    }
    
    .history_info {
        font-size: 12px;
        padding: 8px 10px;
    }

    .staff-detail-table {
        font-size: 11px;
    }
    
    .staff-detail-table th,
    .staff-detail-table td {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .staff-detail-table th {
        font-size: 12px;
    }
    
    .duty-list {
        font-size: 13px;
    }
    
    .team-info {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .staff-statistics table.organ_table1,
    table.organ_table1 {
        font-size: 10px !important;
    }
    
    .staff-statistics table.organ_table1 th,
    .staff-statistics table.organ_table1 td,
    table.organ_table1 th,
    table.organ_table1 td {
        padding: 6px 3px !important;
        font-size: 10px !important;
    }
    
    .staff-statistics {
        margin: 15px -10px !important;
        padding: 10px !important;
    }
    
    .staff-statistics table.organ_table1 tbody tr:nth-child(3) td:last-child,
    table.organ_table1 tbody tr:nth-child(3) td:last-child {
        font-size: 12px !important;
    }

    .staff-detail-table {
        font-size: 10px;
    }
    
    .staff-detail-table th,
    .staff-detail-table td {
        padding: 6px 3px;
        font-size: 10px;
    }
    
    .staff-detail-table th {
        font-size: 11px;
    }
    
    .duty-list {
        font-size: 12px;
        padding-left: 15px;
    }
}

/* 팝업 스타일 */
.organ_pop_wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.orgac_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.organ_pop_con {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    z-index: 10000;
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.organ_pop_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.orgac_tit {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.orgac_close {
    font-size: 28px;
    color: #666;
    cursor: pointer;
    margin: 0;
    padding: 5px 10px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s;
}

.orgac_close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.organ_pop_txt {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

/* 팝업 내부 테이블 스타일 (직원현황 테이블과 동일) */
.organ_pop_txt .staff-info-section h4 {
    color: #4a90e2 !important;
    font-size: 16px !important;
    margin: 0 0 15px 0 !important;
    font-weight: 600 !important;
}

.organ_pop_txt .staff-table-wrapper {
    overflow-x: auto;
    border: 1px solid #ddd !important;
    margin: 20px 0 !important;
}

.organ_pop_txt .staff-detail-table {
    width: 100% !important;
    min-width: 500px !important;
    border-collapse: collapse !important;
    background: #fff !important;
    font-size: 13px !important;
    border: none !important;
}

.organ_pop_txt .staff-detail-table thead {
    border-bottom: 1px solid #ddd !important;
}

.organ_pop_txt .staff-detail-table th {
    background: #f8f8f8 !important;
    color: #333 !important;
    padding: 12px 8px !important;
    border: 1px solid #ddd !important;
    text-align: center !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    border-top: none !important;
}

.organ_pop_txt .staff-detail-table td {
    padding: 10px 8px !important;
    border: 1px solid #ddd !important;
    text-align: center !important;
    background: #fff !important;
    white-space: nowrap !important;
    border-top: none !important;
}

.organ_pop_txt .staff-detail-table th:first-child {
    background: #f8f8f8 !important;
    font-weight: 500 !important;
    border-left: none !important;
}

.organ_pop_txt .staff-detail-table td:first-child {
    font-weight: 500 !important;
    border-left: none !important;
}

.organ_pop_txt .staff-detail-table th:last-child,
.organ_pop_txt .staff-detail-table td:last-child {
    border-right: none !important;
}

.organ_pop_txt .staff-detail-table tr:last-child th,
.organ_pop_txt .staff-detail-table tr:last-child td {
    border-bottom: none !important;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .organ_pop_con {
        max-width: 95%;
        max-height: 95%;
        margin: 20px;
    }
    
    .organ_pop_top {
        padding: 15px 20px;
    }
    
    .orgac_tit {
        font-size: 18px;
    }
    
    .orgac_close {
        font-size: 24px;
        padding: 3px 8px;
    }
    
    .organ_pop_txt {
        padding: 20px;
        max-height: 75vh;
    }
    
    /* 모바일에서 팝업 테이블 스타일 조정 */
    .organ_pop_txt .staff-detail-table {
        min-width: 400px !important;
        font-size: 11px !important;
    }
    
    .organ_pop_txt .staff-detail-table th,
    .organ_pop_txt .staff-detail-table td {
        padding: 8px 4px !important;
        font-size: 10px !important;
    }
    
    .organ_pop_txt .staff-info-section h4 {
        font-size: 14px !important;
    }
}

/* ===========================조직도 스타일 */

/* 조직도 전체 래퍼 */
.organ-chart-wrapper {
    width: 100%;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 8px;
    overflow-x: auto;
}

.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 900px;
}

/* 조직도 행 */
.org-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    width: 100%;
}

/* 조직도 제목 */
.org-label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666;
    font-weight: 500;
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 4px;
}

/* 조직도 박스 기본 스타일 */
.org-box {
    padding: 14px 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 130px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.org-box:hover {
    border-color: #F7B825;
    box-shadow: 0 4px 12px rgba(247, 184, 37, 0.2);
    transform: translateY(-2px);
}

.org-box.org-ceo {
    background: linear-gradient(135deg, #62b37c 0%, #4a9366 100%);
    border-color: #62b37c;
    color: #ffffff;
    min-width: 160px;
}

.org-box.org-ceo:hover {
    border-color: #F7B825;
    box-shadow: 0 4px 12px rgba(247, 184, 37, 0.3);
}

.org-box.org-committee, .org-box.org-committee2  {
    background: #828282;
    border-color: #828282;
    color: #ffffff;
    min-width: 110px;
    box-shadow: none;
    transform: none;
   
}
.org-box.org-committee {
    cursor: default;
}

.org-box.org-committee2:hover {
    background: #6b6b6b;
    border-color: #F7B825;
}

.org-box.org-director {
    background: #ffffff;
    border-color: #ddd;
    color: #333;
    min-width: 120px;
    font-weight: 600;
}

.org-box.org-director:hover {
    background: #f9f9f9;
    border-color: #F7B825;
}

.org-box.org-dept-head {
    background: #3c8cd2;
    border-color: #3c8cd2;
    color: #ffffff;
    min-width: 120px;
}

.org-box.org-dept-head:hover {
    background: #2a6aaa;
    border-color: #F7B825;
}

.org-box.org-team {
    background: #34b5a8;
    border-color: #34b5a8;
    color: #ffffff;
    min-width: 110px;
}

.org-box.org-team:hover {
    background: #269a91;
    border-color: #F7B825;
}

.org-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 2px;
    letter-spacing: -0.3px;
}

.org-sub {
    font-size: 17px;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: -0.2px;
}

/* ========== 연결선 시스템 ========== */

/* 세로 연결선 (부모에서 아래로) */
.org-vline {
    width: 2px;
    height: 25px;
    background: #ccc;
    margin: 0 auto;
}

/* 컬럼 박스 - 세로 연결선과 박스를 함께 묶음 */
.org-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========== 2단계: 위원회 + 실무총괄 구조 ========== */
.org-level2-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 관장에서 내려오는 세로선 (실무총괄까지) */
.org-level2-wrapper::before {
    content: '';
    position: absolute;
    width: 2px;
    height: calc(100% + 25px);
    background: #ccc;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

/* 위원회 행 */
.org-committee-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 200px;
    position: relative;
    margin-top: 25px;
    z-index: 1;
}

/* 위원회 가로 연결선 */
.org-committee-row::before {
    content: '';
    position: absolute;
    height: 2px;
    background: #ccc;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    z-index: 0;
}

/* 위원회 박스 배경 */
.org-committee-row > .org-col {
    position: relative;
    z-index: 2;
}

/* 실무총괄 행 */
.org-director-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    position: relative;
    z-index: 1;
}

/* 실무총괄 위로 세로선 */
.org-director-row::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 25px;
    background: #ccc;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

/* ========== 3단계+4단계: 과장과 팀 복합 구조 ========== */

/* 복합 레이어 래퍼 */
.org-level34-wrapper {
    position: relative;
    margin-top: 25px;
    padding-top: 25px;
}

/* 실무총괄에서 내려오는 세로선 (가로선까지) */
.org-level34-wrapper::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 137px;
    background: #ccc;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

/* 과장 행 */
.org-manager-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

/* 총무과장 (왼쪽) */
.org-manager-left {
    position: relative;
}

/* 총무과장 아래로 세로선 */
.org-manager-left::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 25px;
    background: #ccc;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

/* 복지과장 (오른쪽) */
.org-manager-right {
    position: relative;
}

/* 복지과장 아래로 세로선 */
.org-manager-right::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 25px;
    background: #ccc;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

/* 팀 행 */
.org-team-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    position: relative;
    padding-top: 25px;
    margin-top: 25px;
}

/* 팀 가로선 - 전체 팀 연결 */
.org-team-row::before {
    content: '';
    position: absolute;
    height: 2px;
    background: #ccc;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 130px);
    max-width: 800px;
    z-index: 0;
}

/* 팀 각 컬럼 위쪽 세로선 */
.org-team-row > .org-col {
    position: relative;
}

.org-team-row > .org-col::before {
    content: '';
    display: block;
    width: 2px;
    height: 25px;
    background: #ccc;
    margin: 0 auto;
    margin-top: -25px;
}

/* 부서 정보 테이블 */
.org-detail-section {
    width: 100%;
    margin-top: 40px;
    padding: 30px 0;
    background: #f8f9fa;
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.org-info-header {
    padding: 0 20px 15px 20px;
    border-bottom: 2px solid #F7B825;
    margin-bottom: 20px;
}

.org-info-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.org-info-table-wrapper {
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 부서 상세 테이블 스타일 */
.staff-info-section {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.staff-info-section h4 {
    color: #F7B825;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #F7B825;
}

.staff-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.staff-detail-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

.staff-detail-table thead {
    background: #f8f8f8;
}

.staff-detail-table th {
    padding: 14px 12px;
    text-align: center;
    font-weight: 600;
    color: #333;
    border: 1px solid #ddd;
    border-top: none;
    font-size: 18px;
    white-space: nowrap;
    background: #f8f8f8;
}

.staff-detail-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 18px;
    color: #555;
    vertical-align: middle;
}

.staff-detail-table th:first-child,
.staff-detail-table td:first-child {
    border-left: none;
}

.staff-detail-table th:last-child,
.staff-detail-table td:last-child {
    border-right: none;
}

.staff-detail-table tr:last-child td {
    border-bottom: none;
}

.staff-detail-table tbody tr:hover {
    background: #f9f9f9;
}

.org-detail-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.org-detail-table thead {
    background: #f0f0f0;
}

.org-detail-table th {
    padding: 14px 12px;
    text-align: center;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    font-size: 13px;
    white-space: nowrap;
}

.org-detail-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #666;
}

.org-detail-table tbody tr:hover {
    background: #f9f9f9;
}

.org-detail-table tbody tr:last-child td {
    border-bottom: none;
}

/* 모바일 반응형 (767px 이하) - 조직도 세로 배치 */
@media (max-width: 767px) {
    .organ-chart-wrapper {
        padding: 20px 15px;
        overflow-x: visible;
    }

    .org-chart {
        min-width: auto;
        width: 100%;
    }

    /* 모바일에서 모든 연결선 숨기기 */
    .org-vline,
    .org-level2-wrapper::before,
    .org-committee-row::before,
    .org-director-row::before,
    .org-level3-container::before,
    .org-level3-container::after,
    .org-level3-container > .org-col::before,
    .org-level4-container::before,
    .org-level4-container > .org-col::before,
    .org-level34-wrapper::before,
    .org-manager-left::after,
    .org-manager-right::after,
    .org-team-row::before,
    .org-team-row > .org-col::before {
        display: none !important;
    }

    /* 1단계 - CEO */
    .org-row {
        flex-direction: column;
        align-items: center;
    }

    .org-label {
        position: static;
        transform: none;
        margin-bottom: 10px;
    }

    /* 2단계 - 세로 배치 */
    .org-level2-wrapper {
        margin-top: 15px;
    }

    .org-committee-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }

    .org-director-row {
        margin-top: 10px;
    }

    /* 3단계+4단계 - 세로 배치 */
    .org-level34-wrapper {
        margin-top: 15px;
        padding-top: 10px;
    }

    .org-manager-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        max-width: 100%;
        padding: 0;
    }

    .org-team-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-top: 10px;
        margin-top: 10px;
    }

    /* 3단계 - 세로 배치 (구버전 호환) */
    .org-level3-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding-top: 15px;
        margin-top: 15px;
    }

    /* 4단계 - 세로 배치 (구버전 호환) */
    .org-level4-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-top: 10px;
        margin-top: 10px;
    }

    /* 모바일 박스 스타일 */
    .org-box {
        padding: 12px 20px;
        min-width: 200px;
        width: 100%;
        max-width: 250px;
    }

    .org-box.org-ceo {
        min-width: 220px;
        max-width: 280px;
    }

    .org-box.org-committee,
    .org-box.org-director {
        min-width: 180px;
        max-width: 230px;
    }

    .org-box.org-dept-head {
        min-width: 200px;
        max-width: 250px;
    }

    .org-box.org-team {
        min-width: 180px;
        max-width: 230px;
    }

    .org-name {
        font-size: 13px;
    }

    .org-sub {
        font-size: 11px;
    }

    /* 모바일 테이블 스타일 */
    .org-detail-table {
        min-width: 500px;
        font-size: 12px;
    }

    .org-detail-table th,
    .org-detail-table td {
        padding: 10px 8px;
    }

    .org-info-header {
        padding: 0 15px 12px 15px;
    }

    .org-info-table-wrapper {
        padding: 0 15px;
    }

    .staff-detail-table {
        min-width: 450px;
        font-size: 12px;
    }

    .staff-detail-table th,
    .staff-detail-table td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .staff-info-section h4 {
        font-size: 14px;
    }
}

/* 태블릿 반응형 (768px ~ 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .organ-chart-wrapper {
        padding: 25px 15px;
    }

    .org-chart {
        min-width: 750px;
    }

    .org-box {
        padding: 12px 16px;
        min-width: 110px;
    }

    .org-box.org-ceo {
        min-width: 140px;
    }

    .org-level3-container {
        gap: 50px;
    }

    .org-level3-container::before {
        width: 280px;
    }

    /* 태블릿 3+4단계 조정 */
    .org-manager-row {
        max-width: 700px;
    }

    .org-team-row {
        gap: 10px;
    }

    .org-team-row::before {
        max-width: 650px;
    }

    .org-detail-table {
        min-width: 550px;
    }
}

/* PC 반응형 (1025px 이상) */
@media (min-width: 1025px) {
    .organ-chart-wrapper {
        padding: 35px 25px;
    }

    .org-chart {
        min-width: 950px;
    }

    .org-box {
        padding: 15px 22px;
        min-width: 140px;
    }

    .org-box.org-ceo {
        min-width: 170px;
    }

    .org-level2-container {
        gap: 40px;
    }

    .org-level3-container {
        gap: 100px;
    }

    .org-level3-container::before {
        width: 400px;
    }

    .org-level4-container {
        gap: 20px;
    }

    /* PC 3+4단계 조정 */
    .org-manager-row {
        max-width: 900px;
    }

    .org-team-row {
        gap: 20px;
    }

    .org-team-row::before {
        max-width: 850px;
    }

    .org-detail-table {
        min-width: 700px;
    }
}