
/* Referência: Controlo Fat. Clientes — só a primeira coluna (Obra) fica fixa
   horizontalmente; o cabeçalho fica fixo verticalmente. Mesma técnica já
   comprovada em part-021.css para a Trabalhadores: força tudo com
   !important para nunca mais poder ser sobreposto por outro script de
   visualização (v16 responsivo, v43 sticky-shell, etc). */
#content-root #fat-table-scroll{
  position:relative!important;
  display:block!important;
  overflow:auto!important;
  overflow-y:auto!important;
  overflow-x:auto!important;
  max-height:calc(100vh - 320px)!important;
  isolation:isolate!important;
}
#content-root #fat-tbl{
  border-collapse:separate!important;
  border-spacing:0!important;
  table-layout:fixed!important;
  width:max-content!important;
  min-width:100%!important;
  font-size:12.5px!important;
}
#content-root #fat-tbl th,#content-root #fat-tbl td{
  box-sizing:border-box!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#content-root #fat-tbl thead{
  display:table-header-group!important;
  position:sticky!important;
  top:0!important;
  z-index:120!important;
}
#content-root #fat-tbl thead tr:first-child > th{
  position:sticky!important;
  top:0!important;
  z-index:120!important;
  background:#F1F5F9!important;
  background-color:#F1F5F9!important;
  box-sizing:border-box!important;
}
/* Larguras de todas as colunas, forçadas — nenhum outro script as pode alterar. */
#content-root #fat-tbl tr > :nth-child(1){width:280px!important;min-width:280px!important;max-width:280px!important;left:0!important}
#content-root #fat-tbl tr > :nth-child(2){width:160px!important;min-width:160px!important;max-width:160px!important}
#content-root #fat-tbl tr > :nth-child(3){width:110px!important;min-width:110px!important;max-width:110px!important}
#content-root #fat-tbl tr > :nth-child(4){width:110px!important;min-width:110px!important;max-width:110px!important}
#content-root #fat-tbl tr > :nth-child(5){width:55px!important;min-width:55px!important;max-width:55px!important}
#content-root #fat-tbl tr > :nth-child(6){width:55px!important;min-width:55px!important;max-width:55px!important}
#content-root #fat-tbl tr > :nth-child(7){width:55px!important;min-width:55px!important;max-width:55px!important}
#content-root #fat-tbl tr > :nth-child(8){width:85px!important;min-width:85px!important;max-width:85px!important}
#content-root #fat-tbl tr > :nth-child(9){width:55px!important;min-width:55px!important;max-width:55px!important}
#content-root #fat-tbl tr > :nth-child(10){width:55px!important;min-width:55px!important;max-width:55px!important}
#content-root #fat-tbl tr > :nth-child(11){width:55px!important;min-width:55px!important;max-width:55px!important}
#content-root #fat-tbl tr > :nth-child(12){width:55px!important;min-width:55px!important;max-width:55px!important}
#content-root #fat-tbl tr > :nth-child(13){width:55px!important;min-width:55px!important;max-width:55px!important}
#content-root #fat-tbl tr > :nth-child(14){width:55px!important;min-width:55px!important;max-width:55px!important}
#content-root #fat-tbl tr > :nth-child(15){width:85px!important;min-width:85px!important;max-width:85px!important}
#content-root #fat-tbl tr > :nth-child(16){width:55px!important;min-width:55px!important;max-width:55px!important}
#content-root #fat-tbl tr > :nth-child(17){width:80px!important;min-width:80px!important;max-width:80px!important}
#content-root #fat-tbl tr > :nth-child(18){width:80px!important;min-width:80px!important;max-width:80px!important}
#content-root #fat-tbl tr > :nth-child(19){width:55px!important;min-width:55px!important;max-width:55px!important}
#content-root #fat-tbl tr > :nth-child(20){width:55px!important;min-width:55px!important;max-width:55px!important}
#content-root #fat-tbl tr > :nth-child(21){width:55px!important;min-width:55px!important;max-width:55px!important}
/* Só a 1ª coluna (Obra) fica fixa horizontalmente. */
#content-root #fat-tbl tbody tr > :nth-child(1){
  position:sticky!important;
  left:0!important;
  z-index:60!important;
  background:var(--surface)!important;
  background-color:#fff!important;
  background-clip:padding-box!important;
}
#content-root #fat-tbl thead tr:first-child > :nth-child(1){z-index:130!important}
#content-root #fat-tbl tr > :nth-child(1){box-shadow:2px 0 4px rgba(15,23,42,.12)!important}
/* Nenhuma coluna a partir da 2ª fica fixa horizontalmente. */
#content-root #fat-tbl tbody tr > :nth-child(n+2){
  position:relative!important;
  left:auto!important;
  z-index:auto!important;
}
#content-root #fat-tbl thead tr > :nth-child(n+2){left:auto!important}
