/* Shared color skin for the refined filter workspaces. Geometry and rules stay native. */
body {
    --dc-filter-surface: #fff;
    --dc-filter-ink: #334155;
    --dc-filter-border: #e2e8f0;
    --dc-filter-soft: #f1f5f9;
    --dc-filter-muted: #64748b;
    --dc-filter-marker: #718096;
    --dc-filter-selected: var(--dc-primary-bg, #29689e);
    --dc-filter-selected-ink: var(--dc-primary-text, #fff);
    --dc-filter-focus: var(--dc-primary-focus-ring, #29689e);
}
body[data-color="1E202D"] {
    --dc-filter-surface: #2b2e3b;
    --dc-filter-ink: #d5d9e2;
    --dc-filter-border: #2f3541;
    --dc-filter-soft: #343c4b;
    --dc-filter-muted: #a3afc2;
    --dc-filter-marker: #7c8798;
    --dc-filter-selected: var(--dc-primary-bg, #5867dd);
    --dc-filter-focus: #a7b8ff;
}

body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) :is(.filter-section-container, .task-gantt-toolbar, .task-gantt-filter-panel, #mobile-filter-content, .filter-toolbar-actions, .ticket-filter-toolbar-actions, .lead-contacts-search-panel, .lead-ai-filter-feedback, .proj-ai-filter-panel, .proj-ai-filter-actions, .project-tab-filter-panel) :is(.btn:not(.dropdown-item), .select2-choice, .select2-choices, input:not([type=checkbox]):not([type=radio]), select) {
    background-color: var(--dc-filter-surface) !important;
    border-color: var(--dc-filter-border) !important;
    color: var(--dc-filter-ink) !important;
    box-shadow: none !important;
}

body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) :is(.filter-section-container, .task-gantt-toolbar, .task-gantt-filter-panel, #mobile-filter-content, .filter-toolbar-actions, .ticket-filter-toolbar-actions, .lead-contacts-search-panel, .lead-ai-filter-feedback, .proj-ai-filter-panel, .proj-ai-filter-actions, .project-tab-filter-panel) :is(.btn, .select2-choice, .select2-choices, .select2-arrow) {
    background-image: none !important;
}

body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) :is(.filter-section-container, .task-gantt-toolbar, .task-gantt-filter-panel, #mobile-filter-content, .filter-toolbar-actions, .ticket-filter-toolbar-actions, .lead-contacts-search-panel, .lead-ai-filter-feedback, .proj-ai-filter-panel, .proj-ai-filter-actions, .project-tab-filter-panel) .select2-choice .select2-arrow {
    background-color: inherit !important;
    border-color: var(--dc-filter-border) !important;
}

body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) :is(.filter-section-container, .task-gantt-toolbar, .task-gantt-filter-panel, #mobile-filter-content, .filter-toolbar-actions, .ticket-filter-toolbar-actions, .lead-contacts-search-panel, .lead-ai-filter-feedback, .proj-ai-filter-panel, .proj-ai-filter-actions, .project-tab-filter-panel) .select2-chosen {
    color: var(--dc-filter-ink) !important;
    opacity: 1;
}

body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) :is(.filter-section-container, .task-gantt-toolbar, .task-gantt-filter-panel, #mobile-filter-content, .filter-toolbar-actions, .ticket-filter-toolbar-actions, .lead-contacts-search-panel, .lead-ai-filter-feedback, .proj-ai-filter-panel, .proj-ai-filter-actions, .project-tab-filter-panel) :is(.btn:not(.dropdown-item):hover, .btn:not(.dropdown-item):active, .select2-choice:hover) {
    background-color: var(--dc-filter-soft) !important;
    color: var(--dc-filter-ink) !important;
}

/* The active Select2 filter provides the focus ring for its inline search field. */
body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) :is(.filter-section-container, .task-gantt-toolbar, .task-gantt-filter-panel, #mobile-filter-content, .filter-toolbar-actions, .ticket-filter-toolbar-actions, .lead-contacts-search-panel, .lead-ai-filter-feedback, .proj-ai-filter-panel, .proj-ai-filter-actions, .project-tab-filter-panel) :is(button:focus-visible, a:focus-visible, input:focus-visible:not(.select2-container-active .select2-search-field input), select:focus-visible),
body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) .select2-container-active :is(.select2-choice, .select2-choices) {
    outline: 2px solid var(--dc-filter-focus) !important;
    outline-offset: 2px;
}

body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) :is(.filter-section-container, .task-gantt-toolbar, .task-gantt-filter-panel, #mobile-filter-content, .filter-toolbar-actions, .ticket-filter-toolbar-actions, .lead-contacts-search-panel, .lead-ai-filter-feedback, .proj-ai-filter-panel, .proj-ai-filter-actions, .project-tab-filter-panel) :is(.select2-choices .select2-search-field input, .select2-choices .select2-search-field) {
    background: transparent !important;
    color: var(--dc-filter-ink) !important;
}

body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) :is(.filter-section-container, .task-gantt-toolbar, .task-gantt-filter-panel, #mobile-filter-content, .filter-toolbar-actions, .ticket-filter-toolbar-actions, .lead-contacts-search-panel, .lead-ai-filter-feedback, .proj-ai-filter-panel, .proj-ai-filter-actions, .project-tab-filter-panel) .select2-choices .select2-search-choice {
    background-color: var(--dc-filter-soft) !important;
    background-image: none !important;
    border-color: var(--dc-filter-border) !important;
    color: var(--dc-filter-ink) !important;
    box-shadow: none !important;
}

body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) :is(.filter-section-container, .task-gantt-toolbar, .task-gantt-filter-panel, #mobile-filter-content, .filter-toolbar-actions, .ticket-filter-toolbar-actions, .lead-contacts-search-panel, .lead-ai-filter-feedback, .proj-ai-filter-panel, .proj-ai-filter-actions, .project-tab-filter-panel) :is(button:disabled, select:disabled, input:disabled),
body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) :is(.filter-section-container, .task-gantt-toolbar, .task-gantt-filter-panel, #mobile-filter-content, .filter-toolbar-actions, .ticket-filter-toolbar-actions, .lead-contacts-search-panel, .lead-ai-filter-feedback, .proj-ai-filter-panel, .proj-ai-filter-actions, .project-tab-filter-panel) .select2-container-disabled :is(.select2-choice, .select2-choices) {
    background-color: var(--dc-filter-soft) !important;
    color: var(--dc-filter-muted) !important;
}

body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) :is(.filter-section-container, .task-gantt-toolbar, .task-gantt-filter-panel, #mobile-filter-content, .filter-toolbar-actions, .ticket-filter-toolbar-actions, .lead-contacts-search-panel, .lead-ai-filter-feedback, .proj-ai-filter-panel, .proj-ai-filter-actions, .project-tab-filter-panel) .dropdown-menu,
body .dc-filter-popup.select2-drop,
body .dc-filter-popup.datepicker {
    background-color: var(--dc-filter-surface) !important;
    background-image: none !important;
    border-color: var(--dc-filter-border) !important;
    color: var(--dc-filter-ink) !important;
}

body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) :is(.filter-section-container, .task-gantt-toolbar, .task-gantt-filter-panel, #mobile-filter-content, .filter-toolbar-actions, .ticket-filter-toolbar-actions, .lead-contacts-search-panel, .lead-ai-filter-feedback, .proj-ai-filter-panel, .proj-ai-filter-actions, .project-tab-filter-panel) .dropdown-menu :is(.dropdown-item, .list-group-item, a, button:not(.btn)),
body .dc-filter-popup :is(.select2-result-label, .select2-no-results, .datepicker-custom-list .list-group-item) {
    background-color: transparent !important;
    color: var(--dc-filter-ink) !important;
}

body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) :is(.filter-section-container, .task-gantt-toolbar, .task-gantt-filter-panel, #mobile-filter-content, .filter-toolbar-actions, .ticket-filter-toolbar-actions, .lead-contacts-search-panel, .lead-ai-filter-feedback, .proj-ai-filter-panel, .proj-ai-filter-actions, .project-tab-filter-panel) .dropdown-menu :is(.dropdown-item, .list-group-item, a, button:not(.btn)):hover,
body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) :is(.filter-section-container, .task-gantt-toolbar, .task-gantt-filter-panel, #mobile-filter-content, .filter-toolbar-actions, .ticket-filter-toolbar-actions, .lead-contacts-search-panel, .lead-ai-filter-feedback, .proj-ai-filter-panel, .proj-ai-filter-actions, .project-tab-filter-panel) .dropdown-menu :is(.dropdown-item, .list-group-item, a, button:not(.btn)):focus-visible,
body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) :is(.filter-section-container, .task-gantt-toolbar, .task-gantt-filter-panel, #mobile-filter-content, .filter-toolbar-actions, .ticket-filter-toolbar-actions, .lead-contacts-search-panel, .lead-ai-filter-feedback, .proj-ai-filter-panel, .proj-ai-filter-actions, .project-tab-filter-panel) .dropdown-menu [role=menuitemcheckbox][aria-checked=true] {
    background-color: var(--dc-filter-soft) !important;
    color: var(--dc-filter-ink) !important;
}

body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) :is(.filter-section-container, .task-gantt-toolbar, .task-gantt-filter-panel, #mobile-filter-content, .filter-toolbar-actions, .ticket-filter-toolbar-actions, .lead-contacts-search-panel, .lead-ai-filter-feedback, .proj-ai-filter-panel, .proj-ai-filter-actions, .project-tab-filter-panel) .dropdown-menu [role=menuitemcheckbox] > span:first-child {
    border-color: var(--dc-filter-marker) !important;
}

body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) :is(.filter-section-container, .task-gantt-toolbar, .task-gantt-filter-panel, #mobile-filter-content, .filter-toolbar-actions, .ticket-filter-toolbar-actions, .lead-contacts-search-panel, .lead-ai-filter-feedback, .proj-ai-filter-panel, .proj-ai-filter-actions, .project-tab-filter-panel) .dropdown-menu [role=menuitemcheckbox][aria-checked=true] > span:first-child {
    background-color: var(--dc-filter-selected) !important;
    border-color: var(--dc-filter-selected) !important;
    color: var(--dc-filter-selected-ink) !important;
}

body .dc-filter-popup.select2-drop .select2-search input {
    background-color: var(--dc-filter-surface) !important;
    background-image: url("../js/select2/select2.png") !important;
    background-repeat: no-repeat !important;
    background-position: right -22px !important;
    border-color: var(--dc-filter-border) !important;
    color: var(--dc-filter-ink) !important;
}

body .dc-filter-popup.select2-drop .select2-search input.select2-active {
    background-image: url("../js/select2/select2-spinner.gif") !important;
    background-position: right center !important;
}

body .dc-filter-popup.select2-drop :is(.select2-highlighted, .select2-highlighted .select2-result-label),
body .dc-filter-popup.datepicker :is(td.active.active, span.active.active, .datepicker-custom-list .list-group-item.active) {
    background-color: var(--dc-filter-selected) !important;
    background-image: none !important;
    color: var(--dc-filter-selected-ink) !important;
    text-shadow: none !important;
}

body .dc-filter-popup.datepicker :is(td.day:hover, th.prev:hover, th.next:hover, th.datepicker-switch:hover, th.clear:hover, td span:hover),
body .dc-filter-popup.datepicker .datepicker-custom-list .list-group-item:hover {
    background-color: var(--dc-filter-soft) !important;
    color: var(--dc-filter-ink) !important;
}

body .dc-filter-popup.datepicker :is(td.old, td.new, td.disabled, td.disabled:hover, span.disabled, span.disabled:hover) {
    background-color: transparent !important;
    color: var(--dc-filter-muted) !important;
}

body .dc-filter-popup.datepicker :is(td.today, td.range) {
    background-color: var(--dc-filter-soft) !important;
    background-image: none !important;
    color: var(--dc-filter-ink) !important;
}

body .dc-filter-popup.datepicker td.active.active:hover {
    background-color: var(--dc-filter-selected) !important;
    color: var(--dc-filter-selected-ink) !important;
}

body .dc-filter-popup.datepicker::before {
    border-bottom-color: var(--dc-filter-border) !important;
    border-top-color: var(--dc-filter-border) !important;
}

body .dc-filter-popup.datepicker::after {
    border-bottom-color: var(--dc-filter-surface) !important;
    border-top-color: var(--dc-filter-surface) !important;
}

body .dc-filter-popup :is(input:focus-visible, button:focus-visible, [tabindex]:focus-visible) {
    outline: 2px solid var(--dc-filter-focus) !important;
    outline-offset: 2px;
}

body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) :is(.filter-section-container, .task-gantt-toolbar, .task-gantt-filter-panel, #mobile-filter-content, .filter-toolbar-actions, .ticket-filter-toolbar-actions, .lead-contacts-search-panel, .lead-ai-filter-feedback, .proj-ai-filter-panel, .proj-ai-filter-actions, .project-tab-filter-panel) input::placeholder {
    color: var(--dc-filter-ink) !important;
    opacity: 1;
}
body .dc-filter-popup.select2-drop .select2-disabled .select2-result-label {
    color: var(--dc-filter-muted) !important;
}

/* Selected days/months/years keep their accent when hovered or also marked today. */
body .dc-filter-popup.datepicker :is(td.active.active:not(.disabled), span.active.active:not(.disabled), .datepicker-custom-list .list-group-item.active),
body .dc-filter-popup.datepicker :is(td.active.active:not(.disabled):hover, span.active.active:not(.disabled):hover, .datepicker-custom-list .list-group-item.active:hover) {
    background-color: var(--dc-filter-selected) !important;
    background-image: none !important;
    color: var(--dc-filter-selected-ink) !important;
    text-shadow: none !important;
}
body .dc-filter-popup.datepicker td.day.disabled,
body .dc-filter-popup.datepicker td.day.disabled:hover,
body .dc-filter-popup.datepicker td.day.disabled.today:hover,
body .dc-filter-popup.datepicker td span.disabled,
body .dc-filter-popup.datepicker td span.disabled:hover {
    background-color: transparent !important;
    color: var(--dc-filter-muted) !important;
}

body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) :is(.filter-section-container, .task-gantt-toolbar, .task-gantt-filter-panel, #mobile-filter-content, .filter-toolbar-actions, .ticket-filter-toolbar-actions, .lead-contacts-search-panel, .lead-ai-filter-feedback, .proj-ai-filter-panel, .proj-ai-filter-actions, .project-tab-filter-panel) .dropdown-menu :is(.list-group-item.active:not([role=presentation]), .dropdown-item.active:not([role=menuitemcheckbox]), [aria-selected=true]) {
    background-color: var(--dc-filter-selected) !important;
    color: var(--dc-filter-selected-ink) !important;
}
body :is(#task-timesheet-table_wrapper.task-time-filters, #task-table_wrapper.task-list-filters, #kanban-filters.task-kanban-filters, #kanban-filters.lead-kanban-filters, #project-table_wrapper.project-filters, #client-table_wrapper.client-filters, #contact-table_wrapper.client-filters, #lead-table_wrapper.lead-filters, #ticket-table_wrapper.ticket-filters, .invoice-filters, .lead-contacts-filters, .lead-dashboard-filters, .project-detail-filters, .standard-filters, .project-dashboard-filters, #page-content.task-gantt-view, .all-tasks-view #mobile-filter-section, .leads-view #mobile-filter-section) :is(.filter-section-container, .task-gantt-toolbar, .task-gantt-filter-panel, #mobile-filter-content, .filter-toolbar-actions, .ticket-filter-toolbar-actions, .lead-contacts-search-panel, .lead-ai-filter-feedback, .proj-ai-filter-panel, .proj-ai-filter-actions, .project-tab-filter-panel) .select2-search-choice-focus {
    outline: 2px solid var(--dc-filter-focus) !important;
    outline-offset: 1px;
}

html[dir=rtl] body .dc-filter-popup.select2-drop .select2-search input {
    background-position: -37px -22px !important;
}
html[dir=rtl] body .dc-filter-popup.select2-drop .select2-search input.select2-active {
    background-position: left center !important;
}
