@use 'sass:map';
@use 'mixins/mixins' as *;
@use 'mixins/function' as *;
@use 'mixins/var' as *;
@use 'common/var' as *;

// @include b(message) {
// }

.cl-message {
  // border-bottom: 1px solid #e4e7ed;
  position: relative;
  box-sizing: border-box;

  // padding:  20px 20px 0 20px;
  margin-top: 24px;
  overflow: hidden;
  font-size: 14px;
  background-color: #fff;

  .message-title {
    display: flex;
    flex-wrap: wrap;
    flex-wrap: nowrap;
    justify-content: space-between;

    .left {
      display: flex;

      img {
        width: 24px;
        height: 24px;
        margin-right: 10px;
        border-radius: 50%;
      }

      span {
        flex: 1;
        font-size: 14px;
        line-height: 24px;
        color: #8c8c8c;
        word-break: break-all;
        vertical-align: top;
      }
    }

    .time {
      font-size: 14px;
      line-height: 24px;
      color: #8c8c8c;
      white-space: nowrap;
    }
  }

  .message-operates {
    position: relative;
    width: 15px;

    .delete-icon {
      display: none;
      font-size: 15px;
    }

    h3 {
      margin-top: 0;
      margin-bottom: 0.5em;
      font-weight: 500;
      color: rgb(0 0 0 / 85%);
    }
  }

  .message-content {
    display: -webkit-box;
    display: flexbox;
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    margin-left: 36px;
    font-size: 14px;
    line-height: 16px;
    color: #333;
    text-align: left;

    .message-content-text {
      width: 100%;
      word-break: break-all;
    }

    .record-file {
      color: white;
    }
  }

  .item {
    cursor: pointer;
  }

  .system-info {
    padding-left: 34px;
    margin-top: 4px;
    color: #262626;
  }

  .ant-badge-count {
    font-size: 14px;
    color: #ff4d4f;
    background: #fff;
  }

  /* 卡片弹窗 */
  .clmessage-popconfirm {
    .clmessage-confim-text {
      padding-right: 40px;
    }
  }

  &:hover {
    .delete-icon {
      display: block;
    }
  }
}
