/* FINNEX 38.3 — form/layout system. Scoped to the Workspace; no global WP admin overrides. */
.fnxf-app[data-fnxf-app]{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;}
.fnxf-app[data-fnxf-app] .fnxf-main,.fnxf-app[data-fnxf-app] .fnxf-panel{min-width:0;box-sizing:border-box;}
.fnxf-app[data-fnxf-app] .fnxf-panel{max-width:100%;overflow-wrap:anywhere;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;align-items:start!important;gap:18px 16px!important;width:100%!important;max-width:100%!important;margin:18px 0 28px!important;padding:clamp(16px,2.2vw,28px)!important;background:#fff!important;border:1px solid #dce4ee!important;border-radius:18px!important;box-shadow:0 8px 30px rgba(15,35,65,.055)!important;box-sizing:border-box;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor>label{grid-column:span 4;min-width:0;margin:0;display:flex;flex-direction:column;gap:7px;color:#203451;font-size:13px;font-weight:650;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor>label:nth-of-type(2){grid-column:span 5;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor>label:nth-of-type(3){grid-column:span 3;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor>label:nth-of-type(4),.fnxf-app[data-fnxf-app] .fnxf-customer-editor>label:nth-of-type(5){grid-column:span 6;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor>button[data-fnxf-cnpj-query]{grid-column:span 3;align-self:end;min-height:44px;white-space:normal;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor>[data-fnxf-cnpj-status]{grid-column:span 9;align-self:center;font-size:13px;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor input:not([type=checkbox]),.fnxf-app[data-fnxf-app] .fnxf-customer-editor select{box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0;min-height:44px;border:1px solid #c8d4e4!important;border-radius:10px!important;background:#fff!important;color:#172b48!important;padding:10px 12px!important;font:inherit;font-weight:450;box-shadow:none!important;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor :is(input,select,button):focus-visible{outline:3px solid #8bbcff!important;outline-offset:2px;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor .fnxf-address{grid-column:1/-1!important;min-width:0!important;width:100%!important;max-width:100%!important;margin:2px 0 0!important;padding:22px!important;display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:16px!important;box-sizing:border-box!important;border:1px solid #d6e1ef!important;border-radius:14px!important;background:#f9fbfe!important;float:none!important;position:static!important;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor .fnxf-address legend{width:auto!important;max-width:100%;padding:0 9px!important;margin-left:4px!important;float:none!important;color:#173458!important;font-size:15px!important;font-weight:750!important;line-height:1.5!important;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor .fnxf-address>label{grid-column:span 4;min-width:0;display:flex;flex-direction:column;gap:7px;margin:0;color:#243953;font-size:13px;font-weight:650;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor .fnxf-address>label:nth-of-type(2){grid-column:span 6;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor .fnxf-address>label:nth-of-type(3){grid-column:span 2;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor .fnxf-address>label:nth-of-type(4){grid-column:span 6;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor .fnxf-address>label:nth-of-type(5){grid-column:span 6;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor .fnxf-address>label:nth-of-type(6){grid-column:span 9;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor .fnxf-address>label:nth-of-type(7){grid-column:span 3;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor .fnxf-correspondence{background:#f4f7ff!important;border-color:#bdcef4!important;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor .fnxf-same{grid-column:1/-1!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:12px!important;min-height:44px!important;font-size:14px!important;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor .fnxf-same input[type=checkbox]{width:20px!important;height:20px!important;min-width:20px!important;accent-color:#265dd3!important;margin:0!important;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor [data-fnxf-correspondence-fields]{grid-column:1/-1!important;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;min-width:0;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor [data-fnxf-correspondence-fields][hidden]{display:none!important;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor [data-fnxf-correspondence-fields]>label{grid-column:span 4;min-width:0;display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:650;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor [data-fnxf-correspondence-fields]>label:nth-child(2){grid-column:span 6;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor [data-fnxf-correspondence-fields]>label:nth-child(3){grid-column:span 2;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor [data-fnxf-correspondence-fields]>label:nth-child(4),.fnxf-app[data-fnxf-app] .fnxf-customer-editor [data-fnxf-correspondence-fields]>label:nth-child(5){grid-column:span 6;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor [data-fnxf-correspondence-fields]>label:nth-child(6){grid-column:span 9;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor [data-fnxf-correspondence-fields]>label:nth-child(7){grid-column:span 3;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor>.fnxf-customer-actions{grid-column:1/-1;display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:4px 0 0;padding-top:18px;border-top:1px solid #e1e8f1;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor>.fnxf-customer-actions button{min-height:44px;padding:10px 20px;border-radius:10px;}
.fnxf-app[data-fnxf-app] .fnxf-customer-editor [hidden]{display:none!important;}
.fnxf-app[data-fnxf-app] .fnxf-panel :is(table,.fnxf-dashboard27){max-width:100%;}
.fnxf-app[data-fnxf-app] .fnxf-panel table{display:block;overflow-x:auto;white-space:nowrap;}
@media(max-width:1100px){.fnxf-app[data-fnxf-app] .fnxf-customer-editor>label,.fnxf-app[data-fnxf-app] .fnxf-customer-editor>label:nth-of-type(n),.fnxf-app[data-fnxf-app] .fnxf-customer-editor>button[data-fnxf-cnpj-query]{grid-column:span 6;}.fnxf-app[data-fnxf-app] .fnxf-customer-editor>[data-fnxf-cnpj-status]{grid-column:span 6;}}
@media(max-width:650px){.fnxf-app[data-fnxf-app] .fnxf-customer-editor{grid-template-columns:minmax(0,1fr)!important;padding:14px!important;gap:14px!important;}.fnxf-app[data-fnxf-app] .fnxf-customer-editor>label,.fnxf-app[data-fnxf-app] .fnxf-customer-editor>label:nth-of-type(n),.fnxf-app[data-fnxf-app] .fnxf-customer-editor>button[data-fnxf-cnpj-query],.fnxf-app[data-fnxf-app] .fnxf-customer-editor>[data-fnxf-cnpj-status]{grid-column:1/-1!important;}.fnxf-app[data-fnxf-app] .fnxf-customer-editor .fnxf-address{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:14px!important;gap:12px!important;}.fnxf-app[data-fnxf-app] .fnxf-customer-editor .fnxf-address>label,.fnxf-app[data-fnxf-app] .fnxf-customer-editor .fnxf-address>label:nth-of-type(n){grid-column:1/-1!important;}.fnxf-app[data-fnxf-app] .fnxf-customer-editor [data-fnxf-correspondence-fields]{grid-template-columns:repeat(2,minmax(0,1fr))!important;}.fnxf-app[data-fnxf-app] .fnxf-customer-editor [data-fnxf-correspondence-fields]>label,.fnxf-app[data-fnxf-app] .fnxf-customer-editor [data-fnxf-correspondence-fields]>label:nth-child(n){grid-column:1/-1!important;}}
