@charset "utf-8";
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/variable/pretendardvariable-dynamic-subset.css");

/* font-family: "Pretendard Variable", Pretendard; */

body {
    width: 100%;
    height: 100%;
    font-family: "Pretendard Variable", Pretendard !important;
    box-sizing: border-box;
}

#wrap {
    width: 100%;
    height: 100%;
}

.container {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-areas:
        "main img"
    ;
    grid-template-columns: repeat(2, 1fr);
}


.container_qr {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-areas:
        "main wating"
    ;
    grid-template-columns: repeat(2, 1fr);
}



.main {
    width: 100%;
    grid-area: main;
    text-align: center;
    padding: 7% 0;
}

.main.qr {
    padding: 40px 0;
}

.main p.sub-title {
    font-size: 3rem;
    font-weight: 700;
    padding: 0 0 15px 0;
}

.main p.wating-num {
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 40%);
    border-radius: 15px;
    font-size: 4rem;
    font-weight: 700;
    color: #2359B1;
    width: 100%;
    max-width: 320px;
    line-height: 80px;
    box-shadow: 5px 5px 10px 0 rgba(73, 86, 112, 15%);
}


.main .jupsu {
    width: 100%;
    max-width: 670px;
    max-width: 320px;
    font-size: 4rem;
}


.main p.sub-info {
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 70%);
    padding: 30px 0 35px 0;
}

.main p.sub-info span {
    padding: 0 7px;
    font-weight: 700;
    color: #2359B1;
}

.main .main-btns {
    text-align: center;
}

.main .qr-box {
    display: inline-block;
    width: 416px;
    height: 312px;
    /* border: 1px solid rgba(0, 0, 0, 40%); */
    /* border-radius: 15px; */
    /* box-shadow: 5px 5px 10px 0 rgba(73, 86, 112, 15%); */
}

.main .qr-info {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    padding: 28px 0;
    line-height: 2rem;
}

.main .vrf-info {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    line-height: 2rem;
}

table.tbl-vrf {
    display: inline-block;
    width: 320px;
    height: auto;
    border-collapse: collapse;
    table-layout: fixed;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 40%);
    border-radius: 20px;
    margin: 15px 0 35px 0;
    box-shadow: 5px 5px 10px 0 rgba(73, 86, 112, 15%);
}

table.tbl-vrf tr {
    border-bottom: 1px solid rgba(0, 0, 0, 20%);
    margin: 5px;
    letter-spacing: 2px;
    font-size: 20px;
}

table.tbl-vrf tr:last-child {
    border-bottom: none;
}

table.tbl-vrf th,
table.tbl-vrf td {
    padding: 25px 0;
}

table.tbl-vrf th {
    width: 100px;
    font-weight: 600;
}


table.tbl-vrf td:first-child {
    padding: 0;
    width: 1px;
    color: rgba(0, 0, 0, 40%);
}


table.tbl-vrf td:nth-child(2) {
    width: 1px;
    padding: 0;
}

/* table.tbl-vrf td:nth-child(2) span {
    display: inline-block;
    width: 1px;
    height: 35px;
    background-color: rgba(0, 0, 0, 20%);
    vertical-align: middle;
} */

table.tbl-vrf.mngr {
    border-radius: 10px;
    margin: 0 0 10px 0;
    border: 1px solid rgba(0, 0, 0, 50%);
    box-shadow: 3px 3px 5px 0 rgba(73, 86, 112, 15%);
}

.main .keypad {
    display: inline-block;
    width: 320px;
}

.whole-num {
    border: 1px solid rgba(0, 0, 0, 50%);
    border-radius: 10px;
    padding: 6px 12px;
    margin-bottom: 2px;
    font-size: 23px;
    font-weight: 500;
    box-shadow: 3px 3px 5px 0 rgba(73, 86, 112, 15%);
}

.whole-num span {
    display: inline-block;
    width: 80px;
    height: 52px;
    vertical-align: middle;
}

label.personal {
    display: block;
    margin: 17px 0;
    font-size: 15px;
    font-weight: 500;
}

label.personal input {
    width: 17px;
    height: 17px;
    vertical-align: sub;
    margin-right: 7px;
}   

/* keypad */
.num {
    display: grid;
    grid-template-areas:
        "one two three delete1"
        "four five six delete2"
        "seven eight nine zero"
    ;
    grid-template-columns: auto;
}

.num p {
    padding: 5px;
    border: 1px solid rgba(0, 0, 0, 50%);
    border-radius: 10px;
    margin: 3px;
    font-size: 17px;
    font-weight: 500;
    padding: 10px 0;
    cursor: pointer;
    box-shadow: 3px 3px 5px 0 rgba(73, 86, 112, 15%);
    margin-left: 0;
    margin-bottom: 1px;
}

.num p:not(p.delete) {
    height: 53px;
    line-height: 31px;
}

.num p:hover,
.num p:focus,
.num p:active {
    background-color: #000;
    color: #fff;
}

.one {
    grid-area: one;
}

.two {
    grid-area: two;
}

.three {
    grid-area: three;
}

.four {
    grid-area: four;
}

.five {
    grid-area: five;
}

.six {
    grid-area: six;
}

.seven {
    grid-area: seven;
}

.eight {
    grid-area: eight;
}

.nine {
    grid-area: nine;
}


.delete1 {
    grid-area: delete1;
    margin-right: 0 !important;
}

.delete2 {
    grid-area: delete2;
    margin-right: 0 !important;
}

.zero {
    grid-area: zero;
    margin-right: 0 !important;
}

.delete {
    grid-area: delete;
    line-height: 90px;
    margin-right: 0 !important;
}

/* 상태표시 */

.status {
    padding: 23px 0;
    width: 107px;
    display: inline-block;
  font-size: 25px;
  font-weight:500;
  }
  
  .status.red {
    border-radius: 15px;
    background-color: rgba(205, 15, 15, 10%);
    color: #cd0f0f;
  }
  
  .status.yellow {
    border-radius: 15px;
  background-color: rgba(255, 247, 0, 0.733);
  color: #b8b100;
  }


.status.green {
  border-radius: 15px;
  background-color: rgba(34, 192, 82, 0.733);
  color: #00913c;
}

  .status.blue {
    border-radius: 15px;
    background-color: rgba(35, 89, 177, 10%);
    color: #2359b1;
  }

.status.gray {
  border-radius: 15px;
  background-color: rgba(64,64,64,10%);
  color: #404040;
}
/* btn style */
.btn {
    border: none;
    border-radius: 20px;
    font-size: 2rem;
    font-weight: 600;
    word-break: break-word;
    letter-spacing: 3px;
    vertical-align: middle;
    box-shadow: 5px 5px 10px 0 rgba(73, 86, 112, 20%);
    cursor: pointer;
}

.btn:hover,
.btn:focus,
.btn:active {
    box-shadow: none;
}

.btn-basic {
    width: 145px;
    height: 153px;
    margin-right: 20px;
    color: #fff;
}

.btn-basic:last-child,
.btn-low:last-child {
    margin: 0;
}

.btn-basic.grey span {
    display: block;
}

.btn-low {
    width: 145px;
    height: 100px;
    margin-right: 20px;
    color: #fff;
}

.blue {
    background-color: #2359B1;
}

.grey {
    background-color: #C3C9D1;
}

.d-blue {
    background-color: #1A4282;
}

.d-green {
    background-color: #00ab66;
}

.w-blue {
    background-color: #5F88C9;
}

.btn-long {
    width: 310px;
    height: 80px;
    color: #fff;
}

.img {
    grid-area: img;
    width: 100%;
    padding: 13px;
    overflow: hidden; /* Hide overflowing content */
    max-height: 100vh; /* Limit height to viewport height */
}

.img img {
    width: 100%;
    min-width: 358px;
    object-fit: contain;
    max-width: 100%; /* Ensure the image scales within the container */
    max-height: 100%; /* Prevent the image from exceeding the container height */
    object-fit: cover; /* Maintain aspect ratio while filling the container */
}


/* 모바일 가로모드 */
@media (orientation: landscape) {
    .container {
        justify-items: end;
    }

    .main {
        padding: 5% 0;
    }

    .img img {
        object-position: left;
        padding: 0 0 0 15px;
    }
}

@media all and (min-width: 1024px) and (max-width: 1020px) {
    .main {
        padding: 15% 0;
    }

    .main.vrf {
        padding: 25% 0;
    }

    .main.nb {
        padding: 20% 20px;
    }

    .main.qr {
        padding: 25% 20px;
    }

    .main p.sub-title {
        font-size: 4rem;
    }

    .main p.wating-num {
        max-width: 372px;
    }

    .main .jupsu {
        max-width: 372px;
    }
}


@media all and (min-width: 1440px) {
    .main,
    .main.vrf {
        padding: 3% 20px;
    }

    .main.nb {
        padding: 2% 20px;
    }

    .main.qr {
        padding: 9% 20px;
    }

    .main p.sub-title {
        font-size: 6rem;
        padding-bottom: 40px;
    }

    .main p.wating-num {
        width: 100%;
        max-width: 670px;
        line-height: 130px;
        font-size: 6.5rem;
    }

    .main .jupsu {
        width: 100%;
        max-width: 670px;
        line-height: 130px;
        font-size: 6.5rem;
    }

    .main p.sub-info {
        font-size: 4rem;
        padding: 45px 0;
    }

    .btn.big {
        width: 327px;
        height: 270px;
        font-size: 4rem;
    }


    table.tbl-vrf {
        width: 100%;
        max-width: 670px;
    }

    table.tbl-vrf th {
        width: 200px;
        line-height: 50px;
        font-size: 2rem;
    }

    table.tbl-vrf td:nth-child(2) span {
        height: 30px;
        margin-top: -10px;
    }

    table.tbl-vrf td:last-child {
        line-height: 48px;
        font-size: 2rem;
    }

    .main .keypad {
        width: 100%;
        max-width: 670px;
    }

    .whole-num {
        padding: 20px 12px;
        font-size: 30px;
        margin-bottom: 10px;
    }

    .num p:not(p.delete) {
        height: 85px;
        font-size: 30px;
        line-height: 60px;
        margin: 13px;
        margin-left: 0;
        margin-bottom: 10px;
        margin-top: 0;
    }

    .delete {
        font-size: 30px !important;
        line-height: 180px;
        margin-top: 0px !important;
        padding: 0 !important;
        margin-bottom: 10px !important;
    }

    label.personal {
        font-size: 25px;
        margin: 20px 0;
    }

    .main .qr-box {
        width: 500px;
        height: 490px;
    }

    .main .qr-info {
        font-size: 3.5rem;
        line-height: 4rem;
    }

    .btn.big {
        width: 327px;
        height: 340px;
        font-size: 4rem;
    }

    .btn-long {
        width: 600px;
        height: 120px;
        font-size: 4rem;
    }

    .main .vrf-info {
        font-size: 4rem;
        line-height: 5rem;
    }
}

/* FHD 이상의 사이즈 */
@media all and (min-width: 1920px) {
    .main,
    .main.nb,
    .main.vrf {
        padding: 15% 20px !important;
    }

    .main.qr {
        padding: 18% 20px;
    }

    .main p.sub-title {
        font-size: 6rem;
        padding-bottom: 40px;
    }

    .main p.sub-info {
        font-size: 4rem;
        padding: 45px 0;
    }    

    .main.vrf table.tbl-vrf {
        margin: 35px 0 60px 0;
    }

    .main .qr-info {
        padding: 50px 0;
    }

}




.cpn-wating {
    grid-area: wating;
    width: 100%;
    padding: 30px;
    overflow: hidden; /* Hide overflowing content */
    max-height: 100vh; /* Limit height to viewport height */

    overflow: hidden;
    /* border: 1px solid rgba(0, 0, 0, 30%);
    border-radius: 30px;
    box-shadow: 5px 5px 10px 0 rgba(73, 86, 112, 15%); */
  }

  
  
  table.cpn-list {
    height: auto;
    border-collapse: collapse;
  }
  
  table.cpn-list tr {
    border-bottom: 1px solid rgba(0, 0, 0, 10%);
  }
  
  table.cpn-list tbody tr:last-child {
    border-bottom: none;
  }
  
  table.cpn-list thead th {
    padding: 35px 0;
    background-color: rgba(0, 0, 0, 5%);
    font-size: 35px;
    font-weight: 700;
    color: #292931;
  }
  
  .cpn-wating table.cpn-list thead th {
    padding: 9px 0;
  }
  
  .cpn-wating table.cpn-list thead th span {
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 10%);
    border-radius: 10px;
    padding: 26px;
    background-color: #fff;
    color: #243153;
    font-size: 40px;
  }
  
  table.cpn-list thead th span {
    color: #1a5b44;
    font-weight: 700;
    margin: 0 10px;
  }
  
  .cpn-worst table.cpn-list thead th span {
    color: #d95357;
  }
  
  table.cpn-list tbody tr {
    font-size: 25px;
    font-weight: 400;
  }
  
  table.cpn-list tbody tr:first-child {
    font-size: 25px;
    font-weight: 600;
  }
  
  .cpn-best table.cpn-list tbody tr:first-child {
    background-color: rgba(207, 228, 228, 40%);
  }
  
  .cpn-worst table.cpn-list tbody tr:first-child {
    background-color: rgba(234, 211, 212, 40%);
  }
  
  .cpn-wating table.cpn-list tbody tr:first-child {
    background-color: rgba(205, 214, 236, 40%);
  }
  
  table.cpn-list td {
    text-align: center;
    padding: 28px 0;
  }
  
  .cpn-wating table.cpn-list tbody tr:first-child td {
    padding: 28px 0;
  }
  
  .cpn-wating table.cpn-list tbody td {
    padding: 28px 0;
  }