.chat-window {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, .15);
}

.chat-window:not(.minimized) {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 0 24px rgba(0, 0, 0, .15);
  line-height: 1.4;
  border-radius: 10px;
  color: #333;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.chat-window .col-xs-12.col-md-12 {
  padding: 0;
  height: 100%;
}

.chat-window .panel {
  border: 0;
  margin-bottom: 0;
  position: relative;
}

.chat-window:not(.minimized) .panel {
  border: 0;
  margin-bottom: 0;
  position: relative;
  height: 380px;
  max-height: 380px;
}

.chat-top-bar {
  overflow: hidden;
  position: relative;
  height: 70px;
  max-height: 90px;
  line-height: 20px;
  cursor: pointer;
  vertical-align: middle;
  text-align: left;
  padding: 10px 5px;
}

.chat-top-bar .icon-minim {
  padding: 2px 10px;
}

.chat-bottom-bar {
  overflow: hidden;
  padding: 10px;
  position: relative;
  height: auto;
  float: left;
  width: 100%;
}

.chat-bottom-bar .icon-minim {
  padding: 2px 10px;
}

.chat-bottom-bar input {
  height: calc(50px - 20px);
}

.msg-container-base {
  background: #f5f5f5;
  margin: 0;
  height: calc(100% - 160px);
  overflow-x: hidden;
  padding: 0 10px 15px;
  overflow-y: auto !important;
}

.msg-container-base::-webkit-scrollbar-track {
  background-color: #f5f5f5;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.msg-container-base::-webkit-scrollbar {
  background-color: #f5f5f5;
  width: 12px;
}

.msg-container-base::-webkit-scrollbar-thumb {
  background-color: #555;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.msg-container-base .msg-container {
  display: flex;
  overflow: hidden;
  padding: 3px 10px;
}

/* .chat-msg {
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  max-width: 90%;
  padding: 0px;
}

.chat-msg p {
  font-size: 14px;
  margin: 5px 0 0;
}

.chat-msg p small {
  color: red;
  font-weight: bold;
  font-style: italic;
  font-size: 11px;
}

.chat-msg time {
  color: #ccc;
  font-size: 11px;
}

.chat-msg .chat-msg-author {
  display: block;
  margin: -25px 0px 1px;
  padding-top: 0px;
  font-size: 12px;
  color: #aaa;
  text-align: right;
}

.chat-msg.chat-msg-recieved {
  margin-right: 50px;
  padding-bottom: 0px;
  border-radius: 0px 14px 14px 14px;
}

.chat-msg.chat-msg-recieved .profile {
  margin-right: 10px;
  width: 42px;
  height: 42px;
}

.chat-msg.chat-msg-sent {
  margin-left: 50px;
  padding-bottom: 0px;
  background: #e8f1f3;
  border-radius: 14px 0px 14px 14px;
}

.chat-msg.chat-msg-sent .profile {
  margin-left: 10px;
  width: 42px;
  height: 42px;
}

.chat-msg.chat-msg-sent .chat-msg-author {
  text-align: right;
}

.chat-msg.chat-msg-sent time {
  float: right;
}

.chat-msg-final-client {
  background: #d3e0ca !important;
  margin: -2px 50px 0.2rem;
  margin-left: 0px;
}

.chat-msg-op {
  background: #ebefe8 !important;
  margin: -2px 50px 0.2rem;
  margin-right: 0px;
}

.chat-msg-op.chat-msg p {
  margin: -2px 50px 0.2rem !important;
}

@import url(https://fonts.googleapis.com/css?family=Lato:400,700);

*,
*:before,
*:after {
  box-sizing: border-box;
} */

.people-list {
  background-color: #f8f9fa;
  border-radius: 5px;
  /* width: 100%;
  float: left; */
}

.people-list:hover {
  background-color: #e2e6ea;
}

.right-border {
  position: absolute;
  top: 0px;
  left: 0px;
}

.activeOrange {
  border-left: 3px solid #E38968;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  background-color: rgba(111, 66, 193, 0.1);
  height: 100%;
}

.activePurple {
  border-left: 3px solid #6f42c1;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  background-color: rgba(111, 66, 193, 0.1);
  height: 100%;
}

.activePrimary {
  border-left: 3px solid #007bff;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  background-color: rgba(0, 123, 255, 0.1);
  height: 100%;
}

.people-list .search {
  padding: 20px;
}

.people-list input {
  border-radius: 3px;
  border: none;
  padding: 14px;
  color: white;
  background: #6A6C75;
  width: 90%;
  font-size: 14px;
}

.people-list .fa-search {
  position: relative;
  left: -25px;
}

.people-list ul {
  padding: 20px;
  height: 770px;
}

.people-list ul li {
  padding-bottom: 20px;
}

.people-list img {
  float: left;
}

.people-list .about {
  float: left;
  margin-top: 8px;
}

.people-list .about {
  padding-left: 8px;
}

.people-list .status {
  color: #92959E;
}

.chat {
  width: 100%;
  float: left;
  background: white;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  color: #434651;
  border-left-color: #f5f5f5;
  border-left-width: medium;
  border-left-style: outset;
}

/* .chat .chat-header {
  padding: 3px;
  border-bottom: 2px solid #f5f5f5;
}

.chat .chat-header img {
  float: left;
}

.chat .chat-header .chat-about {
  float: left;
  padding-left: 10px;
  width: 100%;
}

.chat .chat-header .chat-with {
  font-weight: bold;
  font-size: 16px;
  padding-top: 10px;
}

.chat .chat-header .chat-num-messages {
  color: #92959E;
}

.chat .chat-header .fa-star {
  float: right;
  color: #D8DADF;
  font-size: 20px;
  margin-top: 12px;
} */

/* .col-chat {
  width: 68%;
  float: left;
} */

@media (max-height: 1081px) {
  .chat-history {
    overflow-y: auto;
    height: 55vh;
  }

  .col-case {
    max-height: 787px;
    overflow: auto;
  }
}

@media (max-height: 769px) {
  .chat-history {
    height: 50vh;
  }

  .col-case {
    max-height: 475px;
  }
}

/* .chat .chat-history .message-data {
  margin-bottom: 15px;
}

.chat .chat-history .message-data-time {
  color: #a8aab1;
  padding-left: 6px;
} */

/* .chat .chat-history .message {
  color: #555;
  padding: 18px 20px;
  line-height: 6px;
  font-size: 16px;
  border-radius: 7px;
  margin-bottom: 12px;
  width: 90%;
  position: relative;
} */

/* .chat .chat-history .message {
  color: #555;
  padding: 1px 8px;
  border-radius: 7px;
  margin-bottom: 15px;
  width: 90%;
  position: relative;
}

.chat .chat-history .message:after {
  bottom: 100%;
  left: 7%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-bottom-color: #f5f5f5;
  border-width: 10px;
  margin-left: -10px;
}

.chat .chat-history .my-message {
  background: #f5f5f5;
}

.chat .chat-history .other-message {
  background: #428bca50;
}

.chat .chat-history .other-message:after {
  border-bottom-color: #428bca50;
  left: 93%;
} */

.chat .chat-message {
  padding: 2px;
}

.chat .chat-message textarea {
  width: 100%;
  border: none;
  padding: 10px 20px;
  font: 14px/22px "Lato", Arial, sans-serif;
  margin-bottom: 10px;
  border-radius: 5px;
  resize: none;
}

.chat .chat-message .fa-file-o,
.chat .chat-message .fa-file-image-o {
  font-size: 16px;
  color: gray;
  cursor: pointer;
}

.chat .chat-message button {
  float: right;
  color: #94C2ED;
  font-size: 16px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-weight: bold;
  background: #F2F5F8;
}

.chat .chat-message button:hover {
  color: #75b1e8;
}

.online,
.offline,
.me {
  margin-right: 3px;
  font-size: 10px;
}

.online {
  color: #86BB71;
}

.offline {
  color: #E38968;
}

.me {
  color: #94C2ED;
}

.align-left {
  text-align: left;
}

.align-right {
  text-align: right;
}

.float-right {
  float: right;
}

.chat-top-bar:hover {
  /* background-color: white;
  border: rgb(44, 62, 80); */
  cursor: pointer;
  cursor: hand;
}

.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}

.card {
  background: white;
  transition: .5s;
  margin-bottom: 30px;
  border-radius: .55rem;
  /* position: relative; */
  width: 100%;
  border-color: #f5f5f5;
  border-style: solid;
  box-shadow: 0 1px 2px 0 #f5f5f5;
}

#avatar {
  background-color: #f5f5f5;
  background-position: center center;
  border-radius: 50%;
  flex: 1 1 100%;
  height: 50px;
  width: 50px;
  font-size: 190%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  float: left;
  border-style: solid;
}

.case-chat {
  margin-bottom: 8px;
}

.case-chat:last-child {
  margin-bottom: 0px;
}

.chat-top-bar-select {
  background-color: #b7d7ff;
}

.chat-icon {
  padding: 12px;
  border-radius: 50%;
}

.primary-color {
  color: #007bff;
}

.purple-color {
  color: #6f42c1;
}

.orange-color {
  color: #E38968;
}

.primary-flat-bg {
  background-color: rgba(0, 123, 255, 0.3);
}

.purple-flat-bg {
  background-color: rgba(111, 66, 193, 0.3);
}

.orange-flat-bg {
  background-color: rgba(193, 142, 66, 0.3);
}

.chat-title {
  display: block;
  font-size: 16px;
  line-height: 16px;
  font-weight: 600;
  color: #555;
}

.chat-client {
  display: block;
  font-size: 16px;
  line-height: 16px;
  color: #666;
  margin-top: 4px;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.name-client-out {
  max-width: 220px;
}

.chat-client span {
  font-size: 12px;
  font-weight: 600;
}

.card {
  margin-bottom: 0px;
  border: 2px solid #e2e6ea;
  border-radius: 5px;
  padding: 16px;
  box-shadow: none;
}

.card-chat {
  max-width: 400px;
}

.card-message {
  width: 100%;
  border-left: none;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  padding: 0px;
}

.closed-chat {
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}

.open-chat {
  /* width: 400px; */
}

.chat-header {
  padding: 10px 12px;
  border-bottom: 2px solid #e2e6ea;
}

.char-name {
  color: #555;
  font-weight: 600;
}

.chat-avatar {
  color: #007bff;
  border-radius: 50%;
  font-weight: 600;
  width: 42px;
  height: 42px;
  align-items: center;
  display: flex;
  justify-content: center;
}

.chat-badge {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  top: 0px;
  right: 0px;
}

.chat-history {
  padding: 16px;
}

.chat-msg {
  position: relative;
  border-radius: 20px;
  max-width: 90%;
  padding: 8px 50px 8px 12px;
  margin-bottom: 8px;
  word-break: break-word;
  /* Chrome, Safari */
  word-wrap: break-word;
  /* IE11, Firefox */
}

.chat-msg .date {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 10px;
}

.other-message {
  border-top-left-radius: 3px;
  background-color: #f8f9fa;
  color: #666;
}

.my-message {
  border-top-right-radius: 3px;
  background-color: rgba(0, 123, 255, 0.3);
  /* color: #007bff; */
}

.message-info {
  display: flex;
  font-size: 10px;
}

.message-author-name {
  margin-left: auto;
}

.emojionearea.emojionearea-inline {
  height: 48px !important;
  border: none !important;
  box-shadow: none !important;
  border-top: 2px solid #e2e6ea !important;
  border-top-left-radius: 0px !important;
  border-top-right-radius: 0px !important;
}

.emojionearea.emojionearea-inline>.emojionearea-editor {
  height: 48px !important;
  left: 38px !important;
  right: 80px !important;
  line-height: 36px !important;
}

.emojionearea.emojionearea-inline>.emojionearea-buttonAttach {
  top: 10px !important;
  left: 8px !important;
  right: auto !important;
}

.emojionearea.emojionearea-inline>.emojionearea-button {
  top: 10px !important;
  right: 48px !important;
}

.emojionearea.emojionearea-inline>.emojionearea-buttonMsg {
  top: 10px !important;
  right: 12px !important;
}

.emojionearea .emojionearea-button.active+.emojionearea-picker-position-top {
  right: -138px !important;
}

/* .emojionearea .emojionearea-pickerMsg.emojionearea-pickerMsg-position-top {
  right: -138px !important;
} */