/*
Grid filters

Grid filters that sits above grid/grid header

Markup:
    <div class="data-grid-filters data-grid-filters--bordered">
        <div class="data-grid__header">
          <div class="data-grid-filters__container data-grid-filters__container--pad-left">
            <ul class="data-grid-filters__facets-container">
              <li class="data-grid-filters__facet display--inline-block pos-relative data-grid-filters__remove-filter-target data-grid-filters__facet--dropdown">
                <button id="lnkManagementFees" class="btn">Action Button
                    <span class="icon-link-menu-pointer"></span>
                </button>
              </li>
            </ul>
          </div>
          <div class="data-grid__specialized-filter-container">
            <div class="pos-relative" style="position: relative">
              <div class="data-grid__clear-all-filters pos-absolute pos-top" style="position: absolute; top: 0"></div>
            </div>
              <ul class="data-grid__specialized-filter-list" style="padding-left: 0;">
                <li class="data-grid-filters__facet display--inline-block pos-relative data-grid-filters__remove-filter-target" style="position:relative; display: inline-block;">
                  <span class="data-grid-filters__remove-filter pos-absolute pos-top icon-filter-close" style="position:absolute; top: 0;"></span>
                  <label class="form__label" for="Name_filter">Name</label>
                  <input type="text" class="form-element__input display--inline-block" id="Name_filter" placeholder="Name contains..." name="Name_filter">
                </li>
                <li class="data-grid-filters__facet display--inline-block" style="display: inline-block">
                  <div class="form__vertical-spacer form__vertical-spacer--label" style="padding-top: 16px;"></div>
                  <button class="btn btn--apply-grid-filter">Apply filters</button>
                </li>
              </ul>
          </div>
        </div>
    </div>

Name: gridFilter

Styleguide 2.14.1
*/

@color-filter-options-panel: @theme-grey13;
@color-add-filter-link: @theme-grey12;
@color-add-filter-link-hover: @theme-green1;
@color-add-filter-link-border: @theme-grey10;


// Filters main
// -------------------

.data-grid-filters {
  border-top: 1px solid @color-border-grid;
  border-radius: @border-radius-default @border-radius-default 0 0;
  background-color: #FFFFFF;
  z-index: @z-index-data-grid-filters;
}

//Grid filter container in grid.css override
.grid .filterContainer.filterContainer--refresh {
  min-height: 70px;
}

.data-grid-filters--extra-height { //Used when filter contains form label
  height: 88px;
}

.data-grid-filters--bordered {
  border-left: 1px solid @color-border-grid;
  border-right: 1px solid @color-border-grid;
}

.data-grid-filters--border-bottom {
  border-bottom: 1px solid @color-border-grid;
}

.data-grid-filters--no-border-radius {
  border-radius: 0;
}

// Filter container
// -------------------

.data-grid__filter-container {
  height: 35px;

  padding: 0 9px;

  border-top: 1px solid @color-border-grid;
  border-bottom: 1px solid @color-border-grid;
  background-color: @theme-grey8;
}

.data-grid-filters__container {
  min-height: 70px;
}

.data-grid-filters__container--pad-left {
  padding-left: 15px;
}

// Filter facet
// -------------------

.data-grid-filters__facets-container {
  height: 40px;
  width: auto;
  padding: 15px 0 0;
  list-style: none;
}

.data-grid-filters__facets-container--pad-left {
  padding-left: 15px;
}

.data-grid-filters__facets-container--pad-bottom {
  padding-bottom: 15px;
}

.data-grid-filters__facets-container--auto-height {
  height: auto;
}

.data-grid__specialized-filter-list {
    .data-grid-filters__facet {
        margin-top: 5px;
        margin-bottom: 5px;
    }
}

.data-grid-filters__facet {
  list-style: none;
  margin-right: 10px;
  vertical-align: top;
  display: inline-block;
  position: relative;
}

.data-grid-filters__facet--no-margin-right {
  margin-right: 0;
}

.data-grid-filters__facet--dropdown {
    width: 210px;
}

.data-grid-filters__facet--multi-select {
    width: 240px;
    position: relative;
    display: inline-block;
    float: left;
}

.data-grid-filters__facet--pull-left {
    float: left;
}

.data-grid-filters__facet--margin-left {
  margin-left: 10px;
}

.data-grid-filters__facet--margin-top {
  margin-top: 8px;
}

.data-grid-filters__remove-filter {
  display: none;
  width: 10px;
  height: 10px;
  right: 5px;
  padding: 5px;

  cursor: pointer;
}

.data-grid-filters__remove-filter-target:hover > .data-grid-filters__remove-filter {
  display: block;
}

.data-grid-filters__range-input {
  width: 155px !important;
}

.data-grid-filters__to-label { //"To text" between range input
  padding: 0 5px;

  font-size: 10px;
}

//When a filter design calls for it to be in a new line, need extra padding
.data-grid-filters__new-line-facet {
  padding: 15px 0;
  clear: left;
}

.data-grid-filters__facet--criteria-button {
  padding-top: 16px;
}

// Other grid filter components
// -------------------

.data-grid-filters__add-link-chevron {
  content: '';
  margin-left: 5px;
  display: inline-block;
  width: 10px;
  height: 5px;
  position: absolute;
  top: 20px;
  .svgicon--icons-chevron-wide-gray;
}

//Add link component within filter
.data-grid-filters__add-link-popover {
  text-decoration: none;
  &:hover {
    text-decoration: none;
  }
}

.data-grid-filters__add-link {
  color: @color-add-filter-link;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px 3px 8px;
  position: relative;
  background: none !important; //Hide old style chevron sprite
  border-bottom: 1px solid @color-add-filter-link-border;
  letter-spacing: .2px;
  line-height: 20px;
  cursor: pointer;

  &:after {
    .data-grid-filters__add-link-chevron;
  }

  &:hover, &:active, &:focus {
    text-decoration: none;
    color: @color-add-filter-link-hover;
    border-bottom: 1px solid @color-add-filter-link-hover;

    &:after {
      .svgicon--icons-chevron-wide-green;
    }
  }
}

.data-grid__clear-all-filters {
  box-sizing: border-box;
  right: 10px;
  width: 15px;
  height: 15px;
  padding: 15px 15px 0 0;
  overflow: hidden;
  cursor: pointer;
  margin-top: -5px;
  .svgicon--close-gray;

  &:hover {
    .svgicon--close-gray-hover;
  }
}

.data-grid__specialized-filter-container {
    min-height: 88px;
    padding: 15px 0 15px 20px;
    border-top: 1px solid @color-border-grid;
    border-left: 5px solid @color-buildium-green;
    background-color: @color-specialize-filter-bg;
    box-shadow: inset 0 3px 6px 0 rgba(0,0,0,0.05);
    box-sizing: border-box;
}

