.directive-chat-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.directive-chat-list .search-bar-wrapper {
  display: flex;
  flex: 0 0 48px;
  align-items: center;
}

.directive-chat-list .search-bar-wrapper button {
  margin-top: 0;
  margin-bottom: 0;
}

.directive-chat-list md-list {
  display: flex;
  /* flex: 1; */
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: var(--default-radius);
  background-color: rgba(var(--background-content));
  padding: 0;
}

.directive-chat-list md-list md-list-item {
  position: relative;
}

.directive-chat-list md-list md-list-item .md-button,
.directive-chat-list md-list md-list-item button {
  border-radius: var(--default-radius);
}

.directive-chat-list md-list md-list-item .chat-message-title-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.directive-chat-list
  md-list
  md-list-item
  .chat-message-title-wrapper
  .chat-message-chat-title {
  flex: 1;
  font-size: 12pt;
  font-weight: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.directive-chat-list
  md-list
  md-list-item
  .chat-message-title-wrapper
  .chat-message-date-time {
  font-weight: normal;
}

.directive-chat-list md-list md-list-item .md-list-item-text p {
  max-height: 24px;
  text-overflow: ellipsis;
  overflow: hidden;
  word-break: break-all;
  white-space: nowrap;
}

.directive-chat-list md-list md-list-item .chat-message-icon-wrapper {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
}

.directive-chat-list
  md-list
  md-list-item
  .chat-message-icon-wrapper
  i.unread-message {
  border-radius: 12px;
  min-width: 12px;
  max-width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 8pt;
  overflow: hidden;
  box-sizing: border-box;
  position: absolute;
  top: -2px;
  right: 0;
  background-color: rgba(var(--color-error));
  color: rgba(var(--on-error-color));
}

.directive-chat-list .message-text {
  font-weight: normal !important;
}

.directive-chat-list .unread-message-text {
  font-weight: bold !important;
}

.directive-chat-list md-list md-list-item .md-avatar,
.directive-chat-list md-list md-list-item .md-avatar-icon {
  border: 3px solid rgba(var(--primary-color));
  padding: 1px;
  width: 46px;
  min-width: 46px;
  height: 46px;
  margin: 0 6px;
  margin-top: 0 !important;
  box-sizing: border-box;
  background-color: transparent;
  color: rgba(var(--font-color));
}

.directive-chat-list md-list md-list-item .md-avatar-icon svg {
  width: 100%;
  height: 100%;
}

.directive-chat-list .directive-chat-list-no-chats {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.directive-chat-list .directive-chat-list-no-chats md-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  color: rgba(var(--primary-color));
  margin: 0;
}

.directive-chat-list .directive-chat-list-no-chats span {
  color: rgba(var(--primary-color));
  text-align: center;
}
