/* Scoped navigation and actions, with shared focus and spacing. */
.nmc-bell{position:fixed;bottom:20px;left:20px;z-index:1300;max-width:calc(100vw - 40px)}
.nmc-bell>button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 18px;border:1px solid #ceadea;border-radius:12px;background:#8704bd;color:#fff;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}
.nmc-bell>div{margin-bottom:8px;padding:8px;border:1px solid #d9c6ec;border-radius:14px;background:#fff;box-shadow:0 8px 30px #32104733}
.nmc-bell>div a{display:block;padding:10px 14px;color:#34214b;text-decoration:none;border-radius:8px}.nmc-bell>div a:hover{background:#f2e8fb}
.nmc-toast{position:fixed;bottom:80px;left:20px;z-index:1301;max-width:min(420px,calc(100vw - 40px));padding:0;margin:0;background:#fff;color:#34214b;border-radius:12px;box-shadow:0 6px 30px #32104722}.nmc-toast:not(:empty){padding:12px 16px}
.nmc-table{overflow:auto}.nmc-table table{width:100%}.nmc-stats{display:flex;flex-wrap:wrap;gap:12px}.nmc-stats>div{display:grid;gap:4px;min-width:110px;padding:16px;border:1px solid #ddcbe9;border-radius:12px}.nmc-stats strong{font-size:1.6rem}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #2ca2e8;outline-offset:3px}

.nmc-bell[hidden],.nmc-bell [hidden]{display:none!important}.nci-controls{padding:16px 0;display:grid;gap:10px}.nci-controls h2,.nci-controls p{margin:0}.nci-controls button{justify-self:start;min-height:44px}.nci-controls button:disabled{opacity:.55;cursor:not-allowed}.nci-table{overflow-x:auto}.nci-table table{width:100%;border-collapse:collapse}.nci-table td,.nci-table th{padding:12px;text-align:left;vertical-align:top}.nci-table details{min-width:150px}.nci-table tfoot{font-weight:bold}
@media(max-width:700px){.nmc-bell{bottom:12px;left:12px}.nci-controls button{width:100%}.nci-table{max-width:100%}}
/* Existing membership remains selectable for other bulk actions, but cannot be added twice. */
#invoice-selection-table tr.nci-member{background:rgba(255,190,40,.18);box-shadow:inset 4px 0 #b66b00}
.nci-membership{display:block;margin-top:8px;font-size:.85rem;font-weight:700;text-decoration:underline}
.nci-controls select{max-width:100%;min-height:44px}.nci-manage{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:12px 0}

/* Keep private messages clear of the shared staff inbox launcher. */
.nmc-bell{left:max(16px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));max-width:calc(100vw - 32px)}
body:has(.nvh-staff-chat-alert:not([hidden])) .nmc-bell{bottom:calc(max(16px,env(safe-area-inset-bottom)) + 72px)}
.nmc-bell>button{min-height:48px;max-width:100%;white-space:normal}
.nmc-bell>div{position:absolute;left:0;bottom:calc(100% + 10px);width:min(300px,calc(100vw - 32px));box-sizing:border-box;max-height:calc(100vh - 180px);max-height:calc(100dvh - 180px);overflow-y:auto;margin:0}
.nmc-toast{bottom:calc(max(16px,env(safe-area-inset-bottom)) + 64px)}
body:has(.nvh-staff-chat-alert:not([hidden])) .nmc-toast{bottom:calc(max(16px,env(safe-area-inset-bottom)) + 136px)}
body:has(.nmc-bell:not([hidden])) .nvh-staff-chat-status:not(:empty){bottom:calc(max(16px,env(safe-area-inset-bottom)) + 136px)}
