solid-form-text-label>input:not([type]) + label,
solid-form-text-label>input[type='text'] + label,
solid-form-number-label>input[type='number'] + label,
solid-form-password-label>input[type='password'] + label,
solid-form-email-label>input[type='email'] + label,
solid-form-color-label>input[type='color'] + label {
  display: block;
}

solid-form-dropdown-autocompletion,
solid-form-dropdown-autocompletion-label {

  .ss-main {
    font-weight: normal;
    margin-top: 5px;
    text-transform: none;
  
    .ss-single-selected {
      background-color: #F6F6F6;
      border: none;
      border-radius: 0px;
      color: var(--color-text);
      font-weight: normal;
      min-height: 46px;
      padding: 12px 14px;

      .ss-disabled {
        display: block;
        padding: 3.5px 5px;
        margin: 1.5px 0;
        color: #7A7F85;
      }

      .ss-arrow {
        font-size: 15px;
        margin: 0 12px 0 0;

        span {
          border: solid var(--color-text);
          border-width: 0 1px 1px 0;
          padding: 5px;

          &.arrow-down {
            margin: -5px -10px 0 0;
          }
        }
      }
    }
  }

  .ss-list {
    color: var(--color-text);
    font-weight: normal;
    text-transform: none;
  }
}

solid-form-multipleselect-autocompletion-label,
solid-form-multipleselect-autocompletion {
  label {
    display: block;
  }

  .ss-main {
    font-weight: 400;
    margin-top: 6px;
    text-transform: none;

    .ss-multi-selected {
      background-color: #F6F6F6;
      border: none;
      border-radius: 0px;
      color: var(--color-text);
      font-weight: normal;
      min-height: 46px;
      padding: 7.5px 14px;

      .ss-value {
        height: 25px;
        border: 1px solid var(--color-primary);
        background: white;
        color: var(--color-primary);
        line-height: 17px;
        letter-spacing: 0.24px;
        border-radius: 3px;
        padding: 3px 10px;
        margin-right: 10px;

        &:hover {
          background: var(--color-primary);
          color: white;
        }
      }

      .ss-add {
        align-self: center;
        margin: 1px 3px 1px 0;

        .ss-plus {
          background: #2E3F57;

          &::after {
            background: #2E3F57;
          }
        }
      }
    }

    .ss-content .ss-list .ss-option:hover,
    .ss-content .ss-list .ss-option.ss-highlighted {
      color: #fff;
      background-color: var(--color-secondary);
    }
  }
}

solid-form-placeholder-dropdown {
  font-weight: normal;
  text-transform: none;
  position: relative;
  display: inline-block;
  width: 100%;

  &::after {
    font-family: "simple-line-icons";
    content: "\e604";
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    position: absolute;
    top: 21px;
    right: 14px;
    color: var(--color-heading);
    pointer-events: none;

    @media (max-width: 768px) {
      right: 12px;
    }
  }

  &:focus::after {
    transform: rotate(180deg);
  }

  select {
    background-color: #f6f6f6;
    border: none;
    border-radius: 0px;
    color: var(--color-text);
    font-weight: normal;
    line-height: 15px;
    min-height: 46px;
    margin-top: 5px;
    padding: 12px 14px;
    width: 100%;
    appearance: none;
  }
}

.add-member {
  display: block;
  width: 50%;
  padding-right: 15px;
  position: relative;
  float: left;

  @media (max-width: 768px) {
    width: 100%;
    padding: 0;
  }

  .ss-main {

    @media (max-width: 768px) {
      margin-bottom: 20px;
    }
  }
}

solid-form-date-label {
  label {
    display: block;
  }

  input[type="date"] {
    background-color: #F6F6F6;
    background-image: url("/images/calendar.svg");
    background-position: right 12px top 50%;
    background-repeat: no-repeat;
    background-size: 20px;
    color: var(--color-text);
    cursor: default;
    margin-top: 5px;
    width: 100%;
    padding: 12px 30px 12px 14px;
    border: none;
    height: 46px;
    position: relative;

    &::-webkit-calendar-picker-indicator {
      cursor: pointer;
      opacity: 0;
      position: absolute;
      right: 8px;
    }

    &::-webkit-clear-button {
      cursor: pointer;
      margin-bottom: 5px;
      /* Needed to compensate padding-top: 1.2rem; for the close icon in FF */
      margin-right: 5px;
    }

    &::-webkit-inner-spin-button {
      display: none;
    }
  }
}

solid-form-placeholder-text.icon-magnify input {
  background-image: url("/images/magnify.svg");
  background-repeat: no-repeat;
  background-position: right 12px top 50%;
  background-size: 20px;
}

solid-form-richtext-label {

  &>div:first-of-type {
    margin-top: 5px;
    background: #F6F6F6;
    border: none;
    border-bottom: 1px solid #ccc;
    white-space: normal;
  }

  &>div:nth-of-type(2) {
    font-size: inherit;
    font-weight: normal;
    color: var(--color-text);
    text-transform: none;
    background: #F6F6F6;
    border: none;
  }
}
