.avatar {
  width: 32px;
  height: 32px;
  display: inline-block;
}

.avatar.male {
  background-image: url('/images/man.png');
}

.avatar.male-other {
  background-image: url('/images/man-other.png');
}

.avatar.female {
  background-image: url('/images/girl.png');
}

.avatar.female-other {
  background-image: url('/images/girl-other.png');
}

.chat-container {
  position: fixed;
  width: 50%;
  height: calc(100% - 170px);
  left:0;
  bottom:47px;
  background-color: #f2f2f2;
  z-index: 10;
  margin-left: 25%;
  border:1px solid #e5e5e5;
  border-top-left-radius: 10px;
  -moz-border-top-left-radius: 10px;
  -webkit-border-top-left-radius: 10px;
  overflow: hidden;
}

.chat-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255, 0.7);
  z-index: 10;
  text-align: center;
  color: #333;
}

.chat-overlay h3 {
  margin: 0;
  padding: 0;
  margin-top:150px;
}

.chat-container.active {
  display: block;
}

.chat-container .chat-toggler {
  display: block;
  float: right;
  margin: 0;
  padding: 0 5px;
  color: #fff;
  background: none;
  outline: none;
}

.chat-container .chat-header {
  padding: 7px;
  background-color: #18583e;
  color: #fff;
  overflow: auto;
}

.chat-container .chat-header h3 {
  margin: 0;
  padding: 2px 0;
  font-size: 1em;
  float: left;
}

.chat-container .chat-body {
  height: 100%;
  overflow: auto;
}

.chat-container .row,
.chat-container .col-xs-4,
.chat-container .col-xs-8 {
  margin:0 !important;
  padding:0 !important;
  height: 100%;
}

.chat-container .client-list {
  height: calc(90% - 170px);
  overflow: auto;
}

.chat-container .client-list li {
  cursor: pointer;
  border: none;
  margin:0;
  border-bottom: 1px solid #e5e5e5;
  background: none;
  color: #333;
  overflow: auto;
}

.chat-container .client-list li:hover {
  background: #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.chat-container .client-list li.active {
  background: #fff;
  color: #333;
}

.chat-container .client-list li span.client-name {
  float: left;
}

.chat-container .client-list li span.label {
  float: right;
}

.chat-container .client-list li span {
  float: left;
}

.chat-messages-container {
  position: absolute;
  width: 100%;
  height: 93%;
  overflow: auto;
  background: #fff;
}

.chat-messages-widgets {
  position: fixed;
  bottom: 50px;
  padding: 11px;
  width: 33.3333333%;
}

.chat-messages-body {
  height: 90%;
  overflow: auto;
}

.chat-messages-body div.message {
  padding: 11px;
  border-bottom: 1px solid #e5e5e5;
  font-size: 12px;
}

.chat-messages-body .message .user {
  margin: 0;
  padding: 0;
  overflow: auto;
}

.chat-messages-body .message .user div {
  float: left;
}

.chat-messages-body .message .user .name {
  padding: 0 9px;
  font-weight: bold;
}

.chat-messages-body .message .user .meta {
  padding: 0 9px;
  color: gray;
}

.chat-messages-body .message .text {
  padding: 5px 40px;
  margin: 0;
}

.chat-messages-body .message .system {
  background: #e5e5e5;
  color: gray;
  text-align: center !important;
  margin: 3px;
  padding: 7px;
}

.chat-body .visible-xs{
  margin:0;
}

.chat-body {
  overflow-y: hidden !important;
}

.chat-messages-body::-webkit-scrollbar,
.client-list::-webkit-scrollbar {
  width: 7px;
  overflow-y: scroll;
}

.chat-messages-body::-webkit-scrollbar-track,
.client-list::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}

.chat-messages-body::-webkit-scrollbar-thumb,
.client-list::-webkit-scrollbar-thumb {
  background-color: darkgrey;
  outline: 1px solid slategrey;
}
.nav .navbar-nav{
  margin:0;
}

@media only screen and (max-width: 768px) {

  .chat-container .col-xs-8 {
    width: 100%;
    height: 88%;
  }

  .chat-messages-widgets {
    position: fixed;
    bottom: 50px;
    width: 50%;
  }

  .chat-container {
    height: calc(100% - 150px);
  }

}

@media only screen and (max-width: 480px) {

  .chat-messages-widgets {
    position: fixed;
    bottom: 50px;
    width: 80%;
  }

  .chat-container {
    margin-left: 10%;
    width: 80%;
  }

}
