.search-select {
  --search-select-height: 40px;
  position: relative;
  display: block;
  width: 100%;
  color: #111516;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.search-select-native {
  position: absolute !important;
  inset: auto auto 0 0 !important;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.search-select-trigger {
  position: relative;
  width: 100%;
  height: var(--search-select-height);
  padding: 0 34px 0 11px;
  overflow: hidden;
  border: 1px solid #aeb7ba;
  border-radius: 0;
  color: #111516;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.search-select-trigger::after {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 6px;
  height: 6px;
  border-right: 1px solid #59656b;
  border-bottom: 1px solid #59656b;
  content: "";
  transform: translateY(-70%) rotate(45deg);
}

.search-select[data-open] .search-select-trigger {
  border-color: #285bdb;
  box-shadow: inset 0 -2px #285bdb;
}

.search-select[data-open] .search-select-trigger::after {
  transform: translateY(-20%) rotate(225deg);
}

.search-select[data-disabled] .search-select-trigger {
  color: #899297;
  background: #eef1ef;
  cursor: not-allowed;
}

.search-select-trigger:focus-visible,
.search-select-search:focus-visible,
.search-select-option:focus-visible {
  outline: 2px solid #285bdb;
  outline-offset: -2px;
}

.search-select-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 4px);
  left: 0;
  width: max(100%, 220px);
  max-width: min(360px, calc(100vw - 32px));
  padding: 7px;
  border: 1px solid #68747a;
  background: #fff;
  box-shadow: 0 16px 34px rgb(16 24 28 / 18%);
}

.search-select-menu[hidden],
.search-select-empty[hidden] {
  display: none !important;
}

.search-select[data-open-up] .search-select-menu {
  top: auto;
  bottom: calc(100% + 4px);
}

.search-select-search {
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 0 6px !important;
  padding: 0 10px !important;
  border: 1px solid #aeb7ba !important;
  border-radius: 0 !important;
  color: #111516 !important;
  background: #f7f8f7 !important;
  font: 12px/1 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.search-select-list {
  display: grid;
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.search-select-option {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #e0e4e2;
  color: #273035;
  background: #fff;
  font: 12px/1.35 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

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

.search-select-option:hover,
.search-select-option:focus-visible {
  color: #fff;
  background: #20272a;
}

.search-select-option[aria-selected="true"] {
  box-shadow: inset 3px 0 #285bdb;
  color: #285bdb;
  background: #eef3ff;
  font-weight: 650;
}

.search-select-option[aria-selected="true"]:hover,
.search-select-option[aria-selected="true"]:focus-visible {
  color: #fff;
  background: #285bdb;
}

.search-select-empty {
  display: block;
  padding: 18px 10px;
  color: #748087;
  font: 10px/1.4 "SFMono-Regular", Consolas, monospace;
  text-align: center;
}

.search-field .search-select {
  --search-select-height: 38px;
}

.form-grid .search-select,
.code-contract .search-select,
.payment-control .search-select {
  --search-select-height: 42px;
}

.team-row .search-select {
  --search-select-height: 32px;
}

.team-row .search-select-trigger {
  font-size: 12px;
}

@media (max-width: 520px) {
  .search-select-menu {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .search-select-search {
    min-width: 0;
    max-width: 100%;
    font-size: 16px !important;
  }
}
