/* Custom dropdown for every <select> (see select.js). The trigger copies the CRM's text inputs. */
.dual-select { position: relative; display: block; width: 100%; min-width: 0; }
.dual-select > select.dual-select-native {
  position: absolute !important; left: 0; bottom: 0; width: 1px !important; height: 1px !important;
  min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
  opacity: 0 !important; pointer-events: none !important; overflow: hidden; clip-path: inset(50%);
}
.dual-select-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-width: 0;
  border: 1px solid #d7dde4; background: #f8f6f3; border-radius: 8px; padding: 11px 12px;
  color: #302b27; font: inherit; font-size: 16px; font-weight: 400; text-align: left; cursor: pointer;
}
.dual-select-trigger:focus, .dual-select-trigger.is-open { outline: 2px solid #91aac6; outline-offset: 2px; }
.dual-select-trigger:disabled { opacity: .6; cursor: not-allowed; }
.dual-select-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dual-select-chevron { flex: none; width: 16px; height: 16px; color: #5f6b78; transition: transform .15s; }
.dual-select-trigger.is-open .dual-select-chevron { transform: rotate(180deg); }

.dual-select-list {
  position: fixed; z-index: 2000; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; background: #fff; border: 1px solid #e8e3de; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(46, 63, 82, .16), 0 2px 6px rgba(46, 63, 82, .08);
  font-family: inherit; font-size: 15px; color: #302b27; outline: none;
}
.dual-select-group-title { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #808993; }
.dual-select-option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px;
  border-radius: 8px; cursor: pointer; line-height: 1.3; user-select: none;
}
.dual-select-option.is-active { background: #eef2f6; }
.dual-select-option[aria-selected="true"] { font-weight: 600; color: #2e3f52; }
.dual-select-option[aria-disabled="true"] { color: #a6adb5; cursor: not-allowed; }
.dual-select-check { flex: none; width: 16px; height: 16px; color: #2e3f52; visibility: hidden; }
.dual-select-option[aria-selected="true"] .dual-select-check { visibility: visible; }
@media (max-width: 480px) {
  .dual-select-option { min-height: 44px; padding: 12px 14px; font-size: 16px; }
  .dual-select-group-title { padding: 12px 14px 6px; }
}
