@media (max-width: 675px) {
    .table-frame {
        width: 100% !important;
        max-width: 768px !important;
        min-width: 300px !important;    
    }

    .searchbox {
        margin: 5px 0 !important;
    }

    .dropdown {
        margin: 5px 0 !important;
    }

    input {
        width: 100% !important;
        min-width: 100px !important;
    }

    .tableitem-cellhead{
        display: none !important;
    }

    /* .table-row {
        display: grid !important;
        grid-template-rows: auto;
        grid-template-columns: repeat(12, 1fr);
        gap: 2px;
        justify-content: flex-start;
    } */

    /* .table-row > .row-textbox:nth-child(2) {
        padding-left: 40px !important;
    } */

    /* .row-titlebox {
        grid-column: 1 / -1;
    } */

    .row-textbox {
        display: none !important;
        /* justify-content: left !important; */
    }

    .tableitem-cellhead:first-child {
        display: block !important;
    }

    #filter-frame {
        flex-flow: column !important;
    }

}

/* 피그마 기준 */
@media screen and (min-width:675px) and (max-width: 768px) {
    .table-frame {
        width: 100% !important;
        max-width: 768px !important;
        min-width: 300px !important;    
    }

    .searchbox {
        margin-left: 12px !important;
        min-width: 120px !important;
    }

    .dropdown {
        min-width: 120px !important;
    }

    input {
        width: 100% !important;
        min-width: 100px !important;
    }
  
}

.table-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.table-frame {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1120px;
    margin: 0 20px;
    align-items: flex-start;
    position: relative;
}

/* .table-frame .div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    position: relative;
} */

.table-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 8px;
}

.table-title-word {
    color: #242424;
    text-align: center;
    font-family: Pretendard;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%; /* 41.6px */
}

.table-subtitle-word {
    color: #242424;
    text-align: center;
    font-family: Pretendard;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 41.6px */
}

#filter-frame {
    width: 100%;
    max-width: 1120px;
    display: flex;
    margin: 24px 0;
}

#divisionDropdown {
    margin-right: 12px;
}

.totalProblems {
    color: #242424;
    text-align: center;
    font-family: Pretendard;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%; /* 18.2px */
    padding: 7px 8px
}

/* 칩 그룹 */
/* .table-frame .chip-group {
    display: flex;
    gap: 8px;
    margin-top: 12px;
} */

/* .table-frame .dropdown,
.table-frame .search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    font-size: 14px;
    color: #242424;
    cursor: pointer;
}

.table-frame .search {
    width: 226px;
}

.table-frame .dropdown:hover,
.table-frame .search:hover {
    border-color: #cccccc;
} */

/* 테이블 그룹 */
.table-frame .table-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 테이블 헤더 */
.table-frame .tableitem-cellgroup {
    display: flex;
    background-color: #F8F8FA;;
    overflow: hidden;
}

.tableitem-cellhead {
    min-width: 54px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #242424;
    flex: 1;
    text-align: center;
    border: 1px solid #fff;
}

.tableitem-cellhead:first-child {
    flex-basis: 50%;
    text-align: left;
    padding-left: 40px;
}

.table-frame .tableitem-cellhead:last-child {
    border-right: none;
}

/* 테이블 데이터 */
.table-row {
    display: flex;
    padding: 12px 0px;
    justify-content: space-between;
    align-self: stretch;
    border-right: 1px solid #EEE;
    border-bottom: 1px solid #EEE;
    border-left: 1px solid #EEE;
    background: #FFF;
}

.table-row > div {
    flex: 1; 
}

.table-row > div:first-child {
    flex-basis: 48%; 
}

.table-frame .div-5 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    transition: background-color 0.3s;
    gap: 16px;
}

.table-frame .div-5:hover {
    background-color: #f5f5f5;
}

.table-frame .row-title {
    text-align: left;
    color: #242424;
    font-weight: 700;
    line-height: 130%; /* 20.8px */
}

.table-frame .row-title:hover {
    font-weight: 900;
}

.table-frame .text-wrapper-7, .table-frame .row-sub-title {
    color: #3E3E3E;
    font-size: 12px;
    line-height: 150%; /* 18px */
}

/* 공통 부모 요소에 패딩 추가 (선택적 방법) */
.table-frame .row-titlebox {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start; 
    padding: 12px 12px 12px 40px;
    min-width: 54px;
    overflow-x: auto;
}

/* 난이도, 정답률, 출처 */
.table-frame .table-item {
    display: flex;
    /* gap: 13px; */
}

.table-frame .row-textbox {
    min-width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.table-frame .row-textbox .so-easy {
    color: #3d3d3d;
}

.table-frame .row-textbox .easy {
    color: #e76f00;
}

.table-frame .row-textbox .soso {
    color: #0082fb;
}

.table-frame .row-textbox .hard {
    color: #0da300;
}

.table-frame .row-textbox .so-hard {
    color: #e0234e;
}

/* 페이지네이션 */
.table-frame .pagenation {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.table-frame .text-wrapper-16 {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #6c6c6c;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.table-frame .text-wrapper-16:hover {
    background-color: #242424;
    color: #ffffff;
    border-radius: 4px;
}
