/* CSS Reset */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&display=swap');

body {
  font-family: 'Noto Sans KR', Arial, sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  line-height: 1.5;
  font-family: Arial, sans-serif;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

a {
  text-decoration: none;
  color: #383841;
}

ul, ol {
  list-style: none;
} 
h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}
h5 {
  font-size: 1rem;
}
h6 {
  font-size: 0.875rem;
}
p {
  margin: 0;
}

/* color */
.col-blue{ color: #4255e2; }
.col-skyblue{ color: #4eb9f0; }
.col-white{ color: #fff; }
.col-black{ color: #000; }
.col-gray{ color: #999; }
.col-lightgray{ color: #f2f2f2; }
.col-darkgray{ color: #65656c; }
.col-red{ color: #ff5f5f; }

/* btn */
.btn-primary{
  background: #4255e2;
  color: #fff;
  border: 1px solid #4255e2;
}

.btn-blue{
  background: #4255e2;
  color: #fff;
  border: 1px solid #4255e2;
}
.btn-blue:hover,
.btn-blue:focus,
.btn-blue:active,
.btn-blue.active,
.show > .btn-blue.dropdown-toggle {
  background-color: #2f3fc9 !important; /* 클릭/호버 시 더 진한 색 */
  border-color: #2f3fc9 !important;
  color: #fff !important;
  box-shadow: 0 0 0 0.25rem rgba(66, 85, 226, 0.5);
}

.btn-purple{
  background: #a152e5;
  color: #fff;
  border: 1px solid #a152e5;
}
.btn-purple:hover,
.btn-purple:focus,
.btn-purple:active,
.btn-purple.active,
.show > .btn-purple.dropdown-toggle {
  background-color: #8b3fd4 !important; /* 클릭/호버 시 더 진한 색 */
  border-color: #8b3fd4 !important;
  color: #fff !important;
  box-shadow: 0 0 0 0.25rem rgba(161, 82, 229, 0.5);
}

.btn-mint{
  background: #26d0b6;
  color: #fff;
  border: 1px solid #26d0b6;
}
.btn-mint:hover,
.btn-mint:focus,
.btn-mint:active,
.btn-mint.active,
.show > .btn-mint.dropdown-toggle {
  background-color: #1fb59f !important; /* 클릭/호버 시 더 진한 색 */
  border-color: #1fb59f !important;
  color: #fff !important;
  box-shadow: 0 0 0 0.25rem rgba(38, 208, 182, 0.5);
}

.btn-red{
  background: #ff5f5f;
  color: #fff;
  border: 1px solid #ff5f5f;
}
.btn-red:hover,
.btn-red:focus,
.btn-red:active,
.btn-red.active,
.show > .btn-red.dropdown-toggle {
  background-color: #e94f4f !important; /* 클릭/호버 시 더 진한 색 */
  border-color: #e94f4f !important;
  color: #fff !important;
  box-shadow: 0 0 0 0.25rem rgba(255, 95, 95, 0.5);
}

/* bg */
.bg-lightblue{
  background: #eceff7;
}
.bg-skyblue{
  background: #4eb9f0;
}
.bg-red{
  background: #ff5f5f;
}
.bg-gray{
  background: #989ea1;
}



.form-control, .btn{  
  padding:.575rem .75rem !important;  
}

/* Global Styles */

/* layout */
header{
  box-shadow: 0 0 15px rgba(0,0,0,.2);
  background-color: #fff;
}
header #current-date{
  font-size: 1.2em;
  font-weight: 500;
}
header .user-btn{
  border: none;
}
header .user-btn.show{
  background:none !important;
  border: none !important;
}

.container ul{
  padding: 0;
}


.footer{
  width: 100%;
  height: 50px;  
  text-align: center;
  line-height: 50px;  
}

.footer-logo{
  width: 120px;
  min-height: 60px;
  text-align: center;
  margin: 1.5em auto;
}
.footer-logo img{
  width: 100%;
}


/* login */
.login-wrap{
  width: 100%;
  padding: 1em;
  position: relative;
}
.login-visual{  
  width: 100%;
  height: 300px;  
  background: url('../assets/img/login_visual.jpg') center bottom no-repeat;
  background-size: contain;
}

.login-wrap h1{
  font-weight: 600;  
}

.login-wrap .form-control{
  background: #f2f2f2;
}


.list-type-1{
  margin: 0;
  padding: 0;
  list-style: none;
}
.list-type-1 li{
  padding: 1em;
  border-bottom: 1px solid #eaeaea;
}
.list-type-1 li:last-child{
  border-bottom: none;
}

.radius1em{
  border-radius: 1em;
}

.room-status{
  width: 48%;
  height: 130px;
  border-radius: 1em;
  padding: 1em;
  text-align: center;
}
.room-status *{
  color: #fff;
}
.room-use{
  background: url('../assets/img/ico-room-use.png') -21px 35px no-repeat #ff5f5f;
  background-size: 100px 100px;
}

.room-waiting{
  background: url('../assets/img/ico-room-waiting.png') -21px 35px no-repeat #4eb9f0;  
  background-size: 100px 100px;
}

.room-item{
  cursor: pointer;
}

.room-item ul li p{
  position: relative;  
}
.room-item ul li p:first-child{
  font-size: 0.75em;
  width: 56px !important;
}
.room-item ul li p:first-child::before{
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.7em;
  position: absolute;
  right: 0;
  top: 25%;
  border-right: 1px solid #aaa;
}

.room-item .off{
  opacity: .5;;
}

/* 2026-07-06 / 목적: 모바일 룸제어 카드에 IoT 장비 On/Off 상태 배지 표시 */
.mobile-room-ctl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.5rem;
}
.mobile-room-ctl .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 22px;
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
}
.mobile-room-ctl .tag-green {
  background-color: #40cb5a;
}
.mobile-room-ctl .tag-gray {
  background-color: #8e8e8e;
}
/* 2026-08-31 / 목적: 센서 Agent heartbeat 지연 상태를 모바일 POS에서도 동일하게 표시 */
.mobile-room-ctl .tag-yellow {
  background-color: #fcd703;
  color: #34343a;
}

/* 2026-09-08 / 목적: 센서 설정과 무관한 PC 응답 상태를 모바일 룸 제어창에도 표시한다. */
.roomControl-body .pc-presence-label {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: #fff;
}
.roomControl-body .pc-presence-label.tag-green { background-color: #40cb5a; }
.roomControl-body .pc-presence-label.tag-gray { background-color: #8e8e8e; }
.roomControl-body .pc-presence-label.tag-yellow { background-color: #ffd54f; color: #34343a; }

.room-change button{
  letter-spacing: -0.065em;
}
.room-change .now{
  background: #4eb9f0;
  color: #fff;
}
.room-change button:active, .room-change button:hover, .room-change button:focus,
.show > .btn-blue.dropdown-toggle{
  background: #ff5f5f !important;
  color: #fff;
  transition-duration: .2s, .2s;
}

.sales-nav li{
  width: 50%;
}
.sales-nav li button{
  width: 100%;
}
.nav-pills .nav-link.active, .nav-pills .show>.nav-link{
  background-color: #4255e2 !important;
}
.nav-link{
  color: #4255e2;
}

.sales-content .tab-content{
  height: 63vh;
  overflow-y: auto;
}

.sales-content .tab-content table thead{
  position: sticky; top: 0;
  border-radius: 1em 1em 0 0;
  border-collapse: separate;
  border-spacing: 0;
}
.sales-content .tab-content table{
  border-radius: 1em 1em 0 0;
  border-collapse: separate;
  border-spacing: 0;
}

/*on/off 버튼*/
/*  on/off토글  */
label {
  display: block;
  position: relative;
  width: 80px;
  height: 36px;
  background: #a7a7a7;
  border-radius: 60px;
  transition: background 0.4s;
}
label::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  width: 30px;
  height: 30px;
  border-radius: 100%;
  background-color: #fff;
  transform: translateY(-50%);
  box-shadow: 1px 3px 4px rgba(0,0,0,0.1);
  transition: all 0.3s;
}
label::before {
  content: "OFF";
  font-size: 1em;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  position: absolute;
  left: 37px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s;
}
 /* 스위치(체크박스)가 토글(체크)되었을 때 */
 .switch{
  width:0;
  height:0;
  display: none;
 }
.switch:checked + label {
  background: #4eb9f0;
}
.switch:checked + label::after {
  left: calc(100% - 33px);
 }
.switch:checked + label::before {
  content: "ON";
  color: #fff;
  left: 15px;
}
[type="checkbox"] {
  appearance: none;
}




/* Media Queries */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {  
  .container {
    padding: 0.5em;
  }
  .footer {
    height: 40px;
    line-height: 40px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  
  .container {
    padding: 1em;
  }
  .footer {
    height: 45px;
    line-height: 45px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {  
  .container {
    padding: 1.5em;
  }
  .footer {
    height: 50px;
    line-height: 50px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {  
  .container {
    padding: 2em;
  }
  .footer {
    height: 55px;
    line-height: 55px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {  
  .container {
    padding: 2.5em;
  }
  .footer {
    height: 60px;
    line-height: 60px;
  }
}
