/* Filter bar */
.filter-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0 18px;
  flex-wrap: wrap;
}
.filter-bar select, .filter-bar input {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  color: var(--text-0);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: var(--font);
  outline: none;
}
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--brand); }
.filter-label { font-size: 11px; color: var(--text-2); font-weight: 500; }

/* Searchable select — visually identical to .filter-bar select, plus a search box */
.searchable-select { position: relative; display: inline-block; }
.searchable-select-trigger {
  /* Mirrors .filter-bar select so it sits flush with the native dropdowns. */
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  color: var(--text-0);
  padding: 6px 26px 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: var(--font);
  /* Matches the intrinsic content height of a native select at this font size,
     so the trigger lines up pixel-for-pixel with the neighbouring dropdowns. */
  line-height: 1.45;
  outline: none;
  cursor: pointer;
  text-align: left;
  min-width: 150px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Chevron drawn to match the native select arrow. */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 4.5 L6 8 L9.5 4.5' fill='none' stroke='%23888f9e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px 12px;
}
.searchable-select-trigger:focus,
.searchable-select.open .searchable-select-trigger { border-color: var(--brand); }
.searchable-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 60;
  min-width: 100%;
  width: 240px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px;
}
.searchable-select-search {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  color: var(--text-0);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: var(--font);
  outline: none;
  margin-bottom: 6px;
}
.searchable-select-search:focus { border-color: var(--brand); }
.searchable-select-options { max-height: 240px; overflow-y: auto; }
.searchable-select-options::-webkit-scrollbar { width: 6px; }
.searchable-select-options::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }
.searchable-select-option {
  padding: 6px 8px;
  font-size: 12px;
  color: var(--text-0);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.searchable-select-option:hover { background: var(--bg-3); }
.searchable-select-option.selected { background: var(--bg-3); color: var(--brand); }
.searchable-select-empty { padding: 8px; font-size: 12px; color: var(--text-2); }

