/* Shared TED modal design. Loaded after page styles; all new dialogs inherit it. */
.ted-modal-backdrop{position:fixed!important;inset:0!important;align-items:center!important;justify-content:center!important;padding:20px!important;background:#15282088!important;backdrop-filter:blur(2px);box-sizing:border-box;overflow:hidden!important}
.ted-modal-panel,dialog.ted-modal-panel{box-sizing:border-box!important;background:#f4f8f6!important;color:#19332e!important;border:1px solid #d8e2dc!important;border-radius:16px!important;box-shadow:0 24px 70px #10292333!important;max-height:90vh!important;max-height:90dvh!important;max-width:calc(100vw - 32px)!important;overflow:auto!important;padding:0!important;min-width:0;isolation:isolate}
.ted-modal-panel:not(dialog){width:var(--ted-modal-width,760px)!important;display:block!important;margin:auto!important;flex:none!important}
dialog.ted-modal-panel{position:fixed!important;inset:0!important;margin:auto!important;width:var(--ted-modal-width,760px)}
dialog.ted-modal-panel::backdrop{background:#15282088;backdrop-filter:blur(2px)}
.ted-modal-header{position:sticky!important;top:0!important;z-index:10!important;background:#fff!important;border-bottom:1px solid #dce7e1!important;padding:20px 24px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin:0!important;flex-shrink:0}
.ted-modal-header h1,.ted-modal-header h2,.ted-modal-header h3{font-size:17px!important;line-height:1.4;margin:0!important;color:#19332e!important;overflow-wrap:anywhere}
.ted-modal-header>div:first-child{min-width:0}.ted-modal-header small{color:#078178;font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.ted-modal-close{box-sizing:border-box!important;width:auto!important;height:auto!important;min-width:64px!important;white-space:nowrap!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:none!important;background:#fff!important;border:1px solid #d5ded8!important;border-radius:8px!important;padding:9px 14px!important;font-family:inherit!important;font-size:12px!important;font-weight:600!important;line-height:1.3!important;color:#415a51!important;cursor:pointer;min-height:36px;box-shadow:none!important}
.ted-modal-content{padding:24px!important;max-height:none!important;overflow:visible!important;min-width:0}
.ted-modal-panel :is(.mb,.modal-b,.mbody,.modal-body,.task-modal-body){background:#fff!important;border:1px solid #dce7e1;border-radius:11px;margin:24px!important;padding:20px!important;overflow:visible!important;max-height:none!important}
.ted-modal-panel :is(.mf,.modal-f,.mfoot,.task-modal-actions,.ted-modal-actions){display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:16px 24px!important;margin:0!important;background:#f4f8f6!important;border-top:1px solid #dce7e1}
.ted-modal-panel fieldset{background:#fff!important;border:1px solid #dce7e1!important;border-radius:11px!important;padding:20px!important;margin:0 0 20px!important;min-width:0}
.ted-modal-panel legend{font-size:13px;font-weight:700;color:#1b4940;padding:0 7px}
.ted-modal-panel label,.ted-modal-panel .fl{font-size:12px;color:#415a51;font-weight:600;letter-spacing:normal;text-transform:none}
.ted-modal-panel input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=file]),.ted-modal-panel select,.ted-modal-panel textarea{box-sizing:border-box;max-width:100%;min-height:40px;border:1px solid #cddad4!important;border-radius:8px!important;background:#fff!important;color:#19332e!important;padding:10px 12px!important;font-size:13px;line-height:1.4}
.ted-modal-panel select{background-color:#f4f9f7!important;cursor:pointer}.ted-modal-panel textarea{resize:vertical}.ted-modal-panel input[type=checkbox],.ted-modal-panel input[type=radio]{accent-color:#078178}
.ted-modal-panel :is(input,select,textarea,button):focus-visible{outline:2px solid #078178!important;outline-offset:2px}
.ted-modal-panel :is(.btn-p,.btn-primary){background:#078178;border-radius:8px;color:white}.ted-modal-panel button{max-width:100%}
.ted-modal-panel [hidden]{display:none!important}.ted-modal-panel :is(.sg2,.catalogue-fields)>*{min-width:0}
@media(max-width:600px){.ted-modal-backdrop{padding:8px!important}.ted-modal-panel,dialog.ted-modal-panel{max-width:calc(100vw - 16px)!important;max-height:94dvh!important;border-radius:12px!important}.ted-modal-header{padding:16px!important}.ted-modal-content{padding:16px!important}.ted-modal-panel :is(.mb,.modal-b,.mbody,.modal-body,.task-modal-body){margin:16px!important;padding:16px!important}.ted-modal-panel fieldset{padding:16px!important}.ted-modal-panel :is(.sg2,.catalogue-fields){grid-template-columns:minmax(0,1fr)!important}}
@media(prefers-reduced-motion:reduce){.ted-modal-panel{animation:none!important;transition:none!important}}

.ted-modal-panel .fi{margin-bottom:12px}.ted-modal-panel .fi:last-child{margin-bottom:0}

.ted-modal-panel>.ted-modal-content{background:#fff;border:1px solid #dce7e1;border-radius:11px;margin:24px;padding:20px!important}
#client-modal .ted-modal-content>div:first-child{padding:0!important}
@media(max-width:600px){.ted-modal-panel>.ted-modal-content{margin:16px;padding:16px!important}}
