
html,body{margin:0!important;padding:0!important;background:#fff!important;overflow-x:hidden!important;scroll-behavior:auto!important;}
body{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;}
.page-shell{width:100%!important;margin:0!important;border:0!important;box-shadow:none!important;border-radius:0!important;background:#fff!important;overflow:visible!important;}
.topbar,.intro-grid,.lower-content,.footer{display:none!important;}
main{padding:0!important;}
.wrap{width:100%!important;margin:0!important;}
.workspace-zone{padding:0!important;}
.tool-workspace{display:block!important;margin:0!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;padding:0!important;}
.tool-workspace:not(.active){display:block!important;}
.tool-workspace.active{display:grid!important;grid-template-columns:minmax(0,1.45fr) minmax(260px,330px)!important;gap:18px!important;align-items:start!important;}
.workspace-main,.workspace-aside{box-shadow:none!important;}
.workspace-empty{display:none!important;}
@media(max-width:820px){.tool-workspace.active{grid-template-columns:1fr!important}.workspace-main,.workspace-aside{padding:14px!important}}


/* v92.1: ajustes de compatibilidade visual no runner isolado */
#toolWorkspace .po-lp-row,
#toolWorkspace .po-sx-row,
#toolWorkspace .po-row-constraint{
  grid-template-columns:minmax(58px,.72fr) minmax(58px,.72fr) minmax(66px,.58fr) minmax(70px,.72fr) 34px!important;
  gap:7px!important;
  align-items:end!important;
}
#toolWorkspace .po-lp-row .calc-field,
#toolWorkspace .po-sx-row .calc-field,
#toolWorkspace .po-row-constraint .calc-field{min-width:0!important;}
#toolWorkspace .po-lp-row .calc-input,
#toolWorkspace .po-lp-row .calc-select,
#toolWorkspace .po-sx-row .calc-input,
#toolWorkspace .po-sx-row .calc-select,
#toolWorkspace .po-row-constraint .calc-input,
#toolWorkspace .po-row-constraint .calc-select{min-width:0!important;width:100%!important;padding-left:8px!important;padding-right:8px!important;}
#toolWorkspace .po-lp-row .danger-action,
#toolWorkspace .po-sx-row .danger-action,
#toolWorkspace .po-row-constraint .danger-action,
#toolWorkspace [data-po-remove]{
  width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;
  display:grid!important;place-items:center!important;align-self:end!important;font-size:0!important;line-height:1!important;border-radius:9px!important;
}
#toolWorkspace [data-po-remove]::before{content:'×';font-size:18px;font-weight:900;line-height:1;color:currentColor;}
.numera-runner-loading{padding:18px;border:1px solid #dce6f3;border-radius:12px;background:#f8fbff;color:#53617a;font-size:14px;}
@media(max-width:900px){
  #toolWorkspace .po-lp-row,#toolWorkspace .po-sx-row,#toolWorkspace .po-row-constraint{grid-template-columns:1fr 1fr!important;}
  #toolWorkspace [data-po-remove]{grid-column:1/-1;justify-self:end!important;}
}
@media(max-width:560px){#toolWorkspace .po-lp-row,#toolWorkspace .po-sx-row,#toolWorkspace .po-row-constraint{grid-template-columns:1fr!important;}}

/* v92.2 — estabilização visual no runner isolado */
#toolWorkspace *{box-sizing:border-box!important;}
#toolWorkspace input,#toolWorkspace select,#toolWorkspace textarea{min-width:0!important;}
#toolWorkspace .workspace-main,#toolWorkspace .workspace-aside{min-width:0!important;}
#toolWorkspace .workspace-aside svg,#toolWorkspace .workspace-main svg{max-width:100%!important;height:auto!important;}

/* Botões de remoção: tamanho imediato para evitar o efeito de “cresce/encolhe até estabilizar”. */
#toolWorkspace .dynamic-row button[data-remove-row],
#toolWorkspace .calc-grid button[data-remove-row],
#toolWorkspace .gestao-row button[data-remove-row],
#toolWorkspace .sim-row-2 button[data-remove-row],
#toolWorkspace .sim-row-3 button[data-remove-row],
#toolWorkspace .sim-row-4 button[data-remove-row],
#toolWorkspace .sim-row-5 button[data-remove-row],
#toolWorkspace .stat-value-row button[data-remove-value],
#toolWorkspace .stat-pair-row button[data-remove-row],
#toolWorkspace button[data-remove-gantt],
#toolWorkspace button[data-remove-stat-row],
#toolWorkspace button[data-remove-debt],
#toolWorkspace button[data-po-remove],
#toolWorkspace button[data-v77-risk-remove],
#toolWorkspace button.po-v54-remove,
#toolWorkspace button.po-v57-remove,
#toolWorkspace button.po-v59-remove,
#toolWorkspace button.po-v61-remove,
#toolWorkspace button.numera-v69-xbtn,
#toolWorkspace button.numera-v77-xbtn{
  width:24px!important;min-width:24px!important;max-width:24px!important;
  height:24px!important;min-height:24px!important;max-height:24px!important;
  flex:0 0 24px!important;padding:0!important;margin:0!important;
  border-radius:999px!important;display:inline-grid!important;place-items:center!important;
  font-size:15px!important;font-weight:900!important;line-height:1!important;text-align:center!important;
  border:1px solid #f0a4a4!important;background:#fff4f4!important;color:#c43131!important;
  box-shadow:none!important;transition:none!important;transform:none!important;text-indent:0!important;overflow:hidden!important;
}
#toolWorkspace .dynamic-row button[data-remove-row]::before,
#toolWorkspace .calc-grid button[data-remove-row]::before,
#toolWorkspace .gestao-row button[data-remove-row]::before,
#toolWorkspace .sim-row-2 button[data-remove-row]::before,
#toolWorkspace .sim-row-3 button[data-remove-row]::before,
#toolWorkspace .sim-row-4 button[data-remove-row]::before,
#toolWorkspace .sim-row-5 button[data-remove-row]::before,
#toolWorkspace button[data-remove-gantt]::before,
#toolWorkspace button[data-po-remove]::before{content:'×';}

/* Raízes numéricas: mantém cartões e gráficos dentro da coluna ao trocar grau. */
#toolWorkspace:has(#rootDeg) .workspace-aside{overflow:hidden!important;}
#toolWorkspace:has(#rootDeg) .workspace-aside .calc-visual-card,
#toolWorkspace:has(#rootDeg) .workspace-aside .numera-visual-card,
#toolWorkspace:has(#rootDeg) .workspace-aside .numera-extra-visual{width:100%!important;max-width:100%!important;overflow:hidden!important;}
#toolWorkspace:has(#rootDeg) .workspace-aside svg{width:100%!important;max-width:100%!important;height:auto!important;display:block!important;}
#toolWorkspace:has(#rootDeg) #rootCoeffFields{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
@media(max-width:720px){#toolWorkspace:has(#rootDeg) #rootCoeffFields{grid-template-columns:1fr!important;}}

/* Bayes: evita alternância visual da decomposição da evidência e força texto branco na barra. */
#toolWorkspace #bayesVisual .bayes-visual-card{overflow:hidden!important;}
#toolWorkspace #bayesVisual .bayes-visual-card svg{width:100%!important;max-width:100%!important;height:auto!important;display:block!important;}
#toolWorkspace #bayesVisual .bayes-visual-card:has(h4) text{font-weight:700!important;}
#toolWorkspace #bayesVisual .bayes-visual-card:nth-of-type(2) svg text,
#toolWorkspace .bayes-visual-card[data-numera-v92-bayes-evidence="1"] svg text{fill:#fff!important;paint-order:stroke!important;stroke:rgba(7,20,66,.25)!important;stroke-width:2px!important;}

/* PERT/CPM: linhas mais compactas, botão fixo e rolagem vertical para listas longas. */
#toolWorkspace #pertRows{max-height:372px!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:8px!important;border-radius:12px!important;overscroll-behavior:contain!important;}
#toolWorkspace #pertRows::-webkit-scrollbar{width:8px}#toolWorkspace #pertRows::-webkit-scrollbar-thumb{background:#c9d8ee;border-radius:999px;border:2px solid #fff;}
#toolWorkspace #pertRows .pert-row .calc-grid,
#toolWorkspace #pertRows .pert-row .calc-grid.three{display:grid!important;grid-template-columns:minmax(60px,.7fr) minmax(108px,1.05fr) minmax(64px,.55fr) minmax(76px,.65fr) minmax(76px,.65fr) 24px!important;gap:8px!important;align-items:end!important;}
#toolWorkspace #pertRows .pert-row .calc-field{min-width:0!important;}
#toolWorkspace #pertRows .pert-row .calc-field label{font-size:11.5px!important;line-height:1.1!important;}
#toolWorkspace #pertRows .pert-row button[data-remove-row]{align-self:center!important;justify-self:center!important;}

/* Priorização estratégica de clientes: reduz campos solicitados e libera espaço ao X. */
#toolWorkspace #clientPriorityRows .client-priority-row .calc-grid,
#toolWorkspace #clientPriorityRows .client-priority-row .calc-grid.three{display:grid!important;grid-template-columns:minmax(138px,1.34fr) minmax(96px,.80fr) minmax(52px,.35fr) minmax(42px,.26fr) minmax(58px,.44fr) minmax(56px,.42fr) 24px!important;gap:8px!important;align-items:end!important;}
#toolWorkspace #clientPriorityRows .client-priority-row .calc-field{min-width:0!important;width:100%!important;}
#toolWorkspace #clientPriorityRows .client-priority-row .calc-field label{font-size:11px!important;line-height:1.05!important;white-space:normal!important;}
#toolWorkspace #clientPriorityRows .client-priority-row .cp-revenue{max-width:90%!important;}
#toolWorkspace #clientPriorityRows .client-priority-row .cp-margin{max-width:70%!important;}
#toolWorkspace #clientPriorityRows .client-priority-row .cp-potential{max-width:50%!important;min-width:42px!important;}
#toolWorkspace #clientPriorityRows .client-priority-row button[data-remove-row]{align-self:center!important;justify-self:center!important;}

/* Diagrama de Gantt: duas tarefas por linha em telas largas; campos internos em duas colunas. */
#toolWorkspace #ganttRows{display:flex!important;flex-wrap:wrap!important;gap:12px!important;align-items:flex-start!important;}
#toolWorkspace #ganttRows .gantt-row{flex:0 1 calc(50% - 6px)!important;width:calc(50% - 6px)!important;max-width:calc(50% - 6px)!important;min-width:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 24px!important;grid-template-areas:"name name del" "start dur del" "prog owner del"!important;gap:8px!important;align-items:end!important;border:1px solid #e8eef7!important;border-radius:10px!important;padding:10px!important;background:#fbfdff!important;}
#toolWorkspace #ganttRows .gantt-row .calc-field{min-width:0!important;}
#toolWorkspace #ganttRows .gantt-row .calc-field:has(.gantt-name){grid-area:name!important;}
#toolWorkspace #ganttRows .gantt-row .calc-field:has(.gantt-start){grid-area:start!important;}
#toolWorkspace #ganttRows .gantt-row .calc-field:has(.gantt-duration){grid-area:dur!important;}
#toolWorkspace #ganttRows .gantt-row .calc-field:has(.gantt-progress){grid-area:prog!important;}
#toolWorkspace #ganttRows .gantt-row .calc-field:has(.gantt-owner){grid-area:owner!important;}
#toolWorkspace #ganttRows .gantt-row button[data-remove-gantt]{grid-area:del!important;align-self:center!important;justify-self:center!important;}

/* Sobreposições comuns em linhas dinâmicas: deixa a última coluna reservada ao botão. */
#toolWorkspace .gestao-row .calc-grid,
#toolWorkspace .gestao-row .calc-grid.three,
#toolWorkspace .dynamic-row,
#toolWorkspace .sim-row-3,
#toolWorkspace .sim-row-4,
#toolWorkspace .sim-row-5{min-width:0!important;}

/* Zoom: garante que o botão X seja clicável e fechado por cima de todos os painéis. */
.numera-v55-zoom-close,.numera-v51-zoom-close,.numera-v44-bayes-zoom-close,
.numera-global-zoom-close,.mb3-zoom-close,.finv21-zoom-close{
  position:absolute!important;top:12px!important;right:12px!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;
  z-index:2147483647!important;display:grid!important;place-items:center!important;pointer-events:auto!important;
  border:0!important;border-radius:999px!important;background:#071442!important;color:#fff!important;font-size:24px!important;font-weight:900!important;line-height:1!important;cursor:pointer!important;
}
.numera-v51-zoom-close{position:sticky!important;top:0!important;margin-left:auto!important;}

@media(max-width:1120px){
  #toolWorkspace #ganttRows .gantt-row{flex-basis:100%!important;width:100%!important;max-width:100%!important;}
  #toolWorkspace #clientPriorityRows .client-priority-row .calc-grid,
  #toolWorkspace #clientPriorityRows .client-priority-row .calc-grid.three,
  #toolWorkspace #pertRows .pert-row .calc-grid,
  #toolWorkspace #pertRows .pert-row .calc-grid.three{grid-template-columns:repeat(2,minmax(0,1fr)) 24px!important;}
}
@media(max-width:700px){
  #toolWorkspace #ganttRows .gantt-row,
  #toolWorkspace #clientPriorityRows .client-priority-row .calc-grid,
  #toolWorkspace #clientPriorityRows .client-priority-row .calc-grid.three,
  #toolWorkspace #pertRows .pert-row .calc-grid,
  #toolWorkspace #pertRows .pert-row .calc-grid.three{grid-template-columns:1fr!important;grid-template-areas:none!important;}
  #toolWorkspace #ganttRows .gantt-row button[data-remove-gantt],
  #toolWorkspace #clientPriorityRows .client-priority-row button[data-remove-row],
  #toolWorkspace #pertRows .pert-row button[data-remove-row]{justify-self:end!important;}
}

/* v92.3 — estabilização imediata de botões X e ajustes adicionais */
#toolWorkspace .danger-action[data-remove-row],
#toolWorkspace button[data-remove-row],
#toolWorkspace button[data-remove-value],
#toolWorkspace button[data-remove-stat-row],
#toolWorkspace button[data-remove-debt],
#toolWorkspace button[data-remove-gantt],
#toolWorkspace button[data-po-remove],
#toolWorkspace .numera-v922-remove-x{
  width:24px!important;min-width:24px!important;max-width:24px!important;
  height:24px!important;min-height:24px!important;max-height:24px!important;
  flex:0 0 24px!important;padding:0!important;margin:0!important;
  display:inline-grid!important;place-items:center!important;
  font-size:0!important;line-height:1!important;letter-spacing:0!important;
  text-indent:0!important;overflow:hidden!important;white-space:nowrap!important;
  border-radius:999px!important;transition:none!important;transform:none!important;
}
#toolWorkspace .danger-action[data-remove-row]::before,
#toolWorkspace button[data-remove-row]::before,
#toolWorkspace button[data-remove-value]::before,
#toolWorkspace button[data-remove-stat-row]::before,
#toolWorkspace button[data-remove-debt]::before,
#toolWorkspace button[data-remove-gantt]::before,
#toolWorkspace button[data-po-remove]::before,
#toolWorkspace .numera-v922-remove-x::before{content:'×'!important;font-size:15px!important;font-weight:900!important;line-height:1!important;}

/* Regra de três composta: S1/S2 compactos e botão na mesma linha */
#toolWorkspace #r3Rows .dynamic-row{
  display:grid!important;
  grid-template-columns:minmax(136px,1.22fr) minmax(58px,.54fr) minmax(58px,.54fr) minmax(82px,.76fr) 24px!important;
  gap:8px!important;align-items:end!important;
}
#toolWorkspace #r3Rows .dynamic-row .calc-field{min-width:0!important;}
#toolWorkspace #r3Rows .dynamic-row .r3-base,
#toolWorkspace #r3Rows .dynamic-row .r3-target{padding-left:7px!important;padding-right:7px!important;text-align:center!important;}
#toolWorkspace #r3Rows .dynamic-row .danger-action[data-remove-row]{align-self:center!important;justify-self:center!important;}
#toolWorkspace #r3Rows .dynamic-row .calc-field label{font-size:11.5px!important;line-height:1.05!important;}
@media(max-width:760px){#toolWorkspace #r3Rows .dynamic-row{grid-template-columns:1fr 1fr 1fr 24px!important;}#toolWorkspace #r3Rows .dynamic-row .calc-field:first-child{grid-column:1/-1!important;}}
@media(max-width:540px){#toolWorkspace #r3Rows .dynamic-row{grid-template-columns:1fr!important;}#toolWorkspace #r3Rows .dynamic-row .danger-action[data-remove-row]{justify-self:end!important;}}

/* Painel proporcional: mantém o cartão visual centralizado e sem estouro lateral. */
#toolWorkspace .numera-v923-rule3-panel svg{width:100%!important;max-width:100%!important;height:auto!important;display:block!important;}
#toolWorkspace .numera-v923-rule3-panel{overflow:hidden!important;}


/* v92.4 — rodada ampla de estabilização de linhas dinâmicas, botões e gráficos */
#toolWorkspace{--xbtn:24px;}
#toolWorkspace button[data-remove-row],
#toolWorkspace button[data-remove-value],
#toolWorkspace button[data-remove-stat-row],
#toolWorkspace button[data-remove-debt],
#toolWorkspace button[data-remove-gantt],
#toolWorkspace button[data-remove-pair],
#toolWorkspace button[data-pr-remove],
#toolWorkspace button[data-v54-remove],
#toolWorkspace button[data-v57-remove],
#toolWorkspace button[data-v59-remove],
#toolWorkspace button[data-v61-remove],
#toolWorkspace button[class*="remove"],
#toolWorkspace .numera-v922-remove-x,
#toolWorkspace .po-v54-remove,
#toolWorkspace .po-v57-remove,
#toolWorkspace .po-v59-remove,
#toolWorkspace .po-v61-remove{
  width:24px!important;min-width:24px!important;max-width:24px!important;height:24px!important;min-height:24px!important;max-height:24px!important;
  flex:0 0 24px!important;padding:0!important;margin:0!important;box-sizing:border-box!important;
  display:inline-grid!important;place-items:center!important;align-self:center!important;justify-self:center!important;
  font-size:0!important;line-height:1!important;letter-spacing:0!important;text-indent:0!important;overflow:hidden!important;white-space:nowrap!important;
  border-radius:999px!important;border:1px solid #f0a4a4!important;background:#fff4f4!important;color:#c43131!important;box-shadow:none!important;transition:none!important;transform:none!important;
}
#toolWorkspace button[data-remove-row]::before,
#toolWorkspace button[data-remove-value]::before,
#toolWorkspace button[data-remove-stat-row]::before,
#toolWorkspace button[data-remove-debt]::before,
#toolWorkspace button[data-remove-gantt]::before,
#toolWorkspace button[data-remove-pair]::before,
#toolWorkspace button[data-pr-remove]::before,
#toolWorkspace button[data-v54-remove]::before,
#toolWorkspace button[data-v57-remove]::before,
#toolWorkspace button[data-v59-remove]::before,
#toolWorkspace button[data-v61-remove]::before,
#toolWorkspace button[class*="remove"]::before,
#toolWorkspace .po-v54-remove::before,
#toolWorkspace .po-v57-remove::before,
#toolWorkspace .po-v59-remove::before,
#toolWorkspace .po-v61-remove::before{content:'×'!important;font-size:15px!important;font-weight:900!important;line-height:1!important;}

/* Listas com muitos lançamentos: barra vertical após volume maior */
#toolWorkspace #r3Rows,
#toolWorkspace #turnoverRows,
#toolWorkspace #overloadRows,
#toolWorkspace #qualityRows,
#toolWorkspace #consRows,
#toolWorkspace #storeRows,
#toolWorkspace #warehouseRows,
#toolWorkspace #skuRows,
#toolWorkspace #discountRows,
#toolWorkspace #stockRows,
#toolWorkspace #revRows,
#toolWorkspace #fillRows,
#toolWorkspace #otifRows,
#toolWorkspace #reentregaRows,
#toolWorkspace #clientPriorityRows,
#toolWorkspace #fconRows,
#toolWorkspace #fstrRows,
#toolWorkspace #eisRows{
  max-height:430px!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:8px!important;overscroll-behavior:contain!important;border-radius:12px!important;
}
#toolWorkspace #restructRows{max-height:250px!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:8px!important;border-radius:12px!important;}
#toolWorkspace #r3Rows::-webkit-scrollbar,#toolWorkspace #turnoverRows::-webkit-scrollbar,#toolWorkspace #overloadRows::-webkit-scrollbar,#toolWorkspace #qualityRows::-webkit-scrollbar,#toolWorkspace #consRows::-webkit-scrollbar,#toolWorkspace #stockRows::-webkit-scrollbar,#toolWorkspace #revRows::-webkit-scrollbar,#toolWorkspace #fillRows::-webkit-scrollbar,#toolWorkspace #otifRows::-webkit-scrollbar,#toolWorkspace #reentregaRows::-webkit-scrollbar,#toolWorkspace #clientPriorityRows::-webkit-scrollbar,#toolWorkspace #restructRows::-webkit-scrollbar,#toolWorkspace #eisRows::-webkit-scrollbar{width:8px}
#toolWorkspace #r3Rows::-webkit-scrollbar-thumb,#toolWorkspace #turnoverRows::-webkit-scrollbar-thumb,#toolWorkspace #overloadRows::-webkit-scrollbar-thumb,#toolWorkspace #qualityRows::-webkit-scrollbar-thumb,#toolWorkspace #consRows::-webkit-scrollbar-thumb,#toolWorkspace #stockRows::-webkit-scrollbar-thumb,#toolWorkspace #revRows::-webkit-scrollbar-thumb,#toolWorkspace #fillRows::-webkit-scrollbar-thumb,#toolWorkspace #otifRows::-webkit-scrollbar-thumb,#toolWorkspace #reentregaRows::-webkit-scrollbar-thumb,#toolWorkspace #clientPriorityRows::-webkit-scrollbar-thumb,#toolWorkspace #restructRows::-webkit-scrollbar-thumb,#toolWorkspace #eisRows::-webkit-scrollbar-thumb{background:#c9d8ee;border-radius:999px;border:2px solid #fff;}

/* Regra de três composta: um lançamento por linha, com S1/S2 compactos */
#toolWorkspace #r3Rows .dynamic-row{grid-template-columns:minmax(160px,1.45fr) minmax(64px,.62fr) minmax(64px,.62fr) minmax(108px,.9fr) 24px!important;gap:9px!important;align-items:end!important;}
#toolWorkspace #r3Rows .dynamic-row .r3-base,#toolWorkspace #r3Rows .dynamic-row .r3-target{max-width:90%!important;justify-self:start!important;text-align:center!important;}
#toolWorkspace #r3Rows .dynamic-row .danger-action{align-self:center!important;justify-self:center!important;}
#toolWorkspace .numera-v923-rule3-panel{display:flex!important;align-items:center!important;justify-content:center!important;min-height:180px!important;}
#toolWorkspace .numera-v923-rule3-panel svg{align-self:center!important;}

/* Linhas dinâmicas com muitos campos: reservam a última coluna para o botão X */
#toolWorkspace .turnover-row .calc-grid.three,
#toolWorkspace .overload-row .calc-grid.three,
#toolWorkspace .quality-row .calc-grid.three,
#toolWorkspace .restruct-row .calc-grid.three,
#toolWorkspace .modal-row .calc-grid.three,
#toolWorkspace .cons-row .calc-grid.three,
#toolWorkspace .fill-row .calc-grid.three,
#toolWorkspace .otif-row .calc-grid.three,
#toolWorkspace .reentrega-row .calc-grid.three,
#toolWorkspace .client-priority-row .calc-grid.three,
#toolWorkspace .abc-mgmt-row .calc-grid.three,
#toolWorkspace .stat-value-row .calc-grid.three,
#toolWorkspace .stat-pair-row .calc-grid.three{
  display:grid!important;grid-template-columns:repeat(auto-fit,minmax(96px,1fr)) 24px!important;gap:8px!important;align-items:end!important;
}
#toolWorkspace .restruct-row .calc-grid.three{grid-template-columns:1.2fr repeat(4,minmax(70px,.72fr)) repeat(5,minmax(82px,.8fr)) 24px!important;}
#toolWorkspace .turnover-row .calc-grid.three{grid-template-columns:1.3fr minmax(68px,.55fr) minmax(92px,.8fr) minmax(82px,.7fr) minmax(110px,.9fr) minmax(86px,.7fr) minmax(72px,.55fr) 24px!important;}
#toolWorkspace .overload-row .calc-grid.three{grid-template-columns:1.25fr repeat(6,minmax(72px,.72fr)) 24px!important;}
#toolWorkspace .quality-row .calc-grid.three{grid-template-columns:1.35fr minmax(116px,1fr) repeat(4,minmax(82px,.82fr)) 24px!important;}
#toolWorkspace .modal-row .calc-grid.three{grid-template-columns:1.25fr minmax(105px,.85fr) minmax(80px,.65fr) minmax(94px,.75fr) minmax(96px,.78fr) 24px!important;}
#toolWorkspace .cons-row .calc-grid.three{grid-template-columns:1.35fr repeat(5,minmax(80px,.78fr)) 24px!important;}
#toolWorkspace .fill-row .calc-grid.three,#toolWorkspace .otif-row .calc-grid.three,#toolWorkspace .reentrega-row .calc-grid.three{grid-template-columns:1.35fr repeat(5,minmax(82px,.78fr)) 24px!important;}
#toolWorkspace .client-priority-row .calc-grid.three{grid-template-columns:1.35fr minmax(86px,.75fr) minmax(58px,.45fr) minmax(52px,.38fr) minmax(70px,.55fr) minmax(70px,.55fr) 24px!important;}
#toolWorkspace .stat-value-row .calc-grid.three{grid-template-columns:minmax(0,1fr) 24px!important;}
#toolWorkspace .stat-pair-row .calc-grid.three{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 24px!important;}
#toolWorkspace #tgA .stat-value-row .calc-grid.three,#toolWorkspace #tgB .stat-value-row .calc-grid.three{grid-template-columns:minmax(0,1fr) 24px!important;}

/* Matriz Eisenhower: dois lançamentos por linha em telas largas */
#toolWorkspace #eisRows{display:flex!important;flex-wrap:wrap!important;gap:12px!important;align-items:flex-start!important;}
#toolWorkspace #eisRows .sim-row-3{flex:0 1 calc(50% - 6px)!important;width:calc(50% - 6px)!important;max-width:calc(50% - 6px)!important;display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(92px,.75fr) minmax(92px,.75fr) 24px!important;gap:8px!important;align-items:end!important;border:1px solid #e8eef7!important;border-radius:10px!important;background:#fbfdff!important;padding:10px!important;}
#toolWorkspace #eisRows .sim-row-3 .calc-field{min-width:0!important;}

/* Comparação entre dois grupos, z-score, distribuição: X centralizado */
#toolWorkspace #tgA .stat-value-row button,#toolWorkspace #tgB .stat-value-row button,#toolWorkspace #zRows .stat-value-row button,#toolWorkspace #sdMatrixWrap button,#toolWorkspace #anovaMatrixWrap button{align-self:center!important;justify-self:center!important;}

/* Giro/cobertura/capital: reduz saídas anuais e amplia estoque médio quando essas classes existirem */
#toolWorkspace .stock-exit,#toolWorkspace .stock-sales,#toolWorkspace .stock-out,#toolWorkspace .stock-saidas{max-width:75%!important;}
#toolWorkspace .stock-average,#toolWorkspace .stock-medio,#toolWorkspace .stock-avg{min-width:0!important;width:100%!important;}

/* Tempo de ciclo: reduz tempo médio e favorece custo por hora quando essas classes existirem */
#toolWorkspace .cycle-time,#toolWorkspace .lt-time,#toolWorkspace .ciclo-tempo{max-width:82%!important;}
#toolWorkspace .cycle-hour-cost,#toolWorkspace .lt-hour-cost,#toolWorkspace .ciclo-custo-hora{width:100%!important;}

/* PMT: visual de fluxo e composição em bloco único */
#toolWorkspace .numera-v924-pmt-visual{display:grid!important;gap:12px!important;}
#toolWorkspace .numera-v924-pmt-visual svg{width:100%!important;max-width:100%!important;height:auto!important;display:block!important;}
#toolWorkspace .numera-v924-pmt-bar{display:grid;gap:6px}.numera-v924-pmt-bar-row{display:grid;grid-template-columns:82px 1fr 76px;gap:8px;align-items:center;font-size:12px;color:#53617a}.numera-v924-pmt-track{height:12px;border-radius:999px;background:#edf4ff;overflow:hidden}.numera-v924-pmt-track span{display:block;height:100%;border-radius:999px;background:#0967f4}.numera-v924-pmt-track span.interest{background:#7c3aed}.numera-v924-pmt-track span.total{background:#0aa680}

/* Programação inteira/mista: impede o gráfico de estourar a área e melhora escala visual */
#toolWorkspace:has(#milpRows) .workspace-aside{overflow:hidden!important;}
#toolWorkspace:has(#milpRows) .workspace-aside .calc-visual-card,#toolWorkspace:has(#milpRows) .workspace-aside .numera-visual-card{max-width:100%!important;overflow:hidden!important;}
#toolWorkspace:has(#milpRows) .workspace-aside svg{width:100%!important;max-width:100%!important;height:auto!important;display:block!important;}
#toolWorkspace:has(#milpRows) .workspace-aside svg text{font-size:10px!important;}

/* Receitas por Ticket Médio: texto com contraste nos gráficos */
#toolWorkspace #tkVisual svg text{fill:#fff!important;paint-order:stroke!important;stroke:rgba(7,20,66,.45)!important;stroke-width:2px!important;font-weight:800!important;}

@media(max-width:1180px){
  #toolWorkspace .turnover-row .calc-grid.three,#toolWorkspace .overload-row .calc-grid.three,#toolWorkspace .quality-row .calc-grid.three,#toolWorkspace .restruct-row .calc-grid.three,#toolWorkspace .modal-row .calc-grid.three,#toolWorkspace .cons-row .calc-grid.three,#toolWorkspace .fill-row .calc-grid.three,#toolWorkspace .otif-row .calc-grid.three,#toolWorkspace .reentrega-row .calc-grid.three,#toolWorkspace .client-priority-row .calc-grid.three{grid-template-columns:repeat(2,minmax(0,1fr)) 24px!important;}
}
@media(max-width:820px){
  #toolWorkspace #r3Rows .dynamic-row,#toolWorkspace .turnover-row .calc-grid.three,#toolWorkspace .overload-row .calc-grid.three,#toolWorkspace .quality-row .calc-grid.three,#toolWorkspace .restruct-row .calc-grid.three,#toolWorkspace .modal-row .calc-grid.three,#toolWorkspace .cons-row .calc-grid.three,#toolWorkspace .fill-row .calc-grid.three,#toolWorkspace .otif-row .calc-grid.three,#toolWorkspace .reentrega-row .calc-grid.three,#toolWorkspace .client-priority-row .calc-grid.three,#toolWorkspace #eisRows .sim-row-3{grid-template-columns:1fr!important;width:100%!important;max-width:100%!important;flex-basis:100%!important;}
  #toolWorkspace #eisRows .sim-row-3{display:grid!important;}
}


/* v92.5 — ajustes finos */
#toolWorkspace .numera-v924-pmt-bar-row{grid-template-columns:86px minmax(0,1fr) 88px!important;font-size:11.5px!important;}
#toolWorkspace .numera-v924-pmt-bar-row strong{font-size:11.5px!important;text-align:right!important;}
#toolWorkspace .numera-v925-zoom-card{display:grid!important;gap:8px!important;}
#toolWorkspace .numera-v925-zoom-trigger{cursor:zoom-in!important;}
#toolWorkspace .numera-v925-overlay{position:fixed!important;inset:0!important;background:rgba(7,20,66,.72)!important;z-index:2147483646!important;display:grid!important;place-items:center!important;padding:24px!important;}
#toolWorkspace .numera-v925-modal,.numera-v925-modal{width:min(960px,92vw)!important;max-height:90vh!important;overflow:auto!important;background:#fff!important;border-radius:16px!important;box-shadow:0 24px 80px rgba(0,0,0,.28)!important;padding:20px!important;position:relative!important;}
#toolWorkspace .numera-v925-close,.numera-v925-close{position:absolute!important;top:12px!important;right:12px!important;width:40px!important;height:40px!important;border-radius:999px!important;border:0!important;background:#071442!important;color:#fff!important;font-size:24px!important;font-weight:900!important;cursor:pointer!important;}
#toolWorkspace #bayesVisual .bayes-visual-card[data-numera-v92-bayes-evidence="1"] svg rect{fill:#0c66d8!important;opacity:.96!important;}
#toolWorkspace #bayesVisual .bayes-visual-card[data-numera-v92-bayes-evidence="1"] svg text{fill:#fff!important;stroke:rgba(7,20,66,.2)!important;stroke-width:1.5px!important;paint-order:stroke!important;}


/* Numera v94.04 — padrão global de botões X: 24px, centralizados e com X visível */
#toolWorkspace .danger-action,
#toolWorkspace button[data-po-remove],
#toolWorkspace button[data-remove-row],
#toolWorkspace button[data-remove-value],
#toolWorkspace button[data-remove-stat-row],
#toolWorkspace button[data-remove-debt],
#toolWorkspace button[data-remove-gantt],
#toolWorkspace button[data-remove-pair],
#toolWorkspace button[class*="remove"],
#toolWorkspace .danger-action,
#toolWorkspace button[data-po-remove]{
  width:24px!important;min-width:24px!important;max-width:24px!important;
  height:24px!important;min-height:24px!important;max-height:24px!important;
  padding:0!important;margin:0!important;box-sizing:border-box!important;
  display:inline-grid!important;place-items:center!important;align-self:center!important;justify-self:center!important;
  border-radius:999px!important;border:1px solid #f0a4a4!important;background:#fff4f4!important;color:#c43131!important;
  font-size:0!important;line-height:1!important;letter-spacing:0!important;text-indent:0!important;overflow:hidden!important;white-space:nowrap!important;
  box-shadow:none!important;transition:none!important;transform:none!important;appearance:none!important;-webkit-appearance:none!important;
}
#toolWorkspace .danger-action::before,
#toolWorkspace button[data-po-remove]::before,
#toolWorkspace button[data-remove-row]::before,
#toolWorkspace button[data-remove-value]::before,
#toolWorkspace button[data-remove-stat-row]::before,
#toolWorkspace button[data-remove-debt]::before,
#toolWorkspace button[data-remove-gantt]::before,
#toolWorkspace button[data-remove-pair]::before,
#toolWorkspace button[class*="remove"]::before,
#toolWorkspace .danger-action::before,
#toolWorkspace button[data-po-remove]::before{
  content:"×"!important;display:block!important;font-size:15px!important;font-weight:900!important;line-height:1!important;color:currentColor!important;
}
