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

.nodata_content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 40px auto;
}

.nodata_content img {
    width: 343px;
    height: 300px;
}

.nodata_content>span {
    color: #6a6a6a;
    font-size: 20px;
    margin-top: 8px;
}


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

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

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


.contents {
    width: 100%;
    /* max-width: 720px; */
    min-width: 343px;
}

.act_btn {
    display: inline-block;
    height: 26px;
    font-size: 14px;
    font-weight: 400;
    padding: 6px 16px;
    margin-bottom: 0;
    /* box-shadow: 2px 4px 10px 0 rgba(4, 128, 128, 0.25); */
    box-sizing: border-box;
    line-height: 1;
}

.btn.btn-light-success {
    color: #fff;
    background: #285ee4;
}

.btn.btn-light-success:hover {
    color: #fff;
    background: #2E4A8F;
}

.btn.btn-light-success:focus,
.btn.btn-light-success:active {
    color: #fff;
    background: #2E4A8F;
    transform: scale(.98);
}

.act-disabled {
    cursor: not-allowed;
    background-color: #C6C6C6;
}

.tableFixHead {
    width: 100%;
    min-width: 311px;
    min-height: 484px;
    scrollbar-width: auto;
    overflow: auto;
    border-radius: 15px;
    background: #fff;
}

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

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

.tb-itemname {
    width: 37.46%;
    min-width: 230px;
    max-width: 230px;
}

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

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

.switch_btn small {
    display: inline-block;
    width: 88px;
    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;
    transform: translateX(0px);
}

.switch_btn input:checked~small:before {
    transform: translateX(62px);
}

.switch_btn small:after {
    content: "未繳費";
    width: 60%;
    color: #fff;
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -55%);
    transition: .3s;
}

.switch_btn input:checked~small:after {
    content: "已繳費";
    position: absolute;
    top: 50%;
    left: 42%;
}

.tb-price>.group {
    display: flex;
    justify-content: end;
    align-items: center;
}

.tb-price>.group>.i_info2 {
    background-image: url(/static/v2/images/components/info/info_qm3_y.svg);
    width: 24px;
    height: 24px;
    margin-left: 4px;
}

.tippy-box {
    background-color: #fff;
    border: 2px solid #e4b849;
    color: #e4b849;
    position: relative;
    z-index: 2;
}

.tippy-box .tippy-arrow {
    color: #fff;
}

.tippy-arrow:before {
    content: "";
    position: absolute;
    border-style: solid;
    border-width: 0 10px 10px 10px;
    /* 製作三角形 */
    border-color: transparent transparent #fff transparent;
    /* 將底部邊框設為白色，其他邊框為透明 */
    z-index: 1;
}

.tippy-box[data-placement^=bottom]>.tippy-arrow:before {
    top: -5px;
}

.tippy-arrow:after {
    content: "";
    position: absolute;
    top: -9px;
    /* 調整位置，讓邊框稍微大於箭頭 */
    left: -4px;
    /* 讓邊緣顯示在外側 */
    border-style: solid;
    border-width: 0 12px 12px 12px;
    /* 比上面的箭頭大一點的三角形來當邊框 */
    border-color: transparent transparent #fbb034 transparent;
    /* 底邊設為透明，兩側和頂部為黃色 */
    z-index: -1;
}

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