.modal-xlg {
    width: 45%;
}

@media (max-width: 991px) {    
    .modal-xlg {
        width: auto;
    }
}

@media (max-width: 767px) {    
    .modal-xlg {
        width: auto;
    }
}

.modal .modal-body {
    padding: 0;
    background-color: #fff;
}

.current-msg {
    background-color: #ffdfd6;
}

.modal input[class="form-control"],
.modal select[class="form-control"] {
    box-shadow: none;
    border-width: 1px;
    height: 34px;
    border-color: #e4e4e4;
}

.message .fa-comments-o {
    font-size: 23px;
}

/*.message .media .user-pic {
    padding: 4% 10px;
}*/

.listing-tb {
    z-index: 10;
}

.listing-tb .modal-body {
    height: 542px;
    background-color: #f3f3f3;
}

.listing-tb .modal-body,
.direct-chat .modal-body {
    overflow: auto;
}

.listing-tb .user-pic img {
    border-radius: 50%;
    width: 40px;
}

.listing-tb .title,
.listing-tb .media-body .box-cell p,
.listing-tb .media-body .box-cell span {
    margin: 11px 0;
}

.listing-tb .title > small {
    display: block;
    margin-top: 5px;
}

.listing-tb .badge {
    background-color: #f04f23;
}

.listing-tb .title {
    font-size: 15px;
}

.listing-tb tbody > tr > td,
.listing-tb .title > small {
    font-size: 12px;
}

.listing-tb .name {
    font-size: 16px;
}

.listing-tb tbody > tr:hover {
    /*background-color: #F5F3F4;*/
    cursor: pointer;
}

.listing-tb tbody > tr > td {
    padding: 5px 10px;
    vertical-align: middle;
    font-size: 12px;
}

.listing-tb tbody > tr + tr {
    border-top: 1px solid rgba(0, 0, 0, .1);
}

.listing-tb .media-body .box-cell:first-child {
    width: 200px;
}

@media (min-width: 768px) {
    .listing-tb .media-body .box-cell:last-child {
        width: 100px;
        text-align: right;
    }
}

@media (max-width: 767px) {
    .listing-tb .media-body .box-tb,
    .listing-tb .media-body .box-cell {
        display: block;
    }

    .listing-tb .media-body .box-cell {
        width: auto;
    }

    .listing-tb .media-body .box-cell:nth-child(3) {
        width: 100%;
    }
    
    .listing-tb .title {
        margin: 0;
    }

    .message .media .user-pic {
        padding-top: 0; 
        padding-bottom: 0; 
    }
}

@media (max-width: 400px) {
    .listing-modal .modal-title {
        /*display: none;*/
    }
    .listing-modal .modal-header [class*="col-"] {
        width: 100%;
    }
}


/* Direct Chat msg */
.direct-chat .modal-body {
    height: 477px;
}

.direct-chat-msg {
    -webkit-transition: -webkit-transform .5s ease-in-out;
    -moz-transition: -moz-transform .5s ease-in-out;
    -o-transition: -o-transform .5s ease-in-out;
    transition: transform .5s ease-in-out;
}

.direct-chat-messages {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    -o-transform: translate(0, 0);
    transform: translate(0, 0);
    padding: 10px;
    overflow: auto;
}

.direct-chat-msg {
    margin-bottom: 20px;
    position: relative;
}

.direct-chat-msg,
.direct-chat-text {
    display: block;
}

.direct-chat-info {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
}

.modal-title .direct-chat-name {
    margin-left: 10px;
    vertical-align: middle;
    vertical-align: -webkit-baseline-middle;
}

.direct-chat-name {
    font-weight: 600;
}

.direct-chat-timestamp {
    color: #999;
}

.direct-chat-img {
    border-radius: 50%;
    float: left;
    width: 40px;
    height: 40px;
    vertical-align: middle;
}

.direct-chat-text {
    border-radius: 5px;
    position: relative;
    padding: 5px 10px;
    background: #f8f8f8;
    border: 1px solid transparent;
    margin: 5px 0 0 10px;
    color: #444;
    float: left;
    max-width: 80%;
}

@media (max-width: 767px) {
    .direct-chat-text {
        width: calc(100% - 50px);
    }
}

.right .direct-chat-img {
    float: right;
}

.direct-chat-msg.right>.direct-chat-text {
    background-color: rgba(255, 114, 28, 0.1);
    border-color: transparent;
    color: #000;
    float: right;
    margin-right: 10px;
    text-align: left;
}

.direct-chat .arrow-icon {
    position: absolute;
    left: 0;
    font-size: 40px !important;
    padding: 0 10px;
}

.direct-chat .modal-title a:hover {
    text-decoration: none;
}

.direct-chat .modal-title span {
    display: block;
    font-size: 20px;
    padding-left: 48px;
}

.direct-chat .modal-title span + span {
    font-size: 13px;
    color: #000;
}

.right .direct-chat-text {
    margin-right: 50px;
    margin-left: 0;
}

.direct-chat .pos-fix {
    position: absolute;
    bottom: -18px;
    left: 0;
}

.direct-chat .pos-fix .label-default {
    color: #5d5d5d;
    font-weight: 500;
    border-radius: 0;
    /*border: 1px solid #f8f8f8;*/
    background-color: transparent;
}

/*.direct-chat .right .pos-fix .label-default {
    border: 1px solid rgba(255, 114, 28, 0.1);
}*/

.direct-chat .right .pos-fix {
    right: -2px;
    left: auto;
    bottom: -18px;
}

.direct-chat .modal-title {
    padding-left: 35px;
    position: relative;
}

.direct-chat .modal-title .back-btn {
    position: absolute;
    padding: 0px 10px;
    left: 0;
    top: -6px;
    font-size: 35px;
    color: #000;
}

@media (max-width: 676px) {
    .direct-chat .modal-header [class*="col-"] {
        width: 100%;
        margin-top: 5px;
    }
}

.direct-chat .modal-title span.crentials-span {
    display: inline-block;
    padding-left: 0;
}

/* span.crentials-span::before {
    content: "(";
    display: inline;
}

span.crentials-span::after {
    content: ")";
    display: inline;
}

 */
