.modal-messages .modal-header {
    padding: 15px 10px 7px;
    text-align: left;
}

.modal-messages .modal-body {
    padding: 20px 0;
}
.modal-messages .text-body {
    color: #676a6c;
}

.modal-body .ow-anywhere {
    overflow-wrap: anywhere;
}

.modal-messages .float-left {
    float: left !important;
}

.modal-messages .float-right {
    float: right !important;
    margin-left: 10px;
}

.modal-messages .chat-avatar {
    border: 0.5px solid #dedede;
}

.modal-messages .float-right .chat-avatar {
    margin-right: 0;
}

.modal-messages .new-counter {
    margin-right: 10px;
}

.modal-messages .threads-col {
    max-height: 80vh;
    overflow-y: scroll;
}
.modal-messages .threadsContent {
    padding: 10px 10px 50px 10px;
}

.modal-messages .thread-header {
    /*margin-top: -7px;*/
    /*margin-left: -5px;*/
    /*margin-right: -10px;*/
}

.modal-messages .thread-lead {
    font-size: 1.1rem;
    line-height: 1.3rem;
    display: inline-block;
}

.modal-messages .thread .row {
    color: #676a6c;
    background: white;
    /*border: 0 none;*/
    display: block;
    overflow: visible;
    padding: 5px 0 10px 4px;
    margin: 0 0 10px 0;
    /*border-bottom: 3px solid white;*/
    border: 1px solid white;
    border-bottom: 1px solid #e7eaec;
    /*padding: 10px;*/
    border-radius: 3px;
    text-align: left;
}
.modal-messages .thread .row>div {
    padding-left: 7px;
}

.modal-messages .thread .row .thread-actions {
    opacity: 0;
}
.modal-messages .thread .row:hover .thread-actions,
.modal-messages .thread.-active .row .thread-actions {
    opacity: 1;
}

.modal-messages .thread-actions {
    padding-right: 5px;
    margin-right: -5px;
    top: -1px;
    position: absolute;
}

.modal-messages .thread-actions:hover {
    display: block;
    transform: scale(1.3);
    transform-origin: center;
    background-color: white;
    /*border: 0.5px solid #676a6c;*/
    box-shadow: 0 0 3px rgb(86 96 117 / 70%);
    border-radius: 50%;
    width: 19px;
    height: 19px;
    padding-right: 0;
    text-align: center;
    z-index: 1;
    position: absolute;
    top: -5px;
    right: -10px;
}

.modal-messages .thread-actions:hover i {
    color: #979c9f;
}

.modal-messages .thread .row:hover,
.modal-messages .thread.-active .row {
    background-color: #FAFAFB;
    border: 1px solid #e7eaec;
}

.modal-messages .thread.-active .row {
    padding-left: 1px;
    border-left: 4px solid #1cb393;
    background-color: rgba(26, 179, 148, 0.1);
}

.modal-messages .thread.-unread .thread-lead {
    font-weight: bold;
    color:#333;
}

.modal-messages .loader-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255,255,255,0.8);
}

.modal-messages .loader-overlay>div {
    height: 100%;
    display: flex;
    align-items: center;
}

.modal-messages .chat-element:last-of-type {
    border-bottom: none;
}
.modal-messages .chat-element-header {
    min-height: 36px;
    margin-left: 0;
    margin-right: 0;
}

.modal-messages .chat-element .attachment {
    width: 60%;
    text-align: left;
    /*margin: 0 auto;*/
    clear: both;
    border: 1px solid #dedede;
    padding: 15px;
    border-radius: 6px;
    background-color: rgba(161, 227, 227, 0.2);
    color: #333;
    border-left: 4px solid #24c6c7;
    min-width: 400px;
}

.modal-messages .chat-element .attachment .inquiry-from {
    padding-bottom: 5px;
}
.modal-messages .chat-element .attachment p {
    margin-bottom: 3px;
    /*text-align: left;*/
}
.modal-messages .chat-element .chat-content p {
    padding-left: 0;
    padding-right: 0;
    font-size: 1.3rem;
}
.modal-messages .chat-element .row {
    margin-left: 0;
    margin-right: 0;
}

.modal-messages .hidden-data-caption {
    padding-bottom: 5px;
}

.modal-messages .chat-col .ibox-content {
    overflow-y: scroll;
    max-height: 56vh;
}

.modal-messages .threadsContent .spiner-example,
.modal-messages .chat-activity-list .spiner-example {
    height: 50px;
    padding-top: 0;
}
.modal-messages .chat-content-right p {
    width: auto;
}

.modal-messages .search-box {
    margin-bottom: 5px;
    background: #f8fafb;
    position: sticky;
    top:0;
    z-index: 10;
    padding-bottom: 7px;
}

.modal-messages .search-icon{
    position: absolute;
    right: 14px;
    top: 8px;
}
.modal-messages .search-icon.fa-close {
    cursor: pointer;
}

@media (min-width: 768px) {
    .modal-dialog {
        margin: 30px auto 10px;
    }
    .modal-messages .chat-content-right p {
        max-width: 75%;
    }
}
@media (min-width: 1200px) {
    .modal-lg {
        width: 1160px;
    }
    .modal-messages .chat-element .attachment {
        min-width: 460px;
    }
}

@media (min-width: 1400px) {
    .modal-lg {
        width: 1360px;
    }
}

