/* Registration structure from Atendimento Multi Opportunities / AutomationFlows.
   Loaded last to replace the older compact form overrides consistently. */
#editor .dialog-heading,#levels .dialog-heading,.registration-heading{padding:20px 20px 17px;border-bottom:1px solid #e6ebf2;margin:0}
#editor .dialog-heading h2,#levels .dialog-heading h2,.registration-heading h2{font-size:18px;line-height:1.35;color:#1e293b;font-weight:700;margin:0}
.registration-subtitle,.registration-heading p{font-size:13px;font-weight:400;color:#7b8aa0;margin:4px 0 0;line-height:1.45}
#editor .register-form-body,#levels .register-form-body,.company-form-body{padding:20px}
#editor label,#levels label,.company-grid label{font-size:13px;font-weight:700;color:#334155;gap:7px;min-width:0}
#editor input:not([type=checkbox]):not([type=radio]),#editor select,#editor textarea,#levels input:not([type=checkbox]),.company-grid input,.company-grid select{min-height:40px;padding:10px 12px;border:1px solid #d2dbe7;border-radius:9px;background:#fff;color:#334155;font-family:inherit;font-size:14px;font-weight:400;outline:none;width:100%;box-sizing:border-box}
#editor select,.company-grid select{min-height:42px}
#editor textarea{min-height:76px;resize:vertical}
#editor input:disabled,#editor select:disabled{background:#f8fafc;color:#64748b}
#editor input:focus,#editor select:focus,#editor textarea:focus,#levels input:focus,.company-grid input:focus,.company-grid select:focus{border-color:#5575d8;box-shadow:0 0 0 2px #5575d81f}
#editor .form-grid,.company-grid{gap:16px}
#editor .insurer-row,.company-row{gap:16px}
#editor .form-heading,.company-grid .form-heading{font-size:14px;color:#334155;margin:2px 0 0;padding:8px 0 0;border-top:1px solid #e6ebf2}
#editor .dialog-actions,#levels .dialog-actions,.company-actions{padding:14px 20px;gap:9px;border-top:1px solid #e6ebf2;margin:0;background:#fff}
.company-actions button,#editor .dialog-actions button,#levels .dialog-actions button{min-height:40px;border-radius:8px;padding:0 15px;font-family:inherit;font-size:13px;font-weight:700}
.settings-card{padding:0;border:1px solid #dbe3ee;border-radius:16px;overflow:hidden}
#level-form{display:flex;margin:0;gap:0}
.insurer-address,.company-address{grid-template-columns:110px minmax(0,2fr) minmax(0,1.1fr) minmax(0,1.2fr) 80px}
.insurer-contacts{grid-template-columns:minmax(0,1.2fr) 162px 162px minmax(0,1.6fr)}
.insurer-identity{grid-template-columns:minmax(0,2fr) minmax(0,1fr) 90px 180px 120px}
@media(max-width:900px){.insurer-address,.company-address,.insurer-contacts,.insurer-identity{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#editor .register-form-body,#levels .register-form-body,.company-form-body{padding:14px}.insurer-address,.company-address,.insurer-contacts,.insurer-identity{grid-template-columns:minmax(0,1fr)}}

/* Centralized registration modal, including single-record company settings. */
dialog.company-dialog{width:min(1120px,calc(100vw - 32px));max-height:calc(100dvh - 40px);margin:auto}
.company-dialog .registration-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-shrink:0}
.company-dialog .company-form-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.company-dialog .company-actions{flex-shrink:0}
.company-overview{padding:20px}.company-overview h2{font-size:18px;margin:0 0 8px}.company-overview p{font-size:14px;color:#64748b;margin:0}
