@import 'active_material';
@import './addons/material-datepicker';
@import './addons/material-toggle_bool';

// Select
.filter_select,
.search_select_filter {
  .select2.select2-container.select2-container--default {
    width: 100% !important;
  }
}

.select2-container .select2-selection--single {
  height: 42px;

  .select2-selection__rendered {
    line-height: 42px;
  }

  .select2-selection__arrow {
    height: 40px;
  }
}

// Date Range
.input.date_range {
  input.datepicker {
    background: #fff asset-url('active_material/icons/event.svg') 10px no-repeat;
    padding-left: 40px;
  }
}

// Numeric Range Filter
.filter_numeric_range_filter {
  &.input.string input,
  &.input.stringish input,
  &.input.numberic input {
    width: calc(50% - 6px);
  }
}

// Errors
li.error {
  .select2-selection {
    border-color: $am-theme-error;
  }
}

.input.string.error input,
.input.stringish.error input,
.input.numberic.error input {
  border-color: $am-theme-error;
}
