.oa-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.oa-note{color:#687793;line-height:1.8;max-width:880px}.oa-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:180px}.oa-id{display:block;overflow-wrap:anywhere;max-width:280px}

/* Keep scrolling inside the form, independent of other admin dialogs. */
.oa-editor{display:flex;flex-direction:column;width:min(760px,92vw);max-height:calc(100vh - 64px);max-height:calc(100dvh - 64px);overflow:hidden}
.oa-editor:focus{outline:none}
.oa-editor>.modal-head{flex:none;padding:20px 24px;gap:16px}
.oa-editor>.modal-head>button{flex:none;width:auto;min-width:60px;height:36px;min-height:36px;padding:0 12px;border:1px solid #dce4f0;background:#fff;font-size:14px;line-height:1;white-space:nowrap}
.oa-editor>[data-oa-form]{display:flex;flex-direction:column;flex:1;min-height:0;margin:0}
.oa-editor-body{display:grid;gap:18px;min-height:0;padding:22px 24px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.oa-editor label{display:flex;flex-direction:column;min-width:0;gap:7px;margin:0;font-size:14px;line-height:1.5;font-weight:500}
.oa-editor input,.oa-editor select{width:100%;min-width:0;box-sizing:border-box;height:44px;min-height:44px;padding:10px 12px;border:1px solid #dce4f0;border-radius:8px;background:#fff;color:#182642;font:inherit;font-weight:400}
.oa-editor input:focus,.oa-editor select:focus{outline:2px solid #2460ff;outline-offset:1px}
.oa-form-row,.oa-mapping-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.oa-editor #oa-mapping{min-width:0}
.oa-editor #oa-mapping h3{margin:0 0 12px;font-size:14px;line-height:1.5;font-weight:600}
.oa-editor p{margin:0;line-height:1.65;font-size:13px;overflow-wrap:anywhere}
.oa-editor-hint{padding:12px 14px;border:1px solid #e5ebf5;border-radius:8px;background:#f7f9fc;color:#687793}
.oa-editor #oa-form-error{color:#b42839}
.oa-editor #oa-form-error:empty{display:none}
.oa-editor-actions{flex:none;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 24px}
.oa-editor-actions .oa-note{font-size:12px;line-height:1.6}
.oa-editor-buttons{display:flex;flex:none;gap:10px}
.oa-editor .button{white-space:nowrap}
.oa-editor-buttons [data-oa-op="save"]{background:var(--blue);border-color:var(--blue);color:#fff}
.oa-editor-buttons [data-oa-op="save"]:hover{background:#2359d8}
.oa-editor-buttons button:disabled{opacity:.6;cursor:wait}
#official-notifications table small{display:block;margin-top:6px;color:#687793}#official-notifications .button{white-space:nowrap}
@media(max-width:640px){.oa-form-row,.oa-mapping-fields{grid-template-columns:1fr}.oa-actions{min-width:120px}.oa-editor-body{padding:18px}.oa-editor>.modal-head{padding:16px 18px}.oa-editor-actions{padding:14px 18px;flex-wrap:wrap;gap:12px}.oa-editor-buttons{margin-left:auto}}
.oa-delay-settings{margin:20px 0;padding:20px;background:#f0f6ff;border:1px solid #dce8ff;border-radius:12px}.oa-delay-settings label{display:block;font-weight:600;margin-bottom:12px}.oa-delay-settings input{max-width:180px;padding:10px 12px;border:1px solid #cbdaf1;border-radius:8px;background:white;font:inherit}
