.message {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;

  p {
    font-size: 0.8rem;
  }

  nb-icon {
    font-size: 0.8rem;
  }

  .author-image {
    align-self: start;
    display: flex;
    margin-right: 5px;
    width: 35px;

    img {
      width: 100%;
    }
  }

  .content-controls {
    width: 100%;

    .author-details {
      p {
        color: grey;
        margin: 0 0 0.2rem;

        fa-icon {
          margin-left: 5px;
          color: green;
        }
      }
    }

    .content {
      white-space: pre-wrap;
      word-break: break-word;
    }

    .attachments {
      background: #e9f1ff;
      border-radius: 5px;
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-start;
      max-width: 80%;
      padding: 10px 0;
      width: fit-content;

      .file {
        background: white;
        border: 2px solid #bcd4ff;
        border-radius: 5px;
        height: 100px;
        margin: 0 5px;
        position: relative;
        width: 80px;

        a.download-link {
          align-items: center;
          display: flex;
          height: 100%;
          justify-content: center;
          position: absolute;
          width: 100%;

          nb-icon {
            color: #8b8b8b;
            display: none;
            font-size: 3rem;
          }

          &:hover {
            nb-icon {
              display: block;
            }
          }
        }

        .file-preview {
          display: flex;
          flex-direction: column;
          height: 100%;
          overflow: hidden;

          .name {
            align-items: center;
            display: flex;
            height: 80%;
            margin: 0;
            text-align: center;
            word-break: break-all;
          }

          .extension {
            border-top: 1px dotted lightgrey;
            color: lightgrey;
            font-weight: bolder;
            margin: 0;
            text-align: center;
          }
        }

        .image-file-preview {
          align-items: center;
          display: flex;
          flex-direction: row;
          height: 100%;
          overflow: hidden;

          img {
            width: 100%;
          }
        }
      }
    }

    .details-flag {
      align-items: baseline;
      display: flex;
      justify-content: flex-start;

      > div {
        margin-right: 10px;

        p {
          margin: 5px 0 0;
        }
      }

      .reply-button {
        p {
          font-size: 1.1rem;
        }
      }

      .message-context-menu {
        nb-icon {
          vertical-align: revert;
        }
      }
    }
  }
}

.replies-container {
  margin: 1rem;
  // border-bottom: 1px solid lightgrey;
  // border-left: 1px solid lightgrey;
  // border-right: 1px solid lightgrey;

  .reply-message {
    margin-bottom: 0.5rem;
  }

  .reply-form {
    width: 100%;

    form {
      display: flex;
      width: 100%;

      button {
        width: 30px;
      }
    }
  }
}

.edit-message-form {
  max-width: 90vw;
  min-width: 500px;
}
