/* 🔥 전체 스타일 */
#chart-container {
    width: 100%;
    height: auto;
    min-height: 600px;
    border-radius: 8px;
    background-color: #fbfafa;
    overflow-x: auto;
    padding: 20px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.orgchart {
    background: #fbfafa;
    margin: 0 auto;
}

.orgchart .node {
    border-radius: 5px;
    color: #000;
    font-weight: bold;
    padding: 10px;
    border: 2px solid #808080;
    text-align: center;
}

.orgchart .node .title {
    font-weight: bold;
    color: #fff;
    background-color: #6a6a6a;
    border-bottom: 2px solid #808080;
}

.orgchart .node .content {
    background-color: #f0f0f0;
}

.orgchart .node .btn {
    background-color: #3a86ff;
    color: #fff;
    border-radius: 3px;
    padding: 5px 10px;
    text-align: center;
    margin-top: 10px;
    cursor: pointer;
}

.orgchart .node .btn:hover {
    background-color: #1d69e3;
}

.node {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* 🔥 연결 선 스타일 수정 */
.orgchart .line,
.orgchart .lines {
    box-shadow: none !important;
    outline: none !important;
}

.orgchart .line {
    border: 2px solid #808080 !important;
    background: transparent !important;
}

.orgchart .line::before,
.orgchart .line::after,
.orgchart .lines::before,
.orgchart .lines::after {
    border: none !important;
    box-shadow: none !important;
}

.orgchart .lines {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* 🔥 자식 노드와 부모 노드의 연결선 위치 조정 */
.orgchart .line::before {
    content: '';
    position: absolute;
    width: 2px; /* 선의 두께 */
    height: 50%; /* 부모와 자식의 중앙 연결 */
    top: 0;
    left: 50%;
    background-color: #808080;
    transform: translateX(-50%); /* 수평 중앙 정렬 */
}

.orgchart .line::after {
    content: '';
    position: absolute;
    width: 100%; /* 가로로 선을 연결 */
    height: 2px; /* 선의 두께 */
    top: 50%;
    left: 0;
    background-color: #808080;
}

.orgchart .right-line,
.orgchart .left-line {
    position: absolute;
    width: 50%;
    height: 2px;
    top: 50%;
    background-color: #808080 !important;
}

.orgchart .right-line {
    left: 50%;
    border-top: 2px solid #808080 !important;
}

.orgchart .left-line {
    left: 0;
    border-top: 2px solid #808080 !important;
}

.group-list ul {
    max-height: 400px; /* 스크롤이 필요한 최대 높이 */
    overflow-y: auto;  /* 내용이 넘칠 경우만 스크롤 활성화 */
    padding: 0;
    margin: 0;
    list-style: none;
}

.employee-list ul {
    max-height: 400px; /* 스크롤이 필요한 최대 높이 */
    overflow-y: auto;  /* 내용이 넘칠 경우만 스크롤 활성화 */
    padding: 0;
    margin: 0;
    list-style: none;
}