.navbar-top {
  background-color: $sidenav-bg;
  padding: 0;

  &.navbar-expand {
    .navbar {
      padding: 0 15px;
    }

    .navbar-nav {
      .nav-link {
        color: $body-color;
        padding: $mainmenu-padding-x $mainmenu-padding-y;
        position: relative;

        &:hover,
        &:focus {
          background-color: $sidenav-hover-bg;
          border-radius: $input-border-radius;
        }

        .icon-border {
          border-width: 3px;
          border-style: solid;
        }
      }
    }
  }

  .navbar-nav {
    > li.dropdown > a {
      position: relative;
    }

    .nav-link {
      img {
        max-width: $logo-line-height;
        max-height: $logo-line-height;
      }

      > .fa {
        vertical-align: middle;
      }
    }

    .nav-link > .badge {
      font-size: 9px;
      position: absolute;
      top: 2px;
      right: 10px;
      padding: 0.25em 0.6em;
      border-radius: 10rem;
    }

    > li.nav-item.show > a .fa {
      color: $primary;
    }

    > li.dropdown.show > a::after,
    > li.dropdown.show > a::before {
      border-bottom: 8px solid $gray-200;
      border-left: 8px solid transparent;
      border-right: 8px solid transparent;
      bottom: -2px;
      display: none;
      left: 50%;
      margin-left: -8px;
      position: absolute;
      z-index: 1001;
    }

    > li.dropdown.show > a::before {
      border-bottom-width: 9px;
      border-left-width: 9px;
      border-right-width: 9px;
      border-bottom-color: $gray-200;
      margin-left: -13px;
      bottom: -8px;
    }

    > li.dropdown a::after {
      content: "";
      display: none;
      font-size: 1.231rem;
      margin-left: 6px;
      border: 0;
    }

    > li.dropdown {
      position: static;
    }
  }

  .dropdown-menu {
    padding: .3rem;
    margin-top: -8px;
    line-height: $line-height-base;
    min-width: $mainmenu-dropdown-width;
    box-shadow: $box-shadow;
    border: $border-width solid $border-color;
    overflow-y: auto;

    .dropdown-item {
      .fa {
        margin-right: 5px;
      }
    }

    .dropdown-header {
      font-size: $font-size-base;
      color: $gray-600;
      padding: 10px 20px 8px;
      border-bottom: $border-width solid $border-color;
    }

    .dropdown-footer a {
      text-align: center;
      padding: 10px 0;
      border-top: $border-width solid $border-color;
      font-size: $font-size-base;
      color: $body-color;
      display: block;
      outline: 0;

      &:hover {
        background-color: $dropdown-link-hover-bg;
      }
    }

    .menu {
      list-style: outside none none;
      margin: 0;
      max-height: $mainmenu-menu-max-height;
      overflow-x: hidden;
      padding: 0;

      &.menu-lg {
        width: $mainmenu-dropdown-width + 130px;
      }

      .menu-item {
        border-bottom: $border-width solid $gray-300;
        border-radius: $input-border-radius;
      }

      .menu-item:hover {
        background-color: $dropdown-link-hover-bg;
      }

      .menu-link {
        padding: 10px 20px;
        display: block;
        text-decoration: none;
        color: $text-muted;
      }

      .menu-item.active .menu-link {
        color: $body-color;
      }

      .menu-item-meta {
        line-height: 16px;
      }
    }

    .menu-grid {
      max-height: unset;
      padding: .3rem;

      .menu-item {
        border: 0 none;
      }

      .menu-link {
        border-radius: 3px;
        line-height: 24px;
        text-align: center;
        padding: 15px 0 9px;
        display: block;
        border: 1px solid transparent;
        color: $gray-600;
      }

      .menu-link:hover {
        background-color: transparent;
        border-color: $gray-300;
      }

      .menu-link span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .menu-link .fa {
        font-size: 32px;
      }
    }
  }

  @include media-breakpoint-down(sm) {
    &.navbar-expand {
      margin-left: 0;

      .navbar-nav {

        > li.dropdown.show > a::after {
          bottom: -1px;
        }

        > li.dropdown .dropdown-menu {
          left: 0;
          right: 0;
          width: 100%;
          margin-top: 0;
          border-width: 0;
          box-shadow: none;
        }
      }

      .navbar-toggler {
        display: inline-block;
        color: $white;
      }
    }
  }
}

.navbar-brand {
  display: block;
  padding: 0;
  margin: 0;
}

.page-title {
  .small,
  small {
    color: $text-muted;
  }
}

