.right-panel__body{
    position: fixed;
    right: -51%;
    top: 0;
    bottom: 0;
    z-index: 1040;
    width: 35%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.25);
    padding: 30px 40px;
    transition: right 0.2s ease-in-out;
}

.right-panel__body .form-group label,
.right-panel__body p,
.right-panel__body .fa,
.right-panel__body ul,
.right-panel__body ol,
.right-panel__body dl{
    font-size: 0.75rem;
}

.right-panel__body .h6{
    font-size: 0.81rem;
}

.right-panel__body.active{
    right: 0;
}

.right-panel__close{
    position: absolute;
    right: 20px;
    top: 15px;
}

.right-panel__buttons{
    position: fixed;
    bottom: 50px;
    font-size: 30px;
    right: 15px;
    transition: right 0.2s ease-in-out;
    z-index: 1031;
}

.right-panel__buttons.active{
    right: 34%;
}

.right-panel__button{
    border-radius: 50%;
    background-color: #fff;
    width: 50px;
    height: 50px;
    box-shadow: 0px 0 10px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #BDC3C7;
    position: relative;
}

.right-panel__button:hover, .right-panel__button.active{
    color: #005fa2;
}

.right-panel__button .badge{
    position: absolute;
    top: -5px;
    left: -5px;
    box-shadow: 0px 0 10px rgba(0,0,0,0.25);
}

.right-panel__tab{
    display: none;
    height: 100%;
}

.right-panel__tab.active{
    display: block;
}

.records-reserve__reserve-control-col{
    min-width: 120px;
}

.call-center__toggles .btn-light:not(:disabled):not(.disabled).active{
    background-color: #005fa2;
    border-color: #1489e1;
    color: #ffffff;
}

.call-center__toggles .iradio_square-blue, .call-center__toggles .icheckbox_square-blue{
    margin-right: 10px;
}

.call-center__toggles .caller-goal__label{
    display: flex;
    align-items: center;
}

.caller-goal__children{
    margin-left: 40px;
    display: none;
}

.caller-goal__children.active{
    display: block;
}

.yday-comments__editor-wrap,
.feed-form__editor-wrap{
    height: 15%;
    margin-bottom: 50px;
}

#yday-comments__editor-toolbar,
.feed-form__editor-wrap .feed-form__editor-toolbar{
    border: unset;
    padding: unset;
    padding-top: 10px;
    padding-left: 76px;
}

#yday-comments__editor-toolbar .yday-comments__save{
    color: #fff;
}

#yday-comments__editor-toolbar.ql-snow.ql-toolbar:after {
    content: unset;
}

.yday-comments__comments-wrap{
    height: 80%;
    overflow-y: auto;
}

.yday-comments__comment-wrap{
    display: flex;
}

.yday-comments__comment-img{
    min-width: 60px;
    height: 60px;
}

.yday-comments__wrap{
    height: 100%;
    padding-bottom: 40px;
}

.yday-comments__comment-buttons{
    display: none;
    margin-top: -5px;
}

.yday-comments__comment-wrap:hover .yday-comments__comment-buttons{
    display: block;
}

.records-reserve__wrap{
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.records-reserve__records{
    overflow-y: auto;
}

.records-reserve__editor form{
    margin-bottom: 0px;
}

.records-reserve__reserve{
    padding-right: 10px;
    font-size: 0.85rem;
    border-bottom: 1px solid #f3f3f3;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.records-reserve__reserve .records-reserve__control-buttons{
    display: none;
    font-size: 1rem;
}

.records-reserve__reserve:hover .records-reserve__control-buttons{
    display: block;
}



.records-reserve__control-buttons{
    font-size: 1.2rem;
}

.records-reserve__control-buttons .fa{
    color: #c2c2c2;
}

.records-reserve__control-buttons .records-reserve__recorded:hover .fa,
.records-reserve__control-buttons .records-reserve__update:hover .fa{
    color: #005fa2;
}

.records-reserve__control-buttons .records-reserve__remove:hover .fa{
    color: #ec644b;
}

.records-reserve__records.reserve-search .records-reserve__reserve{
    display: none !important;
}

.records-reserve__records.reserve-search .records-reserve__reserve.reserve-search__result{
    display: flex !important;
}

#feed{
    display: flex;
    flex-direction: column;
}

#feed-head{
    flex-grow: 2;
}

#feed-messages{
    position: relative;
    overflow-y: auto;
    min-height: 40%;
    padding-top: 10px;
    padding-bottom: 16px;
    height: calc(100vh - 148px);
}
.feed-tab {
    padding: 0px 0px;
    margin: -30px -40px;
}

.feed-title__search{
    margin-top: 5px;
    position: relative;
}

.feed-search__clear{
    position: absolute;
    top: 6px;
    right: 15px;
    padding: 5px;
    cursor: pointer;
}

.feed-action{
    margin-top: -28px;
    text-align: right;
    padding-left: 277px;
    padding-bottom: 16px;
}

.ql-container.ql-snow.has-error,
.feed-form__editor-wrap.has-error
{
    border-color: #ff0017;
}

.feed-message{
    display: flex;
}

.feed-message .img-md{
    max-width: none;
}

#feed-recipients-modal .img-md{
    margin-right: 8px;
}

#feed-recipients-modal{
z-index: 1;
}

.feed-message .h6{
    margin-bottom: 4px;
}
.feed-message__answers-container .feed-message .h6{
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.feed-message__answers-container .feed-message .h6{
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.feed-message__user-position{
    font-weight: 400;
}

.feed-message__recepients{
    margin-bottom: 5px;
    line-height: 1;
}

.feed-message__user-position,
.feed-message__recepients-label{
    color: #6c757d;
}

.feed-message__recepients-label{
    font-size: 0.7rem;
    line-height: 1.1;
}

.feed-message__date{
    margin-right: 5px;
    color: inherit;
}

#feed-loader{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255,255,255,0.7);
}

.loaded #feed-loader{
    display: none;
}

.feed-more{
    text-align: center;
}

.feed-message{
    margin-bottom: 10px;
    position: relative;
}

.feed-message__actions{
    display: none;
    position: absolute;
    right: 10px;
    /*top: -5px;*/
    top: 0;
}

.feed-message:hover .feed-message__actions{
    display: block;
}

.feed-message__content p:last-child{
    /*margin: 0;*/
}
.feed-message__content span{
    word-break: break-word;
}

.feed-message__footer{
    font-size: 0.7rem;
}

.feed-messages__answer-place #feed-answer-form{
    background: #fff;
    padding: 5px;
    /*margin: 0;*/
    position: relative;
    border: 1px solid #DEE2E6;
    width: 495px;
    margin-left: 84px;
}

.feed-message__answers-container .feed-messages__answer-place #feed-answer-form{
    left: -105px;
}

.feed-messages__answer-place #feed-answer-form:before,
.feed-message__answers-container:before{
    display: block;
    content: '';
    position: absolute;
    top: -10px;
    left: 137px;
    border-bottom: 10px solid #F2F7F8;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    z-index: -1;
}

.feed-message__answers-container{
    margin: 0 0 10px;
    padding: 10px 5px 0;
    background: #F2F7F8;
    position: relative;
    margin-left: 84px;
    margin-right: 32px;
    margin-top: 16px;
    padding-top: 0px;
}

.feed-message__answers-container:after{
    display: table;
    content: '';
}

.feed-message__answer-message.grid-margin:last-child{
    margin: 0;
}

.right-panel__tab[data-tab="medcard-transfers"]{
    overflow-y: auto;
}

.medcard-transfers__list{
    padding-left: 1.5rem;
}

.today-records__wrap{
    font-size: 0.85rem;
    overflow-y: auto;
    height: 95%;
}

.today-records__item{
    padding-right: 10px;
    border-bottom: 1px solid #f3f3f3;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.today-records__item__status-bage{
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.ringing-list__record{
    font-size: 0.85rem;
    border-bottom: 1px solid #f3f3f3;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.right-panel__promotions{
    overflow-y: auto;
    max-height: 100%;
}

.feed-form__editor .ql-editor{
    padding: 21px 0 0 0;
    height: 120%;
}

.feed-form__answer .ql-editor{
    padding: 16px 0 0 0;
    height: 120%;
}
.feed-form__answer-wrap .ql-container.ql-snow,
.feed-form__answer-wrap .ql-toolbar.ql-snow{
    border: none;
}

.feed-messages__answer-place #feed-answer-form{
    padding: 0;
}

.feed-form__editor .ql-editor.ql-blank::before{
    font-style: normal;
    position: absolute;
    left: 76px;
    top: 21px;
    font-size: 13px;
    font-weight: 400;
}

.feed-form__answer .ql-editor.ql-blank::before{
    font-style: normal;
    position: absolute;
    left: 62px;
    top: 16px;
    font-size: 13px;
    font-weight: 400;
}

.feed-form__editor .ql-editor p,
.feed-form__answer .ql-editor p{
    font-family: Roboto;
    line-height: 15.6px;
    font-size: 13px;
    height: auto;
    padding: 0px 16px 16px 0px;
    position: static;
}

.feed-form__answer-toolbar{
    margin-left: 62px;
}
.ql-editor #tooltip-controls{
    padding-top: -5px;
}

.ql-editor ol li:not(.ql-direction-rtl), .ql-editor ul li:not(.ql-direction-rtl){
    padding-left: 0.5em;
}
.ql-snow .ql-tooltip[data-mode=link]::before {
    content: "Укажите ссылку:";
}
.ql-snow .ql-tooltip.ql-editing a.ql-action::after {
    content: 'Сохранить';
}
.right-panel__buttons.active{
    right: 640px;
}

@media (max-width: 1568px){
    .right-panel__body{
        width: 45%;
    }

    .right-panel__buttons.active{
        right: 46%;
    }

    #feed-recipients-modal{
        margin: -22% -15%;
    }

    .recipients-container{
        /*height: 459px !important;*/
    }
}

@media (max-width: 1200px){
    .right-panel__body {
        width: 45%;
        right: -100%;
    }

    #feed-recipients-modal{
        margin: -29% -15% !important;
    }
}

@media (max-width: 1150px){
    .right-panel__body{
        width: 50%;
    }

    .right-panel__buttons.active{
        right: 51%;
    }
    #feed-recipients-modal{
        margin: -38% -23% !important;
    }
}

@media (max-width: 900px) {
    .right-panel__body {
        width: 50%;
        right: -100%;
    }
}

@media (max-width: 765px){
    .right-panel__body{
        width: 100%;
        right: -105%;
    }
    #feed-recipients-modal{
        margin: -45% -28% !important;
    }
}

@media (max-width: 425px){
    .right-panel__body{
        width: 100%;
        right: -150%;
    }
    .right-panel__body.active{
        width: 100%;
    }
}

@media (max-width: 375px){
    .right-panel__body{
        width: 100%;
        right: -200%;
    }
}

.right-panel__body:not(.active) {
    right: -300%;
}

