.page-chats {
  /* display: grid; */
  /* grid-template-columns: 25% 50%; */
  display: flex;

  .avatar-edit {
    .tgico-cameraadd {
      top: 52%;
    }
  }
  
  > div {
    position: relative;
    min-height: 100%;

    //@include respond-to(not-handhelds) {
      height: 100%;
      max-height: 100%;
    //}
  }

  #main-columns {
    width: 100%;
    overflow: hidden;
  }

  @include respond-to(handhelds) {
    .main-column {
      width: 100%;

      &:not(.active) {
        display: none;
      }
    }

    /* #column-left {
      display: flex!important;
    } */
  }

  @include respond-to(not-handhelds) {
    #column-center {
      display: flex!important;
      background-color: #e6ebee;
      width: 100%;
    }

    #column-right {
      display: flex!important;
    }

    .main-column {
      height: 100%;
      position: relative;
      min-height: 100%;
      max-height: 100%;
      //z-index: auto;
    }

    #main-columns {
      display: flex;
    }
  }

  @include respond-to(floating-left-sidebar) {
    .main-column {
      height: calc(var(--vh, 1vh) * 100) !important;
    }
  }

  /* @include respond-to(until-floating-left-sidebar) {
    .main-column {
      display: flex !important;

      &.active {
        z-index: 3;
      }

      &.to {
        z-index: 4;
      }
    }
  } */
  
  .preloader {
    width: 50px;
    height: 50px;
    
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    
    &-path {
      stroke: $button-primary-background;
    }
  }

  #search-container, .sidebar-search {
    flex-direction: column;
    width: 100%;
    max-height: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    background: #fff;
  }

  @include respond-to(large-screens) {
    border-top-width: 0;
    border-bottom-width: 0;
    border-left-width: 1px;
    border-right-width: 1px;
    border-style: solid;
    border-color: #DADCE0;
  }
}

#dialogs-contextmenu {
  .menu-unread {
    &:before {
      content: $tgico-unread;
    }

    &.flip-icon:before {
      content: $tgico-readchats;
    }
  }

  .menu-pin {
    &:before {
      content: $tgico-pin;
    }

    &.flip-icon:before {
      content: $tgico-unpin;
    }
  }

  .menu-mute {
    &:before {
      content: $tgico-mute;
    }

    &.flip-icon:before {
      content: $tgico-unmute;
    }
  }

  .menu-archive {
    &:before {
      content: $tgico-archive;
    }

    &.flip-icon:before {
      content: $tgico-unarchive;
    }
  }
}