th[data-rc-id] { cursor:pointer; }
.rc-heading { display:inline-flex; align-items:center; gap:3px; max-width:100%; padding-inline-end:4px; }
.rc-heading button { color:inherit; font:inherit; letter-spacing:inherit; text-transform:inherit; background:transparent; border:0; cursor:pointer; }
.rc-heading [data-rc-sort] { text-align:inherit; padding:3px 0; }
th[aria-sort="ascending"] [data-rc-sort]::after { content:" ↑"; }
th[aria-sort="descending"] [data-rc-sort]::after { content:" ↓"; }
.rc-heading button:focus-visible { outline:2px solid #315cff; outline-offset:1px; }
th[aria-sort] [data-rc-sort]::after { color:#245cb9; font-weight:700; }

/* Keep the header under the pointer while the shared toolbar attaches after a repaint. */
#sales-results:has(th[data-rc-id]) .sales-result-count {
  min-height:32px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:6px;
}
#sales-results > .sales-table-wrap:has(> table:not([data-rt]) th[data-rc-id])::before {
  content:"";
  display:block;
  height:34px;
}
