/* ─── List batch actions ──────────────────────────────────────────────────────
   Used by resources/views/scripts/partials/batch_actions_js.blade.php. See documentation/batch-actions.md.
   The Batch Actions dropdown itself reuses the Violation list's global .vra-batch-* / .vra-item* rules
   (style.css) so every list looks the same.
   ⚠️ Every rule here is keyed on a .ba-* class only batch-enabled lists render, so no other table,
   button or layout rule is touched. */

/* Checkbox column (same box as the Resident list's .tbl-checkbox). */
.ba-row-check,
th .ba-select-all { margin: 0; cursor: pointer; vertical-align: middle; }
th .ba-select-all:disabled { cursor: default; }

/* Ticked rows: an inset shade so it layers over striped / danger row colours instead of replacing them. */
tr.ba-selected > td { box-shadow: inset 0 0 0 9999px rgba(32, 43, 86, .07); }

/* Menu exactly as wide as the Batch Actions button (the Violation rule forces min-width: 220px).
   The .dropdown wrapper is inline-block around the button, so 100% = the button's width. */
.ba-menu .vra-batch-menu { width: 100%; min-width: 100%; }

/* Batch Actions button: 190px minimum so the menu (= button width) fits its longest item - Addresses'
   "Export Addresses" (131px text + icon + paddings) - with ~14px+ to spare. Same size on every list.
   A page with a longer item raises this; never shrink one item. */
.ba-menu .vra-batch-toggle,
.vra-batch-cell .vra-batch-toggle { min-width: 190px; justify-content: center; }

/* Violation list Batch Actions (built in scripts/violation/index_js): same right-opening, button-wide menu.
   .vra-batch-dropdown wraps only the button, so 100% = the button's width. */
.vra-batch-cell .vra-batch-dropdown .vra-batch-menu { width: 100%; min-width: 100%; }
/* Its Generate-PDF popover: the wrapper is a zero-width .dropdown (position: relative), so measure the hidden
   anchor + popover against .vra-batch-cell (the button's box) instead, then match the Batch menu's width. */
.vra-batch-cell .bulk-gen-pdf-dropdown { position: static; }
.vra-batch-cell .bulk-gen-pdf-dropdown.gen-pdf-dropdown .dropdown-menu.vra-bulk-pdf-popover { width: 100%; min-width: 100% !important; }

/* List pages sit in .notification-list-table, whose rule zeroes the menu padding, so the first / last item's hover
   background reached past the 10px rounded corners. Clip the items to the menu's shape. */
.ba-menu .vra-batch-menu,
.vra-batch-cell .vra-batch-dropdown .vra-batch-menu { overflow: hidden; }

/* Item icon colour the Violation menu has no modifier for. */
.ba-menu .vra-item-icon--export { color: #16a34a; }
