/* Styling for the new filter toggle button matching admin sidebar */
#toggle-list-filter.toggle-nav-sidebar {
    /* Override potential default left positioning if the class has it */
    left: auto;
    right: 0;
    /* Ensure it sticks */
    position: sticky;
    top: 10px;
    /* Adjust based on header height */
    z-index: 1000;

    /* Mirror the arrow direction for right-side toggle */
    /* User requested inversion:
       If defaults are one way, we just swap the rotations.
    */
    transform: rotate(0deg);

    /* Ensure it's visible on top of content */
    margin-left: 0;
    margin-right: -10px;
    /* Pull it out slightly if needed, or adjust based on container padding */
}

/* Adjustments for the button appearance if classes aren't enough or need overrides */
#toggle-list-filter {
    cursor: pointer;
    /* Basic dimensions if class doesn't provide them */
    width: 20px;
    height: 48px;
    /* Typical admin toggle height */
    padding: 0;
    border: 0;
    background-color: var(--header-bg, #417690);
    /* Fallback color */
    color: var(--header-link-color, #fff);

    /* Try to use the same background image/svg as the main sidebar if possible */
    /* This usually comes from the class .toggle-nav-sidebar::before */
}

/* When filter is collapsed */
body.filter-collapsed #toggle-list-filter {
    /* Rotate to opposite */
    transform: rotate(180deg);
    right: 0;
}

/* Collapsed state for the filter sidebar */
#changelist-filter.collapsed {
    flex: 0 0 0px;
    width: 0;
    padding: 0;
    border: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.2s ease-in-out;
}

#changelist-filter {
    transition: all 0.2s ease-in-out;
}

/* Print adjustments */
@media print {
    #toggle-list-filter {
        display: none !important;
    }
}