div#chat-app .content {
  /*! REMOVE LATER */
  /* background-color: rgba(255, 0, 0, 0.2); */
  flex: 1;
  overflow: hidden;
}

div[data-module="all-chat"]#all-chat,
div[data-module="all-contact"]#all-contact {
  height: 100%;
  /*! REMOVE LATER */
  /* background-color: pink; */
}

div#all-chat-container,
div#all-contact-container {
  height: 100%;
  overflow-y: auto;
  display: flex;
}

div#all-chat-container > h4 {
  margin: 10px 0px;
}

.chat-user-select-container-wrapper {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 300px;
}
.chat-user-select-container-header {
  display: flex;
  align-items: flex-end;
  padding: 10px;
}

.chat-user-select-container {
  height: 100%;
  width: 300px;
  /* margin-top: 39px; */
  border-top: 1px solid #dcdce6;
  margin-right: 2px;
  /*! REMOVE LATER */
  /* background-color: rgba(0, 255, 40, 0.2); */
  overflow-y: auto;
}

.conversation-container {
  flex: 1;
  /*! REMOVE LATER */
  /* background-color: rgba(255, 100, 0, 0.3); */
  overflow-y: auto;
  border-left: 1px solid var(--main-key-border-color);
  /* margin-left: 10px; */
}

div.chat-room-container {
  display: flex;
  /*! REMOVE LATER */
  /* background-color: orange; */
  flex: 1;
  padding: 10px 10px 10px 15px;
  cursor: pointer;
}

div.chat-room-container:hover {
  background-color: var(--main-hover-cell);
}

div.chat-room-detail-container {
  display: flex;
  justify-content: space-between;
  /*! REMOVE LATER */
  /* background-color: rgba(100, 200, 300, 0.3); */
  flex: 1;
  padding-left: 10px;
  width: calc(100% - 60px);
}

div.chat-room-online-icon {
  width: 16px;
  min-width: 16px;
  max-width: 16px;
  height: 16px;
  min-height: 16px;
  max-height: 16px;
  background-color: #419b4b;
  border-radius: 16px;
}

div.chat-room-offline-icon {
  width: 16px;
  min-width: 16px;
  max-width: 16px;
  height: 16px;
  min-height: 16px;
  max-height: 16px;
  background-color: lightgrey;
  border-radius: 16px;
}

div.chat-room-name-label {
  text-overflow: ellipsis;
  overflow: hidden;
  font: normal normal bold 14px Lato;
}

.chat-room-name-last-chat-container {
  flex: 1;
  width: 100%;
}

.chat-room-name-last-online-container,
.chat-room-latest-message-online-icon {
  display: flex;
  align-items: center;
}

.chat-room-name-label,
.chat-room-last-message-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

div.no-selected-chat-room-label {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: normal normal bold 14px Lato;
}

div.conversation-label {
  font: normal normal bold 16px Lato;
}

div.selected-chatroom-label-container {
  padding: 7px 10px;
}

div.selected-conversation-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

div.conversation-board {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

div.editor-board {
  min-height: 200px;
}

.conversation-date-label {
  height: 40px;
  text-align: center;
  font: normal normal normal 12px Lato;
  color: var(--main-placeholder-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-message-container:not(.with-reply) {
  padding: 15px 10px 15px 15px;
}

.chat-message-container {
  color: var(--main-text-color);
  background-color: var(--normal-button-background);
  border-radius: 5px;
  box-shadow: 0px 2px 4px #00000029;
  min-height: 60px;
  width: calc(100% - 20px);
  /* width: fit-content; */
  overflow-x: hidden;
}

div[data-module="mini-app-chat"] .chat-message-container {
  /* min-width: 280px;
  max-width: 280px; */
}

div[data-module="mini-app-chat"] .chat-message-container.with-reply {
  /* min-width: 280px;
  max-width: 280px; */
}

.chat-message-container:not(.self-message-bg) {
  padding-left: 26px;
}

.chat-message-container.reply-style {
  opacity: 0.7;
}

.chat-message-time {
  display: flex;
  justify-content: space-between;
  color: var(--main-placeholder-color);
  font: normal normal normal 12px Lato;
}

.chat-conversation-list-container > * {
  margin: 6px 0px;
}

div.chat-message-row:not(.self) + .chat-message-row.self {
  margin-top: 20px;
}

div.chat-message-row {
  display: flex;
  justify-content: space-between;
  /* background-color: burlywood */
}

.self-message-bg {
  background-color: var(--self-chat-background);
  color: var(--main-text-color);
}

div.self-message-bg div.chat-message span.mention-highlight {
  color: var(--main-text-color);
}

div.self-message-bg > div.chat-message-time {
  color: var(--main-placeholder-color);
}

.chat-message-wrapper {
  position: relative;
  display: flex;
  max-width: 50%;
}

div.chat-message span.mention-highlight {
  color: var(--main-text-color);
  border-radius: 3px;
  padding: 4px 2px;
  font: normal normal bold 14px Lato;
}

.chat-option-list-container {
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  background: url(../../common/img/commonIcon/option-dropdown.svg);
  background-size: 30px 30px;
  background-position: center center;
  background-repeat: no-repeat;
  cursor: pointer;
  visibility: hidden;
}

.chat-option-list-container:hover {
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  background: url(../../common/img/commonIcon/option-dropdown_hover.svg);
  background-size: 30px 30px;
  background-position: center center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.chat-message-wrapper:hover .chat-option-list-container {
  visibility: visible;
}

.replying-message-container {
  padding: 5px 0px 0px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #dcdce6;
  color: var(--main-placeholder-color);
}

.reply-message-header-container {
  display: flex;
  justify-content: space-between;
}

.reply-message-header-container .text-input-placeholder {
  font-weight: normal;
}

div.cancel-reply-btn {
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  min-height: 20px;
  max-height: 20px;
  background: url(../../common/img/commonIcon/close-icon.svg);
  background-size: 20px 20px;
  background-position: center center;
  background-repeat: no-repeat;
  cursor: pointer;
}

div.reply-message-container {
  margin-bottom: 10px;
}

div.reply-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

div.reply-wrapper > div.chat-message-container:not(:first-child) {
  margin-top: -10px;
  z-index: 30;
}

div.conversation-board p,
div.reply-message-container p {
  margin-bottom: 0px !important;
}

.chat-attachment-list-container {
  padding: 0px 10px 5px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chat-attachment-list-container > * {
  /* margin: 0px 8px; */
}

.chat-attachment-list-container > * .ant-avatar-square {
  border: 1px solid var(--main-key-border-color);
}

.chat-attachment-list-container > *:first-child {
  margin: 0px;
}

.attachment-image-container,
.attachment-other-type-container {
  position: relative;
  min-height: 64px;
}

.attachment-other-type-container {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--main-key-border-color);
  border-radius: 4px;
  padding: 0px 5px;
}

.attachment-image-container:hover .remove-chat-attachment-icon,
.attachment-other-type-container:hover .remove-chat-attachment-icon {
  transition: opacity 200ms ease-out;
  opacity: 1;
}

.remove-chat-attachment-icon {
  align-items: center;
  background-color: white;
  border-radius: 20px;
  border: 2px solid var(--main-key-border-color);
  color: var(--main-text-color);
  font: normal normal bold 14px Lato;
  height: 20px;
  justify-content: center;
  max-width: 20px;
  min-height: 20px;
  min-height: 20px;
  min-width: 20px;
  opacity: 0;
  position: absolute;
  right: -10px;
  text-align: center;
  top: -10px;
  width: 20px;
  z-index: 30;
  cursor: pointer;
}

.chat-attachement-label {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 190px;
  min-width: 131px;
}

.chat-file-name {
  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-left: 5px;
}

.chat-file-icon#pdf-icon {
  width: 54px;
  min-width: 54px;
  max-width: 54px;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  background: url(../../common/img/commonIcon/attachment-pdf-icon.svg);
  background-position: center center;
  background-size: 54px 54px;
  background-repeat: no-repeat;
}

.chat-file-icon#video-icon {
  width: 54px;
  min-width: 54px;
  max-width: 54px;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  background: url(../../common/img/commonIcon/attachment-video-icon.svg);
  background-position: center center;
  background-size: 54px 54px;
  background-repeat: no-repeat;
}

.chat-file-icon#default-icon {
  width: 54px;
  min-width: 54px;
  max-width: 54px;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  background: url(../../common/img/commonIcon/attachment-default-icon.svg);
  background-position: center center;
  background-size: 54px 54px;
  background-repeat: no-repeat;
}

div.small-file-icon#video-icon {
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  min-height: 20px;
  max-height: 20px;
  background: url(../../common/img/commonIcon/attachment-video-icon.svg);
  background-position: center center;
  background-size: 20px 20px;
  background-repeat: no-repeat;
}

div.small-file-icon#default-icon {
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  min-height: 20px;
  max-height: 20px;
  background: url(../../common/img/commonIcon/attachment-default-icon.svg);
  background-position: center center;
  background-size: 20px 20px;
  background-repeat: no-repeat;
}

div.small-file-icon#pdf-icon {
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  min-height: 20px;
  max-height: 20px;
  background: url(../../common/img/commonIcon/attachment-pdf-icon.svg);
  background-position: center center;
  background-size: 20px 20px;
  background-repeat: no-repeat;
}

div.chat-not-image-attachment-list-container > * {
  margin-top: 5px;
}

div.chat-message-file-container {
  display: flex;
  align-items: center;
}

.chat-message-file-label {
  margin-left: 5px;
  cursor: pointer;
  overflow-x: hidden;
  text-overflow: ellipsis;
}

.chat-message-file-label:hover {
  text-decoration: underline;
}

div.chat-image-attachment-list-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

div.selected-chatroom-member-label {
  color: var(--main-placeholder-color);
  font: normal normal normal 12px Lato;
}

div.selected-conversation-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--main-key-border-color);
  margin: 0px 10px;
}

div#chat-group-setting-dropdown-icon {
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  background: url(../../common/img/commonIcon/option-dropdown.svg);
  background-size: 30px 30px;
  background-position: center center;
  background-repeat: no-repeat;
  cursor: pointer;
}
div#chat-group-setting-dropdown-icon:hover {
  background: url(../../common/img/commonIcon/option-dropdown_hover.svg);
  background-size: 30px 30px;
  background-position: center center;
  background-repeat: no-repeat;
}

div.chat-special-status-container {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--main-placeholder-color);
  font: normal normal normal 12px Lato;
  border-radius: 4px;
  padding: 13px;
}

.message-header-wrapper {
  display: flex;
  align-items: center;
  color: var(--main-placeholder-color);
  font-weight: bold;
  justify-content: space-between;
}

.chat-room-last-message-label {
  color: var(--main-placeholder-color);
}

.last-online-label {
  color: var(--main-placeholder-color);
  font-size: 12px;
}

.retry-msg-icon {
  cursor: pointer;
  background-image: url("../../common/img/attachmentIcon/retry-msg-icon.svg");
  width: 20px;
  height: 20px;
}

.replying-message-text-container .chat-message-attachment-list-container {
  margin-left: 10px;
  flex-grow: 1;
  min-width: 0;
}
.replying-message-text-container span.ant-avatar-square.ant-avatar-image {
  height: 40px !important;
  width: 40px !important;
}

.replying-message-text-container {
  display: flex;
  align-items: center;
  flex: 1;
  margin-top: 5px;
}
.replying-message-text-container p {
  margin-bottom: 0;
}

.chat-message-container .chat-message {
  word-break: break-all;
}

.message-owner-title {
  display: flex;
  align-items: center;
  font-weight: bold;
  margin-right: 5px;
}

.replying-message-text-container .chat-message {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.chat-message-container .chat-message p,
.replying-message-text-container .chat-message p {
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.chat-message-container.with-reply .message-header-wrapper {
  padding: 15px 10px 0 15px;
}

.chat-message-container.with-reply .reply-container {
  padding: 0 10px 0 15px;
}

.chat-message-container.with-reply > .chat-message {
  padding: 15px 10px 15px 15px;
}

.reply-container {
  padding-bottom: 10px !important;
  color: var(--main-placeholder-color);
  border-bottom: 1px solid var(--main-key-border-color);
}

div.chat-message-gap {
  margin-left: 40px;
}

div[data-module="mini-app-chat"] div.chat-message-gap {
  margin-left: 10px;
}

.last-message-preview-text {
  overflow-x: hidden;
  text-overflow: ellipsis;
}

.chat-message-search-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 10px;
}

div.chat-message-search-container input.ant-input {
  padding-right: 60px !important;
}

span.highlight-search-message {
  background-color: #64b4fa;
}