@import '~styles/mixins';

.mail-box {
  position: relative;
  height: calc(100vh - #{$height_global_header});
  $height_top: 80px;
  $height_submit: 100px;

  padding-top: $height_top;

  .top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: solid 2px $color-grey;

    height: $height_top;
    display: flex;
    align-items: center;

    .title {
      margin: 0;
      margin-left: 20px;
    }
  }

  .chat-wrapper {
    display: flex;
    height: 100%;
  }

  .cards-container {
    flex-shrink: 0;
    height: 100%;
    overflow-y: auto;
    position: relative;
  }

  .chat-container {
    width: 100%;
    height: 100%;
    background-color: $color-grey-background;
    position: relative;
    display: flex;
    flex-direction: column;
    //border-left: 2px solid $color-grey;

    // padding-bottom: $height_submit;

    .form {
      // position: absolute;
      // bottom: 0;
      // left: 0;
      flex-shrink: 0;
      width: 100%;
      // min-height: $height_submit;
    }

    .convers-container {
      overflow: auto;
      height: 100%;
      padding: 20px;
      border-left: 1px solid $color-grey;
    }
  }

  .no-message {
    @include container;
    text-align: center;
  }
}
