.registryPanel h2,.registryPanel h3{margin:8px 0;font-size:1.05rem}.registryPanel td,.registryPanel th{padding:5px 7px;vertical-align:top}.registryPanel td small{display:block;font-size:.74rem;opacity:.8}.registryPanel .toolbar{gap:6px;align-items:end;margin:6px 0}.registryPanel label{font-size:.8rem}.registryPanel input,.registryPanel select{padding:6px 8px}.registryPanel .platformTable{max-height:55vh;overflow:auto}.registryPanel .registryFields{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}.registryPanel .registryChecks{display:flex;flex-wrap:wrap;gap:5px 15px}.registryPanel .check{display:flex;gap:5px;align-items:center}.registryPanel fieldset{margin:8px 0;padding:8px;border:1px solid var(--border,#b8c8d8);border-radius:6px}.registryPanel .registryMetrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.registryMetrics .card{padding:9px}.registryMetrics small,.registryMetrics strong{display:block}.registryPanel .notice{padding:9px;border-radius:5px;background:var(--card,#eef4fa)}.registryPanel .notice.success{color:var(--ok-ink);background:var(--ok-bg)}.registryPanel .notice.warn{color:var(--warn-ink);background:var(--warn-bg)}.registryPanel .registryAttention{color:var(--warn-ink)}.registryPanel .success{background:#167344;color:white;border-color:#167344}.registryPanel .danger{background:#b62f3d;color:white}.registryPanel .badge{font-size:.72rem;padding:2px 5px}.registryPanel textarea{min-height:50px}.registryPanel .active{outline:2px solid #5487ac}@media(max-width:600px){.registryPanel .registryMetrics{grid-template-columns:1fr}.registryPanel .platformTable{max-height:none}}@media print{.registryPanel nav,.registryPanel button{display:none}}

/* Isolate module tabs from the global sidebar navigation rules. */
.registryPanel>nav.toolbar{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:5px;margin:4px 0 10px}
.registryPanel>nav.toolbar>button{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;width:auto;min-height:28px;margin:0;padding:5px 8px;border:1px solid var(--line,#d4dfec);border-radius:6px;background:var(--panel,#fff);color:var(--ink,#172b45);font-size:0.6875rem;line-height:1.3;white-space:nowrap}
.registryPanel>nav.toolbar>button:hover{background:var(--hover,#eef4fb)}
.registryPanel>nav.toolbar>button.active{background:var(--primary,#204e79);color:#fff;border-color:var(--primary,#204e79);outline:none}
.registryPanel>nav.toolbar>button:focus-visible{outline:2px solid var(--focus,#3684c9);outline-offset:2px}
.registryPanel .registryIcon{display:inline-block;vertical-align:-2px;flex:none;width:13px;height:13px;pointer-events:none}

/* ERP membership filters remain beside the unit/search controls. */
.registryPanel .registryDirectoryFilters{flex-wrap:wrap;align-items:end}
.registryPanel .registrySearch{flex:1 1 220px;max-width:380px}
.registryPanel .registryActiveFilters{display:flex;flex-wrap:wrap;gap:5px 12px;align-items:center;margin:0;padding:4px 8px 6px;min-width:210px}
.registryPanel .registryActiveFilters legend{padding:0 4px;font-size:.74rem}
.registryPanel .registryActiveFilters .check{white-space:nowrap;font-size:.76rem;min-height:24px}
.registryPanel .registryActiveFilters input[type=checkbox]{width:15px;height:15px;margin:0;flex:0 0 15px}
.registryPanel .registryActivityHint{margin:4px 0 8px;font-size:.75rem}
@media(max-width:600px){.registryPanel .registryDirectoryFilters>label,.registryPanel .registryActiveFilters{width:100%;max-width:none}.registryPanel .registrySearch{flex-basis:100%}.registryPanel .registryActiveFilters .check{width:auto}.registryPanel .registryActiveFilters{box-sizing:border-box}}

/* Compact checkbox selection; the request still filters before pagination. */
.registryPanel .registryRolePicker{position:relative;min-width:220px;max-width:300px;flex:0 1 220px;font-size:.8rem}
.registryPanel .registryRolePicker>span{display:block;margin-bottom:3px;font-weight:600}
.registryPanel #regRoleFilter>summary{position:relative;list-style:none;cursor:pointer;border:1px solid var(--line,#d4dfec);border-radius:6px;background:var(--field,#fff);color:var(--ink,#172b45);padding:6px 27px 6px 8px;min-height:30px;box-sizing:border-box}
.registryPanel #regRoleFilter>summary::-webkit-details-marker{display:none}
.registryPanel #regRoleFilter>summary:after{content:'⌄';position:absolute;right:9px}
.registryPanel #regRoleFilter>summary:focus-visible{outline:2px solid var(--focus,#3684c9);outline-offset:2px}
.registryPanel .registryRoleOptions{position:absolute;top:100%;left:0;z-index:35;min-width:100%;width:max-content;max-width:min(320px,85vw);max-height:360px;overflow:auto;box-sizing:border-box;margin:4px 0 0;padding:8px 12px;background:var(--panel,#fff);color:var(--ink,#172b45);border:1px solid var(--line,#d4dfec);box-shadow:var(--shadow)}
.registryPanel .registryRoleOptions .check{min-height:27px;gap:6px;margin:2px 0;white-space:nowrap}
.registryPanel .registryRoleOptions input{width:15px;height:15px;margin:0;flex:0 0 15px}
.registryPanel .registryRoleOptions .note{font-size:.73rem;white-space:normal;max-width:240px}
.registryPanel .registryBindingReason{display:block;max-width:360px;margin-top:5px;color:var(--warn-ink,#795000);line-height:1.45}
@media(max-width:600px){.registryPanel .registryRolePicker{width:100%;max-width:none;flex:1 1 100%}.registryPanel .registryRoleOptions{max-width:100%;width:100%}.registryPanel .registryRoleOptions .check{min-height:34px}}

.registrySync{margin:0 0 12px;padding:8px 10px;border:1px solid var(--line,#d4dfec);border-radius:7px;background:var(--panel,#fff)}
.registrySync .toolbar{align-items:center}.registrySync .toolbar>strong{margin-right:auto;font-size:.83rem}
.registrySync .registryMetrics{font-size:.78rem}.registrySync .registryMetrics strong{font-size:.82rem}
.registrySync .notice{margin:6px 0 0;padding:6px 8px;font-size:.78rem}
.registrySync #regPreview:empty{display:none}.registrySync details{margin-top:8px}
@media print{.registrySync{display:none}}
