/* idi-index: search box on the entity index pages. Loaded only on a listing page whose search flag is on. */
.entity-filter .filter-group--search .filter-group__title label {
  font: inherit;
  margin: 0;
  cursor: pointer;
}
.entity-filter .filter-group--search .filter-group__title .entity-search__clear {
  font-weight: 600;
  font-size: 18px;
  color: #1f6f93 !important;
}
.entity-filter .filter-group--search .filter-group__title .entity-search__clear:hover,
.entity-filter .filter-group--search .filter-group__title .entity-search__clear:focus {
  color: #02233F !important;
}
/* Row wraps by available width, not by breakpoint: the input wants at least 240px; when input +
   gap + button do not fit, the button drops to its own line. The input's grow factor (999) takes
   nearly all spare space on a shared line; the button's grow factor (1) makes it full width once
   it is alone on its line. The input goes below 240px only if the box itself is narrower. */
.entity-filter .entity-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.entity-filter .entity-search .entity-search__input {
  flex: 999 1 240px;
  min-width: 0;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  background: #fff;
  font-size: 16px; /* 16px stops iOS from zooming into the field */
  line-height: 44px;
  box-sizing: border-box;
  box-shadow: none;
}
.entity-filter .entity-search .entity-search__input:focus {
  border-color: #2686B0;
  outline: 2px solid rgba(38, 134, 176, .25);
  outline-offset: 0;
}
/* The theme sets submit-button text with !important (button[type="submit"]:not(.w-btn), also on
   :hover), so colour, background and border are !important here: white on #02233F is ~15:1. */
.entity-filter .entity-search .entity-search__btn {
  flex: 1 0 auto;
  height: 44px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-color: #02233F !important;
  border-radius: 5px;
  background: #02233F !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 16px;
  line-height: 44px;
  cursor: pointer;
}
.entity-filter .entity-search .entity-search__btn:hover,
.entity-filter .entity-search .entity-search__btn:focus,
.entity-filter .entity-search .entity-search__btn:active {
  background: #02233F !important;
  border-color: #02233F !important;
  color: #fff !important;
  text-decoration: underline;
}
/* Focus ring. The theme has `a,button,input[type="submit"]{outline:none!important}`, so this needs
   !important too (it wins on specificity). Ring = 2px white (against the navy button) inside a 3px
   #1f6f93 outline (against the #FAFAFA box), so it shows on both. */
.entity-filter .entity-search .entity-search__btn:focus-visible {
  outline: 3px solid #1f6f93 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px #fff !important;
}

/* Results jump target (#idi-results): an empty element just before the results row.
   The theme's $us.scroll puts the target 56px from the viewport top (sticky header height in
   $us.headerSettings is 56px on every layout) and ignores scroll-margin-top, so the anchor is
   shifted up by N: the counter line then lands at 56 + N = 72px (<=767), 96px (768-1280),
   146px (>=1281, where the sticky logo hangs to ~126px). scroll-margin-top: 56px makes a native
   browser jump land the same way. */
.idi-results-anchor {
  display: block;
  position: relative;
  top: -16px;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  scroll-margin-top: 56px;
}
@media (min-width: 768px) {
  .idi-results-anchor { top: -40px; }
}
@media (min-width: 1281px) {
  .idi-results-anchor { top: -90px; }
}

/* Zero results: the clear link sits right after the message. */
.entity-row .entity-tools__counter .idi-noresults__clear {
  color: #1f6f93 !important;
  text-decoration: underline !important;
  margin-inline-start: .35em;
  white-space: nowrap;
}
.entity-row .entity-tools__counter .idi-noresults__clear:hover,
.entity-row .entity-tools__counter .idi-noresults__clear:focus {
  color: #02233F !important;
}

/* Company names: direction from their own first letter, so "P.S.GLUCK LTD." keeps its trailing dot
   at the end. Hebrew names stay RTL; alignment is unchanged (the title is centred). */
.entity-row .entity-item__title {
  unicode-bidi: plaintext;
}
@media (max-width: 767px) {
  .entity-filter .filter-group--search {
    padding: 20px;
  }
}
