/* Column visibility menu, everywhere (2026-11-22).
   DataTables' column visibility list was a cyan box of blue bubbles (app.css gave the list #00c0ef and the links the Bootstrap blue).
   Now a clean white menu with a tick box per column, matching the rest of StoreMate. Covers the old <ul> markup and the newer <div> markup. */
ul.dt-button-collection, div.dt-button-collection {
    background: #fff !important; border: 1px solid #e7e8ee !important; border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(17, 24, 39, .14) !important; padding: 6px !important; margin-top: 6px !important;
    min-width: 200px; max-height: 70vh; overflow-y: auto; z-index: 3000;
}
ul.dt-button-collection > li.dt-button, div.dt-button-collection > .dt-button, div.dt-button-collection button.dt-button {
    display: block; width: 100%; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 8px;
}
ul.dt-button-collection > li.dt-button > a, div.dt-button-collection > .dt-button, div.dt-button-collection button.dt-button {
    display: flex !important; align-items: center; gap: 10px; padding: 8px 10px !important; background: transparent !important;
    color: #374151 !important; font-size: 13.5px !important; font-weight: 500; line-height: 1.3; text-align: left; text-decoration: none !important; border-radius: 8px; cursor: pointer;
}
ul.dt-button-collection > li.dt-button > a::before, div.dt-button-collection > .dt-button::before, div.dt-button-collection button.dt-button::before {
    content: ''; flex: none; width: 16px; height: 16px; box-sizing: border-box; border: 1.5px solid #c9cdd8; border-radius: 5px; background: #fff;
}
ul.dt-button-collection > li.dt-button.active > a::before, ul.dt-button-collection > li.dt-button.dt-button-active > a::before,
div.dt-button-collection > .dt-button.active::before, div.dt-button-collection > .dt-button.dt-button-active::before, div.dt-button-collection button.dt-button.active::before {
    border-color: #4f3fd0; background: #4f3fd0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.5 2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
ul.dt-button-collection > li.dt-button > a:hover, ul.dt-button-collection > li.dt-button > a:focus,
div.dt-button-collection > .dt-button:hover, div.dt-button-collection button.dt-button:hover { background: #f5f5fa !important; color: #111827 !important; }
ul.dt-button-collection > li.dt-button:not(.active):not(.dt-button-active) > a { color: #6b7280 !important; }
/* the "Restore visibility" / "Show all" buttons, when a table has them */
ul.dt-button-collection > li.dt-button.buttons-colvisRestore > a, ul.dt-button-collection > li.dt-button.buttons-colvisGroup > a { color: #4f3fd0 !important; font-weight: 600; }
ul.dt-button-collection > li.dt-button.buttons-colvisRestore > a::before, ul.dt-button-collection > li.dt-button.buttons-colvisGroup > a::before { display: none; }
div.dt-button-background { background: transparent !important; }
/* the select-all checkbox column has no title, so its row would be empty */
ul.dt-button-collection > li.dt-button:has(> a:empty) { display: none !important; }
