/* Force a persistent, visible scrollbar on the wide Spese/Gestione insoluti
   tables. macOS defaults to overlay scrollbars that only render while
   actively scrolling, so #changelist-form .results (overflow-x: auto in
   changelists.css) gave no visual cue it could scroll at all. Styling
   ::-webkit-scrollbar opts Safari/Chrome out of overlay mode for this
   element specifically. */
#changelist-form .results {
    scrollbar-width: thin;
}

#changelist-form .results::-webkit-scrollbar {
    height: 10px;
}

#changelist-form .results::-webkit-scrollbar-track {
    background: transparent;
}

#changelist-form .results::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

/* Collapsible changelist filter panel on Spese/Gestione insoluti. Unlike
   #nav-sidebar, Django admin ships no toggle for #changelist-filter; the
   button is injected by gestionale.js only on pages that render it. */
#toggle-changelist-filter {
    float: right;
    margin: 0 0 8px;
    padding: 4px 10px;
    cursor: pointer;
    background: var(--darkened-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--body-quiet-color);
    font-size: 0.8125rem;
}

.filter-collapsed #changelist-filter {
    display: none;
}

.filter-collapsed > div {
    max-width: 100% !important;
}
