/* One select treatment for page controls and their portaled menus.
   The #app/body alternatives outrank legacy #app rules while also covering
   menus owned by the document body or a native dialog. */
html[data-theme] :is(#app,body) .helm-select-adapter {
  position: relative;
  min-width: 0;
  max-width: 100%;
}
html[data-theme] :is(#app,body) .helm-native-select-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
html[data-theme] :is(#app,body) .custom-select-trigger.helm-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px !important;
  padding: 10px 12px !important;
  border: 1px solid #7b909d !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #173f52 !important;
  box-shadow: none !important;
  text-align: left;
  text-transform: none;
  font: 500 14px/1.45 var(--helm-body-font,"Segoe UI",Arial,sans-serif) !important;
  cursor: pointer;
  transform: none !important;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
html[data-theme] :is(#app,body) .custom-select-trigger.helm-select-trigger > span {
  color: #173f52 !important;
}
html[data-theme] :is(#app,body) .custom-select-trigger.helm-select-trigger [data-custom-select-value] {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
html[data-theme] :is(#app,body) .custom-select-trigger.helm-select-trigger .custom-select-chevron {
  flex: 0 0 auto;
  color: #173f52 !important;
  font-size: 13px;
}
html[data-theme] :is(#app,body) .custom-select-trigger.helm-select-trigger:hover:not(:disabled),
html[data-theme] :is(#app,body) .custom-select-trigger.helm-select-trigger[aria-expanded="true"] {
  border-color: #a98132 !important;
  background: #fff !important;
  box-shadow: 0 0 0 1px #d8c18d !important;
}
html[data-theme] :is(#app,body) .custom-select-trigger.helm-select-trigger:focus-visible,
html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu .custom-select-search:focus-visible {
  outline: 3px solid #287b9b !important;
  outline-offset: 2px;
  border-color: #173f52 !important;
}
html[data-theme] :is(#app,body) .custom-select-trigger.helm-select-trigger:disabled {
  background: #f0f3f5 !important;
  border-color: #c0cbd1 !important;
  box-shadow: none !important;
  opacity: .65;
  cursor: not-allowed;
}
html[data-theme] :is(#app,body) .custom-select-trigger.helm-select-trigger[aria-invalid="true"] {
  border-color: #963a36 !important;
}
html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu {
  display: grid;
  grid-template-rows: minmax(0,1fr);
  gap: 0;
  max-width: calc(100vw - 24px);
  max-height: var(--custom-select-menu-max-height,min(420px,calc(100dvh - 24px))) !important;
  padding: 6px !important;
  overflow: hidden;
  color: #173f52 !important;
  background: #fff !important;
  border: 1px solid #bdcbd3 !important;
  border-top: 2px solid #bc9a54 !important;
  border-radius: 6px !important;
  box-shadow: 0 10px 28px rgb(18 55 72 / 16%) !important;
  text-align: left;
  font-family: var(--helm-body-font,"Segoe UI",Arial,sans-serif);
  color-scheme: light;
}
html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu.is-searchable-menu {
  grid-template-rows: auto minmax(0,1fr);
}
html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu .custom-select-options {
  display: grid;
  gap: 3px;
  min-height: 0;
  max-height: calc(var(--custom-select-menu-max-height,420px) - 16px) !important;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #9aadb8 #f0f4f6;
}
html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu.is-searchable-menu .custom-select-options {
  max-height: calc(var(--custom-select-menu-max-height,420px) - 80px) !important;
}
html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu .custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 44px !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: #fff !important;
  color: #173f52 !important;
  box-shadow: none !important;
  font: 400 15px/1.45 var(--helm-body-font,"Segoe UI",Arial,sans-serif) !important;
  text-align: left;
  text-transform: none;
  white-space: normal !important;
  cursor: pointer;
  transform: none !important;
  transition: background-color 100ms ease, color 100ms ease;
}
html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu .custom-select-option > span {
  color: inherit !important;
}
html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu .custom-select-option > span:first-child {
  min-width: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal !important;
  text-overflow: clip;
}
html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu .custom-select-option:is(:hover,:focus-visible,.is-focused):not(:disabled) {
  background: #f7f0e0 !important;
  color: #173f52 !important;
}
html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu .custom-select-option:is(.is-selected,[aria-selected="true"]):not(:disabled) {
  background: #123748 !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 #e1c48b !important;
}
html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu .custom-select-option:focus-visible {
  outline: 2px solid #287b9b !important;
  outline-offset: -2px;
}
html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu .custom-select-option .custom-select-check {
  flex: 0 0 18px;
  color: #e1c48b !important;
  font-weight: 700;
  text-align: right;
}
html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu .custom-select-option.is-selected:focus-visible {
  outline-color: #e1c48b !important;
}
html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu .custom-select-option:disabled {
  background: #f0f3f5 !important;
  color: #667b87 !important;
  box-shadow: none !important;
  opacity: .65;
  cursor: not-allowed;
}
html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu .custom-select-search-shell {
  padding: 0 0 7px;
  margin: 0 0 4px;
  background: #fff !important;
  border-bottom: 1px solid #dbe4e9;
}
html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu .custom-select-search {
  width: 100%;
  min-width: 0;
  min-height: 44px !important;
  padding: 9px 11px !important;
  border: 1px solid #7b909d !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #173f52 !important;
  box-shadow: none !important;
  font: 400 16px/1.45 var(--helm-body-font,"Segoe UI",Arial,sans-serif) !important;
}
html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu .custom-select-search::placeholder {
  color: #536d7e !important;
  opacity: 1;
}
html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu .custom-select-empty {
  padding: 12px;
  border-radius: 3px;
  color: #536d7e !important;
  background: #fff !important;
  font: 400 14px/1.5 var(--helm-body-font,"Segoe UI",Arial,sans-serif);
}
html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu[hidden],
html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu [hidden] {
  display: none !important;
}
html[data-theme] :is(#app,body) .helm-select-error {
  margin: 6px 0 0;
  color: #963a36 !important;
  font: 500 13px/1.5 var(--helm-body-font,"Segoe UI",Arial,sans-serif);
}
html[data-theme] :is(#app,body) .horizon-home-field .input-shell {
  margin: 0;
}
html[data-theme] :is(#app,body) .horizon-home-field .custom-select-trigger.helm-select-trigger {
  min-height: 50px !important;
}
@media (max-width: 780px), (pointer: coarse) {
  html[data-theme] :is(#app,body) .custom-select-trigger.helm-select-trigger {
    font-size: 16px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme] :is(#app,body) .custom-select-trigger.helm-select-trigger,
  html[data-theme] :is(#app,body) .custom-select-menu.helm-select-menu .custom-select-option {
    transition: none !important;
  }
}
