.contact .unread
{
    font-weight: bold !important;

}
.onlyUser #sidepanel
{
    display: none;
}
.onlyUser .content
{
    width: 100% !important;
}

.message-status
{
    background-image: url("checks.png");
    height: 10px;
    margin-left: 5px !important;
}
.message-status-sended
{

    width: 12px;

}
.message-status-recieved
{

    width: 15px;
    background-position-x: -12px;
}
.message-status-readed
{

    width: 15px;
    background-position-x: -28px;
}
.chat_control_container div,.chat_control_container span,.chat_control_container applet,.chat_control_container object,.chat_control_container iframe, .chat_control_container h1,.chat_control_container h2,.chat_control_container h3,.chat_control_container h4,.chat_control_container h5,.chat_control_container h6,.chat_control_container p,.chat_control_container blockquote,.chat_control_container pre,.chat_control_container a, .chat_control_container abbr,.chat_control_container acronym, .chat_control_container address,.chat_control_container big,.chat_control_container cite,.chat_control_container code,.chat_control_container del,.chat_control_container dfn,.chat_control_container em,.chat_control_container img,.chat_control_container ins,.chat_control_container kbd,.chat_control_container q,.chat_control_container s,.chat_control_container samp,.chat_control_container small,.chat_control_container strike,.chat_control_container strong,.chat_control_container sub,.chat_control_container sup,.chat_control_container tt,.chat_control_container var,.chat_control_container b,.chat_control_container u,.chat_control_container i,.chat_control_container center,.chat_control_container dl,.chat_control_container dt,.chat_control_container dd,.chat_control_container ol,.chat_control_container ul,.chat_control_container li,.chat_control_container fieldset,.chat_control_container form,.chat_control_container label,.chat_control_container legend,.chat_control_container table,.chat_control_container caption,.chat_control_container tbody,.chat_control_container tfoot,.chat_control_container thead,.chat_control_container tr,.chat_control_container th,.chat_control_container td,.chat_control_container article,.chat_control_container aside,.chat_control_container canvas,.chat_control_container details,.chat_control_container embed,.chat_control_container figure,.chat_control_container figcaption,.chat_control_container footer,.chat_control_container header,.chat_control_container hgroup,.chat_control_container menu,.chat_control_container nav,.chat_control_container output,.chat_control_container ruby,.chat_control_container section,.chat_control_container summary,.chat_control_container time,.chat_control_container mark,.chat_control_container audio,.chat_control_container video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline
}

.chat_control_container article, .chat_control_container aside,.chat_control_container details, .chat_control_container figcaption, .chat_control_container figure,.chat_control_container footer,.chat_control_container header,.chat_control_container hgroup,.chat_control_container menu,.chat_control_container nav,.chat_control_container section {
    display: block
}

.chat_control_container {
    line-height: 1
}

.chat_control_container ol, .chat_control_containerul {
    list-style: none
}

.chat_control_container blockquote, .chat_control_container q {
    quotes: none
}

.chat_control_container blockquote:before, .chat_control_container blockquote:after,.chat_control_container q:before,.chat_control_container q:after {
    content: '';
    content: none
}

.chat_control_container table {
    border-collapse: collapse;
    border-spacing: 0
}

.chat_control_container {
    display: flex;
    align-items: unset;
    justify-content: center;
    min-height: 100vh;
    background: #27ae60;
    font-family: "proxima-nova", "Source Sans Pro", sans-serif;
    font-size: 1em;
    letter-spacing: 0.1px;
    color: #32465a;
    text-align: left;
    text-rendering: optimizeLegibility;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
    -webkit-font-smoothing: antialiased;
}

.chat_control {
    width: 95%;
    min-width: 360px;
    max-width: 1000px;
    height: 530px;
    min-height: 530px;
    max-height: 530px;
    background: #E6EAEA;
}

@media screen and (max-width: 360px) {
    .chat_control {
        width: 100%;
        height: 100vh;
    }
}

.chat_control #sidepanel {
    float: left;
    min-width: 280px;
    max-width: 340px;
    width: 33%;
    height: 100%;
    background: #434345;
    color: #f5f5f5;
    overflow: hidden;
    position: relative;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel {
        width: 58px;
        min-width: 58px;
    }
}

.chat_control #sidepanel #profile {
    width: 80%;
    margin: 25px auto;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #profile {
        width: 100%;
        margin: 0 auto;
        padding: 5px 0 0 0;
        background: #434345;
    }
}

.chat_control #sidepanel #profile.expanded .wrap {
    height: 210px;
    line-height: initial;
}

.chat_control #sidepanel #profile.expanded .wrap p {
    margin-top: 20px;
}

.chat_control #sidepanel #profile.expanded .wrap i.expand-button {
    -moz-transform: scaleY(-1);
    -o-transform: scaleY(-1);
    -webkit-transform: scaleY(-1);
    transform: scaleY(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
}

.chat_control #sidepanel #profile .wrap {
    height: 60px;
    line-height: 60px;
    overflow: hidden;
    -moz-transition: 0.3s height ease;
    -o-transition: 0.3s height ease;
    -webkit-transition: 0.3s height ease;
    transition: 0.3s height ease;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #profile .wrap {
        height: 55px;
    }
}

.chat_control #sidepanel #profile .wrap img {
    width: 50px;
    border-radius: 50%;
    padding: 3px;
    border: 2px solid #e74c3c;
    height: auto;
    float: left;
    cursor: pointer;
    -moz-transition: 0.3s border ease;
    -o-transition: 0.3s border ease;
    -webkit-transition: 0.3s border ease;
    transition: 0.3s border ease;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #profile .wrap img {
        width: 40px;
        margin-left: 4px;
    }
}

.chat_control #sidepanel #profile .wrap img.online {
    border: 2px solid #2ecc71;
}

.chat_control #sidepanel #profile .wrap img.away {
    border: 2px solid #f1c40f;
}

.chat_control #sidepanel #profile .wrap img.busy {
    border: 2px solid #e74c3c;
}

.chat_control #sidepanel #profile .wrap img.offline {
    border: 2px solid #95a5a6;
}

.chat_control #sidepanel #profile .wrap p {
    float: left;
    margin-left: 15px;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #profile .wrap p {
        display: none;
    }
}

.chat_control #sidepanel #profile .wrap i.expand-button {
    float: right;
    margin-top: 23px;
    font-size: 0.8em;
    cursor: pointer;
    color: #435f7a;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #profile .wrap i.expand-button {
        display: none;
    }
}

.chat_control #sidepanel #profile .wrap #status-options {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    width: 150px;
    margin: 70px 0 0 0;
    border-radius: 6px;
    z-index: 99;
    line-height: initial;
    background: #435f7a;
    -moz-transition: 0.3s all ease;
    -o-transition: 0.3s all ease;
    -webkit-transition: 0.3s all ease;
    transition: 0.3s all ease;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #profile .wrap #status-options {
        width: 58px;
        margin-top: 57px;
    }
}

.chat_control #sidepanel #profile .wrap #status-options.active {
    opacity: 1;
    visibility: visible;
    margin: 75px 0 0 0;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #profile .wrap #status-options.active {
        margin-top: 62px;
    }
}

.chat_control #sidepanel #profile .wrap #status-options:before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #435f7a;
    margin: -8px 0 0 24px;
}

@media screen and (max-width: 735px) {
    .chat_control #sidepanel #profile .wrap #status-options:before {
        margin-left: 23px;
    }
}

.chat_control #sidepanel #profile .wrap #status-options ul {
    overflow: hidden;
    border-radius: 6px;
}

.chat_control #sidepanel #profile .wrap #status-options ul li {
    padding: 15px 0 30px 18px;
    display: block;
    cursor: pointer;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #profile .wrap #status-options ul li {
        padding: 15px 0 35px 22px;
    }
}

.chat_control #sidepanel #profile .wrap #status-options ul li:hover {
    background: #496886;
}

.chat_control #sidepanel #profile .wrap #status-options ul li span.status-circle {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 5px 0 0 0;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #profile .wrap #status-options ul li span.status-circle {
        width: 14px;
        height: 14px;
    }
}

.chat_control #sidepanel #profile .wrap #status-options ul li span.status-circle:before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    margin: -3px 0 0 -3px;
    background: transparent;
    border-radius: 50%;
    z-index: 0;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #profile .wrap #status-options ul li span.status-circle:before {
        height: 18px;
        width: 18px;
    }
}

.chat_control #sidepanel #profile .wrap #status-options ul li p {
    padding-left: 12px;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #profile .wrap #status-options ul li p {
        display: none;
    }
}

.chat_control #sidepanel #profile .wrap #status-options ul li#status-online span.status-circle {
    background: #2ecc71;
}

.chat_control #sidepanel #profile .wrap #status-options ul li#status-online.active span.status-circle:before {
    border: 1px solid #2ecc71;
}

.chat_control #sidepanel #profile .wrap #status-options ul li#status-away span.status-circle {
    background: #f1c40f;
}

.chat_control #sidepanel #profile .wrap #status-options ul li#status-away.active span.status-circle:before {
    border: 1px solid #f1c40f;
}

.chat_control #sidepanel #profile .wrap #status-options ul li#status-busy span.status-circle {
    background: #e74c3c;
}

.chat_control #sidepanel #profile .wrap #status-options ul li#status-busy.active span.status-circle:before {
    border: 1px solid #e74c3c;
}

.chat_control #sidepanel #profile .wrap #status-options ul li#status-offline span.status-circle {
    background: #95a5a6;
}

.chat_control #sidepanel #profile .wrap #status-options ul li#status-offline.active span.status-circle:before {
    border: 1px solid #95a5a6;
}

.chat_control #sidepanel #profile .wrap #expanded {
    padding: 100px 0 0 0;
    display: block;
    line-height: initial !important;
}

.chat_control #sidepanel #profile .wrap #expanded label {
    float: left;
    clear: both;
    margin: 0 8px 5px 0;
    padding: 5px 0;
}

.chat_control #sidepanel #profile .wrap #expanded input {
    border: none;
    margin-bottom: 6px;
    background: #32465a;
    border-radius: 3px;
    color: #f5f5f5;
    padding: 7px;
    width: calc(100% - 43px);
}

.chat_control #sidepanel #profile .wrap #expanded input:focus {
    outline: none;
    background: #435f7a;
}

.chat_control #sidepanel #search {
    border-top: 1px solid #3c3c3e;
    border-bottom: 1px solid #3c3c3e;
    font-weight: 300;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #search {
        display: none;
    }
}

.chat_control #sidepanel #search label {
    position: absolute;
    margin: 10px 0 0 20px;
}

.chat_control #sidepanel #search input {
    font-family: "proxima-nova", "Source Sans Pro", sans-serif;
    padding: 10px 0 10px 46px;
    width: calc(100% - 25px);
    border: none;
    background: #434345;
    color: #f5f5f5;
}

.chat_control #sidepanel #search input:focus {
    outline: none;
    background: #646466;
}

.chat_control #sidepanel #search input::-webkit-input-placeholder {
    color: #f5f5f5;
}

.chat_control #sidepanel #search input::-moz-placeholder {
    color: #f5f5f5;
}

.chat_control #sidepanel #search input:-ms-input-placeholder {
    color: #f5f5f5;
}

.chat_control #sidepanel #search input:-moz-placeholder {
    color: #f5f5f5;
}

.chat_control #sidepanel #contacts {
    height: calc(100% - 40px);
    overflow-y: scroll;
    overflow-x: hidden;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #contacts {
        height: calc(100% - 149px);
        overflow-y: scroll;
        overflow-x: hidden;
    }

    .chat_control #sidepanel #contacts::-webkit-scrollbar {
        display: none;
    }
}

.chat_control #sidepanel #contacts.expanded {
    height: calc(100% - 334px);
}

.chat_control #sidepanel #contacts::-webkit-scrollbar {
    width: 8px;
    background: #333335;

}

.chat_control #sidepanel #contacts::-webkit-scrollbar-thumb {
    background-color: #272729;
}

.chat_control #sidepanel #contacts ul li.contact {
    position: relative;
    padding: 10px 0 15px 0;
    font-size: 0.9em;
    cursor: pointer;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #contacts ul li.contact {
        padding: 6px 0 46px 8px;
    }
}

.chat_control #sidepanel #contacts ul li.contact:hover {
    background:#6c6c6e;
}

.chat_control #sidepanel #contacts ul li.contact.active {
    background: #6c6c6e;
    border-right: 5px solid #5d5d5f;
}

.chat_control #sidepanel #contacts ul li.contact.active span.contact-status {
    border: 2px solid #6c6c6e !important;
}

.chat_control #sidepanel #contacts ul li.contact .wrap {
    width: 88%;
    margin: 0 auto;
    position: relative;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #contacts ul li.contact .wrap {
        width: 100%;
    }
}

.chat_control #sidepanel #contacts ul li.contact .wrap span {
    position: absolute;
    left: 0;
    margin: -2px 0 0 -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #2c3e50;
    background: #95a5a6;
}

.chat_control #sidepanel #contacts ul li.contact .wrap span.online {
    background: #2ecc71;
}

.chat_control #sidepanel #contacts ul li.contact .wrap span.away {
    background: #f1c40f;
}

.chat_control #sidepanel #contacts ul li.contact .wrap span.busy {
    background: #e74c3c;
}

.chat_control #sidepanel #contacts ul li.contact .wrap img {
    width: 40px;
    border-radius: 50%;
    float: left;
    margin-right: 10px;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #contacts ul li.contact .wrap img {
        margin-right: 0px;
    }
}

.chat_control #sidepanel #contacts ul li.contact .wrap .meta {
    padding: 5px 0 0 0;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #contacts ul li.contact .wrap .meta {
        display: none;
    }
}

.chat_control #sidepanel #contacts ul li.contact .wrap .meta .name {
    font-weight: 600;
}

.preview-typing
{
    margin-top: 5px !important;
}
.chat_control #sidepanel #contacts ul li.contact .wrap .meta .preview  {
    margin: 5px 0 0 0;
    padding: 0 0 1px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -moz-transition: 1s all ease;
    -o-transition: 1s all ease;
    -webkit-transition: 1s all ease;
    transition: 1s all ease;
}

.chat_control #sidepanel #contacts ul li.contact .wrap .meta .preview span {
    position: initial;
    border-radius: initial;
    background: none;
    border: none;
    padding: 0 2px 0 0;
    margin: 0 0 0 1px;
    opacity: .5;
}

.chat_control #sidepanel #bottom-bar {
    position: absolute;
    width: 100%;
    bottom: 0;
}

.chat_control #sidepanel #bottom-bar button {
    float: left;
    border: none;
    width: 50%;
    padding: 10px 0;
    background: #32465a;
    color: #f5f5f5;
    cursor: pointer;
    font-size: 0.85em;
    font-family: "proxima-nova", "Source Sans Pro", sans-serif;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #bottom-bar button {
        float: none;
        width: 100%;
        padding: 15px 0;
    }
}

.chat_control #sidepanel #bottom-bar button:focus {
    outline: none;
}

.chat_control #sidepanel #bottom-bar button:nth-child(1) {
    border-right: 1px solid #2c3e50;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #bottom-bar button:nth-child(1) {
        border-right: none;
        border-bottom: 1px solid #2c3e50;
    }
}

.chat_control #sidepanel #bottom-bar button:hover {
    background: #435f7a;
}

.chat_control #sidepanel #bottom-bar button i {
    margin-right: 3px;
    font-size: 1em;
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #bottom-bar button i {
        font-size: 1.3em;
    }
}

@media screen and (max-width: 991px) {
    .chat_control #sidepanel #bottom-bar button span {
        display: none;
    }
}

.chat_control .content {
    float: right;
    width: 60%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

@media screen and (max-width: 991px) {
    .chat_control .content {
        width: calc(100% - 58px);
        /*min-width: 300px !important;*/
    }
}

@media screen and (min-width: 991px) {
    .chat_control .content {
        width: calc(100% - 280px);
    }
    .chat_control .contact-profile
    {
        /*height: ;*/
    }
}

.chat_control .content .contact-profile {
    width: 100%;
    min-height: 60px;
    line-height: 60px;
    background: #ffffff;
    position: relative;
}

.chat_control .content .contact-profile img {
    width: 40px;
    border-radius: 50%;
    float: left;
    margin: 9px 12px 0 9px;
}

.chat_control .content .contact-profile p {
    float: left;
}

.chat_control .content .contact-profile .social-media {
    float: right;
    /*position: absolute;*/
    /*top: 0px;*/
    /*left: 78%;*/
}

.chat_control .content .contact-profile .social-media i {
    margin-left: 14px;
    cursor: pointer;
}

.chat_control .content .contact-profile .social-media i:nth-last-child(1) {
    margin-right: 20px;
}

.chat_control .content .contact-profile .social-media i:hover {
    color: #435f7a;
}


@media screen and (max-width: 1200px) {
    .chat_control .content .contact-profile .social-media  {
        /*left: 72%;*/
}
}

.chat_control .content .messages {
    height: auto;
    min-height: calc(100% - 105px);
    max-height: calc(100% - 105px);
    overflow-y: scroll;
    overflow-x: hidden;
}

@media screen and (max-width: 735px) {
    .chat_control .content .messages {
        max-height: calc(100% - 105px);
    }
}

.chat_control .content .messages::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

.chat_control .content .messages::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
}

.chat_control .content .messages ul li {
    display: inline-block;
    clear: both;
    float: left;
    margin: 15px 15px 5px 15px;
    width: calc(100% - 25px);
    font-size: 0.9em;
}

.chat_control .content .messages ul li:nth-last-child(1) {
    margin-bottom: 20px;
}

.chat_control .content .messages ul li.sent img {
    margin: 6px 8px 0 0;
}
.chat_control .content .messages ul li.message-date-item
{
    text-align: center;
}

.chat_control .content .messages ul li.sent > p {
    background: #435f7a;
    color: #f5f5f5;
}
.chat_control .content .messages ul li p >span
{
    font-size: 10px;
}
.chat_control .content .messages ul li p >.time::before {
    content: "\A";
    white-space: pre;
}


.chat_control .content .messages ul li.replies img {
    float: right;
    margin: 6px 0 0 8px;
}

.chat_control .content .messages ul li.replies p {
    background: #ffffff;
    float: right;
    text-align: right;
}

.chat_control .content .messages ul li img {
    width: 22px;
    border-radius: 50%;
    float: left;
}

.chat_control .content .messages ul li p {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 205px;
    line-height: 130%;
}

@media screen and (min-width: 735px) {
    .chat_control .content .messages ul li p {
        max-width: 300px;
    }
}

.chat_control .content .message-input {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 99;
}

.chat_control .content .message-input .wrap {
    position: relative;
}

.chat_control .content .message-input .wrap input {
    font-family: "proxima-nova", "Source Sans Pro", sans-serif;
    float: left;
    border: none;
    width: calc(100% - 50px);
    padding: 11px 32px 10px 8px;
    font-size: 0.8em;
    color: #32465a;
}

@media screen and (max-width: 735px) {
    .chat_control .content .message-input .wrap input {
        padding: 15px 32px 18px 8px;
    }
}

.chat_control .content .message-input .wrap input:focus {
    outline: none;
}

.chat_control .content .message-input .wrap .attachment {
    position: absolute;
    right: 60px;
    z-index: 4;
    margin-top: 10px;
    font-size: 1.1em;
    color: #435f7a;
    opacity: .5;
    cursor: pointer;
}

@media screen and (max-width: 735px) {
    .chat_control .content .message-input .wrap .attachment {
        margin-top: 17px;
        right: 65px;
    }
}

.chat_control .content .message-input .wrap .attachment:hover {
    opacity: 1;
}

.chat_control .content .message-input .wrap button {
    float: right;
    border: none;
    width: 50px;
    padding: 10px 0;
    cursor: pointer;
    background: #f5bf2f;
    color: #f5f5f5;
}

@media screen and (max-width: 735px) {
    .chat_control .content .message-input .wrap button {
        padding: 16px 0;
    }
}

.chat_control .content .message-input .wrap button:hover {
    background: #435f7a;
}

.chat_control .content .message-input .wrap button:focus {
    outline: none;
}