.project-ds-nav-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  color: var(--content-secondary);

  // NOTE-AC: This code can be eliminated when we remove sidebar-navigation-ui-update
  --navbar-btn-padding-h: var(--spacing-06);
  --navbar-subdued-padding: calc(
      var(--navbar-btn-padding-v) + var(--navbar-btn-border-width)
    )
    calc(var(--navbar-btn-padding-h) + 1px);

  .navbar-default {
    position: relative;

    --navbar-toggler-expanded-bg: none;
    --navbar-toggler-expanded-color: var(--content-secondary);

    .navbar-header > a {
      position: relative;
      z-index: 15;

      @include media-breakpoint-up(md) {
        top: var(--spacing-05);
      }
    }

    .nav-item-projects {
      display: none !important;
    }

    @include media-breakpoint-up(lg) {
      .nav-item-account,
      .nav-item-help {
        display: none;
      }
    }

    @include media-breakpoint-down(lg) {
      --navbar-hamburger-submenu-item-hover-color: var(--content-primary);
      --navbar-hamburger-submenu-item-hover-bg: var(--bg-light-secondary);
      --navbar-subdued-hover-color: var(--content-primary);
      --navbar-link-hover-color: var(--content-primary);
      --navbar-link-hover-bg: var(--bg-light-secondary);
      --navbar-subdued-hover-bg: var(--bg-light-secondary);
      --navbar-hamburger-submenu-bg: none;

      .nav-item-help::before {
        content: '';
        display: block;
        border-top: 1px solid var(--border-divider);
        margin: var(--spacing-07) var(--spacing-06);
      }

      #navbar-main-collapse {
        padding: var(--spacing-09) var(--spacing-06) 0;

        .navbar-nav {
          > li {
            > a,
            > .dropdown-toggle,
            > .nav-link {
              border-radius: var(--border-radius-medium);

              &.show {
                background-color: var(--bg-accent-03);
                color: var(--green-60);
              }
            }
          }
        }
      }
    }
  }

  .navbar-nav > li > .dropdown-toggle::after {
    display: none;
  }

  .project-list-wrapper {
    flex-grow: 1;
    display: flex;
    overflow-y: hidden;

    .project-list-sidebar-wrapper-react {
      position: relative;
      display: flex;
      flex-direction: column;
      flex: 0 0 15%;
      max-width: 320px;
      min-width: 200px;
      margin-top: var(--spacing-03);
      padding: var(--spacing-08) 0 0 0;

      .new-project-dropdown {
        padding: 0 var(--spacing-08) var(--spacing-05) var(--spacing-05);
        border-bottom: solid 1px transparent;

        &.show-shadow {
          border-bottom-color: var(--border-divider);
        }

        > .dropdown-menu {
          // navbar + new-project spacing + new-project button height (36px) + extra padding
          max-height: calc(
            100vh - #{$header-height} - var(--spacing-03) - var(--spacing-08) - 36px - var(
                --spacing-05
              )
          );
          overflow: auto;
        }
      }

      .project-list-sidebar-scroll {
        flex: 1 1 auto;
        overflow: auto;
        margin: 0 var(--spacing-02) 0 0;
        padding: var(--spacing-05) var(--spacing-07) var(--spacing-05)
          var(--spacing-05);
      }

      .ds-nav-sidebar-lower {
        padding: var(--spacing-05) var(--spacing-08) 0 var(--spacing-05);
        border-top: solid 1px transparent;

        &.show-shadow {
          border-top-color: var(--border-divider);
        }
      }

      .project-list-sidebar-survey-link {
        color: var(--content-secondary) !important;
      }

      .survey-notification {
        background-color: var(--bg-light-secondary);
        color: var(--content-secondary);
        box-shadow: none;
        border-radius: var(--border-radius-large);
        position: relative;

        .user-notification-close {
          border: none;
          padding: 0;
          background: none;
          position: absolute;
          top: var(--spacing-07);
          right: var(--spacing-07);
          color: inherit;
        }

        p {
          margin-bottom: var(--spacing-03);
        }
      }

      .project-list-sidebar-survey-wrapper .user-notifications {
        margin-bottom: var(--spacing-05);
      }
    }

    ul.project-list-filters {
      margin-bottom: 0;

      hr {
        margin: var(--spacing-05) 0;
      }

      > li {
        > button {
          width: 100%;
          text-align: left;
          color: var(--content-secondary);
          background: none;
          border-radius: var(--border-radius-medium);
          border: none;
          padding: var(--spacing-04) var(--spacing-05);
        }

        &:hover button {
          background-color: var(--bg-light-secondary);
        }

        &.active button {
          background-color: var(--bg-accent-03);
          color: var(--green-60);
          font-weight: bold;
        }
      }

      .dropdown-header {
        font-weight: bold;
      }

      > li.tag {
        button.tag-name {
          padding-right: var(--spacing-08) !important;
        }
      }

      .tag-menu {
        button.dropdown-toggle {
          border-radius: var(--border-radius-full);
          border: none;
          color: var(--content-secondary);
          height: 20px;
          width: 20px;
          padding: 0;

          &::after {
            display: none;
          }

          &:hover,
          &:active,
          &[aria-expanded='true'] {
            background-color: var(--neutral-20);
          }
        }
      }
    }

    .project-ds-nav-main {
      min-height: 100%;
      padding: var(--spacing-08) var(--spacing-06);

      @include media-breakpoint-up(md) {
        padding: var(--spacing-08);
      }
    }

    .project-dash-table {
      .btn-link {
        color: var(--content-secondary);
        height: var(--spacing-08);
        width: var(--spacing-08);
        border-radius: 100%;
        padding: var(--spacing-01) 0 0;
        vertical-align: middle;

        &:hover,
        &:focus {
          background-color: #d9d9d9 !important;
        }
      }

      .dash-cell-name a {
        color: var(--content-secondary) !important;
      }
    }

    .project-ds-nav-content-and-messages {
      flex-grow: 1;
      display: flex;
      flex-direction: column;

      .project-ds-nav-content {
        flex-grow: 1;
        overflow-y: auto;
        position: relative;
        background-color: var(--bg-light-secondary);

        @include media-breakpoint-up(md) {
          border-top-left-radius: var(--border-radius-large);
          border-left: 1px solid var(--border-divider);
          border-top: 1px solid var(--border-divider);
        }
      }
    }
  }

  .ds-nav-icon-dropdown {
    .dropdown-toggle {
      color: var(--content-secondary);
      background: none;
      height: 44px;
      width: 44px;
      padding: 0;
      overflow: hidden;

      &:hover {
        background-color: var(--bg-light-secondary);
      }

      &.show {
        background-color: var(--bg-accent-03);
        color: var(--green-60);
      }

      &::after {
        display: none;
      }

      > div {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .material-symbols {
        vertical-align: middle;
      }
    }
  }

  .ds-nav-ds-name {
    margin-bottom: var(--spacing-05);

    span {
      text-transform: uppercase;
      font-weight: bold;

      @include body-xs;
    }
  }
}
