﻿.panel {
  padding: 15px;
  margin-bottom: 20px;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 4px;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.panel-heading {
  padding: 10px 15px;
  margin: -15px -15px 15px;
  font-size: 17.5px;
  font-weight: 500;      
  background-color: #f5f5f5;
  border-bottom: 1px solid #dddddd;
  border-top-right-radius: 3px;
  border-top-left-radius: 3px;
}

.panel-footer {
  padding: 10px 15px;
  margin: 15px -15px -15px;
  background-color: #f5f5f5;
  border-top: 1px solid #dddddd;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
}

.panel-primary {
  border-color: #428bca;
}

.panel-primary .panel-heading {
  color: #ffffff;
  background-color: #428bca;
  border-color: #428bca;
}

.panel-success {
  border-color: #d6e9c6;
}

.panel-success .panel-heading {
  color: #468847;
  background-color: #dff0d8;
  border-color: #d6e9c6;
}

.panel-warning {
  border-color: #fbeed5;
}

.panel-warning .panel-heading {
  color: #c09853;
  background-color: #fcf8e3;
  border-color: #fbeed5;
}

.panel-danger {
  border-color: #eed3d7;
}

.panel-danger .panel-heading {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

.panel-info {
  border-color: #bce8f1;
}

.panel-info .panel-heading {
  color: #3a87ad;
  background-color: #d9edf7;
  border-color: #bce8f1;
}


/* Panel
 * -------------------------- */
.instantmessaging-thread .panel{}
.instantmessaging-thread .panel-body {padding-left: 0px;padding-right: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
}

.instantmessaging-thread .panel.panel-default {
    border-color: #ecf0f1;
}

.instantmessaging-thread .panel-default > .panel-heading + .panel-collapse .panel-body {
    border-color: #ecf0f1;
}

.instantmessaging-thread .panel .panel-heading .pull-right a.btn.btn-xs {
    position: relative;
    top: -5px;
}
.instantmessaging-thread .panel .panel-heading .pull-right .label {
    position: relative;
    top: -5px;
}

.instantmessaging-thread .panel-title {
    font-size: 13px;
    font-weight: 600;
    color: inherit !important;
    text-transform: uppercase;
}

   .instantmessaging-thread  .panel-title > a, .instantmessaging-thread .panel-title > a:hover, .instantmessaging-thread .panel-title > a:focus {
        color: rgb(123, 138, 139) !important;
        -webkit-transition: all 0.2s ease;
        transition: all 0.2s ease;
        text-decoration: none;
    }

.fa-st {
    position: relative;
}

    .fa-st:before {
        position: absolute;
        content: "";
        left: -4px;
        top: 50%;
        right: -4px;
        border-top: 1px solid;
        border-color: inherit;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    .fa-st.inverse:before {
        border-color: white;
    }
        .instantmessaging .read .title .fa-envelope {
    display: none;
}

.instantmessaging .unread .title .fa-envelope-o {
    display: none;
}
/*.instantmessaging .thread{padding-bottom: 5px; border-bottom:solid 1px #f6f6f6; margin-bottom:5px; padding-top:5px;}
    .instantmessaging-thread .message{padding-bottom: 5px; border-bottom:solid 1px #f6f6f6; margin-bottom:5px; padding-top:5px;}*/

    
.instantmessaging #messages {
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;
}

    .instantmessaging #messages .image img {
        height: 150px;
        background: url('../img/loading.html') no-repeat;
        background-position: 20px 20px;
    }

.instantmessaging #txtMessage {
    height: 100px;
}

.instantmessaging .users img {
    width: 40px;
    height: auto;
}

.instantmessaging .userheading {
    margin-top: 0;
    margin-bottom: 5px;
    border-bottom: solid 1px #eee;
    clear: both;
}

.instantmessaging .users .user .small {
    font-style: italic;
    color: #999;
}

.instantmessaging .users .user {
    line-height: 1.4285;
}

.instantmessaging .message .name {
    font-weight: bold;
    line-height: 1.4285;
}

.instantmessaging .message .date {
    font-size: 85%;
    color: #999;
}

.instantmessaging .message .text img {
    position: relative;
    vertical-align: middle;
}

.instantmessaging .message + .message {
    margin-top: 10px;
    padding-top: 10px;
    border-top: solid 1px #eee;
}

.instantmessaging .thread + .thread {
    margin-top: 10px;
    padding-top: 10px;
    border-top: solid 1px #eee;
}

.instantmessaging #images {
    line-height: 1;
}

    .instantmessaging #images img {
        width: 25%;
        margin: 0;
    }

.instantmessaging #documents {
    overflow: hidden;
}

    .instantmessaging #documents .col-xs-1 {
        padding-right: 5px;
        color: #999;
    }

.instantmessaging .read .title .fa-envelope {
    display: none;
}

.instantmessaging .unread .title .fa-envelope-o {
    display: none;
}

.instantmessaging .userresults input {
    margin-right: 10px;
    margin-left: 15px;
}

.instantmessaging .userresults label {
    position: relative;
    top: -2px;
}

@media (min-width: 992px) {

    .instantmessaging .col-md-8 {
        padding-right: 0;
    }

    .instantmessaging #messages {
        margin-bottom: 180px;
    }

    .instantmessaging .messageinput {
        position: absolute;
        bottom: 0;
        width: 100%;
        padding-right: 15px;
    }
}