/* 모바일 */
body,
html {
    font-size: 62.5%;
}
.pc-only {
    display: none !important;
}

.mb-only {
    display: block;
}

.mb-full {
    width: 100%;
}

.btn--top {
    width: 4.5rem;
    height: 4.5rem;
}

.form-group {
    min-width: unset;
}

.form-group.large {
    width: 100%;
}

.search__btn-detail span {
    display: none;
}

::-webkit-scrollbar {
    width: 5px;
}

/*  여백 */
.mr-top-l {
    margin-top: 5rem;
}

.mr-top-m {
    margin-top: 3rem;
}

.mr-top-s {
    margin-top: 2rem;
}

.mr-top-xs {
    margin-top: 0.8rem;
}

/***** TEXT *****/
.cont-title {
    padding: 4rem 0 2rem;
    font-size: 2rem;
}

.cont-title:has(button),
.cont-title:has(.title-side) {
    flex-direction: column;
    align-items: baseline;
    row-gap: 10px;
}

.main-title {
    font-size: 2.5rem;
}

.sub-title {
    padding: 20px 0 10px;
    font-size: 1.8rem;
}

.dscr-text--l {
    font-size: 2rem;
}

.dscr-text--m {
    font-size: 1.8rem;
}

/***** LIST *****/
.bullet-list {
    padding-left: 17px;
}

.bullet-list > li + li,
.text-list > li + li {
    margin-top: 0.6rem;
}

/***** TAB *****/
.tab-btn-list {
    margin: 0 0 2rem;
}
.tab-btn-list:not(.horizontal) {
    flex-wrap: wrap;
    margin: 0 0 2rem;
    border: 1px solid #dbdbdb;
    border-bottom: 0;
}

.tab-btn-list:not(.horizontal) .tab-btn {
    min-width: 50%;
    border-bottom: 1px solid #dbdbdb;
}

.tab-btn-list:not(.horizontal) .tab-btn:nth-child(even) {
    border-left: 1px solid #dbdbdb;
}
.tab-btn-list:not(.horizontal) .tab-btn.on a {
    border: 0;
}
.tab-btn-list .tab-btn a {
    padding: 1.2rem 0.5rem;
    font-size: 1.6rem;
    border: none;
}
.tab-btn-list.horizontal {
    flex-wrap: nowrap;
}
.tab-btn-list.horizontal .tab-btn {
    min-width: auto;
}

/***** TABLE *****/
.table {
    border-top: 1px solid var(--color-gray);
}

.table.center {
    text-align: left;
}

.table th {
    padding: 1.5rem 1.5rem;
}

.table td {
    padding: 1.5rem 1.5rem;
}

.table th[scope='row'] {
    border-right: 0;
}

.table th[scope='row'] + td + th {
    border-left: 0;
}

.mb-only-title {
    display: inline-block;
    min-width: 5rem;
}

.pc-mb-title {
    font-weight: 500;
    color: var(--color-dark);
}

/* 수직정렬 테이블 */
.mb-row-table thead {
    display: none;
}

.mb-row-table th,
.mb-row-table td {
    display: block;
}

.mb-row-table tbody th {
    border-color: var(--color-black);
}

.mb-row-table td[data-title]::before {
    content: attr(data-title);
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

/* 수평정렬 테이블 */
.mb-column-table thead {
    display: none;
}

.mb-column-table tr {
    display: block;
}

.mb-column-table td,
.mb-column-table th {
    display: flex;
}

.mb-column-table td[data-title]::before {
    content: attr(data-title);
    width: 10rem;
    flex-shrink: 0;
    font-weight: 500;
}

.mb-column-table .tb-text-center {
    justify-content: center;
}

.mb-column-table .tb-text-right {
    justify-content: flex-end;
}

.mb-column-table colgroup,
.mb-row-table colgroup {
    display: none;
}

.mb-column-table col {
    width: auto !important;
}

.mb-column-table .tb-full,
.mb-row-table th,
.mb-row-table td {
    flex: 0 1 100%;
    border-right: 0;
}

.mb-column-table tbody th {
    border-color: var(--color-black);
}

.mb-row-table td + td,
.mb-column-table td + td,
.mb-row-table td + th,
.depth-type__one td {
    padding: 0 1.5rem 1.5rem;
}

.mb-row-table td:last-child,
.mb-column-table td:last-child {
    padding-bottom: 1.6rem;
}

.mb-row-table td:not(:last-child),
.mb-column-table td:not(:last-child) {
    border-bottom: 0;
}
.mb-column-table td:not(:last-child).tb-title {
    padding-top: 1.5rem;
    padding-bottom: 0;
}

.mb-column-table .tb-none {
    display: none;
}

.mb-column-table .tb-column,
.column-td td {
    flex-direction: column;
}

.mb-column-table .tb-column .mb-only-title,
.column-td .mb-only-title {
    margin: 0 0 10px;
}

/* .popup__body .table th, 
.popup__body .table td {
    padding: 1rem 1rem;
} */

/* .table thead th,
.table tbody th,
.sticky-table thead .pin {
    background: #f8f9fa;
    color: var(--color-dark);
} */

.table-empty-item {
    padding: 0 !important;
}

.depth-type__one th {
    border-bottom: 0 !important;
}

.scroll-table {
    /* max-height: 70vh; */
}

.scroll-table .table {
    width: 900px;
}

.scroll-table::before,
.scroll-img::before {
    display: flex;
}
.scroll-table .table td {
    white-space: nowrap;
}
.scroll-img > div {
    overflow-x: auto;
}
.scroll-img img {
    max-width: unset;
    width: 700px;
}

.popup__body .scroll-table .table {
    width: auto;
}
.popup__foot .pagination {
    margin: 0;
}   

.responsive-table .table {
    border-top: 1px solid var(--color-black);
}
.responsive-table .table.center {
    text-align: left;
}
.responsive-table thead {
    display: none;
}

.responsive-table .table td.tb-category {
    color: var(--color-darkblue);
    padding: 2px 9px;
    margin: 15px 0 0 15px;
    background: #f3f4f5;
    border-radius: 5px;
    font-size: 1.5rem;
}

.responsive-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(to bottom, #fff, #fff 99%, #dbdbdb 1%);
}

.responsive-table .m-full {
    width: 100%;
    flex-grow: 1;
    border: 0;
}

.responsive-table .table td {
    border: 0;
}

.responsive-table td:not(.m-show) {
    display: none;
}

.responsive-table .m-small {
    padding: 0.5rem 1.4rem 1rem;
}

.responsive-table td[data-title]::before {
    content: attr(data-title);
    padding-right: 5px;
    font-weight: 500;
}

.table tbody td .file {
    margin-top: 5px;
}

.fix-table-item .table-title::before {
    content: "";
    width: 1.8rem;
    height: 1.8rem;
    display: inline-block; 
    margin-right: 5px;
    background: url("../images/icon/icon-tack.svg") no-repeat center / 100%;   
}


/* PAGENATION */
.pagination .page-item a,
.pagination .page-btn {
    width: 30px;
    height: 30px;
}

.pagination,
.pagination .page-list {
    gap: 5px;
}

/* POPUP */
.popup__box {
    padding: 1.2rem;
} 
.popup__head {
    display: block;
    padding: 0.5rem 2rem 1rem 0;
}
.popup__head .side-text {
    margin-top: 10px;
    text-align: right;
}

.popup__close {
    /* top: 50%; */
    transform: translateY(-50%);
}

.popup .table {
    font-size: 1.5rem;
}

.popup .table th,
.popup .table td {
    padding: 1rem;
}

/***** Accordion *****/
.accordion .item .answer_item::before {
    top: 1rem;
    left: 1rem;
}
.accordion .item .answer_item {
    padding: 1rem 1rem 1rem 4.5rem;
}

.accordion .item .board__file {
    padding: 1rem;
}


.accordion .item .answer_item::before,
.accordion .item .board__file::before {
    width: 2.5rem;
    height: 2.5rem
}

.empty--area {
    font-size: 1.6rem;
}

.empty--area::before {
    width: 11rem;
    height: 7rem;
}

@media all and (max-width: 640px) {
    /* ***** input **** */
    .normal-input {
        width: auto;
    }
    
    .input-group {
        flex-wrap: wrap;
    }

    .input-group.tel {
        gap: 5px 0;
    }

    .input-group .btn {
        width: 100%;
    }

    .adress .input-group {
        flex-wrap: nowrap;
    }

    .adress .input-group .btn {
        width: auto;
    }

    .input-wrap.adress input.adress2 {
        max-width: 100%;
        margin-top: 5px;
    }

    .input-group.tel input {
        width: 29%;
    }

    .input-group.tel .select {
        width: 29%;
    }

    .input-group.email input:nth-of-type(1) {
        width: 90%;
    }
    .input-group.email input:nth-of-type(2) {
        width: 100%;
    }

    .input-group.email .select {
        width: 100%;
    }

    .input-group.select-group select {
        width: 100%;
    }
    .table td textarea {
        margin-top: 15px;
    }
}
