/* Officer list filter — companion styles for list-filter.js.
 * One filter bar above every officer-facing list: search box, facet
 * dropdowns where the data earns them, a "Showing X of Y" count, Clear.
 * Colors ride the app's theme variables so Classic/Polished themes and
 * club colors carry through. */

/* Rows hidden by the filter. A class with !important (not inline style)
 * so the access-ladder's operator-visibility display management and
 * this filter never fight over the same property. */
.ofl-hidden { display: none !important; }

.ofl-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  margin: 0 0 12px;
  border: 1px solid rgba(128, 140, 152, .45);
  border-radius: var(--radius, 10px);
  background: rgba(128, 140, 152, .10);
}

.ofl-sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ofl-search-wrap {
  display: flex;
  align-items: center;
  flex: 1 1 220px;
  min-width: 180px;
  margin: 0;
}

.ofl-search {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  color: inherit;
  background: var(--surface, #fff);
  border: 1px solid rgba(128, 140, 152, .55);
  border-radius: var(--radius, 10px);
}

.ofl-search:focus-visible,
.ofl-facet:focus-visible,
.ofl-clear:focus-visible,
.ofl-empty-clear:focus-visible {
  outline: 2px solid var(--accent, #b8860b);
  outline-offset: 1px;
}

.ofl-facet-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.ofl-facet-label {
  font-size: .82em;
  font-weight: 600;
  letter-spacing: .02em;
  opacity: .85;
  white-space: nowrap;
}

.ofl-facet {
  min-height: 44px;
  padding: 8px 10px;
  font: inherit;
  color: inherit;
  background: var(--surface, #fff);
  border: 1px solid rgba(128, 140, 152, .55);
  border-radius: var(--radius, 10px);
  max-width: 210px;
}

.ofl-count {
  font-size: .85em;
  opacity: .8;
  white-space: nowrap;
  margin-left: auto;
}

.ofl-clear {
  min-height: 44px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  color: inherit;
  background: transparent;
  border: 1px solid rgba(128, 140, 152, .55);
  border-radius: var(--radius, 10px);
  cursor: pointer;
}

.ofl-clear:hover { background: rgba(128, 140, 152, .14); }

.ofl-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 4px;
  font-size: .92em;
  opacity: .9;
}

.ofl-empty-clear {
  min-height: 44px;
  padding: 6px 12px;
  font: inherit;
  font-weight: 600;
  color: var(--accent-strong, var(--accent, #b8860b));
  background: transparent;
  border: none;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 640px) {
  .ofl-count { margin-left: 0; }
  .ofl-facet { max-width: 160px; }
}
