@charset "utf-8";

/* 공통 */

* {
  margin: 0;
  padding: 0;
  font-size: 10px;
  outline: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-family: 'Noto Sans KR', sans-serif;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: none;
}

body {
  margin: 0 auto;
  max-width: 717px;
  height: auto;
  overflow-x: hidden;
  font-family: 'Noto Sans KR', sans-serif, Verdana, Tahoma;
  line-height: 1.5;
  word-break: keep-all;
  background-color: #f3f3f8;
}

#content {
  position: relative;
}

.header {
  background-color: #fff;
  justify-content: space-between;
  padding: 20px;
  align-items: center;
  flex-direction: row;
  /* position: fixed;
  top: 0;
  left: 0; */
  width: 100%;
}

.header .title {
  font-size: 20px;
  font-weight: 700;
}

.header_date {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: 20px;
}

.header_date .date {
  font-size: 14px;
}

.header_date p {
  font-size: 16px;
  margin: 0 4px;
}

input[type='date'] {
  border: none;
  border-radius: 20px;
  position: relative;
  width: 200px;
  padding: 6px 10px 6px 14px;
  background: url(../images/calender_icon.png) no-repeat right 14px center;
  background-size: 18px auto;
  background-color: #f3f3f8;
  box-shadow: 2px 2px 7px rgba(0, 0, 0, 0.2);
  min-height: 34px;
}

input[type='date']::-webkit-calendar-picker-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

input[type='date']::before {
  content: attr(placeholder);
  width: 100%;
  height: 100%;
  padding-right: 20px;
}

input[type='date']:valid::before {
  display: none;
}

.jc_wrap {
  margin: 20px auto 0;
  background-color: #ffffff;
  box-shadow: 2px 2px 7px rgba(0, 0, 0, 0.2);
  width: 90%;
  border-radius: 10px;
  padding: 20px;
}

.mt140 {
  margin-top: 140px !important;
}

.jc_wrap:last-child {
  margin-bottom: 20px;
}

.jc_title {
  font-size: 18px;
  font-weight: 700;
  color: #2a2d36;
  margin-bottom: 10px;
}

.jc_title_wrap p {
  font-size: 16px;
  font-weight: 500;
  color: #2a2d36;
  margin-bottom: 10px;
}

.jc_wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.jc_wrapper div {
  background-color: #f6f6f6;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  margin-left: 20px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  width: 20%;
}

.jc_wrapper div:first-child {
  margin-left: 0;
}

.jc_title_wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.jc_total {
  background-color: #333 !important;
}

.jc_total .jc_num_t {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.jc_total .jc_name {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

.jc_skt .jc_num_t,
.jc_kt .jc_num_t,
.jc_u .jc_num_t {
  font-size: 18px;
  font-weight: 500;
}

.jc_skt .jc_name,
.jc_kt .jc_name,
.jc_u .jc_name {
  font-size: 14px;
  font-weight: 400;
}

@media screen and (max-width: 280px) {
  input[type='date'] {
    border: none;
    border-radius: 20px;
    position: relative;
    width: 200px;
    padding: 6px 6px 6px 10px;
    background: url(../images/calender_icon.png) no-repeat right 10px center;
    background-size: 16px auto;
    background-color: #f3f3f8;
    box-shadow: 2px 2px 7px rgba(0, 0, 0, 0.2);
  }

  .jc_wrapper div {
    margin-left: 14px;
  }
}

.svc_wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.svc_btn {
  background-color: #333;
  width: 70%;
  margin-top: 20px;
  border-radius: 10px;
  text-align: center;
}

.svc_btn a {
  color: #fff !important;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none !important;
  line-height: 4;
}

.svc_btn:last-child {
  margin-bottom: 20px;
}

.slt_box {
  width: 100%;
  margin: 10px auto;
  position: relative;
}

.slt {
  width: 100%;
  padding: 6px 10px 6px 20px;
  border: 1px solid #333;
  border-radius: 20px;
  background: transparent;
  font-size: 16px;
  -o-appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
  z-index: 3;
}

.slt option {
  font-size: 16px;
}

select::-ms-expand {
	display: none;
}

.slt_box .icoArrow {
  position: absolute;
  top: 0;
  right: 4px;
  z-index: 1;
  width: 35px;
  height: 36px;
  border-left: 1px solid #333;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slt_box .icoArrow img {
  width: 12px;
  transition: .3s;
}

.slt_box .slt:focus + .icoArrow img {
  transform: rotate(180deg);
}

.step {
  display: flex;
  flex-direction: row;
  background-color: #fff;
  box-shadow: 2px 2px 7px rgba(0, 0, 0, 0.2);
  width: 90%;
  padding: 6px 10px 6px 20px;
  border-radius: 20px;
  margin: 20px auto;
  justify-content: center;
}

.stp_title,
.stp_num {
  font-size: 16px;
}

.stp_num {
  font-weight: 700;
  margin-left: 6px;
}

.arrowbox {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding-left: 70px;
  align-items: center;
}

.arrow {
  width: 16px;
  height: 28px;
}

.stp_pct {
  background-color: #d9d9d9;
  width: 60px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
}

.stp_pct p {
  font-size: 16px;
  font-weight: 700;
}

.stp_final {
  background-color: #333;
  width: 180px;
  height: 180px;
  margin: 40px auto 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stp_ftitle,
.stp_fnum {
  color: #fff;
  font-weight: 700;
}

.stp_ftitle {
  font-size: 24px;
}

.stp_fnum {
  font-size: 32px;
}

.num2wrap {
  display: flex;
  flex-direction: row;
  width: 90%;
  margin: 20px auto;
  justify-content: space-between;
}

.num_b {
  background-color: #333;
  width: 47%;
  height: 100px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.num_b p {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.num_w {
  background-color: #fff;
  width: 47%;
  height: 100px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.num_w p {
  font-size: 16px;
  font-weight: 500;
}

.numwrap {
  width: 90%;
  background-color: #fff;
  height: 100px;
  border-radius: 10px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.numwrap p {
  font-size: 16px;
  font-weight: 500;
}

.toggleSwitch {
  width: 60px;
  height: 24px;
  display: block;
  position: relative;
  border-radius: 30px;
  background-color: #fff;
  box-shadow: 0 0 16px 3px rgba(0 0 0 / 15%);
  cursor: pointer;
}

.toggleSwitch .toggleButton {
  width: 18px;
  height: 18px;
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #333;
}

#toggle:checked ~ .toggleSwitch {
  background: #333;
}

#toggle:checked ~ .toggleSwitch .toggleButton {
  left: calc(100% - 22px);
  background: #fff;
}

.toggleSwitch,
.toggleButton {
  transition: all 0.2s ease-in;
}

.toggleSwitch.active {
  background: #333;
}

.toggleSwitch.active .toggleButton {
  left: calc(100% - 22px);
  background: #fff;
}

.setting_wrap {
  margin-top: 20px;
  padding-top: 10px;
}

.setting {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 80%;
  max-width: 500px;
  margin: 40px auto;
}

.svc_name {
  font-size: 16px;
  font-weight: 500;
  margin-right: 20px;
}

.tg_text {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.timeset_list {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -20px;
  gap: 20px;
}

.timeset_wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 80%;
}

.timeset_inner {
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
  margin-right: 4px;
}

.time_input {
  font-size: 16px;
  color: #000;
  background-color: #fff;
  width: 60px;
  height: 28px;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 5px;
}

.timeset_inner p {
  font-size: 16px;
}

.time_input::placeholder {
  color: #dbdbdb;
}

.time_input:read-only {
  color: #333;
}

.timeset_inner2 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex: 1;
}

.running_tag {
  visibility: hidden;
  font-size: 13px;
  color: #ffa82f;
  border: 1px solid #ffa82f;
  background-color: #fff;
  padding: 2px 10px;
  border-radius: 50px;
}

.running_tag.now {
  visibility: visible;
}

.timeset_inner2 button {
  font-size: 16px;
  color: #fff;
  background-color: #4eb0ff;
  padding: 2px 16px;
  border: 1px solid transparent;
  border-radius: 5px;
}

.timeset_add {
  font-size: 16px;
  font-weight: 500;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid transparent;
  background-color: #ffecd0;
  border-radius: 50px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* 딤처리 */
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal_content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
}

.modal_header {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.popuptitle {
  font-size: 20px;
  font-weight: 700;
}

.modal_header .modal_close {
  position: absolute;
  right: 0;
  border: 1px solid transparent;
  background-color: #fff;
  width: 20px;
  height: 20px;
}

.modal_header .modal_close img {
  width: 20px;
  height: 20px;
}

.settime_wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px auto 20px;
}

.settime_inner {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.starttime,
.endtime {
  font-size: 16px;
}

.settime_inner input {
  font-size: 22px;
  width: 86px;
  height: 34px;
  border: 1px solid #333;
  border-radius: 5px;
  text-align: center;
}

.settime_inner input::placeholder {
  color: #dbdbdb;
}

.btn_wrapper {
  display: flex;
  flex-direction: row;
  gap: 25px;
  justify-content: center;
}

.btn_wrapper button {
  width: 110px;
  height: 38px;
  font-size: 18px;
  font-weight: 700;
}

.btn_wrapper button:first-of-type {
  border: 1px solid #333;
  border-radius: 5px;
  color: #333;
  background-color: #fff;
}

.btn_wrapper button.btn_del {
  border: 1px solid transparent;
  border-radius: 5px;
  background-color: #d00404;
  color: #fff;
}

.btn_wrapper button.btn_reg {
  border: 1px solid transparent;
  border-radius: 5px;
  background-color: #333;
  color: #fff;
}

/* 시간 별 가입 현황 */

.header_datentime {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.header_datentime .date {
  font-size: 14px;
  margin: 20px auto;
  text-align: center;
}

.header_datentime p {
  font-size: 16px;
  margin: 0 10px;
}

.date {
  width: 100% !important;
}

.time_wrap {
  display: flex;
  flex-direction: row;
  justify-content: start;
  max-width: 400px;
}

.time_wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.time_inner {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: relative;
  background-color: #f3f3f8;
  border-radius: 20px;
}

.time_inner .timepicker{
  border: none;
  border-radius: 20px;
  position: relative;
  width: 100px;
  padding: 6px 20px;
  background-color: transparent;
  box-shadow: 2px 2px 7px rgba(0, 0, 0, 0.2);
  min-height: 34px;
  font-size: 14px;
  -o-appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
  z-index: 3;
}

.time_wrapper:last-child {
  margin-left: 40px;
}

.timepicker option {
  font-size: 16px;
}

.time_wrapper p {
  margin-right: 0 !important;
}

.time_inner .icoArrow2 {
  position: absolute;
  top: 0;
  right: 4px;
  z-index: 1;
  width: 35px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.time_inner .icoArrow2 img {
  width: 8px;
  transition: .3s;
}

.time_inner .timepicker:focus + .icoArrow2 img {
  transform: rotate(180deg);
}

.an_wrap {
  margin: 20px auto 0;
  width: 90%;
  display: flex;
  flex-direction: row;
}

.an_wrap .jc_total {
  width: 90px !important;
}

.an_wrap .jc_skt,
.an_wrap .jc_kt,
.an_wrap .jc_u {
  background-color: #fff;
  width: 24%;
}

.an_wrap .jc_name {
  font-size: 14px;
  text-align: center;
}

.anls {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin-left: 30px;
}

.anls p {
  font-size: 18px;
}

.anl_rst {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.anl_rst img {
  width: 20px;
  height: 20px;
}

.anl_up {
  color: #ff0000;
}

.anl_down {
  color: #0097ec;
}

.w100 {
  width: 100% !important;
  justify-content: space-between !important;
}

.w100 .jc_total {
  min-width: 90px !important;
}

.date_wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.date_wrap img {
  width: 20px;
  height: 20px;
}

.date_wrap .date {
  margin-right: 4px;
  margin-left: 4px;
}

.svc_wrap2 {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  margin: 10px 0;
}

.svc_wrap2 .svc_inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.systemstatus_wrap {
  margin-top: 40px;
}

.sysstat_inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 60px;
  border-bottom: 1px solid #cfcfcf;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.ss_good {
  background-color: #a8c95c;
  border-radius: 50%;
  width: 20px;
  height: 20px;
}

.ss_caution {
  background-color: #fc930b;
  border-radius: 50%;
  width: 20px;
  height: 20px;
}

.ss_bad {
  background-color: #ff3a4a;
  border-radius: 50%;
  width: 20px;
  height: 20px;
}

.sysstat_inner .com {
  display: block;
  width: 50px;
  margin-left: 20px;
  margin-right: 20px;
  text-align: center;
}

.sysstat_inner .ss_time {
  display: block;
  width: 80px;
  text-align: center;
}

.sysstat_inner .ss_text {
  display: block;
  width: 400px;
  text-align: left;
  padding-left: 40px;
  word-break: break-all;
}

.sysstat_inner .ss_sec {
  display: block;
  width: 80px;
  text-align: center;
}

.sysstat_inner p {
  font-size: 16px;
}

@media screen and (max-width: 414px) {
  .sysstat_inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 60px;
    border-bottom: 1px solid #cfcfcf;
    margin: 10px auto 0;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    justify-content: space-evenly;
  }

  .ss_good{
    background-color: #a8c95c;
    border-radius: 50%;
    width: 16px;
    height: 16px;
  }

  .ss_caution{
    background-color: #fc930b;
    border-radius: 50%;
    width: 16px;
    height: 16px;
  }

  .ss_bad{
    background-color: #ff3a4a;
    border-radius: 50%;
    width: 16px;
    height: 16px;
  }

  .sysstat_inner .com{
    display: block;
    width: 46px;
    margin-left: 10px;
    margin-right: 10px;
    text-align: center;
  }

  .sysstat_inner .ss_time{
    display: block;
    width: 60px;
    text-align: center;
  }

  .sysstat_inner .ss_text{
    display: block;
    width: 160px;
    text-align: left;
    padding-left: 14px;
    word-break: break-all;
  }

  .sysstat_inner .ss_sec{
    display: block;
    width: 60px;
    text-align: center;
  }
}

.anls_comwrap {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 10px;
}

.anls_comwrap div {
  background-color: #f6f6f6;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  margin-left: 30px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  width: 100% !important;
}

.anls_comwrap div:first-child {
  margin-left: 0 !important;
}

@media screen and (max-width: 414px) {
  .anls_comwrap div {
    margin-left: 20px !important;
  }

  .anls {
    margin-left: 20px !important;
  }
}

.header2 {
  background-color: #fff;
  justify-content: space-between;
  padding: 20px;
  align-items: center;
  flex-direction: row;
  text-align: center;
  display: flex;
}

.header2 .title {
  font-size: 25px;
  font-weight: 700;
}

/* login */

.header3 {
  background-color: #fff;
  padding: 20px;
  text-align: center;
}

.header3 .title2 {
  font-size: 25px;
  font-weight: 700;
}

.mt80 {
  margin-top: 80px;
}

.script {
  font-size: 18px;
  font-weight: 700;
}

.login_wrap {
  background-color: #fff;
  padding: 60px 0 0;
  text-align: center;
  height: calc(100vh - 180px);
}

.input_wrap,
.id_remember_wrap {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.input_wrap p {
  margin-right: 16px;
  font-size: 14px;
  font-weight: 500;
  display: block;
  width: 20px;
  text-align: center;
}

.input_wrap input {
  width: 200px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #333;
  text-indent: 16px;
}

.input_wrap input::placeholder {
  text-indent: 16px;
  font-size: 12px;
  color: #b8b8b8;
}

.input_wrap:first-child {
  margin-bottom: 20px;
}

input[type='checkbox'] {
  display: none;
}

.checkbox_label {
  display: flex;
  align-items: center;
}

.id_remember_wrap {
  margin-top: 10px;
  padding-left: 36px;
}

.checkbox_icon::before {
  content: '';
  display: block;
  margin-right: 10px;
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: transparent;
  border: 1px solid #333;
  border-radius: 5px;
  box-sizing: border-box;
  position: relative;
  cursor: pointer;
}

.checkbox_label input:checked + .checkbox_icon::before {
  /*   transition: all 0.15s ease; */
  background: url(https://intranet.adef.co.kr/asset/images/ic_check.png) #333333
    no-repeat center;
  border: none;
}

.checkbox_text {
  font-size: 12px;
  font-weight: 400;
  display: block;
  width: 177px;
  text-align: left;
}

.login_btn {
  width: 250px;
  height: 50px;
  border-radius: 10px;
  background-color: #333;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin: 60px auto 100px;
}

.logout {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

/* ===== 토스트 ===== */
.toast-container {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    gap: 8px;
    width: max-content;
    max-width: calc(100vw - 40px);
}

.toast-container.toast-bottom {
    bottom: 80px;
}

.toast-container.toast-top {
    top: 80px;
}

.toast-container.toast-center {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
}

.toast-item {
    min-width: 200px;
    max-width: 560px;
    padding: 18px 32px;
    background-color: rgba(51, 51, 51, 0.92);   /* 다크 그레이 (#333) */
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    word-break: keep-all;

    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

.toast-item.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-container.toast-top .toast-item {
    transform: translateY(-20px);
}

.toast-container.toast-top .toast-item.show {
    transform: translateY(0);
}

.toast-msg {
    margin: 0;
}

/* 변형 타입 */
.toast-item.toast-error   { background-color: rgba(255, 91, 55, 0.92); }   /* #FF5B37 */
.toast-item.toast-success { background-color: rgba(34, 105, 247, 0.92); }  /* 필요 시 */

/* 모바일 대응 */
@media (max-width: 768px) {
    .toast-container.toast-bottom {
        bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    }
    .toast-container.toast-top {
        top: 60px;
    }
    .toast-item {
        min-width: auto;
        max-width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* ===== 모달 기본 레이아웃 ===== */
.modal-popup_sm2 {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1100 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.modal-popup_sm2.hide {
    opacity: 0 !important;
    visibility: hidden !important;
}

.modal-popup_sm2.hide .popup-inner {
    transform: translateY(50px) !important;
}

.modal-popup_sm2.show {
    opacity: 1 !important;
    visibility: visible !important;
    transition-duration: 0.3s !important;
}

.modal-popup_sm2.show .popup-inner {
    transform: translateY(0) !important;
}

.modal-popup_sm2 .dimed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
}

.modal-popup_sm2 .popup-inner {
    position: relative !important;
    z-index: 1100 !important;
    background-color: #fff !important;
    transition-duration: 0.3s !important;
    transition-property: transform !important;
}

/* ===== 로더 (다크 톤) ===== */
.modal-popup_sm2.modal-loading .popup-inner {
    width: 240px !important;
    height: 240px !important;
    background-color: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    padding: 0 !important;
}

.modal-popup_sm2.modal-loading .popup-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    gap: 20px !important;
    padding: 0 !important;
}

.modal-popup_sm2.modal-loading .loader-spinner {
    width: 60px !important;
    height: 60px !important;
    border: 5px solid #ececec !important;
    border-top-color: #333 !important;
    border-radius: 50% !important;
    animation: loader-spin 0.8s linear infinite;
    box-sizing: border-box !important;
}

@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

.modal-popup_sm2.modal-loading .loader-text {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #333 !important;
    line-height: 1.5 !important;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .modal-popup_sm2.modal-loading .popup-inner {
        width: 200px !important;
        height: 200px !important;
        border-radius: 14px !important;
    }
    .modal-popup_sm2.modal-loading .loader-spinner {
        width: 50px !important;
        height: 50px !important;
        border-width: 4px !important;
    }
    .modal-popup_sm2.modal-loading .loader-text {
        font-size: 14px !important;
    }
}

/* ===== Confirm / Alert 모달 (setConfirm, setAlert용) ===== */
.modal-popup_sm2.modal-md .popup-inner {
    width: 90%;
    max-width: 420px;
    border-radius: 14px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-popup_sm2 .popup-header {
    background-color: #333;
    color: #fff;
    padding: 16px 24px;
}

.modal-popup_sm2 .popup-title {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
}

.modal-popup_sm2 .popup-body {
    padding: 28px 24px;
    background-color: #fff;
}

.modal-popup_sm2 .popup-body .text-xl,
.modal-popup_sm2 .popup-body p {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    line-height: 1.5;
    text-align: center;
    word-break: keep-all;
}

.modal-popup_sm2 .popup-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 24px 24px;
    background-color: #fff;
}

.modal-popup_sm2 .popup-footer .btn {
    flex: 1;
    max-width: 160px;
    height: 46px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
}

.modal-popup_sm2 .popup-footer .btn:hover {
    opacity: 0.85;
}

/* 취소 버튼 (회색) */
.modal-popup_sm2 .popup-footer .btn-lightgray {
    background-color: #f0f0f0;
    color: #333;
    border-color: #e0e0e0;
}

/* 확인 버튼 (다크) - 기존 btn_smartmirror 클래스 대응 */
.modal-popup_sm2 .popup-footer .btn_smartmirror {
    background-color: #333;
    color: #fff;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .modal-popup_sm2.modal-md .popup-inner {
        width: 88%;
        max-width: 360px;
        border-radius: 12px;
    }
    .modal-popup_sm2 .popup-header {
        padding: 14px 20px;
    }
    .modal-popup_sm2 .popup-title {
        font-size: 16px;
    }
    .modal-popup_sm2 .popup-body {
        padding: 24px 20px;
    }
    .modal-popup_sm2 .popup-body .text-xl,
    .modal-popup_sm2 .popup-body p {
        font-size: 15px;
    }
    .modal-popup_sm2 .popup-footer {
        padding: 0 20px 20px;
        gap: 8px;
    }
    .modal-popup_sm2 .popup-footer .btn {
        height: 44px;
        font-size: 14px;
    }
}


/* ============================================================================
 * [요일 설정] 추가 CSS
 * 기존 CSS 파일 하단에 그대로 붙여넣으세요. (기존 스타일 영향 없음)
 * ========================================================================== */

/* ---------- 시간 행 레이아웃 (요일 줄이 붙을 수 있게 세로 구성) ---------- */
.timeset_wrapper.has_week {
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

.timeset_wrapper.has_week .timeset_top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

/* 요일 미사용 옵션은 기존 레이아웃 유지 (timeset_top 이 투명하게 동작) */
.timeset_wrapper:not(.has_week) .timeset_top {
	display: contents;
}

/* ---------- 익일 배지 ---------- */
.next_day_tag {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 7px;
	font-size: 11px;
	line-height: 1.5;
	color: #185FA5;
	background: #E6F1FB;
	border-radius: 20px;
	white-space: nowrap;
}

/* ---------- 요일 칩 (행 / 팝업 공용) ---------- */
.timeset_week,
.week_chip_wrap {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.week_chip {
	width: 30px;
	height: 30px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	line-height: 1;
	color: #888780;
	background: #fff;
	border: 1px solid #D3D1C7;
	border-radius: 50%;
	cursor: pointer;
	transition: background .12s, color .12s, border-color .12s;
	-webkit-appearance: none;
	appearance: none;
}

.week_chip:hover {
	border-color: #888780;
}

.week_chip.on {
	color: #fff;
	background: #FFA82F;
	border-color: #FFA82F;
	font-weight: 500;
}

/* ---------- 팝업 내 요일 영역 ---------- */
.setweek_row {
	margin-top: 16px;
}

.setweek_label {
	margin: 0 0 8px;
	font-size: 13px;
	color: #5F5E5A;
}

.setweek_desc {
	margin: 8px 0 0;
	font-size: 12px;
	color: #888780;
	line-height: 1.5;
}

.setweek_desc b {
	color: #5F5E5A;
	font-weight: 500;
}

/* ==== 전환율 비교 레이아웃 (timeJoinCount) ==== */
/* [가입수박스|설명|전환율박스|설명] 4열 유지, 좁은 화면 대응 컴팩트 버전 */
.an_wrap4 {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 80px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #ececec;
}

.an_wrap4 .jc_wrapper {
  display: block;
}

.an_wrap4 .jc_wrapper div {
  margin-left: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 4px;
}

.an_wrap4 .jc_total {
  width: 100% !important;
  min-height: 58px;
}

.an_wrap4 .jc_total .jc_num_t {
  font-size: 16px;
}

.an_wrap4 .jc_total .jc_name {
  font-size: 11px;
  text-align: center;
}

.an_wrap4 .anls {
  margin-left: 0 !important;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.an_wrap4 .anls p {
  font-size: 12px;
  line-height: 1.35;
}

.an_wrap4 .anl_rst {
  flex-wrap: wrap;
}

.an_wrap4 .anl_rst p {
  font-size: 12px;
  white-space: nowrap;
}

.an_wrap4 .anl_rst img {
  width: 12px;
  height: 12px;
}

/* ==== 외부가입창 설정 - 그룹(가입/노출/기타) UI ==== */
.setting_wrap {
  width: 92%;
  max-width: 560px;
  margin: 16px auto 70px;
  padding-top: 0;
}

.setting_group {
  margin-bottom: 18px;
}

.setting_group_head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f0f1f4;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

.setting_group_title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.setting_group_toggle {
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.setting_group_toggle::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-left: 2px solid #666;
  border-top: 2px solid #666;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.setting_group.collapsed .setting_group_toggle::before {
  transform: rotate(225deg);
  top: 3px;
}

.setting_group_body {
  padding-top: 10px;
}

.setting_group.collapsed .setting_group_body {
  display: none;
}

.setting_card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 14px 7px;
  margin-bottom: 10px;
}

.setting_card.is_child {
  margin-left: 16px;
  background: #fafafa;
}

.setting_card.is_child .svc_name::before {
  content: 'ㄴ ';
  color: #999;
}

/* 카드 내부에서는 기존 .setting 의 폭/여백 규칙을 무효화 */
.setting_card .setting {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.setting_card .svc_name {
  font-size: 15px;
  margin-right: 12px;
  line-height: 1.4;
}

.setting_card .timeset_list {
  margin-top: 0;
  gap: 12px;
}

.setting_card .timeset_list[style*="flex"] {
  padding-top: 12px;
}

/* ==== 외부가입창 설정 - 그룹 헤더 검정 블록 / 시간·버튼 스타일 ==== */
.setting_group_head {
  background: #333;
}

.setting_group_title {
  color: #fff;
}

.setting_group_toggle::before {
  border-left-color: #fff;
  border-top-color: #fff;
}

/* 시간 입력 테두리 표시 */
.setting_card .time_input {
  border: 1px solid #d9d9d9;
  background-color: #fff;
}

/* [관리] 버튼 다음에 간격을 두고 [운영중] 표시 */
.setting_card .timeset_inner2 {
  justify-content: flex-end;
  gap: 10px;
  flex: none;
}

.setting_card .timeset_inner2 button {
  order: 1;
}

.setting_card .running_tag {
  order: 2;
}

.setting_card .timeset_wrapper {
  width: 100%;
}

/* 전환율 비교 - 조회중 표시 */
.an_wrap4 .cr_loading_txt {
  font-size: 12px;
  color: #999;
}

/* ==== 모니터 메인 헤더 버튼 / 비밀번호 변경 팝업 ==== */
.header2 {
  gap: 10px;
}

.header2 .title {
  white-space: nowrap;
  font-size: 22px;
}

.header_btns {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: none;
}

.header_btns a {
  white-space: nowrap;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 6px;
}

.chg_pwd {
  color: #0057FF;
  border: 1px solid #0057FF;
  background: #fff;
}

.header_btns .logout {
  color: #fff;
  background: #333;
  border: 1px solid #333;
}

@media screen and (max-width: 360px) {
  .header2 .title { font-size: 19px; }
  .header_btns a { font-size: 12px; padding: 6px 8px; }
}

.chgpwd_wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 0 4px;
}

.chgpwd_inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chgpwd_label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.chgpwd_inner input {
  height: 38px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 15px;
  box-sizing: border-box;
}

.chgpwd_inner input::placeholder {
  color: #c4c4c4;
  font-size: 13px;
}

/* 비밀번호 변경 팝업 - 가독성 보정 */
#popup_chgpwd .modal_content {
  padding: 22px 22px 20px;
}

#popup_chgpwd .modal_header {
  margin-bottom: 6px;
}

#popup_chgpwd .popuptitle {
  text-align: left;
  font-size: 18px;
  font-weight: 700;
}

#popup_chgpwd .chgpwd_wrapper {
  gap: 16px;
  padding: 6px 0 2px;
}

#popup_chgpwd .chgpwd_label {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  margin: 0;
}

#popup_chgpwd .chgpwd_inner input {
  width: 100%;
  height: 42px;
  font-size: 15px;
  color: #222;
  letter-spacing: 1px;
}

#popup_chgpwd .chgpwd_inner input:focus {
  outline: none;
  border-color: #0057FF;
}

#popup_chgpwd .btn_wrapper {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

#popup_chgpwd .btn_wrapper button {
  flex: 1;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
}

/* 헤더 버튼 톤 정리 - 파랑은 본문 메뉴 전용, 헤더는 그레이스케일 */
.header_btns a {
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 20px;
  transition: background 0.15s;
}

.chg_pwd,
.header_btns .chg_pwd {
  color: #444;
  background: #f0f1f4;
  border: 1px solid #e2e3e8;
}

.chg_pwd:hover {
  background: #e6e7ec;
}

.header_btns .logout {
  color: #fff;
  background: #333;
  border: 1px solid #333;
}

.header_btns .logout:hover {
  background: #1f1f1f;
}

/* ==== 유료 고객 집계 - 서비스 탭 ==== */
.svc_tab_wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}

.svc_tab {
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #999;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.svc_tab:hover {
  border-color: #bdbdbd;
  color: #666;
}

.svc_tab.on {
  color: #fff;
  background: #333;
  border-color: #333;
}

/* 지표 카드 보조 문구 (30일 이내/이후) */
.num_sub {
  font-size: 12px;
  font-weight: 400;
  color: inherit;
  opacity: 0.75;
}

/* ==== 업셀링 타겟서비스 ==== */
.target_chip {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: #f4f5f8;
  border: 1px solid #e3e4e9;
  border-radius: 20px;
  white-space: nowrap;
}

.target_chip .target_label {
  font-size: 12px;
  color: #888;
}

.target_chip .target_name {
  font-size: 12px;
  font-weight: 700;
  color: #0057FF;
}

.target_chip.none .target_name {
  color: #d14343;
}

.target_chip .btn_target {
  font-size: 11px;
  color: #666;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 2px 7px;
  cursor: pointer;
}

.target_chip .btn_target:hover {
  background: #f0f0f0;
}

/* 타겟서비스 선택 팝업 */
.target_radio_wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 4px 6px;
}

/* ==== [랜딩 스위치] 타겟서비스 선택 팝업 ====
   업셀링 팝업(.target_radio_wrap)과 마크업은 같지만 글씨가 작아 읽기 어려웠다.
   #popup_landing_target 안에서만 키운다. 다른 팝업은 건드리지 않는다. */
#popup_landing_target .modal_content {
  min-width: 340px;
}

#popup_landing_target .target_radio_wrap {
  gap: 10px;
  padding: 18px 4px 8px;
}

#popup_landing_target .landing_target_opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e4e0;
  border-radius: 8px;
  cursor: pointer;
}

#popup_landing_target .landing_target_opt:hover {
  border-color: #c9c8c3;
  background-color: #fafaf8;
}

/* 선택된 항목을 테두리로 구분 (radio 점만으로는 잘 안 보인다) */
#popup_landing_target .landing_target_opt:has(input:checked) {
  border-color: #3d3d3a;
  background-color: #f5f5f2;
}

#popup_landing_target .landing_target_opt input[type="radio"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0;
  accent-color: #3d3d3a;
}

#popup_landing_target .landing_target_name {
  font-size: 16px;
  font-weight: 600;
  color: #3d3d3a;
}

/* page_id 는 보조 정보라 한 단계 낮춘다 */
#popup_landing_target .landing_target_page {
  margin-left: auto;
  font-size: 13px;
  color: #888780;
}

#popup_landing_target .landing_target_desc {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #888780;
  text-align: center;
}

/* 문구와 버튼이 붙어 보여 간격을 준다 */
#popup_landing_target .btn_wrapper {
  margin-top: 20px;
}

.target_radio {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 9px 6px;
  font-size: 15px;
  cursor: pointer;
}

.target_radio input[type='radio'] {
  display: inline-block;
  width: 17px;
  height: 17px;
  accent-color: #0057FF;
  margin: 0;
}

/* 적용시간 클릭 = 관리(수정/삭제) 진입 */
.setting_card .timeset_inner {
  cursor: pointer;
  padding: 2px 6px 2px 2px;
  border-radius: 8px;
  transition: background 0.15s;
}

.setting_card .timeset_inner:hover {
  background: #f2f4f8;
}

.setting_card .timeset_inner .time_input {
  cursor: pointer;
  pointer-events: none;   /* 클릭이 부모(시간 영역)로 전달되도록 */
}

/* ==== 적용시간 행 - 모바일 가독성/줄바꿈 보정 ==== */
.setting_card .timeset_wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.setting_card .timeset_wrapper:not(.has_week) .timeset_top {
  display: contents;
}

/* 시간 영역: 왼쪽 정렬 + 폭 축소 */
.setting_card .timeset_inner {
  flex: 0 0 auto;
  gap: 3px;
  margin-right: 0;
  padding: 2px 4px 2px 0;
}

.setting_card .time_input {
  width: 52px;
  height: 26px;
  font-size: 14px;
  text-indent: 0;
}

.setting_card .timeset_inner p {
  font-size: 14px;
  margin: 0 1px;
}

.setting_card .next_day_tag {
  margin-left: 3px;
  padding: 1px 6px;
  font-size: 11px;
}

/* 오른쪽 영역: 남는 폭 사용 + 넘치면 줄바꿈 */
.setting_card .timeset_inner2 {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.setting_card .running_tag {
  font-size: 11px;
  padding: 2px 8px;
}

.setting_card .target_chip {
  padding: 2px 6px;
  gap: 4px;
}

.setting_card .target_chip .target_label,
.setting_card .target_chip .target_name {
  font-size: 11px;
}

.setting_card .target_chip .btn_target {
  font-size: 10px;
  padding: 2px 6px;
}

/* ==== 적용시간 행 - '익일' 포함 시 레이아웃 안정화 ====
   1줄: [시간 - 시간 익일] ......... [운영중]
   2줄: ................. [타겟 : OO 변경]
   (좁은 화면에서 우연히 줄바꿈되지 않도록 타겟칩을 항상 아래 줄로 고정) */
.setting_card .timeset_inner2 {
  align-items: center;
  row-gap: 4px;
}

.setting_card .timeset_inner2 .running_tag {
  order: 1;
}

.setting_card .timeset_inner2 .target_chip {
  order: 2;
  flex: 1 0 100%;
  justify-content: flex-end;
  margin-top: 2px;
}

/* 시간 영역이 '익일' 배지까지 품도록 줄바꿈 방지 */
.setting_card .timeset_inner {
  flex-wrap: nowrap;
  white-space: nowrap;
}

@media screen and (max-width: 420px) {
  .setting_card .time_input {
    width: 48px;
    font-size: 13px;
  }
  .setting_card .next_day_tag {
    padding: 1px 5px;
    font-size: 11px;
  }
}

/* 타겟서비스 선택 팝업 - 가독성 보정 */
#popup_target .modal_content {
  padding: 22px 24px 20px;
}

#popup_target .popuptitle {
  font-size: 18px;
  font-weight: 700;
}

#popup_target .target_radio_wrap {
  gap: 2px;
  padding: 16px 2px 8px;
}

#popup_target .target_radio {
  font-size: 16px;
  color: #333;
  padding: 10px 4px;
  gap: 12px;
}

#popup_target .target_radio input[type='radio'] {
  width: 19px;
  height: 19px;
}

#popup_target .btn_wrapper {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

#popup_target .btn_wrapper button {
  flex: 1;
  height: 44px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
}

/* ==== 적용시간 행 - 한 줄 배치로 통일 (모바일/PC 공통) ====
   [시간 - 시간] [익일] [타겟 : OO 변경] [운영중]  */
.setting_card .timeset_inner2 .target_chip {
  order: 1;
  flex: 0 1 auto;
  min-width: 0;
  margin-top: 0;
  justify-content: flex-start;
}

.setting_card .timeset_inner2 .running_tag {
  order: 2;
  flex: 0 0 auto;
}

.setting_card .timeset_inner2 {
  flex-wrap: nowrap;
  gap: 5px;
}

/* 폭이 모자라면 타겟명이 말줄임 처리되어 줄이 깨지지 않음 */
.setting_card .target_chip .target_name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.setting_card .target_chip .btn_target {
  flex: 0 0 auto;
}

@media screen and (max-width: 420px) {
  .setting_card .timeset_wrapper {
    gap: 4px;
  }
  .setting_card .target_chip {
    padding: 2px 5px;
    gap: 3px;
  }
  .setting_card .target_chip .target_label {
    font-size: 10px;
  }
  .setting_card .target_chip .target_name {
    font-size: 11px;
  }
  .setting_card .target_chip .btn_target {
    font-size: 9px;
    padding: 1px 5px;
  }
  .setting_card .running_tag {
    font-size: 10px;
    padding: 2px 6px;
  }
}

/* ==== 적용시간 행 - 줄바꿈 완전 차단 (요일 사용 행 제외) ==== */
.setting_card .timeset_wrapper:not(.has_week) {
  flex-wrap: nowrap;
}

.setting_card .timeset_wrapper:not(.has_week) .timeset_inner {
  flex: 0 0 auto;
}

.setting_card .timeset_wrapper:not(.has_week) .timeset_inner2 {
  flex: 1 1 auto;
  min-width: 0;
}

/* 운영중이 아닐 때는 자리까지 비워 폭 확보 (기존은 visibility:hidden 로 공백 차지) */
.setting_card .running_tag {
  display: none;
}

.setting_card .running_tag.now {
  display: block;
  visibility: visible;
}

@media screen and (max-width: 420px) {
  .setting_card .time_input {
    width: 44px;
    height: 25px;
    font-size: 12px;
  }
  .setting_card .timeset_inner p {
    font-size: 12px;
    margin: 0;
  }
  .setting_card .timeset_inner {
    gap: 2px;
    padding-right: 2px;
  }
  .setting_card .next_day_tag {
    margin-left: 2px;
    padding: 1px 4px;
    font-size: 11px;
  }
}

/* ==== 적용시간 행 - 구간별 on/off 토글 ==== */
.row_toggle {
  flex: 0 0 auto;
  display: inline-block;
  position: relative;
  width: 38px;
  height: 20px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 0 6px 1px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: background 0.2s;
}

.row_toggle .row_toggle_btn {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #333;
  transform: translateY(-50%);
  transition: all 0.2s;
}

.row_toggle.active {
  background: #333;
  border-color: #333;
}

.row_toggle.active .row_toggle_btn {
  left: calc(100% - 17px);
  background: #fff;
}

@media screen and (max-width: 420px) {
  .row_toggle {
    width: 32px;
    height: 18px;
  }
  .row_toggle .row_toggle_btn {
    width: 12px;
    height: 12px;
  }
  .row_toggle.active .row_toggle_btn {
    left: calc(100% - 15px);
  }
}

/* ==== 적용시간 행 - 열 정렬 통일 ====
   [시간 - 시간 익일] .......... [타겟칩] [토글] [운영중]
   운영중 유무와 무관하게 칩·토글 위치가 행마다 동일하도록 열 폭을 고정 */
.setting_card .timeset_inner2 .target_chip {
  order: 1;
  flex: 0 0 auto;
  min-width: 168px;
  justify-content: flex-start;
}

.setting_card .timeset_inner2 .row_toggle {
  order: 2;
}

.setting_card .timeset_inner2 .running_tag {
  order: 3;
  min-width: 54px;
  text-align: center;
}

/* PC: 운영중이 아니어도 자리를 유지해 열이 흔들리지 않게 */
@media screen and (min-width: 421px) {
  .setting_card .running_tag {
    display: block;
    visibility: hidden;
  }
  .setting_card .running_tag.now {
    visibility: visible;
  }
}

/* 모바일: 폭이 부족하므로 칩 고정폭 해제 + 미운영 시 자리 제거 */
@media screen and (max-width: 420px) {
  .setting_card .timeset_inner2 .target_chip {
    min-width: 0;
    flex: 0 1 auto;
  }
  .setting_card .timeset_inner2 .running_tag {
    min-width: 0;
  }
}

/* 타겟서비스 선택 팝업 - 전역 * { font-size:10px } 를 덮기 위해 텍스트에 직접 지정 */
#popup_target .target_radio .target_radio_txt {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
}

#popup_target .popuptitle {
  font-size: 18px;
}

#popup_target .btn_wrapper button {
  font-size: 16px;
}

/* ==== 타겟 칩 내부 3열 정렬 ====
   [타겟서비스 :]  [   서비스명   ]  [변경]
     왼쪽정렬        가운데정렬      오른쪽정렬(밑줄) */
.setting_card .target_chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.setting_card .target_chip .target_label {
  flex: 0 0 auto;
  text-align: left;
  white-space: nowrap;
}

.setting_card .target_chip .target_name {
  flex: 1 1 auto;
  text-align: center;
  min-width: 0;
}

.setting_card .target_chip .btn_target {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  padding: 0;
  color: #666;
  text-decoration: underline;
  text-underline-offset: 2px;
  border-radius: 0;
}

.setting_card .target_chip .btn_target:hover {
  background: transparent;
  color: #0057FF;
}

/* 칩 전체가 클릭 영역 */
.setting_card .target_chip {
  cursor: pointer;
}

.setting_card .target_chip:hover {
  background: #eceef4;
}

/* 라벨 안 '서비스' 글자 (전역 * 규칙 방지용 크기 상속) */
.setting_card .target_chip .lbl_svc {
  font-size: inherit;
  color: inherit;
}

/* ==== 모바일: [타겟 : 왼쪽] [서비스명 오른쪽], '변경' 버튼 숨김 ==== */
@media screen and (max-width: 420px) {
  .setting_card .target_chip .lbl_svc {
    display: none;              /* '타겟서비스' -> '타겟' */
  }
  .setting_card .target_chip .btn_target {
    display: none;              /* 칩 클릭으로 대체 */
  }
  .setting_card .target_chip .target_name {
    flex: 1 1 auto;
    text-align: right;          /* 서비스명 오른쪽 정렬 */
  }
}

/* ==== 모바일 적용시간 행 - 4열 정렬 고정 ====
   [시간 - 시간 (익일)] [타겟칩] [토글] [운영중]
   익일/운영중 유무와 관계없이 각 열이 같은 위치에 오도록 폭을 예약 */
@media screen and (max-width: 420px) {
  /* 시간 + 익일 배지 자리를 고정 → 타겟칩 시작 위치가 항상 동일 */
  .setting_card .timeset_wrapper:not(.has_week) .timeset_inner {
    flex: 0 0 auto;
    width: 128px;
    padding-right: 0;
  }

  .setting_card .next_day_tag {
    margin-left: auto;          /* 시간 오른쪽 끝에 붙임 */
  }

  /* 타겟칩은 남는 폭 사용 */
  .setting_card .timeset_inner2 .target_chip {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* 운영중은 미운영이어도 자리를 유지해 토글 위치가 흔들리지 않게 */
  .setting_card .running_tag {
    display: block;
    visibility: hidden;
    min-width: 42px;
    padding: 2px 5px;
    font-size: 9px;
  }

  .setting_card .running_tag.now {
    visibility: visible;
  }
}

#popup_target .target_empty {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
  text-align: center;
  padding: 18px 4px;
}

/* ==== 서비스 탭 - 고정 헤더 안에서의 간격/크기 (왼쪽 정렬) ==== */
#HEADER_DATE .svc_tab_wrap {
  justify-content: flex-start;
  margin: 10px 0 6px;
}

.header .svc_tab_wrap,
.header2 .svc_tab_wrap {
  justify-content: flex-start;
}

@media screen and (max-width: 420px) {
  .svc_tab {
    padding: 7px 11px;
    font-size: 13px;
    border-radius: 8px;
  }
  .svc_tab_wrap {
    gap: 6px;
    margin: 10px 0 8px;
  }
}

/* 타겟 칩 클릭 시 글자가 드래그 선택되지 않도록 */
.setting_card .target_chip,
.setting_card .target_chip * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* 요일 칩·행 토글·서비스 탭도 동일 (클릭 전용 요소) */
.week_chip,
.row_toggle,
.svc_tab,
.setting_group_head {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ==== 모바일 - 타겟 칩 여백 축소 / 토글 확대 ==== */
@media screen and (max-width: 420px) {
  /* 칩이 남는 폭을 다 먹어 '타겟 :' 과 서비스명 사이가 벌어지던 것 → 내용 크기로 축소 */
  .setting_card .timeset_inner2 .target_chip {
    flex: 0 1 auto;
    justify-content: flex-start;
    gap: 4px;
    padding: 3px 8px;
  }

  .setting_card .target_chip .target_name {
    flex: 0 1 auto;
    text-align: left;
  }

  /* 토글은 손가락으로 누르기 쉽게 넓게 */
  .row_toggle {
    width: 46px;
    height: 25px;
  }

  .row_toggle .row_toggle_btn {
    width: 18px;
    height: 18px;
    left: 3px;
  }

  .row_toggle.active .row_toggle_btn {
    left: calc(100% - 21px);
  }
}

/* 운영중 태그 글씨 크기 */
@media screen and (max-width: 420px) {
  .setting_card .running_tag {
    font-size: 10px;
  }
}

/* 옵션명 뒤 부가 설명 (무력화 대상 목록 등) */
.setting_card .svc_name .svc_sub {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  color: #5a6270;   /* 본문보다 한 단계 낮추되 대비는 확보 (#999 는 작은 글씨에서 흐림) */
  line-height: 1.45;
}

/* =====================================================================
 * [가입 미발생 알림] 임계 시간 칩 (설정 카드 라벨 아래)
 * 외부가입창 설정 화면의 target_svc_btn 스타일을 그대로 가져왔습니다.
 * ===================================================================== */
.svc_name_wrap { display: flex; flex-direction: column; gap: 6px; }

.target_svc_btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid #dce0e5; border-radius: 14px;
  background: #f7f8fa; font-size: 12px; color: #333; cursor: pointer; width: fit-content;
}
.target_svc_btn b { color: #2b6bdd; }
.target_svc_edit { color: #888; text-decoration: underline; }

/* 임계 시간 입력 (숫자 하나만 받는 단순 입력) */
#popup_joinalert_min .joinalert_min_input {
  width: 80px; text-align: center;
  border: 1px solid #dce0e5; border-radius: 6px;
  padding: 6px 8px; font-size: 15px;
  background: #f3f3f8;
}
#popup_joinalert_min .joinalert_min_unit { margin-left: 6px; font-size: 14px; }

/* ==== [유입 알림] INFLOW_ALERT ==== */

/* 목록 행의 "30분 · ±20% 변경" 칩 */
.inflow_chip {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: #eef3ff;
  border: 1px solid #d7e2ff;
  border-radius: 20px;
  white-space: nowrap;
}
.inflow_chip .inflow_name {
  font-size: 12px;
  font-weight: 700;
  color: #0057FF;
}
.inflow_chip .btn_inflow {
  font-size: 11px;
  color: #666;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 2px 7px;
  cursor: pointer;
}
.inflow_chip .btn_inflow:hover { background: #f0f0f0; }

/* 적용시간 팝업의 유입 알림 전용 입력 */
.inflow_row { padding: 6px 0 0; }

.inflow_field {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
}
.inflow_field .inflow_label {
  font-size: 14px;
  color: #5F5E5A;
  white-space: nowrap;
}
.inflow_sel {
  width: 120px;
  border: 1px solid #dce0e5;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 14px;
  background: #f3f3f8;
}
.inflow_pct_wrap { display: inline-flex; align-items: center; }
.inflow_pct {
  width: 80px;
  text-align: center;
  border: 1px solid #dce0e5;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 15px;
  background: #f3f3f8;
}
.inflow_unit { margin-left: 6px; font-size: 14px; }

/* 저장될 구간 미리보기 */
.inflow_preview {
  margin: 10px 0 0;
  padding: 8px 10px;
  background: #f6f8fc;
  border-radius: 6px;
  font-size: 12.5px;
  color: #4a5568;
  text-align: center;
}
.inflow_preview b { color: #0057FF; font-weight: 700; }

/* 학습 설정 팝업 */
#popup_inflow_learn .joinalert_min_input {
  width: 80px; text-align: center;
  border: 1px solid #dce0e5; border-radius: 6px;
  padding: 6px 8px; font-size: 15px;
  background: #f3f3f8;
}
#popup_inflow_learn .joinalert_min_unit { margin-left: 6px; font-size: 14px; }
