  /* chk-container-checkbox */
  .chk-container {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.chk-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.chk-container .checkmark {
    position: absolute;
    border-radius: 3px;
    height: 20px;
    width: 20px;
    background-color: #fff
}

.chk-container .checkmark:after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    display: none;
}

/* -- outter -- */
.chk-container .outter {
    width: 40px;
    height: 40px;
    position: absolute;
    left: 50%;
    top: 2px;
    transform: translateX(-50%);
    border-radius: 50%;
    transition: .3s;
}

.chk-container .outter:hover {
    background: #E0E7F8;
}

.chk-container .outter:active {
    background: #BBC3DA;
}

.chk-container .checkmark {
    top: 10px;
    left: 10px;
    border: 2px solid #285ee4;
    z-index: 2;
    background: 0 0;
}

.chk-container input:checked~.outter .checkmark {
    background: #285ee4;
}

.chk-container input:checked~.outter .checkmark:before {
    display: block;
    border-color: #fff;
}

.chk-container input:checked~.outter .checkmark:after {
    display: block;
    border-color: #fff;
}


.modal_title_content {
    display: flex;
}

.modal_title_content h3 {
    font-size: 32px;
    font-weight: bold;
    color: #383838;
    letter-spacing: 1px;
    margin-right: 8px;
    display: flex;
    /* align-items: end; */
    position: relative;
}

/* 資料已更新 */
#ex_update {
    background: transparent;
    box-shadow: 0 0;
    -webkit-box-shadow: 0 0;
    padding: 0 0;
}

#ex_update img {
    width: 198px;
    height: 198px;
}

/* 建立常用傳票 */
#ex7_modal .item_body {
    border-radius: 0 0 8px 8px;
}

#ex7_modal textarea[name="description"] {
    min-height: 96px;
}

#ex7_modal .input_group {
    margin-bottom: 24px;
}

#ex7_modal .input_group label {
    font-size: 20px;
    color: #3d3d3d;
}

#ex7_modal .action {
    flex-direction: column-reverse;
}

#ex7_modal .action .btn {
    width: 100%;
}

#ex7_modal .action .btn+.btn {
    margin-left: 0;
    margin-bottom: 16px;
}


/* ------------------------- */
.pl-44 {
    padding-left: 44px;
}

/* table */
.modal .tableFixHead {
    height: 100%;
    min-height: 484px;
    max-height: 500px;
    overflow-y: auto;
    position: relative;
}

.modal table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal table tr th,
.modal table tr td {
    height: 44px;
}

/* 選擇要匯入的常用傳票 */
#ex8_modal {
    width: 100%;
    max-width: 752px;
    padding: 0 0;
}

#ex8_modal .modal_title_content {
    padding: 24px 16px 0;
}

#ex8_modal .modal_title_content h3 {
    margin-bottom: 24px;
}

#ex8_modal .tableFixHead {
    border-radius: 0;
}

#ex8_modal .tableFixHead table tbody tr:hover {
    background-color: #e6edff;
}

#ex8_modal .tableFixHead table tbody tr.selected {
    background-color: #e6edff;
}


#ex8_modal table tr th.all-check,
#ex8_modal table tr td.tb-checkbox {
    width: 10%;
    min-width: 80px;
    max-width: 80px;
}

#ex8_modal table .tb-name {
    width: 35%;
    max-width: 176px;
    min-width: 176px;
}

#ex8_modal table .tb-voucher_type {
    width: 20%;
    min-width: 96px;
}

#ex8_modal table .tb-note {
    width: 35%;
    min-width: 176px;
    max-width: 176px;
}

#ex8_modal .action {
    padding: 16px;
    display: flex;
    justify-content: end;
}


/* 選擇會計科目 */
.modal_subtitle_info {
    padding-left: 16px;
    padding-right: 16px;
    margin-bottom: 16px;
}

.modal_subtitle_info h3 {
    max-width: 100%;
    font-size: 24px;
    font-weight: 600;
    color: #285ee4;
    padding-bottom: 8px;
    margin-bottom: 16px;
    line-height: 36px;
    position: relative;
    display: flex;
    overflow-x: auto;
    cursor: pointer;
}

.modal_subtitle_info .tabs {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 792px;
}

.modal_subtitle_info .tabs li {
    text-align: center;
    position: relative;
    transition: .3s;
}

.modal_subtitle_info .tabs li a {
    font-weight: 500;
    color: #dbdbdb;
    padding-left: 12px;
    padding-right: 12px;
}

.modal_subtitle_info .tabs li:not(:first-child)::before {
    content: '';
    height: 18px;
    width: 2px;
    background: #e0e0e0;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.modal_subtitle_info .tabs li a.active {
    color: #285ee4;
}

/* search */
.sc-search_content {
    display: flex;
    position: relative;
    margin-bottom: 16px;
}

.sc-search_content {
    max-width: 311px;
}

.sc-search_content .record_search {
    width: 100%;
    height: 40px;
    border-radius: 20px;
    border: 2px solid transparent;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    background: #fff;
    padding: 4px 36px 4px 16px;
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
}

.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 .search_btn {
    position: absolute;
    top: 0px;
    right: 4px;
    background-color: transparent;
    border: 0;
    z-index: 0;
    cursor: pointer;
}

#subject_modal {
    width: 100%;
    max-width: 876px;
    padding: 0 0;
}

#subject_modal .modal_title_content {
    padding: 24px 16px 0;
}

#subject_modal .action {
    padding: 32px 24px;
    display: flex;
    justify-content: end;
}

#subject_modal .modal_title_content {
    justify-content: space-between;
    flex-wrap: wrap;
}

#subject_modal .modal_title_content .title {
    display: flex;
    align-items: end;
    position: relative;
    margin-bottom: 16px;
    margin-right: 8px;
    flex-wrap: nowrap;
}

#subject_modal .modal_title_content .title h3 {
    margin-bottom: 8px;
}

#subject_modal .modal_title_content .title>a {
    text-decoration: underline;
    margin-bottom: 8px;
}

#subject_modal .item_header {
    border-radius: 0 0;
}

#subject_modal .item_body {
    min-height: 484px;
    max-height: 500px;
    padding: 0 0;
    overflow: hidden;
}

#subject_modal .item_body:hover {
    overflow: auto;
}


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

#subject_modal .item_body:hover::-webkit-scrollbar {
    display: block;
}

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

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

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

#subject_modal .accordion_header {
    min-height: 44px;
    padding: 4px 24px;
    border-bottom: 1px solid #efefef;
}

#subject_modal .accordion_header_item {
    width: 100%;
    display: flex;
    align-items: center;
    border-radius: 8px;
    border: 2px solid transparent;
}

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

#subject_modal .accordion_header_item.active {
    border: 2px solid #658ae6;
}

#subject_modal .chk1 {
    width: 40px;
    height: 40px;
    margin-right: 16px;
    position: relative;
}

#subject_modal .chk1 .chk-container .outter {
    top: 0;
    left: 0;
    transform: translateX(0);
}

#subject_modal .accordion_header .head {
    width: calc(100% - 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#subject_modal .accordion_header .head .title {
    color: #285ee4;
    font-size: 20px;
    white-space: nowrap;
}

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

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

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

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

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

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

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

#subject_modal .accordion_body_content {
    padding: 4px 24px;
    border-bottom: 1px solid #efefef;
}

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

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

#subject_modal .accordion_body_item.active {
    border: 1px solid #658ae6;
}

#subject_modal .accordion_body .accordion_body_item label {
    width: 100%;
    display: flex;
    align-items: center;
}

#subject_modal .accordion_body .accordion_body_item label .title {
    width: calc(100% - 40px);
    white-space: nowrap;
}

#subject_modal .highlight {
    color: #285ee4;
    font-weight: bold;
    background-color: #ffe607;
    padding: 0 4px;
    border-radius: 12px;
}

@media screen and (max-width: 450px) {
    #subject_modal .modal_title_content .title {
        flex-wrap: wrap;
    }

    #subject_modal .modal_title_content h3 {
        margin-left: 0;
    }

    .sc-search_content {
        width: 100%;
        max-width: 100%;
    }
}
