@charset "UTF-8";
.banner_calender {
  display: flex;
  align-items: center;
  gap: 8px;
}
.banner_calender input {
  max-width: 243px;
}
.btn_point {
  background: var(--brandColor2);
  border-color: var(--brandColor2);
  color: #fff;
  font-weight: 600;
}
.btn_point:hover { opacity: 0.9; }

.btn_gray {
  background: #f1f1f1;
  border-color: #e5e5e5;
  color: #555;
}
.btn_gray:hover { background: #e9e9e9; }

.btn_light {
  background: var(--brandColor);
  border-color: var(--brandColor);
  color: var(--brandColor2);
  font-weight: 600;
}
.btn_light:hover { background: #fbd4da; }

/* 테이블 '관리' 컬럼의 수정 버튼 */
.common_table .btn_mod {
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
}
.common_table .btn_mod:hover {
  border-color: var(--brandColor2);
  color: var(--brandColor2);
}

/* --------------------------------------------------------------------------
   배너 썸네일 (가로형) — common.css 의 .thumb_box 확장
   -------------------------------------------------------------------------- */
.thumb_box.wide {
  width: 92px;
  height: 44px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   사용 여부 토글 스위치
   -------------------------------------------------------------------------- */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  vertical-align: middle;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .slider {
  position: absolute;
  inset: 0;
  background: #dcdcdc;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}
.switch .slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.switch input:checked + .slider { background: #5aa0f0; }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch input:focus-visible + .slider { outline: 2px solid #5aa0f0; outline-offset: 2px; }

/* --------------------------------------------------------------------------
   등록/수정 폼 (라벨 좌측 · 입력 우측)
   -------------------------------------------------------------------------- */
.banner_form {
  max-width: 620px;
  padding: 10px 0;
}

.form_row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.form_row:last-of-type { margin-bottom: 0; }

/* 이미지처럼 세로로 길어지는 행은 라벨을 위쪽 정렬 */
.form_row.is_top { align-items: flex-start; }
.form_row.is_top .form_label { padding-top: 10px; }

.form_label {
  flex-shrink: 0;
  width: 90px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.form_label .req {
  margin-left: 2px;
  color: var(--brandColor2);
}

.form_field { flex: 1; min-width: 0; }

.form_input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #333;
  box-sizing: border-box;
}
.form_input::placeholder { color: #bbb; }
.form_input:focus { outline: none; border-color: #999; }
.form_input[readonly] { background: #f8f8f8; color: #666; cursor: default; }

/* 폼 안에서는 셀렉트/달력 인풋을 100% 폭으로 */
.form_field .filter_select { width: 100%; height: 40px; }
.form_field .calender_wrap input {
  height: 40px;
  padding: 0 34px 0 14px;
  font-size: 14px;
  text-align: left;
  border-color: #e0e0e0;
  border-radius: 8px;
}

/* 파일 업로드 */
.file_box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.file_btn {
  flex: 1;
  height: 40px;
  line-height: 38px;
  border: 1px dashed #e0e0e0;
  border-radius: 8px;
  background: #f5f5f5;
  font-size: 14px;
  color: #888;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 14px;
}
.file_btn:hover { border-color: var(--brandColor2); }

.form_help {
  flex-shrink: 0;
  font-size: 12px;
  color: #aaa;
  line-height: 1.5;
}

/* 이미지 미리보기 */
.img_preview {
  display: none;
  margin-top: 12px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  height: 200px;
}
.img_preview.is_show { display: block; }
.img_preview img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* 하단 버튼 */
.form_btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.form_btns .btn {
  width: 180px;
  height: 46px;
  line-height: 46px;
  padding: 0;
  border-radius: 8px;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   상단 카운트 영역 (members.css / video.css / gallery.css의 구조/네이밍을 그대로 재사용)
   -------------------------------------------------------------------------- */
.list_top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.total_count { font-size: 15px; color: #333; margin: 0; }
.total_count strong { font-weight: 600; }

/* 셀렉트 박스 베이스 (gallery.css 패턴 재사용) */
.filter_select {
  min-width: 120px;
  height: 40px;
  padding: 0 32px 0 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff url('../../img/arrow_down.svg') no-repeat right 12px center;
  background-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}
.filter_select:focus { outline: none; border-color: #999; }

/* --------------------------------------------------------------------------
   목록 테이블 체크박스 / 썸네일 베이스 (video.css / member_view.css 패턴 재사용)
   -------------------------------------------------------------------------- */
.col_check { width: 48px; }
.col_check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  background: #fff;
  position: relative;
  vertical-align: middle;
  transition: all 0.15s;
}
.col_check input[type="checkbox"]:checked {
  background: var(--brandColor2);
  border-color: var(--brandColor2);
}
.col_check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}

/* 썸네일 베이스 — .thumb_box.wide(가로형)가 이 위에서 크기만 덮어쓴다 */
.thumb_box {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
  margin: 0 auto;
}
.thumb_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   하단 액션바 (선택 삭제) — video.css 패턴 재사용
   -------------------------------------------------------------------------- */
.table_bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.del_btn {
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--brandColor2);
  border-radius: 8px;
  background: #fff;
  color: var(--brandColor2);
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}
.del_btn:disabled { color: #bbb; opacity: 1; cursor: default; border: 1px solid #eee; }