.ps-crm-filter-form {
    margin: 0;
    min-width: 0;
}

.ps-crm-filter-dropdown {
    position: relative;
    min-width: 220px;
    max-width: 360px;
    width: 100%;
}

.ps-crm-filter-dropdown-trigger {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    cursor: pointer;
}

.ps-crm-filter-dropdown-trigger:hover {
    border-color: rgba(34, 113, 177, 0.18);
}

.ps-crm-filter-dropdown-trigger:focus {
    outline: none;
    border-color: rgba(34, 113, 177, 0.45);
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.10);
}

.ps-crm-filter-dropdown-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.ps-crm-filter-dropdown-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.ps-crm-filter-dropdown-chevron .ps-crm-icon,
.ps-crm-filter-dropdown-chevron svg {
    width: 16px;
    height: 16px;
}

.ps-crm-filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 60;
    width: 100%;
    max-height: 280px;
    overflow: auto;
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.ps-crm-filter-dropdown-menu[hidden] {
    display: none !important;
}

.ps-crm-filter-dropdown-option {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.ps-crm-filter-dropdown-option:hover {
    background: rgba(34, 113, 177, 0.06);
}

.ps-crm-filter-dropdown-option.is-active {
    background: rgba(34, 113, 177, 0.10);
    color: #2271b1;
    font-weight: 600;
}

.ps-crm-table-widget {
    position: relative;
    z-index: 1;
}

.ps-crm-table-widget-header {
    position: relative;
    z-index: 20;
    overflow: visible;
}

.ps-crm-table-widget-header-left,
.ps-crm-table-widget-header-right,
.ps-crm-table-widget-filter-form,
.ps-crm-table-widget-filter-dropdown,
.ps-crm-filter-dropdown {
    position: relative;
    z-index: 21;
    overflow: visible;
}

.ps-crm-filter-dropdown-menu {
    position: absolute;
    z-index: 9999;
}

.ps-crm-table-widget-table-wrap,
.ps-crm-table-widget-table,
.ps-crm-table-widget-table thead,
.ps-crm-table-widget-table th {
    position: relative;
    z-index: 1;
}

.ps-crm-list-saved-filter-bar,
.ps-crm-list-saved-filter-form,
.ps-crm-list-saved-filter-dropdown {
    position: relative;
    overflow: visible;
}

.ps-crm-list-saved-filter-dropdown {
    width: min(100%, 320px);
}

.ps-crm-list-saved-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ps-crm-list-shell,
.ps-crm-list-toolbar,
.ps-crm-list-saved-filter-bar,
.ps-crm-list-saved-filter-form,
.ps-crm-list-saved-filter-dropdown,
.ps-crm-filter-dropdown {
    position: relative;
    overflow: visible;
}

.ps-crm-list-toolbar,
.ps-crm-list-saved-filter-bar {
    z-index: 30;
}

.ps-crm-list-saved-filter-dropdown,
.ps-crm-filter-dropdown {
    z-index: 31;
}

.ps-crm-filter-dropdown-menu {
    position: absolute;
    z-index: 9999;
}

.ps-crm-list-table-wrap,
.ps-crm-list-table,
.ps-crm-list-table thead,
.ps-crm-list-table th,
.ps-crm-filter-row,
[data-filter-row] {
    position: relative;
    z-index: 1;
}