.popup-overlay {
  display: none; /* 기본적으로 숨김 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* 팝업 창 */
.popup {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 80vh;
  overflow-y: auto;
}

.popup-buttons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.popup-buttons button {
  /* padding: 8px 16px; */
  margin: 5px;
  /* border: none; */
  /* border-radius: 5px; */
  /* cursor: pointer; */
  font-size: 14px;
  /* background-color: #DAE3F3;
  border: 1px solid #2f5597;
  color: black; */
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

/* .popup-buttons button:hover {
  background-color: #C53B4B;
  border: 1px solid #F2BBD4;
  color: white;
} */

/* 부서 리스트 컨테이너 스타일 */
#departmentList {
  list-style: none;
  padding: 10px;
  margin: 0;
  font-size: 14px;
  max-height: 400px;
  overflow-y: auto;
}

/* 개별 부서 항목 스타일 */
.department-item,
.company-item,
.employee-item {
  display: block;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.2s ease-in-out;
  cursor: pointer;
  position: relative;
}

/* 내부 요소 flex 정렬 */
.department-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.employee-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 부서 항목 호버 효과 */
/* .department-item:hover {
  background-color: #f5f5f5;
} */

/* 들여쓰기 적용 */
.department-item[data-depth] {
  padding-left: calc(20px + (var(--depth) * 15px));
}

/* 토글 버튼 스타일 */
.toggle-button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 0 5px;
  box-shadow: none;
  color: #007bff;
}

.toggle-button:hover {
  color: #0056b3;
}

/* 부서 선택 라디오/체크박스 스타일 */
.department-item input[type="radio"],
.department-item input[type="checkbox"] {
  transform: scale(1.1);
  cursor: pointer;
}

/* 법인 선택 라디오/체크박스 스타일 */
.company-item input[type="radio"],
.company-item input[type="checkbox"] {
  transform: scale(1.1);
  cursor: pointer;
}

/* 사원 선택 라디오/체크박스 스타일 */
.employee-list input[type="radio"],
.employee-list input[type="checkbox"] {
  transform: scale(1.1);
  cursor: pointer;
}

/* 부서명 스타일 */
.department-item label {
  cursor: pointer;
  font-weight: 500;
}

/* 법인명 스타일 */
.company-item label {
  cursor: pointer;
  font-weight: 500;
}

/* 사원명 스타일 */
.employee-list label {
  cursor: pointer;
  font-weight: 500;
}

/* 하위 부서 리스트 스타일 */
.department-sublist {
  padding-left: 20px;
  list-style: none;
  margin: 0;
}

#confirmButton {
  background-color: #F2BBD4;
  border: 1px solid #C53B4B;
  color: black;
  border-radius: 3px;
}

#confirmButton:hover {
  background-color: #C53B4B;
  border: 1px solid #F2BBD4;
  color: white;
}

#cancelButton {
  background-color: #6D6D6D;
  border: 1px solid black;
  color: white;
  border-radius: 3px;
}

#cancelButton:hover {
  background-color: #C53B4B;
  border: 1px solid #F2BBD4;
  color: white;
}

