/* searchable-select.css — companion to searchable-select.js */

.ss-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0.01 !important;
}

.ss-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  font: inherit;
}

.ss-control {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--sky-dim, #cbd5e1);
  border-radius: 6px;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.88rem;
  color: #1e293b;
  cursor: pointer;
  text-align: left;
}

.ss-control:focus,
.ss-control.ss-open {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
}

.ss-control.ss-disabled {
  cursor: not-allowed;
  background: #f1f5f9;
  color: #94a3b8;
}

.ss-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.ss-label.ss-placeholder {
  color: #94a3b8;
}

.ss-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #64748b;
  flex-shrink: 0;
}

.ss-panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--sky-dim, #cbd5e1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  padding: 6px;
}

.ss-search {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  font: inherit;
  font-size: 0.85rem;
  border: 1px solid var(--sky-dim, #cbd5e1);
  border-radius: 6px;
  margin-bottom: 6px;
}

.ss-search:focus {
  outline: none;
  border-color: #6366f1;
}

.ss-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}

.ss-option {
  padding: 7px 9px;
  border-radius: 5px;
  font-size: 0.86rem;
  cursor: pointer;
  color: #1e293b;
}

.ss-option.ss-active {
  background: #eef2ff;
}

.ss-option.ss-selected {
  font-weight: 600;
}

.ss-empty {
  padding: 8px 9px;
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: italic;
}
