/**
 * Painel de filtros reutilizável – tema escuro, igual à referência.
 * Use junto com Views/partials/filtros.php e assets/js/filtros.js.
 */
.meu-tarefas-filtros-panel-wrap { position: relative; display: inline-block; }
.meu-tarefas-filtros-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    min-width: 640px;
    z-index: 1060;
    padding: 0;
}
.meu-tarefas-filtros-panel-wrap.open .meu-tarefas-filtros-dropdown-menu {
    display: block;
}
.meu-tarefas-filtros {
    width: 100%;
    min-width: 640px;
    min-height: 380px;
    max-height: 520px;
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    border-radius: 10px;
    padding: 16px 18px;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
}
.meu-tarefas-filtros-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.meu-tarefas-filtros-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}
.meu-tarefas-filtros-title .icon-14 { opacity: 0.7; }
.meu-tarefas-filtros-saved-btn {
    background: #2a2a2a !important;
    border: 1px solid #3a3a3a !important;
    color: #ccc !important;
    border-radius: 6px;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    padding: 8px 12px;
}
.meu-tarefas-filtros-saved-btn:hover { background: #333 !important; border-color: #4a4a4a !important; color: #fff !important; }
.meu-tarefas-filtros-saved-menu {
    background: #252525 !important;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 8px 0;
}
.meu-tarefas-filtros-saved-menu .dropdown-item { color: #e0e0e0; }
.meu-tarefas-filtros-saved-menu .dropdown-item:hover { background: #333; color: #fff; }
.meu-tarefas-filtros-select-wrap { margin-bottom: 14px; }
.meu-tarefas-filtros-type-dropdown { position: relative; }
.meu-tarefas-filtros-select-btn {
    background: #282828 !important;
    border: 1px solid #4a4a52 !important;
    color: #b0b0b0 !important;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex !important;
    align-items: center;
    width: 100%;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
}
.meu-tarefas-filtros-select-btn:hover { border-color: #5a5a62 !important; color: #fff !important; }
.meu-tarefas-filtros-select-btn .icon-14 { flex-shrink: 0; margin-left: auto; }
.meu-tarefas-filtros-type-dropdown.open .meu-tarefas-filtros-select-btn .icon-14 { transform: rotate(180deg); }
.meu-tarefas-filtros-type-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    z-index: 1060;
    background: #252525 !important;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    padding: 6px 0;
    max-height: 280px;
    overflow: hidden;
}
.meu-tarefas-filtros-type-dropdown.open .meu-tarefas-filtros-type-menu {
    display: block;
}
.meu-tarefas-filtros-type-menu-inner { overflow-y: auto; max-height: 268px; }
.meu-tarefas-filtros-type-divider { height: 1px; background: #3a3a3a; margin: 6px 0; }
.meu-tarefas-filtros-type-list { padding: 0; }
.meu-tarefas-filtros-type-search {
    background: #1e1e1e !important;
    border: 1px solid #4a4a52 !important;
    color: #fff !important;
    border-radius: 6px;
    font-size: 15px;
    width: 100%;
    padding: 8px 10px;
}
.meu-tarefas-filtros-type-search:focus { border-color: #a78bfa !important; box-shadow: 0 0 0 2px rgba(167,139,250,0.25); outline: none; }
.meu-tarefas-filtros-type-opt {
    color: #e0e0e0;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    font-size: 15px;
}
.meu-tarefas-filtros-type-opt:hover { background: #333 !important; color: #fff !important; }
.meu-tarefas-filtros-type-opt .icon-14 { color: #999; flex-shrink: 0; }
.meu-tarefas-filtros-rows {
    margin-bottom: 16px;
    flex: 1 1 auto;
    min-height: 80px;
    max-height: 280px;
    overflow-y: auto;
}
.meu-tarefas-filtros-row {
    background: #252525;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    position: relative;
    font-size: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.meu-tarefas-filtros-row-logic {
    margin-bottom: 0;
    flex-shrink: 0;
}
.meu-tarefas-filtros-row-fields {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.meu-tarefas-filtros-row-fields .form-select,
.meu-tarefas-filtros-row-fields .meu-tarefas-filtros-value-btn {
    background: #1e1e1e !important;
    border: 1px solid #4a4a52 !important;
    color: #e0e0e0 !important;
    border-radius: 6px;
    font-size: 14px;
    padding: 8px 10px;
}
.meu-tarefas-filtros-row-fields .form-select:focus,
.meu-tarefas-filtros-row-fields .meu-tarefas-filtros-value-btn:focus { border-color: #5a5a62; outline: none; }
.meu-tarefas-filtros-field { flex: 4 0 0; min-width: 0; }
.meu-tarefas-filtros-operator { flex: 2 0 0; min-width: 0; }
.meu-tarefas-filtros-value-wrap {
    position: relative;
    flex: 4 0 0;
    min-width: 0;
}
.meu-tarefas-filtros-value-wrap .meu-tarefas-filtros-value-select { width: 100% !important; }
.meu-tarefas-filtros-value-wrap .select2-container .select2-selection {
    background: #1e1e1e !important;
    border: 1px solid #4a4a52 !important;
    color: #e0e0e0 !important;
    min-height: 34px;
}
.meu-tarefas-filtros-value-wrap .select2-container .select2-selection__choice {
    background: #3a3a3a !important;
    border-color: #4a4a52 !important;
    color: #e0e0e0 !important;
}
.meu-tarefas-filtros-value-wrap .select2-container .select2-selection__placeholder,
.meu-tarefas-filtros-value-wrap .select2-container .select2-search__field {
    color: #e0e0e0 !important;
}
.meu-tarefas-filtros-value-wrap .select2-dropdown,
.meu-tarefas-select2-dropdown.select2-dropdown,
.select2-container--default .meu-tarefas-select2-dropdown {
    background: #252525 !important;
    border-color: #3a3a3a !important;
    z-index: 99999 !important;
}
.meu-tarefas-filtros-value-wrap .select2-results__option {
    color: #e0e0e0 !important;
}
.meu-tarefas-filtros-value-wrap .select2-results__option--highlighted {
    background: #333 !important;
    color: #fff !important;
}
.meu-tarefas-filtros-value-btn {
    width: 100%;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex !important;
    align-items: center;
    font-size: 14px;
}
.meu-tarefas-filtros-value-menu {
    display: none;
    position: fixed;
    min-width: 320px;
    width: max-content;
    max-width: 420px;
    margin-top: 4px;
    z-index: 99999 !important;
    background: #252525 !important;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    max-height: 220px;
    overflow-y: auto;
    padding: 6px 0;
}
.meu-tarefas-filtros-value-wrap.open .meu-tarefas-filtros-value-menu {
    display: block;
}
.meu-tarefas-filtros-value-menu .meu-tarefas-filtros-value-opt,
.meu-tarefas-filtros-value-menu .dropdown-item { color: #e0e0e0; display: block; padding: 10px 14px; text-decoration: none; cursor: pointer; font-size: 14px; border: none; background: none; width: 100%; text-align: left; }
.meu-tarefas-filtros-value-menu .meu-tarefas-filtros-value-opt:hover,
.meu-tarefas-filtros-value-menu .dropdown-item:hover { background: #333 !important; color: #fff !important; }
.meu-tarefas-filtros-value-menu .meu-tarefas-filtros-value-search {
    margin: 6px 10px 10px;
    padding: 8px 12px;
    background: #1e1e1e !important;
    border: 1px solid #4a4a52 !important;
    color: #fff !important;
    border-radius: 6px;
    width: calc(100% - 20px);
    font-size: 14px;
}
.meu-tarefas-filtros-row-remove {
    background: transparent !important;
    border: none !important;
    color: #888 !important;
    padding: 6px 8px;
    font-size: 14px;
    flex-shrink: 0;
}
.meu-tarefas-filtros-row-remove:hover { color: #e74c3c !important; }
.meu-tarefas-filtros-row-e {
    display: inline-block;
    background: #333;
    color: #999;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}
.meu-tarefas-filtros-row-fields .meu-tarefas-filtros-value-btn { min-width: 0; }
.meu-tarefas-filtros-grouped-link { margin-top: 10px; margin-left: 0; }
.meu-tarefas-filtros-add-grouped {
    font-size: 14px;
    color: #888;
    text-decoration: none;
}
.meu-tarefas-filtros-add-grouped:hover { color: #a78bfa; }
.meu-tarefas-filtros-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.meu-tarefas-filtros-add-btn {
    background: #2a2a2a !important;
    border: 1px solid #4a4a52 !important;
    color: #e0e0e0 !important;
    border-radius: 6px;
    font-size: 14px;
    padding: 10px 14px;
}
.meu-tarefas-filtros-add-btn:hover { background: #333 !important; border-color: #5a5a62 !important; color: #fff !important; }
.meu-tarefas-filtros-clear-btn { border-radius: 6px; font-size: 14px; padding: 10px 14px; }
.meu-tarefas-filtros-value-menu .tag-opt {
    padding: 8px 14px;
    margin: 2px 10px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.meu-tarefas-filtros-value-menu .tag-opt .tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* === Tema claro (Rise CRM body[data-color="F2F2F2"]) === */
body[data-color="F2F2F2"] .meu-tarefas-filtros,
body:not([data-color]) .meu-tarefas-filtros {
    background: #fff !important;
    color: #212529 !important;
    border: 1px solid #dee2e6;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
body[data-color="F2F2F2"] .meu-tarefas-filtros-title,
body:not([data-color]) .meu-tarefas-filtros-title { color: #212529 !important; }
body[data-color="F2F2F2"] .meu-tarefas-filtros-saved-btn,
body:not([data-color]) .meu-tarefas-filtros-saved-btn {
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #495057 !important;
}
body[data-color="F2F2F2"] .meu-tarefas-filtros-saved-btn:hover,
body:not([data-color]) .meu-tarefas-filtros-saved-btn:hover {
    background: #e9ecef !important;
    border-color: #ced4da !important;
    color: #212529 !important;
}
body[data-color="F2F2F2"] .meu-tarefas-filtros-saved-menu,
body:not([data-color]) .meu-tarefas-filtros-saved-menu {
    background: #fff !important;
    border-color: #dee2e6 !important;
}
body[data-color="F2F2F2"] .meu-tarefas-filtros-saved-menu .dropdown-item,
body:not([data-color]) .meu-tarefas-filtros-saved-menu .dropdown-item { color: #212529; }
body[data-color="F2F2F2"] .meu-tarefas-filtros-saved-menu .dropdown-item:hover,
body:not([data-color]) .meu-tarefas-filtros-saved-menu .dropdown-item:hover { background: #f8f9fa; color: #212529; }
body[data-color="F2F2F2"] .meu-tarefas-filtros-select-btn,
body:not([data-color]) .meu-tarefas-filtros-select-btn {
    background: #fff !important;
    border-color: #ced4da !important;
    color: #495057 !important;
}
body[data-color="F2F2F2"] .meu-tarefas-filtros-select-btn:hover,
body:not([data-color]) .meu-tarefas-filtros-select-btn:hover {
    border-color: #adb5bd !important;
    color: #212529 !important;
}
body[data-color="F2F2F2"] .meu-tarefas-filtros-type-menu,
body:not([data-color]) .meu-tarefas-filtros-type-menu {
    background: #fff !important;
    border-color: #dee2e6 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
body[data-color="F2F2F2"] .meu-tarefas-filtros-type-divider,
body:not([data-color]) .meu-tarefas-filtros-type-divider { background: #dee2e6; }
body[data-color="F2F2F2"] .meu-tarefas-filtros-type-search,
body:not([data-color]) .meu-tarefas-filtros-type-search {
    background: #fff !important;
    border-color: #ced4da !important;
    color: #212529 !important;
}
body[data-color="F2F2F2"] .meu-tarefas-filtros-type-opt,
body:not([data-color]) .meu-tarefas-filtros-type-opt { color: #212529; }
body[data-color="F2F2F2"] .meu-tarefas-filtros-type-opt:hover,
body:not([data-color]) .meu-tarefas-filtros-type-opt:hover {
    background: #f8f9fa !important;
    color: #212529 !important;
}
body[data-color="F2F2F2"] .meu-tarefas-filtros-type-opt .icon-14,
body:not([data-color]) .meu-tarefas-filtros-type-opt .icon-14 { color: #6c757d; }
body[data-color="F2F2F2"] .meu-tarefas-filtros-row,
body:not([data-color]) .meu-tarefas-filtros-row {
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
}
body[data-color="F2F2F2"] .meu-tarefas-filtros-row-fields .form-select,
body[data-color="F2F2F2"] .meu-tarefas-filtros-row-fields .meu-tarefas-filtros-value-btn,
body:not([data-color]) .meu-tarefas-filtros-row-fields .form-select,
body:not([data-color]) .meu-tarefas-filtros-row-fields .meu-tarefas-filtros-value-btn {
    background: #fff !important;
    border-color: #ced4da !important;
    color: #212529 !important;
}
body[data-color="F2F2F2"] .meu-tarefas-filtros-value-wrap .select2-container .select2-selection,
body:not([data-color]) .meu-tarefas-filtros-value-wrap .select2-container .select2-selection {
    background: #fff !important;
    border-color: #ced4da !important;
    color: #212529 !important;
}
body[data-color="F2F2F2"] .meu-tarefas-filtros-value-wrap .select2-container .select2-selection__choice,
body:not([data-color]) .meu-tarefas-filtros-value-wrap .select2-container .select2-selection__choice {
    background: #e9ecef !important;
    border-color: #dee2e6 !important;
    color: #212529 !important;
}
body[data-color="F2F2F2"] .meu-tarefas-filtros-value-wrap .select2-dropdown,
body[data-color="F2F2F2"] .meu-tarefas-select2-dropdown.select2-dropdown,
body:not([data-color]) .meu-tarefas-filtros-value-wrap .select2-dropdown,
body:not([data-color]) .meu-tarefas-select2-dropdown.select2-dropdown {
    background: #fff !important;
    border-color: #dee2e6 !important;
}
body[data-color="F2F2F2"] .meu-tarefas-filtros-value-wrap .select2-results__option,
body:not([data-color]) .meu-tarefas-filtros-value-wrap .select2-results__option { color: #212529 !important; }
body[data-color="F2F2F2"] .meu-tarefas-filtros-value-wrap .select2-results__option--highlighted,
body:not([data-color]) .meu-tarefas-filtros-value-wrap .select2-results__option--highlighted {
    background: #f8f9fa !important;
    color: #212529 !important;
}
body[data-color="F2F2F2"] .meu-tarefas-filtros-value-menu,
body:not([data-color]) .meu-tarefas-filtros-value-menu {
    background: #fff !important;
    border-color: #dee2e6 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
body[data-color="F2F2F2"] .meu-tarefas-filtros-value-menu .meu-tarefas-filtros-value-opt,
body[data-color="F2F2F2"] .meu-tarefas-filtros-value-menu .dropdown-item,
body:not([data-color]) .meu-tarefas-filtros-value-menu .meu-tarefas-filtros-value-opt,
body:not([data-color]) .meu-tarefas-filtros-value-menu .dropdown-item { color: #212529; }
body[data-color="F2F2F2"] .meu-tarefas-filtros-value-menu .meu-tarefas-filtros-value-opt:hover,
body[data-color="F2F2F2"] .meu-tarefas-filtros-value-menu .dropdown-item:hover,
body:not([data-color]) .meu-tarefas-filtros-value-menu .meu-tarefas-filtros-value-opt:hover,
body:not([data-color]) .meu-tarefas-filtros-value-menu .dropdown-item:hover {
    background: #f8f9fa !important;
    color: #212529 !important;
}
body[data-color="F2F2F2"] .meu-tarefas-filtros-value-menu .meu-tarefas-filtros-value-search,
body:not([data-color]) .meu-tarefas-filtros-value-menu .meu-tarefas-filtros-value-search {
    background: #fff !important;
    border-color: #ced4da !important;
    color: #212529 !important;
}
body[data-color="F2F2F2"] .meu-tarefas-filtros-row-remove,
body:not([data-color]) .meu-tarefas-filtros-row-remove { color: #6c757d !important; }
body[data-color="F2F2F2"] .meu-tarefas-filtros-row-e,
body:not([data-color]) .meu-tarefas-filtros-row-e {
    background: #e9ecef;
    color: #6c757d;
}
body[data-color="F2F2F2"] .meu-tarefas-filtros-add-grouped,
body:not([data-color]) .meu-tarefas-filtros-add-grouped { color: #6c757d; }
body[data-color="F2F2F2"] .meu-tarefas-filtros-add-btn,
body:not([data-color]) .meu-tarefas-filtros-add-btn {
    background: #f8f9fa !important;
    border-color: #ced4da !important;
    color: #495057 !important;
}
body[data-color="F2F2F2"] .meu-tarefas-filtros-add-btn:hover,
body:not([data-color]) .meu-tarefas-filtros-add-btn:hover {
    background: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #212529 !important;
}
