.position-relative {
  position: relative;
}
.overflow-hidden {
  overflow: hidden;
}
.position-absolute {
  position: absolute;
}
.opacity-0x {
  opacity: 0;
}
.im-body {
  height: calc(80vh - 185px) !important;
}
.im-container {
  display: flex;
  align-items: stretch;
}
.im-container .im-lhs {
  min-width: 300px;
  border-right: 1px solid #ddd;
  padding: 0.5rem;
  overflow: auto;
}
.im-container .im-lhs .im-conversation {
  border-radius: 4px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
}
.im-container .im-lhs .im-conversation:hover {
  background: aliceblue;
  text-decoration: none;
}
.im-container .im-lhs .im-conversation.active {
  background: aliceblue;
  border-color: #307899;
}
.im-container .im-lhs .im-conversation:not(:last-child) {
  margin-bottom: 0.5rem;
}
.im-container .im-lhs .im-conversation .unread-conversation {
  position: absolute;
  right: 0;
  top: 0;
}
.im-container .im-rhs {
  flex-grow: 1;
  display: inline-flex;
  flex-direction: column;
}
.im-container .im-rhs .im-messages {
  flex-grow: 1;
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: auto;
  margin-bottom: 1rem;
}
.im-container .im-message {
  margin-top: 0.5rem;
  padding: 0 0.5rem;
  text-align: left;
}
.im-container .im-message.sent {
  text-align: right;
}
.im-container .im-rhs .im-messages-header {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}
.im-container .im-message .im-message-sender {
  display: flex;
  justify-content: flex-start;
}
.im-container .im-message .im-message-sender .unread-message {
  margin-bottom: -5px;
  margin-top: -5px;
  font-size: 16px;
}
.im-container .im-message .im-message-content {
  background: #eee;
  border-radius: 6px;
  padding: 0.5rem;
  margin-top: 0.25rem;
  /* white-space: pre-wrap; */
  word-break: break-word;
  text-align: left;
  display: inline-block;
  min-width: 150px;
  max-width: 75%;
  flex-grow: 0;
  margin-right: 5px;
}
.im-container .im-message.sent .im-message-sender {
  justify-content: flex-end;
}
.im-container .im-message.sent .im-message-content {
  margin-left: auto;
  background: #e4f9ff;
}

.im-container .im-rhs .im-input textarea {
  width: 100%;
  height: 35px;
  border:none;
  resize:none;
  padding: 0.3rem;
  box-shadow: none !important;
}
.im-container .im-rhs .im-input textarea:focus,
.im-container .im-rhs .im-input textarea:active,
.im-container .im-rhs .im-input textarea:focus-visible {
  border:none;
  outline: 0;
}
.im-container .im-rhs .im-input #selected-files .selected-file {
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 2px 20px 2px 5px;
  cursor: pointer;
  position: relative;
  margin-top: 6px;
  margin-right: 6px;
}
.im-container .im-rhs .im-input #selected-files .selected-file:hover {
  color: #b11313;
}
.im-container .im-rhs .im-input #selected-files .selected-file:after {
  position: absolute;
  content: '✕';
  right: 4px;
  color: #b11313;
}
.im-container .im-message.sent .header-item.text-sm {
  margin-right: 5px;
}
.im-container .im-message.sent .header-item {
  margin-left: 0.75rem;
}
.im-container .im-message.received .header-item {
  margin-right: 0.75rem;
}
.im-container .im-message.sent .attachment {
  margin-left: 0.75rem;
}
.im-container .im-message.received .attachment {
  margin-right: 0.75rem;
}
.im-container .im-rhs .im-video-container {
  max-width: 480px;
  display: inline-block;
  position: relative;
  margin-top: 4px;
}
.im-container .im-rhs .im-video-container video {
  max-width: 100%;
}
.im-container .im-rhs .im-video-container .vs-control {
  opacity: 0;
  transition: opacity 0.3s ease;
  position: absolute;
  margin: 0 !important;
  top: 0;
  right: 0;
  background: rgba(238, 238, 238, 0.75) !important;
  border: 0 !important;
  border-bottom-left-radius: 3px;
  text-align: right !important;
  width: auto !important;
  font-size: 11px !important;
}
.im-container .im-rhs .im-video-container:hover .vs-control {
  opacity: 1;
  background: rgba(238, 238, 238, 1) !important;
}
.im-container .im-rhs .im-video-container .vs-control select {
  width: auto !important;
  border: 0 !important;
}
.msg-header {
  background-color: #fefefe;
  color: #333;
  border-bottom: 1px solid #ccc;
}
.im-body .card-body {
  background-color: #fefefe;
}
.msg-input {
  border: 1px solid #eee;
  padding: 8px 10px;
  border-radius: 50px;
  background-color: #ffffff;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.msg-input textarea, .msg-input textarea:focus{
  outline:0;
  box-shadow: 0;
  border:none;
  width: 100%;
}
.btn-input, .btn-input:hover, .btn-input:focus {
  height: 40px;
  width: 40px;
  font-size: 18px;
  display: grid;
  place-items:center;
  border-radius: 100%;
  background: #0367b0;
  color: #fff;
}
.btn-input i {
  margin-left: -4px;
}
.plus, .plus:hover, .plus:focus {
  outline:0;
  border:0;
  background: 0;
  color: #aaa;
  margin-right: 5px;
}
.fabs {
  display: flex;
  gap: 5px;
}
.fabs .btn {
  margin-left: 0 !important;
  margin-bottom: 10px;
  height: 40px;
  width: 40px;
  border-radius: 100%;
}
.msg-list {
  height: calc(100vh - 185px) !important;
  overflow-y: auto;
}
.msg-list .msg-header {
  position: sticky;
  top: 0;
}
.pt {
  color: #000000;
}
.active-pt, .pt:hover {
  background-color: #c2efff;
  color: #000000;
  transition: .5s;
}
.im-container .im-message .im-message-sender {
  position: relative;
}

.im-container .im-message .delete,
.im-container .im-message .edit {
  position: absolute;
  right: -14px;
  top: 0px;
}

.im-container .im-message .edit {
  right: -18px;
  top: 25px;
}

.im-container .im-message:hover .edit,
.im-container .im-message:focus .edit,
.im-container .im-message:hover .delete,
.im-container .im-message:focus .delete {
  display: block;
}
.circle-icon {
  margin-top: 5px;
  height: 40px;
  width: 40px;
  text-align: center;
  border-radius: 100%;
  background-color: #ededed;
  font-size: 15px;
  font-weight: bold;
  display: grid;
  color: #444;
  place-items: center;
}
.circle-icon.op  {
  opacity: 0;
  height: 10px;
}

.sidebar a {
  display: block;
  padding: 8px 12px;
  color: #000000;
  border-bottom: 1px solid #ddd;
  font-size: 15px;
}

.sidebar a:last-child {
  border-bottom: 0;
}

.sidebar .active,
.sidebar a:hover {
  color:var(--pry-color);
  border-bottom-color: var(--pry-color);
  transition: .5s;
}
.custom-menu {
  transform: none !important;
  top: 30px !important;
}

.custom-menu .dropdown-item {
  padding: 10px !important;
  border-bottom: 1px solid #eee;
}

.table *{
  font-size: 14px !important;
}

@media screen and (max-width:500px) {
  .fabs {
    display: block;
  }
}
