#config .params-card .form-row{align-items:end;grid-template-columns:repeat(2,minmax(260px,1fr));gap:14px}
#config .params-card label{display:flex;flex-direction:column;justify-content:flex-end;min-height:72px;gap:6px;line-height:1.25;font-weight:500;color:#001b3a}
#config .params-card .input{margin-top:auto}
#config .params-card .btn{margin-top:10px}
@media(max-width:760px){#config .params-card .form-row{grid-template-columns:1fr}#config .params-card label{min-height:auto}}


/* v249 - Configurações: alinhamento seguro de Parâmetros e Planilhas Importadas */
.params-card .form-row{display:grid;grid-template-columns:minmax(240px,1fr) minmax(180px,1fr);gap:16px;align-items:end;margin:10px 0 14px}
.params-card label{display:flex;flex-direction:column;gap:6px;font-weight:850;line-height:1.25}
.params-card .input{height:46px;max-width:100%}
.params-card .btn{margin-top:4px}
.imported-months-table table{table-layout:fixed;width:100%}
.imported-months-table th.import-actions-head,.imported-months-table td.import-actions-cell{width:250px;min-width:250px;text-align:left!important;vertical-align:middle}
.imported-months-table .imported-actions{display:flex;gap:6px;justify-content:flex-start;align-items:center;flex-wrap:nowrap;white-space:nowrap}
.imported-months-table .imported-actions .btn{height:38px;padding:0 11px;white-space:nowrap}
.imported-months-table td:nth-child(3),.imported-months-table th:nth-child(3),.imported-months-table td:nth-child(4),.imported-months-table th:nth-child(4){text-align:right!important}
@media(max-width:900px){.params-card .form-row{grid-template-columns:1fr}.imported-months-table th.import-actions-head,.imported-months-table td.import-actions-cell{width:230px;min-width:230px}}


/* v249 - Configurações: Planilhas importadas com ações no canto direito e Parâmetros alinhados */
#config .params-card{
  align-self:start;
}
#config .params-card .form-row{
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) minmax(220px,1fr)!important;
  gap:18px!important;
  align-items:end!important;
  margin:12px 0 16px!important;
}
#config .params-card label{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-end!important;
  gap:7px!important;
  min-height:78px!important;
  line-height:1.25!important;
  font-weight:850!important;
  color:#001b3a!important;
}
#config .params-card .input{
  height:46px!important;
  width:100%!important;
  margin-top:auto!important;
}
#config .params-card .btn{
  margin-top:6px!important;
}
#importedMonthsList .imported-months-table table{
  width:100%!important;
  table-layout:fixed!important;
}
#importedMonthsList .imported-months-table th:nth-child(1),
#importedMonthsList .imported-months-table td:nth-child(1){width:34%!important;min-width:220px!important;text-align:left!important;}
#importedMonthsList .imported-months-table th:nth-child(2),
#importedMonthsList .imported-months-table td:nth-child(2){width:9%!important;min-width:70px!important;text-align:center!important;}
#importedMonthsList .imported-months-table th:nth-child(3),
#importedMonthsList .imported-months-table td:nth-child(3){width:22%!important;min-width:150px!important;text-align:right!important;}
#importedMonthsList .imported-months-table th:nth-child(4),
#importedMonthsList .imported-months-table td:nth-child(4){width:17%!important;min-width:145px!important;text-align:right!important;padding-right:18px!important;}
#importedMonthsList .imported-months-table th.import-actions-head,
#importedMonthsList .imported-months-table td.import-actions-cell{
  width:18%!important;
  min-width:280px!important;
  text-align:right!important;
  vertical-align:middle!important;
  padding-left:18px!important;
  padding-right:16px!important;
}
#importedMonthsList .imported-months-table .imported-actions,
#importedMonthsList .imported-months-table .structure-actions.imported-actions{
  display:flex!important;
  gap:7px!important;
  justify-content:flex-end!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  white-space:nowrap!important;
}
#importedMonthsList .imported-months-table .imported-actions .btn{
  height:38px!important;
  padding:0 12px!important;
  white-space:nowrap!important;
}
@media(max-width:900px){
  #config .params-card .form-row{grid-template-columns:1fr!important;}
  #config .params-card label{min-height:auto!important;}
  #importedMonthsList .imported-months-table th.import-actions-head,
  #importedMonthsList .imported-months-table td.import-actions-cell{min-width:250px!important;}
}

/* v2.3 - correção restrita: rolagem vertical em Planilhas Importadas */
#importedMonthsList .imported-months-table{
  max-height:360px!important;
  overflow-y:auto!important;
  overflow-x:auto!important;
  display:block!important;
  -webkit-overflow-scrolling:touch;
}
#importedMonthsList .imported-months-table thead th{
  position:sticky!important;
  top:0!important;
  z-index:2!important;
  background:#f6f9fc!important;
}
