.main_title {
    max-width: 876px;
}

.main_title .main_title_content .btn_group {
    display: flex;
    gap: 16px;
}

.create_btn {
    height: 40px;
    font-size: 18px;
    font-weight: bold;
    border-width: 2px;
}


.item_header {
    width: 100%;
    min-height: 44px;
    padding: 8px 16px;
    background: var(--main-primary-color);
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.item_header span {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.item_body {
    width: 100%;
    background: #fff;
    padding: 24px 16px;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
}


.account_subject_main {
    display: flex;
    gap: 24px;
}


/* 科目資訊 */
.account_subject-info {
    flex-grow: 1;
    max-width: 876px;
}

.account_subject-info .item_wrap {
    width: 100%;
    min-width: 311px;
    max-width: 876px;
}

.account_subject-info .item_body {
    min-height: 484px;
    max-height: 760px;
    height:60vh;
    overflow: scroll;
}

.account_subject-info .item_body:hover {
    overflow: auto;
}


/* 自定義滾動軸樣式 */
.account_subject-info .item_body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    display: none;
}

.account_subject-info .item_body:hover::-webkit-scrollbar {
    display: block;
}

.account_subject-info .item_body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.account_subject-info .item_body::-webkit-scrollbar-thumb {
    background: #658ae6;
    border-radius: 2px;
}

.account_subject-info .item_body::-webkit-scrollbar-thumb:hover {
    background: #285ee4;
}


/* 篩選欄位 */
.sc-search_content {
    display: flex;
    margin-bottom: 16px;
    position: relative;
}

.sc-search_content .record_search {
    width: 100%;
    height: 36px;
    padding: 4px 36px 4px 16px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #285ee4;
    position: relative;
}

.sc-search_content .record_search input[type=number],
.sc-search_content .record_search input[type=text] {
    width: 100%;
    height: 100%;
    border: 0;
    outline: none;
    color: #767676;
    font-size: 18px;
}

.sc-search_content .record_search .filter_btn {
    height: 36px;
    position: absolute;
    top: 0px;
    right: 4px;
    background-color: transparent;
    border: 0;
    z-index: 0;
    cursor: pointer;
}

.highlight {
    display: inline-block;
    color: #285ee4;
    font-weight: bold;
    background-color: #ffe607;
    padding: 1px 2px;
    border-radius: 12px;
    margin-inline: 2px;
}

/* --------- accordion 摺收 --------- */

/* accordion_header */
.accordion_header {
    min-height: 44px;
}

.accordion_header_item {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    border: 2px solid transparent;
    padding-left: 16px;
}

.accordion_header_item:hover {
    background-color: #e6edff;
    border: 2px solid #658ae6;
}

.accordion_header_item.active {
    background-color: #e6edff;
    border: 2px solid #658ae6;
}

.accordion_header .head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion_header .head .title {
    color: #285ee4;
    font-size: 24px;
    font-weight: bold;
    white-space: nowrap;
}

.accordion_header .head .title .count {
    display: inline-block;
    color: #000;
    font-size: 16px;
    font-weight: normal;
    padding: 4px 16px;
    background-color: #bacbf6;
    border-radius: 12px;
    margin-left: 16px;
}

.accordion_header .head .toggle-icon {
    width: 40px;
    height: 40px;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
    user-select: none;
    cursor: pointer;
}

.accordion_header .head .toggle-icon img {
    width: 40px;
}

.accordion_header .head.rotate-toggle .toggle-icon {
    transform: rotate(180deg);
}

.accordion_header .head .toggle-icon:hover {
    background-color: #E0E7F8;
    border-radius: 50%;
}

/* accordion_body */
.accordion_body {
    transform: translateY(-40px);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.accordion_body.show {
    transform: translateY(0);
    opacity: 1;
    max-height: 100%;
    visibility: visible;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.accordion_body_content {
    padding: 4px 0 4px 64px;
    position: relative;
}

.accordion_body_content.tree-line::before {
    content: "";
    position: absolute;
    top: 0;
    left: 38px;
    width: 1px;
    /* height: 100%; */
    height: var(--tree-line-height, 100%);
    border-left: 1px dashed #707070;
}

.accordion_body_content.tree-branch::after {
    content: "";
    position: absolute;
    top: 24px;
    left: 40px;
    width: 12px;
    height: 1px;
    border-top: 1px dashed #707070;
}


/* 第二層 */
/* .tree-branch {
    position: relative;
} */

.accordion_body_item {
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 12px;
}

.accordion_body_item:hover {
    background-color: #e6edff;
    border: 1px solid #658ae6;
}

.accordion_body_item.active {
    border: 1px solid #658ae6;
    background-color: #e6edff;
}

.accordion_body_item .item-head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion_body_item .item-head .title {
    font-size: 20px;
}

.accordion_body_item .item-head .toggle-icon {
    width: 40px;
    height: 40px;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
    user-select: none;
    cursor: pointer;
}

.accordion_body_item .item-head .toggle-icon:hover {
    background-color: #E0E7F8;
    border-radius: 50%;
}

.accordion_body_item .item-head .toggle-icon img {
    width: 40px;
}

.accordion_body_item.active .item-head.rotate-toggle .toggle-icon {
    transform: rotate(180deg);
}


  /* 第三層 */
  .accordion_body_tree_item {
    transform: translateY(-20px);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding: 4px 0 4px 44px;
}

.accordion_body_tree_list.show .accordion_body_tree_item {
    transform: translateY(0);
    opacity: 1;
    max-height: 100%;
    visibility: visible;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.tree-item-head {
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    user-select: none;
    position: relative;
    padding-left: 12px;
}

.tree-item-head:hover {
    border: 1px solid #658ae6;
    background-color: #e6edff;
}


.tree-item-head.tree-line::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -18px;
    width: 1px;
    height: 100%;
    border-left: 1px dashed #707070;
}

.tree-item-head.tree-branch::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -16px;
    width: 12px;
    height: 1px;
    border-top: 1px dashed #999;
}

.tree-item-head.tree-line:last-child::before {
    height: calc(100% - 16px);
}


.tree-item-head .tree-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tree-item-text {
    font-size: 18px;
    line-height: 1.1;
}

.tree-item-icon {
    min-width: 140px;
}

.tree-item-icon>span {
    width: 44px;
    height: 44px;
    cursor: pointer;
}

/* 標籤 */
.objTagContent {
    position: absolute;
    z-index: 100;
    font-size: 18px;
    padding: 4px;
    border-radius: 8px;
    color: #fff;
    background-color: var(--main-primary-color);
    box-shadow: var(--primary-box-shadow);
    /* transition-duration: 0.6s; */
    display: none;
    max-width: 240px;
    word-break: break-word;
}

.objTagContent>p {
    padding: 4px;
}

.objTagContent>.objectTag {
    width: 100%;
    min-height: 40px;
    background-color: #fff;
    border-radius: 8px;
    color: #000;
    padding: 4px 8px;
    line-height: 1.2;
}

@media screen and (max-width:600px) {
    .accordion_header .head .title {
        font-size: 20px;
    }

    .accordion_body_item .item-head .title {
        font-size: 18px;
    }

    .tree-item-text {
        font-size: 16px;
    }

    .accordion_header .head .title .count {
        margin-left: 8px;
    }

    .accordion_body_content {
        padding-left: 32px;
    }

    .accordion_body_content.tree-line::before {
        left: 16px;
    }

    .accordion_body_content.tree-branch::after {
        left: 16px;
    }

    .accordion_body_tree_item {
        padding-left: 20px;
    }

    .tree-item-head.tree-line::before {
        left: -12px;
    }

    .tree-item-head.tree-branch::after {
        left: -12px;
    }

    .tree-item-head {
        padding-left: 8px;
    }
}

@media screen and (max-width: 400px){
    .main_title .title {
        width: 100%;
    }

    .main_title h3 {
        margin-bottom: 16px;
    }

    .guide_group {
        margin-bottom: 16px;
    }

    .main_title .row_wrap>.group {
        width: 100%;
    }

    .main_title .main_title_content .btn_group {
        width: 100%;
        flex-direction: column;
    }

    .create_btn {
        width: 100%;
    }
}


/* 子科目建立 */
.acct_add_form{
    display: none;
}

.add_content {
    width: 100%;
    max-width: 876px;
}

.add_content .item_body {
    border: 2px solid #285ee4;
    border-radius: 0 0 12px 12px;
}


.add_content .item_body .item_main {
    display: flex;
    position: relative;
    flex-wrap: wrap;
}

.add_content .item_body>.action {
    display: flex;
    justify-content: end;
    gap: 16px;
    margin-top: 16px;
}

.add_content .item_body>.action .btn {
    width: 150px;
    height: 40px;
    font-size: 18px;
    border-width: 2px;
}

.input_group .note {
    letter-spacing: 48px;
}

.input_group textarea {
    width: 100%;
    padding: 4px 12px;
    border: 1px solid #c6c6c6;
    border-radius: 8px;
    background: #fff;
    font-size: 18px;
    text-align: left;
    color: #3d3d3d;
    outline: none;
    resize: vertical;
}

.subject_title {
    font-size: 20px;
    margin-bottom: 24px;
    padding: 8px 16px;
    background-color: #e6edff;
    border: 1px solid #658ae6;
    border-radius: 5px;
}

.annotation-title label {
    font-size: 18px;
}

.subject_add .action {
    display: flex;
    justify-content: end;
}

.subject_add .action .btn {
    width: 150px;
    height: 40px;
    font-size: 18px;
    letter-spacing: 1.8px;
    font-weight: 800;
}

.subject_add .action .btn+.btn {
    margin-left: 8px;
}

.parent-subject-container {
    width: 50%;
    /* border: 1px solid red; */
    padding-left: 8px;
    padding-right: 16px;
    position: relative;
}

.child-subject-container {
    width: 50%;
    /* border: 1px solid blue; */
    padding-left: 16px;
    padding-right: 8px;
}

.line {
    width: 1px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-image: linear-gradient(to bottom, #C6C6C6 0%, #C6C6C6 70%, transparent 50%);
    background-size: 1px 24px;
    background-repeat: repeat-y;
}

@media screen and (max-width:1280px) {
    .account_subject_main {
        flex-direction: column;
    }

}

@media screen and (max-width:742px) {
    .add_content .item_body .item_main {
        flex-direction: column;
    }

    .parent-subject-container {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 24px;
        min-width: 282px;
    }

    .child-subject-container {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        min-width: 282px;
        margin-top: 24px;
    }

    .line {
        display: none;
        width: 100%;
        height: 1px;
        position: absolute;
        top: 45%;
        left: 0;
        transform: translateY(-45%);
        background-image: linear-gradient(to left, #C6C6C6 0%, #C6C6C6 70%, transparent 50%);
        background-size: 24px 1px;
        background-repeat: repeat-x;
    }
}

.twitter-typeahead {
    display: initial !important;
}

.tt-menu {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
    margin-top: 5px;
    width: 100%;
}

#scrollable-dropdown-menu .tt-suggestion {
    padding: 3px 20px;
    line-height: 24px;
}

#scrollable-dropdown-menu .tt-suggestion:hover,
#scrollable-dropdown-menu .tt-suggestion.tt-cursor {
    background-color: #eee;
}

#scrollable-dropdown-menu .empty-message {
    padding: 3px 20px;
    text-align: center;
}



#ex10_modal {
    max-width: 343px;
    padding: 32px 16px;
}

#ex10_modal.modal h4 {
    font-size: 28px;
    color: #285ee4;
}


.swal2-title-custom {
    color: #285ee4 !important;
}

.swal2-text-custom {
    color: #000 !important;
    font-size: 20px !important;
    padding-left: 1em !important;
    padding-right: 1em !important;
}