/* boston.exchange tables: the look of every wpDataTables table (includes/tables.php, assets/bx-tables.js).
   Colours come from the palette tokens, so light and dark (<html data-theme>) both work. Plugin CSS is not edited. */
.bx-table { --bx-stick: 0px; --bx-h1: 46px; margin: 1.5em 0; width: 100%; max-width: 100%; }
.bx-table .wpdt-c, .bx-table .wpDataTablesWrapper { width: 100%; max-width: 100%; background: transparent; box-shadow: none; border: 0; padding: 0; overflow: visible !important; }
.bx-table .bx-tbl-hint { margin: 0 0 .5em; font-size: .875rem; color: var(--bx-muted); }
.bx-table caption { caption-side: top; text-align: left; padding: 0 0 .6em; font-size: .9375rem; line-height: 1.5; color: var(--bx-muted); }

/* the table */
.bx-table table.wpDataTable { width: 100% !important; border-collapse: separate; border-spacing: 0; table-layout: auto; font-family: var(--theme-font-stack-default); font-size: .9375rem; line-height: 1.45; color: var(--theme-palette-color-3); background: var(--theme-palette-color-8); margin: 0 !important; }
.bx-table table.wpDataTable.nowrap, .bx-table table.wpDataTable td, .bx-table table.wpDataTable th { white-space: normal; }
.bx-table table.wpDataTable td { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--theme-palette-color-5); color: var(--theme-palette-color-3); background: transparent; vertical-align: top; font-variant-numeric: tabular-nums; }
.bx-table table.wpDataTable tbody tr:hover td { background: var(--theme-palette-color-6); }
.bx-table table.wpDataTable td a { color: var(--theme-palette-color-1); text-decoration: underline; text-underline-offset: 2px; }
.bx-table table.wpDataTable td.numdata { text-align: right !important; white-space: nowrap; }
.bx-table .bx-sub { color: var(--bx-muted); font-size: .875rem; }

/* header: one row, the whole cell sorts (cursor, aria-sort set by bx-tables.js). No per-column filters (owner, Nov 22 late).
   Headers wrap to 2-3 lines; no always-visible sort icon: only the sorted column shows a small arrow inline after its text. */
.bx-table table.wpDataTable thead th { font: 600 .9375rem/1.3 var(--theme-font-stack-default) !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--theme-palette-color-4) !important; background: var(--theme-palette-color-8) !important; border: 0 !important; padding: 10px 12px; text-align: left; vertical-align: bottom; white-space: normal !important; overflow-wrap: break-word; hyphens: auto; }
.bx-table table.wpDataTable thead th.numdata { text-align: right; }
.bx-table table.wpDataTable thead tr:first-child th { cursor: pointer; position: relative; user-select: none; box-shadow: inset 0 -2px 0 var(--theme-palette-color-5); background-image: none !important; }
.bx-table table.wpDataTable thead tr:first-child th:hover { background: var(--theme-palette-color-6) !important; }
.bx-table table.wpDataTable thead tr:nth-child(2) { display: none !important; }
.bx-table table.wpDataTable thead th:focus-visible { outline: 3px solid var(--theme-palette-color-1); outline-offset: -3px; }
.bx-table table.wpDataTable thead th::before { content: none !important; }
.bx-table table.wpDataTable thead th::after { content: none !important; background: none !important; -webkit-mask: none !important; mask: none !important; position: static !important; display: inline !important; width: auto !important; height: auto !important; margin: 0 !important; border: 0 !important; transform: none !important; opacity: 1 !important; }
.bx-table table.wpDataTable thead tr:first-child th.sorting_asc::after { content: "\00a0\25B2" !important; font-size: .7em; color: var(--theme-palette-color-1); }
.bx-table table.wpDataTable thead tr:first-child th.sorting_desc::after { content: "\00a0\25BC" !important; font-size: .7em; color: var(--theme-palette-color-1); }
/* even columns: fixed layout, equal units (text columns 1.5), set by bx-tables.js; the table never gets narrower than 6.5rem per unit and
   scrolls sideways inside .bx-scroll instead */
.bx-js .bx-table table.wpDataTable { table-layout: fixed; }
.bx-table .bx-scroll { width: 100%; max-width: 100%; overflow-x: auto; overflow-y: visible; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--bx-muted) transparent; }
.bx-table .bx-scroll.is-scrolling { background: linear-gradient(to right, var(--theme-palette-color-8) 30%, transparent), linear-gradient(to left, var(--theme-palette-color-8) 30%, transparent) 100% 0, linear-gradient(to right, rgba(0,0,0,.18), transparent) 0 0, linear-gradient(to left, rgba(0,0,0,.18), transparent) 100% 0; background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll; }
.bx-table .bx-scroll::-webkit-scrollbar { height: 12px; }
.bx-table .bx-scroll::-webkit-scrollbar-thumb { background: var(--bx-muted); border-radius: 6px; border: 3px solid var(--theme-palette-color-8); }
.bx-table .bx-scroll:focus-visible { outline: 3px solid var(--theme-palette-color-1); outline-offset: 2px; }

/* global search (long tables only) */
.bx-table .dataTables_filter { order: 1; margin: 0 0 0 auto; float: none; font-size: .9375rem; color: var(--theme-palette-color-3); }
.bx-table .dataTables_filter label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.bx-table .dataTables_filter input, .bx-table .dataTables_length select { box-sizing: border-box; min-height: 36px; width: min(320px, 100%); padding: 4px 10px; margin: 0; font: 400 .9375rem/1.3 var(--theme-font-stack-default); color: var(--theme-palette-color-4); background: var(--theme-palette-color-7); border: 1px solid var(--bx-muted); border-radius: 6px; box-shadow: none; }
.bx-table .dataTables_length select { width: auto; min-width: 72px; }
.bx-table .dataTables_filter input::placeholder { color: var(--bx-muted); opacity: 1; }
.bx-table .dataTables_filter input:focus-visible, .bx-table .dataTables_length select:focus-visible, .bx-table button:focus-visible, .bx-table .paginate_button:focus-visible { outline: 3px solid var(--theme-palette-color-1); outline-offset: 1px; }
.bx-table:not(.bx-table-long) .dataTables_filter { display: none; }

/* top bar: rows per page, clear filters; bottom: info + pager */
.bx-table .wpDataTablesWrapper { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.bx-table .wpDataTablesWrapper > table, .bx-table .wpDataTablesWrapper > .bx-scroll { flex: 0 0 100%; order: 3; min-width: 0; }
.bx-table .dt-buttons { order: 1; margin: 0; float: none; }
.bx-table .dataTables_length { order: 1; margin: 0; float: none; font-size: .9375rem; color: var(--theme-palette-color-3); }
.bx-table .dataTables_length label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.bx-table .dataTables_length select { width: auto !important; min-width: 72px; }
.bx-table .wpDataTablesWrapper > .clear { display: none; }
.bx-table .dt-button, .bx-table button.wdt-clear-filters { min-height: 36px; padding: 4px 14px; font: 600 .9375rem/1.3 var(--theme-font-stack-default); color: var(--theme-palette-color-1); background: transparent; border: 1px solid var(--theme-palette-color-1); border-radius: 6px; cursor: pointer; }
.bx-table .dt-button:hover { background: var(--theme-palette-color-6); }
.bx-table .dataTables_info { order: 4; margin: 0; padding: 0; font-size: .9375rem; color: var(--bx-muted); }
.bx-table .dataTables_paginate { order: 5; margin: 0 0 0 auto; padding: 0; float: none; display: flex; flex-wrap: wrap; gap: 4px; }
.bx-table .dataTables_paginate .paginate_button, .bx-table .dataTables_paginate span a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 4px 10px; margin: 0; font: 600 .9375rem/1 var(--theme-font-stack-default); color: var(--theme-palette-color-1) !important; background: transparent !important; border: 1px solid var(--theme-palette-color-5) !important; border-radius: 6px; cursor: pointer; text-decoration: none; }
.bx-table .dataTables_paginate .paginate_button:hover { background: var(--theme-palette-color-6) !important; }
.bx-table .dataTables_paginate .paginate_button.current, .bx-table .dataTables_paginate .current { color: var(--theme-button-text-initial-color, #fff) !important; background: var(--theme-palette-color-1) !important; border-color: var(--theme-palette-color-1) !important; }
.bx-table .dataTables_paginate .paginate_button.disabled { opacity: .45; cursor: default; }
.bx-table .dataTables_paginate span { display: contents; }
.bx-table .dataTables_paginate .ellipsis { border: 0 !important; min-width: 0; }
.bx-table .wpDataTablesWrapper .paginate_button { box-shadow: none; }
.bx-table tfoot { display: none; }
.bx-table .wdt-table-loader, .bx-table .wdt-timeline-item { display: none !important; }

/* short tables (20 rows or fewer, or all shown): no pager and no rows-per-page choice */
.bx-table:not(.bx-table-long) .dataTables_length, .bx-table:not(.bx-table-long) .dataTables_paginate { display: none; }


/* without JavaScript: the whole table, no loader, no filters */
html:not(.bx-js) .bx-table .wpDataTablesWrapper { overflow-x: auto; }
html:not(.bx-js) .bx-table table.wpDataTable { display: table !important; visibility: visible !important; }
html:not(.bx-js) .bx-table table.wpDataTable thead tr:nth-child(2) { display: none; }
html:not(.bx-js) .bx-table table.wpDataTable thead th { padding-right: 12px; }
html:not(.bx-js) .bx-table table.wpDataTable thead tr:first-child th::after { content: none !important; }
.bx-table table.wpDataTable.wdt-no-display { display: table; }

@media (prefers-reduced-motion: no-preference) { .bx-table table.wpDataTable thead th, .bx-table table.wpDataTable td { transition: background-color .12s; } }
@media print { .bx-table .dt-buttons, .bx-table .dataTables_length, .bx-table .dataTables_paginate, .bx-table thead tr:nth-child(2) { display: none; } }

/* Colour contrast, both modes: the plugin's "light" skin paints striped, sorted and hovered cells with fixed light greys
   (#f5f5f5, #eee, #e8e8e8) at a higher specificity than the rules above, so light text sat on light grey in dark mode (axe: ~350
   failures on the fire article). Every cell colour below comes from the per-mode tokens; text on each is >= 7:1 in both modes. */
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper table.wpDataTable tbody tr.even td { background-color: var(--theme-palette-color-8); color: var(--theme-palette-color-3); }
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper table.wpDataTable tbody tr.odd td { background-color: color-mix(in srgb, var(--theme-palette-color-3) 6%, var(--theme-palette-color-8)); color: var(--theme-palette-color-3); }
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper table.wpDataTable tbody tr.even td.sorting_1 { background-color: color-mix(in srgb, var(--theme-palette-color-3) 5%, var(--theme-palette-color-8)); }
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper table.wpDataTable tbody tr.odd td.sorting_1 { background-color: color-mix(in srgb, var(--theme-palette-color-3) 9%, var(--theme-palette-color-8)); }
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper table.wpDataTable tbody tr.odd:hover > td,
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper table.wpDataTable tbody tr.even:hover > td,
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper table.wpDataTable tbody tr.odd:hover > td.sorting_1,
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper table.wpDataTable tbody tr.even:hover > td.sorting_1 { background-color: color-mix(in srgb, var(--theme-palette-color-1) 16%, var(--theme-palette-color-8)); }
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper table.wpDataTable tbody tr.selected > td { background-color: color-mix(in srgb, var(--theme-palette-color-1) 22%, var(--theme-palette-color-8)); }
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper table.wpDataTable td a { color: var(--theme-palette-color-1); }
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper table.wpDataTable td .bx-sub { color: var(--bx-muted); }
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper table.wpDataTable thead th.sorting_asc,
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper table.wpDataTable thead th.sorting_desc,
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper table.wpDataTable thead th.sorting:hover { background-color: var(--theme-palette-color-6) !important; color: var(--theme-palette-color-4) !important; }
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper .dataTables_info,
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper .dataTables_length,
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper .dataTables_length label { color: var(--theme-palette-color-3); background: transparent; }
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper .dataTables_info { color: var(--bx-muted); }
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper .dataTables_paginate .paginate_button.disabled { color: var(--bx-muted) !important; opacity: 1; border-color: transparent !important; }
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper .dataTables_paginate .paginate_button.current,
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper .dataTables_paginate .paginate_button.current:hover { color: var(--theme-palette-color-8) !important; background: var(--theme-palette-color-1) !important; }
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper .dt-button,
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper button.wdt-clear-filters { color: var(--theme-palette-color-1); background: transparent; border-color: var(--theme-palette-color-1); }
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper .wdt-filter-control,
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper .filter_column select,
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper .filter_column input,
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper .dataTables_filter input,
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper .dataTables_length select { color: var(--theme-palette-color-4); background-color: var(--theme-palette-color-7); border-color: var(--bx-muted); }
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper .filter_column select option { color: var(--theme-palette-color-4); background: var(--theme-palette-color-7); }
.bx-table .wpdt-c.wdt-skin-light .wpDataTablesWrapper ::placeholder { color: var(--bx-muted); opacity: 1; }
.bx-table caption { color: var(--bx-muted); }

