/* A shared work surface, independent of business permissions and validation. */
.ux-workspace{display:grid;grid-template-columns:minmax(200px,28%) minmax(0,1fr);gap:1rem;margin:1.25rem 0;align-items:start;max-width:100%}
.ux-object-list{display:flex;flex-direction:column;gap:.5rem;min-width:0;max-height:75vh;overflow:auto;padding:.75rem;border:1px solid #cddbd4;border-radius:12px;background:#f6f9f7;position:sticky;top:1rem}
.ux-object-list label{display:grid;gap:.4rem}.ux-object-button{display:block;text-align:left;white-space:normal;overflow-wrap:anywhere;width:100%;padding:.8rem;border:1px solid #d5dfda;background:white;border-radius:8px;color:#183b2c;min-height:44px;cursor:pointer;font:inherit}
.ux-object-button[aria-current=true]{border-color:#236044;background:#e5f2ea;font-weight:700}.ux-detail-pane{min-width:0;max-width:100%}.ux-workspace-tools{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:.75rem}.ux-workspace-tools h2{margin:0;flex:1;overflow-wrap:anywhere}.ux-object-detail>summary{font-size:1rem;margin-bottom:.75rem}.ux-sequence{flex-wrap:wrap}.ux-tabs,.ux-steps{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}.ux-tabs [aria-pressed=true],.ux-steps [aria-current=step]{background:#215b40;color:white}.ux-list-back{display:none!important}.ux-selection-tools{display:flex;flex-wrap:wrap;align-items:end;gap:.5rem}.ux-selection-tools label{flex:1;min-width:160px}.ux-selection-table{min-width:0!important;width:100%}.ux-selection-table td{white-space:normal!important}.ux-selection-table input[type=checkbox]{width:22px;height:22px}.ux-selection-count{position:sticky;bottom:0;background:#eef6f1;padding:.6rem;border-radius:6px}.ux-selection-table td:first-child{width:55px}.ux-review{display:grid;grid-template-columns:minmax(120px,35%) minmax(0,1fr);gap:.5rem;overflow-wrap:anywhere}.ux-review dt{font-weight:600}.ux-review dd{margin:0;white-space:pre-wrap}.ux-step-controls{position:sticky;bottom:0;padding:.75rem;background:#f5f9f6;border-top:1px solid #dae6df;z-index:3}.ux-dropzone{border:2px dashed #b5cbbf;border-radius:10px;padding:1rem;background:#f6f9f7;max-width:100%;overflow-wrap:anywhere}.ux-dropzone input{max-width:100%}.ux-dropzone.ux-dragover{background:#dcf0e4;border-color:#205e3f}.ux-modal{max-width:min(560px,calc(100vw - 2rem));max-height:85vh;overflow:auto;padding:1.5rem;border:1px solid #b5cbbf;border-radius:12px}.ux-modal::backdrop{background:rgba(0,0,0,.45)}.ux-cash-desk{margin:1rem 0}.ux-cash-desk table{min-width:580px}.ux-member-part[hidden],.ux-step[hidden],.ux-object-detail[hidden],.ux-object-button[hidden],.ux-selection-table tr[hidden]{display:none!important}
@media(max-width:760px){.ux-workspace{display:block}.ux-object-list{position:static;max-height:none}.ux-detail-pane{display:none}.ux-show-detail>.ux-object-list{display:none}.ux-show-detail>.ux-detail-pane{display:block}.ux-list-back{display:inline-flex!important}.ux-workspace:not(.ux-show-detail)>.ux-detail-pane{display:none}.ux-workspace-tools h2{width:100%;flex-basis:100%;font-size:1.3rem}.ux-review{grid-template-columns:1fr}.ux-review dd{margin-bottom:.75rem}.ux-selection-tools>*{flex-basis:100%}.ux-steps .button{flex:1;min-width:100px}.ux-object-detail{padding:.8rem}.ux-modal{padding:1rem}.ux-sequence .button{padding:.6rem}}
@media(prefers-reduced-motion:reduce){.ux-workspace *{scroll-behavior:auto!important}}

.ux-selection-source{font-size:0;display:block}.ux-selection-source>span,.ux-selection-source>small,.ux-selection-source>strong{display:none}.ux-selection-source input{font-size:1rem}.ux-compact-stock{min-width:650px}.ux-stock-bar{position:sticky;bottom:0;background:#edf5ef;padding:.8rem;z-index:2}

.ux-workspace .button[hidden],.document-grid>article[hidden]{display:none!important}

/* Keep step controls in flow so they never cover the fields being reviewed. */
.ux-step-controls{position:static}
@media(max-width:600px){
 .ux-cash-desk table{display:block;width:100%;min-width:0!important}
 .ux-cash-desk thead{display:none}.ux-cash-desk tbody{display:block}
 .ux-cash-desk tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:.4rem;padding:.8rem 0;border-bottom:1px solid #dae6df}
 .ux-cash-desk td{white-space:normal!important;border:0;padding:.2rem;overflow-wrap:anywhere}
 .ux-cash-desk td:first-child,.ux-cash-desk td:nth-child(2),.ux-cash-desk td:nth-child(5){grid-column:1/-1}
 .ux-cash-desk td:nth-child(3)::before{content:'Jahr: ';font-weight:600}
 .ux-cash-desk td:nth-child(4)::before{content:'Offen: ';font-weight:600}
 .ux-cash-desk td:nth-child(5) .button{width:100%;min-height:44px}
}

/* Converted checklists use one table scroller, with controls outside that scroller. */
fieldset.member-checklist:has(.ux-selection-table),fieldset.agenda-checklist:has(.ux-selection-table){display:block;max-height:none;overflow:visible}
.ux-selection-tools{margin-bottom:.75rem}
.ux-selection-tools label{display:grid!important;padding:0}
.ux-selection-table td:first-child{width:64px;min-width:64px;padding:.15rem}
.member-checklist .ux-selection-source,.agenda-checklist .ux-selection-source{display:flex;align-items:center;justify-content:center;padding:0;margin:0;min-width:44px;min-height:44px;font-size:0}
.ux-selection-table input[type=checkbox]{flex:0 0 22px;min-width:22px;width:22px;height:22px;padding:0;margin:0}
.ux-selection-source[hidden],.ux-selection-source.hidden-by-filter{display:none!important}
html.ux-ready{scroll-behavior:auto}
.ux-step{scroll-margin-top:6rem}

.ux-selection-tools+.table-wrap{max-height:24rem;overflow:auto}

/* Content determines row height; long names never compress into neighbouring cards. */
.ux-object-button{flex:0 0 auto;height:auto;line-height:1.45;text-align:left}
.ux-review dt,.ux-review dd{min-width:0;overflow-wrap:break-word;line-height:1.5}
.ux-review dd{margin:0;white-space:pre-wrap}
.portal-nav{min-width:0;max-width:100%}
.portal-nav a{min-width:0;max-width:100%;white-space:normal}
.portal-nav a span{overflow-wrap:break-word;word-break:normal;hyphens:auto}
.portal-identity{grid-template-columns:44px minmax(0,1fr)}
.portal-identity strong{overflow-wrap:break-word}
@media(max-width:820px){.portal-nav a{flex:0 0 auto}}
.portal-nav a svg{flex-shrink:0}
.profile-image-form{width:100%;max-width:38rem;margin:1rem 0 1.5rem;min-width:0}
.profile-file-button{display:grid;gap:.5rem;min-width:0}
.profile-image-form .ux-dropzone{width:100%;min-width:0;padding:.75rem}
.profile-image-form input[type=file]{width:100%;min-width:0}
.profile-image-form .profile-save-button{position:static;width:fit-content;max-width:100%}
.ux-avatar-preview{display:block;width:5rem;height:5rem;object-fit:cover;border-radius:.5rem}
.ux-avatar-preview[hidden]{display:none}
.ux-file-status{margin:.5rem 0;line-height:1.5;overflow-wrap:break-word}
.ux-cash-desk>summary{font-weight:700;padding:.6rem 0;min-height:44px;cursor:pointer;overflow-wrap:break-word}
.ux-slow-response{padding:.75rem;border:1px solid currentColor;border-radius:.5rem}


.ux-object-button strong,.ux-object-meta{display:block;line-height:1.45}.ux-object-meta{margin-top:.3rem;font-size:.85em;font-weight:400;opacity:.85}

.ux-object-detail .meeting-card-actions{display:grid;grid-template-columns:minmax(0,1fr);min-width:0}
.ux-object-detail .meeting-card-actions>details{min-width:0;width:100%;max-width:100%}

/* Text enlargement must reflow the public header as well as the protected workspace. */
.topbar{flex-wrap:wrap;gap:.75rem}
.brand{min-width:0;max-width:100%}
.brand span{min-width:0;overflow-wrap:break-word;hyphens:auto}
.brand img{flex-shrink:0}
.mainnav{flex-wrap:wrap;min-width:0;max-width:100%}
.page-section h1,.page-section h2,.page-section h3{min-width:0;overflow-wrap:break-word;hyphens:auto}

/* Narrow finance panels keep labels, amounts and inputs readable when text grows. */
@media(max-width:600px){
 .allocation-balance{grid-template-columns:minmax(0,1fr)}
 .allocation-balance span{min-width:0;overflow-wrap:break-word}
 .finance-v54 .allocation-row{grid-template-columns:minmax(0,1fr)}
 .finance-v54 .allocation-row>*{grid-column:1/-1;min-width:0}
}

/* Year switching stays usable at enlarged text sizes without a forced row width. */
.year-navigation{flex-wrap:wrap;gap:.5rem}
.year-navigation strong{min-width:0}
.year-navigation .year-arrow{min-width:44px;padding:.4rem .35rem}

.ux-workspace-tools,.ux-workspace-tools h2,.ux-object-detail{scroll-margin-top:9rem}
.ux-workspace-tools h2{overflow-wrap:break-word;word-break:normal}
.ux-object-button{white-space:normal;min-height:fit-content}
.ux-dropzone{position:relative;z-index:1;min-height:6rem;pointer-events:auto}
.ux-dropzone>*{pointer-events:auto}
.ux-sequence .button:disabled{opacity:.45;cursor:default}

.ux-reset-items{max-height:22rem;overflow:auto;padding:.5rem}.ux-reset-items small{display:block;font-size:.8em}.ux-reset-steps{display:flex;flex-wrap:wrap;gap:1.5rem;padding-left:1.5rem}

.ux-steps .button{overflow-wrap:normal;word-break:normal;hyphens:auto}
@media(max-width:600px){.ux-steps .button{font-size:.85rem;padding:.5rem .4rem;min-width:0;flex:1 1 0}}
