/* Grade empresarial compartilhada. O Radar recebe uma camada especializada
   carregada depois desta; tabelas de impressao podem optar por data-visual-preserve. */
body[data-app-shell="1"] main :where(.table-wrap,.table-scroll,.data-table-wrap,.responsive-table){
  position:relative;
  overflow:auto;
  border:1px solid #c8d9df;
  border-radius:12px;
  background:#fff;
  box-shadow:0 6px 18px rgba(6,42,59,.045);
  scrollbar-gutter:stable;
  -webkit-overflow-scrolling:touch;
}
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]){
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  table-layout:auto;
  background:#fff;
  color:#173a4a;
  font-variant-numeric:tabular-nums;
}
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) thead th{
  position:sticky;
  top:0;
  z-index:4;
  min-height:42px;
  padding:10px 12px!important;
  border-right:1px solid #c9d9de;
  border-bottom:2px solid #aec7cf;
  background:#eaf2f4!important;
  color:#294f5f!important;
  font-size:10px!important;
  font-weight:900;
  line-height:1.25;
  letter-spacing:.055em;
  text-align:left;
  text-transform:uppercase;
  white-space:nowrap;
}
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) thead th:last-child{border-right:0}
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) tbody tr{
  --enterprise-row-bg:#fff;
  background:var(--enterprise-row-bg)!important;
  color:#173a4a!important;
  transition:none!important;
}
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) tbody tr:nth-child(even){--enterprise-row-bg:#f7fafb}
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) tbody td{
  padding:10px 12px!important;
  border-right:1px solid #d8e4e7;
  border-bottom:1px solid #d8e4e7;
  background:var(--enterprise-row-bg)!important;
  color:#173a4a!important;
  font-size:12px;
  line-height:1.4;
  vertical-align:middle;
  overflow-wrap:normal;
  word-break:normal;
  transition:none!important;
}
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) tbody td:last-child{border-right:0}
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) tbody tr:last-child td{border-bottom:0}
/* Mouse e foco nunca alteram a superficie nem o contraste da linha. */
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) tbody tr:hover,
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) tbody tr:focus-within{
  background:var(--enterprise-row-bg)!important;
  color:#173a4a!important;
  filter:none!important;
}
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) tbody tr:hover>td,
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) tbody tr:focus-within>td{
  background:var(--enterprise-row-bg)!important;
  color:#173a4a!important;
  filter:none!important;
}
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) :where(td,th)>:where(a,strong,span,small){transition:none}
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) td small{
  display:block;
  margin-top:3px;
  color:#637d88;
  line-height:1.3;
}
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) td :where(.status-chip,.badge,.count-badge){
  display:inline-flex;
  width:max-content;
  max-width:100%;
  padding:4px 8px;
  border-radius:999px;
  font-size:10px;
  font-weight:850;
  line-height:1.2;
}
/* Grades largas continuam parecidas com planilha, sem comprimir o conteudo. */
body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]):has(thead th:nth-child(6)){
  min-width:960px;
}
body[data-app-shell="1"] main :where(.table-wrap,.table-scroll,.data-table-wrap,.responsive-table) table:not(.radar-professional-table):has(thead th:nth-child(6)) thead th:first-child{
  left:0;
  z-index:6;
}
body[data-app-shell="1"] main :where(.table-wrap,.table-scroll,.data-table-wrap,.responsive-table) table:not(.radar-professional-table):has(thead th:nth-child(6)) tbody td:first-child{
  position:sticky;
  left:0;
  z-index:2;
  background:var(--enterprise-row-bg)!important;
  box-shadow:4px 0 8px rgba(7,44,59,.08);
}
/* Tema escuro conserva a mesma regra de estabilidade visual. */
body[data-app-shell="1"].theme-dark main table:not(.radar-professional-table):not([data-visual-preserve]) tbody tr{--enterprise-row-bg:#0d2a39;color:#e4f0f3!important}
body[data-app-shell="1"].theme-dark main table:not(.radar-professional-table):not([data-visual-preserve]) tbody tr:nth-child(even){--enterprise-row-bg:#102f3f}
body[data-app-shell="1"].theme-dark main table:not(.radar-professional-table):not([data-visual-preserve]) tbody tr:hover,
body[data-app-shell="1"].theme-dark main table:not(.radar-professional-table):not([data-visual-preserve]) tbody tr:focus-within,
body[data-app-shell="1"].theme-dark main table:not(.radar-professional-table):not([data-visual-preserve]) tbody tr:hover>td,
body[data-app-shell="1"].theme-dark main table:not(.radar-professional-table):not([data-visual-preserve]) tbody tr:focus-within>td{
  background:var(--enterprise-row-bg)!important;
  color:#e4f0f3!important;
}
@media(max-width:760px){
  body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) thead th,
  body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) tbody td{padding:8px 9px!important}
}
@media print{
  body[data-app-shell="1"] main :where(.table-wrap,.table-scroll,.data-table-wrap,.responsive-table){overflow:visible;border-color:#aaa;box-shadow:none}
  body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]){min-width:0!important;font-size:8px}
  body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) thead th{position:static;background:#eee!important;color:#111!important}
  body[data-app-shell="1"] main table:not(.radar-professional-table):not([data-visual-preserve]) tbody td{position:static!important;background:#fff!important;color:#111!important;box-shadow:none!important}
}
