/* ---------------------------------------------------------------------------
 * IK000071_P02.xfdl 변환본 — IK 제휴점 매뉴얼 삭제 히스토리 모달 (800x500).
 * Modal #A 20번째 인스턴스 + *표시 카테고리* 2번째 (Rule of Two 도달).
 *
 * 디자인 컨셉: 검색 + 표시 결합 (단방향 조회 + close-only).
 *   - 헤더: 표시 모달 정형색 (#2c4368 — 위험 아님, 정보 색)
 *   - 검색 영역: 4 필드 + 조회 버튼 (1줄 정렬)
 *   - 그리드: 16 컬럼, before/after 컬럼 페어 *시각 분리* (.col-post 옅은 음영)
 *   - 푸터: .btn-cancel 단일 (close-only)
 * --------------------------------------------------------------------------- */

#ik-customer-manual-delete-history-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;
}
#ik-customer-manual-delete-history-modal.is-open { display: flex; }

#ik-customer-manual-delete-history-modal .layer-wrap {
  width: 820px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#ik-customer-manual-delete-history-modal .layer-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 2px solid #2c4368;
  background: #2c4368;
  color: #ffffff;
}
#ik-customer-manual-delete-history-modal .layer-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
#ik-customer-manual-delete-history-modal .layer-close {
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

#ik-customer-manual-delete-history-modal .layer-content {
  padding: 12px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#ik-customer-manual-delete-history-modal .search-bar {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 10px;
  background: #fafbfc;
  border: 1px solid #e1e3e8;
  border-radius: 4px;
  margin-bottom: 8px;
}
#ik-customer-manual-delete-history-modal .search-bar label {
  font-size: 12px;
  color: #4b5563;
  white-space: nowrap;
}
#ik-customer-manual-delete-history-modal .search-bar input[type=text] {
  width: 100%;
  height: 26px;
  padding: 0 8px;
  border: 1px solid #cdd2dc;
  border-radius: 3px;
  font-size: 12px;
}
#ik-customer-manual-delete-history-modal .search-bar .btn-search {
  height: 28px;
  padding: 0 14px;
  background: #2c4368;
  color: #ffffff;
  border: 1px solid #2c4368;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

#ik-customer-manual-delete-history-modal .grid-shell {
  flex: 1;
  border: 1px solid #cdd2dc;
  border-radius: 3px;
  overflow: auto;
  min-height: 280px;
}
#ik-customer-manual-delete-history-modal .grid-shell table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
#ik-customer-manual-delete-history-modal .grid-shell thead th {
  background: #fafbfc;
  padding: 6px 8px;
  text-align: center;
  border-bottom: 1px solid #cdd2dc;
  font-weight: 600;
  position: sticky;
  top: 0;
  white-space: nowrap;
}
#ik-customer-manual-delete-history-modal .grid-shell thead th.col-post {
  background: #f0f4fa;
  color: #1f3f80;
}
#ik-customer-manual-delete-history-modal .grid-shell td {
  padding: 4px 8px;
  border-bottom: 1px solid #eef0f3;
  text-align: center;
  white-space: nowrap;
}
#ik-customer-manual-delete-history-modal .grid-shell td.col-post {
  background: #f7fafe;
}
#ik-customer-manual-delete-history-modal .grid-shell td.text-left { text-align: left; }
#ik-customer-manual-delete-history-modal .grid-shell .empty-row td {
  padding: 30px;
  text-align: center;
  color: #6d7280;
}

#ik-customer-manual-delete-history-modal .layer-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid #cdd2dc;
  background: #fafbfc;
}
#ik-customer-manual-delete-history-modal .layer-footer button {
  height: 30px;
  padding: 0 16px;
  border: 1px solid #cdd2dc;
  background: #ffffff;
  color: #1f2a44;
  font-size: 13px;
  cursor: pointer;
  border-radius: 3px;
  font-weight: 600;
}
