/*
 * https://github.com/morethanwords/tweb
 * Copyright (C) 2019-2021 Eduard Kuzmenko
 * https://github.com/morethanwords/tweb/blob/master/LICENSE
 */

.sidebar {
  &-header {
    background-color: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    min-height: 3.5rem;
    flex: 0 0 auto;
    user-select: none;
    cursor: default;
    
    .btn-menu {
      overflow-y: overlay;
    }

    @include respond-to(handhelds) {
      padding: 0 .5rem;
    }

    /* //position: sticky !important;
    position: sticky !important;
    top: 0;
    z-index: 1; */

    &__title {
      flex: 1;
      font-weight: var(--font-weight-bold);
      padding-left: 1.5rem;
      font-size: 1.25rem;
      color: var(--primary-text-color);
    }

    .btn-icon + .btn-icon {
      margin-left: .5rem;
    }

    &-right {
      flex: 0 0 auto;
    }
  }

  &-close-button {
    overflow: inherit !important;
    width: 2.5rem;
    height: 2.5rem;
  }

  &-content {
    width: 100%;
    max-height: 100%;
    height: 100%;
    overflow: hidden;
    display: flex; /* idk why but need */
    position: relative;
    flex: 1 1 auto;

    /* @include respond-to(handhelds) {
      margin-top: 60px;
    } */

    /* > div {
      width: 100%;
    } */
  }
}
