/*стандартные поля ввода комментария*/
.pl-oc-input-item .workflow-actions{
    position: absolute;
    bottom: 0px;
    font-size: 14px;
}


/*плагин ordercomments*/
#ordercomments {
    font-size: 12px;
    box-sizing: border-box;
    padding-bottom: 70px;
    max-width: 1200px;
    min-width: 320px;
    margin: 0 -5px;
}

#ordercommentsFilter{
    position: relative;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity .1s ease-in-out;
}

#ordercomments:hover #ordercommentsFilter{
    opacity: 1;
    pointer-events: initial;
}

.pl-oc-filters {
    position: absolute;
    right: 0;
    top: -26px;
}

#ordercommentsHistory {
    border-top-width: 3px;
    border-top-style: solid;
}

#ordercommentsInput {
    height: 100px;
    position: relative;
    z-index: 1000;
}

#ordercommentsHistory .time_day {
    position: relative;
}

#ordercommentsHistory .time_day.fixed_items {
    margin: 0.5em 0;
    border-radius: 0.5em;
    background: #f2f3f6;
    padding: 0px;
    border: 1px solid #e5e5e5;
}
#ordercommentsHistory .time_day.fixed_items .item[data-time-text]:after{
   /* content: none;*/
}

#ordercommentsHistory .day_wrapper{
    font-size: 0.95em;
    text-align: center;
    margin: 1em 0;
}

#ordercommentsHistory .day_wrapper div {
    display: inline-block;
    padding: 0px 6px;
    background: #f2f3f6;
    color: #878787;
    border-radius: 10px;
    line-height: 15px;
    margin: 2px 0;
}

#ordercommentsHistory .day_wrapper div.absolute {
    visibility: hidden;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
    transition: top .05s ease-in-out;
}

#ordercommentsHistory .item > div.message {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    max-width: calc(100% - 62px);
}

#ordercommentsHistory .item > div.message span {
    display: inline-block;
    vertical-align: top;
}

#ordercommentsHistory .item > .time {
    width: 63px;
    text-align: right;
    margin-right: 20px;
    color: #888;
    font-size: 0.95em;
    font-family: monospace;
    letter-spacing: -0.6px;
    white-space: nowrap;
}

#ordercommentsHistory .item > .contact {
    width: 160px;
    font-size: 11px;
    overflow: hidden;
}
#ordercommentsHistory .item > .description {
    width: calc(100% - 320px);
    padding-left: 24px;
    box-sizing: border-box;
}
#ordercommentsHistory .item > .description {
    font-size: 12px;
    -webkit-transition: all .2s;
    -moz-transition: all .2s;
    -ms-transition: all .2s;
    -o-transition: all .2s;
    transition: all .2s;
}
#ordercomments.edit_type {
    margin-top: -220px;
    width: 60%;
    margin-bottom: 220px;
}
#ordercommentsHistory .item.comment .description:before {
    content: "";
    background: #fff;
    position: absolute;
    left: 6px;
    top: 4px;
    padding: 5px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #3a3a3a;
}


#ordercommentsHistory span.first_desc, #ordercommentsHistory span.return_desc {
    color: #000;
    text-shadow: 0 0 1px white;
    padding: 3px;
    border-radius: 2px;
    margin-left: 8px;
    box-shadow: 0 0 0 1px #dedede;
}

#ordercommentsHistory span[data-default]:before {
    content: attr(data-default);
    font-weight: bold;
    padding-right: 1em;
    margin-right: -0.6em;
}

#ordercommentsHistory span.return_desc {
    background: #f7f7d7;
    padding: 5px;
}

#ordercommentsHistory .item.message .return_desc {
    background: #f5f8fd;
}


#ordercommentsHistory .item.default_log .return_desc {
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

#ordercommentsHistory .item.callback .return_desc {
    background: #f4d9ff;
}

#ordercommentsHistory .item.pay .return_desc {
    background: #35c663;
    color: #fff;
    text-shadow: 0 0 1px black;
    box-shadow: 0 0 3px 1px #0e3e1d;
}

#ordercommentsHistory .items_wrapper {
    margin-left: 30px;
    margin-right: 10px;
    position: relative;
}
#ordercommentsHistory .item {
    position: relative;
    padding: 5px 0;
    margin-left: -30px;
    padding-left: 30px;
    margin-right: -10px;
    padding-right: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    flex-wrap: wrap;
}


#ordercommentsHistory .fixed_items.time_day .item {
    margin: 0;
    padding: 7px 10px;
}
#ordercommentsHistory .fixed_items.time_day .time_day:not(:first-child) {
    border-top: 1px solid #d1d1d1;
}

.fixed_items_name{
    position: absolute;
    top: 0.7em;
    right: 1em;
    color: #8f8f8f;
    font-size: 0.95em;
    transform: rotate(25deg);
}

#ordercommentsHistory .items_wrapper .item:nth-child(2){
    padding-top: 2em;
}

#ordercommentsHistory .items_wrapper .item.hover {

}
#ordercommentsHistory .active_right_menu {

}



.pl-oc-contact-wrapper {
    bottom: 0;
    display: flex;
    flex-direction: column;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
}

.pl-oc-contact-wrapper div {
    padding: 0.3em 0;
    overflow: hidden;
}

.pl-oc-contact-wrapper .contact_sticky {
    position: sticky;
    bottom: 0.25rem;
    top: 92px;
    background-position: 0 !important;

}



.pl-oc-contact-wrapper .contact_absolute {
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    transition: top .05s ease-in-out;
    background-position: 0 !important;
    pointer-events: initial;
}
.pl-oc-contact-wrapper i.icon16.userpic20{
    border: 2px solid #fff;
}
.pl-oc-contact-wrapper i.icon16.userpic20.task_from{
    margin-right: -12px;
    transition: margin .05s ease-in-out;
}
.pl-oc-contact-wrapper:hover i.icon16.userpic20.task_from{
    margin-right: 3px;
}

.pl-oc-contact-wrapper .task_from{
    display: none;
}

/* комменты логов */
.pl-oc-comment{
    position: relative;
    margin-bottom: 1em;
    margin-top: 0.7em;
}
.pl-oc-comment .message{
    margin-left: 0.5em;
}
.pl-oc-comment[data-time-text]:after {
    content: attr(data-time-text);
    color: #888;
    font-size: 0.85em;
    font-family: monospace;
    width: 2.67em;
    margin-left: 0.5em;
    visibility:hidden;
}
#ordercommentsHistory .item.hover .pl-oc-comment[data-time-text]:after{
    visibility:visible;
}



#ordercommentsHistory .contact_items {
    position: relative;
}

#ordercommentsHistory .contact_items:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

#ordercommentsHistory .item .message {
    display: inline-block;
    padding: 5px;
    position: relative;
    border-radius: 2px;
    min-width: 40px;
    min-height: 9px;
    box-shadow: 0 1px 2px #c5c5c5;
}

#ordercommentsHistory .item[data-time-text]:after {
    content: attr(data-time-text);
    color: #888;
    font-size: 0.85em;
    font-family: monospace;
    width: 2.67em;
    margin-left: 0.5em;
}

/*для логов по умолчанию*/
#ordercommentsHistory .item[data-plugin="default_log"] .message {
    padding: 0px 0px;
    box-shadow: none;
}

#ordercommentsHistory .item[data-plugin="status_update"] .message {
    padding: 0px 0px;
    box-shadow: none;
}

#ordercommentsHistory .item[data-plugin="default_log"][data-type="comment_no_edit"] .message {
    background: #f7f7d7;
    padding: 7px 5px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 25%);
}

#ordercommentsHistory .item[data-plugin="default_log"][data-type="message"] .message {
    background: #dce9ff;
    padding: 7px 5px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 25%);
}

#ordercommentsHistory .item[data-plugin="default_log"][data-type="callback"] .message {
    background: #f4d9ff;
    padding: 7px 5px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 25%);
}

#ordercommentsHistory .item[data-plugin="status_update"][data-type="pay"] .message {
    background: #35c663;
    color: #fff;
    padding: 7px 5px;
    text-shadow: 0 1px 2px #000;
    box-shadow: 0 1px 2px rgb(0 0 0 / 25%);
}

#ordercommentsHistory .item .icon_messege {
    place-self: flex-start;
    margin: 0;
    margin-right: 3px;
}

/*все иконки*/

#ordercommentsHistory i.userpic20{
    margin: 0;
}

#ordercomments i.userpic20, #pl-oa-task-counter i.userpic20{
    width: 20px;
    height: 20px;
    vertical-align: middle;
    background-position: initial;
}


#ordercomments i.icon_default , #pl-oa-task-counter i.icon_default{
    margin: 2px;
    vertical-align: middle;
    margin-top: -3px;
}


#ordercommentsHistory i.icon_default, #pl-oa-task-counter i.icon_default{
    background-color: #fff;
    border-radius: 50%;
    border: 4px solid #fff;
    padding: 0px;
    box-shadow: 0 0 0px 1px #d7d7d7;
    margin: 0px;
    vertical-align: middle;
    line-height: 1em;
    margin-top: -1px;
}

#ordercomments i.pl-oc_initials, #pl-oa-task-counter i.pl-oc_initials{
    background: #ccc;
    text-indent: initial;
    font-style: initial;
    color: #fff;
    text-shadow: 0 0 1px #000;
    font-size: 10.4px;
    text-align: center;
    line-height: 20px;
}

#ordercommentsHistory .pl-oc-comments {
    flex-basis: 100%;
    margin-left: 0.5em;
}

#ordercomments .pe_none {
    pointer-events: none;
}

.pl-oc-contact-name-item {
    color: #767676;
    position: absolute;
    left: 0;
    top: .8em;
    z-index: 1;
    font-size: 0.9em;
}


.pl-oc-contact-name {
    display: none;
}



/*адаптивность*/
@media (min-width: 1301px) {
    #ordercommentsHistory .contact_item .item[data-time-text]:after {
        position: absolute;
        line-height: 1.31579em;
        margin-left: 0;
        left: 58px;
        top: 0.5em;
        font-size: 0.9em;
    }
    #ordercommentsHistory .fixed_items .contact_item .item[data-time-text]:after{
        left: -36px;
        top: 0.6em;
    }
    #ordercommentsInput{
        margin-top: -88px;
        width: calc(70% - 10px);
    }
    #ordercomments {
        margin: 0;
        margin-left: -5px;
    }



    #ordercommentsHistory .items_wrapper .item {
        padding-top: 7px;
        padding-bottom: 7px;
        margin-left: -125px;
        padding-left: 125px;
        align-items: flex-start;
    }
    #ordercommentsHistory .contact_item {
        margin-left: 95px;
    }

    #ordercommentsHistory .day_wrapper {
        width: 53px;
        text-align: right;
        line-height: 26px;
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        font-size: 0.9em;
    }

    #ordercommentsHistory .day_wrapper div {
        color: #888;
        font-family: monospace;
        position: sticky;
        top: 92px;
        padding: 0;
        background: transparent;
        border-radius: initial;
        margin: 0;
        line-height: 2.5em;
    }


    #ordercommentsHistory .time_day.hover .day_wrapper div {
        visibility: hidden;
    }
    #ordercommentsHistory .time_day.hover .day_wrapper div.absolute {
        visibility: visible;
    }
    #ordercommentsHistory .contact_items {
        border-bottom: 1px solid #f1f1f1;
    }

    .pl-oc-contact-wrapper {
        width: 160px;
    }

    .contact_items.hover .pl-oc-contact-wrapper .contact_sticky {
        visibility: hidden;
    }
    .contact_items.hover .pl-oc-contact-wrapper .contact_absolute {
        visibility: visible;
    }

}


@media (min-width: 1501px) {
    .pl-oc-contact-name-item {
        display: none;
    }
    #ordercommentsInput{
        width: 70%;
    }

    #ordercommentsHistory .items_wrapper {
        margin-left: 190px;
        margin-right: 10px;
    }

    #ordercommentsHistory .items_wrapper .item {
        margin-left: -285px;
        padding-left: 285px;
    }

    #ordercommentsHistory .items_wrapper .item .icon_messege {
        position: absolute;
        top: 5px;
        left: 260px;
    }
    .pl-oc-contact-name {
        display: inline-block;
        margin-left: 5px;
    }

    #ordercommentsHistory .contact_items .item[data-time-text]:after{
        font-size: 0.95em;
    }
    #ordercommentsHistory .day_wrapper{
        font-size: 0.95em;
    }
    #ordercommentsHistory .items_wrapper .item:nth-child(2){
        padding-top: 0.5em;
    }
    .pl-oc-contact-wrapper .task_from{
        display: inline-block;
    }
}








@media (max-width: 1600px) {
    #ordercomments.edit_type {
        margin-top: 0px;
        width: 100%;
    }
}