/* Campo pesquisável global para todos os selects simples do sistema. */
.rc-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.rc-search-select {
  position: relative;
  width: 100%;
  min-width: 0;
  color: #0f172a;
  font-family: inherit;
}

.rc-search-select-input {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  padding: 11px 44px 11px 15px !important;
  border: 1px solid rgba(14, 165, 233, 0.25) !important;
  border-radius: 15px !important;
  color: #111827 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 2px 8px rgba(15, 23, 42, 0.025) !important;
  font: inherit !important;
  font-size: 1rem !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis;
  outline: none !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
}

.rc-search-select-input::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
}

.rc-search-select-input:hover:not(:disabled) {
  border-color: rgba(14, 165, 233, 0.44) !important;
}

.rc-search-select-input:focus,
.rc-search-select.is-open .rc-search-select-input {
  border-color: #22aee8 !important;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12), inset 0 1px 0 rgba(255,255,255,.85) !important;
  background: #ffffff !important;
}

.rc-search-select.is-invalid .rc-search-select-input {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10) !important;
}

.rc-search-select.is-disabled .rc-search-select-input,
.rc-search-select-input:disabled {
  cursor: not-allowed !important;
  color: #64748b !important;
  background: #f1f5f9 !important;
  border-color: #dbe5ef !important;
  opacity: .78 !important;
}

.rc-search-select-clear {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 9px;
  width: 32px;
  height: 32px;
  padding: 0;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #2563a5;
  background: transparent;
  font-family: Arial, sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.rc-search-select-clear:hover,
.rc-search-select-clear:focus-visible {
  color: #0f4c81;
  background: #eaf6ff;
  outline: none;
}

.rc-search-select-dropdown {
  position: fixed;
  z-index: 2147482850;
  min-width: 240px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px;
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.995);
  box-shadow: 0 24px 65px rgba(15, 23, 42, 0.20), 0 0 0 1px rgba(255,255,255,.8) inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  scrollbar-width: thin;
  scrollbar-color: #7dd3fc #eef8ff;
}

.rc-search-select-dropdown[hidden] {
  display: none !important;
}

.rc-search-select-option {
  width: 100%;
  min-height: 58px;
  margin: 0 0 7px;
  padding: 12px 15px;
  display: grid;
  align-content: center;
  text-align: left;
  border: 1px solid #d8e4ef;
  border-radius: 16px;
  color: #162033;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.rc-search-select-option:last-child {
  margin-bottom: 0;
}

.rc-search-select-option strong {
  color: #162033 !important;
  font-size: .98rem;
  font-weight: 850;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.rc-search-select-option:hover,
.rc-search-select-option.is-highlighted,
.rc-search-select-option:focus-visible {
  border-color: #38bdf8;
  background: #eef9ff;
  box-shadow: 0 7px 18px rgba(14, 165, 233, .10);
  transform: translateY(-1px);
  outline: none;
}

.rc-search-select-option.is-selected {
  border-color: #0ea5e9;
  background: linear-gradient(180deg, #eaf8ff, #f3fbff);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, .08) inset;
}

.rc-search-select-option.is-selected::after {
  content: "Selecionado";
  margin-top: 4px;
  color: #0879b8;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rc-search-select-empty {
  padding: 18px 14px;
  border: 1px dashed #cbdceb;
  border-radius: 15px;
  color: #64748b;
  background: #f8fbff;
  text-align: center;
  font-weight: 700;
}

.rc-search-select.table-search-wrapper {
  min-width: min(100%, 220px);
}

.rc-search-select.table-search-wrapper .rc-search-select-input {
  min-height: 44px !important;
}

@media (max-width: 720px) {
  .rc-search-select-input {
    min-height: 50px !important;
    font-size: 16px !important; /* evita zoom automático no iOS */
  }

  .rc-search-select-dropdown {
    padding: 8px;
    border-radius: 17px;
  }

  .rc-search-select-option {
    min-height: 60px;
    padding: 13px 14px;
    border-radius: 15px;
  }
}
