$menu__color--active: $color-negative;
%menu-tooltip-item{
  padding: 0;
  padding-left: 1.5*$box-padding;
  border: 1px solid transparent;
  border-left: none;
  border-right: none;
  position: relative;
  @extend %base-font;
  line-height: 1.25;
  &:hover{
    border-color: lighten($color-important,30%) !important;
    background: lighten($color-important, 43%) !important;
  }
  a{
    padding: 0.25em 0.5em;
    padding-left: 1.5*$box-padding;
    margin-left: -1.5*$box-padding;
    color: $color-main;
    display: block;
    text-decoration: none;
    @extend %hyphenate;
    &.active{
      color: $menu__color--active;
      background: none;
      border: none;
      &:before{
        color: $menu__color--active;
      }
    }
    &:hover{
      color: $color-main;
    }
    &:before{
      position: absolute;
      left: 0;
      width: 1.25*$box-padding;
      text-align: center;
      padding-top: 1px;
      color: $color-important;
    }

    &.submenu{
      padding-right: 0 !important;
      background: none !important;
      position: relative;
      &:after {
        @include icon(arrow);
        @extend %input-button-absolute;
        left: auto;
        font-size: 10px;
        text-align: left;
        line-height: 1.9;
      }
    }
    &~span{
      @include small;
    }
  }
}
%menu-tooltip{
  position: relative;
  ul{
    margin: 0;
    list-style: none;
    font-size: 1.125em;
    @extend %tooltip-content;
    min-width: 200px;
    padding: 0;
    white-space: normal;
    z-index: z($z-priority, context-menu);
    &:after{
      content: '';
      position: absolute;
      top:0;
      bottom: 0;
      right: auto;
      left: 1.25*$box-padding;
      border-left: 1px solid $color-border-minor;
    }
  }
  li{
    @extend %menu-tooltip-item;
    &:first-child{
      margin-top: 0.5em;
    }
    &:last-child{
      margin-bottom: 0.5em;
    }
    & > .menu-children{
      display: none;
      @extend %tooltip-content-right;
      white-space: normal;
      top: 6px;
      left: 99%;
      width: 150px;
      & > li{
        & + li{
          border-top: 1px dashed $color-border-minor;
        }
        a{
          color: $color-main;
          text-decoration: none;
          display: block;
          padding: 0.5em;
          &:hover{
            text-decoration: underline;
          }
          &:before{
            color: $color-important;
            text-decoration: none;
            margin-right: 0.5*$gap;
          }
        }
      }
    }
    &:hover{
      & > .menu-children{
        display: inline-block;
      }
    }
  }
}
%menu-horizontal{
  & > li{
    display: inline-block;
  }
}
%menu-buttons{
  & > li{
    & > a{
      @extend %button-base;
    }
  }
}