.underline a {
    text-decoration: underline;
}

/* 按鈕狀態 */
.disabled {
    cursor: not-allowed;
}

/* 動作的按鈕 */
.act-disabled {
    cursor: not-allowed;
    background: #C6C6C6;
}

.disabled_btn {
    background-color: #C6C6C6;
    cursor: not-allowed;
    box-shadow: 0px 0px 0px 0;
}

.act_btn {
    height: 26px;
    line-height: 1;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.16);
}


.datepicker-outter {
    margin-bottom: 8px;
    font-size: 20px;
}

.sc-datepicker {
    width: 144px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    color: #285ee4;
    border: 2px solid transparent;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, .16);
    position: relative;
    padding: 0 12px;
}

#ranage_date {
    width: 100%;
    background: 0 0;
    border: none;
    outline: none;
    color: #285ee4;
    font-size: 18px;
    letter-spacing: 1px;
    box-sizing: border-box;
    cursor: pointer;
}

/* 去除 select 在聚焦時出現的預設邊框 */
#ranage_date:focus {
    outline: none;
    /* 移除聚焦時的藍色框 */
}

/*
@media screen and (max-width:742px) {
    .datepicker-outter {
        width: 100%;
    }

    .sc-datepicker {
        margin-left: 0;
        width: 100%;
        margin-top: 8px;
    }

    .sc-datepicker input {
        width: 100%;
    }
} */

.small {
    color: red;
}

/* 共用input */

.input_group input[readonly] {
    background: #E7E6E6;
}

.input_group input[disabled] {
    cursor: not-allowed;
}

.input_group textarea[readonly],
.input_group textarea[disabled] {
    background: #E7E6E6;
    cursor: not-allowed;
}

.select-selected-readonly {
    background: #E7E6E6;
    cursor: not-allowed;
    pointer-events: none;
}

.input_group {
    width: 100%;
    position: relative;
    margin-bottom: 24px;
    text-align-last: left;
}

.input_group:last-child {
    margin-bottom: 0;
}

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

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

.input_group.error input {
    border: 2px solid red;
}

.input_group .error_message {
    color: red;
    font-size: 14px;
    position: absolute;
    bottom: -14px;
    right: 8px;
    display: none;
}

.input_group.error .error_message {
    display: block;
}


.contents {
    max-width: 1352px;
}

.main_title .title {
    flex-wrap: wrap;
}

.data_content {
    max-width: 1352px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

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

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

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

.tableFixHead table tr th {
    background: #285ee4;
}

.tableFixHead table tr th.bg1 {
    background: #2E4A8F;
}

.tb-ordinal {
    /* width: 9.62%; */
    min-width: 80px;
    max-width: 80px;
}

.tb-amount {
    width: 15.38%;
    min-width: 128px;
}

.tb-edit {
    width: 28.86%;
    min-width: 240px;
}

.tableFixHead table tr th.text-right,
.tableFixHead table tr td.text-right {
    text-align: right;
}


.switch_group {
    display: flex;
    line-height: 1.4;
}

/* 付款狀態 按鈕 */
.switch_btn {
    display: block;
    position: relative;
    height: 30px;
}

.switch_btn input {
    display: none;
    position: absolute;
}

.switch_btn small {
    display: inline-block;
    width: 116px;
    height: 26px;
    background: #c6c6c6;
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    line-height: 24px;
}

.switch_btn small:before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: .3s;
    box-shadow: -3px 0 3px rgba(0, 0, 0, .1);
}

.switch_btn input:checked~small {
    background: #658ae6;
    transition: .3s;
}

.switch_btn input:checked~small:before {
    transform: translate(90px, 0px);
    transition: .3s;
}

.switch_btn small:after {
    content: "未繳稅";
    position: absolute;
    color: #fff;
    left: 50%;
    transform: translateX(-50%);
    transition: .3s;
}

.switch_btn input:checked~small:after {
    content: "已繳稅";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}


/* custom-select */
.custom-select {
    width: 100%;
}

.custom-select .select-selected {
    height: 36px;
    padding: 8px 28px 8px 16px;
    border: 1px solid #c6c6c6;
}

.custom-select .select-selected {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}

.custom-select .select-items div {
    height: 100%;
    min-height: 36px;
    border: 1px solid #c6c6c6;
    padding: 8px 16px;
    line-height: 1.1;
}

.custom-select .select-selected,
.custom-select .select-items div {
    text-align: left;
    text-align-last: left;
}

.select-selected.select-arrow-active,
.select-selected.select-arrow-active~.select-items>div {
    border-color: transparent transparent #285ee4 transparent;
}

.select-selected.select-arrow-active {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-top: 2px solid #658ae6;
    border-left: 2px solid #658ae6;
    border-right: 2px solid #658ae6;
}

.upload_outter .upload>a {
    height: 72px;
    width: 72px;
    display: block;
}

.upload_outter .upload img {
    height: 66px;
}

.upload_outter .mcs-horizontal-pics .hitem>img {
    width: 66px;
    height: 66px;
    object-fit: cover;
}

.item_header {
    width: 100%;
    height: 36px;
    padding: 0 24px;
    background: #658ae6;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
}

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


/* form_modal */
.form_modal.modal {
    padding: 0 0;
    min-width: 311px;
    max-width: 343px;
}

.form_modal .item_header {
    background: #285ee4;
    border-radius: 8px 8px 0 0;
}

.form_modal .item_header>span {
    color: #fff;
    font-size: 20px;
}

.form_modal .input_group label {
    margin-bottom: 0px;
}

.form_modal .input_group.fn_note>label {
    display: block;
}

.form_modal .input_group textarea {
    width: 100%;
    padding: 4px 12px;
    border: 1px solid #c6c6c6;
    border-radius: 8px;
    color: #3d3d3d;
    outline: none;
    font-size: 18px;
    min-height: 36px;
    resize: vertical;
}

.form_modal .input_group.error input {
    border: 2px solid red;
}

.form_modal .input_group .error_message {
    color: red;
    font-size: 14px;
    position: absolute;
    bottom: -17px;
    right: 8px;
    display: none;
}

.form_modal .input_group.error .error_message {
    display: block;
}

/* form_modal.type2 */
.form_modal.type2 .small {
    color: red;
}

.form_modal.type2 .item_body {
    padding: 24px 16px;
}

.modal.type2 .action {
    width: 100%;
    flex-direction: column-reverse;
}

.modal.type2 .action .btn {
    width: 100%;
}

.modal.type2 .action .btn+.btn {
    margin-left: 0px;
    margin-bottom: 16px;
}

.form_modal .message>p.text {
    font-size: 18px;
    color: #000000;
    line-height: 1.33;
    font-weight: 300;
}

.form_modal .message>a {
    display: flex;
    justify-content: end;
    text-decoration: underline;
    font-size: 14px;
}

.modal.type2 label input[type="file"] {
    display: none;
}


.input_group label.ordersfile_btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 新增檔案名稱 */
.ordersfile_name {
    display: inline-block;
    color: #000;
    font-size: 16px;
    position: relative;
}

.ordersfile_name>span {
    display: inline-block;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-file-btn {
    position: absolute;
    top: 4px;
    right: -24px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    border: none;
    background: url('/static/v2/images/cross_x.svg') no-repeat center center;
    background-size: contain;
}

.modal .table_select.error .select-selected {
    border: 1px solid red;
}

.modal .table_select .error_message {
    position: absolute;
    bottom: -18px;
    right: 4px;
    font-size: 14px;
    color: red;
    display: none;
}

.modal .table_select.error .error_message {
    display: block;
}