/* S187: one compact S31-style filter toolbar for company lookup.
   Reuses exact s31.css from "Я предлагаю". Scoped to the result search form. */
.s176-page-form .s187-toolbar {
  display:flex;align-items:center;justify-content:space-between;
  gap:12px 18px;margin:18px 0 0;padding:17px 0 0;
  min-height:42px;border-top:1px solid #edf1f7;
}
.s176-page-form .s187-pills {
  display:flex;align-items:center;flex-wrap:wrap;gap:8px;
  min-width:0;
}
.s176-page-form .s187-toolbar .s31-chip {position:relative;min-width:0}
.s176-page-form .s187-toolbar.s187-enhanced:not(.s187-expanded)
 .s187-pills > .s187-secondary:not(.is-active) {display:none}
.s176-page-form .s187-toolbar .s31-pill {min-height:40px;max-width:100%}
.s176-page-form .s187-toolbar .s31-selected {
  max-width:150px;overflow:hidden;text-overflow:ellipsis;
}
.s176-page-form .s187-toolbar .s31-popover {
  z-index:350;max-height:min(410px,calc(100dvh - 30px));
  overflow-y:auto;overscroll-behavior:contain;
}
.s176-page-form .s187-toolbar .s31-results {margin-left:auto}
.s176-page-form .s187-toolbar .s31-jump {
  text-decoration:none;color:#263449;
}
.s176-page-form .s187-toolbar .s31-jump:hover {color:#255fca}
.s176-page-form .s187-toolbar .s31-option:has(input:checked) {
  background:#edf3ff;color:#255fca;font-weight:600;
}
.s176-page-form .s187-hint {
  color:#6e7d94;font-size:12px;line-height:1.55;
  margin:10px 0 0;
}
.s176-page-form .s187-toolbar .s31-pill:focus-visible,
.s176-page-form .s187-toolbar .s31-apply:focus-visible {
  outline:2px solid #2567f9;outline-offset:3px;
}
.s176-page-form .s187-enhanced .s187-chip .s31-apply {display:none}
.s176-page-form .s176-support {margin-top:12px;padding-top:11px}
@media(max-width:900px) {
 .s176-page-form .s187-toolbar{align-items:flex-start;flex-direction:column;gap:9px}
 .s176-page-form .s187-toolbar .s31-results{margin:0}
 /* Mirror S31: one swipeable filter strip, not four rows of controls. */
 .s176-page-form .s187-enhanced .s187-pills{
  flex-wrap:nowrap;overflow-x:auto;overflow-y:clip;
  max-width:100%;width:100%;box-sizing:border-box;
  padding:2px 2px 6px;scrollbar-width:thin;
  overscroll-behavior-x:contain;
 }
 .s176-page-form .s187-enhanced .s187-pills .s31-chip{flex:0 0 auto}
}
@media(max-width:560px) {
 .s176-page-form .s187-toolbar{padding-top:14px;margin-top:14px}
 .s176-page-form .s187-pills{gap:7px}
 .s176-page-form .s187-toolbar .s31-pill{
  min-height:40px;padding:0 11px;font-size:12px;line-height:1.25;
 }
 .s176-page-form .s187-toolbar .s31-popover {
  max-width:calc(100vw - 24px);min-width:min(240px,calc(100vw - 24px));
 }
 .s176-page-form .s187-hint{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
 .s176-page-form .s187-toolbar .s31-pill,
 .s176-page-form .s187-toolbar .s31-chevron{transition:none}
}


/* S188 parity: search shell ends BEFORE the same S31 toolbar as offer mode. */
.s176-page-form.s176-form {
 border:0;background:transparent;box-shadow:none;border-radius:0;
 padding:0;margin:0;max-width:100%;overflow:visible;
}
.s176-page-form .s188-search-card {
 box-sizing:border-box;width:100%;padding:28px;
 border:1px solid #dbe5f5;border-radius:20px;background:#fff;
 box-shadow:0 22px 60px -38px rgba(28,77,164,.30);
}
.s176-page-form .s187-toolbar {
 margin:32px 0 0;padding:0;border-top:0;min-height:44px;
 flex-wrap:nowrap;align-items:center;
}
.s176-page-form .s187-toolbar .s31-results {
 margin-left:auto;display:flex;align-items:center;gap:13px;white-space:nowrap;
}
.s176-page-form .s187-toolbar .s140-pro-switch {flex:0 0 auto}
.s176-page-form .s187-hint {margin-top:8px}
.s176-page-form .s176-support {margin-top:10px;padding-top:8px;border-top:0}
.s176-page-form .s188-pro-link {
 background:none;color:#1658ba;border:0;text-decoration:underline;
 font:inherit;padding:2px 4px;cursor:pointer;
}
@media(max-width:1100px){
 .s176-page-form .s187-toolbar{align-items:flex-start;flex-wrap:wrap}
 .s176-page-form .s187-toolbar .s31-results{margin-left:auto}
}
@media(max-width:780px){
 .s176-page-form .s187-toolbar{flex-direction:column;align-items:stretch;gap:8px}
 .s176-page-form .s187-toolbar .s31-results{
  width:100%;margin:0;justify-content:space-between;flex-wrap:wrap;
 }
}
@media(max-width:560px){
 .s176-page-form .s188-search-card{padding:20px 17px 17px;border-radius:18px}
 .s176-page-form .s187-toolbar{margin-top:22px;padding-top:0}
 .s176-page-form .s187-toolbar .s31-results{white-space:normal;gap:8px}
 .s176-page-form .s187-toolbar .s140-pro-switch{margin:0;width:min(100%,325px)}
}
