/* ---------------------------------------------------------------------------
 * IK0611L.xfdl 변환본 — 일반 *에러 리스트 표시* 모달 (cdType 일반화).
 * Modal #A 41 + *표시 카테고리 6번째*.
 * --------------------------------------------------------------------------- */

#ik-error-list-modal {
  display: none;
  position: fixed; inset: 0; z-index: 9200;  /* 부모 모달 위 표시 */
  background: rgba(0, 0, 0, 0.45);
  align-items: center; justify-content: center;
  font-family: 'Pretendard', 'Malgun Gothic', sans-serif;
}
#ik-error-list-modal.is-open { display: flex; }
#ik-error-list-modal .layer-wrap {
  /* 고정 860px 금지 → 좁은 뷰포트에서 모달이 화면을 넘쳐 생기는 가로 스크롤 방지. */
  width: 860px; max-width: 96vw; background: #ffffff; border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  display: flex; flex-direction: column; overflow: hidden;
}
#ik-error-list-modal .layer-header {
  display: flex; align-items: center; padding: 12px 16px;
  border-bottom: 2px solid #c2452f; background: #c2452f; color: #ffffff;
}
#ik-error-list-modal .layer-title { flex: 1; font-size: 14px; font-weight: 600; margin: 0; }
#ik-error-list-modal .layer-close {
  background: transparent; border: 0; color: #ffffff; font-size: 20px; cursor: pointer; line-height: 1;
}
#ik-error-list-modal .layer-content {
  padding: 14px 16px;
}
/* 고정 height 금지 → 세로 스크롤 방지. 실제 높이는 setGridContainerHeight 가 행 수로 산정(최대 450px 캡). */
#ik-error-list-modal #ik-error-list-modal-grid {
  width: 100%; min-height: 58px;
  border: 1px solid #d8e3f0; border-radius: 4px;
}
/* 컬럼 합(≈826)이 그리드 body 내부폭(≈824)보다 ~2px 넓어 생기는 미세 가로 스크롤바 제거.
   컬럼은 실폭에 맞춰져 있어 2px 클리핑은 비가시(데이터 손실 없음). DHTMLX 인라인 스타일을 덮기 위해 !important. */
#ik-error-list-modal #ik-error-list-modal-grid .dhx_grid-body,
#ik-error-list-modal #ik-error-list-modal-grid [class*="grid-body"],
#ik-error-list-modal #ik-error-list-modal-grid [class*="dhx_grid-scroll"] {
  overflow-x: hidden !important;
}
#ik-error-list-modal .layer-footer {
  display: flex; justify-content: flex-end;
  padding: 10px 16px; border-top: 1px solid #e1e5eb; background: #f7f8fa;
  gap: 6px;
}
#ik-error-list-modal .btn {
  min-width: 80px; padding: 6px 12px; border-radius: 3px;
  font-size: 12px; cursor: pointer;
  border: 1px solid #c8d3e0; background: #ffffff; color: #344b6e;
}
#ik-error-list-modal .btn.primary { background: #c2452f; color: #ffffff; border-color: #c2452f; }
#ik-error-list-modal .btn.primary:hover { background: #9b3624; }
