/* css */
@import url('/css/reset.css');
@import url('/css/sub/common.css');

.nonpay-data-article {

    & .inner {
        margin: var(--content-vertical-gap-sm) auto;
        padding: 0 var(--simple-input-box-gap);
    }
}

.scroll-box .mb {display: none;}

.nonpay-tab {margin: 0 auto clamp(20px, 3.9vw, 50px);}
.tab {
    display: flex;
    border-radius: 7px;
    width: 100%;
    border: 1px solid #e3e3e3;
    font-size: 18px;
    overflow: hidden;
}
.tab > li {
    width: 100%;
    border-right: 1px solid #ddd;
    font-size: clamp(14px, 1.8vw, 18px);
    font-weight: 500;
    color: #2a2a2a;
    word-break: keep-all;
    text-align: center;
}
@media screen and (max-width: 490px) {
    /* .tab > li {font-size: clamp(13px, 2.85vw, 14px);} */
}

.tab > li.active {
    /* background: #28a839; */
    background-color: var(--color-main-03);
    color: #fff;
}
.tab > li:last-child {border-right: 0;}
.tab > li a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(18px, 1.71vw, 22px) 8px;
}
@media screen and (max-width: 490px) {
    .tab > li a {padding: clamp(12px, 3.67vw, 18px) 8px;}
}

#fsearch {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}
.nonpay-search {
    display: flex;
    align-items: center;
    height: clamp(35px, 3.515vw, 45px);
}
.select-wrap {
    height: 100%;
    margin-right: clamp(5px, 0.78vw, 10px);
}
.select-wrap select {
    width: clamp(80px, 9.35vw, 120px);
    height: 100%;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 7px;
    background: url(/inc/img/common/icon_dropdown_arrow_gray.webp) no-repeat 85% 50% / 10%;
    font-size: clamp(14px, 2.5vw, 16px);
    color: #2a2a2a;
    appearance: none;
}
.nonpay-search input[type="text"] {
    width: clamp(180px, 16.4vw, 210px);
    height: 100%;
    padding-left: clamp(10px, 2.34vw, 15px);
    border: 1px solid #ddd;
    border-radius: 7px 0 0 7px;
    font-size: clamp(14px, 2.5vw, 16px);
}
@media screen and (max-width: 400px) {
    .nonpay-search input[type="text"] {width: 100%;}
}
.nonpay-search input[type="text"]::placeholder {font-size: clamp(14px, 2.5vw, 16px);}
.nonpay-search button {
    flex-shrink: 0;
    width: clamp(45px, 4.687vw, 60px);
    height: 100%;
    border-radius: 0 7px 7px 0;
    background: url('/img/common/icon-search-w.webp') var(--color-main-03);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 35%;
}
.nonpay_p {
    font-size: clamp(14px, 1.25vw, 16px);
    font-weight: 350;
    color: #888;
    line-height: 1.2;
    text-align: right;
    word-break: keep-all;
}
.pc-btn {display: none;}

.nonpay-table-box {margin-top: clamp(20px, 3.1vw, 40px);}
.nonpay-table {
    width: 100%;
    border-top: 2px solid #2a2a2a;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word;
}
:root {
    --nonpay-table-thead-padding: clamp(6px, 1.56vw, 20px) 4px;
    --nonpay-table-tbody-padding: clamp(3px, 0.78vw, 10px) 4px;
}
.nonpay-table thead th {
    padding: var(--nonpay-table-thead-padding);
    background-color: #f4f4f4;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-style: solid;
    border-color: #ddd;
    vertical-align: middle;
    font-size: clamp(14px, 1.25vw, 16px);
    font-weight: 600;
    word-break: keep-all;
}
.nonpay-table thead tr:first-child th:last-child {border-right-width: 0;}
.nonpay-table tbody {font-size: 14px;}
.nonpay-table tbody :where(th, td) {
    padding: var(--nonpay-table-tbody-padding);
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-style: solid;
    border-color: #ddd;
    word-break: keep-all;
    text-align: center;
    vertical-align: middle;
    line-height: 1.2;
}
@media (min-resolution: 2dppx), (min-device-pixel-ratio: 2) {
    :root {
        --nonpay-table-border-width-mobile: 0.7px;
    }
    .nonpay-table thead th {
        border-right-width: var(--nonpay-table-border-width-mobile);
        border-bottom-width: var(--nonpay-table-border-width-mobile);
    }
    .nonpay-table tbody :where(th, td) {
        border-right-width: var(--nonpay-table-border-width-mobile);
        border-bottom-width: var(--nonpay-table-border-width-mobile);
    }
}

.nonpay-table tbody td:last-child {border-right-width: 0;}
@media screen and (max-width: 1280px) {
    .inner-content {
        width: 100%;
    }
    .nonpay-table tbody {font-size: clamp(12px, 1.09vw, 14px);}
}
@media screen and (max-width: 940px) {
    .nonpay-table thead th {font-size: clamp(12px, 1.09vw, 14px);}
}
@media screen and (max-width: 670px) {
    .scroll-box {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 20px;
    }
    .scroll-box.move {
        position: fixed;
        top: calc(var(--header-height) + var(--lnb-height));
        left: 50%;
        width: calc(100vw - calc(100vw - 100%));
        margin-top: -1px;
        padding: 10px 15px;
        background-color: #fff;
        box-shadow: 0 5px 5px rgba(100, 100, 100, 0.1);
        transform: translateX(-50%);
    }
    .scroll-box .mb {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 14px;
        word-break: keep-all;
        line-height: 1.2;
    }
    .scroll-box .mb span {
        font-size: 18px;
        font-weight: 700;
        color: var(--color-main-03);
    }
    .pc-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
    }
    .pc-btn button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 24px;
        border: 1px solid #ddd;
        border-radius: 3px;
        background-color: rgba(255, 255, 255, 0.5);
        font-size: 16px;
        font-weight: 800;
        /* color: #28a839; */
        color: var(--color-main-03);
    }
    .pc-btn button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    .nonpay-table-box {
        width: 100%;
        margin-top: 10px;
        overflow-x: scroll;
    }
    .nonpay-table-box.move {margin-top: calc(var(--header-height) + var(--lnb-height));}
}
@media screen and (max-width: 500px) {
    html, body {touch-action: manipulation;}
    .nonpay-table thead th {word-break: keep-all;}
}


/* 페이지네이션 */
.list_area .pg_wrap .pg {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: var(--mobile-content-vertical-gap-sm);
    font-size: clamp(14px, 2.5vw, 16px);
}
.list_area .pg_wrap .pg .pg_current {
    border-radius: 4px;
    background-color: var(--color-main-03);
    color: #fff;
}
.list_area .pg_wrap .pg :where(a, strong) {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: clamp(23.5px, 2.109vw, 27px);
    aspect-ratio: 1 / 1;
}
.list_area .pg_wrap .pg span {display: none;}
.list_area .pg_wrap .pg .pg_start {background-image: url('/img/common/icon-double-chevron-left-gray.webp');}
.list_area .pg_wrap .pg .pg_end {background-image: url('/img/common/icon-double-chevron-right-gray.webp');}

.list_area .pg_wrap .pg :where(.pg_start, .pg_prev, .pg_next, .pg_end) {
    border: 1px solid #ddd;
    border-radius: 4px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 80%;
    text-indent: -99999px;
}