/*
 * Copyright (c) 2010, 2023 BSI Business Systems Integration AG
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 */
.file-input {
  cursor: pointer;
  /* Don't allow text selection because mouse down opens the chooser.
   * Reason: The browser would still be in selecting mode after the chooser closes,
   * every click outside of the field would immediately open the chooser again (at least in FF).
   */
  #scout.user-select(none);

  &:not(.disabled):not(.alternative):active {
    background-color: @control-disabled-background-color;
  }

  &.alternative:not(.disabled):active {
    #scout.alternative-focus-border();
  }

  &.has-error:not(.disabled):not(.alternative):active {
    background-color: @error-background-color;
  }

  &.has-error.alternative:not(.disabled):active {
    border-bottom-color: @error-border-color;
  }

  &.disabled {
    cursor: default;
    #scout.user-select(text);
  }
}
