#nav-desktop {
  display: flex;
  background-color: var(--bg-grey);
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 10px 2.5em 12px;
  width: 100%;
  overflow: auto;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
#nav-desktop::-webkit-scrollbar {
  display: none;
}

#nav-top {
  top: 0;
  left: 0;
  right: 0;
  position: fixed;
  background-color: var(--white);
  z-index: 200;
}

.nav-link-holder {
  border-radius: var(--radius);
  transition: background-color var(--transition) ease;
  white-space: nowrap;
}

.more-links-content {
  position: absolute;
  top: 3.7em;
  width: 16em;
  right: -2em;
  border-radius: var(--radius);
  background-color: var(--white);
  box-shadow: 0 0 0.3em 0.3em rgba(0, 0, 0, 0.1);
  display: none;
}

.nav-link-holder:hover {
  cursor: pointer;
}

.active-nav,
.nav-link-holder:hover {
  background-color: var(--light-grey);
}

.menu-button-container {
  display: none;
  cursor: pointer;
  position: absolute;
  right: 0;
  height: 100%;
  width: 50px;
}

#menu-toggle {
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #000;
  position: absolute;
  height: 3px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  right: 15px;
}

.menu-button::before {
  content: '';
  margin-top: -8px;
  right: 0;
}

.menu-button::after {
  content: '';
  margin-top: 8px;
  right: 0;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0;
  transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0;
  transform: rotate(-405deg);
}

.nav-link-holder:hover .more-links-content {
  display: block;
}

.nav-link a {
  text-decoration: none;
}

@media (max-width: 992px) {
  .menu-button-container {
    display: flex;
  }

  #nav-desktop {
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .active-nav,
  .nav-link-holder:hover {
    background-color: initial;
  }

  #nav-desktop > .nav-link-holder {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5em 0;
    width: 100%;
    overflow: hidden;
  }

  #nav-desktop > .nav-link-holder:not(:last-child) {
    border-bottom: 1px solid #444;
  }

  #menu-toggle ~ #nav-desktop .nav-link-holder {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  #menu-toggle:checked ~ #nav-desktop .nav-link-holder {
    height: 2.5em;
  }

  #nav #nav-desktop .nav-link-holder:last-child {
    margin-left: 2em;
  }

  #menu-toggle:checked ~ #nav-desktop .nav-link-more-holder {
    height: auto;
  }

  .nav-link-more-holder .more {
    display: none;
  }

  .nav-link-more-holder .more-links-content {
    display: block;
    position: initial;
    background-color: initial;
    box-shadow: initial;
  }

  .nav-link-more-holder .more-links-content .nav-link {
    padding: 0.8em 1em 0.3em 3em;
    border: 0;
  }

  body:focus #nav-desktop {
    display: none;
  }
}

.hide-menu-toggle {
  background-color: #fff;
  height: 25px;
  width: 30px;
  position: absolute;
  top: 18px;
  right: 15px;
  z-index: 9999;
}

.nav-link {
  display: block;
  align-self: center;
  padding: 0.8em 1em 0.3em 3em;
  text-align: center;
  color: var(--text-dark);
  background-repeat: no-repeat, repeat;
  background-position: left 0.7em top 0.7em, 0 0;
  border-radius: var(--radius);
}

.nav-underline {
  visibility: hidden;
  height: 6px;
  top: 15px;
  position: relative;
  border-radius: 0.5em 0.5em 0 0;
  transition: background-color var(--transition) ease;
}

.active-nav .nav-underline,
.nav-link-holder:hover .nav-underline {
  visibility: visible;
  background-color: var(--dark-blue);
}

.more-links {
  cursor: pointer;
}

.more-links-content a.nav-link {
  padding: 1.4em 1.8em;
  color: var(--grey);
  border-bottom: 1px solid var(--dark-grey);
  border-radius: 0;
  margin: 0 1em;
}

.more-links-content .more-link-holder:last-child a.nav-link {
  border-bottom: none;
}

.more-links-content .nav-link:hover,
.more-links-content .more-link-holder:hover {
  background-color: var(--light-grey);
  color: var(--dark-blue);
}

.down-arrow {
  padding: 0.5em;
  position: relative;
  top: 0.2em;
}

.dashboard { background-image: url('/img/default/dashboard.svg'); }
.patient-icon { background-image: url('/img/default/patient.svg'); }
.drug { background-image: url('/img/default/drug.svg'); }
.invoice { background-image: url('/img/default/invoice.svg'); }
.doctor { background-image: url('/img/default/doctor.svg'); }
.workflow { background-image: url('/img/default/workflow.svg'); }
.ocr { background-image: url('/img/default/top-ocr.svg'); }
.inbound-fax { background-image: url('/img/default/inbound-fax.svg'); }
.outbound-fax { background-image: url('/img/default/outbound-fax.svg'); }
.notes { background-image: url('/img/default/notes.svg'); }
.more { background-image: url('/img/default/more.svg'); }
.calendar { background-image: url('/img/default/calendar-solid.svg'); }
