/* ============================================
   콘텐츠관리 (Contents) — 전용 CSS
   common.css → components.css → contents.css
   이 파일은 콘텐츠관리 페이지에만 필요한 스타일
   ============================================ */

/* ── FAQ 카테고리 라벨 ── */
.cnt-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.cnt-category--payment { background: rgba(51,157,238,0.08);  color: var(--primary); }   /* 결제 */
.cnt-category--care    { background: rgba(46,204,113,0.08);  color: var(--success); }   /* 돌봄 */
.cnt-category--refund  { background: rgba(245,166,35,0.08);  color: var(--warning); }   /* 환불 */
.cnt-category--member  { background: rgba(0,0,0,0.04);       color: var(--text-weak); } /* 회원 */
.cnt-category--kg      { background: var(--badge-pink-bg);    color: var(--role-kindergarten); } /* 유치원 */

/* ── 순서 변경 화살표 → order-arrows 사용 (components.css) ── */

/* ── 배너 썸네일 (목록) ── */
.cnt-thumb {
  width: 72px;
  height: 20px;
  border-radius: var(--radius-sm);
  background: var(--surface-base);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.cnt-thumb__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-weak);
  background: var(--surface-base);
  border: 1px dashed rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
}

/* ── 링크 셀 (목록 테이블) ── */
.cnt-link-cell {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── 고정 핀 셀 ── */
.cnt-pin-cell {
  text-align: center;
  font-size: 14px;
}

/* ── 이미지 프리뷰 (배너 상세/등록) ── */
.cnt-image-preview {
  border-radius: var(--radius-sm);
  background: var(--surface-base);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.cnt-image-preview--banner {
  width: 100%;
  max-width: 360px;
  height: 100px;
}

.cnt-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cnt-image-preview__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-weak);
  background: var(--surface-base);
  border: 2px dashed rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
}

/* ── 이미지 액션 (교체/삭제 버튼 그룹) ── */
.cnt-image-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* ── 폼 인풋/셀렉트/라디오/체크박스/텍스트에리어는 components.css 의 form-* 사용 ── */

/* ── 파일 업로드 행 ── */
.cnt-file-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cnt-file-name {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
}

/* ── full-width info-grid 오버라이드 (본문, 답변 등 넓은 필드) ── */
.cnt-full-width {
  grid-column: 1 / -1 !important;
}

/* ── 버전 이력 (약관 상세) — mini-table 확장 ── */
/* mini-table 은 components.css 에 정의되어 있으므로
   여기서는 약관 전용 간격만 조정 */

/* ── 모달 변형 스타일은 components.css 에 통합 ── */

/* ── 목록 table scroll wrapper → components.css 에 정의됨 ── */

/* ── 배너 테이블 이미지 컬럼 최소 폭 ── */
.data-table-wrap--scroll .data-table td .cnt-thumb {
  margin: 0 auto;
}
