.s-profit-wrapper {
    font-size: 0.85714rem;
    font-weight: normal;
    margin-top: 0.3em;
    position: relative;
    white-space: nowrap;
    display: inline-block;
}
/*для ui 2.0*/
#s-order[data-skeleton] .s-profit-wrapper{
    font-size: 0.85rem;
}




.s-order-total {
    position: relative;
}

.s-profit-wrapper > span {
    margin-left: 4px;
    padding: 0 2px;
}

.s-profit-wrapper > span.purchase {
    position: absolute;
    color: #cf4560;
    right: 100%;
    bottom: 0;
}
#s-order-items tr:not(:hover) .s-profit-wrapper > span.purchase{
    display: none;
}


.s-profit-wrapper.total > span.purchase {
    position: initial;
    right: initial;
    top: initial;
}
.s-profit-wrapper > span.profit {
    cursor: pointer;
}

.s-profit-wrapper > span.profit {
    color: #01b951;
}

.s-profit-wrapper .current_price{
    color: #5d96ff;
    margin-bottom: 0.3em;
}

.s-profit-wrapper > span.profit[data-vector="minus"] {
    color: #f00;
}

#s-order-items tr[data-id] .s-profit-wrapper > span.profit:hover {
    border-bottom: 1px solid;
}

#s-order-items tr[data-id]:hover .s-profit-wrapper > span.purchase {
    display: inline;
}
#s-order-items .s-order-total:hover .s-profit-wrapper > span.purchase {
    display: inline;
}

#proprofit-dialog .s-profit-wrapper > span {
    display: inline;
    margin-left: 0;
    position: initial;
}

#proprofit-dialog .s-profit-wrapper {
    display: flex;
    flex-direction: column;
}
#proprofit-dialog .s-profit-wrapper .current_price{
    display: none;
}
.s-pp-sku-purchase-wrapper{
    width: 100%;
}

.s-profit-wrapper.total {
    position: absolute;
    right: 0;
    bottom: -15px;
    font-size: 0.65em;
}


#s-pp-dialog .dialog-body{
    max-width: 400px;
}

#proprofit-dialog .proprofit-wrapper {
    font-size: 14px;
    margin-top: 25px;
    display: flex;

    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    padding: 7px;
    padding-top: 20px;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 2px 5px 0px rgb(0 0 0 / 25%);
}

#proprofit-dialog .proprofit-wrapper[data-name]:before {
    content: attr(data-name);
    position: absolute;
    top: -7px;
    right: 0;
    left: 0;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #a9a9a9;
}

#proprofit-dialog .current_to_order {
    display: table;
    margin: 0 auto;
    background: #ffede1;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px 0px rgb(0 0 0 / 25%);
}

#proprofit-dialog .proprofit-wrapper .price_qty {
    text-align: center;
    padding-bottom: 15px;
    flex: 1 1 100%;
}

#proprofit-dialog .proprofit-wrapper .price_qty .qty {
    font-size: 1.8em;
    font-family: monospace;
}

#proprofit-dialog .proprofit-wrapper .price_purchase_future {
    text-align: right;
}

#proprofit-dialog .purchase_price {
    width: 110px;
    position: relative;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    line-height: 22px;
}

#proprofit-dialog input[type="number"] {
    border: 0.125em solid #dedede;
    border-radius: 0.25em;
    padding: 0.3125em 0.5em;
    width: 100%;
    box-sizing: border-box;
    padding-right: 30px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    line-height: 22px;

}

#proprofit-dialog .purchase_price .currency {
    padding: 0.3125em 0.5em;
    right: 2px;
    position: absolute;
    top: 2px;
}

#proprofit-dialog input[type="number"]::-webkit-outer-spin-button,
#proprofit-dialog input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#proprofit-dialog input[type="number"][disabled] {
    border-color: transparent;
    color: #a5a5a5;
}

#proprofit-dialog .sku_purchase_label {
    margin: 15px 0px 10px;
    display: block;
}

/*исправляем косяки shop-script ui2*/
#s-order-items [title="Ожидаемая прибыль = Цена − Закупочная цена"], #proprofit-dialog [title="Ожидаемая прибыль = Цена − Закупочная цена"]{
    display: none;
}
#s-order-items [title="Ожидаемая прибыль = Прибыль по всем товарам + Услуги − Скидка"]{
    display: none;
}


.s-order-items-table td:last-child{
    overflow: initial;
}

@media (min-width: 761px){
    table#s-order-items td{
        padding: 0.375rem 0.75rem;
    }
}
