body, html {
  margin: 0;
  padding: 0;
  color: #000;
  font-family: "Pretendard", sans-serif;
  font-weight: normal;
  letter-spacing: -0.5px;
  font-size: 16px;
}

body {
  -webkit-text-size-adjust: none;
  /* min-width: 480px; */
}
body * {
  box-sizing: border-box;
}

ul, ol, li, dl, dt, dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  /* color: #29292c; */
  text-decoration: none;
  cursor: pointer;
}

input, select, textarea, fieldset, button {
  outline: none;
  margin: 0;
  padding: 0;
  width: auto;
  min-width: auto;
  border: 0;
  font-family: "Pretendard", sans-serif;
  font-weight: normal;
  letter-spacing: -0.5px;
}
input.txtRight, input.right, select.txtRight, select.right, textarea.txtRight, textarea.right, fieldset.txtRight, fieldset.right, button.txtRight, button.right {
  letter-spacing: initial;
}

table {
  table-layout: fixed;
  border-collapse: collapse;
}

img {
  display: inline-block;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

@font-face {
  font-display: swap;
  font-family: "Pretendard";
  font-style: thin;
  font-weight: 100;
  src: url(../../font/Pretendard-Thin.woff2) format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Pretendard";
  font-style: light;
  font-weight: 300;
  src: url(../../font/Pretendard-Light.woff2) format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 400;
  src: url(../../font/Pretendard-Regular.woff2) format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Pretendard";
  font-style: medium;
  font-weight: 500;
  src: url(../../font/Pretendard-Medium.woff2) format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Pretendard";
  font-style: bold;
  font-weight: 700;
  src: url(../../font/Pretendard-Bold.woff2) format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Pretendard";
  font-style: black;
  font-weight: 900;
  src: url(../../font/Pretendard-Black.woff2) format("woff2");
}
.page_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 1.25rem;
  background: #fff;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  /* 250226 */
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1;
}
/* 250226 */
.page_header .ico{
  width: 24px;
}
main{
  margin-top: 3.5rem;
  /* margin-bottom: 3.5rem;
  height: calc(100vh - 7rem); */
  margin-bottom: 4.5rem;
  height: calc(100vh - 5rem);
  overflow-y: auto;
}
main.fullType{
  margin-bottom: 0;
  height: calc(100vh - 10px);
  background: #ffffff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  margin-top: 10px;
  border-radius: 20px 20px 0 0;
  position: relative;
  z-index: 30;
}
.login__wrap{
  display: flex;
  justify-content: center;
  padding: 50px;
  background: #fff;
}
.login__wrap .login__box{
  padding: 70px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  border-radius: 10px;
}
.login__wrap .login__logo{
  color: #000;
  text-transform: uppercase;
}
.login__wrap .login__tit{
  text-align: center;
}
.login__wrap .login__tit h1{
  font-size: 36px;
  text-transform: uppercase;
}
.login__wrap .login__tit .h1__sub{
  font-size: 1.2rem;
}
.login__wrap .login__cont input{
  border: 1px solid #bbb;
}
.login__wrap .login__cont .login__btn{
  color: #fff;
  background: #222;
}
.login__wrap .login__sub{
  color: #4d4d4d;
}
.login__wrap .login__sub .prefix{
  display: flex;
}
.login__wrap .login__sub .suffix{
  display: flex;
  gap: 15px;
}
.login__wrap .login__sub .suffix a{
  position: relative;
}
.login__wrap .login__sub .suffix a:first-child::after{
  content:'';
  width: 1px;
  height: 14px;
  background: #bbb;
  position: absolute;
  right: -8px;
  top: 4px;
}
.login__box .form__btn{
   margin-top: 20px;
}
.login__box .form__btn ul{
  margin-top: 20px;
  display: flex;
  /* flex-direction: column; */
  justify-content: center;
  gap: 10px;
}
.login__box .form__btn ul a{
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: stretch;
  font-size: 16px;
  border-radius: 6px;
}

/*250226*/
.login__box .form__btn ul a span{
  flex: auto;
}


.login__box .form__btn ul .naver{
  background: #03cf5d;
}
.login__box .form__btn ul .kakao{
  background: #FEE500;
}
.login__box .form__btn ul .kakao img{
  /* width: 30px; */
  height: 33px;
}
.login__box .form__btn ul .google{
  border:1px solid #939393;
  border-left: 0;
}
.login__box .form__btn ul a img{
  width: auto;
  height: 36px;
}
.agree__wrap{
  padding: 20px;
  height: 100vh;
  background: #fff;
}
.agree__wrap .agree__box{
  margin-top: 40px;
}
.agree__wrap .agree__box .agree__tit{
  display: flex;
  justify-content: space-between;
}
.agree__wrap .agree__box .agree__detail{
  margin-top: 10px;
  margin-bottom: 20px;
  padding: 10px;
  max-height: 30vh;
  overflow-y: auto;
  font-size: 14px;
  border-radius: 6px;
  border:1px solid #ddd;
}

button.full{
  width: 100%;
  padding: 10px;
  color: #fff;
  font-size: 16px;
  background:  #45a5f2;
}
button.primary{
  color: #fff;
  background:  #45a5f2;
  border-color: #45a5f2;
}
button.txtType{
  padding: 0 !important;
  border:0;
  box-shadow: none;
}
button.txtType img{
  width: 20px;
  margin-top: 0;
}
button.smType{
  padding: 0.25rem .5rem;
}
button.round{
  padding: .5rem;
  border-radius: 50%;
}















body {
  background-color: #f7f7f7;
}

.sec_wrap {
  padding: 0.8rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.sec_wrap.fullType {
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.sec_wrap.fullType .sec_box {
  padding: 0;
  box-shadow: none;
}
.sec_wrap.fullType .sec_box .box_header,
.sec_wrap.fullType .sec_box .inner_box{
  padding: 0 1.2rem;
}
.sec_wrap.fullType .sec_box .box_header .box_header{
  padding: 0;
}
.sec_wrap.fullType .sec_box .inner_box{
  padding-bottom: 1rem;
  margin-bottom: 0;
  border-bottom: 4px solid #efefef;
}
.sec_wrap.fullType .sec_box:last-child .inner_box{
  border-bottom: 0;
}
.sec_wrap .sec_box {
  padding: 1.875rem; /*250226*/
  border-radius: 0.625rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  background-color: #fff;
  /* font-size: 0.75rem; */
}

.rouLog_wrap .sec_box{
  max-height: 75vh;
  overflow-y: auto;
  font-size: 14px;
  background: transparent;
  box-shadow: none;
}
.rouLog_wrap .sec_box ul{
  display:flex;
  flex-direction: column;
  gap: .5rem;
}

/*250226*/
/*.sec_box.ctrlBox .box_header {
  margin-bottom: 2rem;
}*/
.sec_box .box_header {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.sec_box .box_header .prefix{
  display: flex;
  align-items: center;
  gap: .3rem;
}
.sec_box .box_header .prefix.col{
  flex-direction: column;
  align-items: flex-start;
}
.sec_box .box_header .suffix button{
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: 0.4rem .6rem;
}
.sec_box .box_header img{
  width: 1.2rem;
}
.sec_box button{
  padding: 0.4rem 1rem;
}
.sec_box .inner_box{
  margin-bottom: 1rem;
}
.sec_box .inner_box>ul{
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.inner_box ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: 0.8125rem;
}
/* .inner_box ul ul{
  grid-template-columns: repeat(auto-fit, minmax(13%, auto));
  grid-auto-flow: dense;
} */
.inner_box img {
  margin-top: 1.25rem;
  width: 100%;
}
.inner_box.cond ul{
  gap:0;
  grid-template-columns: repeat(7, 1fr);
}
.inner_box.cond ul.col4{
  grid-template-columns: repeat(4, 1fr);
}
.inner_box.cond ul ul{
  gap:0.3rem;
}
.inner_box.cond li{
  padding: 0.5rem 0;
  gap: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  /* border-bottom: 1px solid var(--tableB); */
}
.inner_box.cond li.column{
  flex-direction: column;
  align-items: initial;
  gap: 0.5rem;
  border-bottom: 0;
}
.inner_box.cond li li{
  display: block;
  border:0;
}
.inner_box.cond li h4{
  margin-bottom: 0;
  flex-shrink: 0;
}
.inner_box.cond li .search_box input{
  padding: 0;
  border:0;
}
.inner_box.cond li input{
  padding: .7rem;
  flex:1;
  box-shadow: none;
  border: 1px solid #ddd;
}
.inner_box.cond li input[type=month],
.inner_box.cond li input[type=date],
.inner_box.cond li input[type=time]{
  max-width: 8rem;
  height: 2.4rem;
}
.inner_box.tool ul{
  gap: .5rem;
}
.inner_box.tool li{
  /* padding: 0.25rem 0; */
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: 1rem;
  /* border-bottom: 1px solid var(--tableB);; */
  /* border-radius: 0.375rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);; */
}
.inner_box.tool li .onOff_chk{
  margin-left: auto;
}
/*//250226*/


.sec_wrap .sec_box.chart_wrap .input_wrap{
  justify-content: initial;
}
.sec_wrap .sec_box.dbBox + h4{
  margin-top: 2rem;
}
.sec_box.listType{
  padding: 0;
}
.sec_box.listType .box_header{margin-bottom: 0;}
.sec_box.listType ul{margin-top: 20px; grid-template-columns: repeat(1, 1fr); gap:10px;}
.sec_box.listType li{border-bottom:1px solid #ededed;}
.sec_box.listType li:last-child{border-bottom:0;}


h2 {
  font-size: 1.2rem; /*250226*/
}

/*250226*/
.tit_wrap{
  padding: 1.25rem;
    padding-bottom: 0;
  display: flex;
  justify-content: space-between;
  position: relative;
}
.tit_wrap select{
  font-size: 1.1rem;
  background: transparent;
  font-weight: 600;
}
.tit_wrap .more_btn{
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.tit_wrap .more_btn img{
  width: 30px;
  transform: rotate(90deg);
}
.tit_wrap .more_box{
  position: absolute;
  top: 45px;
  left: auto;
  right: 30px;
  /* border: 0; */
  border-radius: 6px;
  overflow: hidden;
}
.tit_wrap .more_box li{
  padding: .4rem 1rem;
}

.cate_tab {padding: 1rem 1.5rem 0;}
.cate_tab ul{
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
}
.cate_tab ul::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.cate_tab ul li{
  padding: 0px 5px 3px;
  color: #B0B0B0;
  white-space: nowrap;
}
.cate_tab ul li.active{
  color: #222;
  font-weight: bold;
  border-bottom: 2px solid #222;
}

/* ye.kim(25.12.10) 카테고리 '전체' 부분 고정 */
.cate_tab ul li.all {
    position: sticky;
    left: 0;
    background: #f7f7f7; /* 스크롤 시 뒤에 내용 가리기 */
    z-index: 1;
    padding-right: 10px; /* 다음 항목과 간격 */
}

h2.tit {
  text-decoration: none;
}
h3 {
  font-size: 1.2rem;
  line-height: initial;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.h3_sub{
  font-size: .8rem;
  color:#9d9d9d;
}
.h4_tit{
  /* margin-top: 1.5rem; */
  /* margin-bottom: 0.4rem; */
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  gap: 1rem;
}
/* .h4_tit h4{
  margin-bottom: 0;
} */
h4{
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  /* color: #797979; */
}
h5 {
  font-size: 1rem;
}


button,
input {
  /* padding: 0.25rem 0.625rem; */
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 0.375rem;
  color: #464646;
  font-weight: 600;
  border: 1px solid #c9c9c9;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}
input[type=text]{
  border: 1px solid var(--inputBd);
}
input[type=text].xsType{
  width: 2rem;
  padding: .25rem;
}
input.fullType{
  width: 100%;
}
input[type=checkbox]{
  accent-color: #45a5f2;
}
input[type=checkbox] + label{
  font-size: 0.9rem;
}
/* input[type=date], input[type=time]{
  width: 47%;
} */

footer {
  padding: 0 1.25rem;
  padding-bottom: 1.25rem;
  text-align: right;
  position: absolute;
  right: 0;
  bottom: 3rem;
}
footer button {
  padding: 0.5rem 0.75rem;
  color: #fff;
  border: 0;
  background-color: #45a5f2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.dbBox_mImg {
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
  /* width: 15rem; */
  border-radius: 50%;
  /* position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1; */
}
.dbBox_mImg img {
  width: 15rem;
  object-fit: cover;
  clip-path: circle(45%);
}

.dbBox {
  /* margin-top: 9.375rem; */
  position: relative;
}
/* .dbBox button {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
} */
.dbBox ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  max-width: 35rem;
  margin: 0 auto;
  gap: 0.9375rem;
}
.dbBox ul li {
  display: flex;
  align-items: center;
  padding: .7rem 1rem;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    border-radius: .4rem;
    gap: .6rem;
}
.dbBox ul li .dbBox_img img {
  /* width: 2.1875rem; */
  width: 3rem;
}

.dbBox .dbBox_cont .dbBox_tit {
  margin-top: 0.625rem;
  color: #878787;
  font-size: 0.8rem;
}
.dbBox .dbBox_cont .dbBox_val {
  font-weight: 600;
  font-size: 1rem;
  color: #45a5f2;
}

.ctrlBox ul {
  /* 250226 */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 40rem;
  margin: 0 auto;
  justify-content: space-evenly;
  gap: 20px;
}
.ctrlBox.remote ul {
  grid-template-columns: repeat(4, 1fr);
}
.ctrlBox.remote li {}
.ctrlBox.remote button{
  padding: .8rem;
  background: linear-gradient(to right, #e3e3e3, #fff);
  box-shadow: 0 0 10px rgb(221 221 221);
  border: 1px solid #cfcfcf;
  border-radius: 50%;
}
.ctrlBox li {
  text-align: center;
}
.ctrlBox li .ctrl_img {
  padding: 1.25rem 0.625rem;
  width: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  border: 2px solid #ccc;
}
.ctrlBox li .ctrl_img img {
  width: 2rem;
}
.ctrlBox li .ctrl_tit {
  margin-top: 0.625rem;
  font-weight: 600;
  font-size: 0.9rem;/*250226*/
}

/* 250226 */
.ctrlBox .ctrl_chk{
  display: flex;
  justify-content: center;
}
.ctrlBox .ctrl_chk input[type="checkbox"]{
  display: none;
}
.ctrlBox .ctrl_chk input[type="checkbox"] + label{
  display: flex;
  align-items: center;
  justify-content: center;
  /*250226*/
  width: 5rem;
  height: 5rem;
  max-width: 6rem;

  margin-left: 0;
  position: relative;
  cursor: pointer;
}
.ctrlBox .ctrl_chk input[type="checkbox"] + label:before{
  content: "";
  display: inline-block;
  /*250226*/
  width: 5rem;
  height: 5rem;
  max-width: 6rem;

  border-radius: 50%;
  background: linear-gradient(to right, #abcdef, #fff);
  box-shadow: 0 0 10px rgba(171, 205, 239, 1);
  border: 2px solid #b0cfe7;
  position: absolute;
  left: 0;
  top: 0;
}
.ctrlBox .ctrl_chk input[type="checkbox"]:checked + label:before{
  background: #eaeaea;
  border: 2px solid #ccc;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}
.ctrlBox .ctrl_chk input[type="checkbox"] + label img{
  display: inline-block;
  width: 3rem;/*250226*/
  position: relative;
  z-index: 1;
}
.ctrlBox .ctrl_chk input[type="checkbox"]:checked + label img{
  opacity: .2;
}
.ctrlBox .ctrl_chk input[type="checkbox"] + label .loading img{
  animation: spin 2s linear infinite;
}
@keyframes spin {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

.rou_wrap{
  gap: 0.8rem;
}
.rou_wrap .rouBox {
  padding: 0.75rem 1.2rem;
}
.rouBox .tit{
  display: flex;
  gap: .3rem;
}
.rouBox .tit h5 a{
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
}
.rouBox .tit .routine span{
  font-size: .8rem;
  font-weight: 400;
  padding: .1rem .4rem;
  color: #fff;
  border-radius: .3rem;
}
.rouBox .tit .routine span.Y{background: #ac60cb;}
.rouBox .tit .routine span.M{background: #39a7ff;}
.rouBox .tit .routine span.W{background: #1f9900;}
.rouBox .tit .routine span.D{background: #eb9e4f;}
.rouBox .tit .routine span.A{background: #2c3e50;}
.rouBox ul{
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 2rem;
  
  row-gap:.8rem;
}
.rouBox ul li.right{
  display: flex;
  justify-content: flex-end;
}
.rouBox ul li.more{
  position: relative;
  width: 2rem;
}
.rouBox ul li button{
  padding: 0.3rem 0.5rem;
  display: flex;
  gap: 4px;
  align-items: center;
}
.rouBox ul li button img{
  width: 0.8rem;
}






/*onoff타입 */
.onOff_chk .onOff_btn{
  appearance: none;
  padding: 0;
  width: 36px;
  height: 22px;
  position: relative;
  border-radius: 1.25em;
}
.onOff_chk .onOff_btn::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 52%;
    transform: translateY(-50%);
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background-color: gray;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  transition: left 250ms linear;
}
.onOff_chk .onOff_btn:checked {
  border:1px solid #45a5f2;
  background-color: #45a5f2;
}
.onOff_chk .onOff_btn:checked::before {
  background-color: white;
  left: 17px;
}
.onOff_chk .onOff_btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.onOff_chk .onOff_btn:disabled + span {
  opacity: 0.7;
  cursor: not-allowed;
}
.onOff_chk .onOff_btn:disabled:before {
  background-color: lightgray;
}
.onOff_chk label{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

/*칩*/
.inner_box.cond .chip_list{}
.inner_box.cond .chip_list ul{display: flex; flex-wrap: wrap;}
.inner_box.cond .chip_list ul li{
  padding: .3rem 0.5rem 0.3rem .7rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  color: #45a5f2;
  font-weight: 500;
  border-radius: .6rem;
  border: 1px solid #45a5f2;
}
.inner_box.cond .chip_list ul li span{
  padding: 2px .3rem;
  font-size: 10px;
  color: #fff;    
  background-color: #84c8ff;
  border-radius: .4rem;
}
.inner_box.cond .chip_list ul li i{
  margin-left: .6rem;
  width: .6rem;
}
.inner_box.cond .chip_list ul li img{
  margin-top: 0;
  display: block;
}


/* box타입 */
.box_chk{
  flex: 1;;
}
.box_chk input{
  display: none;
}
.box_chk input + label{
  display: inline-block;
  padding: .3rem 0.5rem;
  color: #cdcdcd;
  border-radius: 0.5rem;
  border: 1px solid #d9d9d9;
}
.box_chk input:checked + label{
  color: #45a5f2;
  border:1px solid #45a5f2;
}





nav{
  width: 100%;
  padding: 1rem 4rem;
  padding-bottom: .6rem;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  position: fixed;
  bottom: 0;
  z-index: 10; /*250226*/
}
nav ul{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav li{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}
nav ul img{
  display: inline-block;
  width: 2rem;
}
nav li span{
  font-size: .8rem;
}




.ptBox ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.9375rem;
}
.ptBox ul li {
  flex: 1;
  text-align: right;
}
.ptBox ul li img {
  width: 100%;
}

.waterBox .level {
  margin-bottom: 0.3125rem;
}
.waterBox .level ul {
  display: flex;
  justify-content: space-between;
}
.waterBox .level ul li {
  color: #878787;
  position: relative;
}
.waterBox .level ul li::after {
  content: "";
  width: 1px;
  height: 0.375rem;
  background: #fff;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.input_wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.375rem;
}
.input_wrap.full {
  justify-content: initial;
  align-items: baseline;
  gap: 1rem;
}
.input_wrap input {
  flex: 1;
  padding: 0.5rem 0.25rem;
}
.input_wrap input[type=date] {
  max-width: 10rem;
}
.input_wrap select{
  padding: 0.47rem 0.625rem;
  border: 1px solid var(--inputBd);
  border: 1px solid #ddd;
}
.input_wrap .search_box{
  padding: .65rem .5rem;
  display: flex;
  gap: .5rem;
  flex:1;
  border-radius: 0.375rem;
  border: 1px solid var(--inputBd);
}
.input_wrap .search_box input{
  padding: 0;
  width: 100%;
  border:0;
  box-shadow: none;
}

/*dimming*/
.slider_input{
  display: flex;
  flex: 1;
  position: relative;
}
.slider_input input[type=range] {
  appearance: auto;
  -webkit-appearance: auto;
  padding: 0;
  width: 100%;
  height: 8px;
  margin: 20px 0;
}

.slider_input .val_bubble {
  font-size: 14px;
  font-weight: bold;
  color: #444;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: left 0.1s;
  position: absolute;
  top: -4px;
}


/*updown*/
.controller {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
}

.controller input[type="checkbox"] {display: none;}

.controller label {
  margin-left: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(to right, #ededed, #fff);
  box-shadow: 0 0 1px rgb(145, 145, 145);
  border: 1px solid #ededed;
  transition: all 0.3s ease;
}
.controller .ctrUp + label{border-bottom:0; border-top-left-radius: 10px; border-top-right-radius: 10px;}
.controller .ctrDown + label{border-top:0; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;}

.controller input[type="checkbox"]:checked + label {
  color: #45a5f2;
  background: #e6f4ff;
  border: 1px solid #ccdbe5;
  box-shadow: inset 4px 6px 10px rgb(50 99 145 / 30%);
}





.table_box{
  overflow-y: auto;
  padding-right: .5rem;
}
table{}
table thead{}
table thead tr{}
table thead th{
  border-bottom: 1px solid var(--black);
  border-top: 0;
}

table tbody tr{
  /* border-radius: 10px;
  border:1px solid #ddd ; */
}
table tbody tr:nth-child(2n+1){
  background: #f5f5f5;
}
table tbody tr td:first-child{
  border-radius: 6px 0 0 6px;
}
table tbody tr td:last-child{
  border-radius: 0 6px 6px 0;
}
table td{
  padding: 0.5rem 0.375rem;
  border:0;
}
table td.ellipsis{  
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
table td.left{
  text-align: left;
}
table td.right{
  text-align: right;
}
table td .unit{
  font-size: .8rem;
}
table select{
  background: transparent;
}
.ellipsis{
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uLine{
  text-decoration: underline;
}



.layer_pop,
.spinner_box{
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  display: none;
}
.layer_pop.active,
.spinner_box.active{
  display: block;
}
.layer_pop .dim,
.spinner_box .dim{
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0,0,0,0.5);
}
.layer_pop .layer_box{
  padding: 1.5rem;
  width: 98%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #fff;
  border-radius: 20px 20px 0 0;
  position: absolute;
  /* top: 50%;
  left: 50%;
  transform : translate(-50%, -50%); */
  left: 50%;
  transform: translate(-50%);
  bottom: 0;
}
.layer_pop .layer_box.confirm{
  padding-top: 2rem;
  width: 80%;
  top: 50%;
  bottom: auto;
  border-radius: 10px;
  transform : translate(-50%, -50%);
}
.layer_pop .layer_box.confirm p{
  text-align: center;
}
.layer_pop .layer_box.confirm .btm_btn{
  margin-top: 0;
}
.layer_pop .layer_box.ctrller{
  padding-bottom: 3rem;
  width: 50%;
  border-radius: 20px;
  transform: translate(-50%,-50%);
  bottom: auto;
  top: 50%;
}
.layer_pop .layer_box .input_wrap{
  padding: .1rem;
  padding-right: .5rem;
}
.layer_pop .layer_box .input_wrap input{border: 1px solid var(--inputBd);}
.layer_pop .layer_box .table_box{
  margin-top: 1rem;
  max-height: 40vh;
}
.layer_pop .box_header{
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.layer_pop .btm_btn{
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.spinner_box .spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3; 
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20rem auto;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.toast{
  z-index: 100;
}
.more_box{
  position: absolute;
  left: -40px;
  right: -5px;
  top: 5px;
  border:1px solid #d0d0d0;
  box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2);
  z-index: 1;
}
.more_box ul{
  display: block;
  font-size: .8rem;
  text-align: center;
  background: #fff;
}
.more_box li{
  font-weight: 500;
  padding: .3rem .5rem;
  border-bottom: 1px solid #d0d0d0;
}
.more_box li:last-child{
  border-bottom: 0;
}
.sec_box .nodata{
  padding: 1rem;
  display: block;
  height: auto;
  text-align: center;
}
.rouLog_wrap .nodata,
.nodata{
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 15rem);
}











@media screen and (max-width: 480px) {
  .sec_wrap .sec_box {
    padding: 1.2rem;
    padding-bottom: 1.875rem;
  }
  .rouLog_wrap .sec_box {
    padding: .5rem;
  }
  .sec_box.rouBox{
    padding: 0.75rem 1.2rem;
    padding-right: 1rem;
  }
.ctrlBox.listType{
  padding: 0.75rem 1.2rem;
}
  .ctrlBox .ctrl_chk input[type="checkbox"] + label img{
    width: 2.5rem;
  }
  /* .ctrlBox li .ctrl_tit {
    font-size: 0.85rem;
  } */
  .dbBox ul li .dbBox_img img{
    width: 2.1875rem;
  }
  input[type=date]{
    min-width: auto;
  }
  nav ul img{
    width: 1.5rem;
  }
}
/*# sourceMappingURL=style.css.map */



/* ye.kim(25.12.3) 자동화 박스 style 추가 */
.rouBox {
    cursor: pointer;
    transition: background-color 0.2s;
}

.rouBox:hover {
    background-color: #f5f5f5;
}

/* ye.kim(25.12.8) 자동화 버튼 style 추가 */
.rouBox__Bottom ul{
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 2rem;

  row-gap:.8rem;
}
.rouBox__Bottom button {
  padding: 0.3rem 0.5rem;
  display: flex;
  gap: 4px;
  align-items: center;
}
.rouBox__Bottom ul li.right{
  display: flex;
  justify-content: flex-end;
}

/*onoff타입 */
/* ye.kim(25.12.2) 자동화 플래그 버튼 style 추가 */
.onOff_chk {
    display: inline-block;
    margin-left: auto;
}



/* ye.kim(25.12.24) 로그 보기 style 수정 */
    /* 하단 여백 및 전체 레이아웃 조정 */
    .log_main_container {
        margin-top: 3.5rem;
        margin-bottom: 0; /* 네비게이션이 있다면 nav 높이만큼만 */
        height: auto; /* 고정 높이 해제 */
        min-height: calc(100vh - 3.5rem);
        background-color: #f8f9fa; /* 전체 배경색 통일 */
        display: block;
    }

    .rouLog_wrap {
        padding: 1rem;
        background: transparent;
    }

    /* 왼쪽 시간 정보 */
    .timeline_item {
        display: flex;
        gap: 15px;
        margin-bottom: 20px;
        position: relative;
    }

    .time_side {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        min-width: 50px;
        padding-top: 5px;
    }

    .time_side .date { font-size: 15px; color: #999; }
    .time_side .time { font-size: 15px; font-weight: 700; color: #2c3e50; }

    /* 우측 카드 디자인 */
    .card_content {
        flex: 1;
        background: #fff;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        border-left: 4px solid #45a5f2; /* 포인트 컬러 */
    }

    /* 기존 border-left는 그대로 두고 아래 추가 */
    .card_content.status-success { border-left-color: #45a5f2; }
    .card_content.status-fail    { border-left-color: #c62828; }
    .card_content.status-kill    { border-left-color: #ff0a0a; }
    .card_content.status-end     { border-left-color: #6a1b9a; }

    .card_header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 6px;
    }

    .dev_name { font-size: 15px; color: #333; font-weight: 700; }

    .badge {
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 4px;
        background: #e3f2fd;
        color: #1976d2;
        font-weight: bold;
    }

    .badge-success {
        background: #e3f2fd;
        color: #1976d2;
    }
    .badge-fail {
        background: #fdecea;
        color: #c62828;
    }
    .badge-kill {
        background: #ffdfdf;
        color: #f53838;
    }
    .badge-end {
        background: #f3e5f5;
        color: #6a1b9a;
    }

    .path_info {
        font-size: 12px;
        color: #7f8c8d;
        margin: 5px 0;
        word-break: break-all;
    }

    .full_date {
        display: block;
        font-size: 10px;
        color: #bdc3c7;
        text-align: right;
        margin-top: 5px;
    }

    /* 데이터 없을 때 */
    .nodata_msg {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 100px 0;
        color: #bbb;
        gap: 10px;
    }

    .group_title {
        margin: 0 !important;
        border-left: none !important;
        padding-left: 0 !important;
        font-size: 15px !important;
    }

    .group_title .count {
        font-size: 12px;
        background: #eee;
        padding: 2px 8px;
        border-radius: 10px;
        color: #666;
    }

    /* 장비 타입별 배지 색상 차별화 (선택사항) */
    .badge.OF { background: #e3f2fd; color: #1976d2; } /* 온오프: 파랑 */
    .badge.UD { background: #fff3e0; color: #ef6c00; } /* 업다운: 주황 */
    .badge.DT { background: #f3e5f5; color: #7b1fa2; } /* 딩티안: 보라 */

    /* 타임라인 간격 조정 */
    .timeline_list {
        padding-bottom: 30px;
    }

    /* 그룹 컨테이너 */
    .group_container {
        margin-bottom: 10px;
        background: transparent;
    }

    /* 클릭하는 헤더 부분 */
    .group_header {
        background: #fff;
        padding: 12px 15px;
        border-radius: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        margin-bottom: 5px;
    }

    /* 헤더에 살짝 효과 추가 */
    .group_header:active {
        background-color: #f0f0f0;     /* 터치했을 때 반응 */
    }

    /* 열려있는 그룹 헤더에 살짝 강조 효과 */
    .group_container.active .group_header {
        border-bottom: 1px solid #f0f0f0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }


    /* 다른 모든 설정을 무시하고 이 설정을 따르게 함 */
    .log_main_container .rouLog_wrap #logTxt .group_container .group_content_list {
        display: none !important;
        padding: 10px 5px;
    }

    /* active 클래스가 붙었을 때만 강제로 노출 */
    .log_main_container .rouLog_wrap #logTxt .group_container.active .group_content_list {
        display: block !important;
        animation: fadeInLog 0.3s ease;
    }


    /* 기본 상태: 리스트 숨기기 */
    .group_content_list {
        display: none !important; /* 우선 숨김 */
        padding: 10px 5px;
        list-style: none;
    }

    /* active 상태: 리스트 보이기 (반드시 기본 상태보다 아래에 작성) */
    .group_container.active .group_content_list {
        display: block !important; /* active일 때 강제로 보임 */
        animation: slideDown 0.3s ease-out;
    }

    /* 화살표 기본 (아래 방향) */
    .arrow_toggle {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-top: 2px solid #ccc;
        border-right: 2px solid #ccc;
        transform: rotate(135deg);
        transition: all 0.3s ease;
        margin-right: 5px;
    }

    /* active 시 화살표 회전 (위 방향) */
    .group_container.active .arrow_toggle {
        transform: rotate(-45deg) !important;
        border-color: #45a5f2 !important;
    }

    /* 애니메이션 효과 */
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeInLog {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* 기존 타임라인 아이템 여백 조정 */
    .timeline_item {
        margin-bottom: 15px;
    }















/* 관비기.ver 홈 온오프제어 style */
.control-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.control-item {
    background: #fff;
    border-radius: 12px;
    padding: 5px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.control-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 온오프 스위치 */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: #45a5f2;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* 컨테이너: 3개 항목을 가로로 정렬 */
.control-settings {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* 입력창과 버튼의 바닥 라인을 맞춤 */
    gap: 8px;
    padding: 12px 0;
}

/* 전체 설정 컨테이너 */
.control-settings-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
}

/* 첫 번째 줄: 1:1 비율로 배치 */
.settings-row-top {
    display: flex;
    gap: 10px;
}

.input-unit-wrap {
    flex: 1; /* 작동시간과 시비후가 50%씩 차지 */
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 두 번째 줄: 농도 선택 */
.settings-row-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 각 칼럼: 동일한 너비 할당 */
.setting-row {
    flex: 1; /* 33.3%씩 공평하게 나눔 */
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0; /* 내부 요소가 넘쳐도 영역 유지 */
}

/* 라벨 스타일 */
.setting-label {
    font-size: 14px; /* 좁은 화면 대응을 위해 약간 축소 */
    font-weight: 600;
    color: #888;
    white-space: nowrap; /* 글자 줄바꿈 방지 */
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 입력 그룹 스타일 */
.input-group {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 10px;
}

.control-input {
    width: 100%;
    border: none;
    /*background: none;*/
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    outline: none;
}

.input-unit {
    font-size: 12px;
    color: #888;
    margin-left: 4px;
}

/* 세그먼트 버튼 스타일 (하단 한 줄 꽉 차게) */
.segment-group {
    display: flex;
    background: #f1f3f5;
    padding: 3px;
    border-radius: 10px;
}

.segment-btn {
    flex: 1;
    border: none;
    background: none;
    padding: 10px 0;
    font-size: 13px;
    font-weight: bold;
    color: #adb5bd;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.2s;
}

.segment-btn.active {
    background: white;
    color: #45a5f2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 비활성화(OFF) 상태 */
.control-item.disabled {
    opacity: 0.5;
    filter: grayscale(0.8);
}

/* 정지 버튼 스타일 */
.stop-button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(238, 90, 111, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stop-button:hover {
    background: linear-gradient(135deg, #ee5a6f 0%, #ff6b6b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.4);
}

.stop-button:active {
    transform: translateY(0);
}

.stop-icon {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 2px;
}

/* 액비 상태 바 */
.fertilizer-status-bar {
    background: white;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px; /* 라벨과 아이템 사이 간격 조절 */
    min-height: 60px; /* 컨테이너 전체의 최소 높이를 지정하고 싶다면 추가 */
}


.status-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-label::before {
    /*content: "💧";*/
    font-size: 16px;
}

/* 개별 아이템들을 감싸는 컨테이너 */
.status-items {
    display: flex;
    align-items: center;
    gap: 16px; /* 아이템 사이의 간격 */
    flex: none; /* 크기가 내용에 맞게 고정되도록 변경 (중요!) */
}

/* 개별 아이템 (원 + 텍스트) */
.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px; /* 텍스트 크기 키움 */
    font-weight: 500;
    color: #555;
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

/* 상태 점 (원형) 크기 변경 */
.status-dot {
    width: 16px;  /* 너비 키움 */
    height: 16px; /* 높이 키움 */
    border-radius: 50%;
    border: 2px solid #ddd;
    background: white;
    transition: all 0.1s ease-in-out; /* 기존 0.3s에서 0.1s로 단축 */
    flex-shrink: 0; /* 부모 크기가 작아져도 원이 찌그러지지 않게 함 */
}


/* OFF 상태 */
.status-dot.off {
    background: white;
    border-color: #ddd;
}

/* ON 상태 - 각 장비별 색상 */
.status-dot.on {
    border-color: transparent;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    /*animation: pulse-dot 2s ease-in-out infinite;*/
    animation: pulse 0.5s ease-in-out; /* 켜질 때 펄스 효과 */
}

.status-dot.on.fertilizer {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
}

.status-dot.on.pump {
    background: linear-gradient(135deg, #2196f3, #42a5f5);
}

.status-dot.on.mixer {
    background: linear-gradient(135deg, #ff9800, #ffa726);
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* 장비명 스타일 */
.status-item.active {
    font-weight: 600;
    color: #333;
}

/* 반응형 */
@media (max-width: 480px) {
    .fertilizer-status-bar {
        padding: 10px 14px;
        gap: 12px;
    }

    .status-label {
        font-size: 14px;
    }

    .status-items {
        gap: 10px;
    }

    .status-item {
        font-size: 15px;
    }

    .status-dot {
        width: 14px;
        height: 14px;
        transition: all 0.1s ease-in-out; /* 기존 0.3s에서 0.1s로 단축 */
    }
}


/* 자동화 설정 페이지 */

.dingtian_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.dingtian_list li {
    padding: 16px 15px; /* 좌우 15px로 변경 */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.dingtian_list .channel_header {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* 입력창 그룹 스타일 */
.dingtian_list .input_group {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 10px;
    height: 45px; /* 높이 고정으로 깔끔하게 */
}

.dingtian_list .control-input {
    flex: 1;
    border: none !important;
    background: none !important;
    font-size: 16px;
    font-weight: 600;
    text-align: right;
    width: 100%;
    outline: none;
}

.dingtian_list .input_group:last-child {
    margin-bottom: 0;
}

.dingtian_list .input_group label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    min-width: 70px;
    text-align: left; /* 라벨은 왼쪽 정렬 */
    flex-shrink: 0;
}

.dingtian_list .input_group input {
    flex: 1;
    max-width: 150px;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    text-align: right;
    box-sizing: border-box;
}

.dingtian_list .input_group input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.dingtian_list .unit {
    font-size: 14px;
    color: #999;
    min-width: 30px;
    text-align: left; /* 단위도 왼쪽 정렬 */
    flex-shrink: 0;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .dingtian_list li {
        padding: 14px 15px; /* 모바일도 15px */
    }

    .dingtian_list .channel_header {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .dingtian_list .input_group {
        gap: 8px;
        margin-bottom: 10px;
    }

    .dingtian_list .input_group label {
        font-size: 13px;
        min-width: 65px;
    }

    .dingtian_list .input_group input {
        max-width: 130px;
        padding: 11px 12px;
        font-size: 15px;
    }

    .dingtian_list .unit {
        font-size: 13px;
    }
}

/* 컨테이너 구조 */
.control-settings-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dingtian_list .input-unit-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* 두 번째 줄 (액비 농도) */
.dingtian_list .settings-row-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dingtian_list .segment-group {
    display: flex;
    background: #eee;
    padding: 3px;
    border-radius: 10px;
    height: 45px;
}

.seg-btn {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.2s;
}

.seg-btn.active {
    background: white;
    color: #4CAF50; /* 자동화 페이지 포인트 컬러 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 라벨 스타일 정리 */
.dingtian_list .setting-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

/* 자동화 타이머 스타일 */
.automation-timer {
    background: #ffffff;
    color: #1e293b;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.timer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timer-icon {
    font-size: 18px;
    color: #3b82f6;
}

.timer-device {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.timer-countdown {
    font-size: 22px;
    font-weight: 700;
    color: #3b82f6; /* 시간 숫자만 블루로 강조 */
    font-variant-numeric: tabular-nums; /* 숫자 폭을 일정하게 고정 */
}

/* 작동 중일 때 미세하게 배경이 숨쉬는 듯한 효과 */
@keyframes active-pulse {
    0% { background-color: #ffffff; }
    50% { background-color: #f8fafc; } /* 아주 연한 하늘색 빛 회색 */
    100% { background-color: #ffffff; }
}

.automation-timer {
    animation: active-pulse 3s infinite ease-in-out;
}


































/* ye.kim(3.4) 관비기 설정 페이지 style */
.fertigation-card {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
            padding: 24px;
            margin-bottom: 16px;
        }

        .fertigation-card .card-title {
            font-size: 1rem;
            font-weight: 700;
            color: #333;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .fertigation-card .card-title::before {
            content: '';
            display: inline-block;
            width: 4px;
            height: 18px;
            background: var(--primary, #4caf50);
            border-radius: 2px;
        }

        /* 입력 필드 그룹 */
        .field-group {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .field-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .field-label {
            font-size: 0.92rem;
            color: #555;
            font-weight: 500;
            flex: 1;
            white-space: nowrap;
        }

        .field-input-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .field-input-wrap input[type="number"] {
            width: 100px;
            height: 40px;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 0 12px;
            font-size: 1rem;
            text-align: right;
            color: #222;
            background: #fafafa;
            transition: border-color 0.2s;
            -moz-appearance: textfield;
        }

        .field-input-wrap input[type="number"]::-webkit-outer-spin-button,
        .field-input-wrap input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .field-input-wrap input[type="number"]:focus {
            outline: none;
            border-color: var(--primary, #4caf50);
            background: #fff;
        }

        .field-unit {
            font-size: 0.85rem;
            color: #888;
            min-width: 20px;
        }

        /* 수량 조절 버튼 */
        .qty-btn-wrap {
            display: flex;
            align-items: center;
            gap: 0;
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            background: #fafafa;
        }

        .qty-btn-wrap button {
            width: 36px;
            height: 40px;
            border: none;
            background: transparent;
            font-size: 1.1rem;
            color: #555;
            cursor: pointer;
            transition: background 0.15s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .qty-btn-wrap button:active {
            background: #e8e8e8;
        }

        .qty-btn-wrap input[type="number"] {
            width: 72px;
            height: 40px;
            border: none;
            border-left: 1px solid #ddd;
            border-right: 1px solid #ddd;
            border-radius: 0;
            text-align: center;
            font-size: 1rem;
            color: #222;
            background: #fff;
            -moz-appearance: textfield;
        }

        .qty-btn-wrap input[type="number"]::-webkit-outer-spin-button,
        .qty-btn-wrap input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none;
        }

        .qty-btn-wrap input[type="number"]:focus {
            outline: none;
        }

        /* 구분선 */
        .field-divider {
            border: none;
            border-top: 1px dashed #f0f0f0;
            margin: 0;
        }

        /* 저장 버튼 영역 */
        .save-btn-wrap {
            padding: 8px 0 16px;
            display: flex;
            justify-content: flex-end;
        }

        .save-btn-wrap button.primary {
            min-width: 100px;
            height: 44px;
            font-size: 0.95rem;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* 정보 뱃지 */
        .device-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: #f0f7f0;
            color: var(--primary, #4caf50);
            border-radius: 20px;
            padding: 2px 10px;
            font-size: 0.78rem;
            font-weight: 600;
            margin-left: auto;
        }

        .nodata {
            text-align: center;
            color: #aaa;
            padding: 40px 0;
            font-size: 0.9rem;
        }




























:root {
            --temp-color: #ff6b35;
            --humi-color: #3a86ff;
            --soil-color: #a85c32;
            --co2-color:  #9b5de5;
            --ec-color:   #06d6a0;
            --green-main: #2d7a4f;
            --green-mid:  #3ea96b;
            --green-pale: #e8f5ee;
            --gray-100:   #f2f2f7;
            --gray-500:   #636366;
            --gray-300:   #c7c7cc;
            --gray-900:   #1c1c1e;
        }

        /* 센서 섹션 패딩 오버라이드 */
        #sensor.sec_wrap {
            padding: 0 1.25rem 0.8rem;
            gap: 12px;
        }

        .sensor_card {
            background: #fff;
            border-radius: 14px;
            box-shadow: 0 2px 16px rgba(0,0,0,.08);
            overflow: hidden;
            animation: sc_fadeUp .35s ease both;
        }
        .sensor_card:nth-child(2) { animation-delay: .06s; }
        .sensor_card:nth-child(3) { animation-delay: .12s; }

        @keyframes sc_fadeUp {
            from { opacity: 0; transform: translateY(12px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        /* 카드 헤더 */
        .sc_header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px 12px;
            border-bottom: 1px solid var(--gray-100);
        }
        .sc_header_left {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .sc_icon_wrap {
            width: 36px; height: 36px;
            border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-size: 18px; flex-shrink: 0;
        }
        .sc_icon_wrap.icon_temp_humi { background: #fff0eb; }
        .sc_icon_wrap.icon_soil      { background: #f5ebe0; }
        .sc_icon_wrap.icon_co2       { background: #f3eeff; }

        .sc_title h3 {
            font-size: 14px; font-weight: 700;
            color: var(--gray-900); line-height: 1.2;
            overflow: visible; white-space: normal;
        }
        .sc_device_id {
            font-size: 11px; color: var(--gray-500);
            font-weight: 400; margin-top: 2px;
        }
        .sc_header_right {
            display: flex; flex-direction: column;
            align-items: flex-end; gap: 6px;
        }
        .sc_status_badge {
            display: flex; align-items: center; gap: 5px;
            font-size: 11px; font-weight: 500;
            color: var(--green-main); background: var(--green-pale);
            padding: 4px 10px; border-radius: 20px;
        }
        .sc_status_dot {
            width: 6px; height: 6px; border-radius: 50%;
            background: var(--green-mid);
            animation: sc_pulse 1.6s ease-in-out infinite;
        }
        .sc_status_dot.fail {
            background: #ff6b35 !important;
            animation: none !important; /* ← 애니메이션도 꺼야 색상이 유지됨 */
        }
        .sc_status_badge.fail {
            color: #ff6b35 !important;
            background: #fff0eb !important;
        }
        @keyframes sc_pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50%       { opacity: .4; transform: scale(.7); }
        }
        .sc_history_btn {
            display: flex; align-items: center; gap: 4px;
            background: none; border: none; box-shadow: none;
            cursor: pointer; font-size: 12px; color: var(--green-main);
            font-family: inherit; font-weight: 500; padding: 0;
        }
        .sc_update_time {
            font-size: 11px; color: var(--gray-300);
            padding: 6px 16px 8px; text-align: right;
        }

        /* 데이터 그리드 */
        .sc_data_grid {
            display: grid; padding: 12px 12px 14px; gap: 8px;
        }
        .sc_data_grid.col2  { grid-template-columns: 1fr 1fr; }
        .sc_data_grid.col3  { grid-template-columns: 1fr 1fr 1fr; }
        .sc_data_grid.col2w { grid-template-columns: 1fr 1fr; }

        .sc_data_item {
            background: var(--gray-100); border-radius: 8px;
            padding: 10px 12px; display: flex; flex-direction: column; gap: 4px;
        }
        .sc_item_label {
            font-size: 11px; color: var(--gray-500); font-weight: 400;
            display: flex; align-items: center; gap: 4px;
        }
        .sc_item_label .dot {
            width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
        }
        .sc_item_value {
            font-size: 20px; font-weight: 700;
            color: var(--gray-900); line-height: 1; letter-spacing: -.02em;
        }
        .sc_item_value .unit {
            font-size: 11px; font-weight: 400; color: var(--gray-500); margin-left: 2px;
        }
        .hl_temp .sc_item_value { color: var(--temp-color); }
        .hl_humi .sc_item_value { color: var(--humi-color); }
        .hl_soil .sc_item_value { color: var(--soil-color); }
        .hl_ec   .sc_item_value { color: var(--ec-color);   }
        .hl_co2  .sc_item_value { color: var(--co2-color);  }

        /* 토양수분 프로그레스바 */
        .sc_progress_wrap { padding: 0 12px 14px; }
        .sc_progress_label {
            display: flex; justify-content: space-between;
            font-size: 11px; color: var(--gray-500); margin-bottom: 5px;
        }
        .sc_progress_bg {
            height: 6px; background: var(--gray-100);
            border-radius: 99px; overflow: hidden;
        }
        .sc_progress_fill {
            height: 100%; border-radius: 99px; transition: width .6s ease;
        }