@charset "utf-8";

/* ===== 박스 / 섹션 ===== */
.page_wrap .section {
  background: #fff;
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 16px;
}

.box_title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 20px;
}

/* ===== ① 검색 옵션 ===== */
.search_box .search_row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.search_label {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  min-width: 60px;
}

.check_group {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.check_item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  user-select: none;
}

.check_item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.check_item input[type="checkbox"]:checked {
  background: #f0577c;
  border-color: #f0577c;
}

.check_item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check_item input[type="checkbox"]:focus-visible {
  outline: 2px solid #f0577c;
  outline-offset: 2px;
}

.check_item.only_box {
  gap: 0;
}
.chart_filter {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 15px;
  margin-bottom: 24px;
}
.tab_group {
  display: flex;
  gap: 6px;
}

.tab_btn {
  border: none;
  color: #999;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  background: #f1f1f1;
}

.tab_btn.is_active {
  background: #ffffff;
  color: #333;
  font-weight: 500;
}
/* ===== ② 날짜 네비 ===== */
.date_nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.date_arrow {
  border: 0;
  background: none;
  font-size: 16px;
  color: #888;
  cursor: pointer;
  padding: 4px 6px;
}

.date_box {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  background: #fff;
}

.date_range {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.date_icon {
  width: 16px;
  height: 16px;
}

.date_picker_hidden {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  border: 0;
  padding: 0;
}

/* ===== 리스트 헤더 ===== */
.list_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.list_title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.badge {
  display: inline-block;
  min-width: 72px;
  padding: 4px 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 12px;
  color: #555;
  background: #fff;
}
#fcmListBody tr {
  transition: 0.25s;
  cursor: pointer;
}
#fcmListBody tr:hover {
  background: #fbfbfb;
}
/* ===== 리스트 하단 ===== */
.btn {
  border: 0;
}
.list_foot {
  margin-top: 16px;
}

.btn_point {
  background: #f0577c;
  color: #fff;
}

.btn_point:disabled {
  background: #fdd8e1;
  color: #fff;
  cursor: default;
}

.btn_gray {
  background: #555;
  color: #eee;
}

.btn_line {
  background: #fff;
  border: 1px solid #d5d5d5;
  color: #555;
}


/* ===== ③④ 등록 폼 ===== */
.form_row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
}

.form_label {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  min-width: 80px;
}

.form_content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}

/* 타겟 대상 / 예약일 : 회색 서브 영역 */
.form_row.sub_row {
  background: #f7f8fa;
  border-radius: 6px;
  padding: 14px 20px;
  margin: 6px 0 6px 40px;
}

.req {
  color: #f0577c;
  font-style: normal;
  margin-left: 2px;
}

.form_select {
  height: 34px;
  min-width: 120px;
  padding: 0 10px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  background: #fff url(../../img/arrow_down.svg) no-repeat right 12px center;
  background-size: 12px 12px;
  font-size: 13px;
  color: #333;
}

.form_select:disabled {
  background: #f2f2f2;
  color: #aaa;
}

.form_date {
  font-size: 13px;
  color: #333;
  background: #fff;
}

.write_field {
  margin-bottom: 24px;
}

.field_label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.form_input {
  width: 100%;
  max-width: 500px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  font-size: 14px;
}

.form_input::placeholder,
.form_textarea::placeholder {
  color: #bbb;
}

.textarea_wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.form_textarea {
  width: 100%;
  height: 130px;
  padding: 12px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  font-size: 14px;
  resize: none;
}

.byte_count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 12px;
  color: #bbb;
}

.form_input:focus,
.form_textarea:focus,
.form_select:focus {
  outline: none;
  border-color: #f0577c;
}

/* ===== ⑤⑥ 하단 버튼 영역 ===== */
.btn_area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 40px;
}

.btn_right {
  display: flex;
  gap: 10px;
}

/* 테스트 발송 수신 휴대폰 번호 */
.btn_left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn_left .test_phone {
  width: 200px;
  height: 35px;
}

/* ===== ⑦ 상세 팝업 ===== */
.modal_dim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 100;
}

.modal_dim.is_open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal_box {
  width: 700px;
  max-width: calc(100% - 40px);
  max-height: calc(100% - 80px);
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  padding: 36px 40px 30px;
}

.detail_row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.detail_label {
  min-width: 80px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  padding-top: 8px;
}

.detail_value {
  display: flex;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}

.value_box {
  display: inline-block;
  padding: 8px 14px;
  background: #f2f2f2;
  border-radius: 4px;
  font-size: 14px;
  color: #222;
}

.value_full {
  flex: 1;
}

.value_body {
  min-height: 80px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.modal_foot {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* 발송 상태별 텍스트 색상 (발송완료: 파랑 / 발송대기: 주황 / 발송실패: 빨강) */
.fcm_table tbody td.status_sent { color: #2f6fed; }
.fcm_table tbody td.status_pending { color: #f76707; }
.fcm_table tbody td.status_failed { color: #e63946; }
