/* Shared native select treatment: CRM, drawers, dialogs and public forms. */
html body :is(select:not([size]),select[size="1"]):not([multiple]) {
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  min-height: var(--select-height, 36px);
  min-width: 0;
  max-width: 100%;
  padding-block: 7px;
  padding-inline-start: 12px;
  /* This gutter must survive compact form utilities and phone-prefix styles. */
  padding-inline-end: 38px !important;
  border: 1px solid var(--line, #d1d1d6);
  border-radius: 8px;
  outline: none;
  box-shadow: none;
  background-color: var(--elevated, var(--field, #fff));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4.5 6.25 3.5 3.5 3.5-3.5' stroke='%2386868b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  color: var(--text, var(--txt, #1a1a1a));
  font-family: inherit;
  font-weight: 400;
  line-height: 1.4;
  text-overflow: ellipsis;
  cursor: pointer;
  touch-action: manipulation;
}
.ui-field { --select-height: 40px; }
html body :is(select:not([size]),select[size="1"]):not([multiple]):dir(rtl) {
  background-position: left 12px center;
}
html body :is(select:not([size]),select[size="1"]):not([multiple]):focus-visible {
  border-color: var(--acc, #ea580c);
  outline: 2px solid var(--acc, #ea580c);
  outline-offset: 2px;
}
html body :is(select:not([size]),select[size="1"]):not([multiple]):disabled {
  opacity: .5;
  cursor: not-allowed;
}
html body select option,html body select optgroup {
  background-color: var(--elevated, var(--field, #fff));
  color: var(--text, var(--txt, #1a1a1a));
}
@media (hover:hover) and (pointer:fine) {
  html body :is(select:not([size]),select[size="1"]):not([multiple]):enabled:hover {
    border-color: var(--line-strong, #86868b);
  }
}
@media (max-width:639px), (pointer:coarse) {
  html body :is(select:not([size]),select[size="1"]):not([multiple]) {
    min-height: 44px !important;
    font-size: 16px !important;
  }
}
/* Respect the OS high-contrast palette and its native disclosure indicator. */
@media (forced-colors:active) {
  html body :is(select:not([size]),select[size="1"]):not([multiple]) {
    appearance: auto;
    background-image: none !important;
    border: 1px solid ButtonText;
    color: ButtonText;
    background-color: ButtonFace;
  }
}
