
.rose-messenger {
    height: calc(100vh - 4rem) !important;
}

.rose-messenger .chat-message .chat-message-wrapper {
    position: relative;
}

[dir=rtl] .rose-messenger.app-chat .app-chat-sidebar-left, [dir=rtl] .app-chat .app-chat-contacts {
    height: 100% !important;
}

.rose-messenger.app-chat .app-chat-contacts .sidebar-body {
    height: calc(calc(100vh - 4.5rem) - 4.5rem) !important;
}

.rose-messenger.app-chat .app-chat-history {
    height: calc(-4rem + 100vh) !important;
}

.rose-messenger.app-chat .app-chat-history .chat-history-body .chat-history .chat-message .chat-message-text {
    background-color: #0fabb5 !important;
}

.rose-messenger.app-chat .app-chat-history .chat-history-body .chat-history .chat-message:not(.chat-message-right) .chat-message-text {
    background-color: #fff !important;
}

.rose-messenger .bg-body {
    height: 100% !important;
    background: #f2f2f2 !important;
}

.rose-messenger.app-chat .sidebar-body .chat-contact-list li.active {
    background-color: #0fabb5 !important;
}

.rose-messenger.app-chat .app-chat-sidebar-right {
    height: calc(100vh) !important;
}

.rose-messenger .chat-message-text {
    max-width: 650px !important;
}

.rose-messenger.app-chat .app-chat-history .chat-history-footer {
    border-radius: 0 !important;
}

.rose-messenger.app-chat .app-chat-history .chat-history-body .chat-history .chat-message .chat-message-wrapper .edit-message {
    transition: all .3s ease-out;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 0;
    bottom: 50%;
}

.rose-messenger.app-chat .app-chat-history .chat-history-body .chat-history .chat-message.chat-message-right .chat-message-wrapper .edit-message {
    transition: all .3s ease-out;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    right: 0;
    bottom: 50%;
    width: 20px;
}

.rose-messenger.app-chat .app-chat-history .chat-history-body .chat-history .chat-message:hover .edit-message {
    opacity: 1;
    visibility: visible;
    transform: translateX(-2rem);
}

.rose-messenger.app-chat .app-chat-history .chat-history-body .chat-history .chat-message.chat-message-right:hover .edit-message {
    opacity: 1;
    visibility: visible;
    transform: translateX(2rem);
}

.rose-messenger .pre-edit-box {
    transition: all .3s ease-out;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.rose-messenger .pre-reply-box {
    transition: all .3s ease-out;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    bottom: 2rem;
    width: 100%;
}


.rose-messenger .pre-edit-box p {
    background: #ebf6ff;
    margin: .7rem;
    padding: .3rem;
    border-right: solid;
    border-radius: 5px;
}

.rose-messenger.app-chat .active-edit-message {
    opacity: 1;
    visibility: visible;
    transform: translateY(-3.4rem);
}

.rose-messenger .tab-content > .active {
    padding-bottom: 2rem !important;
}

.rose-messenger .select2-container--default, .select2-container--default * {
    z-index: 9999 !important;
}

.rose-messenger.app-chat .app-chat-contacts .sidebar-body {
    height: calc(calc(100vh - 4.5rem) - 4.5rem) !important;
}

.rose-messenger.app-chat .app-chat-sidebar-right .sidebar-body {
    height: calc(calc(100vh - 4.5rem) - 10.5rem);
}
