.searchable-select {
  position: relative;
  width: 100%;
}

.searchable-select-input {
  width: 100%;
  padding: 0.45rem 0.55rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.searchable-select-input:focus {
  outline: 2px solid rgba(139, 69, 19, 0.25);
  border-color: var(--accent);
}

.searchable-select-input::-webkit-search-cancel-button {
  cursor: pointer;
}

.searchable-select-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  max-height: 14rem;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.searchable-select-option {
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  line-height: 1.35;
}

.searchable-select-option:hover,
.searchable-select-option.is-active {
  background: rgba(139, 69, 19, 0.08);
}

.searchable-select-option mark {
  background: rgba(139, 69, 19, 0.18);
  color: inherit;
  padding: 0;
}

.searchable-select-empty {
  padding: 0.55rem 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.searchable-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.work-input.searchable-select-input,
.document-list-filters .searchable-select-input {
  width: 100%;
}

.compact-form .searchable-select,
.stack-form .searchable-select {
  max-width: 100%;
}
