@import '../../themes/default/modules/dropdown.variables';

@if $use-dropdown {
  /*******************************
  //@-        Dropdown
  *******************************/

  .ui.dropdown {
    cursor: pointer;
    position: relative;
    display: inline-block;
    outline: none;
    text-align: left;
    transition: $dropdown-transition;
    user-select: none;

    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }

  /*******************************
              Content
  *******************************/

  /*--------------
        Menu
  ---------------*/

  .ui.dropdown .menu {
    cursor: auto;
    position: absolute;
    display: none;
    outline: none;
    top: 100%;
    min-width: max-content;

    margin: $dropdown-menu-margin;
    padding: $dropdown-menu-padding;
    background: $dropdown-menu-background;

    font-size: $relative-medium;
    text-shadow: none;
    text-align: $dropdown-menu-text-align;

    box-shadow: $dropdown-menu-box-shadow;
    border: $dropdown-menu-border;
    border-radius: $dropdown-menu-border-radius;
    transition: $dropdown-menu-transition;
    z-index: $dropdown-menu-z-index;
    will-change: transform, opacity;
  }

  .ui.dropdown .menu > * {
    white-space: nowrap;
  }


  /*--------------
    Hidden Input
  ---------------*/

  .ui.dropdown > input:not(.search):first-child,
  .ui.dropdown > select {
    display: none !important;
  }

  /*--------------
  Dropdown Icon
  ---------------*/

  .ui.dropdown > .dropdown.icon.icon {
    position: relative;
    width: auto;
    font-size: $dropdown-icon-size;
    margin: $dropdown-icon-margin;
  }
  .ui.dropdown .menu > .item .dropdown.icon {
    width: auto;
    float: $dropdown-item-icon-float;
    margin: $dropdown-item-icon-margin;
  }
  .ui.dropdown .menu > .item .dropdown.icon + .text {
    margin-right: $dropdown-item-icon-distance;
  }


  /*--------------
        Text
  ---------------*/

  .ui.dropdown > .text {
    display: inline-block;
    transition: $dropdown-text-transition;
  }

  /*--------------
      Menu Item
  ---------------*/

  .ui.dropdown .menu > .item {
    position: relative;
    cursor: pointer;
    display: block;
    border: $dropdown-item-border;
    height: $dropdown-item-height;
    text-align: $dropdown-item-text-align;

    border-top: $dropdown-item-divider;
    line-height: $dropdown-item-line-height;
    font-size: $dropdown-item-font-size;
    color: $dropdown-item-color;

    padding: $dropdown-item-padding !important;
    text-transform: $dropdown-item-text-transform;
    font-weight: $dropdown-item-font-weight;
    box-shadow: $dropdown-item-box-shadow;
    -webkit-touch-callout: none;
  }
  .ui.dropdown .menu > .item:first-child {
    border-top-width: 0;
  }

  /*--------------
    Floated Content
  ---------------*/

  .ui.dropdown > .text > [class*="right floated"],
  .ui.dropdown .menu .item > [class*="right floated"] {
    float: right !important;
    margin-right: 0 !important;
    margin-left: $dropdown-floated-distance !important;
  }
  .ui.dropdown > .text > [class*="left floated"],
  .ui.dropdown .menu .item > [class*="left floated"] {
    float: left !important;
    margin-left: 0 !important;
    margin-right: $dropdown-floated-distance !important;
  }

  .ui.dropdown .menu .item > .icon.floated,
  .ui.dropdown .menu .item > .flag.floated,
  .ui.dropdown .menu .item > .image.floated,
  .ui.dropdown .menu .item > img.floated {
    margin-top: $dropdown-item-line-height-offset;
  }


  /*--------------
    Menu Divider
  ---------------*/

  .ui.dropdown .menu > .header {
    margin: $dropdown-menu-header-margin;
    padding: $dropdown-menu-header-padding;
    font-weight: $dropdown-menu-header-font-weight;
    text-transform: $dropdown-menu-header-text-transform;
  }
  .ui.dropdown .menu > .header:not(.ui) {
    color: $dropdown-menu-header-color;
    font-size: $dropdown-menu-header-font-size;
  }
  .ui.dropdown .menu > .divider {
    border-top: $dropdown-menu-divider-border;
    height: 0;
    margin: $dropdown-menu-divider-margin;
  }
  .ui.dropdown .menu > .horizontal.divider {
    border-top: none;
  }

  .ui.dropdown.dropdown .menu > .input {
    width: auto;
    display: flex;
    margin: $dropdown-menu-input-margin;
    min-width: $dropdown-menu-input-min-width;
  }
  .ui.dropdown .menu > .header + .input {
    margin-top: 0;
  }
  .ui.dropdown .menu > .input:not(.transparent) input {
    padding: $dropdown-menu-input-padding;
  }
  .ui.dropdown .menu > .input:not(.transparent) .button,
  .ui.dropdown .menu > .input:not(.transparent) .icon,
  .ui.dropdown .menu > .input:not(.transparent) .label {
    padding-top: $dropdown-menu-input-vertical-padding;
    padding-bottom: $dropdown-menu-input-vertical-padding;
  }

  /*-----------------
    Item Description
  -------------------*/

  .ui.dropdown > .text > .description,
  .ui.dropdown .menu > .item > .description {
    float: $dropdown-item-description-float;
    margin: $dropdown-item-description-margin;
    color: $dropdown-item-description-color;
  }

  /*-----------------
        Message
  -------------------*/

  .ui.dropdown .menu > .message {
    padding: $dropdown-message-padding;
    font-weight: $dropdown-message-font-weight;
  }
  .ui.dropdown .menu > .message:not(.ui) {
    color: $dropdown-message-color;
  }

  /*--------------
      Sub Menu
  ---------------*/

  .ui.dropdown .menu .menu {
    top: $dropdown-sub-menu-top;
    left: $dropdown-sub-menu-left;
    right: $dropdown-sub-menu-right;
    margin: $dropdown-sub-menu-margin !important;
    border-radius: $dropdown-sub-menu-border-radius !important;
    z-index: $dropdown-sub-menu-z-index !important;
  }

  /* Hide Arrow */
  .ui.dropdown .menu .menu:after {
    display: none;
  }

  /*--------------
    Sub Elements
  ---------------*/

  /* Icons / Flags / Labels / Image */
  .ui.dropdown > .text > .icon,
  .ui.dropdown > .text > .label,
  .ui.dropdown > .text > .flag,
  .ui.dropdown > .text > img,
  .ui.dropdown > .text > .image {
    margin-top: $dropdown-text-line-height-offset;
  }
  .ui.dropdown .menu > .item > .icon,
  .ui.dropdown .menu > .item > .label,
  .ui.dropdown .menu > .item > .flag,
  .ui.dropdown .menu > .item > .image,
  .ui.dropdown .menu > .item > img  {
    margin-top: $dropdown-item-line-height-offset;
  }

  .ui.dropdown > .text > .icon,
  .ui.dropdown > .text > .label,
  .ui.dropdown > .text > .flag,
  .ui.dropdown > .text > img,
  .ui.dropdown > .text > .image,
  .ui.dropdown .menu > .item > .icon,
  .ui.dropdown .menu > .item > .label,
  .ui.dropdown .menu > .item > .flag,
  .ui.dropdown .menu > .item > .image,
  .ui.dropdown .menu > .item > img  {
    margin-left: 0;
    float: $dropdown-item-element-float;
    margin-right: $dropdown-item-element-distance;
  }

  /*--------------
      Image
  ---------------*/

  .ui.dropdown > .text > img,
  .ui.dropdown > .text > .image:not(.icon),
  .ui.dropdown .menu > .item > .image:not(.icon),
  .ui.dropdown .menu > .item > img {
    display: inline-block;
    vertical-align: top;
    width: auto;
    margin-top: $dropdown-menu-image-vertical-margin;
    margin-bottom: $dropdown-menu-image-vertical-margin;
    max-height: $dropdown-menu-image-max-height;
  }


  /*******************************
              Coupling
  *******************************/


  /*--------------
        Menu
  ---------------*/

  /* Remove Menu Item Divider */
  .ui.dropdown .ui.menu > .item:before,
  .ui.menu .ui.dropdown .menu > .item:before {
    display: none;
  }

  /* Prevent Menu Item Border */
  .ui.menu .ui.dropdown .menu .active.item {
    border-left: none;
  }

  /* Automatically float dropdown menu right on last menu item */
  .ui.menu .right.menu .dropdown:last-child .menu,
  .ui.menu .right.dropdown.item .menu,
  .ui.buttons > .ui.dropdown:last-child .menu {
    left: auto;
    right: 0;
  }

  /*--------------
        Label
  ---------------*/

  /* Dropdown Menu */
  .ui.label.dropdown .menu {
    min-width: 100%;
  }

  /*--------------
      Button
  ---------------*/

  /* No Margin On Icon Button */
  .ui.dropdown.icon.button > .dropdown.icon {
    margin: 0;
  }
  .ui.button.dropdown .menu {
    min-width: 100%;
  }



  /*******************************
                Types
  *******************************/
  @if($use-dropdown-type-selection) {
    /*--------------
        Selection
    ---------------*/

    /* Displays like a select box */
    .ui.selection.dropdown {
      cursor: pointer;
      word-wrap: break-word;
      line-height: 1em;
      white-space: normal;
      outline: 0;
      transform: rotateZ(0deg);

      min-width: $dropdown-selection-min-width;
      min-height: $dropdown-selection-min-height;

      background: $dropdown-selection-background;
      display: $dropdown-selection-display;
      padding: $dropdown-selection-padding;
      color: $dropdown-selection-text-color;
      box-shadow: $dropdown-selection-box-shadow;
      border: $dropdown-selection-border;
      border-radius: $dropdown-selection-border-radius;
      transition: $dropdown-selection-transition;
    }
    .ui.selection.dropdown.visible,
    .ui.selection.dropdown.active {
      z-index: $dropdown-selection-z-index;
    }

    select.ui.dropdown {
      height: $dropdown-select-height;
      padding: $dropdown-select-padding;
      border: $dropdown-select-border;
      visibility: $dropdown-select-visibility;
    }
    .ui.selection.dropdown > .search.icon,
    .ui.selection.dropdown > .delete.icon,
    .ui.selection.dropdown > .dropdown.icon {
      cursor: pointer;
      position: absolute;
      width: auto;
      height: auto;
      line-height: $dropdown-search-selection-line-height;
      top: $dropdown-selection-vertical-padding;
      right: $dropdown-selection-horizontal-padding;
      z-index: $dropdown-selection-icon-z-index;
      margin: $dropdown-selection-icon-margin;
      padding: $dropdown-selection-icon-padding;
      opacity: $dropdown-selection-icon-opacity;
      transition: $dropdown-selection-icon-transition;
    }

    /* Compact */
    .ui.compact.selection.dropdown {
      min-width:  0;
    }

    /*  Selection Menu */
    .ui.selection.dropdown .menu {
      overflow-x: hidden;
      overflow-y: auto;
      backface-visibility: hidden;
      -webkit-overflow-scrolling: touch;
      border-top-width: 0 !important;
      width: auto;
      outline: none;
      margin: 0 (-$dropdown-menu-border-width);
      min-width: $dropdown-menu-min-width;
      width: $dropdown-menu-min-width;

      border-radius: $dropdown-selection-menu-border-radius;
      box-shadow: $dropdown-selection-menu-box-shadow;
      transition: $dropdown-selection-menu-transition;
    }
    .ui.selection.dropdown .menu:after,
    .ui.selection.dropdown .menu:before {
      display: none;
    }

    /*--------------
        Message
    ---------------*/

    .ui.selection.dropdown .menu > .message {
      padding: $dropdown-selection-message-padding;
    }

    @media only screen and (max-width : $largest-mobile-screen) {
      .ui.selection.dropdown[class*="very short"] .menu {
        max-height: $dropdown-selection-mobile-max-menu-height * 0.5;
      }
      .ui.selection.dropdown.short .menu {
        max-height: $dropdown-selection-mobile-max-menu-height * 0.75;
      }
      .ui.selection.dropdown .menu {
        max-height: $dropdown-selection-mobile-max-menu-height;
      }
      .ui.selection.dropdown.long .menu {
        max-height: $dropdown-selection-mobile-max-menu-height * 2;
      }
      .ui.selection.dropdown[class*="very long"] .menu {
        max-height: $dropdown-selection-mobile-max-menu-height * 3;
      }
    }
    @media only screen and (min-width: $tablet-breakpoint) {
      .ui.selection.dropdown[class*="very short"] .menu {
        max-height: $dropdown-selection-tablet-max-menu-height * 0.5;
      }
      .ui.selection.dropdown.short .menu {
        max-height: $dropdown-selection-tablet-max-menu-height * 0.75;
      }
      .ui.selection.dropdown .menu {
        max-height: $dropdown-selection-tablet-max-menu-height;
      }
      .ui.selection.dropdown.long .menu {
        max-height: $dropdown-selection-tablet-max-menu-height * 2;
      }
      .ui.selection.dropdown[class*="very long"] .menu {
        max-height: $dropdown-selection-tablet-max-menu-height * 3;
      }
    }
    @media only screen and (min-width: $computer-breakpoint) {
      .ui.selection.dropdown[class*="very short"] .menu {
        max-height: $dropdown-selection-computer-max-menu-height * 0.5;
      }
      .ui.selection.dropdown.short .menu {
        max-height: $dropdown-selection-computer-max-menu-height * 0.75;
      }
      .ui.selection.dropdown .menu {
        max-height: $dropdown-selection-computer-max-menu-height;
      }
      .ui.selection.dropdown.long .menu {
        max-height: $dropdown-selection-computer-max-menu-height * 2;
      }
      .ui.selection.dropdown[class*="very long"] .menu {
        max-height: $dropdown-selection-computer-max-menu-height * 3;
      }
    }
    @media only screen and (min-width: $widescreen-monitor-breakpoint) {
      .ui.selection.dropdown[class*="very short"] .menu {
        max-height: $dropdown-selection-widescreen-max-menu-height * 0.5;
      }
      .ui.selection.dropdown.short .menu {
        max-height: $dropdown-selection-widescreen-max-menu-height * 0.75;
      }
      .ui.selection.dropdown .menu {
        max-height: $dropdown-selection-widescreen-max-menu-height;
      }
      .ui.selection.dropdown.long .menu {
        max-height: $dropdown-selection-widescreen-max-menu-height * 2;
      }
      .ui.selection.dropdown[class*="very long"] .menu {
        max-height: $dropdown-selection-widescreen-max-menu-height * 3;
      }
    }

    /* Menu Item */
    .ui.selection.dropdown .menu > .item {
      border-top: $dropdown-selection-item-divider;
      padding: $dropdown-selection-item-padding !important;
      white-space: normal;
      word-wrap: normal;
    }

    /* User Item */
    .ui.selection.dropdown .menu > .hidden.addition.item {
      display: none;
    }

    /* Hover */
    .ui.selection.dropdown:hover {
      border-color: $dropdown-selection-hover-border-color;
      box-shadow: $dropdown-selection-hover-box-shadow;
    }

    /* Active */
    .ui.selection.active.dropdown {
      border-color: $dropdown-selection-visible-border-color;
      box-shadow: $dropdown-selection-visible-box-shadow;
    }
    .ui.selection.active.dropdown .menu {
      border-color: $dropdown-selection-visible-border-color;
      box-shadow: $dropdown-selection-visible-menu-box-shadow;
    }

    /* Focus */
    .ui.selection.dropdown:focus {
      border-color: $dropdown-selection-focus-border-color;
      box-shadow: $dropdown-selection-focus-box-shadow;
    }
    .ui.selection.dropdown:focus .menu {
      border-color: $dropdown-selection-focus-border-color;
      box-shadow: $dropdown-selection-focus-menu-box-shadow;
    }

    /* Visible */
    .ui.selection.visible.dropdown > .text:not(.default) {
      font-weight: $dropdown-selection-visible-text-font-weight;
      color: $dropdown-selection-visible-text-color;
    }

    /* Visible Hover */
    .ui.selection.active.dropdown:hover {
      border-color: $dropdown-selection-active-hover-border-color;
      box-shadow: $dropdown-selection-active-hover-box-shadow;
    }
    .ui.selection.active.dropdown:hover .menu {
      border-color: $dropdown-selection-active-hover-border-color;
      box-shadow: $dropdown-selection-active-hover-menu-box-shadow;
    }

    /* Dropdown Icon */
    .ui.active.selection.dropdown > .dropdown.icon,
    .ui.visible.selection.dropdown > .dropdown.icon {
      opacity: $dropdown-selection-visible-icon-opacity;
      z-index: 3;
    }

    /* Connecting Border */
    .ui.active.selection.dropdown {
      border-bottom-left-radius: $dropdown-selection-visible-connecting-border !important;
      border-bottom-right-radius: $dropdown-selection-visible-connecting-border !important;
    }

    /* Empty Connecting Border */
    .ui.active.empty.selection.dropdown {
      border-radius: $dropdown-selection-border-radius !important;
      box-shadow: $dropdown-selection-box-shadow !important;
    }
    .ui.active.empty.selection.dropdown .menu {
      border: none !important;
      box-shadow: none !important;
    }
  }

  @if($use-dropdown-type-search) {
    /*--------------
      Searchable
    ---------------*/

    /* Search Selection */
    .ui.search.dropdown {
      min-width: $dropdown-search-min-width;
    }

    /* Search Dropdown */
    .ui.search.dropdown > input.search {
      background: none transparent !important;
      border: none !important;
      box-shadow: none !important;
      cursor: text;
      top: 0;
      left: $dropdown-text-cursor-spacing;
      width: 100%;
      outline: none;
      -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
      padding: inherit;
    }

    /* Text Layering */
    .ui.search.dropdown > input.search {
      position: absolute;
      z-index: 2;
    }
    .ui.search.dropdown > .text {
      cursor: text;
      position: relative;
      left: $dropdown-text-cursor-spacing;
      z-index: 3;
    }

    /* Search Selection */
    .ui.search.selection.dropdown > input.search {
      line-height: $dropdown-search-selection-line-height;
      padding: $dropdown-search-selection-input-padding;
    }

    /* Used to size multi select input to character width */
    .ui.search.selection.dropdown > span.sizer {
      line-height: $dropdown-search-selection-line-height;
      padding: $dropdown-search-selection-input-padding;
      display: none;
      white-space: pre;
    }

    /* Active/Visible Search */
    .ui.search.dropdown.active > input.search,
    .ui.search.dropdown.visible > input.search {
      cursor: auto;
    }
    .ui.search.dropdown.active > .text,
    .ui.search.dropdown.visible > .text {
      pointer-events: none;
    }

    /* Filtered Text */
    .ui.active.search.dropdown input.search:focus + .text .icon,
    .ui.active.search.dropdown input.search:focus + .text .flag {
      opacity: $dropdown-selection-text-underlay-icon-opacity;
    }
    .ui.active.search.dropdown input.search:focus + .text {
      color: $dropdown-selection-text-underlay-color !important;
    }

    /* Search Menu */
    .ui.search.dropdown .menu {
      overflow-x: hidden;
      overflow-y: auto;
      backface-visibility: hidden;
      -webkit-overflow-scrolling: touch;
    }
    @media only screen and (max-width : $largest-mobile-screen) {
      .ui.search.dropdown .menu {
        max-height: $dropdown-search-mobile-max-menu-height;
      }
    }
    @media only screen and (min-width: $tablet-breakpoint) {
      .ui.search.dropdown .menu {
        max-height: $dropdown-search-tablet-max-menu-height;
      }
    }
    @media only screen and (min-width: $computer-breakpoint) {
      .ui.search.dropdown .menu {
        max-height: $dropdown-search-computer-max-menu-height;
      }
    }
    @media only screen and (min-width: $widescreen-monitor-breakpoint) {
      .ui.search.dropdown .menu {
        max-height: $dropdown-search-widescreen-max-menu-height;
      }
    }
  }


  @if($use-dropdown-type-clearable) {
    /* Clearable Selection */
    .ui.dropdown > .remove.icon {
      cursor: pointer;
      font-size: $dropdown-icon-size;
      margin: $dropdown-selection-icon-margin;
      padding: $dropdown-selection-icon-padding;
      right: 3em;
      top: $dropdown-selection-vertical-padding;
      position: absolute;
      opacity: 0.6;
      z-index: $dropdown-selection-icon-z-index;
    }

    .ui.clearable.dropdown .text,
    .ui.clearable.dropdown a:last-of-type {
      margin-right: 1.5em;
    }

    .ui.dropdown select.noselection ~ .remove.icon,
    .ui.dropdown input[value=''] ~ .remove.icon,
    .ui.dropdown input:not([value]) ~ .remove.icon,
    .ui.dropdown.loading > .remove.icon {
      display: none;
    }
  }

  @if($use-dropdown-type-multiple) {
    /*--------------
        Multiple
    ---------------*/

    /* Multiple Selection */
    .ui.multiple.dropdown {
      padding: $dropdown-multiple-selection-padding;
    }
    .ui.multiple.dropdown .menu {
      cursor: auto;
    }

    /* Multiple Search Selection */
    .ui.multiple.search.dropdown,
    .ui.multiple.search.dropdown > input.search {
      cursor: text;
    }

    /* Selection Label */
    .ui.multiple.dropdown > .label {
      display: inline-block;
      white-space: normal;
      font-size: $dropdown-label-size;
      padding: $dropdown-label-padding;
      margin: $dropdown-label-margin;
      box-shadow: $dropdown-label-box-shadow;
    }

    /* Dropdown Icon */
    .ui.multiple.dropdown .dropdown.icon {
      margin: $dropdown-multiple-selection-icon-margin;
      padding: $dropdown-multiple-selection-icon-padding;
    }

    /* Text */
    .ui.multiple.dropdown > .text {
      position: static;
      padding: 0;
      max-width: 100%;
      margin: $dropdown-multiple-selection-child-margin;
      line-height: $dropdown-multiple-selection-child-line-height;
    }
    .ui.multiple.dropdown > .label ~ input.search {
      margin-left: $dropdown-multiple-selection-search-after-label-distance !important;
    }
    .ui.multiple.dropdown > .label ~ .text {
      display: none;
    }
    .ui.multiple.dropdown > .label:not(.image) > img:not(.centered) {
      margin-right: $dropdown-item-element-distance;
    }
    .ui.multiple.dropdown > .label:not(.image) > img.ui:not(.avatar) {
      margin-bottom: $dropdown-item-element-bottom-distance;
    }
    .ui.multiple.dropdown > .image.label img {
      margin: $dropdown-image-label-image-margin;
      height: $dropdown-image-label-height;
    }

    @if($use-dropdown-type-search) {
      /*-----------------
        Multiple Search
      -----------------*/

      /* Prompt Text */
      .ui.multiple.search.dropdown > .text {
        display: inline-block;
        position: absolute;
        top: 0;
        left: 0;
        padding: inherit;
        margin: $dropdown-multiple-selection-child-margin;
        line-height: $dropdown-multiple-selection-child-line-height;
      }

      .ui.multiple.search.dropdown > .label ~ .text {
        display: none;
      }

      /* Search */
      .ui.multiple.search.dropdown > input.search {
        position: static;
        padding: 0;
        max-width: 100%;
        margin: $dropdown-multiple-selection-child-margin;
        width: $dropdown-multiple-selection-search-start-width;
        line-height: $dropdown-multiple-selection-child-line-height;
      }
    }
  }

  @if($use-dropdown-type-inline) {
    /*--------------
        Inline
    ---------------*/

    .ui.inline.dropdown {
      cursor: pointer;
      display: inline-block;
      color: $dropdown-inline-text-color;
    }
    .ui.inline.dropdown .dropdown.icon {
      margin: $dropdown-inline-icon-margin;
      vertical-align: baseline;
    }
    .ui.inline.dropdown > .text {
      font-weight: $dropdown-inline-text-font-weight;
    }
    .ui.inline.dropdown .menu {
      cursor: auto;
      margin-top: $dropdown-inline-menu-distance;
      border-radius: $dropdown-inline-menu-border-radius;
    }
  }

  /*******************************
              States
  *******************************/


  /*--------------------
          Active
  ----------------------*/

  /* Menu Item Active */
  .ui.dropdown .menu .active.item {
    background: $dropdown-active-item-background;
    font-weight: $dropdown-active-item-font-weight;
    color: $dropdown-active-item-color;
    box-shadow: $dropdown-active-item-box-shadow;
    z-index: $dropdown-active-item-z-index;
  }


  /*--------------------
          Hover
  ----------------------*/

  /* Menu Item Hover */
  .ui.dropdown .menu > .item:hover {
    background: $dropdown-hovered-item-background;
    color: $dropdown-hovered-item-color;
    z-index: $dropdown-hovered-z-index;
  }

  /*--------------------
        Loading
  ---------------------*/

  .ui.loading.dropdown > i.icon {
    height: $relative14px !important;
  }
  .ui.loading.selection.dropdown > i.icon {
    padding: $relative21px $relative18px !important;
  }
  .ui.loading.dropdown > i.icon:before {
    position: absolute;
    content: '';
    top: 50%;
    left: 50%;

    margin: $loader-margin;
    width: $loader-size;
    height: $loader-size;

    border-radius: $circular-radius;
    border: $loader-line-width solid $loader-fill-color;
  }
  .ui.loading.dropdown > i.icon:after {
    position: absolute;
    content: '';
    top: 50%;
    left: 50%;
    box-shadow: 0 0 0 1px transparent;

    margin: $loader-margin;
    width: $loader-size;
    height: $loader-size;

    animation: loader $loader-speed infinite linear;
    border: $loader-line-width solid $loader-line-color;
    border-radius: $circular-radius;

  }

  /* Coupling */
  .ui.loading.dropdown.button > i.icon:before,
  .ui.loading.dropdown.button > i.icon:after {
    display: none;
  }

  /*--------------------
      Default Text
  ----------------------*/

  .ui.dropdown:not(.button) > .default.text,
  .ui.default.dropdown:not(.button) > .text {
    color: $dropdown-default-text-color;
  }
  .ui.dropdown:not(.button) > input:focus ~ .default.text,
  .ui.default.dropdown:not(.button) > input:focus ~ .text {
    color: $dropdown-default-text-focus-color;
  }
  /*--------------------
          Loading
  ----------------------*/

  .ui.loading.dropdown > .text {
    transition: none;
  }

  /* Used To Check Position */
  .ui.dropdown .loading.menu {
    display: block;
    visibility: hidden;
    z-index: $dropdown-loading-z-index;
  }
  .ui.dropdown > .loading.menu {
    left: 0 !important;
    right: auto !important;
  }
  .ui.dropdown > .menu .loading.menu {
    left: 100% !important;
    right: auto !important;
  }

  /*--------------------
      Keyboard Select
  ----------------------*/

  /* Selected Item */
  .ui.dropdown.selected,
  .ui.dropdown .menu .selected.item {
    background: $dropdown-selected-background;
    color: $dropdown-selected-color;
  }


  /*--------------------
      Search Filtered
  ----------------------*/

  /* Filtered Item */
  .ui.dropdown > .filtered.text {
    visibility: hidden;
  }
  .ui.dropdown .filtered.item {
    display: none !important;
  }


  /*--------------------
          Error
  ----------------------*/

  .ui.dropdown.error,
  .ui.dropdown.error > .text,
  .ui.dropdown.error > .default.text {
    color: $error-text-color;
  }

  .ui.selection.dropdown.error {
    background: $error-background-color;
    border-color: $error-border-color;
  }
  .ui.selection.dropdown.error:hover {
    border-color: $error-border-color;
  }

  .ui.dropdown.error > .menu,
  .ui.dropdown.error > .menu .menu {
    border-color: $error-border-color;
  }
  .ui.dropdown.error > .menu > .item {
    color: $dropdown-error-item-text-color;
  }
  .ui.multiple.selection.error.dropdown > .label {
    border-color: $error-border-color;
  }

  /* Item Hover */
  .ui.dropdown.error > .menu > .item:hover {
    background-color: $dropdown-error-item-hover-background;
  }

  /* Item Active */
  .ui.dropdown.error > .menu .active.item {
    background-color: $dropdown-error-item-active-background;
  }


  /*--------------------
          Clear
  ----------------------*/

  .ui.dropdown > .clear.dropdown.icon {
    opacity: $dropdown-clearable-icon-opacity;
    transition: opacity $default-duration $default-easing;
  }
  .ui.dropdown > .clear.dropdown.icon:hover {
    opacity: $dropdown-clearable-icon-active-opacity;
  }


  /*--------------------
          Disabled
  ----------------------*/

  /* Disabled */
  .ui.disabled.dropdown,
  .ui.dropdown .menu > .disabled.item {
    cursor: default;
    pointer-events: none;
    opacity: $disabled-opacity;
  }


  /*******************************
            Variations
  *******************************/

  /*--------------
      Direction
  ---------------*/

  /* Flyout Direction */
  .ui.dropdown .menu {
    left: 0;
  }


  /* Default Side (Right) */
  .ui.dropdown .right.menu > .menu,
  .ui.dropdown .menu .right.menu {
    left: 100% !important;
    right: auto !important;
    border-radius: $dropdown-sub-menu-border-radius !important;
  }

  /* Leftward Opening Menu */
  .ui.dropdown > .left.menu {
    left: auto !important;
    right: 0 !important;
  }

  .ui.dropdown > .left.menu .menu,
  .ui.dropdown .menu .left.menu {
    left: auto;
    right: 100%;
    margin: $dropdown-left-sub-menu-margin !important;
    border-radius: $dropdown-left-sub-menu-border-radius !important;
  }

  .ui.dropdown .item .left.dropdown.icon,
  .ui.dropdown .left.menu .item .dropdown.icon {
    width: auto;
    float: $dropdown-left-menu-icon-float;
    margin: $dropdown-left-menu-icon-margin;
  }
  .ui.dropdown .item .left.dropdown.icon,
  .ui.dropdown .left.menu .item .dropdown.icon {
    width: auto;
    float: $dropdown-left-menu-icon-float;
    margin: $dropdown-left-menu-icon-margin;
  }
  .ui.dropdown .item .left.dropdown.icon + .text,
  .ui.dropdown .left.menu .item .dropdown.icon + .text {
    margin-left: $dropdown-item-icon-distance;
    margin-right: 0;
  }


  /*--------------
      Upward
  ---------------*/

  /* Upward Main Menu */
  .ui.upward.dropdown > .menu {
    top: auto;
    bottom: 100%;
    box-shadow: $dropdown-upward-menu-box-shadow;
    border-radius: $dropdown-upward-menu-border-radius;
  }

  /* Upward Sub Menu */
  .ui.dropdown .upward.menu {
    top: auto !important;
    bottom: 0 !important;
  }

  /* Active Upward */
  .ui.simple.upward.active.dropdown,
  .ui.simple.upward.dropdown:hover {
    border-radius: $dropdown-border-radius $dropdown-border-radius 0 0 !important;
  }
  .ui.upward.dropdown.button:not(.pointing):not(.floating).active {
    border-radius: $dropdown-border-radius $dropdown-border-radius 0 0;
  }

  /* Selection */
  .ui.upward.selection.dropdown .menu {
    border-top-width: $dropdown-menu-border-width !important;
    border-bottom-width: 0 !important;
    box-shadow: $dropdown-upward-selection-menu-box-shadow;
  }
  .ui.upward.selection.dropdown:hover {
    box-shadow: $dropdown-upward-selection-hover-box-shadow;
  }

  /* Active Upward */
  .ui.active.upward.selection.dropdown {
    border-radius: $dropdown-upward-selection-visible-border-radius !important;
  }

  /* Visible Upward */
  .ui.upward.selection.dropdown.visible {
    box-shadow: $dropdown-upward-selection-visible-box-shadow;
    border-radius: $dropdown-upward-selection-visible-border-radius !important;
  }

  /* Visible Hover Upward */
  .ui.upward.active.selection.dropdown:hover {
    box-shadow: $dropdown-upward-selection-active-hover-box-shadow;
  }
  .ui.upward.active.selection.dropdown:hover .menu {
    box-shadow: $dropdown-upward-selection-active-hover-menu-box-shadow;
  }

  /*--------------
      Scrolling
  ---------------*/

  /*  Selection Menu */
  .ui.scrolling.dropdown .menu,
  .ui.dropdown .scrolling.menu {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .ui.scrolling.dropdown .menu {
    overflow-x: hidden;
    overflow-y: auto;
    backface-visibility: hidden;
    -webkit-overflow-scrolling: touch;
    min-width: 100% !important;
    width: auto !important;
  }

  .ui.dropdown .scrolling.menu {
    position: static;
    overflow-y: auto;
    border: none;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    min-width: 100% !important;
    width: auto !important;
    border-top: $dropdown-menu-border;
  }
  .ui.scrolling.dropdown .menu .item.item.item,
  .ui.dropdown .scrolling.menu > .item.item.item {
    border-top: $dropdown-scrolling-menu-item-border;
  }
  .ui.scrolling.dropdown .menu .item:first-child,
  .ui.dropdown .scrolling.menu .item:first-child {
    border-top: none;
  }
  .ui.dropdown > .animating.menu .scrolling.menu,
  .ui.dropdown > .visible.menu .scrolling.menu {
    display: block;
  }

  /* Scrollbar in IE */
  @media all and (-ms-high-contrast:none) {
    .ui.scrolling.dropdown .menu,
    .ui.dropdown .scrolling.menu {
      min-width: calc(100% - #{$scrollbar-width});
    }
  }
  @media only screen and (max-width : $largest-mobile-screen) {
    .ui.scrolling.dropdown .menu,
    .ui.dropdown .scrolling.menu {
      max-height: $dropdown-scrolling-mobile-max-menu-height;
    }
  }
  @media only screen and (min-width: $tablet-breakpoint) {
    .ui.scrolling.dropdown .menu,
    .ui.dropdown .scrolling.menu {
      max-height: $dropdown-scrolling-tablet-max-menu-height;
    }
  }
  @media only screen and (min-width: $computer-breakpoint) {
    .ui.scrolling.dropdown .menu,
    .ui.dropdown .scrolling.menu {
      max-height: $dropdown-scrolling-computer-max-menu-height;
    }
  }
  @media only screen and (min-width: $widescreen-monitor-breakpoint) {
    .ui.scrolling.dropdown .menu,
    .ui.dropdown .scrolling.menu {
      max-height: $dropdown-scrolling-widescreen-max-menu-height;
    }
  }

  @if($use-dropdown-variation-columnar) {
    /*--------------
        Columnar
    ---------------*/
    .ui.dropdown[class*="two column"] > .menu > .item {
      display: inline-block;
      width: 50%;
    }
    .ui.dropdown[class*="three column"] > .menu > .item {
      display: inline-block;
      width: 33%;
    }
    .ui.dropdown[class*="four column"] > .menu > .item {
      display: inline-block;
      width: 25%;
    }
    .ui.dropdown[class*="five column"] > .menu > .item {
      display: inline-block;
      width: 20%;
    }
  }

  @if($use-dropdown-type-simple) {
    /*--------------
        Simple
    ---------------*/

    /* Displays without javascript */

    .ui.simple.dropdown .menu:before,
    .ui.simple.dropdown .menu:after {
      display: none;
    }
    .ui.simple.dropdown .menu {
      position: absolute;
      /* IE hack to make dropdown icons appear inline */
      display: -ms-inline-flexbox !important;
      display: block;
      overflow: hidden;
      top: -9999px;
      opacity: 0;
      width: 0;
      height: 0;
      transition: $dropdown-simple-transition;
      margin-top: 0 !important;
    }

    .ui.simple.active.dropdown,
    .ui.simple.dropdown:hover {
      border-bottom-left-radius: 0 !important;
      border-bottom-right-radius: 0 !important;
    }

    .ui.simple.active.dropdown > .menu,
    .ui.simple.dropdown:hover > .menu {
      overflow: visible;
      width: auto;
      height: auto;
      top: 100%;
      opacity: 1;
    }
    .ui.simple.dropdown > .menu > .item:active > .menu,
    .ui.simple.dropdown:hover > .menu > .item:hover > .menu {
      overflow: visible;
      width: auto;
      height: auto;
      top: 0 !important;
      left: 100% !important;
      opacity: 1;
    }
    .ui.simple.disabled.dropdown:hover .menu {
      display: none;
      height: 0;
      width: 0;
      overflow: hidden;
    }

    /* Visible */
    .ui.simple.visible.dropdown > .menu {
      display: block;
    }

    /* Scrolling */
    .ui.simple.scrolling.active.dropdown > .menu,
    .ui.simple.scrolling.dropdown:hover > .menu {
      overflow-x: hidden;
      overflow-y: auto;
    }
  }

  /*--------------
        Fluid
  ---------------*/

  .ui.fluid.dropdown {
    display: block;
    width: 100% !important;
    min-width: 0;
  }
  .ui.fluid.dropdown > .dropdown.icon {
    float: right;
  }


  /*--------------
      Floating
  ---------------*/

  .ui.floating.dropdown .menu {
    left: 0;
    right: auto;
    box-shadow: $dropdown-floating-menu-box-shadow !important;
    border-radius: $dropdown-floating-menu-border-radius !important;
  }
  .ui.floating.dropdown > .menu {
    border-radius: $dropdown-floating-menu-border-radius !important;
  }
  .ui:not(.upward).floating.dropdown > .menu {
    margin-top: $dropdown-floating-menu-distance;
  }
  .ui.upward.floating.dropdown > .menu {
    margin-bottom: $dropdown-floating-menu-distance;
  }

  @if($use-dropdown-type-pointing) {
    /*--------------
        Pointing
    ---------------*/

    .ui.pointing.dropdown > .menu {
      top: 100%;
      margin-top: $dropdown-pointing-menu-distance;
      border-radius: $dropdown-pointing-menu-border-radius;
    }

    .ui.pointing.dropdown > .menu:not(.hidden):after {
      top: $dropdown-pointing-arrow-offset;
      left: 50%;
      margin: 0 0 0 $dropdown-pointing-arrow-offset;
      
      display: block;
      position: absolute;
      pointer-events: none;
      content: '';
      visibility: visible;
      transform: rotate(45deg);

      width: $dropdown-pointing-arrow-size;
      height: $dropdown-pointing-arrow-size;
      box-shadow: $dropdown-pointing-arrow-box-shadow;
      background: $dropdown-pointing-arrow-background;
      z-index: $dropdown-pointing-arrow-z-index;
    }

    /* Top Left Pointing */
    .ui.top.left.pointing.dropdown > .menu {
      top: 100%;
      bottom: auto;
      left: 0;
      right: auto;
      margin: $dropdown-pointing-arrow-distance-from-edge 0 0;
    }
    .ui.top.left.pointing.dropdown > .menu {
      top: 100%;
      bottom: auto;
      left: 0;
      right: auto;
      margin: $dropdown-pointing-arrow-distance-from-edge 0 0;
    }
    .ui.top.left.pointing.dropdown > .menu:after {
      top: $dropdown-pointing-arrow-offset;
      left: $dropdown-pointing-arrow-distance-from-edge;
      right: auto;
      margin: 0;
      transform: rotate(45deg);
    }
    /* Top Right Pointing */
    .ui.top.right.pointing.dropdown > .menu {
      top: 100%;
      bottom: auto;
      right: 0;
      left: auto;
      margin: $dropdown-pointing-arrow-distance-from-edge 0 0;
    }
    .ui.top.pointing.dropdown > .left.menu:after,
    .ui.top.right.pointing.dropdown > .menu:after {
      top: $dropdown-pointing-arrow-offset;
      left: auto !important;
      right: $dropdown-pointing-arrow-distance-from-edge !important;
      margin: 0;
      transform: rotate(45deg);
    }

    /* Left Pointing */
    .ui.left.pointing.dropdown > .menu {
      top: 0;
      left: 100%;
      right: auto;
      margin: 0 0 0 $dropdown-pointing-arrow-distance-from-edge;
    }
    .ui.left.pointing.dropdown > .menu:after {
      top: 1em;
      left: $dropdown-pointing-arrow-offset;
      margin: 0 0 0 0;
      transform: rotate(-45deg);
    }
    .ui.left:not(.top):not(.bottom).pointing.dropdown > .left.menu {
      left: auto !important;
      right: 100% !important;
      margin: 0 $dropdown-pointing-arrow-distance-from-edge 0 0;
    }
    .ui.left:not(.top):not(.bottom).pointing.dropdown > .left.menu:after {
      top: 1em;
      left: auto;
      right: $dropdown-pointing-arrow-offset;
      margin: 0 0 0 0;
      transform: rotate(135deg);
    }


    /* Right Pointing */
    .ui.right.pointing.dropdown > .menu {
      top: 0;
      left: auto;
      right: 100%;
      margin: 0 $dropdown-pointing-arrow-distance-from-edge 0 0;
    }
    .ui.right.pointing.dropdown > .menu:after {
      top: 1em;
      left: auto;
      right: $dropdown-pointing-arrow-offset;
      margin: 0 0 0 0;
      transform: rotate(135deg);
    }

    /* Bottom Pointing */
    .ui.bottom.pointing.dropdown > .menu {
      top: auto;
      bottom: 100%;
      left: 0;
      right: auto;
      margin: 0 0 $dropdown-pointing-arrow-distance-from-edge ;
    }
    .ui.bottom.pointing.dropdown > .menu:after {
      top: auto;
      bottom: $dropdown-pointing-arrow-offset;
      right: auto;
      margin: 0;
      transform: rotate(-135deg);
    }
    /* Reverse Sub-Menu Direction */
    .ui.bottom.pointing.dropdown > .menu .menu {
      top: auto !important;
      bottom: 0 !important;
    }

    /* Bottom Left */
    .ui.bottom.left.pointing.dropdown > .menu {
      left: 0;
      right: auto;
    }
    .ui.bottom.left.pointing.dropdown > .menu:after {
      left: $dropdown-pointing-arrow-distance-from-edge;
      right: auto;
    }

    /* Bottom Right */
    .ui.bottom.right.pointing.dropdown > .menu {
      right: 0;
      left: auto;
    }
    .ui.bottom.right.pointing.dropdown > .menu:after {
      left: auto;
      right: $dropdown-pointing-arrow-distance-from-edge;
    }

    /* Upward pointing */
    .ui.pointing.upward.dropdown .menu,
    .ui.top.pointing.upward.dropdown .menu {
      top: auto !important;
      bottom: 100% !important;
      margin: 0 0 $dropdown-pointing-menu-distance;
      border-radius: $dropdown-pointing-upward-menu-border-radius;
    }
    .ui.pointing.upward.dropdown .menu:after,
    .ui.top.pointing.upward.dropdown .menu:after {
      top: 100% !important;
      bottom: auto !important;
      box-shadow: $dropdown-pointing-upward-arrow-box-shadow;
      margin: $dropdown-pointing-arrow-offset 0 0;
    }

    /* Right Pointing Upward */
    .ui.right.pointing.upward.dropdown:not(.top):not(.bottom) .menu {
      top: auto !important;
      bottom: 0 !important;
      margin: 0 $dropdown-pointing-arrow-distance-from-edge 0 0;
    }
    .ui.right.pointing.upward.dropdown:not(.top):not(.bottom) .menu:after {
      top: auto !important;
      bottom: 0 !important;
      margin: 0 0 $dropdown-pointing-arrow-distance-from-edge 0;
      box-shadow: $dropdown-pointing-arrow-box-shadow;
    }


    /* Left Pointing Upward */
    .ui.left.pointing.upward.dropdown:not(.top):not(.bottom) .menu {
      top: auto !important;
      bottom: 0 !important;
      margin: 0 0 0 $dropdown-pointing-arrow-distance-from-edge;
    }
    .ui.left.pointing.upward.dropdown:not(.top):not(.bottom) .menu:after {
      top: auto !important;
      bottom: 0 !important;
      margin: 0 0 $dropdown-pointing-arrow-distance-from-edge 0;
      box-shadow: $dropdown-pointing-arrow-box-shadow;
    }
  }


  /*--------------------
          Sizes
  ---------------------*/

  /* Dropdown Size */
  .ui.mini.dropdown {
    font-size: $mini;
  }
  .ui.tiny.dropdown {
    font-size: $tiny;
  }
  .ui.small.dropdown {
    font-size: $small;
  }
  .ui.dropdown {
    font-size: $medium;
  }
  .ui.large.dropdown {
    font-size: $large;
  }
  .ui.big.dropdown {
    font-size: $big;
  }
  .ui.huge.dropdown {
    font-size: $huge;
  }
  .ui.massive.dropdown {
    font-size: $massive;
  }

  /* Dropdown Item Size */
  .ui.mini.dropdown .menu > .item {
    font-size: $mini;
  }
  .ui.tiny.dropdown .menu > .item {
    font-size: $tiny;
  }
  .ui.small.dropdown .menu > .item {
    font-size: $small;
  }
  .ui.dropdown .menu > .item {
    font-size: $medium;
  }
  .ui.large.dropdown .menu > .item {
    font-size: $large;
  }
  .ui.big.dropdown .menu > .item {
    font-size: $big;
  }
  .ui.huge.dropdown .menu > .item {
    font-size: $huge;
  }
  .ui.massive.dropdown .menu > .item {
    font-size: $massive;
  }

  @if($use-dropdown-variation-inverted) {
    /*--------------
        Inverted
    ---------------*/

    /* General rules and basic dropdowns */
    .ui.inverted.dropdown .menu {
      background: $dropdown-inverted-menu-background;
      box-shadow: $dropdown-inverted-menu-box-shadow;
      border: $dropdown-inverted-menu-border;
    }

    .ui.inverted.dropdown .menu > .item {
      color: $dropdown-inverted-menu-color;
    }

    .ui.inverted.dropdown .menu .active.item {
      background: $dropdown-inverted-active-item-background;
      color: $dropdown-inverted-active-item-color;
      box-shadow: $dropdown-inverted-active-item-box-shadow;
    }

    .ui.inverted.dropdown .menu > .item:hover {
      background: $dropdown-inverted-hovered-item-background;
      color: $dropdown-inverted-hovered-item-color;
    }

    .ui.inverted.dropdown.selected,
    .ui.inverted.dropdown .menu .selected.item {
      background: $dropdown-inverted-selected-background;
      color: $dropdown-inverted-selected-color;
    }

    .ui.inverted.dropdown .menu > .header {
      color: $dropdown-inverted-menu-header-color;
    }

    .ui.inverted.dropdown > .text > .description,
    .ui.inverted.dropdown .menu > .item > .description {
      color: $dropdown-inverted-item-description-color;
    }

    .ui.inverted.dropdown .menu > .divider {
      border-top: $dropdown-inverted-menu-divider-border;
    }

    .ui.inverted.dropdown .scrolling.menu {
      border: none;
      border-top: $dropdown-inverted-menu-border;
    }

    .ui.inverted.dropdown:not(.button) > .default.text,
    .ui.inverted.default.dropdown:not(.button) > .text {
      color: $dropdown-inverted-default-text-color;
    }
    .ui.inverted.dropdown:not(.button) > input:focus ~ .default.text,
    .ui.inverted.default.dropdown:not(.button) > input:focus ~ .text {
      color: $dropdown-inverted-default-text-focus-color;
    }

    @if($use-dropdown-type-search) {
      .ui.inverted.active.search.dropdown input.search:focus + .text .icon,
      .ui.inverted.active.search.dropdown input.search:focus + .text .flag {
        opacity: $dropdown-inverted-selection-text-underlay-icon-opacity;
      }
      .ui.inverted.active.search.dropdown input.search:focus + .text {
        color: $dropdown-inverted-selection-text-underlay-color !important;
      }
    }

    @if($use-dropdown-type-selection) {
      /* Selection */
      .ui.inverted.selection.dropdown {
        border: $dropdown-inverted-selection-border;
        background: $dropdown-inverted-selection-background;
        color: $dropdown-inverted-selection-text-color;
      }

      .ui.inverted.selection.dropdown input {
        color: $dropdown-inverted-selection-input-text-color;
      }

      .ui.inverted.selection.dropdown:hover {
        border-color: $dropdown-inverted-selection-hover-border-color;
        box-shadow: $dropdown-inverted-selection-hover-box-shadow;
      }
      .ui.inverted.selection.active.dropdown .menu,
      .ui.inverted.selection.active.dropdown:hover {
        border-color: $dropdown-inverted-selection-visible-border-color;
      }

      .ui.inverted.selection.dropdown .menu > .item {
        border-top: $dropdown-inverted-selection-item-divider;
      }

      .ui.inverted.selection.visible.dropdown > .text:not(.default) {
        color: $dropdown-inverted-selection-visible-text-color;
      }
    }

    .ui.inverted.dropdown .menu > .message:not(.ui) {
      color: $dropdown-inverted-message-color;
    }

    /* Fixing the border */
    .ui.inverted.dropdown .menu > .item:first-child {
      border-top-width: 0;
    }

    @if($use-dropdown-type-multiple) {
      /* Labels */
      .ui.inverted.multiple.dropdown > .label {
        background-color: $dropdown-inverted-label-background-color;
        background-image: $dropdown-inverted-label-background-image;
        color: $dropdown-inverted-label-color;
        box-shadow: $dropdown-inverted-label-box-shadow;
      }

      .ui.inverted.multiple.dropdown > .label:hover {
        background-color: $dropdown-inverted-label-hover-background-color;
        border-color: $dropdown-inverted-label-hover-background-color;

        background-image: $dropdown-inverted-label-hover-background-image;
        color: $dropdown-inverted-label-hover-text-color;
      }

      .ui.inverted.multiple.dropdown > .label > .close.icon,
      .ui.inverted.multiple.dropdown > .label > .delete.icon {
        opacity: $dropdown-inverted-label-icon-opacity;
      }

      .ui.inverted.multiple.dropdown > .label > .close.icon:hover,
      .ui.inverted.multiple.dropdown > .label > .delete.icon:hover {
        opacity: $dropdown-inverted-label-icon-hover-opacity;
      }
    }
    /* Selection for form elements */
    .ui.inverted.dropdown textarea::-webkit-selection,
    .ui.inverted.dropdown input::-webkit-selection {
      background-color: $dropdown-inverted-input-highlight-background;
      color: $dropdown-inverted-input-highlight-color;
    }
    .ui.inverted.dropdown textarea::-moz-selection,
    .ui.inverted.dropdown input::-moz-selection {
      background-color: $dropdown-inverted-input-highlight-background;
      color: $dropdown-inverted-input-highlight-color;
    }
    .ui.inverted.dropdown textarea::selection,
    .ui.inverted.dropdown input::selection {
      background-color: $dropdown-inverted-input-highlight-background;
      color: $dropdown-inverted-input-highlight-color;
    }

    /* Scrollbars */
    .ui.inverted.dropdown .menu::-webkit-scrollbar-track {
      background: $track-inverted-background;
    }
    .ui.inverted.dropdown .menu::-webkit-scrollbar-thumb {
      background: $thumb-inverted-background;
    }
    .ui.inverted.dropdown .menu::-webkit-scrollbar-thumb:window-inactive {
      background: $thumb-inverted-inactive-background;
    }
    .ui.inverted.dropdown .menu::-webkit-scrollbar-thumb:hover {
      background: $thumb-inverted-hover-background;
    }

    @if($use-dropdown-type-pointing) {
      .ui.inverted.pointing.dropdown > .menu:after {
        background: $dropdown-inverted-pointing-arrow-background;
        box-shadow: $dropdown-inverted-pointing-arrow-box-shadow;
      }
    }
  }
}

@import '../../themes/default/modules/dropdown.style';