/* 引入字體 */
@import url('https://fonts.cdnfonts.com/css/avenir');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css);

/* 顶部栏样式 */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 10px 20px; */
    padding: .75rem 1.5rem;
    background-color: #ffffff; /* 背景颜色 */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
    border-bottom: 1px solid #ddd; /* 下边框 */
}

.topbar-left {
    display: flex;
    align-items: center;
    font-family: Noto Sans TC;
    font-size: 26px;
    font-weight: 600;
    line-height: 42.9px;
    letter-spacing: 0.04em;
}

.topbar-left h2 {
    margin: 0;
    font-size: 24px;
    color: #333; /* 字体颜色 */
}

.label-icon {
    margin-left: 10px; /* 调整间距，确保图标靠近标题 */
    width: 24px;
    height: 24px;
}

.topbar-right {
    display: flex;
    align-items: center;
}

.language-switcher {
    background: none;
    border: none;
    font-size: 16px;
    color: #333;
    margin-right: 15px;
    cursor: pointer;
}

.icon-notification {
    font-size: 20px;
    margin-right: 15px;
    cursor: pointer;
}

.user-id {
    font-size: 16px;
    color: #333;
}


/* 分隔线样式 */
.form-divider {
    border: none;
    border-top: 1px solid #ccc; /* 灰色线条 */
    margin: 20px 0; /* 上下间距 */
}

/* 样式表 */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    /* height: calc(100vh - 4rem); */
    height: 100vh;
}

/* 左侧导航栏样式 */
.sidebar {
    width: 250px;
    background-color: white;
    padding: 20px;
}

.sidebar h2 {
    margin-top: 0;
    font-size: 20px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 10px;
    border-radius: 5px;
    align-items: center;
}

.sidebar ul li a.active, .sidebar ul li a:hover {
    background-color: #F1F2F6;
    color: #223B86;
}

.login_field {
    display: flex;
    align-items: center;
    gap: 16px;
}

.language_field {
    display: flex;
    padding: 4px 8px;
    /* margin-right: 1rem; */
    align-items: stretch;
    gap: 8px;
    border-radius: 4px;
    border: 1px solid var(--neutral-black-80, rgba(49, 49, 49, 0.80));

    .language_icon_field {
        width: 20px;
        height: 20px;
    }

    .display_text {
        color: var(--neutral-black, #313131);
        text-align: center;
        font-family: Noto Sans TC;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 140%;
        letter-spacing: 0.32px;
    }

    .language_name{
        margin: 0;
    }
}

.user-id{
    font-family: Noto Sans TC;
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
    letter-spacing: 0.02em;
    color: #313131;
}

.sidebar{
    padding: 1rem;
    width: 14rem;
    padding-left: 0;
}

.sidebar ul{
    margin: 0;

    & li{
        margin: 0;
        margin-bottom: .5rem;
    }

    & li a{
        border-radius: 0 100px 100px 0;
        padding: .5rem;
        display: flex;
        align-items: center;
        gap: .5rem;
        font-family: Noto Sans TC;
        font-size: 1rem;
        font-weight: 500;
        line-height: 140%;
        letter-spacing: 0.02em;
        padding-left: 1.25rem;
    }

    .icon{
        width: 40px;
    }
}

.sidebar ul li a:hover{
    background-color: #F1F2F6;
    font-weight: 700;
}

.container{
    padding: 0;
    margin: 0;

    .content{
        padding: 2.75rem 1.75rem;
        background-color: #F1F2F6;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: .75rem;

        .page_title{
            font-family: Noto Sans TC;
            font-size: 26px;
            font-weight: 700;
            line-height: 42.9px;
            letter-spacing: 0.04em;
            color: #313131;
        }

        .filter_with_table_section{
            display: flex;
            flex-direction: column;
            gap: 1rem;

            .filter_section{
                display: flex;
                align-items: center;
                justify-content: space-between;

                .filter{
                    display: flex;
                    align-items: center;
                    gap: 1rem;

                    .filtering_select+.picker{
                        width: 10rem;
                        border-radius: .5rem;
                        padding: .5rem .75rem;
                        border: 1px solid #3131314D;

                        .pc-select .pc-element{
                            font-family: Noto Sans TC;
                            font-size: 16px;
                            font-weight: 400;
                            line-height: 22.4px;
                            letter-spacing: 0.02em;
                            color: #606060;
                        }

                        .pc-list li{
                            font-family: Noto Sans TC;
                            font-size: 16px;
                            font-weight: 600;
                            line-height: 22.4px;
                            letter-spacing: 0.02em;
                            color: #313131;
                        }
                    }
                    
                    .create_tag_group_btn{
                        border-radius: .5rem;
                        padding: .75rem 1rem;
                        background-color: #396ee6;
                        font-family: Noto Sans TC;
                        font-size: 16px;
                        font-weight: 500;
                        line-height: 22.4px;
                        letter-spacing: 0.02em;
                        color: #fff;
                        border: 0;
                        height: 38px;
                        display: flex;
                        align-items: center;
                    }
                }

                .search{
                    width: unset;
                    border-radius: .5rem;
                    border: 1px solid #A6A6A6;

                    .search_input{
                        font-family: Noto Sans TC;
                        font-size: 16px;
                        font-weight: 400;
                        line-height: 22.4px;
                        letter-spacing: 0.02em;
                        color: #313131;
                        border: 0;
                        padding: .5rem .75rem;
                        border-radius: .5rem 0 0 .5rem;
                        max-width: 10rem;
                    }

                    .search_input:focus{
                        outline: none;
                    }

                    .search_input::placeholder{
                        color: #838383;
                    }

                    .input-group-text{
                        border: 0;
                        border-radius: 0 .5rem .5rem 0;
                        background: #fff;
                    }
                }
            }

            .table_container{
                border-radius: .5rem;
                padding: 0 1rem .75rem 1rem;
                background-color: #fff;
                box-shadow: 0px 4px 8px 0px #0000000F,
                            0px 0px 4px 0px #0000000A;
                max-height: 43.75rem;
                overflow-y: auto;
                min-height: 42rem;


                .tag_filtering_table{
                    width: 100%;

                    >thead{
                        box-shadow: 0px -1px 0px 0px #00000040 inset;
                        position: sticky;
                        top: 0;
                        background: #fff;
                        z-index: 10;
                    }

                    & th{
                        padding: 1rem .5rem;
                        background-color: #fff;
                        font-family: Noto Sans TC;
                        font-size: 16px;
                        font-weight: 500;
                        line-height: 22.4px;
                        letter-spacing: 0.02em;
                        color: #313131;
                        box-shadow: 0px -1px 0px 0px #00000040 inset;
                    }

                    & th:last-child{
                        width: 7%;
                        box-shadow: 0px -1px 0px 0px #00000040 inset;
                    }

                    .with_sort{
                        display: flex;
                        align-items: center;

                        .icon{
                            width: 1.25rem;
                            height: 1.25rem;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                        }
                    }

                    & td{
                        padding: 1rem .5rem;
                        background-color: #fff;
                        font-family: Noto Sans TC;
                        font-size: 1rem;
                        font-weight: 400;
                        line-height: 22.4px;
                        letter-spacing: 0.02em;
                        color: #313131;
                        box-shadow: 0px 1px 0px 0px #00000026 inset;


                        .state_item{
                            border-radius: 20px;
                            padding: 6px .75rem;
                            font-family: Noto Sans TC;
                            font-size: 14px;
                            font-weight: 500;
                            line-height: 19.6px;
                            letter-spacing: 0.02em;
                        }

                        .state_item.testing{
                            background: #F3F6F1;
                            color: #25470B;
                            width: fit-content;
                        }

                        .state_item.ended{
                            background: #EAEAEA;
                            color: #272727;
                            width: fit-content;
                        }
                    }

                    .test_action:is(.inactive) {
                        color: #838383;
                    }

                    .end_action{
                        position: relative;

                        .icon:hover .info{
                            display: block;
                        }

                        .info{
                            display: none;
                            position: absolute;
                            top: 70%;
                            left: 0;
                            background-color: #505050;
                            border-radius: .5rem;
                            padding: .5rem .75rem;
                            font-family: Noto Sans TC;
                            font-size: 16px;
                            font-weight: 400;
                            line-height: 22.4px;
                            letter-spacing: 0.02em;
                            color: #fff;
                            width: fit-content;
                            z-index: 10;
                            /* white-space: nowrap; */
                            overflow-wrap: anywhere;
                            width: 12rem;

                            .time{
                                color: #FFB525;
                            }
                        }
                    }

                    .end_action:is(.inactive){

                        .icon{
                            display: none;
                        }

                        .inactive_icon{
                            display: block;
                        }
                    }

                    .more_action{
                        position: relative;
                    }

                    .dropdown_more{
                        border-radius: .5rem;
                        box-shadow: 0px 1px 4px 0px #00000040;
                        width: 8rem;
                        position: absolute;
                        z-index: 10;
                        left: -10%;
                        /* display: none; */

                        .option_item{
                            border-radius: .5rem;
                            padding: .5rem .75rem;
                            background-color: #fff;
                            display: flex;
                            align-items: center;
                            gap: .5rem;
                            font-family: Noto Sans TC;
                            font-size: 16px;
                            font-weight: 500;
                            line-height: 22.4px;
                            letter-spacing: 0.02em;
                            color: #313131;

                            .icon{
                                display: flex;
                                align-items: center;
                            }
                        }

                        .option_item:hover{
                            background-color: #F1F2F6;
                        }
                    }
                }
            }

            .pagination_section{
                display: flex;
                justify-content: center;
                align-items: center;

                .paging_with_jump_to_page{
                    display: flex;
                    align-items: center;
                    gap: 1rem;

                    .paging{
                        display: flex;
                        align-items: center;
                        gap: .5rem;
                        list-style: none;
                        padding: 0;
                        margin: 0;

                        .page_item{
                            border-radius: .25rem;
                            padding: .625rem;
                            background-color: #fff;
                            border: 1px solid #31313133;
                            font-family: Noto Sans TC;
                            font-size: .875rem;
                            font-weight: 400;
                            line-height: 140%;
                            letter-spacing: 0.04em;
                            color: #313131;
                            width: 2rem;
                            height: 2rem;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                        }
    
                        .page_item.prev_page{
                            color: #31313133;
                        }
    
                        .page_item.active{
                            background-color: #396ee6;
                            padding: 1px 7px;
                            color: #fff;
                        }
                    }

                    .jump_to_page{
                        display: flex;
                        align-items: center;
                        gap: .5rem;
                        font-family: Noto Sans TC;
                        font-size: 14px;
                        font-weight: 400;
                        line-height: 19.6px;
                        letter-spacing: 0.04em;
                        color: #313131;

                        .page_input{
                            width: 3rem;
                            height: 2rem;
                            border-radius: .25rem;
                            border: 1px solid #31313133;
                            padding: 1px 7px;
                        }

                        .page_input:focus{
                            outline: none;
                        }
                    }

                    .page_select+.picker{
                        width: 6rem;
                        height: 2rem;
                        border-radius: .5rem;
                        padding: .5rem .75rem;
                        border: 1px solid #3131314D;

                        .pc-select .pc-element{
                            font-family: Noto Sans TC;
                            font-size: 16px;
                            font-weight: 400;
                            line-height: 22.4px;
                            letter-spacing: 0.02em;
                            color: #313131;
                        }

                        .pc-list{
                            top: -350%;
                        }

                        .pc-list li{
                            font-family: Noto Sans TC;
                            font-size: 16px;
                            font-weight: 600;
                            line-height: 22.4px;
                            letter-spacing: 0.02em;
                            color: #313131;
                        }
                    }
                }
            }
        }
    }
}

.topbar{
    border: 0;
    position: sticky;
    left: 0;
    top: 0;
    box-shadow: 0px 4px 4px 0px #00000040;
    z-index: 10;
}

.container{
    max-width: unset;
}

/* modal */
.create_tag_group_modal,
.delete_group_modal,
.end_test_modal{

    .modal-title{
        font-family: Noto Sans TC;
        font-size: 22px;
        font-weight: 700;
        line-height: 30.8px;
        color: #313131;
    }

    .modal-content{
        min-width: 28rem;
        border-radius: 1rem;
        padding: 1.5rem;
        box-shadow: 0px 1px 4px 0px #00000040;
    }

    .modal-header{
        padding: 0 0 .75rem 0;
        margin-bottom: .75rem;
        border-bottom: 1px solid #D6D6D6;

        .close{
            opacity: 0.9;
        }
    }

    .modal-body{
        margin-bottom: 1.5rem;
        font-family: Noto Sans TC;
        font-size: 18px;
        font-weight: 400;
        line-height: 25.2px;
        color: #313131;
    }

    .form-footer{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;

        .cancel_btn{
            width: 6.25rem;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: .5rem;
            padding: .75rem 1rem;
            border: 2px solid #396EE6;
            font-family: Noto Sans TC;
            font-size: 16px;
            font-weight: 500;
            line-height: 22.4px;
            letter-spacing: 0.02em;
            color: #396EE6;
        }

        .admit_btn{
            width: 6.25rem;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: .5rem;
            padding: .75rem 1rem;
            border: 2px solid #396EE6;
            background-color: #396EE6;
            font-family: Noto Sans TC;
            font-size: 16px;
            font-weight: 500;
            line-height: 22.4px;
            letter-spacing: 0.02em;
            color: #fff;
        }
    }
}

.delete_group_modal{
    
    .modal-content{
        min-width: 28rem;
        border-radius: 1rem;
        padding: 1rem 1.5rem 1.5rem 1.5rem;
        box-shadow: 0px 1px 4px 0px #00000040;
    }
}

/*  */
.test_record_modal,
.view_tag_modal{

    .modal-title{
        font-family: Noto Sans TC;
        font-size: 22px;
        font-weight: 700;
        line-height: 30.8px;
        color: #313131;
    }

    .modal-content{
        min-width: 41rem;
        border-radius: 1rem;
        padding: 1.5rem;
        box-shadow: 0px 8px 16px 0px #00000014,
                     0px 0px 4px 0px #0000000A;

        .search {
            width: fit-content;
            max-width: 13.5rem;
            border-radius: .5rem;
            border: 1px solid #A6A6A6;
            margin-bottom: 1.25rem;

            .search_input {
                font-family: Noto Sans TC;
                font-size: 16px;
                font-weight: 400;
                line-height: 22.4px;
                letter-spacing: 0.02em;
                color: #313131;
                border: 0;
                padding: .5rem .75rem;
                border-radius: .5rem 0 0 .5rem;
                max-width: 10rem;
            }

            .search_input:focus{
                outline: none;
            }

            .input-group-text {
                border: 0;
                border-radius: 0 .5rem .5rem 0;
                background: #fff;
            }
        }
    }

    .modal-header{
        padding: 0 0 .5rem 0;
        margin-bottom: 1.25rem;
        border-bottom: 1px solid #D6D6D6;

        .close{
            opacity: 0.9;
        }
    }

    .modal-body{
        margin-bottom: 1.5rem;

        .table_container{
            border-radius: .5rem;
            padding: 0 1rem 0 1rem;
            background-color: #fff;
            box-shadow: 0px 1px 4px 0px #00000040;
            max-height: 20rem;
            /* max-height: 38rem; */
            overflow-y: auto;
        }

        .test_record_table{
            border-radius: .5rem;
            padding: 0 1rem;
            width: 100%;

            & thead{
                box-shadow: 0px -1px 0px 0px #00000040 inset;
                position: sticky;
                top: 0;
                background-color: #fff;
                z-index: 10;
            }

            & th, & td{
                padding: 1rem .5rem;
                font-family: Noto Sans TC;
                font-size: 1rem;
                line-height: 140%;
                letter-spacing: 0.02em;
                color: #313131;
            }

            & th{
                font-weight: 500;
            }

            & td{
                font-weight: 400;
                box-shadow: 0px -1px 0px 0px #00000026 inset;

            }

            .with_sort{
                display: flex;
                align-items: center;

                .icon{
                    width: 1.25rem;
                    height: 1.25rem;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
            }
        }
    }

    .form-footer{
        .pagination_section {
            display: flex;
            justify-content: center;
            align-items: center;

            .paging_with_jump_to_page {
                display: flex;
                align-items: center;
                gap: 1rem;

                .paging {
                    display: flex;
                    align-items: center;
                    gap: .5rem;
                    list-style: none;
                    padding: 0;
                    margin: 0;

                    .page_item {
                        border-radius: .25rem;
                        padding: .625rem;
                        background-color: #fff;
                        border: 1px solid #31313133;
                        font-family: Noto Sans TC;
                        font-size: .875rem;
                        font-weight: 400;
                        line-height: 140%;
                        letter-spacing: 0.04em;
                        color: #313131;
                        width: 2rem;
                        height: 2rem;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                    }

                    .page_item.inactive {
                        color: #31313133;
                    }

                    .page_item.active {
                        background-color: #396ee6;
                        padding: 1px 7px;
                        color: #fff;
                    }
                }

                .jump_to_page {
                    display: flex;
                    align-items: center;
                    gap: .5rem;
                    font-family: Noto Sans TC;
                    font-size: 14px;
                    font-weight: 400;
                    line-height: 19.6px;
                    letter-spacing: 0.04em;
                    color: #313131;

                    .page_input {
                        width: 3rem;
                        height: 2rem;
                        border-radius: .25rem;
                        border: 1px solid #31313133;
                        padding: 1px 7px;
                    }

                    .page_input:focus{
                        outline: none;
                    }
                }

                .page_select+.picker {
                    width: 6rem;
                    height: 2rem;
                    border-radius: .5rem;
                    padding: .5rem .75rem;
                    border: 1px solid #3131314D;

                    .pc-select .pc-element {
                        font-family: Noto Sans TC;
                        font-size: 16px;
                        font-weight: 400;
                        line-height: 22.4px;
                        letter-spacing: 0.02em;
                        color: #313131;
                    }

                    .pc-list li {
                        font-family: Noto Sans TC;
                        font-size: 16px;
                        font-weight: 600;
                        line-height: 22.4px;
                        letter-spacing: 0.02em;
                        color: #313131;
                    }
                }
            }
        }
    }
}

.test_record_modal{
    
    .table_container{
        max-height: 18rem;
        overflow-y: auto;
        min-height: 17rem;
    }
}

.view_tag_modal{

    .modal-content{
        min-width: 49rem;
    }

    .table_container{
        border-radius: .5rem;
        padding: 0 1rem .75rem 1rem;
        background-color: #fff;
        box-shadow: 0px 1px 4px 0px #00000040;
        max-height: 38rem;
        overflow-y: auto;
        min-height: 20rem;
    }

    .tag_table{
        border-radius: .5rem;
        padding: 0 1rem;
        width: 100%;

        & thead{
            box-shadow: 0px -1px 0px 0px #00000040 inset;
            z-index: 10;
            position: sticky;
            top: 0;
            background-color: #fff;
        }

        & th, & td{
            padding: 1rem .5rem;
            font-family: Noto Sans TC;
            font-size: 1rem;
            line-height: 140%;
            letter-spacing: 0.02em;
            color: #313131;
        }

        & th{
            font-weight: 500;
        }

        & td{
            font-weight: 400;
            box-shadow: 0px -1px 0px 0px #00000026 inset;
        }

        td.tag{
            color: #396EE6;
        }

        .with_sort{
            display: flex;
            align-items: center;

            .icon{
                width: 1.25rem;
                height: 1.25rem;
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }
    }
}

/* 測評modal */
.test_modal{

    .modal-title{
        font-family: Noto Sans TC;
        font-size: 22px;
        font-weight: 700;
        line-height: 30.8px;
        color: #313131;
    }

    .modal-content{
        /* min-width: 48rem; */
        min-width: 55rem;
        border-radius: 1rem;
        padding: 1.5rem;
        box-shadow: 0px 8px 16px 0px #00000014,
                    0px 0px 4px 0px #0000000A;

        .modal-header{
            padding: 0 0 .5rem 0;
            margin-bottom: .75rem;
            border-bottom: 1px solid #D6D6D6;
    
            .close{
                opacity: 0.9;
            }
        }
    
        .hint{
            font-family: Noto Sans TC;
            font-size: 1rem;
            font-weight: 400;
            line-height: 140%;
            color: #838383;
            margin-bottom: 1.25rem;
        }


        .bad_tag_number_field{
            display: flex;
            align-items: center;
            justify-content: space-between;

            .tag_item{
                border-radius: 6px;
                padding: 6px .5rem;
                background-color: #F1F2F6;
                font-family: Noto Sans TC;
                font-size: 14px;
                font-weight: 400;
                line-height: 19.6px;
                letter-spacing: 0.02em;
                color: #223B86;
                width: fit-content;
                max-width: 11rem;
            }

            .temp_save_btn{
                width: 8rem;
                height: 2.5rem;
                border-radius: .5rem;
                border: 2px solid #396EE6;
                background-color: transparent;
                padding: .75rem 1rem;
                font-family: Noto Sans TC;
                font-size: 16px;
                font-weight: 500;
                line-height: 22.4px;
                letter-spacing: 0.02em;
                color: #396EE6;
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }

        .table_container{
            border-radius: .25rem;
            border: 1px solid #D6D6D6;
            max-width: 100%;
            overflow: auto;
            max-height: 38rem;
        }

        .test_table{
            width: 100%;
            border-collapse: separate;
            border-spacing: 0px;

            & thead{
                z-index: 10;
                position: sticky;
                top: 0;
                background-color: #F7F7F7;
            }

            & th,
            & td{
                font-family: Noto Sans TC;
                font-size: 14px;
                font-weight: 500;
                line-height: 19.6px;
                letter-spacing: 0.02em;
                color: #313131;
                padding: 1rem 1.5rem;
                white-space: nowrap;
                background-color: #F7F7F7;
            }

            & th{
                border-bottom: 1px solid #D6D6D6;
            }

            & td{
                background-color: #fff;
            }

            .table_footer{
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .number{
                font-family: Noto Sans TC;
                font-size: 14px;
                font-weight: 400;
                line-height: 19.6px;
                letter-spacing: 0.02em;
                color: #838383;
            }

            .tag_field{
                display: flex;
                align-items: center;
                gap: .5rem;

                .text_field{
                    display: flex;
                    align-items: center;
                    gap: .25rem;
                    font-family: Noto Sans TC;
                    font-size: 1rem;
                    font-weight: 500;
                    line-height: 22.4px;
                    letter-spacing: 0.02em;
                    color: #313131;

                    .number{
                        font-weight: 400;
                    }
                }
            }

            .suggest_field{
                margin-top: 6px;
                font-family: Noto Sans TC;
                font-size: 14px;
                font-weight: 400;
                line-height: 19.6px;
                letter-spacing: 0.02em;
                color: #223B86;
            }

            .form-check{
                display: flex;
                align-items: center;
                justify-content: center;

                .form-check-input{
                    border-color: #396EE6;
                }

                .form-check-input:checked{
                    background-color: #396EE6;
                    border-color: #396EE6;
                }
            }
        }

        .modal-body{
            display: flex;
            flex-direction: column;
            gap: .75rem;
            margin-bottom: 1.5rem;
        }

        .form-footer{
            display: flex;
            align-items: center;
            justify-content: center;
            gap: .75rem;
        }

        .btn{
            width: 8rem;
            height: 2.3rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: .5rem;
            padding: .75rem 1rem;
            font-family: Noto Sans TC;
            font-size: 16px;
            font-weight: 500;
            line-height: 22.4px;
            letter-spacing: 0.02em;
            border: 0;
        }

        .cancel_btn{
            border: 1px solid #396EE6;
            background-color: #fff;
            color: #396EE6;
        }

        .admit_btn{
            border: 1px solid #396EE6;
            background-color: #396EE6;
            color: #fff;
        }
    }

    /* 修改checkbox為radio的外觀 */
    .form-check-input[type=checkbox] {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23FFFFFF'/%3e%3c/svg%3e");
        border-radius: 50%;

        &:checked{
            background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23FFFFFF'/%3e%3c/svg%3e")
        }
    }


}

/* 建議修改modal */
.suggest_edit_modal{

    .modal-title{
        font-family: Noto Sans TC;
        font-size: 18px;
        font-weight: 500;
        line-height: 26.06px;
        letter-spacing: 0.1em;
        color: #313131;
    }

    .modal-content{
        width: 32rem;
        border-radius: .5rem;
        padding: 1rem;
        border: 1px solid #e5e5e5;
        box-shadow: 0px 4px 8px 0px #0000000F,
                    0px 0px 4px 0px #0000000A,
                    0px 1px 4px 0px #00000040;

        .modal-header{
            padding: 0;
            border: 0;
            margin-bottom: .75rem;

            .close{
                display: none;
            }
        }

        .modal-body{
            display: flex;
            align-items: center;
            gap: .5rem;

            .suggest_edit_input{
                border-radius: .5rem;
                border: 1px solid #A6A6A6;
                padding: .5rem .75rem;
                background-color: #fff;
                height: 2.3rem;
                flex: 1;
            }

            .suggest_edit_input:focus{
                outline: none;
            }

            .btn{
                width: 4rem;
                height: 2.3rem;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: .5rem;
                padding: .75rem 1rem;
                font-family: Noto Sans TC;
                font-size: 16px;
                font-weight: 500;
                line-height: 22.4px;
                letter-spacing: 0.02em;
                border: 0;
            }

            .cancel_btn{
                border: 1px solid #396EE6;
                background-color: #fff;
                color: #396EE6;
            }

            .admit_btn{
                border: 1px solid #396EE6;
                background-color: #396EE6;
                color: #fff;
            }

        }
    }
}

/* 捲軸寬度及高度 */
.table_container::-webkit-scrollbar {
    width: 6px; /*右側捲軸寬度*/
    height: 6px; /*下方捲軸高度*/
}
/* 軌道背景底色 */
.table_container::-webkit-scrollbar-track {
    background: #FCFCFC; 
}

/* 滑桿顏色 */
.table_container::-webkit-scrollbar-thumb {
    background: #A6A6A6;
    border-radius: 100px;
}

/* modal */
.create_tag_group_modal,
.delete_group_modal,
.end_test_modal{

    .modal-title{
        font-family: Noto Sans TC;
        font-size: 22px;
        font-weight: 700;
        line-height: 30.8px;
        color: #313131;
    }

    .modal-content{
        min-width: 28rem;
        border-radius: 1rem;
        padding: 1.5rem;
        box-shadow: 0px 1px 4px 0px #00000040;
    }

    .modal-header{
        padding: 0 0 .75rem 0;
        margin-bottom: .75rem;
        border-bottom: 1px solid #D6D6D6;

        .close{
            opacity: 0.9;
        }
    }

    .modal-body{
        margin-bottom: 1.5rem;
        font-family: Noto Sans TC;
        font-size: 18px;
        font-weight: 400;
        line-height: 25.2px;
        color: #313131;
    }

    .form-footer{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;

        .cancel_btn{
            width: 6.25rem;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: .5rem;
            padding: .75rem 1rem;
            border: 2px solid #396EE6;
            font-family: Noto Sans TC;
            font-size: 16px;
            font-weight: 500;
            line-height: 22.4px;
            letter-spacing: 0.02em;
            color: #396EE6;
        }

        .admit_btn{
            width: 6.25rem;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: .5rem;
            padding: .75rem 1rem;
            border: 2px solid #396EE6;
            background-color: #396EE6;
            font-family: Noto Sans TC;
            font-size: 16px;
            font-weight: 500;
            line-height: 22.4px;
            letter-spacing: 0.02em;
            color: #fff;
        }
    }
}

.delete_group_modal{
    
    .modal-content{
        min-width: 28rem;
        border-radius: 1rem;
        padding: 1rem 1.5rem 1.5rem 1.5rem;
        box-shadow: 0px 1px 4px 0px #00000040;
    }
}

/*  */
.test_record_modal,
.view_tag_modal{

    .modal-title{
        font-family: Noto Sans TC;
        font-size: 22px;
        font-weight: 700;
        line-height: 30.8px;
        color: #313131;
    }

    .modal-content{
        min-width: 41rem;
        border-radius: 1rem;
        padding: 1.5rem;
        box-shadow: 0px 8px 16px 0px #00000014,
                     0px 0px 4px 0px #0000000A;

        .search {
            width: fit-content;
            max-width: 13.5rem;
            border-radius: .5rem;
            border: 1px solid #A6A6A6;
            margin-bottom: 1.25rem;

            .search_input {
                font-family: Noto Sans TC;
                font-size: 16px;
                font-weight: 400;
                line-height: 22.4px;
                letter-spacing: 0.02em;
                color: #313131;
                border: 0;
                padding: .5rem .75rem;
                border-radius: .5rem 0 0 .5rem;
                max-width: 10rem;
            }

            .search_input:focus{
                outline: none;
            }

            .input-group-text {
                border: 0;
                border-radius: 0 .5rem .5rem 0;
                background: #fff;
            }
        }
    }

    .modal-header{
        padding: 0 0 .5rem 0;
        margin-bottom: 1.25rem;
        border-bottom: 1px solid #D6D6D6;

        .close{
            opacity: 0.9;
        }
    }

    .modal-body{
        margin-bottom: 1.5rem;

        .table_container{
            border-radius: .5rem;
            padding: 0 1rem 0 1rem;
            background-color: #fff;
            box-shadow: 0px 1px 4px 0px #00000040;
            /* max-height: 20rem; */
            max-height: 38rem;
            overflow-y: auto;
        }

        .test_record_table{
            border-radius: .5rem;
            padding: 0 1rem;
            width: 100%;

            & thead{
                box-shadow: 0px -1px 0px 0px #00000040 inset;
            }

            & th, & td{
                padding: 1rem .5rem;
                font-family: Noto Sans TC;
                font-size: 1rem;
                line-height: 140%;
                letter-spacing: 0.02em;
                color: #313131;
            }

            & th{
                font-weight: 500;
            }

            & td{
                font-weight: 400;
                box-shadow: 0px -1px 0px 0px #00000026 inset;

            }

            .with_sort{
                display: flex;
                align-items: center;

                .icon{
                    width: 1.25rem;
                    height: 1.25rem;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
            }
        }
    }

    .form-footer{
        .pagination_section {
            display: flex;
            justify-content: center;
            align-items: center;

            .paging_with_jump_to_page {
                display: flex;
                align-items: center;
                gap: 1rem;

                .paging {
                    display: flex;
                    align-items: center;
                    gap: .5rem;
                    list-style: none;
                    padding: 0;
                    margin: 0;

                    .page_item {
                        border-radius: .25rem;
                        padding: .625rem;
                        background-color: #fff;
                        border: 1px solid #31313133;
                        font-family: Noto Sans TC;
                        font-size: .875rem;
                        font-weight: 400;
                        line-height: 140%;
                        letter-spacing: 0.04em;
                        color: #313131;
                        width: 2rem;
                        height: 2rem;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                    }

                    .page_item.inactive {
                        color: #31313133;
                    }

                    .page_item.active {
                        background-color: #396ee6;
                        padding: 1px 7px;
                        color: #fff;
                    }
                }

                .jump_to_page {
                    display: flex;
                    align-items: center;
                    gap: .5rem;
                    font-family: Noto Sans TC;
                    font-size: 14px;
                    font-weight: 400;
                    line-height: 19.6px;
                    letter-spacing: 0.04em;
                    color: #313131;

                    .page_input {
                        width: 3rem;
                        height: 2rem;
                        border-radius: .25rem;
                        border: 1px solid #31313133;
                        padding: 1px 7px;
                    }

                    .page_input:focus{
                        outline: none;
                    }
                }

                .page_select+.picker {
                    width: 6rem;
                    height: 2rem;
                    border-radius: .5rem;
                    padding: .5rem .75rem;
                    border: 1px solid #3131314D;

                    .pc-select .pc-element {
                        font-family: Noto Sans TC;
                        font-size: 16px;
                        font-weight: 400;
                        line-height: 22.4px;
                        letter-spacing: 0.02em;
                        color: #313131;
                    }

                    .pc-list li {
                        font-family: Noto Sans TC;
                        font-size: 16px;
                        font-weight: 600;
                        line-height: 22.4px;
                        letter-spacing: 0.02em;
                        color: #313131;
                    }
                }
            }
        }
    }
}

.view_tag_modal{

    .modal-content{
        min-width: 49rem;
    }

    .table_container{
        border-radius: .5rem;
        padding: 0 1rem .75rem 1rem;
        background-color: #fff;
        box-shadow: 0px 1px 4px 0px #00000040;
        max-height: 38rem;
        overflow-y: auto;
    }

    .tag_table{
        border-radius: .5rem;
        padding: 0 1rem;
        width: 100%;

        & thead{
            box-shadow: 0px -1px 0px 0px #00000040 inset;
            z-index: 10;
            position: sticky;
            top: 0;
            background-color: #fff;
        }

        & th, & td{
            padding: 1rem .5rem;
            font-family: Noto Sans TC;
            font-size: 1rem;
            line-height: 140%;
            letter-spacing: 0.02em;
            color: #313131;
        }

        & th{
            font-weight: 500;
        }

        & td{
            font-weight: 400;
            box-shadow: 0px -1px 0px 0px #00000026 inset;
        }

        td.tag{
            color: #396EE6;
        }

        .with_sort{
            display: flex;
            align-items: center;

            .icon{
                width: 1.25rem;
                height: 1.25rem;
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }
    }
}

/* 測評modal */
.test_modal{

    .modal-title{
        font-family: Noto Sans TC;
        font-size: 22px;
        font-weight: 700;
        line-height: 30.8px;
        color: #313131;
    }

    .modal-content{
        /* min-width: 48rem; */
        min-width: 55rem;
        border-radius: 1rem;
        padding: 1.5rem;
        box-shadow: 0px 8px 16px 0px #00000014,
                    0px 0px 4px 0px #0000000A;

        .modal-header{
            padding: 0 0 .5rem 0;
            margin-bottom: .75rem;
            border-bottom: 1px solid #D6D6D6;
    
            .close{
                opacity: 0.9;
            }
        }
    
        .hint{
            font-family: Noto Sans TC;
            font-size: 1rem;
            font-weight: 400;
            line-height: 140%;
            color: #838383;
            margin-bottom: 1.25rem;
        }


        .bad_tag_number_field{

            .tag_item{
                border-radius: 6px;
                padding: 6px .5rem;
                background-color: #F1F2F6;
                font-family: Noto Sans TC;
                font-size: 14px;
                font-weight: 400;
                line-height: 19.6px;
                letter-spacing: 0.02em;
                color: #223B86;
                width: fit-content;
                max-width: 11rem;
            }
        }

        .table_container{
            border-radius: .25rem;
            border: 1px solid #D6D6D6;
            max-width: 100%;
            overflow: auto;
            max-height: 41rem;
        }

        .test_table{
            width: 100%;
            border-collapse: separate;
            border-spacing: 0px;

            & thead{
                z-index: 10;
                position: sticky;
                top: 0;
                background-color: #F7F7F7;
            }

            & th,
            & td{
                font-family: Noto Sans TC;
                font-size: 14px;
                font-weight: 500;
                line-height: 19.6px;
                letter-spacing: 0.02em;
                color: #313131;
                padding: 1rem 1.5rem;
                white-space: nowrap;
                background-color: #F7F7F7;
            }

            & th{
                border-bottom: 1px solid #D6D6D6;
            }

            & td{
                background-color: #fff;
            }

            .tag_field{
                display: flex;
                align-items: center;
                gap: .5rem;

                .text_field{
                    display: flex;
                    align-items: center;
                    gap: .25rem;
                    font-family: Noto Sans TC;
                    font-size: 1rem;
                    font-weight: 500;
                    line-height: 22.4px;
                    letter-spacing: 0.02em;
                    color: #313131;

                    .number{
                        font-weight: 400;
                    }
                }
            }

            .suggest_field{
                margin-top: 6px;
                font-family: Noto Sans TC;
                font-size: 14px;
                font-weight: 400;
                line-height: 19.6px;
                letter-spacing: 0.02em;
                color: #223B86;
            }

            .form-check{
                display: flex;
                align-items: center;
                justify-content: center;

                .form-check-input{
                    border-color: #396EE6;
                }

                .form-check-input:checked{
                    background-color: #396EE6;
                    border-color: #396EE6;
                }
            }
        }

        .modal-body{
            display: flex;
            flex-direction: column;
            gap: .75rem;
            margin-bottom: 1.5rem;
        }

        .form-footer{
            display: flex;
            align-items: center;
            justify-content: center;
            gap: .75rem;
        }

        .btn{
            width: 8rem;
            height: 2.3rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: .5rem;
            padding: .75rem 1rem;
            font-family: Noto Sans TC;
            font-size: 16px;
            font-weight: 500;
            line-height: 22.4px;
            letter-spacing: 0.02em;
            border: 0;
        }

        .cancel_btn{
            border: 1px solid #396EE6;
            background-color: #fff;
            color: #396EE6;
        }

        .admit_btn{
            border: 1px solid #396EE6;
            background-color: #396EE6;
            color: #fff;
        }
    }
}

/* 建議修改modal */
.suggest_edit_modal{

    .modal-title{
        font-family: Noto Sans TC;
        font-size: 18px;
        font-weight: 500;
        line-height: 26.06px;
        letter-spacing: 0.1em;
        color: #313131;
    }

    .modal-content{
        width: 32rem;
        border-radius: .5rem;
        padding: 1rem;
        border: 1px solid #e5e5e5;
        box-shadow: 0px 4px 8px 0px #0000000F,
                    0px 0px 4px 0px #0000000A,
                    0px 1px 4px 0px #00000040;

        .modal-header{
            padding: 0;
            border: 0;
            margin-bottom: .75rem;

            .close{
                display: none;
            }
        }

        .modal-body{
            display: flex;
            align-items: center;
            gap: .5rem;

            .suggest_edit_input{
                border-radius: .5rem;
                border: 1px solid #A6A6A6;
                padding: .5rem .75rem;
                background-color: #fff;
                height: 2.3rem;
                flex: 1;
            }

            .suggest_edit_input:focus{
                outline: none;
            }

            .btn{
                width: 4rem;
                height: 2.3rem;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: .5rem;
                padding: .75rem 1rem;
                font-family: Noto Sans TC;
                font-size: 16px;
                font-weight: 500;
                line-height: 22.4px;
                letter-spacing: 0.02em;
                border: 0;
            }

            .cancel_btn{
                border: 1px solid #396EE6;
                background-color: #fff;
                color: #396EE6;
            }

            .admit_btn{
                border: 1px solid #396EE6;
                background-color: #396EE6;
                color: #fff;
            }

        }
    }
}