/* Tabelas: cabeçalho fixo (rolagem vertical no invólucro) e colunas ordenáveis — ver tabelas.js */
.tb-fix { overflow: auto; max-height: calc(100vh - 150px); }
:where(.tb-fix) thead th { position: sticky; top: 0; z-index: 3; background: var(--cartao, Canvas); box-shadow: 0 1px 0 var(--linha, #ddd); }
th[data-sortg] { cursor: pointer; user-select: none; }
th[data-sortg]::after { content: " ↕"; opacity: .3; }
th[data-sortg][aria-sort="ascending"]::after { content: " ↑"; opacity: 1; }
th[data-sortg][aria-sort="descending"]::after { content: " ↓"; opacity: 1; }
th[data-sortg]:focus-visible { outline: 2px solid var(--marca, currentColor); outline-offset: -2px; }
@media (max-width: 760px) { .tb-fix { max-height: none; } }
