/* Shared CRM select controls; leave listboxes and multi-selects native. */
body:not(.portal-page) {
  --select-chevron: 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 6 4 4 4-4' stroke='%23526278' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
html[data-theme="dark"] body:not(.portal-page) {
  --select-chevron: 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 6 4 4 4-4' stroke='%23bac7d9' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
body:not(.portal-page) select:not([multiple]):is(:not([size]),[size="0"],[size="1"]) {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 44px;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
  cursor: pointer;
}
body:not(.portal-page) select:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: .7;
}
@media (forced-colors: active) {
  body:not(.portal-page) select:not([multiple]):is(:not([size]),[size="0"],[size="1"]) {
    -webkit-appearance: auto;
    appearance: auto;
    padding-inline-end: 12px;
    background-image: none;
  }
}
