/* Shared native dropdown chrome. Keep browser selection, keyboard and validation.
   Only arrow geometry is important: component background/padding shorthands must
   not restore a system arrow or erase the reserved label space on focus/hover.
   Coloured status pills and fields with their own arrow are deliberately excluded. */
:root{
  --crm-select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d647a' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
html[data-theme="dark"]{
  --crm-select-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4b8c8' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
:where(select:not([multiple]):not([size]),select[size="0"]:not([multiple]),select[size="1"]:not([multiple])):not(:where(
  .stage-select-wrap select,
  .priority-select-wrap select,
  .task-status-select-wrap select,
  .partner-status-select-wrap select,
  .lead-quick-stage select,
  .sales-inline-state select,
  .project-keyword-metric-range select
)){
  -webkit-appearance:none!important;
  appearance:none!important;
  padding-right:var(--crm-select-space,38px)!important;
  background-image:var(--crm-select-chevron)!important;
  background-repeat:no-repeat!important;
  background-position:right var(--crm-select-inset,12px) center!important;
  background-size:14px 14px!important;
}
/* Compact table cells, pagination and rich-text tools keep their existing sizes. */
:is(.task-inline-edit,.task-inline-assignee,.lead-inline-edit,.work-pager,.rich-email-toolbar,.partner-referral-table) select,
select.task-quick-workflow{
  --crm-select-space:30px;
  --crm-select-inset:8px;
}
/* A listbox is not a dropdown; preserve its native multiple-row presentation. */
@media(forced-colors:active){
  :where(select:not([multiple]):not([size]),select[size="0"]:not([multiple]),select[size="1"]:not([multiple])):not(:where(
    .stage-select-wrap select,.priority-select-wrap select,.task-status-select-wrap select,
    .partner-status-select-wrap select,.lead-quick-stage select,.sales-inline-state select,
    .project-keyword-metric-range select
  )){
    -webkit-appearance:auto!important;
    appearance:auto!important;
    background-image:none!important;
  }
}
