/* COMASA candidate creation, scoped to .ce45 only. */
.ce45-overlay[hidden]{display:none!important}
.ce45-overlay{position:fixed;inset:0;z-index:180;background:rgba(10,30,49,.58);display:none;align-items:center;justify-content:center;padding:24px;color:#1e344c;font-family:inherit;box-sizing:border-box}
.ce45-overlay.open{display:flex}
.ce45-overlay *{box-sizing:border-box}
.ce45-panel{width:min(1100px,100%);max-height:calc(100dvh - 48px);background:#fff;border:1px solid #c9d8e6;border-radius:18px;box-shadow:0 25px 80px #102b453d;display:flex;flex-direction:column;overflow:hidden}
.ce45-overlay.bc41-embedded-modal>.ce45-panel{flex:1;width:100%;max-height:100%;min-height:0;border-radius:0;box-shadow:none}
.ce45-head{display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid #d8e2ed;padding:22px 26px;flex:none}
.ce45-overline{font-size:12px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#607b91}
.ce45-head h2{font-size:25px;margin:6px 0 0;line-height:1.25}
.ce45-close{width:44px;height:44px;border:1px solid #d3e0eb;border-radius:50%;background:#fff;color:#33526d;font-size:28px;cursor:pointer;flex:none}
.ce45-content{overflow:auto;overscroll-behavior:contain;padding:22px 26px;-webkit-overflow-scrolling:touch;min-height:0}
.ce45-intro{background:#f2f7fb;border:1px solid #d9e6f0;border-radius:10px;display:grid;grid-template-columns:minmax(230px,1fr) 2fr;gap:24px;align-items:center;padding:18px;margin-bottom:20px}
.ce45-intro p,.ce45-complete-head p,.ce45-note{font-size:14px;line-height:1.6;margin:0;color:#526b80}
.ce45-section{border:1px solid #d4e0e9;border-radius:10px;margin:0 0 16px;padding:18px;min-width:0}
.ce45-section legend,.ce45-section summary{font-size:16px;font-weight:700;color:#244861;padding:0 6px}
.ce45-section summary{cursor:pointer;min-height:30px;line-height:1.5}
.ce45-section[open] summary{margin-bottom:15px}
.ce45-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 22px}
.ce45-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:14px;color:#314c63;font-weight:600}
.ce45-field input,.ce45-field select,.ce45-field textarea{width:100%;min-width:0;border:1px solid #bacddd;border-radius:7px;padding:11px 12px;background:#fff;color:#1e344c;font-family:inherit;font-weight:400;line-height:1.4;font-size:16px;min-height:45px;box-shadow:none}
.ce45-field textarea{resize:vertical;min-height:90px}
.ce45-field input:focus,.ce45-field select:focus,.ce45-field textarea:focus{outline:2px solid #387ea1;outline-offset:2px}
.ce45-field input[readonly]{background:#f0f4f7;color:#617789}
.ce45-wide{grid-column:1/-1}
.ce45-photo{display:flex;flex-direction:column;gap:8px;margin-top:18px;padding-top:16px;border-top:1px solid #e1e9f0;font-size:14px}
.ce45-photo input{max-width:100%;font-size:15px}
.ce45-photo small{color:#597286}
.ce45-complete-head{margin:26px 0 17px}
.ce45-complete-head h3{font-size:19px;margin:0 0 7px}
.ce45-repeat{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:15px;background:#f5f8fb;border:1px solid #e0e8f0;border-radius:8px;margin:0 0 12px}
.ce45-repeat button{justify-self:start}
.ce45-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:22px -26px -22px;padding:18px 26px;border-top:1px solid #d4e2ed;background:#f6f9fc;position:sticky;bottom:-22px;z-index:2}
.ce45-footer>span{font-size:13px;color:#5c7489;max-width:300px}
.ce45-footer>div,.ce45-result-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.ce45-footer button,.ce45-section button,.ce45-result-actions button{min-height:44px;padding:10px 18px;cursor:pointer;border-radius:7px;font-size:15px}
.ce45-footer button:disabled{cursor:wait;opacity:.65}
.ce45-success,.ce45-error{padding:16px 18px;border-radius:8px;line-height:1.6;margin:0 0 18px;overflow-wrap:anywhere}
.ce45-success{color:#185c46;border:1px solid #b4dcca;background:#f0fbf5}
.ce45-error{color:#813f1a;border:1px solid #ebc9a4;background:#fff6eb}
.ce45-success h3{margin:0 0 7px}.ce45-success p{margin:5px 0}
.ce45-loading{padding:24px;color:#52728d}.ce45-note{padding:5px 0 15px}
.ce45-overlay [hidden]{display:none!important}
@media(max-width:700px){.ce45-overlay{padding:8px}.ce45-panel{max-height:calc(100dvh - 16px);border-radius:12px}.ce45-head{padding:17px}.ce45-head h2{font-size:21px}.ce45-content{padding:17px}.ce45-grid,.ce45-intro{grid-template-columns:1fr;gap:14px}.ce45-section{padding:14px}.ce45-footer{margin:18px -17px -17px;padding:14px 17px;bottom:-17px;flex-direction:column;align-items:stretch;gap:12px}.ce45-footer>span{max-width:none}.ce45-footer>div{justify-content:stretch}.ce45-footer button{flex:1}.ce45-repeat{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.ce45-overlay *{scroll-behavior:auto!important}}
