/* NAVBAR HEADER */

.navbar {
  height: @navbarHeight;
  background-color: @white;
  font-family: @fontFamily;
  font-size: 16px;
  font-weight: 500;
  color: @navbarText;
  margin-bottom: 0;
  border-bottom: 1px solid #E6E9F3;

  div.dropdown {
    margin-left: 11px;
  }
  .container-fluid {
    padding-left: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    &:before, &:after {
      content: none;
    }
  }
}

.navbar p.navItem {
  padding: 21px 15px 0;
}

/* dropdowns from navbar items */
.navbar .dropdown-toggle {
  height: 20px;
  overflow: visible;
  cursor: pointer;
  padding: 12px 17px;
  margin-top: 11px;

  i {
    color: @textColor;
  }
}

.navbar .dropdown {

  &:hover .dropdown-toggle,
  &.open .dropdown-toggle {
    background-color: #F5F6FA;
    border-radius: 4px;

  }

  .dropdown-toggle {
    border-radius: 2px;
  }

  .dropdown-toggle span {
    vertical-align: top;
  }

  ul.dropdown-menu {
    text-align: left;
    min-width: 209px;
    opacity: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: block;
    max-height: 0;
    transition-duration: .4s;
    animation-timing-function: ease-in-out;
    border: 0.5px solid rgba(173, 186, 205, 0.30);
    box-sizing: border-box;
    box-shadow: 0px 5px 8px 2px rgba(173, 186, 205, 0.35);
    border-radius: 0px 0px 4px 4px;
  }

  .dark-theme-switch {
    margin-left: 4px;
    margin-top: 4px;
    padding: 10px;
    color: @textColor;
  }


  &.open, &:focus, &:focus-within {
    pointer-events: none;

    > .dropdown-toggle {
      background-color: #F5F6FA;
    }
    > .dropdown-menu {
      pointer-events: auto;
      opacity: 1;
      max-height: 500px;
      padding: 5px 0;
      margin: 2px 0 0;
    }
  }
}


/* LOGO*/
.logo {
  height: 62px;
  line-height: 62px;

  img {
    vertical-align: middle;
  }
}


/* CFE health in nav bar */
.headerHealthNumber {
  text-align: center;
  position: relative;

  .badge-wrapper {
    position: absolute;
    top: -20px;
    right: -15px;
  }
}

.headerHealthNumber span.circle {
  display: inline-block;
  min-width: 22px;
  min-height: 22px;
  background-color: @contentBackground;
  border-radius: 20px;
  margin: -1px 3px 3px 8px;

  a {
    font-size: 11px;
    font-weight: bold;
    padding: 0 5px;
    vertical-align: text-top;
  }

  a:hover {
    color: @linkColor;
    text-decoration: none;
  }

  a.red:hover {
    color: @redHost;
  }
}

.headerHealthNumber, #headerHostNumber {
  span.count {
    color: @navbarText;
    font-weight: 500;
    font-size: 16px;
  }
}

.CFE_LICENSE_STATUS.exceeded {
  .total-host-count {
    color: #fff;

    &:after {
      content: "\f071";
      display: inline-block;
      font-family: FontAwesome;
      font-size: 16px;
      padding: 0 0 0 5px;
      margin-left: 5px;
      color: #fff;
    }
  }
}

.degraded .headerHealthNumber .circle {
  background-color: @CFE_orange;

  a, a:hover {
    color: #fff;
    text-transform: uppercase;
  }
}

.not_active .headerHealthNumber {
  color: @navbarText;
  font-weight: 500;
  font-size: 16px;
  line-height: 140%;

  .circle {
    background: none;

    a, a:hover {
      color: @navbarText;
    }
  }
}

.CFE_HA_STATUS, .CFE_LICENSE_STATUS {
  ul.dropdown-menu {
    width: 300px;
    color: @textColor;
  }

  h3 {
    color: @textColor;
    font-weight: bold;
    font-size: 16px;
    line-height: 140%;
    margin-top: 0;
  }
}

.ha_hover_info, .hub_hover_info {
  padding: 20px;
  .audit-log-entrypoint_accessDenyView {
    font-size: 16px;
  }
}

.connectivity-info span {
  padding: 4px 12px;
  white-space: nowrap;
}

li.health-header-links {
  a {
    display: flex;
    justify-content: space-between;
  }
}

.setting-top-menu {
  i {
    font-size: 20px;
  }
  right: 0;
  left: auto;
}

.hub-info-dropdown-menu {
  left: -70px;

  .audit-log-entrypoint {
    &_title {
      font-size: 16px;
      font-weight: 700;
      margin: 0;
      line-height: 20px;
    }
    &_body {
     padding: 8px 0;
    }
  }
}

.search-top {
  margin-top: 13px;
  position: relative;
  max-width: 369px;
  &:before {
    content: '\F52A';
    font-family: bootstrap-icons;
    position: absolute;
    left: 12px;
    top: 8px;
    color: @Blue600;
  }
  input {
    background: @Gray50;
    border: 3px solid transparent !important;
    border-radius: 4px;
    box-shadow: none;
    padding: 7px 0 7px 35px;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    width: 328px;
    color: @textColor;
    caret-color: #3869FF;

    &::placeholder {
      color: @Gray600 !important;
      font-family: "Red Hat Text";
    }

    &:focus {
      border: 3px solid @Blue500 !important;
      box-shadow: none !important;
      background-color: transparent;
      &::placeholder {
        visibility: hidden;
      }
    }
  }
}


  #searchWrapper {
    width: 367px !important;
    top: 52px !important;
    border: 1px solid rgba(173, 186, 205, 0.2);
    box-shadow: 1px 2px 10px 2px #D4D4D4;
    border-radius: 0px 0px 4px 4px;
    z-index: 10;

    .ui-menu-item {
      padding: 4px 0;

      .ui-menu-item-wrapper {
        word-break: break-word;
        padding: 18px 24px;
        font-style: normal;
        font-weight: 500;
        font-size: 14px;
        line-height: 16px;

        bold {
          font-weight: bold;
        }

        &.ui-state-active {
          background: @Gray100;
          color: @textColor;
          border: none;
          margin: 0;
        }
      }
    }
  }
