@supports ((position: -webkit-sticky) or (position: sticky)) {
  .sticky-top {
    position: -webkit-sticky;
    position: -moz-sticky;
    position: -ms-sticky;
    position: -o-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
}

.navbar {
  margin-bottom: 0;
}

.navbar-brand {
  padding: 0.4em;
}

.navbar-brand img {
  height: 2em;
}

.navbar-default {
  background-color: var(--mainColor-8);
  border: none;
  min-height: auto;
}

.navbar-default .navbar-nav > li > a {
  white-space: nowrap;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4.92px 1em;
  display: flex;
  align-items: center;
  transition: all 0.3s;
}

.navbar-default .navbar-nav > li > .navbar-authenticated--anchor {
  background-color: var(--tertiaryColor);
}

.navbar-default .navbar-nav > .navbar-authenticated--sub-menu {
  display: none;
}

.navbar-default .navbar-nav > li > a > img {
  height: 2.4em;
  margin-right: 0.4em;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: #fff;
  background-color: #0479b8;
}

.navbar-default .navbar-nav > li > .navbar-authenticated--anchor:hover,
.navbar-default .navbar-nav > li > .navbar-authenticated--anchor:active {
  background-color: #398934;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: #fff;
  background-color: #0096c9;
}

.navbar-default .navbar-nav > .active > .navbar-authenticated--anchor,
.navbar-default .navbar-nav > .active > .navbar-authenticated--anchor:hover,
.navbar-default .navbar-nav > .active > .navbar-authenticated--anchor:focus {
  background-color: #398934;
}

.navbar-default .navbar-toggle {
  border: none;
}

.navbar-default .navbar-toggle .icon-bar {
  background-color: #fff;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: var(--mainColor);
}

.navbar-default > .container-fluid,
.navbar-collapse.collapse {
  padding: 0;
}

@media (min-width: 1030px) {
  .navbar-default.navbar-authenticated {
    background: linear-gradient(
      90deg,
      var(--mainColor-8) 70%,
      var(--tertiaryColor) 70%
    );
  }
}

@media (min-width: 767px) {
  .navbar-toggle {
    display: none;
  }
  /* .navbar-default {
    display: flex;
    align-items: center;
  } */

  .navbar-collapse.collapse {
    display: flex !important;
    justify-content: center;
  }

  /* .navbar-nav > li {
    border-left: solid 1px #fff;
  }

  .navbar-nav > li:last-child {
    border-right: solid 1px #fff;
  } */

  .navbar-nav > li {
    position: relative;
  }

  .navbar-nav > li::before,
  .navbar-nav > li::after {
    border-left: solid 1px #fff;
    height: calc(100% - 6px);
    display: block;
    position: absolute;
    top: 3px;
    z-index: 10;
  }

  .navbar-nav > li::before {
    content: "";
    left: -0.5px;
  }

  .navbar-nav > li:last-child::after {
    content: "";
    right: -0.5px;
  }

  .navbar-brand {
    display: none;
  }
}

@media (max-width: 767px) {
  .container > .navbar-header,
  .container-fluid > .navbar-header,
  .container > .navbar-collapse,
  .container-fluid > .navbar-collapse {
    margin-left: 0;
    margin-right: 0;
  }
  .navbar-nav {
    margin: 0;
  }
  .navbar-default .navbar-nav > li:not(:last-child) > a {
    position: relative;
  }
  .navbar-default .navbar-nav > li:not(:last-child) > a::after {
    content: "";
    position: absolute;
    display: block;
    height: 1px;
    background-color: #fff;
    width: 90%;
    left: auto;
    right: 5%;
    top: 100%;
    z-index: 1;
  }

  li.navbar-nav--d-sm-none {
    display: none;
  }

  .navbar-default .navbar-nav > .navbar-authenticated--sub-menu {
    display: block;
  }

  .navbar-default .navbar-nav > .navbar-authenticated--sub-menu > a {
    font-weight: 500;
    padding-left: 4em;
  }
  
  .navbar-default .navbar-nav > li.navbar-authenticated--sub-menu > a::after {
    width: calc(90% - 2.5em);
  }
}
