/*!
    *
    * Wijmo Library 5.20261.50
    * https://developer.mescius.com/wijmo
    *
    * Copyright(c) MESCIUS inc. All rights reserved.
    *
    * Licensed under the End-User License Agreement For MESCIUS Wijmo Software.
    * us.sales@mescius.com
    * https://developer.mescius.com/wijmo/licensing
    *
    */

@use "../misc/variables";

// wijmo.grid.search

.wj-content.wj-flexgridsearch {
  // see _input.css
  vertical-align: middle; // so labeledinput.css works in IE
  display: inline-table; // so height:100% works properly even without <!DOCTYPE html> tag
  border-collapse: separate;
  // Delete the default cancel button style of the input type search
  input[type="search"]::-webkit-search-cancel-button {
    display: none;
    -webkit-appearance: none;
  }
}

.wj-flexgrid {
  .wj-cell span.wj-state-match {
    background: yellow;
    color: variables.$wj-txt; // make this readable when the cell is selected
    font-weight: bold;
    @if variables.$wj-search-highlight-txt {
      & {
        color: variables.$wj-search-highlight-txt;
      }
    }
  }
  .wj-cell span.wj-state-exact-match-space {
    white-space: pre;
  }
  @media (forced-colors: active) {
    .wj-cell span.wj-state-match {
      background: Highlight;
    }
  }
}
