/* Configurações 1.9.0: mesmos tokens, fontes relativas, formulários responsivos. */
.mapping-fields{display:grid;gap:1rem;margin-block:1rem}.mapping-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.75rem;align-items:center}.mapping-row label{overflow-wrap:anywhere}.mapping-row select{min-width:0;width:100%}.rule-section{border-top:1px solid var(--line);padding-block:1rem}.rule-section h3{margin-top:.5rem}.rule-rows{display:grid;gap:.75rem}.rule-row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:end}.rule-row>label{flex:1 1 10rem;min-width:0}.rule-row input,.rule-row select{width:100%;min-width:0}.rule-row .text-btn{min-height:2.75rem}.rule-toolbar{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.75rem}.crit-rule-editor{padding:1rem;border:1px solid var(--line);border-radius:1rem;margin-block:1rem}.crit-rule-editor input,.crit-rule-editor select{min-width:0}.crit-info{padding:1rem;border-radius:.75rem;background:var(--surface-alt,#eef3fa);color:var(--text,#172b46)}
@media(max-width:650px){.mapping-row{grid-template-columns:1fr}.rule-row>label{flex-basis:100%}.crit-rule-editor{padding:.75rem}}

/* Visão completa das regras, com rolagem restrita à tabela e foco no editor. */
.rule-overview{margin-block:1rem}.rule-overview .table-scroll{margin-top:1rem;max-height:26rem;overflow:auto}.rule-overview table{min-width:58rem}.rule-overview td{max-width:22rem;white-space:normal;overflow-wrap:anywhere;vertical-align:top}.rule-overview td small{display:block;margin-top:.35rem}.rule-overview th{position:sticky;top:0;background:var(--surface-alt);z-index:1}.crit-rule-editor{scroll-margin-top:1rem}#crit-format-group[hidden]{display:none}
#crit-dialog{width:min(74rem,calc(100% - 2rem));max-width:74rem}.rule-overview .text-btn{min-height:2.75rem}#crit-dialog .rule-section{min-width:0}

/* Teste de regra: separação visual e valores longos sem extrapolar o modal. */
#crit-test-section .btn{margin-top:1rem}.crit-test-result{margin-top:1rem;padding:1rem;border:1px solid var(--line);border-radius:.75rem;background:var(--surface-alt);overflow-wrap:anywhere}.crit-test-result[hidden],#crit-test-ddd-group[hidden]{display:none}.crit-test-result ul{padding-left:1.3rem}.crit-test-result dd{white-space:pre-wrap}
