//
// Side navigation
//

.pmf-admin-sidenav {
  background-color: $pmf-admin-sidenav-bg;
  color: $pmf-admin-sidenav-color;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-wrap: nowrap;

  .pmf-admin-sidenav-menu {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;

    .nav {
      flex-direction: column;
      flex-wrap: nowrap;

      .pmf-admin-sidenav-menu-heading {
        color: $pmf-admin-sidenav-heading-color;
        padding: 1.75rem 1rem 0.75rem;
        font-size: 0.75rem;
        font-weight: bold;
        text-transform: uppercase;
      }

      .nav-link {
        color: $pmf-admin-sidenav-link-color;
        display: flex;
        align-items: center;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        position: relative;

        .pmf-admin-nav-link-icon {
          color: $pmf-admin-sidenav-icon-color;
          font-size: 0.9rem;
          width: 18px;
        }

        .pmf-admin-sidenav-collapse-arrow {
          color: $pmf-admin-sidenav-icon-color;
          display: inline-block;
          margin-left: auto;
          transition: transform 0.15s ease;
        }

        &:hover {
          color: $pmf-admin-sidenav-link-active-color;
        }

        &.active {
          color: $pmf-admin-sidenav-link-active-color;

          .pmf-admin-nav-link-icon {
            color: $pmf-admin-sidenav-link-active-color;
          }
        }

        &.collapsed {
          .pmf-admin-sidenav-collapse-arrow {
            transform: rotate(-90deg);
          }
        }
      }

      .pmf-admin-sidenav-menu-nested {
        margin-left: 1.5rem;
        flex-direction: column;
      }
    }
  }
}

#pmf-admin-layout-sidenav {
  overflow: scroll;
  height: calc(100vh - 56px);
}

#pmf-admin-layout-sidenav_nav {
  position: sticky;
  top: 0;
}
