/* Digital Holding Club dropdown for every <select> (see dhc-select.js). Uses the dhc.css tokens with fallbacks so it
   also looks right on the Odoo pages with the DHC header. */
.dhs { position: relative; display: block; width: 100%; min-width: 0; }
.dhs-native { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; opacity: 0 !important;
    pointer-events: none !important; z-index: -1 !important; margin: 0 !important; }
.dhs-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; margin: 0;
    padding: 8px 14px; background: #fff; border: 1.5px solid var(--line, #E3DEF3); border-radius: 12px;
    color: var(--navy, #101127); font-family: var(--font, 'Inter', system-ui, sans-serif); font-size: .95rem; line-height: 1.3;
    text-align: start; cursor: pointer; box-shadow: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.dhs-btn:hover { border-color: var(--line-strong, #D6D0EA); }
.dhs-btn:focus-visible, .dhs.is-open .dhs-btn { border-color: var(--purple, #8500C8); box-shadow: 0 0 0 4px var(--lav, #F3EDFF); outline: 0; }
.dhs-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dhs.is-empty .dhs-label { color: #8f8ca6; }
.dhs-chev { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--purple, #8500C8); stroke-width: 2.2; stroke-linecap: round;
    stroke-linejoin: round; transition: transform .15s; }
.dhs.is-open .dhs-chev { transform: rotate(180deg); }
.dhs.is-disabled .dhs-btn { background: var(--card, #F8F7FC); color: var(--muted, #5A5B76); cursor: not-allowed; }
.dhs.is-disabled .dhs-chev { stroke: #b7b2ce; }
.dhs.is-invalid .dhs-btn { border-color: #D92D20; box-shadow: 0 0 0 4px #FEE4E2; }

/* the list (attached to <body>, positioned under / above the button) */
.dhs-panel { position: fixed; z-index: 2147483000; display: flex; flex-direction: column; max-width: calc(100vw - 16px);
    background: #fff; border: 1px solid #e6e1f5; border-radius: 16px; box-shadow: 0 16px 40px rgba(40, 20, 90, .18); padding: 8px;
    font-family: var(--font, 'Inter', system-ui, sans-serif); animation: dhs-in .12s ease-out; }
.dhs-panel[hidden] { display: none; }
@keyframes dhs-in { from { opacity: 0; transform: translateY(-4px); } }
.dhs-search { flex: none; width: 100%; margin: 0 0 6px; padding: 9px 12px; border: 1.5px solid var(--line, #E3DEF3); border-radius: 10px;
    font: inherit; font-size: .92rem; color: var(--navy, #101127); background: #fff; }
.dhs-search[hidden] { display: none; }
.dhs-search:focus { border-color: var(--purple, #8500C8); outline: 0; box-shadow: 0 0 0 3px var(--lav, #F3EDFF); }
.dhs-list { list-style: none; margin: 0; padding: 0; overflow: auto; outline: 0; min-height: 0; }
.dhs-list li { padding: 9px 12px; border-radius: 10px; cursor: pointer; font-size: .94rem; line-height: 1.35; color: #1b1530; }
.dhs-list li[hidden] { display: none; }
.dhs-list li.is-act { background: #f3eefe; color: #7a1fd1; }
.dhs-list li.is-sel { font-weight: 700; color: var(--purple, #8500C8); }
.dhs-list li.is-sel::after { content: "✓"; float: right; margin-left: 12px; }
[dir="rtl"] .dhs-list li.is-sel::after { float: left; margin: 0 12px 0 0; }
.dhs-list li.is-ph { color: #8f8ca6; }
.dhs-list li.is-dis { opacity: .45; cursor: not-allowed; }
.dhs-list li.dhs-group { cursor: default; font-size: .74rem; font-weight: 700; color: var(--muted, #5A5B76); text-transform: uppercase;
    letter-spacing: .05em; padding: 10px 12px 4px; }
.dhs-empty { margin: 6px 12px; color: var(--muted, #5A5B76); font-size: .9rem; }
.dhs-empty[hidden] { display: none; }
