@import './../theme/variables';
@import './../theme/reboot';

.sub-section {
  max-width: 800px;
  padding: 2rem 1rem;
}

.page-comp {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100vh - 54px);
  padding-left: 10px;
  margin-top: 54px;

  @media (max-width: 576px) {
    padding-left: 5px;
  }

  .page-comp-header {
    height: 54px;
    border-bottom: 1px solid $border-color;

    .page-comp-header-left {
      display: flex;

      .btn.btn-icon {
        border: none;
        border-right: 1px solid $border-color;
      }
    }

    .page-comp-title {
      font-size: 1rem;
      font-weight: 300;
      padding: 1rem;
      margin: 0;
      display: flex;
      justify-content: center;
      align-items: center;

      @media (max-width: 576px) {
        font-size: 0.9rem;
      }
    }

    .page-comp-header-right {
      display: flex;
      justify-content: flex-end;
      align-items: center;

      .btn.btn-icon {
        border: none;
        border-left: 1px solid $border-color;
      }
    }
  }

  .page-comp-tab-group {
    display: flex;
    flex: 1;

    .page-comp-tabs {
      width: 200px;
      border-right: 1px solid $border-color;
      display: none;

      @media (min-width: 927px) {
        display: flex;
      }

      .nav {
        flex: 1;
      }

      .nav-link {
        padding: 1rem;
        font-size: 0.7rem;
        border-left: 0.4rem solid transparent;
        letter-spacing: 0.09rem;
        text-transform: uppercase;
        font-weight: 300;

        &:hover {
          border-color: $primary-color;
        }

        &.active {
          border-color: $primary-color;
          background-color: #f3f3f3;
        }
      }
    }
  }

  .page-comp-body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    height: 100%;

    @media (max-width: 576px) {
      padding-bottom: 5rem;
    }
  }

  .page-comp-body-fullscreen {
    position: fixed;
    top: 54px;
    left: 10px;
    height: calc(100vh - 54px);
    width: calc(100% - 10px)!important;
    overflow: hidden;

    @media (max-width: 576px) {
      padding-bottom: 0;
      left: 5px;
      width: calc(100% - 5px)!important;
    }
  }
}

