@import "../node_modules/tinper-bee-core/scss/minxin-variables";
@import "../node_modules/tinper-bee-core/scss/minxin-mixins";
@import "../node_modules/tinper-bee-core/scss/util-keyframe";

ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .u-select {
      box-sizing: border-box;
      display: inline-block;
      position: relative;
      color: $select-color;
      width: 100%;
      font-size: $select-font-size;
      :root .u-select-arrow {
          -webkit-filter: none;
          filter: none;
      }
      :root .u-select-arrow {
        font-size: $select-font-size;
      }
      .u-select-arrow * {
        display: none;
      }
      .u-select-arrow {
          font-style: normal;
          vertical-align: baseline;
          text-align: center;
          text-transform: none;
          text-rendering: auto;
          text-rendering: optimizeLegibility;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
          position: absolute;
          top: 50%;
          right: 8px;
          line-height: 1;
          margin-top: -6px;
          display: inline-block;
          font-size: $select-font-size;
          font-size: 9px \9;
          -webkit-transform: scale(0.75) rotate(0deg);
              -ms-transform: scale(0.75) rotate(0deg);
                  transform: scale(0.75) rotate(0deg);
          /* IE6-IE8 */
          -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=1, M12=0, M21=0, M22=1)";
          zoom: 1;
          &:before {
            display: block;
            font-family: "uf";
            content: "\e609";
            -webkit-transition: -webkit-transform 0.2s ease;
            transition: -webkit-transform 0.2s ease;
            transition: transform 0.2s ease;
            transition: transform 0.2s ease, -webkit-transform 0.2s ease;
          }
      }
      .u-select-selection {
          outline: none;
          -webkit-user-select: none;
             -moz-user-select: none;
              -ms-user-select: none;
                  user-select: none;
          box-sizing: border-box;
          display: block;
          background-color: $select-bg-color;
          border-radius: $select-border-radius;
          border: 1px solid $select-border-color;
          -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
          transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
          :hover {
            border-color: #40a5ed;
          }
      }
  
  }
  .u-select > ul > li > a {
    padding: 0;
    background-color: #fff;
  }
  
  
  
  
  
  .u-select-focused .u-select-selection,
  .u-select-selection:focus,
  .u-select-selection:active {
    border-color: #40a5ed;
    outline: 0;
    box-shadow: none;
  }
  .u-select-selection-clear {
    display: inline-block;
    font-style: normal;
    vertical-align: baseline;
    text-align: center;
    text-transform: none;
    text-rendering: auto;
    opacity: 0;
    position: absolute;
    right: 8px;
    z-index: 1;
    background: #fff;
    top: 50%;
    font-size: 12px;
    color: #ccc;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    line-height: 12px;
    cursor: pointer;
    -webkit-transition: color 0.3s ease, opacity 0.15s ease;
    transition: color 0.3s ease, opacity 0.15s ease;
  }
  .u-select-selection-clear:before {
    display: block;
    font-family: 'uf';
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\e66b";
  }
  .u-select-selection-clear:hover {
    color: #999;
  }
  .u-select-selection:hover .u-select-selection-clear {
    opacity: 1;
  }
  .u-select-selection-selected-value {
    float: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    padding-right: 14px;
    padding-left: 5px;
  }
  
  
  .u-select-disabled {
      color: $select-disabled-color;
      &.u-select .u-select-selection {
        //   background: $select-disabled-bg;
        background: #F7F9FB;
        border-color: #DFE1E6;
        cursor: not-allowed;
      }
      .u-select-selection:hover,.u-select-selection:focus,.u-select-selection:active {
        //   border-color: $select-disabled-border-color;
        border-color: #DFE1E6;
        box-shadow: none;
      }
      .u-select-selection-clear {
          display: none;
          visibility: hidden;
          pointer-events: none;
      }
      .u-select-selection--multiple .u-select-selection-choice {
          background: #e9e9e9;
          color: #aaa;
          padding-right: 10px;
      }
      .u-select-selection--multiple .u-select-selection-choice-remove {
          display: none;
      }
  
      .u-select-selection-choice-remove {
          color: #ccc;
          cursor: default;
      }
      .u-select-selection-choice-remove:hover {
          color: #ccc;
      }
  }
  
  
  .u-select-selection--single {
      height: 32px;
      position: relative;
      cursor: pointer;
  }
  .u-select-selection-rendered {
      display: block;
      margin-left: 2px;
      margin-right:2px;
      position: relative;
      line-height: 30px;
      &:after {
          content: '.';
          visibility: hidden;
          pointer-events: none;
          display: inline-block;
          width: 0;
      }
  }
  
  .u-select-lg {
      .u-select-selection--single {
          height: 40px;
      }
      .u-select-selection-rendered {
          line-height: 40px;
      }
      .u-select-selection--multiple {
          min-height: 40px;
      }
      .u-select-selection--multiple .u-select-selection-rendered li {
          height: 24px;
          line-height: 24px;
      }
  }
  .u-select-sm {
      .u-select-selection {
          border-radius: $select-border-radius;
      }
      .u-select-selection--single {
          height: 26px;
      }
      .u-select-selection-rendered {
          line-height: 24px;
      }
      .u-select-selection--multiple {
          min-height: 24px;
      }
      .u-select-selection--multiple .u-select-selection-rendered li {
          height: 14px;
          line-height: 14px;
      }
  }
  
  
  .u-select-search-field-wrap {
    display: inline-block;
    position: relative;
  }
  .u-select-selection-placeholder,
  .u-select-search-field-placeholder {
    position: absolute;
    top: 50%;
    left: 5px;
    right: 9px;
    color: #ccc;
    line-height: 20px;
    height: 20px;
    max-width: 100%;
    margin-top: -10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .u-select-search-field-placeholder {
    left: 8px;
  }
  
  .u-select-search--inline {
      position: absolute;
      width: 100%;
      height: 100%;
      .u-select-search-field-wrap {
          width: 100%;
          height: 100%;
      }
      .u-select-search-field {
          border: 0;
          font-size: 100%;
          height: 100%;
          width: 100%;
          background: transparent;
          outline: 0;
          border-radius: $select-border-radius;
      }
      .u-select-search-field-mirror {
          position: absolute;
          top: 0;
          left: -9999px;
          white-space: pre;
          pointer-events: none;
      }
      > i {
          float: right;
      }
  }
  
  .u-select-selection--multiple {
      min-height: 28px;
      cursor: text;
    //   padding-bottom: 3px;
      zoom: 1;
      &:before,&:after {
          content: " ";
          display: table;
      }
      &:after {
          clear: both;
          visibility: hidden;
          font-size: 0;
          height: 0;
      }
      .u-select-search--inline {
          float: left;
          position: static;
          width: auto;
          padding: 0;
          .u-select-search-field {
              width: 0.75em;
          }
      }
      .u-select-selection-rendered {
          margin-left: 4px;
        //   margin-bottom: -3px;
          height: auto;
      }
      > ul > li,.u-select-selection-rendered > ul > li {
          margin-top: 3px;
          margin-bottom: 3px;
          height: 24px;
          line-height: 24px;
      }
      .u-select-selection-choice {
          background-color: #f3f3f3;
          border-radius: $select-border-radius;
          cursor: default;
          float: left;
          padding: 0 16px;
          margin-right: 3px;
          max-width: 99%;
          position: relative;
          overflow: hidden;
          -webkit-transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
          transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
          padding: 0 20px 0 10px;
      }
  
      .u-select-selection-choice-disabled {
          padding: 0 10px;
      }
      .u-select-selection-choice-content {
          display: inline-block;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          max-width: 100%;
          -webkit-transition: margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
          transition: margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
      }
      .u-select-selection-choice-remove {
          font-style: normal;
          vertical-align: baseline;
          text-align: center;
          text-transform: none;
          text-rendering: auto;
          line-height: 1;
          text-rendering: optimizeLegibility;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
          color: #999;
          line-height: inherit;
          cursor: pointer;
          font-weight: bold;
          -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
          transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
          display: inline-block;
          font-size: 12px;
          font-size: 8px \9;
          -webkit-transform: scale(0.66666667) rotate(0deg);
            -ms-transform: scale(0.66666667) rotate(0deg);
                transform: scale(0.66666667) rotate(0deg);
          /* IE6-IE8 */
          -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=1, M12=0, M21=0, M22=1)";
          zoom: 1;
          position: absolute;
          right: 4px;
          padding: 0 0 0 8px;
          top: -4px;
      }
      .u-select-selection-choice-remove:before {
          display: block;
          font-family: "uf";
      }
      .u-select-selection-choice-remove {
          -webkit-filter: none;
          filter: none;
      }
      .u-select-selection-choice-remove {
          font-size: 12px;
      }
      .u-select-selection-choice-remove:hover {
          color: #404040;
      }
      .u-select-selection-choice-remove:before {
          font-family: 'uf';
          content: "\e602";
      }
  }
  
  .u-select-open {
      .u-select-arrow {
          -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";
        //   -ms-transform: rotate(180deg);
      }
      .u-select-arrow:before {
          -webkit-transform: rotate(180deg);
          -ms-transform: rotate(180deg);
          transform: rotate(180deg);
      }
      .u-select-selection {
          border-color: #40a5ed;
          outline: 0;
          border-color: #66afe9;
          outline: 0;
      }
  }
  
  .u-select-combobox {
      .u-select-arrow {
          display: none;
      }
      .u-select-search--inline {
          height: 100%;
          width: 100%;
          float: none;
      }
      .u-select-search-field-wrap {
          width: 100%;
          height: 100%;
      }
      .u-select-search-field {
          width: 100%;
          height: 100%;
          position: relative;
          z-index: 1;
          -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
          transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
          box-shadow: none;
          padding-left: 5px;
      }
  }
  
  
  .u-select-dropdown {
      background-color: white;
      box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
      border-radius: $select-border-radius;
      box-sizing: border-box;
      z-index: 1800;
      left: -9999px;
      top: -9999px;
      position: absolute;
      outline: none;
      overflow: hidden;
      font-size: 12px;
      margin-bottom: 20px;
      animation: none;
      -webkit-animation: none;
      // -webkit-animation: uSlideUpIn 300ms ease-in;
      // animation: uSlideUpIn 300ms ease;
      &.slide-up-enter.slide-up-enter-active.u-select-dropdown-placement-bottomLeft,
      &.slide-up-appear.slide-up-appear-active.u-select-dropdown-placement-bottomLeft {
          -webkit-animation-name: uSlideUpIn;
          animation-name: uSlideUpIn;
      }
      &.slide-up-enter.slide-up-enter-active.u-select-dropdown-placement-topLeft,
      &.slide-up-appear.slide-up-appear-active.u-select-dropdown-placement-topLeft {
          -webkit-animation-name: uSlideDownIn;
          animation-name: uSlideDownIn;
      }
      &.slide-up-leave.slide-up-leave-active.u-select-dropdown-placement-bottomLeft {
          -webkit-animation-name: uSlideUpOut;
          animation-name: uSlideUpOut;
      }
      &.slide-up-leave.slide-up-leave-active.u-select-dropdown-placement-topLeft {
          -webkit-animation-name: uSlideDownOut;
          animation-name: uSlideDownOut;
      }
      &.u-select-dropdown-hidden {
          display: none;
      }
      .u-select-dropdown-menu {
          outline: none;
          margin-bottom: 0;
          padding-left: 0;
          list-style: none;
          max-height: 250px;
          overflow: auto;
      }
      .u-select-dropdown-menu-item-group-list {
          margin: 0;
          padding: 0;
          > .u-select-dropdown-menu-item {
              padding-left: 24px;
          }
      }
  
      .u-select-dropdown-menu-item-group-title {
          color: #999;
          line-height: 1.5;
          padding: 8px 16px;
      }
      .u-select-dropdown-menu-item {
          position: relative;
          display: block;
          padding: 7px 16px;
          padding-left: 6px;
          font-weight: normal;
          color: $font-color-base;
          cursor: pointer;
          white-space: nowrap;
          overflow: hidden;
          -webkit-transition: background 0.3s ease;
          transition: background 0.3s ease;
  
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
      }
      .u-select-dropdown-menu-item:hover,
      .u-select-dropdown-menu-item-active {
          background-color: $select-dropdown-hover-bg;
      }
      .u-select-dropdown-menu-item-disabled {
          color: $select-disabled-color;
          cursor: not-allowed;
      }
      .u-select-dropdown-menu-item-disabled:hover {
          color: $select-disabled-color;
          background-color: #fff;
          cursor: not-allowed;
      }
      .u-select-dropdown-menu-item-selected,
      .u-select-dropdown-menu-item-selected:hover {
          background-color: $select-dropdown-selected-bg;
          color: $brand-primary;
      }
      .u-select-dropdown-menu-item-divider {
          height: 1px;
          margin: 1px 0;
          overflow: hidden;
          background-color: #e5e5e5;
          line-height: 0;
      }
  
  
  }
  .u-select-dropdown.u-select-dropdown--multiple .u-select-dropdown-menu-item:after {
      font-family: 'uf';
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      content: "\e658";
      color: transparent;
      display: inline-block;
      font-size: 12px;
      font-size: 10px \9;
      -webkit-transform: scale(0.83333333) rotate(0deg);
        -ms-transform: scale(0.83333333) rotate(0deg);
            transform: scale(0.83333333) rotate(0deg);
      /* IE6-IE8 */
      -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=1, M12=0, M21=0, M22=1)";
      zoom: 1;
      -webkit-transition: all 0.2s ease;
      transition: all 0.2s ease;
      position: absolute;
      top: 50%;
      -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
      right: 16px;
      font-weight: bold;
      text-shadow: 0 0.1px 0, 0.1px 0 0, 0 -0.1px 0, -0.1px 0;
  }
  .u-select-dropdown.u-select-dropdown--multiple{
      .u-select-dropdown-menu-item:hover:after {
          color: #ddd;
      }
      .u-select-dropdown-menu-item-disabled:after {
          display: none;
      }
      .u-select-dropdown-menu-item-selected:after,.u-select-dropdown-menu-item-selected:hover:after {
          color: $brand-primary;
          display: inline-block;
      }
  }
  
  
  
  :root .u-select-dropdown.u-select-dropdown--multiple .u-select-dropdown-menu-item:after {
    -webkit-filter: none;
            filter: none;
  }
  :root .u-select-dropdown.u-select-dropdown--multiple .u-select-dropdown-menu-item:after {
    font-size: 12px;
  }
  
  
  .u-select-dropdown-container-open .u-select-dropdown,
  .u-select-dropdown-open .u-select-dropdown {
    display: block;
  }
  .u-input-search-wrapper {
      display: inline-block;
      position: relative;
      .u-input-search {
          -webkit-transition: all .3s ease;
          transition: all .3s ease;
      }
      .u-input-search-icon {
          position: absolute;
          right: 8px;
          cursor: pointer;
          -webkit-transition: all .3s ease;
          transition: all .3s ease;
          font-size: 14px;
          height: 20px;
          line-height: 20px;
          top: 50%;
          margin-top: -10px;
      }
      .u-input-search-icon:hover {
          color: #108ee9;
      }
      &:hover .u-input-search:not[disabled] {
          border: 1px solid #108ee9;
      }
  }
  
  .u-search-input-wrapper {
    display: inline-block;
    vertical-align: middle;
  }
  .u-search-input {
      &.u-input-group {
          .u-input:first-child,.u-select:first-child {
              border-radius: $select-border-radius;
              position: absolute;
              top: -1px;
              width: 100%;
          }
          .u-input:first-child {
              padding-right: 36px;
          }
      }
      .u-search-btn {
          color: #666;
          background-color: #f7f7f7;
          border-color: #d9d9d9;
          border-radius: 0 3px 3px 0;
          left: -1px;
          position: relative;
          border-width: 0 0 0 1px;
          z-index: 2;
          padding-left: 8px;
          padding-right: 8px;
      }
  
      .u-search-btn {
          > a:only-child {
              color: currentColor;
          }
          > a:only-child:after {
              content: '';
              position: absolute;
              top: 0;
              left: 0;
              bottom: 0;
              right: 0;
              background: transparent;
          }
          &:hover > a:only-child,&:focus > a:only-child {
              color: currentColor;
          }
          &:hover > a:only-child:after,&:focus > a:only-child:after {
              content: '';
              position: absolute;
              top: 0;
              left: 0;
              bottom: 0;
              right: 0;
              background: transparent;
          }
          &:active,&.active {
              color: #0f87dd;
              background-color: #f7f7f7;
              border-color: #0f87dd;
          }
          &:active> a:only-child,&.active> a:only-child {
              color: currentColor;
          }
          &:active> a:only-child:after,&.active> a:only-child:after {
              content: '';
              position: absolute;
              top: 0;
              left: 0;
              bottom: 0;
              right: 0;
              background: transparent;
          }
          &:hover,&:focus {
              color: #40a5ed;
              background-color: #f7f7f7;
              border-color: #40a5ed;
          }
          &:active,&:hover,&:focus {
              background: #fff;
          }
          &:hover {
              border-color: #d9d9d9;
          }
  
      }
      .u-search-btn[disabled] {
          color: #ccc;
          background-color: #f7f7f7;
          border-color: #d9d9d9;
          &:hover,&:focus,&:active,&.active {
              color: #ccc;
              background-color: #f7f7f7;
              border-color: #d9d9d9;
          }
          & > a:only-child,&:hover > a:only-child,&:focus > a:only-child,&:active > a:only-child,&.active > a:only-child {
              color: currentColor;
          }
          & > a:only-child:after,&:hover > a:only-child:after,&:focus > a:only-child:after,&:active > a:only-child:after,&.active > a:only-child:after {
              content: '';
              position: absolute;
              top: 0;
              left: 0;
              bottom: 0;
              right: 0;
              background: transparent;
          }
      }
      .u-search-btn.disabled {
          color: #ccc;
          background-color: #f7f7f7;
          border-color: #d9d9d9;
          &:hover,&:focus,&:active,&.active {
              color: #ccc;
              background-color: #f7f7f7;
              border-color: #d9d9d9;
          }
          > a:only-child,&:hover > a:only-child,&:focus > a:only-child,&:active > a:only-child,&.active > a:only-child {
              color: currentColor;
          }
          > a:only-child:after,&:hover > a:only-child:after,&:focus > a:only-child:after,&:active > a:only-child:after,&.active > a:only-child:after {
              content: '';
              position: absolute;
              top: 0;
              left: 0;
              bottom: 0;
              right: 0;
              background: transparent;
          }
      }
      &.u-search-input-focus,&:hover {
          .u-search-btn-noempty {
              color: #fff;
              background-color: #108ee9;
              border-color: #108ee9;
              > a:only-child {
                  color: currentColor;
              }
              > a:only-child:after {
                  content: '';
                  position: absolute;
                  top: 0;
                  left: 0;
                  bottom: 0;
                  right: 0;
                  background: transparent;
              }
  
          }
          .u-search-btn-noempty:focus,.u-search-btn-noempty:hover {
              color: #fff;
              background-color: #40a5ed;
              border-color: #40a5ed;
          }
          .u-search-btn-noempty:hover > a:only-child,.u-search-btn-noempty:focus > a:only-child {
              color: currentColor;
          }
          .u-search-btn-noempty:hover > a:only-child:after,.u-search-btn-noempty:focus > a:only-child:after {
              content: '';
              position: absolute;
              top: 0;
              left: 0;
              bottom: 0;
              right: 0;
              background: transparent;
          }
          .u-search-btn-noempty:active,.u-search-btn-noempty.active{
              color: #fff;
              background-color: #0f87dd;
              border-color: #0f87dd;
          }
          .u-search-btn-noempty:active > a:only-child,.u-search-btn-noempty.active > a:only-child{
              color: currentColor;
          }
          .u-search-btn-noempty:active > a:only-child:after,.u-search-btn-noempty.active > a:only-child:after {
              content: '';
              position: absolute;
              top: 0;
              left: 0;
              bottom: 0;
              right: 0;
              background: transparent;
          }
  
      }
      .u-select-combobox .u-select-selection-rendered {
          margin-right: 29px;
      }
  
  }
  .u-search-input.u-search-input-focus,.u-search-input:hover {
      .u-search-btn-noempty.disabled, .u-search-btn-noempty[disabled]{
          color: #ccc;
          background-color: #f7f7f7;
          border-color: #d9d9d9;
          &:hover,&:focus,&:active,&.active {
              color: #ccc;
              background-color: #f7f7f7;
              border-color: #d9d9d9;
          }
          > a:only-child,&:hover > a:only-child,&:focus > a:only-child,&:active > a:only-child,&.active > a:only-child {
              color: currentColor;
          }
          > a:only-child:after,&:hover > a:only-child:after,&:focus > a:only-child:after,&:active > a:only-child:after,&.active > a:only-child:after {
              content: '';
              position: absolute;
              top: 0;
              left: 0;
              bottom: 0;
              right: 0;
              background: transparent;
          }
      }
  }
  
  
  @-webkit-keyframes uSlideUpIn {
    0% {
          opacity: 0;
          -webkit-transform-origin: 0% 0%;
          transform-origin: 0% 0%;
          -webkit-transform: scaleY(0.8);
          transform: scaleY(0.8);
    }
    100% {
          opacity: 1;
          -webkit-transform-origin: 0% 0%;
          transform-origin: 0% 0%;
          -webkit-transform: scaleY(1);
          transform: scaleY(1);
    }
  }
  
  .u-select-nowarp{
      overflow: hidden;
      .u-select-selection-rendered{
        display: flex;
        white-space: nowrap;
        ul{
            display: flex;
            white-space: nowrap;
        }
    }
  }