/* checkbox  (chk-container) */
.chk-container {
    display: block;
    position: relative;
    padding-left: 40px;
    margin-bottom: 16px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    float: none;
    letter-spacing: 1px
}

.chk-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 16px;
    width: 16px;
}

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

.chk-container:hover input~.checkmark {
    background-color: #fff
}

.chk-container input:checked~.checkmark {
    background-color: #fff
}

.chk-container .checkmark:after {
    content: "";
    position: absolute;
    display: none
}

.chk-container input:checked~.checkmark:after {
    display: block
}

.chk-container .checkmark:after {
    left: 7px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #658ae6;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg)
}

.outter {
    left: 0;
    top: -8px;
    padding-top: 5px;
    padding-left: 5px;
    height: 33px;
    width: 330px;
    border-radius: 50%;
    position: absolute;
    width: 34px;
    height: 34px;
    transition: .3s;
}

.outter:hover {
    background: #d2e0e4;
}

.outter:active {
    background: #a7cdd0;
}

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

.chk-container input:checked~.outter .checkmark {
    background: #658ae6;
}

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

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

/* =============================================== */
.tableFixHead table tr td.text-right {
    text-align: right;
}

.contents {
    max-width: 1382px;
}

.sc_action {
    display: flex;
}

.sc_action .btn {
    width: 120px;
    height: 40px;
    font-size: 18px;
    border-width: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

@media screen and (max-width:742px) {
    .main_title h3 {
        margin-bottom: 16px;
    }
}

@media screen and (max-width: 450px) {
    .main_title_content>.group {
        width: 100%;
    }

    .sc_action {
        width: 100%;
        flex-direction: column;
    }

    .sc_action .btn {
        width: 100%;
    }

    .sc_action .btn+.btn {
        margin-left: 0;
        margin-top: 16px;
    }

    .guide_group {
        width: 100%;
        margin-right: 0;
        margin-bottom: 16px;
    }

    .guide_group .button {
        width: 100%;
    }
}

/* 查詢條件 */
.inquire-data {
    margin-bottom: 24px;

}

.inquire-data-row {
    border: 2px solid #658ae6;
    border-radius: 15px;
    padding: 12px 16px;
    margin-bottom: 24px;
}

.inquire-data-row legend {
    font-size: 24px;
    font-weight: 500;
    margin-left: 16px;
    padding: 8px;
}

.inquire-data .input_control {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.inquire-data .input_group {
    width: 100%;
    max-width: 250px;
    margin-bottom: 0;
}

.inquire-data .action {
    display: flex;
    justify-content: end;
    gap: 8px;
}

.inquire-data .action .btn {
    width: 150px;
    height: 40px;
    font-size: 18px;
}

#clear-btn {
    border-width: 2px;
}

.datepicker_group {
    width: 100%;
    max-width: 270px;
}

.datepicker_group label {
    display: block;
    margin-bottom: 8px;
}

.datepicker_group .sc-datepicker {
    width: 100%;
    height: 36px;
    background: #285ee4;
}

.datepicker_group .sc-datepicker input {
    color: #fff;
}

/* 下拉式搜尋框樣式 */
.custom-select .select-items .search-items_content {
    position: relative;
    padding: 0;
    height: 40px;
    padding: 2px;
}

.select-items>.search-items_content input {
    display: block;
    width: calc(100% - 4px) !important;
    height: calc(100% - 4px);
    color: #383838;
    font-size: 18px;
    padding: 4px 16px;
    z-index: 2;
    border: 1px solid #767676 !important;
    border-radius: 20px;
}

/* typeahead */
.twitter-typeahead {
    width: 100%;
}

.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%;
    /* 可能需要調整以適應您的輸入框 */
    line-height: 1.5;
    border-radius: 8px;
    border: 2px solid #285ee4;

}

.tt-dataset {
    border-radius: 8px;
    overflow: hidden;
}

#scrollable-dropdown-menu .tt-suggestion {
    min-height: 36px;
    padding: 8px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    cursor: pointer;
}

#scrollable-dropdown-menu .tt-suggestion:not(:last-child) {
    border-bottom: 1px solid #285ee4;
}

#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;
}


/* table */
.tableFixHead {
    min-height: 484px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    border-radius: 12px;
    overflow-y: hidden;
    overflow-x: auto;
}

.tableFixHead table thead {
    position: sticky;
    top: 0;
}

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

.tb-ordinal {
    width: 60px;
    min-width: 60px;
}

.tb-vouchernum {
    width: 144px;
    min-width: 144px;
}

.tb-amount {
    width: 112px;
    min-width: 112px;
}

.tb-date {
    width: 144px;
    min-width: 144px;
}

.tb-vouchertype {
    width: 120px;
    min-width: 120px;
}

.tb-note {
    width: 216px;
    min-width: 216px;
    max-width: 216px;
}

.tb-edit {
    width: 224px;
    min-width: 224px;
}

td.tb-edit {
    display: flex;
    justify-content: center;
    align-items: center;
}

td.tb-edit>a {
    position: relative;
}

td.tb-edit>a.underline {
    color: #285ee4;
    padding-right: 8px;
    text-decoration: underline;
}

.tb-edit>a:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background-color: #285ee4;
}

/* 匯出傳票 #ex1_modal */
#ex1_modal {
    max-width: 450px;
}

#ex1_modal .input_group label {
    margin-bottom: 4px;
}

#ex1_modal .item_body {
    padding: 24px 16px;
}

#ex1_modal .item_row {
    display: flex;
}

#ex1_modal .item_row>div:nth-child(2) {
    transform: rotate(0deg);
    transition: transform .3s;
    user-select: none;
}

#ex1_modal .action {
    flex-direction: column;
}

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

#ex1_modal .action .btn+.btn {
    margin-top: 8px;
    margin-left: 0px;
}

@media screen and (max-width: 500px) {
    #ex1_modal .item_row {
        flex-direction: column;
        align-items: center;
    }

    #ex1_modal .item_row>div:nth-child(2) {
        transform: rotate(90deg);
        transition: transform .3s;
    }
}

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

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