/* MESA 6.1.0 R4.1.3.11 HF9 — equilíbrio visual / redução de peso
   Camada exclusivamente visual. Não altera rotas, dados, IDs, JS ou contratos.
   Objetivo: menos contraste e negrito onde não há prioridade; alertas críticos preservados. */

/* Navegação: hierarquia mais silenciosa */
.nav-group-toggle{
  font-weight:500!important;
  letter-spacing:.015em!important;
}
.nav-group.has-active>.nav-group-toggle{
  font-weight:600!important;
}
.nav-item,
.nav-group .nav-item{
  font-weight:400!important;
}
.nav-item.active,
.nav-group .nav-item.active{
  font-weight:500!important;
}
.sidebar-footer{font-weight:400!important;opacity:.82}

/* Dashboard: títulos firmes; links e conteúdo sem competir com alertas */
.ux-dashboard-grid .card-header h3,
.ux-dashboard-grid .compact-main b,
.ux-sla-owner-row .compact-main b{
  font-weight:500!important;
}
.ux-dashboard-grid .card-header h3{
  font-weight:600!important;
}
.ux-dashboard-grid .text-button{
  font-weight:500!important;
  text-shadow:none!important;
}
html[data-theme="dark"] .ux-dashboard-grid .text-button{
  color:#8ab7e7!important;
}
html[data-theme="light"] .ux-dashboard-grid .text-button{
  color:#316fae!important;
}
.ux-sla-owner-row .compact-main small,
.ux-dashboard-grid .compact-main small{
  font-weight:400!important;
  opacity:.86;
}

/* Tabela de clientes: reduzir sensação de bloco em negrito */
.ux-client-table th{
  font-weight:500!important;
  letter-spacing:.035em!important;
}
.ux-client-table td>b,
.ux-client-table .cell-title b{
  font-weight:500!important;
}
.ux-client-table td>small,
.ux-client-table .cell-title span,
.ux-client-table .cell-title small{
  font-weight:400!important;
}
.ux-client-table .status-chip,
.ux-client-table .badge{
  font-weight:500!important;
  letter-spacing:.01em!important;
}
.ux-client-table .status-chip.red,
.ux-client-table .badge.red,
.ux-client-table .overdue-days,
.ux-client-table .ux-overdue-text{
  font-weight:600!important;
}
html[data-theme="dark"] .ux-client-table th{
  color:#8297b1!important;
}
html[data-theme="dark"] .ux-client-table td>b,
html[data-theme="dark"] .ux-client-table .cell-title b{
  color:#dce8f6!important;
}
html[data-theme="dark"] .ux-client-table td>small,
html[data-theme="dark"] .ux-client-table .cell-title span,
html[data-theme="dark"] .ux-client-table .cell-title small{
  color:#8398b2!important;
}
html[data-theme="dark"] .ux-client-table td{
  border-color:#1b324b!important;
}

/* Filtros, tabs e controles secundários */
.ux-client-filters .filter-bar label,
.ux-multi-filter summary,
.r413-filter-grid label,
.r413-report-filter label,
.r413-deleted-filters .filter-bar>label,
.r413-tabs button{
  font-weight:500!important;
}
.r413-tabs button.active{font-weight:600!important}

/* Chips neutros não devem ter o mesmo peso de alertas */
.status-chip:not(.red),
.badge:not(.red),
.reason-chip,
.ux-today-chip{
  font-weight:500!important;
}

/* Números e métricas: presença sem black weight */
.metric-card strong,
.ux-metric-card>strong,
.report-kpi strong,
.funnel-projection-step strong,
.funnel-monthly-projection strong{
  font-weight:600!important;
}

/* Alertas críticos continuam sendo a exceção visual */
.badge.red,
.status-chip.red,
.overdue-days,
.task-overdue .badge,
.next-action-card.overdue .badge,
.danger-button{
  font-weight:700!important;
}

/* Mobile: preserva a mesma hierarquia */
@media(max-width:760px){
  .ux-client-table td:before{font-weight:500!important}
  .nav-group-toggle{font-weight:500!important}
  .nav-group .nav-item{font-weight:400!important}
  .nav-group .nav-item.active{font-weight:500!important}
}
