@import '~react-quill/dist/quill.core.css';

.module-room {
  @include flex($direction: column);
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;

  // .iScrollVerticalScrollbar {
  //   position: absolute;
  //   z-index: 9999;
  //   width: 6px;
  //   bottom: 2px;
  //   top: 2px;
  //   right: 1px;
  //   opacity: 1;

  //   .iScrollIndicator {
  //     box-sizing: border-box;
  //     position: absolute;
  //     // background: rgba(0, 0, 0, 0.5);
  //     // border: 1px solid rgba(255, 255, 255, 0.9);
  //     border-radius: 3px;
  //     width: 100%;

  //     @include light-theme() {
  //       background: $color-gray-25;
  //       border: 1px solid $color-gray-25;
  //     }

  //     @include dark-theme() {
  //       background: $color-gray-45;
  //       border: 1px solid $color-gray-45;
  //     }
  //   }
  // }

  &-header {
    @include flex($align: center);
    width: 100%;
    height: 36px;
    border-bottom: 1px solid;
    // padding-right: 8px;
    user-select: none;
    -webkit-user-select: none;
    -webkit-app-region: drag;

    @include light-theme() {
      border-color: $color-cIt-header-border;
      box-shadow: 0 1px 4px $color-cIt-header-border;
    }

    @include dark-theme() {
      border-color: $color-gray-60;
      box-shadow: 0 1px 4px $color-gray-65;
    }

    & > button {
      margin-right: 6px;
      user-select: auto;
      -webkit-user-select: auto;
      -webkit-app-region: no-drag;
    }

    &--title {
      flex: 1;
      margin: 0;
      padding-left: 24px;
      font-size: 16px;
      text-align: center;
      font-weight: bold;

      @include light-theme() {
        color: $color-gray-90;
      }

      @include dark-theme() {
        color: $color-gray-02;
      }
    }

    .anticon {
      @include light-theme() {
        color: $color-gray-75;
      }

      @include dark-theme() {
        color: $color-gray-15;
      }
    }
  }

  &-scroll {
    width: 100%;
    flex: 1;
    overflow: hidden;
    // overflow: auto;

    .loader {
      margin: 4px 0 6px;
      text-align: center;
      color: #999999;
    }

    &:hover {
      .iScrollVerticalScrollbar {
        opacity: 1 !important;
      }
    }
  }

  &--footer {
    width: 100%;
    height: 146px;

    @include light-theme() {
      border-top: 1px solid #e7e7e7;
    }

    @include dark-theme() {
      border-top: 1px solid $color-gray-65;
      // background-color: $color-gray-75;
    }
  }
}
