.asterisk {
    color: red;
}

.sc_action {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sc_action .btn {
    height: 40px;
    font-size: 18px;
    font-weight: 500;
    padding-left: 24px;
    padding-right: 24px;
}

.import_btn{
    border-width: 2px;
}

.create_btn {
    background-color: #658ae6;
}

.confirm_btn {
    background-color: #2e4a8f;
}

.create_btn:hover,
.confirm_btn:hover {
    background-color: #285ee4;
}

@media screen and (max-width: 500px) {
    .sc_action .btn {
        width: 100%;
    }
}

.item_wrap {
    min-width: 311px;
    margin-bottom: 24px;
}

.item_header {
    width: 100%;
    min-height: 44px;
    padding: 8px 16px;
    background: #2e4a8f;
    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);
}

.input_group {
    margin-bottom: 0;
}

.input_group input[data-role="amount"] {
    text-align: right;
    text-align-last: right;
}

.input_group.amount-input::before {
    content: "$";
    position: absolute;
    font-size: 16px;
    z-index: 1;
}

.input_group.amount-input input {
    padding-left: 30px;
}

/* ---------------------- */

/* 傳票資訊 */
.voucher_info_content .area_row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.voucher_info_content .input_control {
    display: flex;
    gap: 16px;
}

.voucher_info_content .input_group.amount-input::before {
    left: 12px;
    top: 32px;
}

.subpoena_date_item {
    width: 176px;
}

.subpoena_type_item {
    width: 176px;
    max-width: 176px;
}

.note_item {
    max-width: 311px;
}

.note_item textarea[name="description"] {
    width: 100%;
    height: 36px;
    padding: 4px 12px;
    border: 1px solid #c6c6c6;
    border-radius: 8px;
    background: #fff;
    font-size: 18px;
    text-align: left;
    color: #3d3d3d;
    outline: none;
    resize: vertical;
}

.subpoena_number_item {
    width: 200px;
}

.amount_item {
    width: 120px;
}

.create_type_item {
    width: 120px;
}

.balance_item input[readonly] {
    background-color: #2e4a8f;
    color: #fff
}

.balance_item::before {
    color: #fff;
}

.voucher_info_area .amount-input {
    width: 120px;
}

@media screen and (max-width: 1400px) {
    .voucher_info_content .input_control {
        flex-wrap: wrap;
    }
}


/* 借貸 */
.voucher_info_content,
.voucher_create_section {
    margin-bottom: 40px;
}

.voucher_create_section .action {
    margin-bottom: 16px;
    text-align: right;
}

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


.table-item_title {
    width: 100%;
    height: 64px;
    padding: 12px 16px;
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    border-radius: 8px 8px 0 0;
}

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

.item_title>span {
    font-size: 20px;
    font-weight: bold;
    margin-right: 4px;
}

.item_title>span.strong_text {
    font-size: 40px;
}

.calculate_pad {
    padding: 8px 16px;
    border-radius: 8px;
    margin-left: 16px;
}

/* table */
.table_mcsb_limit {
    overflow-x: auto;
}

.voucher_create_content .tableFixHead table tbody tr,
.voucher_create_content .tableFixHead table tbody tr:nth-child(2n+1){
    background-color: #ffffff;
}

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

.tableFixHead table tr td {
    height: 72px;
}

.btn-input-icon {
    width: 36px;
    height: 36px;
    border-radius: 0 8px 8px 0;
    background-color: #285ee4;
    color: #fff;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.tb-subid {
    width: 200px;
    min-width: 200px;
}

.tb-subid .input_group input {
    border-radius: 8px 0 0 8px;
}

.tb-name {
    width: 200px;
    min-width: 200px;
}

.tb-name .input_group input {
    border-radius: 8px 0 0 8px;
}

.tb-debit {
    width: 160px;
    min-width: 160px;
}

.tb-debit .input_group.amount-input::before {
    top: 10px;
    left: 8px;
}

.tb-debit .input_group.amount-input input {
    padding-left: 20px;
}

.tb-object {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
}

.tb-project {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
}

.tb-department {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
}

.tb-note {
    width: 311px;
    min-width: 311px;
}

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

.tb-delete .btn {
    width: 36px;
    height: 36px;
    background-color: #285ee4;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

/* select2 */
.select2-dropdown {
    max-height: 280px;
}

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 36px;
    display: flex;
    align-items: center;
    padding: 4px 12px;
}


.select2-selection__arrow b {
    display: none;
}

.select2-selection__arrow {
    display: inline-block;
    background-image: url('/static/v2/images/components/btn_type/slk_down_b_30.svg');
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.select2-container--open .select2-selection__arrow {
    transform: rotate(180deg);
}

/* 調整選中文本與箭頭空間分布 */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-left: auto;
    margin-right: 12px;
    order: 2;
}

/* 箭頭樣式可微調 */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    order: 3;
    right: 4px;
}

.select2-results__option {
    line-height: 1.2;
}


/* 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%;
    position: absolute !important;
    z-index: 9999;
}

.tt-suggestion {
    padding: 3px 20px;
    line-height: 24px;
}

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

.empty-message {
    padding: 3px 20px;
    text-align: center;
}


/* 借方會計項目 */
.debits_area .table-item_title {
    color: #fff;
    background-color: #285ee4;
}

.debits_area .calculate_pad {
    color: #fff;
    background-color: #658ae6;
}

.debits_area .tableFixHead table tr th {
    background-color: #e6edff;
    color: #000;
}

/* 貸方會計項目 */

.credits_area .table-item_title {
    color: #000;
    background-color: #ffe607;
}

.credits_area .calculate_pad {
    color: #000;
    background-color: #ecd400;
}

.credits_area .tableFixHead table tr th {
    background-color: #fffbd9;
    color: #000;
}