.sidebarChat {
  position: absolute;
}

.chat {
  width: 260px;
  height: 65%;
  left: 0;
  bottom: 2rem;
  position: fixed;
  z-index: 9999999;
  background-color: #fff;
}

.chat.close-sidebar {
  bottom: 10rem !important;
  left: 35px;
}

.callcenter .chat {
  width: 300px;
  bottom: 2.5rem;
}

.chat .chat-header {
  padding: 0.75rem 1rem;
}

.chat .chat-header img {
  width: 20px;
}
.chat .chat-header div {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.chat > .message > .message-file,
.chat > .message > .file-not-available {
  display: block;
  padding: 10px;
}

.chat > .message > .message-file > i,
.chat > .message > .file-not-available > i {
  font-size: 16px;
  display: inline-block;
  vertical-align: middle;
  width: 16px;
  height: 100%;
}

.chat > .message > .message-file > span,
.chat > .message > .file-not-available > span {
  display: inline-block;
  vertical-align: middle;
  margin-left: 5px;
  width: calc(100% - 16px - 10px);
}

.chat input {
  padding: 6px 8px;
  outline: none;
  color: #333;
  font-size: 0.9rem;
}

.chat-contacts {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.chat-contacts::-webkit-scrollbar {
  width: 5px !important;
  height: 6px !important;
}

.chat-contacts::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
}

.chat-contacts::-webkit-scrollbar-track {
  background: hsla(0, 0%, 100%, 0.1);
}

.chat-contacts .contact {
  padding: 6px 10px;
  border-bottom: 1px solid rgb(238, 238, 238);
  transition: 0.2s;
}

.chat-contacts .contact:first-child {
  border-top: 1px solid rgb(238, 238, 238);
}

.chat-contacts .contact:hover {
  background-color: #cdf8cd;
  margin-left: 4px;
}

.chat-contacts .contact img {
  width: 35px;
  padding: 2px;
  border: 0.05rem solid #ddd;
  margin-right: 0.35rem;
}

.chat-contacts .contact .status {
  font-size: 10px;
}

.chat-contacts .contact i {
  font-size: 8px;
  margin-right: 3px;
}

.chat .contact div {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

#messages {
  margin: 0.25rem 0.2rem 0.25rem 0;
  max-height: 75%;
  overflow-y: auto;
}

#messages::-webkit-scrollbar {
  width: 5px !important;
  height: 6px !important;
}

#messages::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
}

#messages::-webkit-scrollbar-track {
  background: hsla(0, 0%, 100%, 0.1);
}

textarea {
  resize: none;
  min-height: 40px;
  max-height: 100px;
  overflow-y: scroll;
  resize: none;
  padding: 10px;
}

#messages .message {
  color: #303030;
  border-radius: 7.5px;
  font-size: 12px;
  max-width: 75%;
  min-width: 30%;
  background-color: rgb(243, 243, 243);
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
  transition: 0.2s;
}

#messages .message:hover {
  box-shadow: 0 1.5px 1px 1px rgba(0, 0, 0, 0.13);
}

.chat .new-message input {
  width: 85%;
}

.chat .new-message i:hover {
  opacity: 0.75;
}

.chat .user-last-message {
  color: rgb(83, 83, 83);
  font-size: 0.6rem !important;
}

.chat-notifications .badge {
  position: absolute;
  top: 0.1rem;
  left: 2.7rem;
  padding: 1px 5px;
}

#showChat {
  position: fixed;
  left: 0;
  bottom: 160px;
  border-radius: 0 4px 4px 0px;
  width: 35px;
  transition-delay: 0.3s;
  z-index: 99999;

  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.page-wrapper.toggled #showChat {
  left: -40px;
  transition-delay: 0.3s;
}

.page-wrapper #showChat {
  left: 0;
  transition-delay: 0.3s;
}
