select[data-multiselect][hidden], select[data-searchable-select][hidden] { display: none !important; }
.filter-dropdown { position: relative; min-width: 0; width: 100%; color: #455367; font: inherit; }
.filter-dropdown summary {
    display: flex; align-items: center; gap: 8px; min-height: 42px; box-sizing: border-box;
    padding: 10px 13px; border: 1px solid #e3e0eb; border-radius: 7px;
    background: #fff; cursor: pointer; list-style: none; font-size: 13px;
}
.filter-dropdown summary::-webkit-details-marker { display: none; }
.filter-dropdown summary > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-count:empty { display: none; }
.filter-count { color: #6b7890; font-variant-numeric: tabular-nums; }
.filter-chevron { width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); flex-shrink: 0; margin: 0 2px 3px; color: #7d8ba0; }
.filter-dropdown[open] { z-index: 10; }
.filter-dropdown[open] summary { border-color: #aaa1bd; }
.filter-dropdown[open] .filter-chevron { transform: rotate(225deg); margin-bottom: 0; }
.filter-dropdown summary:focus-visible { outline: 3px solid rgba(81,5,104,.24); outline-offset: 2px; }
.filter-menu {
    position: fixed; inset: auto; margin: 0;
    display: flex; flex-direction: column; min-width: 0; max-height: 320px; overflow: hidden;
    padding: 8px; border: 1px solid #e3e0eb; border-radius: 8px; background: #fff;
    box-shadow: 0 8px 26px rgba(49,34,68,.12); box-sizing: border-box;
}
.filter-menu[popover]:not(:popover-open) { display: none; }
.filter-options { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.filter-dropdown .filter-search {
    flex-shrink: 0; width: 100%; min-width: 0; box-sizing: border-box; margin: 0 0 6px;
    padding: 9px 10px; border: 1px solid #e3e0eb; border-radius: 5px;
    background: #fff; color: #455367; font: inherit; font-size: 13px;
}
.filter-dropdown .filter-option {
    display: flex; flex-direction: row; align-items: center; gap: 9px; padding: 9px 7px;
    border-radius: 5px; margin: 0; cursor: pointer; color: #455367 !important;
    font-size: 13px !important; font-weight: 400; line-height: 1.4;
}
.filter-dropdown .filter-option[hidden] { display: none; }
.filter-option:hover, .filter-option:focus-within { background: var(--admin-accent-soft, #f4edf7); }
.filter-option.is-selected { background: var(--admin-accent-soft, #f4edf7); }
.filter-dropdown .filter-option input {
    width: 16px; height: 16px; min-height: 0; flex-shrink: 0; padding: 0; margin: 0;
    accent-color: var(--admin-accent, #510568); appearance: auto;
}
.filter-option span { min-width: 0; overflow-wrap: anywhere; }
.filter-option:has(input:disabled) { opacity: .55; cursor: default; }
.filter-empty { padding: 12px 7px; margin: 0; color: #788396; font-size: 13px; }
.filter-option-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.filter-option-text small { color: #788396; font-size: 12px; overflow-wrap: anywhere; }

.filter-selection { min-width: 0; padding: 12px; border: 1px solid #e3e0eb; border-radius: 8px; background: #faf8fc; }
.filter-selection-heading { margin: 0 0 8px; color: #455367; font-size: 12px; font-weight: 600; }
.filter-selected-list { display: flex; flex-direction: column; gap: 6px; max-height: 190px; overflow: auto; overscroll-behavior: contain; margin: 0; padding: 0; list-style: none; }
.filter-selected-list > li { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid #e3e0eb; border-radius: 6px; background: #fff; color: #455367; font-size: 13px; line-height: 1.4; }
.filter-selected-list .filter-option-text { overflow-wrap: anywhere; }
.filter-selected-list > .filter-empty { border: 0; padding: 4px 0; background: transparent; }
.filter-remove { flex-shrink: 0; min-height: 36px; padding: 6px 9px; border: 1px solid #e3e0eb; border-radius: 5px; background: #fff; color: var(--admin-accent, #510568); font: inherit; font-size: 12px; cursor: pointer; }
.filter-remove:hover { background: var(--admin-accent-soft, #f4edf7); border-color: #aaa1bd; }
.filter-remove:focus-visible, .filter-search:focus-visible { outline: 2px solid var(--admin-accent, #510568); outline-offset: 2px; }
.filter-remove:disabled { opacity: .55; cursor: default; }

.admin-body .filter-dropdown .filter-search { font-size: 13px; border-color: #e3e0eb !important; }

@media (max-width: 600px) {
    .admin-body .filter-dropdown .filter-search { font-size: 16px; }
    .filter-remove { min-height: 44px; }
}
