﻿
* {
    box-sizing: border-box;
}

/* Button used to open the chat form - fixed at the bottom of the page */
.open-button {
    /*background-color: #555;*/
    color: white;
    padding: 25px 26px;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    position: fixed;
    bottom: 23px;
    right: 28px;
    /*width: 280px;*/
    border-radius: 100%;
    background: #1c3b76;
    z-index: 9;
}

/* The popup chat - hidden by default */
.chat-popup {
    display: none;
    position: fixed;
    bottom: 0;
    right: 15px;
    z-index: 9;
    width:615px;
}

/* Add styles to the form container */
.form-container {
    max-width: 660px;
    /*padding: 10px;*/
    background-color: white;
}

    /* Full-width textarea */
    .form-container textarea {
        width: 100%;
        padding: 15px;
        margin: 5px 0 22px 0;
        border: none;
        background: #f1f1f1;
        resize: none;
        min-height: 200px;
    }

        /* When the textarea gets focus, do something */
        .form-container textarea:focus {
            background-color: #ddd;
            outline: none;
        }

    /* Set a style for the submit/send button */
    .form-container .btn {
        background-color: #4CAF50;
        color: white;
        padding: 16px 20px;
        border: none;
        cursor: pointer;
        margin-bottom: 10px;
        opacity: 0.8;
    }

    /* Add a red background color to the cancel button */
    .form-container .cancel {
        background-color: #1c3b76 !important;
        margin-top: 20px;
        margin-left: 10px;
        padding: 16px 20px !important;
    }

    /* Add some hover effects to buttons */
    .form-container .btn:hover, .open-button:hover {
        opacity: 1 !important;
    }

.container {
    max-width: 1170px;
    margin: auto;
}


.inbox_people {
    background: #f8f8f8 none repeat scroll 0 0;
    float: left;
    overflow: hidden;
    width: 35%;
    border-right: 1px solid #c4c4c4;
    max-height: 450px;
}

.close-btn-box {
    float: left;
    width: 35%;
}

.inbox_msg {
    border: 1px solid #c4c4c4;
    clear: both;
    overflow: hidden;
}

.top_spac {
    margin: 20px 0 0;
}


.recent_heading {
    float: left;
    width: 40%;
}

.srch_bar {
    display: inline-block;
    /*text-align: right;*/
    /*width: 60%;*/
    /*padding:*/
}

.headind_srch {
    padding: 10px 5px 10px 5px;
    overflow: hidden;
    border-bottom: 1px solid #c4c4c4;
}

.recent_heading h4 {
    color: #1c3b76;
    font-size: 22px;
    margin: auto;
    padding-top: 10px;
}

.srch_bar input {
    border: 1px solid #cdcdcd;
    border-width: 0 0 1px 0;
    width: 95%;
    padding: 2px 0 4px 6px;
    background: none;
}

.srch_bar .input-group-addon button {
    background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
    border: medium none;
    padding: 0;
    color: #707070;
    font-size: 18px;
}

.srch_bar .input-group-addon {
    position: absolute;
    right: 456px;
    background: transparent;
    border: 0;
}

.active_chat .chat_ib h5 {
    color: #fff !important;
}

.chat_ib h5 {
    font-size: 15px;
    color: #464646;
    margin: 0 0 8px 0;
    display: inline;
}

.chat_date {
    font-size: 12px !important;
    float: right !important;
    color: #464646 !important;
}

.chat_ib p {
    font-size: 14px;
    color: #989898;
    margin: auto
}

.chat_img {
    float: left;
    width: 12%;
}

    .chat_img img {
        height: 24px;
        width: 24px;
    }

.chat_ib {
    padding: 0 0 0 40px;
    width: 100%;
}

.chat_people {
    overflow: hidden;
    clear: both;
}

.chat_list {
    border-bottom: 1px solid #c4c4c4;
    margin: 0;
    padding: 16px 16px 10px;
}

.inbox_chat {
    height: 336px;
    overflow: auto;
    position: relative;
    top: 84px;
}

.active_chat {
    background: #1c3b76;
}

.incoming_msg_img {
    display: inline-block;
    width: 6%;
}

    .incoming_msg_img img {
        width: 40px;
    }

.received_msg {
    display: inline-block;
    padding: 0 0 0 25px;
    vertical-align: top;
}

.received_withd_msg p {
    background: #ededed none repeat scroll 0 0;
    border-radius: 3px;
    color: #646464;
    font-size: 14px;
    margin: 0;
    padding: 5px 10px 5px 12px;
    width: 100%;
}

.time_date {
    color: #747474;
    display: block;
    font-size: 12px;
    margin: 4px 0 0;
}

.received_withd_msg {
    /*width: 57%;*/
}

.mesgs {
    float: left;
    width: 65%;
    max-height: 420px;
}

.sent_msg p {
    background: #1c3b76 none repeat scroll 0 0;
    border-radius: 3px;
    font-size: 14px;
    margin: 0;
    color: #fff;
    padding: 5px 10px 5px 12px;
    width: 100%;
}

.outgoing_msg {
    overflow: hidden;
    margin: 26px 0 26px;
}

.sent_msg {
    float: right;
    /*width: 46%;*/
}

.input_msg_write input {
    background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
    border: medium none;
    color: #4c4c4c;
    font-size: 15px;
    min-height: 48px;
    width: 100%;
    border-bottom: 1px solid #c4c4c4;
    padding: 8px 50px 8px 10px;
}

.type_msg {
    /*border-top: 1px solid #c4c4c4;*/
    position: relative;
    float: right;
    padding: 10px 15px 0 25px;
    width: 65%;
    height: 70px;
}

.form-container .btn span {
    font-size: 16px;
    width: 16px;
    height: 16px;
    position: absolute;
    top: 27px;
    right: 44px;
}

.msg_send_btn {
    background: transparent;
    border: medium none;
    /*border-radius: 50%;*/
    color: #1c3b76;
    cursor: pointer;
    font-size: 17px;
    height: 33px;
    position: absolute;
    right: 15px;
    top: 18px;
    /*width: 33px;*/
}

.messaging {
    /*padding: 0 0 50px 0;*/
}

.msg_history {
    width: 100%;
    position: relative;
    padding: 16px;
    overflow: auto;
    max-height: 360px;
}

.offline-dot {
    height: 7px;
    width: 7px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    float: left;
    margin-top: 20px;
}

.online-dot {
    height: 7px;
    width: 7px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: inline-block;
    float: left;
    margin-top: 20px;
}

.unread-count {
    float: right;
    background-color: #c09a08;
    border-radius: 100%;
    padding: 2px 0;
    font-size: 10px;
    width: 18px;
    height: 18px;
    color: #fff;
    text-align: center;
}

.hide_read_mesg_span {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 1s, opacity 1s linear;
}

.incoming_msg.ng-scope {
    margin-bottom: 15px;
}

.form-container .btn {
    background: transparent;
    padding: 0;
}

    .form-container .btn i {
        color: #c09a08;
    }

.open-button i {
    font-size: 26px !important;
}

#totalUnReadCount {
    vertical-align: middle;
    position: absolute;
    top: -5px;
    right: -6px;
    background: #c09a08;
    padding: 7px 5px;
    border-radius: 100%;
    font-size: 11px;
    width: 26px;
    height: 26px;
    text-align: center;
}

.last_message {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    padding: 0;
    font-size: 12px !important;
}

.chat_user {
    text-decoration: none !important;
}
span.chat_date {
    float: right;
    font-size: 12px;
    position: relative;
    top: -17px;
    right: 0;
    color: #464646;
}
.active_chat span.chat_date {
    color: #fff;
}
.unread-count {
    float: right;
    background-color: #c09a08;
    border-radius: 100%;
    padding: 4px 0;
    font-size: 10px;
    width: 18px;
    height: 18px;
    color: #fff;
    text-align: center;
    position: relative;
    top: 20px;
}