
/*для плагина ordercomments*/
#ordercommentsHistory .item[data-plugin="orderactions"] .icon_messege {
    width: 16px;
    height: 16px;
    font-size: 15px;
    margin-top: 3px;
}

#ordercommentsHistory .item[data-plugin="orderactions"][data-type="task"] .icon_messege {
    color: #ffb100;
}

#ordercommentsHistory .item[data-plugin="orderactions"][data-type="task"] .icon_messege.orderactions_expired {
    color: #ed2509;
}

#ordercommentsHistory .item[data-plugin="orderactions"][data-type="task"] .icon_messege.orderactions_future {
    color: #22d13d;
}

#ordercommentsHistory .item[data-plugin="orderactions"][data-type="task"] .icon_messege.orderactions_return {
    color: #c1c6d1;
}


#ordercommentsHistory .item[data-plugin="orderactions"] .message {
    background: #f7f7d7;
    cursor: pointer;
    max-width: 100%;
}
#ordercommentsHistory .item[data-plugin="orderactions"][data-type="task"] > .message {
    background: #ffffff;
    box-shadow: 0 0 3px 0px #7a7a7a;
}

#ordercommentsHistory .item[data-plugin="orderactions"][data-type="task"] > .icon_messege.orderactions_expired ~ .message {
    box-shadow: 0 0 2px 1px #f00;
}

#ordercommentsHistory .item[data-plugin="orderactions"][data-type="task"] > .icon_messege.orderactions_now ~ .message {
    box-shadow: 0 0 2px 1px #e9842e;
}

#ordercommentsHistory .item[data-plugin="orderactions"][data-type="task"] > .icon_messege.orderactions_return ~ .message {
    box-shadow: none;
    padding: 5px 0px;
    color: #5c5c5c;
    background: transparent;
}

#ordercommentsHistory .item[data-plugin="orderactions"][data-type="task"] > .message:hover{
    background: #f1f1f1;
}



#ordercommentsHistory .pluginOrderactions {
    left: 280px;
    top: -50px;
    z-index: 1010;
}




.pluginOrderactions {
    background: var(--background-color-blank);
    box-sizing: border-box;
    box-shadow: 0 3px 10px -3px rgb(0 0 0 / 20%);
    padding: 7px;
    border-radius: 5px;
    max-width: 600px;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transition: box-shadow .1s ease-in-out;
}

.pluginOrderactions.not_active {
    box-shadow: none;
    background: transparent;
}


.pluginOrderactions[data-type="return"] {
    position: initial;
    margin-top: 0.8em;
}


.pluginOrderactions .orderactions_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    height: 30px;
    transition-duration: 85ms;
    transition-property: opacity, height;
    transition-timing-function: ease;
}


.pl-oa-task-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}


.pluginOrderactions.loading:before {
    content: "";
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: rgb(255 255 255 / 70%);
    position: absolute;
    z-index: 10;
}

.pluginOrderactions.loading:after {
    content: '';
    z-index: 10001;
    top: 50%;
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
    padding: 16px;
    margin-left: -18px;
    margin-top: -18px;
    border-radius: 50%;
    border: 2px solid rgb(10 10 10 / 10%);
    border-top: 2px solid #fc0;
    border-left: 2px solid #fc0;
    animation: wave 1.2s linear infinite;
}

.pl-oa-task-wrapper .pl-oa-task-selected {
    line-height: 24.5px;
}

.pl-oa-task-wrapper .pl-oa-task-selected input {
    font-size: 1.05em;
    padding: 0 5px;
    margin: 0;
    line-height: 20.5px;
    display: inline-block;
    border: none;
    max-width: 90px;
}

.pl-oa-task-wrapper .pl-oa-task-selected span.close {
    padding: 6px 4px;
}





/*новый блок ввода комментов и задач*/


.pluginOrderactions .orderactions_head {
    margin-bottom: 5px;
    line-height: 1em;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -7px;
    margin-left: -7px;
}


.pluginOrderactions textarea {
    height: 32px;
    width: 100% !important;
    min-width: 100%;
    max-width: 100%;
    min-height: 33px;
    max-height: 280px;
    background: rgb(0 20 80 / 5%);
    border-radius: 3px;
    resize: none;
    padding: 8px;
    box-sizing: border-box;
    line-height: 1.2em;
    border: 1px solid transparent;
}
.pluginOrderactions input {
    background: rgb(0 20 80 / 5%);
    border-radius: 3px;
    border: 1px solid transparent;
}

.pluginOrderactions textarea:focus {
    outline: none !important;
    background: #fff;
    border: 1px solid #a7a7a7;
}
.pluginOrderactions input:focus {
    background: #fff;
    outline: none !important;
    border: 1px solid #a7a7a7;
}

.pl-oa-title {
    font-weight: bold;
    color: var(--text-color);
    padding: 7px;
    border-radius: 5px 0px 5px 0px;
}

.pl-oa-message{
    position: relative;
}

.orderactions_add:not(.disabled){
    background: #1a9afe;
    color: #fff;
}
.orderactions_add:hover{
    background: #1a9afe;
    box-shadow: 0 0.5em 1em -0.25em rgb(0 0 0 / 20%);
}


.pluginOrderactions.not_active .pl-oa-title {
    background: transparent;
}

.pluginOrderactions.not_active .orderactions_footer {
    height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}


.pe_none {
    pointer-events: none;
}


/*для проставления ответсвенного*/
.pl-oa-to-form-wrapper {
    font-size: 13px;
    white-space: nowrap;
}

.pl-oa-to-form-wrapper .close{
    background: #f0f1f5;
    color: #334;
    border-radius: 3px;
    border: none;
    padding: 3px 5px;
}

.pl-oa-to-form-wrapper .close .icon16 {
    margin-right: 7px;
}
.pl-oa-to-form-wrapper .close .pl-oa-svg {
    margin-left: 7px;
    vertical-align: middle;
}
.pl-oa-to-form-wrapper .close span{
    max-width: 150px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    text-overflow: ellipsis;
}


/*быстрые действия*/
.pl-oa-presets-wrapper {
    position: relative;
}

.pl-oa-presets {
    white-space: nowrap;
    overflow: hidden;
    width: calc(100% - 32px);
    position: relative;
}

.pl-oa-presets-wrapper.more .pl-oa-presets{
    white-space: initial;
    overflow: initial;
    width: 100%;
}

.pl-oa-presets-wrapper .pl-oa-preset {
    color: #767676;
    display: inline-block;
    margin-right: 0.85em;
    margin-bottom: 0.75em;
    white-space: nowrap;
}


/*пресеты быстрых действий*/
.pl-oa-presets-wrapper.selected .pl-oa-preset:not(.active) {
    display: none;
}

.pl-oa-presets-wrapper.selected {
    margin-top: -3px;
}

.pl-oa-presets-wrapper.selected .btn_darr {
    display: none;
}

.pl-oa-presets-wrapper .pl-oa-preset.active {
    background: #f0f1f5;
    color: #334;
    border-radius: 3px;
    border: none;
    padding: 3px;
    margin-bottom: 7px;
}

.pl-oa-preset .close {
    vertical-align: top;
    margin-left: 0.3em;
}

.pl-oa-presets-wrapper .pl-oa-preset .icon16 {
    margin: 0;
    vertical-align: middle;
    margin-left: 2px;
    margin-top: -4px;
}

.pl-oa-presets-wrapper .btn_darr {
    position: absolute;
    right: 0;
    top: -7px;
}

.pl-oa-presets-wrapper.more .btn_darr {
    display: none;
}


.pluginOrderactions:not(.not_active) .selected_task_not_active{
    display: none;
}
.pluginOrderactions .selected_task_not_active{
    position: absolute;
    right: 4px;
    top: 4px;
}

/*адаптивность*/
@media (min-width: 1301px) {

}
@media (min-width: 1501px) {

}
