/* ---------------------------------------------------------------------------
 * Form_SelectDept_New.xfdl 변환본 — 영업조직 선택 모달 + reference fragment 스타일.
 *
 * 원본은 400×120 작은 팝업: 타이틀 + 콤보 + 선택 버튼 + 안내. SelectFolderModal/
 * AddFolderModal 과 동일한 .layer-popup 패턴이지만 복합 객체 반환 (모달 #5 패턴).
 * --------------------------------------------------------------------------- */

#select-dept-new-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  font-family: 'Pretendard', 'Malgun Gothic', sans-serif;
}
#select-dept-new-modal.is-open { display: flex; }

#select-dept-new-modal .layer-wrap {
  width: 420px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

#select-dept-new-modal .layer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: #2c4368;
  color: #ffffff;
}
#select-dept-new-modal .layer-title { margin: 0; font-size: 14px; font-weight: 600; }
#select-dept-new-modal .layer-close {
  width: 20px; height: 20px; border: 0; background: transparent;
  color: #ffffff; cursor: pointer; font-size: 16px; line-height: 1; border-radius: 3px;
}
#select-dept-new-modal .layer-close:hover { background: rgba(255, 255, 255, 0.18); }

#select-dept-new-modal .layer-content { padding: 16px; }
#select-dept-new-modal .field-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
#select-dept-new-modal .field-label {
  width: 70px; font-size: 13px; color: #1f2a44; font-weight: 600;
}
#select-dept-new-modal .field-select {
  flex: 1 1 auto;
  height: 30px;
  padding: 4px 8px;
  border: 1px solid #d0d4dc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  background: #ffffff;
}
#select-dept-new-modal .field-select:focus { border-color: #4f6b96; }
#select-dept-new-modal .desc {
  font-size: 12px; color: #6d7280; margin: 8px 0 0 78px;
}

#select-dept-new-modal .layer-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 16px;
  background: #fafbfc;
  border-top: 1px solid #eef0f3;
}
#select-dept-new-modal .layer-footer button {
  height: 30px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
#select-dept-new-modal .btn-ok { background: #2c4368; color: #ffffff; }
#select-dept-new-modal .btn-ok:hover { background: #1f2a44; }
#select-dept-new-modal .btn-cancel { background: #e6e8ec; color: #1f2a44; }
#select-dept-new-modal .btn-cancel:hover { background: #d0d4dc; }

/* form-select-dept-new reference fragment 스타일 — 다른 reference 와 동일 톤 */
.form-select-dept-new-fragment {
  padding: 24px;
  font-family: 'Pretendard', 'Malgun Gothic', sans-serif;
  color: #1f2a44;
}
.form-select-dept-new-fragment h3 { margin: 0 0 12px 0; font-size: 16px; color: #2c4368; }
.form-select-dept-new-fragment p.lead { margin: 0 0 20px 0; font-size: 13px; color: #555; line-height: 1.7; }
.form-select-dept-new-mapping {
  width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 24px;
}
.form-select-dept-new-mapping th, .form-select-dept-new-mapping td {
  border: 1px solid #d0d4dc; padding: 8px 12px; vertical-align: top;
}
.form-select-dept-new-mapping thead th { background: #eceefa; color: #1f2a44; font-weight: 600; }
.form-select-dept-new-mapping td code {
  background: #f5f6f8; padding: 1px 5px; border-radius: 2px;
  font-family: 'Menlo', 'Consolas', monospace; font-size: 12px; color: #2c4368;
}
.form-select-dept-new-fragment .demo-box {
  background: #fbfbfc; border: 1px dashed #b8c0cf; border-radius: 4px;
  padding: 12px 16px; font-size: 13px; line-height: 1.7; color: #1f2a44;
}
.form-select-dept-new-fragment .demo-box strong { color: #2c4368; }
.form-select-dept-new-fragment pre {
  background: #1f2a44; color: #eceefa; padding: 12px 16px; border-radius: 4px;
  font-family: 'Menlo', 'Consolas', monospace; font-size: 12px; line-height: 1.5;
  overflow-x: auto;
}
.form-select-dept-new-fragment .demo-launch {
  display: inline-block; margin-top: 8px; padding: 6px 14px;
  background: #2c4368; color: #ffffff; border: 0; border-radius: 4px;
  font-family: inherit; font-size: 13px; cursor: pointer;
}
.form-select-dept-new-fragment .demo-launch:hover { background: #1f2a44; }
