.organisation-admin{min-width:0;color:var(--wc-text);font-family:"Avenir Next",sans-serif;font-size:16px;line-height:24px}
.organisation-admin .organisation-tabs{display:flex;gap:24px;flex-wrap:wrap;border:0;background:transparent}
.organisation-admin .organisation-tabs button{position:relative;min-height:44px;padding:10px 0;border:0;border-radius:0;background:transparent;color:var(--wc-text);font:400 16px/24px "Avenir Next",sans-serif;box-shadow:none}
.organisation-tabs button span{position:relative;display:inline-block}
.organisation-tabs button span::after{content:"";position:absolute;left:0;right:0;bottom:-5px;background:var(--wc-text);height:0}
.organisation-tabs button:hover:not(:disabled) span::after{height:1px}
.organisation-tabs button[aria-selected="true"] span::after{height:2px}
.organisation-admin button:focus-visible,.organisation-admin input:focus-visible,.organisation-admin select:focus-visible{outline:2px solid var(--wc-active);outline-offset:3px}
.organisation-admin .workspace-tab-panel{min-width:0;padding:20px;border:1px solid var(--wc-line);border-radius:8px;background:var(--wc-surface)}
.organisation-admin h2{margin:0 0 16px;font-size:20px;line-height:28px;font-weight:400}
.organisation-toolbar,.organisation-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.organisation-toolbar{justify-content:space-between;margin-bottom:20px}
.organisation-toolbar h2{margin:0}
.organisation-admin .product-button{min-height:44px;width:auto;max-width:100%;padding:11px 16px;border:1px solid var(--wc-control);border-radius:6px;background:var(--wc-surface);color:var(--wc-text);font:400 15px/20px "Avenir Next",sans-serif;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.organisation-admin .organisation-primary{background:var(--wc-accent);color:var(--wc-on-accent);border-color:var(--wc-accent)}
.organisation-admin .product-button:hover:not(:disabled){background:var(--wc-hover,var(--wc-active));color:var(--wc-text)}
.organisation-admin button:disabled{opacity:.55;cursor:default}
.organisation-table-wrap{max-width:100%;overflow:auto}
.organisation-admin table{width:100%;border-collapse:collapse;font-size:16px;line-height:24px;text-align:left}
.organisation-admin th,.organisation-admin td{padding:10px 12px;border-bottom:1px solid var(--wc-line);vertical-align:top;overflow-wrap:anywhere;white-space:pre-line}
.organisation-admin th{font-weight:400;color:var(--wc-muted)}
.organisation-admin td:last-child{min-width:110px}
.organisation-admin td p{margin:4px 0;color:var(--wc-muted)}
.organisation-admin strong{font-weight:500}
.organisation-notice,.organisation-error,.organisation-warning,.organisation-current,.organisation-summary{overflow-wrap:anywhere}
.organisation-admin .organisation-dialog{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:24px;overflow:auto;border:1px solid var(--wc-line);border-radius:8px;background:var(--wc-surface);color:var(--wc-text);font:400 16px/24px "Avenir Next",sans-serif}
.organisation-dialog>header{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:20px}
.organisation-dialog form{display:grid;gap:16px}
.organisation-dialog label{display:grid;gap:6px;font-size:14px;line-height:20px}
.organisation-dialog input:not([type="checkbox"]),.organisation-dialog select{box-sizing:border-box;width:320px;max-width:100%;height:44px;padding:9px 12px;border:1px solid var(--wc-control);border-radius:6px;background:var(--wc-field,var(--wc-surface));color:var(--wc-text);font:400 16px/24px "Avenir Next",sans-serif}
.organisation-dialog fieldset{min-width:0;display:grid;gap:16px;margin:0;padding:16px 0;border:0}
.organisation-dialog legend{padding:0;font:400 20px/28px "Avenir Next",sans-serif}
.organisation-dialog .organisation-check{display:flex;align-items:center;gap:10px}
.organisation-dialog input[type="checkbox"]{flex:0 0 18px;width:18px;height:18px;margin:0;accent-color:var(--wc-accent)}
.organisation-dialog .organisation-actions{margin-top:16px}
.organisation-current{padding:16px;border:1px solid var(--wc-line);border-radius:8px}
.organisation-current h3{font-size:16px;font-weight:500}
.organisation-error{border-left:3px solid var(--wc-accent);padding-left:12px}
.organisation-admin [hidden]{display:none!important}
@media(max-width:600px){.organisation-admin .workspace-tab-panel{padding:12px}.organisation-admin .organisation-dialog{padding:16px}.organisation-admin .organisation-tabs{gap:18px}.organisation-admin table{min-width:580px}}

.organisation-archive-filter{display:flex;align-items:center;gap:10px;margin:0 0 16px;font-size:14px;line-height:20px}
.organisation-archive-filter input[type="checkbox"]{flex:0 0 18px;width:18px;height:18px;margin:0;accent-color:var(--wc-accent)}

/* Keep organisation dialog actions distinct from the global dark button surface. */
#authenticated-app.wc-app .organisation-admin .organisation-dialog button.product-button{background:var(--wc-surface);color:var(--wc-text);border:1px solid var(--wc-control)}
#authenticated-app.wc-app .organisation-admin .organisation-dialog button.product-button.organisation-primary{background:var(--wc-accent);color:var(--wc-on-accent);border-color:var(--wc-accent)}
#authenticated-app.wc-app .organisation-admin .organisation-dialog button.product-button:hover:not(:disabled){background:var(--wc-hover,var(--wc-active));color:var(--wc-text);border-color:var(--wc-control)}
#authenticated-app.wc-app .organisation-admin .organisation-dialog button.product-button:disabled{opacity:.55;cursor:default}
#authenticated-app.wc-app .organisation-admin .organisation-dialog button.product-button:focus-visible{outline:2px solid var(--wc-active);outline-offset:3px}

/* Override global important transparent contours only inside this dialog. */
html:root #authenticated-app.wc-app .organisation-admin dialog.organisation-dialog button.product-button{border-color:var(--wc-control)!important}
html:root #authenticated-app.wc-app .organisation-admin dialog.organisation-dialog button.product-button.organisation-primary{border-color:var(--wc-accent)!important}
html:root #authenticated-app.wc-app .organisation-admin dialog.organisation-dialog button.product-button:hover:not(:disabled){border-color:var(--wc-control)!important}
html:root #authenticated-app.wc-app .organisation-admin dialog.organisation-dialog>header{position:static;top:auto;z-index:auto}

@layer mellow-dialog-controls {
/* r115 approved dialog close and compact action groups. Keep text/handlers intact:
   existing busy/conflict guards compare the literal Schließen label. */
html:root body dialog:has(>header>[data-dialog-close])>header{position:static!important;padding-right:64px!important;min-height:44px;box-sizing:border-box}
html:root body #authenticated-app.wc-app dialog>header>button[data-dialog-close],
html:root body dialog>header>button[data-dialog-close],
html:root body #auth-setup button[data-dialog-close]{position:absolute!important;top:12px!important;right:12px!important;bottom:auto!important;left:auto!important;z-index:5!important;box-sizing:border-box!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:0!important;margin:0!important;border:1px solid transparent!important;border-radius:6px!important;background:transparent!important;color:inherit!important;font-size:0!important;line-height:0!important;overflow:hidden!important;text-indent:-9999px!important;box-shadow:none!important;cursor:pointer}
html:root body dialog>header>button[data-dialog-close]::before,html:root body dialog>header>button[data-dialog-close]::after,html:root body #auth-setup button[data-dialog-close]::before,html:root body #auth-setup button[data-dialog-close]::after{content:''!important;display:block!important;position:absolute!important;width:18px!important;height:1.8px!important;top:20px!important;left:12px!important;background:currentColor!important;transform:rotate(45deg)!important;border-radius:1px!important}
html:root body dialog>header>button[data-dialog-close]::after,html:root body #auth-setup button[data-dialog-close]::after{transform:rotate(-45deg)!important}
html:root body dialog>header>button[data-dialog-close]:hover:not(:disabled),html:root body #auth-setup button[data-dialog-close]:hover:not(:disabled){background:var(--wc-hover,var(--d-hover,var(--nb-hover,#e6edf2)))!important;border-color:var(--wc-control,var(--d-control,var(--login-control,var(--nb-control,#748592))))!important}
html:root body dialog>header>button[data-dialog-close]:focus-visible,html:root body #auth-setup button[data-dialog-close]:focus-visible{outline:2px solid var(--wc-focus,var(--d-focus,var(--login-accent,var(--nb-active,#466780))))!important;outline-offset:2px!important}
html:root body dialog>header>button[data-dialog-close]:disabled,html:root body #auth-setup button[data-dialog-close]:disabled{opacity:.55!important;cursor:default}
html:root body #auth-setup h2{padding-right:44px}
html:root body #authenticated-app.wc-app dialog :is(.organisation-actions,.workspace-dialog-actions,.workspace-work-dialog-actions,.ticket-assignment-actions,.wc-photo-footer):not([hidden]){justify-content:flex-end!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important}
html:root body #authenticated-app.wc-app dialog :is(.organisation-actions,.workspace-dialog-actions,.workspace-work-dialog-actions,.ticket-assignment-actions,.wc-photo-footer)>button{flex:0 1 auto!important;width:auto!important;min-width:0!important;margin:0!important;max-width:100%!important}

}

/* Scoped area-administration copy follows the existing 14/20 label scale. */
html:root #authenticated-app.wc-app .organisation-dialog :is(.organisation-area-admin-label,.organisation-area-admin-label span,.organisation-area-admin-hint){font:400 14px/20px "Avenir Next",system-ui,sans-serif}
