@import '../../styles/mixins/text-ellipsis.scss';

.nut-menu {
  &.scroll-fixed {
    position: fixed;
    top: $menu-scroll-fixed-top;
    z-index: $menu-scroll-fixed-z-index;
    width: 100%;
  }
}

.nut-menu-relative {
  position: relative;
}

.nut-menu__bar {
  position: relative;
  display: flex;
  line-height: $menu-bar-line-height;
  background-color: $white;
  box-shadow: $menu-bar-box-shadow;

  &.opened {
    z-index: $menu-bar-opened-z-index;
  }

  &.scrollX {
    overflow-x: auto;
  }
}

.nut-menu__item {
  flex: 1;
  text-align: center;
  font-size: $menu-item-font-size;
  color: $menu-item-text-color;
  min-width: 0;
  
  &.active {
    color: $menu-item-active-text-color;
  }

  &.disabled {
    color: $menu-item-disabled-color;
  }
}

.nut-menu__title-icon {
  transition: all 0.2s linear;
}

.nut-menu__title {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: $menu-title-padding;

  &.active .nut-menu__title-icon {
    transform: rotate(180deg);
  }
}

.nut-menu__title-text {
  @include text-ellipsis;
  display: block;
  // padding-left: $menu-title-text-padding-left;
  padding-right: $menu-title-text-padding-right;
}

.group-name {
  font-weight: 500;
  font-size: 14px;
  color: #262626;
  line-height: 22px;
  margin-bottom: 12px;
  &:nth-child(n+1) {
    margin-top: 12px;
  }
}

.group-input {
  // width: 159px;
  height: 36px;
  background: #F5F5F5;
  border-radius: 25px;
  .nut-input-native {
    background: #F5F5F5;
    text-align: center !important;
  }
}
.group-divider {
  font-weight: 400;
  font-size: 14px;
  color: #BFBFBF;
  line-height: 22px;
  margin: 0 8px;
  line-height: 36px;
}

.demo-class1 {
  font-weight: 500;
  font-size: 14px;
  color: #262626;
  line-height: 22px;
}