
.dropdown-menu {
  z-index: 10000;
}

#main-header {
  background: #fafafa;
  box-shadow: none;
  border: none;
  border-bottom: 7px solid #efefef;
  border-radius: 0;
  margin: 0;
  @media (min-width: 768px) {
    height: 87px;
  }
  .container {
    position: relative;
    @media (max-width: 767px) {
      padding: 0 15px 5px 15px;
    }
    >.navbar-header {
      margin: 0;
    }
    &:before {
      content: " ";
      width: 200px;
      height: 7px;
      background: linear-gradient(to right,#3492dc 0,#3492dc 25%,#43d800 25%,#43d800 50%,#d15f00 50%,#d15f00 75%,#cd0003 75%,#cd0003 100%);
      position: absolute;
      bottom: -7px;
      right: 0;
    }   
  }
  .navbar-brand {
    height: auto;
    padding: 0;
    margin: 5px 0 0 0;
    &>img {
      display: inline-block;
    }
    @media (max-width: 992px) {
      .logo {
        width: 54px;
        height: auto;
      }
      .logo-text {
        display: none;
      }
    }
    @media (max-width: 768px) {
      .logo {
        width: 49px;
        height: auto;
      }
    }
  }
  .primary-nav {
    font-size: 12px;
    @media (min-width: 769px) {
      padding-left: 20px;
    }
    @media (min-width: 1200px) { 
      padding-left: 40px;
    }
    .icon-menu {
      @media (min-width: 768px) {
        display: block;
        margin: 0 auto 5px auto;
      }
      @media (max-width: 767px) {
        margin-right: 10px;
      }
      width: 32px;
      height: 32px;
    }
    li {
      i.icon-menu {
        background: url("/theme/assets/img/sprites_headerfooter.png") no-repeat -32px -31px;
      }
      &.dropdown.open {
        a {
          box-shadow: none;
          background: transparent;
        }
      }
      a {
        color: #777;
        padding: 10px 0 0 0;
        padding-bottom: 0;
        &:hover,
        &:active,
        &:focus {
          background: transparent;
        }
        @media (min-width: 768px) { 
          min-height: 80px;
          min-width: 60px;
        }
      }
      .dropdown-menu {
        background-color: #f8f8f8;
        @media (min-width: 768px) {

        }
      }
      &.item-comunidades {
        border-color: #2d84b8;
        i.icon-menu {
          
        }
        &:hover {
          i.icon-menu {
            background-position:  -32px -62px;
          }
          a {
            color: #2d84b8;
            @media (min-width: 768px) {
              box-shadow: 0 7px 0 #2d84b8;
              transition: all .25s ease-in-out;
            }
          }
        }
      }
      &.item-relatos {
          border-color: #55a4f3;
          i.icon-menu {
            background-position: -64px -31px;
          }
          &:hover {
            i.icon-menu {
              background-position: -64px -62px;
            }
            a {
              color: #55a4f3;
              @media (min-width: 768px) {
                box-shadow: 0 7px 0 #55a4f3;
                transition: all .25s ease-in-out;
              }
            }
        }
      }
      &.item-cursos {
          border-color: #469B84;
          i.icon-menu {
            background-position: -99px -31px;
          }
          &:hover {
            i.icon-menu {
              background-position: -99px -62px;
            }
            a {
              color: #469B84;
              @media (min-width: 768px) {
                box-shadow: 0 7px 0 #469B84;
                transition: all .25s ease-in-out;
              }
            }
        }
      }
      &.item-cdpplus {
        position: relative;
        border-color: #FCC12A;
        i.icon-menu {
          background-position: -133px -31px;
        }
        &:hover {
          i.icon-menu {
            background-position: -133px -62px;
          }
          > a {
            color: #FCC12A;
          }
        }
        @media (min-width: 768px) {
          &:hover {
            > a {
              box-shadow: 0 7px 0 #FCC12A;
              transition: all .25s ease-in-out;
            }
          }
        }
        .dropdown-menu {
          z-index: 10000;
          li {
            margin: 0;
            &.item-cursos:hover {
              a {
                color: #00a182;
              }
            }
            &.item-blog:hover {
              a {
                color: #f9ae31;
              }
            }
            &.item-ajuda:hover {
              a {
                color: #cd0102;
              }
            }
            &.item-eventos:hover {
              a {
                color: #cd0102;
              }
            }
          }
          li {
            float: left;
            width: 33.333333%;
            border-right: 1px solid #eee;
            padding: 0 15px;
            text-align: center;
            border-left: none;
            @media (max-width: 767px) {
              font-size: 13px;
            }
            &:first-child {
              padding-left: 0;
            }
            &:last-child {
              border: none;
              padding-right: 0;
            }
            a {
              padding: 20px 0;
              .icon-menu {
                display: block;
                margin: 0 auto 5px auto;
                width: 30px;
                height: 30px;
                background: url('/theme/assets/img/sprites_headerfooter.png') no-repeat -33px 0;
              }
              .icon-menu.icon-blog {}
              .icon-menu.icon-ajuda {
                background-position: -64px 0;
              }
              .icon-menu.icon-eventos {
                background-position: -95px 0;
              }
              &:hover {
                background: #f5f5f5;
              }
            }

          }
          @media (min-width: 768px) {
            width: 360px;
            border-radius: 3px;
            padding: 13px 9px;
            left: 50%;
            margin-left: -180px;
            margin-top: 10px;
          }
          @media (max-width: 767px) {
            padding: 20px 0 0 0;
          }
        }
      }
      @media (min-width: 768px) {
        text-align: center;
        margin: 0 10px;
      }
      @media (max-width: 767px) {
        font-size: 20px;
        border-left: 5px solid #eee;
        padding: 10px;
      }
    }
  }
  form[role="search"] {
    @media (min-width: 768px) {
      padding-top: 15px;
      width: 120px;
    }
    @media (min-width: 992px) {
      padding-top: 15px;
      padding-left: 30px;
      width: 200px;
    }
    @media (min-width: 1200px) {
      padding-left: 60px;
      width: 300px;
    }
    input[type="text"].form-control {
      background: #e4e4e4;
      border-color: #e4e4e4;
      font-size: 12px;
      font-weight: 700;
      border-radius: 3px 0 0 3px;
      box-shadow: none;
      height: 36px;
      border-width: 1px;
    }
    button.btn-search {
      color: #777;
      padding: 6.5px 10px;
      border-radius: 0 3px 3px 0;
      background: #e4e4e4;
      border: 1px solid transparent;
      box-shadow: none;
      i.icon.icon-search-btn {
        background: #e4e4e4 url('/theme/assets/img/sprites_headerfooter.png') no-repeat left -136px;
      }
    }
  }
  .navbar-right {
    @media (min-width: 769px) {
      padding-top: 10px;
    }
  }
  .notifications {
    @media (max-width: 767px) {
      border-left: 5px solid #cd0102;
    }
    @media (min-width: 1200px) {
      padding-right: 100px;
    }
    a {
      display: block;
      position: relative;
      &:hover,
      &:active,
      &:focus {
        background: transparent;
      }
      .badge {
        position: absolute;
        background: #ccc;
        font-family: "Roboto", sans-serif;
        position: absolute;
        top: 8px;
        left: 35px;
        border-radius: 3px;
        padding: 3px 5px;
      }
    }
  }
  .user-menu {
    >a {
      color: #222;
      font-weight: 700;
      &:hover,
      &:active,
      &:focus {
        background: transparent;
      }
    }
    .user-picture {
      border-radius: 50%;
      
    }
  }
  .user-menu.open {
    >a {
      background: transparent;
      box-shadow: none;
    }
    .dropdown-menu {
      z-index: 10000;
      font-size: 15px;
      li {
        &:first-child {
          padding-top: 5px;
        }
        a {
          i.icon-user-menu {
            margin-right: 5px;
            background: url('/theme/assets/img/sprites_headerfooter.png') no-repeat -33px -94px;
            width: 15px;
            height: 15px;
          }
          i.icon-user-menu.icon-perfil {
            background-position: -33px -125px;
          }
          i.icon-user-menu.icon-notificacao-mini {
            background-position: -33px -185px;
          }
          i.icon-user-menu.icon-star {
            background-position: -33px -215px;
          }
          padding: 10px 12px; 
          height: 38px;
          color: #222;
          &:hover {
            i.icon-user-menu {
              background-position:  -65px -94px;
            }
            i.icon-user-menu.icon-perfil {
              background-position: -65px -125px;
            }
            i.icon-user-menu.icon-notificacao-mini {
              background-position: -65px -185px;
            }
            i.icon-user-menu.icon-star {
              background-position: -65px -215px;
            }
            color: #fff;
            background: #f0c13f;
          }
        }
      }
      .btn-user-logout-wrapper {
        padding: 10px;
      }
      .btn-user-logout {
        font-size: 15px;
        padding: 2px 0;
        height: 30px;
        background: #fff;
        border: 1px solid #eee;
        color: #777;
        box-shadow: none;
        &:hover {
          background: #eee;
        }
      }
      @media (min-width: 768px) {
        width: 220px;
        border-radius: 3px;
        margin-top: 26px;
      }
      &:before,
      &:after {
        bottom: 100%;
        left: 50%;
      }
    }
  }
  .user-menu-link-2 {
    display: table;
    text-align: left;
    line-height: 1em;
    .user-name,
    .avatar-small,
    .caret-container {
      display: table-cell;
      color: #444;
    }
    .avatar-small {
      vertical-align: top;
      padding-right: 10px;
      img {
        border: 2px solid #63bc3e;
      }
    }
    .user-formacao {
      font-size: 12px;
      font-weight: normal;
      display: block;
      text-align: left;
    }
    .caret-container {
      display: table-cell;
      vertical-align: middle;
    }
  }
  .dropdown-menu-user-2 {
    padding: 0 !important;
    margin-top: 17px !important;
    border: none;
    box-shadow: none;
    background: #e1e1e1;
    
    @media (min-width: 768px) {
      left: 50%;
      margin-left: -96px;
      width: 220px;
    }
    li {
      a {
        padding: 5px 10px;
        font-size: 14px;
        overflow: hidden;
        color: #444;
        i {
          vertical-align: middle;
        }
        .badge {
          float: right;
          padding: 3px 6px;
          background: #444;
          color: #e1e1e1;
        }
        &:hover {
          color: #fff;
          background: #f0c13f;
          .badge {
            color: #444;
            background: #e1e1e1;
          }
        }
      }
      &.user-menu-card {
        text-align: center;
        padding: 15px 5px;
        img {
          border-radius: 100%;
          width: 64px;
          height: auto;
        }
        h4.name {
          font-weight: bold;
          font-size: 16px;
          margin: 10px 0 0 0;
          color: #444;
        }
        .formacao {
          font-size: 12px;
          color: #444;
        }
      }
    }
    &:before {
      content: ' ';
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 0 9px 9px 9px;
      border-color: transparent transparent #e1e1e1 transparent;
      position: absolute;
      top: 55px;
      left: 50%;
      margin-left: -9px;
      @media (min-width: 768px) {
        top: -9px;
      }
      @media (max-width: 767px) {
        top: 72px;
      }
    }
  }
  .container-button-signin {
    padding: 13px;
    .btn {
      border-radius: 0;
      background: #fff;
      color: #8a8a8a;
      padding: 5px;
      &:hover {
        background: #d2d2d2;
      }
    }
  }
  .navbar-toggle {
    background: transparent;
    border: 1px solid #ddd;
    top: 5px;
    .icon-bar {
      background-color: #888;
    }
    &:hover,
    &:focus {
      background: #ddd;
    }
  }
  .navbar-form {
    border-color: #e7e7e7;
  }
  .navbar-collapse {
    border-color: #e7e7e7;
  }
  .item-cdpplus {
    .arrow_box-menu-services:before,
    .arrow_box-menu-services:after {
      bottom: 100%;
      left: 45%;
      border: solid transparent;
      content: " ";
      height: 0;
      width: 0;
      position: absolute;
      pointer-events: none;
    }
    .arrow_box-menu-services:after {
      border-color: rgba(136,183,213,0);
      border-bottom-color: #f5f5f5;
      border-width: 9pt;
      margin-left: 4px;
    }
    .arrow_box-menu-services:before {
      border-color: rgba(194,225,245,0);
      border-bottom-color: #ccc;
      border-width: 13px;
      margin-left: 3px;
    }
  }
  .navbar-not-logged {
    margin-top: 13px;
    .dropdown-menu {
      top: 75%;
      z-index: 10000;
    }
  }
}