/* Shared form layer, scoped away from EVO-001 navigation and reporting. */
.csb-form{--csb-form-ink:#102b42;--csb-form-accent:#06705c;--csb-form-border:#b4c4ce;color:var(--csb-form-ink);max-width:100%;min-width:0}
/* Contain absolute accessible labels inside the horizontally scrolling P06 table. */
.csb-allocation-table{position:relative;max-width:100%;min-width:0;overflow-x:auto}
.csb-form-legend{color:#536777;font-size:.875rem;margin:0 0 1.25rem}
.csb-form label,.csb-form legend{font-weight:650;line-height:1.5}
.csb-form label.required::after{content:" *";color:#a72a35}
.csb-form .form-control,.csb-form .form-select,.csb-form input:not([type=hidden]):not([type=checkbox]):not([type=radio]),.csb-form select,.csb-form textarea{box-sizing:border-box;max-width:100%;min-width:0;min-height:44px;border:1px solid var(--csb-form-border);border-radius:9px;padding:.65rem .8rem;font-size:1rem;background-color:#fff;color:#102b42}
.csb-form textarea{min-height:130px;resize:vertical}
.csb-form input[type=file]{white-space:normal;overflow:hidden;width:100%}
.csb-form input[type=file]::file-selector-button{border:0;background:#e8f3ef;color:#075d4d;border-radius:5px;padding:.4rem .6rem;margin-right:.6rem;cursor:pointer}
.csb-form .form-text,.csb-form .help-text,.csb-form .form-help{font-size:.875rem;line-height:1.5;color:#536777;overflow-wrap:anywhere}
.csb-form :is(input,select,textarea,button,a):focus-visible,.csb-error-summary:focus{outline:3px solid #d08000;outline-offset:3px;box-shadow:none}
.csb-form [aria-invalid=true],.csb-form .is-invalid{border-color:#ac2637!important}
.csb-form .invalid-feedback{font-size:.9rem;color:#a41e30;overflow-wrap:anywhere}
.csb-form .invalid-feedback p{margin:.25rem 0}
.csb-error-summary{padding:1rem 1.2rem;border:1px solid #b72c3b;border-left:5px solid #b72c3b;background:#fff4f5;border-radius:10px;margin:0 0 1.5rem;color:#7d1928;width:100%;overflow-wrap:anywhere}
.csb-error-summary p{margin:.4rem 0}.csb-error-summary ul{margin:.5rem 0 0;padding-left:1.3rem}.csb-error-summary a{color:inherit;text-decoration:underline}
.csb-form button[type=submit],.csb-form input[type=submit]{min-height:44px;border-radius:9px;font-weight:700}
button[type=submit][form$="-form"]{min-height:44px;border-radius:9px;font-weight:700}
button[type=submit][form$="-form"][aria-disabled=true]{opacity:.7;cursor:wait}
.csb-form [aria-disabled=true]{opacity:.7;cursor:wait}
.csb-submit-status{font-size:.9rem;color:#536777;margin-top:.75rem}
.csb-form-section{border:0;margin:0 0 1.4rem;padding:0;min-width:0}.csb-form-section>legend{font-size:1.05rem;border-bottom:1px solid #dce6eb;padding-bottom:.5rem;margin-bottom:1rem}
.csb-form-actions{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap;margin-top:1.25rem}
.csb-password-field{position:relative}.csb-password-toggle{display:block;background:transparent;border:0;text-decoration:underline;color:#075d4d;padding:.4rem 0;min-height:44px}
.csb-form .form-check-input{min-width:20px;min-height:20px}.csb-form .form-check-label{padding-left:.3rem}
.csb-form .row>*{min-width:0}.csb-form .ts-wrapper{max-width:100%;min-width:0}.csb-form .ts-control{min-height:44px;border-radius:9px}.csb-form .ts-control input{min-height:0!important;padding:0!important;border:0!important}
.csb-form .ea-form-fieldset{margin-bottom:1rem}.csb-form .ea-form-fieldset-title{color:#102b42}
.csb-form .form-actions{gap:.5rem;flex-wrap:wrap}
.modal .csb-form{padding:.25rem}.csb-form-hint{padding:.8rem 1rem;border-radius:9px;background:#edf6f3;color:#245747;line-height:1.5}
@media(max-width:600px){.csb-form .form-actions,.csb-form-actions{display:flex;flex-direction:column;align-items:stretch}.csb-form .form-actions button,.csb-form-actions>*{width:100%;white-space:normal}.csb-form .form-group,.csb-form .mb-3{margin-bottom:1.25rem}.csb-form .datetime-widget,.csb-form .input-group{max-width:100%;min-width:0}.csb-form input[type=datetime-local],.csb-form input[type=date]{width:100%}}
@media(prefers-reduced-motion:reduce){.csb-form *{scroll-behavior:auto!important;transition:none!important}}
