/* Select com busca — padrão global (todo select single; opt-out: data-search="off") */
.c360-ss {
  position: relative;
  width: 100%;
}

.c360-ss-native {
  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 !important;
  pointer-events: none !important;
}

.c360-ss-control {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 11px 12px;
  text-align: left;
  border: 1px solid #dfe4eb;
  border-radius: 11px;
  background: #fff;
  color: var(--ink, #172033);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.c360-ss-control:focus {
  border-color: var(--primary, #487fff);
  box-shadow: 0 0 0 3px #eaf1ff;
}

.client-filter-grid .c360-ss-control,
.client-search-form > .client-search-field > .c360-ss .c360-ss-control {
  min-height: 38px;
  height: 38px;
  padding: 6px 12px;
  border-radius: 8px;
  border-color: #dfe4ec;
}

.client-search-form > .client-search-field > .c360-ss .c360-ss-control {
  height: 42px;
  min-height: 42px;
}

.c360-ss-control::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-left: auto;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  transition: transform .18s;
}

.c360-ss.open .c360-ss-control::after {
  transform: rotate(180deg);
}

.c360-ss-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #94a3b8;
  flex: 1;
  min-width: 0;
}

.c360-ss.has-value .c360-ss-value {
  color: #1e293b;
}

.c360-ss.is-disabled .c360-ss-control {
  opacity: .65;
  cursor: not-allowed;
  background-color: #f8fafc;
}

.c360-ss-dropdown {
  display: none;
  position: absolute;
  z-index: 1080;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  overflow: hidden;
}

.c360-ss.open .c360-ss-dropdown {
  display: block;
}

.c360-ss.drop-up .c360-ss-dropdown {
  top: auto;
  bottom: calc(100% + 4px);
}

.c360-ss-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #94a3b8;
}

.c360-ss-search-input {
  border: 0;
  outline: 0;
  flex: 1;
  font-size: .9rem;
  color: #1e293b;
  background: transparent;
  min-width: 0;
}

.c360-ss-options {
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: 240px;
  overflow-y: auto;
}

.c360-ss-option {
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: .9rem;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c360-ss-option:hover,
.c360-ss-option.active {
  background: #f1f5f9;
}

.c360-ss-option.selected {
  background: #eef0ff;
  color: #487fff;
  font-weight: 600;
}

.c360-ss-option.disabled {
  opacity: .45;
  cursor: not-allowed;
}

.c360-ss-empty {
  padding: 16px;
  text-align: center;
  color: #94a3b8;
  font-size: .85rem;
}

.vr-sheet .c360-ss-dropdown {
  z-index: 1200;
}
