*, *:before, *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
* {
    -webkit-text-size-adjust: none;
}

.common-title_s1 {
    font-size: 26px;
    line-height: 30px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    background: url(/common/design/user/img/images_index-add/title-common-bg.png) left top repeat;
    margin: 0 0 20px;
    padding: 20px 10px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.title-item_s1 {
    position: relative;
    display: block;
    font-size: 22px;
    line-height: 44px;
    font-weight: 700;
    color: #2aa400;
    border-bottom: 2px solid #2aa400;
    border-left: 10px solid #2aa400;
    padding: 0 10px;
    margin: 0 0 24px;
}
.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9999;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.loader .loader-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    padding: 15px 25px;
    max-height: 600px;
}

.loader-text {
    color: #ffffff;
    display: inline-block;
    margin-left: 5px;
}

.loader-bounceball {
    position: relative;
    display: inline-block;
    height: 37px;
    width: 15px;
}

.loader-bounceball:before {
    position: absolute;
    content: '';
    display: block;
    top: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ffffff;
    -webkit-transform-origin: 50%;
    -ms-transform-origin: 50%;
    transform-origin: 50%;
    -webkit-animation: loader-bounce 500ms alternate infinite ease;
    animation: loader-bounce 500ms alternate infinite ease;
}

@-webkit-keyframes loader-bounce {
    0% {
        top: 30px;
        height: 5px;
        border-radius: 60px 60px 20px 20px;
        -webkit-transform: scaleX(2);
        transform: scaleX(2);
    }
    35% {
        height: 15px;
        border-radius: 50%;
        -webkit-transform: scaleX(1);
        transform: scaleX(1);
    }
    100% {
        top: 0;
    }
}

@keyframes loader-bounce {
    0% {
        top: 30px;
        height: 5px;
        border-radius: 60px 60px 20px 20px;
        -webkit-transform: scaleX(2);
        transform: scaleX(2);
    }
    35% {
        height: 15px;
        border-radius: 50%;
        -webkit-transform: scaleX(1);
        transform: scaleX(1);
    }
    100% {
        top: 0;
    }
}

table{
    border-collapse:collapse;
    border-spacing:0;
}

ul,li,ol,li{
    list-style:none;
}

a:hover{
    text-decoration:none;
}

.wrap-purchase-stock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f8e9;
    padding: 15px 10px;
    flex-direction: column;
}

.col_purchase-stock select {
    border: 1px solid #e5e5e5;
    padding: 5px 8px;
    font-size: 14px;
    outline: none;
    appearance: none;
    -webkit-appearance: unset;
    width: 100%;
    outline: unset;
    border-radius: 4px;
    background-color: #fff;
}

.col_purchase-stock {
    display: flex;
    margin-bottom: 10px;
}

.col_purchase-stock p {
    margin-bottom: 8px;
}

.select_purchase-stock {
    position: relative;
    width: 100%;
}

.select_purchase-stock:after {
    content: '';
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-top: 7px solid #ff1616;
    position: absolute;
    top: 50%;
    right: 7px;
    transform: translateY(-50%);
    pointer-events: none;
}

.row_input-stock {
    width: 100%;
}

.row_select-stock {
    width: 100%;
    display: block;
}

.btn-stock-red {
    display: block;
    background: #e61e02;
    color: #fff;
    width: 100%;
    margin: 10px 0 0;
    padding: 15px 0;
    text-align: center;
    border-radius: 5px;
    border: 0;
}

.wrap-select-stock {
    margin-top: 10px;
}

.wrap-purchase-table {
    width: 100%;
    margin-top: 10px;
    background: #fff;
}

.purchase-table .col-stock {
    padding: 10px 5px;
    font-size: 11px;
    text-align: left;
}

.wrap-purchase-table .purchase-head {
    background: #4a4a4a;
    color: white;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.purchase-table a {
    color: #00a2ff;
    text-decoration: underline;
}

.purchase-table {
    display: flex;
    padding: 10px 0;
}

.wrap-purchase-table .col-btn-stock {
    background: #0097c8;
    color: #fff;
    border-radius: 5px;
    text-align: center;
    border: 0;
}

.wrap-purchase-table .col-btn-stock:focus {
    outline: unset;
}

.purchase-body {
    border-bottom: 1px dashed #c8c8c8;
    margin: 0 8px;
}

.wrap-purchase-table .stock-1 {
    width: 40%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wrap-purchase-table .stock-2 {
    width: 20%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wrap-purchase-table .stock-3 {
    width: 40%;
}

.popup-table th,
.popup-table td {
    border-collapse: collapse;
    text-align: left;
    font-size: 10px;
    width: 45px;
    min-width: 45px;
    max-width: 45px;
    overflow-wrap: break-word;
}

.popup-table th {
    color: #fff;
    text-align: center;
    border-right: 1px solid #727272;
    padding: 8px;
}

.popup-table td {
    border-right: 1px solid #727272;
    border-bottom: 1px dashed #c8c8c8;
    padding: 8px 5px;
    text-align: center;
}

.purchase-body:last-child {
    border-bottom: unset;
}
.row_input-stock input {
    border: 1px solid #e5e5e5;
    padding: 7px;
    font-size: 14px;
    width: 30%;
    border-radius: 4px;
    color: #343434;
    outline: unset;
}

.row_input-stock p {
    margin-bottom: 10px;
}

.main-purchase-table {
    max-height: 300px;
    overflow-y: scroll;
}

.wrap-recommend-purchase ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

/* Track */
.wrap-recommend-purchase ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
.wrap-recommend-purchase ::-webkit-scrollbar-thumb {
    background: #888;
}

/* Handle on hover */
.wrap-recommend-purchase ::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Popup box BEGIN */
.popup-search-stock {
    display: none;
    background: transparent;
    cursor: pointer;
    height: 100%;
    position: fixed;
    text-align: center;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
}

.popup-search-stock .helper{
    position: relative;
    height: 100%;
}
.popup-search-stock .popup-table {
    background-color: #fff;
    box-shadow: 2px 6px 36px 1px #c7c7c7;
    height: auto;
    vertical-align: middle;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px;
    width: auto;
    max-width: 92%;
}
.popupCloseButton {
    background: #000;
    border: 3px solid #fff;
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    position: absolute;
    top: -10px;
    right: -7px;
    font-size: 18px;
    width: 28px;
    height: 28px;
    text-align: center;
    z-index: 99999;
}
.popupCloseButton:hover {
    background-color: #ccc;
}
.popup-search-stock .table-sizes {
    max-width: max-content;
    overflow-x: auto;
    overflow-y: auto;
    border: 1px solid #727272;
    z-index: 9999;
}

.popup-search-stock .table-sizes {
    position: relative;
    max-height: 300px;
}

.popup-search-stock .table-sizes table {
    position: relative;
}

.popup-search-stock thead {
    width: 100%;
}

.popup-search-stock .table-sizes thead tr {
    display: inherit;
    position: sticky;
    top: 0;
}

.popup-search-stock .table-sizes thead tr:first-child th {
    background: #4a4a4a;
    font-size: 12px;
    font-weight: bold;
    line-height: 20px;
    padding: 12px 6px;
    text-align: center;
    text-transform: uppercase;
    height: 44px;
    vertical-align: middle;
}

.popup-search-stock thead tr th:first-child {
    min-width: 100px;
    max-width: 100px;
    white-space: unset;
    top: 0;
    left: 0;
    z-index: 9999;
}

.popup-search-stock .table-sizes thead th {
    width: 45px;
    min-width: 45px;
    max-width: 45px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
}

.popup-search-stock .table-sizes tbody tr {
    display: table;
}

.popup-search-stock .table-sizes tbody tr:last-child th,
.popup-search-stock .table-sizes tbody tr:last-child td {
    border-bottom: 0;
}

.popup-search-stock tbody th {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    white-space: unset;
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    z-index: 99999;
    background: #fff;
}

.popup-search-stock .popup-table tbody tr th {
    width: 100px;
    max-width: 100px;
    min-width: 100px;
    color: #343434;
    border-bottom: 1px dashed #c8c8c8;
}

.popup-search-stock .popup-table thead th:first-child {
    left: 0;
    z-index: 999999;
}

.wrap-purchase-stock {
    display: block;
    padding: 20px;
}

.row_input-stock {
    display: flex;
    align-items: center;
}

.row_select-stock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.row_select-stock p {
    width: 15%;
}

.col_input-stock {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wrap-select-stock {
    display: flex;
    margin-top: 0;
    width: 85%;
}

.col_purchase-stock {
    margin-right: 20px;
    margin-bottom: 0;
    width: calc((100% - 25px) / 2);
}

.wrap-select-stock .col_purchase-stock:last-child {
    margin-right: 0;
}
.btn-stock-red {
    width: 30%;
    margin: 30px auto;
    padding: 20px 5px;
    font-size: 18px;
    outline: unset;
    transition: transform .3s ease-in-out, box-shadow .3s ease-in-out;
}

.btn-stock-red:focus {
    outline: unset;
}

.btn-stock-red:hover {
    transform: translateY(-4px);
    box-shadow: 0 3px 3px #525252;
}

.wrap-purchase-table .col-btn-stock {
    transition: transform .3s ease-in-out, box-shadow .3s ease-in-out;
}

.wrap-purchase-table .col-btn-stock:hover {
    transform: translateY(-4px);
    box-shadow: 0 3px 3px #525252;
}

.main-purchase-table {
    max-height: 400px;
    overflow-y: auto;
}

.row_input-stock input {
    width: 20%;
}

.page-search-stock-pc .p-first {
    line-height: 26px;
    margin-bottom: 20px;
}

.purchase-table .col-stock {
    padding: 15px 5px;
}

.wrap-purchase-table .stock-1 {
    width: 50%;
}

.wrap-purchase-table .stock-2,
.wrap-purchase-table .stock-3 {
    width: 25%;
}

.purchase-head .stock-3 {
    padding: 15px 5px;
}

.purchase-table.purchase-head .col-stock {
    font-size: 16px;
}

.purchase-table .col-stock {
    font-size: 14px;
}

.popup-table tr td:first-child {
    width: 150px !important;
    min-width: 150px;
    max-width: 150px;
}

.popup-search-stock .popup-table {
    width: auto;
    padding: 10px;
    height: 420px;
}

.popup-table th,
.popup-table td {
    font-size: 14px;
    padding: 15px 6px;
    width: 63px;
    min-width: 63px;
    max-width: 63px;
}

.popupCloseButton {
    top: -15px;
    right: -10px;
    font-size: 24px;
    width: 35px;
    height: 35px;
    z-index: 99999;
}
/*scroll*/
.popup-search-stock thead tr th:first-child {
    min-width: 200px;
    max-width: 200px;
}

.popup-search-stock .popup-table tbody tr th {
    width: 200px;
    max-width: 200px;
    min-width: 200px;
}


.popup-search-stock .table-sizes thead th {
    width: 63px;
    min-width: 63px;
    max-width: 63px;
}

.popup-search-stock .table-sizes {
    max-height: 400px;
}

.wrap-recommend-purchase ::-webkit-scrollbar {
    width: 10px;
}
body, div, dl, dt, dd, ul, li, ol, h1, h2, h3, h4, h5, form, p, table, th, td, address, input {
    margin: 0;
    padding: 0;
}