.underline a {
    text-decoration: underline
}

.input_group input[readonly] {
    background: #e7e6e6
}

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

th.sorting>i {
    margin-left: 4px;
}

/* ---------- checkbox 勾選 --------- */
/*勾選同意及按鍵區*/
.chk-container {
    display: flex;
    align-items: center;
    font-size: 18px;
    letter-spacing: 1px;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
}

.chk-container input {
    position: absolute;
    top: 8px;
    left: 8px;
    opacity: 0;
    cursor: pointer;
}

.chk-container .checkmark {
    display: inline-block;
    height: 20px;
    width: 20px;
    border-radius: 3px;
    position: relative;
}

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

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

.chk-container .outter {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: .3s;
}

.chk-container .outter:hover {
    background: #E0E7F8;
}

.chk-container .outter:active {
    background: #B9C9F4;
}

.chk-container .outter .checkmark {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #285ee4;
    z-index: 2;
    background: 0 0;
}

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

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

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


.tableFixHead {
    min-height: 484px;
    scrollbar-width: auto;
    overflow-x: visible;
    overflow-y: auto;
    border-radius: 15px;
    background: #fff;
    margin-bottom: 16px;
    box-shadow: 0 3px 6px 0 rgba(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.text-right,
.tableFixHead table tr td.text-right {
    text-align: right
}

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

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

.tb-img{
    width: 96px;
    min-width: 96px;
}

.tb-img > img{
    width: 44px;
    height: 44px;
    cursor: pointer;
}

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

.tb-category{
    width: 96px;
    max-width: 96px;
    min-width: 96px;
}

.tb-spec {
    width: 96px;
    max-width: 96px;
    min-width: 96px;
}

.tb-count {
    width: 128px;
    min-width: 128px;
}

.tb-price {
    width: 128px;
    min-width: 128px
}

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

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

.tb-edit>a {
    display: block;
    width: 100%;
    height: 44px;
    line-height: 44px;
    cursor: pointer
}

.tb-edit>a.disabled {
    cursor: not-allowed;
}


/* inquire-data */

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

.inquire-data .input_group input {
    width: 100%;
    min-width: 311px;
    max-width: 311px;
    height: 36px;
    font-size: 20px;
    background: #fff;
    border: 1px solid #C6C6C6;
    outline: none;
    border-radius: 8px;
    padding: 8px 16px;
    box-sizing: border-box;
}

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

.inquire-data {
    position: relative;
    display: flex;
    margin-bottom: 24px
}

.inquire-data-row {
    border: 2px solid #285ee4;
    border-radius: 15px;
    padding: 24px 16px;
    display: flex;
    width: 100%;
}

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

.inquire-data .action {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    margin-top: 24px;
    margin-left: 16px
}

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

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

.inquire-data .input_group {
    margin-bottom: 16px;
}

.inquire-data .input_group:not(:last-child) {
    margin-right: 16px;
}

/* 商品分類 */
.category-search,
.category-search input[type=text] {
    cursor: pointer;
}

.category-search {
    position: relative;
}

.category-search .right_arrow_btn {
    width: 36px;
    height: 36px;
    position: absolute;
    top: 0;
    right: 0;
}

/* 商品規格 */
.select_group {
    width: 100%;
    min-width: 311px;
    max-width: 311px;
    margin-right: 16px;
    margin-bottom: 16px;
    position: relative;
    text-align-last: left;
}

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

/* 下拉式checkbox可複選 */
.dropdown-toggle {
    width: 100%;
    height: 36px;
    font-size: 20px;
    font-weight: 300;
    color: #b4b4b4;
    padding: 4px 32px 4px 12px;
    line-height: 1.3;
    background: #fff;
    border: 1px solid #C6C6C6;
    border-radius: 8px;
    outline: none;
    position: relative;
    cursor: pointer;
}

.dropdown-toggle.select_changed {
    color: #3d3d3d;
}

.dropdown-toggle::after {
    position: absolute;
    content: "";
    top: 9px;
    right: 10px;
    background-image: url(/static/v2/images/slk_down.svg);
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
}

.dropdown-toggle.select-arrow-active:after {
    border-color: transparent transparent #fff transparent;
    top: 9px;
    transform: rotate(180deg);
    transition: 0.3s;
}

.dropdown-toggle .selected-text {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    z-index: 1;
    overflow-y: auto;
    width: 100%;
}

.dropdown.active {
    max-height: 200px;
    border-radius: 8px;
    display: block;
}

/* 搜尋輸入框樣式 */
.dropdown ul li:first-child {
    padding: 8px;
}

.dropdown ul li:not(:first-child) label {
    padding: 4px 8px;
}

.dropdown ul li:not(:first-child):hover {
    background: #E0E7F8;
}

.dropdown ul li>label {
    display: flex;
    line-height: 1.2;
    margin-bottom: 0;
}

.select_group .search-input {
    width: 100%;
    height: 36px;
    font-size: 20px;
    background: #fff;
    border: 1px solid #C6C6C6;
    outline: none;
    border-radius: 8px;
    padding: 8px 16px;
    box-sizing: border-box;
}

.dropdown ul li.no-results {
    height: 34px;
    line-height: 1.5;
}

.dropdown ul li.no-results:hover {
    background-color: #f9f9f9;
}

.dropdown ul li.no-results label {
    padding: 0 16px;
}

@media screen and (max-width:1836px) {
    .inquire-data {
        flex-direction: column;
    }

    .inquire-data .input_control {
        width: 100%;
        flex-direction: column;
    }

    .inquire-data .input_group {
        width: 100%;
    }

    .inquire-data .input_group:not(:last-child) {
        margin-right: 0;
    }

    .inquire-data .input_group input {
        max-width: 100%;
    }

    .select_group {
        max-width: 100%;
        margin-right: 0;
    }

    .inquire-data .action {
        flex-direction: column-reverse;
        margin-left: 0;

    }

    .inquire-data .action .btn {
        width: 100%;
    }

    .inquire-data .action>.btn+.btn {
        margin-left: 0;
        margin-bottom: 16px;
    }

    .dropdown-toggle .selected-text {
        max-width: 450px;
    }

    .dropdown.active {
        max-height: 400px;
    }
}

modal_title_content {
    display: flex;
    flex-wrap: wrap;
}

.modal_title_content h3 {
    font-size: 35px;
    font-weight: 600;
    color: #000000;
    letter-spacing: 1px;
    margin-right: 16px;
    display: flex;
    /* align-items: end; */
    position: relative;
}

.sc-search_content {
    display: flex;
    position: relative;
    margin-bottom: 24px;
}

.modal .tableFixHead {
    height: 100%;
    min-height: 484px;
    max-height: 600px;
    overflow-y: auto;
    position: relative;
}

.modal table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

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

/* #category_modal */
#category_modal {
    max-width: 1400px;
    padding: 24px;
}

#category_modal .modal_title_content {
    align-items: end;
    margin-bottom: 16px;
}

#category_modal .modal_title_content>a {
    text-decoration: underline;
}

#category_modal .modal-content {
    margin-bottom: 24px;
}

#category_modal .category_content {
    max-width: 408px;
    width: 100%;
    height: 476px;
    background: #fff;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    border-radius: 15px;
    margin-bottom: 24px;
    position: relative;
    overflow-y: auto;
}

#category_modal .category_content:not(:first-child):before {
    content: url(/static/v2/images/components/btn_type/triangle_b_44.svg);
    width: 36px;
    height: 36px;
    position: absolute;
    left: -40px;
    top: 50%;
    z-index: 1;
}

#category_modal .category_content:not(:last-child) {
    margin-right: 48px;
}

#category_modal table tr th.all-check,
#category_modal table tr td.tb-checkbox {
    width: 60px;
    min-width: 60px;
}

#category_modal .tableFixHead table tr th {
    border-radius: 15px 15px 0 0;
}

#category_modal .tableFixHead table tr td {
    text-align: left;
}

#category_modal.modal .action {
    justify-content: end;
}
