.underline>a {
    text-decoration: underline;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-right {
    justify-content: right;
}

.align-items-center {
    align-items: center;
}


/* 共用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;
}

textarea[name="description"] {
    width: 100%;
    min-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;
    /* overflow-y: auto; */
    resize: vertical;
    box-sizing: border-box;
}

.select-items div,
.select-selected {
    height: 36px;
    border: 1px solid #c6c6c6;
}

.input_group.error .select-selected {
    border: 2px solid red;
}

/* act_btn */
.act_btn {
    display: inline-block;
    /* width: 102px; */
    height: 26px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 400;
    padding: 6px 16px;
    margin-bottom: 4px;
}

.act-secondary {
    color: #fff;
    background-color:
        #bebebe;
    border: 1px solid #bebebe;
}

.act-warning {
    background: #e4b849;
    color: #fff;
    border: 1px solid #e4b849;
    margin-left: auto;
    margin-right: auto;
}

.act-outline-warning {
    background: transparent;
    color: #e4b849;
    border: 1px solid #e4b849;
}

.act-outline-danger {
    background: transparent;
    color: #df0f0f;
    border: 1px solid #df0f0f;
}

@media screen and (max-width:742px) {
    .main_title .title {
        flex-wrap: wrap;
    }
}

.content_info {
    width: 100%;
    padding: 16px 16px 0;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    background: #fff;
    border-radius: 15px 15px 0 0;
}

.content_info>.group {
    margin-bottom: 16px;
}

.record_btn {
    height: 32px;
    font-size: 18px;
    line-height: 1;
}

/* ----- sc-chk_content ----- */
.sc-chk_content {
    display: flex;
    align-items: center;
    position: relative;
    color: #285ee4;
    font-size: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sc-chk_content .chk_box {
    position: relative;
    margin-bottom: 8px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/*間隔線*/
.sc-chk_content .chk_box:after {
    content: '';
    position: absolute;
    top: 12px;
    right: 0px;
    height: 18px;
    width: 2px;
    background: #e0e0e0;
}

/*底部按鈕色塊*/
.sc-chk_content .chk_box .box_container {
    width: 220px;
    height: 40px;
    padding: 4px 16px 4px 44px;
    margin-right: 16px;
    border-radius: 24px;
    border: 2px solid transparent;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, .16);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    position: relative;
}

.sc-chk_content .chk_box .box_container:hover {
    border: 2px solid #285ee4;
}

.sc-chk_content .chk_box input {
    display: none;
}

/* ----- sc-search_content ----- */
.sc-search_content {
    display: flex;
}

.sc-search_content .table_select {
    margin-bottom: 8px;
}

/*checkbox位置設定*/
.sc-chk_content .chk_box .outter {
    position: absolute;
    left: 10px;
    top: 1px;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    transition: .3s;
}

.sc-chk_content .chk_box .outter:hover {
    background: #d2e0e4
}

.sc-chk_content .chk_box input:checked~.outter .checkmark:after {
    display: block;
    border-color: #fff;
}

.sc-chk_content .chk_box .checkmark {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 8px;
    left: 8px;
    border: 2px solid #285ee4;
    border-radius: 3px;
    /* z-index: 2; */
    background: #fff;
}

.sc-chk_content .chk_box input:checked~.outter .checkmark {
    background: #285ee4;
}

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

/* record_search */
.sc-search_content .record_search {
    /* width: 160px; */
    height: 40px;
    border-radius: 20px;
    border: 2px solid transparent;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, .16);
    margin-left: 16px;
    margin-bottom: 8px;
    background: #fff;
    padding-right: 32px;
    padding-left: 16px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.sc-search_content .record_search:hover {
    background: #fff;
    border: 2px solid #285ee4;
}

.sc-search_content .record_search input {
    width: 160px;
    font-size: 18px;
    color: #285ee4;
    border: 0;
    outline: none;
}

.sc-search_content .record_search:focus-within {
    border: 2px solid #285ee4;
}

.sc-search_content .record_search input::placeholder {
    color: #c4c4c4;
}

.sc-search_content .record_search button {
    border: 0;
    position: absolute;
    right: 10px;
    /* top: 10px; */
    background-color: transparent;
    z-index: 0;
    cursor: pointer;
    user-select: none;
}

.tableFixHead {
    border-radius: 0 0;
}

.tableFixHead table tr td {
    vertical-align: top;
}

.tableFixHead table tr td {
    padding-top: 8px;
    padding-bottom: 8px;
}

.tableFixHead table tr th:not(:first-child),
.tableFixHead table tr td:not(:first-child) {
    padding-left: 16px;
}

.tableFixHead table tr th:first-child,
.tableFixHead table tr td:first-child {
    padding-left: 24px;
}

.tb-data-side {
    width: 8.37%;
    min-width: 144px;
}

.tb-order {
    width: 9.3%;
    min-width: 160px;
}

.tb-name {
    width: 5.58%;
    min-width: 96px;
    max-width: 96px;
}

.tb-note {
    width: 9.3%;
    min-width: 160px;
    max-width: 160px;
}

.tb-amount {
    width: 9.3%;
    min-width: 160px;
}

.tb-amount>.group {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.tb-amount>.group>p {
    display: flex;
    justify-content: space-between;
    height: 30px;
}

.tb-payment-status {
    width: 9.3%;
    min-width: 160px;
}

.tb-payment-status>.group {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.4;
}

.tb-payment-status>.tb-block {
    height: 30px;
}

.tb-statu {
    width: 9.3%;
    min-width: 160px;
}

.tb-date {
    width: 7.92%;
    min-width: 136px;
}

.tb-date>.group {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.4;
}

.tb-date>.group>p {
    height: 30px;
}

.tb-act {
    width: 10.7%;
    min-width: 184px;
}

.tb-act>.group {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.4;
}

.tb-act>.group>label {
    height: 30px;
    user-select: none;
}

.tb-act>.group .btn_download {
    width: 102px;
    height: 26px;
}

.tb-act>.group>a {
    display: inline-block;
    height: 30px;
    position: relative;
}

.tb-act>.group>a>img {
    position: relative;
    top: -8px;
}

.tb-act>.tb-block {
    height: 30px;
}

.tb-act input[disabled] {
    cursor: not-allowed;
    background: #c6c6c6
}

.tb-img {
    width: 10.7%;
    min-width: 184px;
}

.tb-edit {
    width: 10.23%;
    min-width: 176px;
}

.tb-edit>a {
    display: inline-block;
    width: 44px;
    height: 44px;
}

/* 付款狀態 按鈕 */
.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;
}

.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: #285ee4;
    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%);
}

.switch_btn.switch_status small:after {
    content: "等待簽收";
    width: calc(100% - 20px);
    font-size: 16px;
    /* line-height: 1; */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.switch_btn.switch_status input:checked~small:after {
    content: "簽收完成";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media screen and (max-width: 600px) {

    .sc-chk_content {
        flex-direction: column;
        align-items: start;
    }

    .sc-chk_content,
    .sc-chk_content .chk_box,
    .sc-chk_content .chk_box .box_container {
        width: 100%;
    }

    .sc-chk_content .chk_box:after {
        display: none;
    }

    .sc-chk_content .sc-search_content {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .sc-chk_content .sc-search_content .record_search {
        width: 100%;
        margin-left: 0;
    }

    .sc-chk_content .sc-search_content .record_search input {
        width: 100%;
    }

    .content_info>.group {
        width: 100%;
    }

    .record_btn {
        width: 100%;
        font-size: 1rem;
        padding: 6px 4px;
    }
}

/* form_modal.type2 */

.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.modal {
    max-width: 343px;
}

.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: 22px;
    height: 22px;
    cursor: pointer;
    border: none;
    background: url('/static/v2/images/cross_x.svg') no-repeat center center;
    background-size: contain;
}

.modal .select-items div,
.modal .select-selected {
    line-height: 1;
}

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

/* .notice_modal.type_link */
.modal.type_link {
    width: 100%;
    max-width: 343px;
    padding: 24px 16px;
}

.modal.type_link .message {
    color: #000;
    text-align: center;
}

.modal.type_link .message p {
    margin-bottom: 8px;
}

.modal.type_link .message p>strong {
    font-weight: bold;
}

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

.modal.type_link .inner>.action {
    margin-top: 40px;
}