/* NEWAY ONE v8.0.643 — Staff Directory v2 canonical owner
   Employee accounts are list-first: compact directory + filters + dedicated editor drawer.
   This module owns staff geometry/colors. Shared login, dialog and permission primitives remain elsewhere. */

/* Staff workspace header is intentionally non-sticky so it never covers directory rows while scrolling. */
#staffSettingsModal .neway-workspace-modal-head-8621{position:relative;top:auto;z-index:1;margin-bottom:10px;box-shadow:none;backdrop-filter:none;}
#staffSettingsModal .staff-modal-head-actions-8305{display:flex;align-items:center;justify-content:flex-end;gap:8px;white-space:nowrap;}
#staffSettingsModal .staff-new-button-8305{min-height:38px;height:38px;border-radius:10px;padding:0 13px;font-size:13px;font-weight:700;line-height:1.2;}

/* v8.0.643: the directory workspace scrolls as one page.  The fullscreen workspace
   is a flex column, so every direct directory section must keep its natural height;
   otherwise the browser shrinks the header/tabs/table to the viewport, causing text
   overlap and clipping rows instead of creating scrollable content. */
#staffSettingsModal > .staff-directory-page-8642{scrollbar-gutter:stable;-webkit-overflow-scrolling:touch;}
#staffSettingsModal > .staff-directory-page-8642 > .staff-directory-headbar-8642,
#staffSettingsModal > .staff-directory-page-8642 > .account-permission-tabs-8639,
#staffSettingsModal > .staff-directory-page-8642 > .staff-directory-summary-8642,
#staffSettingsModal > .staff-directory-page-8642 > .staff-directory-toolbar-8642,
#staffSettingsModal > .staff-directory-page-8642 > .staff-directory-list-toolbar-8642,
#staffSettingsModal > .staff-directory-page-8642 > .staff-directory-table-8642{flex:0 0 auto;}
#staffSettingsModal .staff-directory-headbar-8642{overflow:visible;}
#staffSettingsModal .staff-directory-headbar-8642 + .account-permission-tabs-8639{margin-top:0;}

.account-actions-8305{display:flex;justify-content:flex-end;margin:0 0 14px;}
.account-add-staff-8305{min-height:42px;padding:0 16px;font-size:15px;font-weight:600;border-radius:12px;line-height:1.2;}
.account-permission-tabs-8639{display:flex;align-items:center;gap:6px;margin:0 0 10px;padding:4px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(255,255,255,.035);width:max-content;max-width:100%;}
.account-permission-tabs-8639 button{min-height:36px;padding:0 15px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:13px;font-weight:700;cursor:pointer;line-height:1.2;}
.account-permission-tabs-8639 button.active{background:rgba(240,74,163,.16);color:#fff;box-shadow:inset 0 0 0 1px rgba(240,74,163,.28);}

.staff-directory-summary-8642{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;}
.staff-current-user-box{min-width:0;flex:1;margin:0;padding:9px 12px;border:1px solid rgba(255,255,255,.10);border-radius:12px;background:rgba(255,255,255,.035);color:#fffaf2;font-weight:600;line-height:1.35;}
.staff-current-user-box small{display:inline;margin-left:8px;color:var(--muted);font-weight:400;line-height:1.35;}
.staff-directory-counts-8642{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;}
.staff-directory-counts-8642 span{display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:0 10px;border:1px solid rgba(255,255,255,.09);border-radius:999px;background:rgba(255,255,255,.035);color:var(--muted);font-size:12px;white-space:nowrap;}
.staff-directory-counts-8642 b{font-size:13px;color:#fffaf2;}

.staff-directory-toolbar-8642{display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(4,minmax(130px,.75fr));gap:8px;align-items:end;margin:0 0 8px;padding:10px;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:rgba(255,255,255,.025);}
.staff-directory-toolbar-8642 label{min-width:0;margin:0;}
.staff-directory-toolbar-8642 label>span{display:block;margin:0 0 5px;color:var(--muted);font-size:11.5px;font-weight:650;line-height:1.2;}
.staff-directory-toolbar-8642 :is(input,select){width:100%;min-width:0;min-height:38px;height:38px;border-radius:10px;}
.staff-search-field-8642{min-width:220px;}

.staff-list-toolbar-8315{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 7px;flex-wrap:wrap;}
.staff-status-tabs-8315{display:flex;gap:5px;padding:3px;border-radius:10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);}
.staff-status-tabs-8315 button{min-height:31px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:12px;font-weight:700;cursor:pointer;line-height:1.2;}
.staff-status-tabs-8315 button.active{background:rgba(240,74,163,.16);color:#fff;}
.staff-status-tabs-8315 button span{margin-left:3px;opacity:.78;}
.staff-directory-scope-summary-8642{color:var(--muted);font-size:11.5px;}

.staff-directory-table-8642{min-width:0;border:1px solid rgba(255,255,255,.10);border-radius:14px;overflow:hidden;background:rgba(255,255,255,.018);}
.staff-directory-columns-8642,.staff-directory-row-8642{display:grid;grid-template-columns:minmax(150px,1.15fr) minmax(78px,.55fr) minmax(110px,.72fr) minmax(200px,1.35fr) minmax(135px,.9fr) minmax(82px,.55fr) minmax(135px,.9fr) minmax(150px,1fr);gap:8px;align-items:center;}
.staff-directory-columns-8642{min-height:38px;padding:0 11px;border-bottom:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.035);color:var(--muted);font-size:11px;font-weight:700;}
.staff-user-list{display:block;margin:0;}
.staff-directory-row-8642{min-height:54px;padding:7px 11px;border-bottom:1px solid rgba(255,255,255,.075);color:#fffaf2;}
.staff-directory-row-8642:last-child{border-bottom:0;}
.staff-directory-row-8642.is-left{opacity:.72;}
.staff-directory-row-8642>div{min-width:0;}
.staff-directory-person-8642{display:flex;flex-direction:column;gap:2px;}
.staff-directory-person-8642 b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:1.25;}
.staff-directory-person-8642 small,.staff-directory-store-8642 small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:10.5px;line-height:1.2;}
.staff-directory-no-8642{display:flex;align-items:center;gap:5px;flex-wrap:wrap;font-variant-numeric:tabular-nums;font-size:12px;}
.role-pill{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;padding:3px 8px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.055);color:#fffaf2;font-size:11px;font-weight:700;line-height:1.2;white-space:nowrap;}
.staff-status-pill-8642{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:750;white-space:nowrap;}
.staff-status-pill-8642.active{background:rgba(48,190,118,.13);border:1px solid rgba(48,190,118,.20);color:#8be2b2;}
.staff-status-pill-8642.left{background:rgba(255,184,77,.10);border:1px solid rgba(255,184,77,.18);color:#e7c68f;}
.staff-activation-badge-8321{display:inline-flex;padding:2px 6px;border-radius:999px;background:rgba(255,184,77,.12);color:#ffc56a;font-size:9.5px;font-weight:700;line-height:1.2;}
.staff-directory-store-8642{display:flex;align-items:center;gap:5px;overflow:hidden;}
.staff-directory-store-8642>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;}
.staff-directory-login-8642{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums;}
.staff-directory-actions-8642{display:flex;align-items:center;justify-content:flex-end;gap:5px;}
.staff-directory-actions-8642 button{min-height:30px;height:30px;padding:0 9px;border-radius:8px;font-size:11px;white-space:nowrap;}
.staff-delete-link-8315{border-color:rgba(255,91,91,.26);color:#ff9f9f;}
.staff-protected-inline-8642,.staff-directory-readonly-8642{display:inline-flex;align-items:center;min-height:26px;padding:3px 7px;border-radius:8px;background:rgba(255,255,255,.04);color:var(--muted);font-size:10.5px;white-space:nowrap;}
.staff-directory-empty-8642{margin:0;border:0;border-radius:0;min-height:120px;display:grid;place-items:center;}

/* Inline group assignment stays available without turning every employee into a large card. */
.staff-quick-permission-group-8639{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px;margin:0;padding:0;border:0;background:transparent;}
.staff-quick-permission-group-8639 select{width:100%;min-width:0;min-height:30px;height:30px;border-radius:8px;font-size:11px;padding-top:0;padding-bottom:0;}
.staff-quick-permission-group-8639 button{min-height:30px;height:30px;padding:0 7px;border-radius:8px;font-size:10.5px;}
.staff-user-permission-group-8636{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f48ac3;font-size:11px;font-weight:700;}

/* Dedicated editor drawer: form no longer occupies the directory page. */
.staff-editor-layer-8642{position:fixed;inset:0;z-index:10130;display:grid;grid-template-columns:1fr minmax(360px,min(520px,44vw));pointer-events:none;}
.staff-editor-layer-8642.hidden{display:none;}
.staff-editor-scrim-8642{grid-column:1/-1;grid-row:1;position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:0;background:rgba(4,5,10,.38);backdrop-filter:blur(2px);pointer-events:auto;cursor:default;}
.staff-editor-drawer-8642{grid-column:2;grid-row:1;position:relative;z-index:2;display:flex;flex-direction:column;min-width:0;height:100dvh;background:var(--bg);border-left:1px solid rgba(255,255,255,.10);box-shadow:-22px 0 58px rgba(0,0,0,.24);pointer-events:auto;overflow:hidden;}
.staff-editor-head-8642{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px 13px;border-bottom:1px solid rgba(255,255,255,.10);}
.staff-editor-head-8642>div{min-width:0;}
.staff-editor-head-8642 small{color:#f48ac3;font-size:11px;font-weight:750;}
.staff-editor-head-8642 h3{margin:4px 0 0;font-size:20px;line-height:1.2;}
.staff-editor-head-8642 p{margin:5px 0 0;color:var(--muted);font-size:11.5px;line-height:1.4;}
.staff-editor-close-8642{flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:0;border-radius:10px;font-size:20px;line-height:1;}
.staff-editor-body-8642{flex:1;min-height:0;overflow:auto;padding:14px 18px 20px;}
.staff-form-card{margin:0;padding:0;border:0;border-radius:0;background:transparent;}
.staff-form-card>label{margin:0 0 10px;}
.staff-editor-section-8642{padding:0 0 14px;margin:0 0 14px;border-bottom:1px solid rgba(255,255,255,.09);}
.staff-editor-section-8642:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0;}
.staff-editor-section-8642 h4{margin:0 0 10px;font-size:13px;line-height:1.2;}
.staff-editor-section-8642 .date-grid{gap:8px;}
.staff-editor-section-8642 :is(input,select){min-height:42px;}
.staff-legacy-username-8321{display:none;}
.staff-permission-group-field-8636{margin:0 0 10px;}
.staff-permission-group-field-8636 label{margin:0;}
.staff-permission-group-field-8636 small{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.4;}
.staff-store-access-8309{margin:10px 0 0;padding:10px;border-radius:12px;background:rgba(240,74,163,.05);border:1px solid rgba(240,74,163,.16);}
.staff-store-access-head-8309{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px;}
.staff-store-access-head-8309 b{font-size:13px;}
.staff-store-access-head-8309 small{display:block;color:var(--muted);font-size:10.5px;line-height:1.4;margin-top:2px;}
.staff-store-access-list-8309{display:grid;grid-template-columns:1fr;gap:6px;}
.staff-store-choice-8309{display:flex;align-items:center;gap:8px;min-height:38px;padding:7px 9px;border-radius:9px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);cursor:pointer;}
.staff-store-choice-8309 input{width:16px;height:16px;margin:0;accent-color:#f04aa3;}
.staff-store-choice-8309 span{min-width:0;display:flex;flex-direction:column;gap:1px;}
.staff-store-choice-8309 b{font-size:12px;}
.staff-store-choice-8309 small{font-size:10px;color:var(--muted);}
.staff-store-choice-8309.disabled{opacity:.5;cursor:not-allowed;}
.staff-store-access-summary-8309{display:block;margin-top:6px;color:#f58abd;font-size:10.5px;font-weight:700;}
.staff-warning{margin-top:8px;padding:8px 10px;border-radius:10px;background:rgba(255,184,77,.08);border:1px solid rgba(255,184,77,.16);color:#e7c68f;font-size:11px;line-height:1.4;}
.staff-editor-actions-8642{display:grid;grid-template-columns:1fr 1.18fr;gap:8px;padding:10px 18px calc(10px + env(safe-area-inset-bottom));border-top:1px solid rgba(255,255,255,.10);background:color-mix(in srgb,var(--bg) 95%,transparent);box-shadow:0 -10px 24px rgba(0,0,0,.08);}
.staff-editor-actions-8642 button{min-height:44px;border-radius:11px;font-weight:700;}
body.staff-editor-open-8642{overflow:hidden;}

/* Delete impact remains a true compact dialog. */
.staff-delete-modal-8315{max-width:620px;}
.staff-delete-target-8315{padding:13px 14px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.09);margin-bottom:12px;}
.staff-delete-target-8315 b{font-size:17px;}
.staff-delete-target-8315 small{display:block;color:var(--muted);margin-top:4px;}
.staff-impact-grid-8315{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0;}
.staff-impact-item-8315{padding:11px 12px;border-radius:12px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.075);}
.staff-impact-item-8315 b{display:block;font-size:20px;}
.staff-impact-item-8315 small{color:var(--muted);}
.staff-delete-warning-8315{padding:12px 14px;border-radius:13px;background:rgba(255,91,91,.07);border:1px solid rgba(255,91,91,.18);color:#e8c3c3;font-size:13px;line-height:1.55;}
.staff-delete-warning-8315 strong{color:#ffaaaa;}
.staff-delete-actions-8315{display:flex;justify-content:flex-end;gap:8px;margin-top:16px;flex-wrap:wrap;}
.staff-permanent-delete-btn-8315{min-height:40px;padding:0 14px;border-radius:11px;border:1px solid rgba(255,91,91,.32);background:rgba(255,91,91,.12);color:#ffaaaa;font-weight:600;line-height:1.2;}
.staff-protected-8307{margin-top:10px;padding:8px 10px;border-radius:10px;background:rgba(240,74,163,.08);color:#f4a8d0;font-size:12.5px;font-weight:600;line-height:1.4;}
.super-admin-note-8307{margin:10px 0 14px;padding:12px 14px;border:1px solid rgba(240,74,163,.22);border-radius:12px;background:rgba(240,74,163,.07);color:#f6c4df;font-size:13px;line-height:1.5;}
.staff-store-scope-note-8316{display:block;color:#f1c36a;}
.staff-company-pill-8318{display:inline-flex;padding:3px 7px;border-radius:999px;background:rgba(240,74,163,.1);font-size:11px;font-weight:600;color:#f48ac3;line-height:1.2;}

@media (max-width:1180px){
  .staff-directory-toolbar-8642{grid-template-columns:minmax(220px,1.4fr) repeat(2,minmax(130px,.7fr));}
  .staff-directory-toolbar-8642 label:nth-child(4),.staff-directory-toolbar-8642 label:nth-child(5){grid-column:auto;}
  .staff-directory-columns-8642,.staff-directory-row-8642{grid-template-columns:minmax(145px,1.2fr) 72px 96px minmax(175px,1.2fr) minmax(120px,.9fr) 72px minmax(115px,.9fr) minmax(130px,.95fr);}
}
@media (max-width:900px){
  .staff-directory-toolbar-8642{grid-template-columns:repeat(2,minmax(0,1fr));}
  .staff-search-field-8642{grid-column:1/-1;min-width:0;}
  .staff-directory-columns-8642{display:none;}
  .staff-user-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px;}
  .staff-directory-row-8642{display:grid;grid-template-columns:1fr auto;gap:7px 10px;align-items:center;min-height:0;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:11px;background:rgba(255,255,255,.025);}
  .staff-directory-person-8642{grid-column:1;grid-row:1;}.staff-directory-no-8642{grid-column:2;grid-row:1;justify-content:flex-end;}
  .staff-directory-row-8642>div:nth-child(3){grid-column:1;grid-row:2;}.staff-directory-group-8642{grid-column:1/-1;grid-row:3;}
  .staff-directory-store-8642{grid-column:2;grid-row:2;justify-content:flex-end;}.staff-directory-row-8642>div:nth-child(6){grid-column:1;grid-row:4;}
  .staff-directory-login-8642{grid-column:2;grid-row:4;text-align:right;}.staff-directory-row-8642>div:nth-child(8){grid-column:1/-1;grid-row:5;}
  .staff-directory-actions-8642{justify-content:flex-end;}
  .staff-editor-layer-8642{grid-template-columns:1fr minmax(340px,70vw);}
}
@media (max-width:620px){
  #staffSettingsModal .neway-workspace-modal-head-8621{margin-bottom:8px;}
  #staffSettingsModal .staff-modal-head-actions-8305{align-self:end;}
  #staffSettingsModal .staff-new-button-8305{min-height:36px;height:36px;padding:0 10px;}
  .account-permission-tabs-8639{display:grid;grid-template-columns:1fr 1fr;width:100%;}
  .account-permission-tabs-8639 button{padding:0 10px;}
  .staff-directory-summary-8642{align-items:flex-start;flex-direction:column;}
  .staff-current-user-box{width:100%;font-size:12px;}.staff-current-user-box small{display:block;margin:3px 0 0;}
  .staff-directory-counts-8642{width:100%;justify-content:flex-start;}
  .staff-directory-toolbar-8642{grid-template-columns:1fr 1fr;padding:8px;}
  .staff-search-field-8642{grid-column:1/-1;}
  .staff-list-toolbar-8315{align-items:flex-start;}
  .staff-status-tabs-8315{width:100%;}.staff-status-tabs-8315 button{flex:1;}
  .staff-directory-scope-summary-8642{width:100%;}
  .staff-user-list{grid-template-columns:1fr;gap:7px;padding:7px;}
  .staff-editor-layer-8642{display:block;}
  .staff-editor-scrim-8642{display:none;}
  .staff-editor-drawer-8642{width:100vw;height:100dvh;border-left:0;}
  .staff-editor-head-8642{padding:14px 14px 12px;}
  .staff-editor-body-8642{padding:12px 14px 18px;}
  .staff-editor-actions-8642{padding-left:14px;padding-right:14px;}
  .staff-impact-grid-8315{grid-template-columns:1fr 1fr;}
  .staff-delete-actions-8315{display:grid;grid-template-columns:1fr 1fr;}.staff-permanent-delete-btn-8315{grid-column:1/-1;}
}

/* NEWAY ONE v8.0.647 — Permission Group density + true viewport-bottom action bar.
   Canonical cleanup: resets global label margin on permission choices, restores spacing
   between group rows, and lets the workspace footer sit on the real bottom edge. */
/* NEWAY ONE v8.0.636 — Permission Group foundation (canonical Staff owner). */
.staff-permission-group-field-8636{margin:12px 0 2px;}
.staff-permission-group-field-8636 label{margin:0;}
.staff-permission-group-field-8636 label>span{display:block;margin:0 0 6px;color:var(--muted);font-size:12px;font-weight:600;}
.staff-permission-group-field-8636 select{width:100%;min-height:42px;}
.staff-permission-group-field-8636 small{display:block;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.45;}
.permission-groups-workspace-8636{--neway-workspace-bottom-pad-8622:0px;display:flex;flex-direction:column;min-height:100%;}
.permission-groups-head-8636{flex:0 0 auto;}
.permission-groups-head-actions-8636{display:flex;align-items:center;gap:8px;}
.permission-groups-layout-8636{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);align-items:start;gap:10px;flex:0 0 auto;min-height:auto;padding:10px 0 0;}
.permission-groups-list-panel-8636,.permission-group-editor-8636{min-width:0;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:rgba(255,255,255,.028);}
.permission-groups-list-panel-8636{display:flex;flex-direction:column;align-self:start;position:sticky;top:104px;max-height:calc(100dvh - 126px);overflow:hidden;}
.permission-groups-list-head-8636{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border-bottom:1px solid rgba(255,255,255,.08);}
.permission-groups-list-head-8636 b{display:block;font-size:15px;line-height:1.2;}
.permission-groups-list-head-8636 small{display:block;margin-top:2px;color:var(--muted);font-size:11px;line-height:1.25;}
.permission-groups-list-head-8636>span{display:inline-flex;align-items:center;justify-content:center;min-width:27px;height:23px;padding:0 7px;border-radius:999px;background:rgba(240,74,163,.12);color:#f48ac3;font-weight:700;font-size:11px;}
.permission-groups-list-8636{display:grid;gap:5px;overflow:auto;padding:5px;}
.permission-group-row-8636{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;width:100%;min-height:38px;padding:5px 7px;border:1px solid transparent;border-radius:8px;background:transparent;color:inherit;text-align:left;cursor:pointer;}
.permission-group-row-8636:hover{background:rgba(255,255,255,.035);}
.permission-group-row-8636.active{background:rgba(240,74,163,.12);border-color:rgba(240,74,163,.42);}
.permission-group-row-main-8636{min-width:0;}
.permission-group-row-main-8636 b{display:flex;align-items:center;gap:5px;min-width:0;font-size:12px;line-height:1.2;}
.permission-group-row-main-8636 small{display:block;margin-top:2px;color:var(--muted);font-size:9.5px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.permission-group-row-meta-8636{display:flex;flex-direction:column;align-items:flex-end;gap:3px;}
.permission-group-badge-8636{display:inline-flex;padding:1px 5px;border-radius:999px;background:rgba(255,255,255,.06);color:var(--muted);font-size:8.5px;font-weight:700;white-space:nowrap;}
.permission-group-badge-8636.system{background:rgba(54,132,255,.13);color:#91b9ff;}
.permission-group-badge-8636.custom{background:rgba(45,184,111,.13);color:#84dfac;}
.permission-group-editor-8636{display:flex;flex-direction:column;min-height:calc(100dvh - 104px);padding:8px 8px 0;overflow:visible;}
.permission-group-editor-head-8636{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid rgba(255,255,255,.08);}
.permission-group-editor-head-8636 h3{margin:0;font-size:19px;line-height:1.2;}
.permission-group-editor-head-8636 p{margin:3px 0 0;color:var(--muted);font-size:11.5px;line-height:1.35;}
.permission-group-editor-actions-8636{display:flex;gap:7px;flex-shrink:0;}
.permission-group-basic-grid-8636{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,.52fr);gap:9px 10px;margin-top:12px;}
.permission-group-basic-grid-8636 label{margin:0;}
.permission-group-basic-grid-8636 label>span{display:block;margin:0 0 4px;color:var(--muted);font-size:11px;font-weight:600;}
.permission-group-basic-grid-8636 :is(input,select,textarea){width:100%;min-height:38px;}
.permission-group-basic-grid-8636 textarea{min-height:58px;}
.permission-group-description-8636{grid-column:1/-1;}
.permission-financial-scope-help-8648{display:block;margin-top:3px;color:var(--muted);font-size:9.5px;line-height:1.25;}
.permission-group-scope-note-8636{display:flex;align-items:center;gap:8px;margin-top:9px;padding:8px 10px;border:1px solid rgba(240,74,163,.17);border-radius:10px;background:rgba(240,74,163,.055);font-size:11.5px;line-height:1.35;}
.permission-group-scope-note-8636 b{white-space:nowrap;color:#f48ac3;}
.permission-group-scope-note-8636 span{color:var(--muted);}
.permission-catalog-toolbar-8636{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0 7px;}
.permission-catalog-toolbar-8636 b{display:block;font-size:14px;}
.permission-catalog-toolbar-8636 small{display:block;margin-top:2px;color:var(--muted);font-size:10.5px;line-height:1.3;}
.permission-catalog-toolbar-8636>div:last-child{display:flex;gap:6px;}
.permission-catalog-8636{display:grid;gap:5px;}
.permission-category-8636{border:1px solid rgba(255,255,255,.085);border-radius:9px;overflow:hidden;background:rgba(255,255,255,.02);}
.permission-category-head-8636{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;background:rgba(255,255,255,.025);}
.permission-category-head-8636 b{font-size:13px;line-height:1.25;}
.permission-category-head-8636 small{color:var(--muted);font-size:10.5px;line-height:1.25;}
.permission-category-grid-8636{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;padding:4px;}
.permission-choice-8636{display:flex;align-items:center;gap:5px;min-height:26px;margin:0;padding:3px 5px;border:1px solid rgba(255,255,255,.07);border-radius:6px;background:rgba(255,255,255,.025);cursor:pointer;}
.permission-choice-8636 input{width:13px;height:13px;margin:0;accent-color:#f04aa3;flex:0 0 auto;cursor:pointer;}
.permission-choice-8636 span{min-width:0;}
.permission-choice-8636 b{display:block;font-size:10.5px;line-height:1.15;}
.permission-choice-8636 small{display:inline-block;margin:0 0 0 3px;color:var(--muted);font-size:8px;line-height:1.1;}
.permission-choice-8636.risk{border-color:rgba(255,184,77,.18);background:rgba(255,184,77,.04);}
.permission-choice-8636.risk b{color:#f1c36a;}
.permission-group-terminal-actions-8636{display:flex;align-items:center;justify-content:space-between;gap:8px;position:sticky;bottom:0;z-index:24;margin:auto -8px 0;padding:7px 8px calc(7px + env(safe-area-inset-bottom));border-top:1px solid rgba(255,255,255,.09);background:color-mix(in srgb,var(--bg) 98%,transparent);backdrop-filter:blur(14px);box-shadow:0 -8px 18px rgba(0,0,0,.07);}
.permission-group-terminal-actions-8636>*{min-width:132px;min-height:36px;}
.permission-group-terminal-actions-8636 .primary{margin-left:auto;}
.permission-group-terminal-actions-8636 .primary:disabled{opacity:.78;cursor:not-allowed;}
@media (max-width:1400px){.permission-category-grid-8636{grid-template-columns:repeat(5,minmax(0,1fr));}}
@media (max-width:1150px){.permission-category-grid-8636{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media (max-width:980px){.permission-groups-layout-8636{grid-template-columns:1fr;}.permission-groups-list-panel-8636{position:relative;top:auto;max-height:220px;}.permission-group-editor-8636{min-height:auto;}.permission-category-grid-8636{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:620px){.permission-groups-layout-8636{padding-top:8px;}.permission-groups-head-actions-8636{width:100%;}.permission-groups-head-actions-8636 .primary{width:100%;}.permission-group-editor-head-8636{display:block;}.permission-group-editor-actions-8636{margin-top:8px;display:flex;}.permission-group-basic-grid-8636{grid-template-columns:1fr;}.permission-group-description-8636{grid-column:auto;}.permission-category-grid-8636{grid-template-columns:1fr;}.permission-catalog-toolbar-8636{display:block;}.permission-catalog-toolbar-8636>div:last-child{margin-top:8px;}.permission-group-terminal-actions-8636{display:grid;grid-template-columns:1fr 1fr;}.permission-group-terminal-actions-8636>*{min-width:0;}.permission-group-terminal-actions-8636 .primary{margin:0;}}

/* NEWAY ONE v8.0.639 — Permission group member panel retained; staff directory grouping is superseded by v8.0.642. */

/* Light theme: Staff module owns its own colors/layout. */

html[data-neway-theme="light"] body .permission-groups-list-panel-8636,
html[data-neway-theme="light"] body .permission-group-editor-8636{background:#fff;border-color:var(--lt-line);color:var(--lt-ink);}
html[data-neway-theme="light"] body .permission-groups-list-head-8636,
html[data-neway-theme="light"] body .permission-group-editor-head-8636,
html[data-neway-theme="light"] body .permission-category-8636{border-color:var(--lt-line);}
html[data-neway-theme="light"] body .permission-group-row-8636{color:var(--lt-ink);}
html[data-neway-theme="light"] body .permission-group-row-8636:hover{background:#f8f9fb;}
html[data-neway-theme="light"] body .permission-group-row-8636.active{background:#fff0f7;border-color:#e8a4c6;}
html[data-neway-theme="light"] body .permission-group-row-main-8636 small,
html[data-neway-theme="light"] body .permission-groups-list-head-8636 small,
html[data-neway-theme="light"] body .permission-group-editor-head-8636 p,
html[data-neway-theme="light"] body .permission-catalog-toolbar-8636 small,
html[data-neway-theme="light"] body .permission-category-head-8636 small,
html[data-neway-theme="light"] body .permission-choice-8636 small,
html[data-neway-theme="light"] body .permission-group-field-8636 small{color:var(--lt-sub);}
html[data-neway-theme="light"] body .permission-category-8636,
html[data-neway-theme="light"] body .permission-category-head-8636,
html[data-neway-theme="light"] body .permission-choice-8636{background:#fff;border-color:var(--lt-line);color:var(--lt-ink);}
html[data-neway-theme="light"] body .permission-choice-8636.risk{background:#fffaf0;border-color:#ead8ae;}
html[data-neway-theme="light"] body .permission-choice-8636.risk b{color:#8b6415;}
html[data-neway-theme="light"] body .permission-group-scope-note-8636{background:#fff5fa;border-color:#efc7da;}
html[data-neway-theme="light"] body .permission-group-scope-note-8636 b{color:#b72d70;}
html[data-neway-theme="light"] body .permission-group-scope-note-8636 span{color:var(--lt-sub);}
html[data-neway-theme="light"] body .permission-financial-scope-help-8648{color:var(--lt-sub);}
html[data-neway-theme="light"] body .permission-group-terminal-actions-8636{background:rgba(255,255,255,.97);border-color:var(--lt-line);box-shadow:0 -10px 24px rgba(31,34,44,.08);}
html[data-neway-theme="light"] body .permission-group-terminal-actions-8636 .primary:not(:disabled){background:#c92c79;color:#fff;-webkit-text-fill-color:#fff;border-color:#c92c79;box-shadow:0 8px 20px rgba(201,44,121,.18);}
html[data-neway-theme="light"] body .permission-group-terminal-actions-8636 .primary:disabled{background:#edf0f4;color:#68717e;-webkit-text-fill-color:#68717e;border-color:#d7dce3;opacity:1;box-shadow:none;}
html[data-neway-theme="light"] body .permission-group-terminal-actions-8636 .ghost{background:#fff;color:#2c3139;-webkit-text-fill-color:#2c3139;border-color:var(--lt-line);}
html[data-neway-theme="light"] body .permission-group-editor-8636.is-system-template .permission-choice-8636{color:#303741;background:#fbfcfd;}
html[data-neway-theme="light"] body .permission-group-editor-8636.is-system-template .permission-choice-8636 b{color:#303741;-webkit-text-fill-color:#303741;}
html[data-neway-theme="light"] body .permission-group-editor-8636.is-system-template .permission-choice-8636.risk b{color:#8b6415;-webkit-text-fill-color:#8b6415;}
html[data-neway-theme="light"] body .permission-group-editor-8636 :is(input,select,textarea):disabled{background:#f4f6f8;color:#4b5563;-webkit-text-fill-color:#4b5563;border-color:#d8dde5;opacity:1;}
html[data-neway-theme="light"] body .permission-group-editor-8636.is-system-template .permission-choice-8636{cursor:pointer;}




.permission-group-members-8639{margin-top:9px;padding:9px 10px;border:1px solid rgba(255,255,255,.085);border-radius:10px;background:rgba(255,255,255,.022);}
.permission-group-members-head-8639{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;}
.permission-group-members-head-8639 b{display:block;font-size:13.5px;}
.permission-group-members-head-8639 small{display:block;margin-top:2px;color:var(--muted);font-size:11.5px;}
.permission-group-member-list-8639{display:flex;flex-wrap:wrap;gap:5px;}
.permission-group-member-chip-8639{display:inline-flex;flex-direction:column;gap:1px;padding:5px 7px;border:1px solid rgba(255,255,255,.08);border-radius:8px;background:rgba(255,255,255,.03);}
.permission-group-member-chip-8639 b{font-size:12px;line-height:1.25;}
.permission-group-member-chip-8639 small{color:var(--muted);font-size:10.5px;line-height:1.25;}
html[data-neway-theme="light"] body .permission-group-members-8639{background:#fff;border-color:var(--lt-line);}
html[data-neway-theme="light"] body .permission-group-member-chip-8639{background:#f8f9fb;border-color:var(--lt-line);color:var(--lt-ink);}
html[data-neway-theme="light"] body .permission-group-member-chip-8639 small{color:var(--lt-sub);}

/* Light theme: staff directory and editor own their colors directly. */
html[data-neway-theme="light"] body #staffSettingsModal{--text:#20242b;--muted:#626a75;--line:#dfe3e8;--card:#fff;--panel:#fff;}
html[data-neway-theme="light"] body #staffSettingsModal .staff-directory-headbar-8642{background:var(--bg);border-color:var(--lt-line);}
html[data-neway-theme="light"] body .account-permission-tabs-8639{background:#fff;border-color:var(--lt-line);}
html[data-neway-theme="light"] body .account-permission-tabs-8639 button{color:var(--lt-sub);}
html[data-neway-theme="light"] body .account-permission-tabs-8639 button.active{background:#fdeaf4;color:#a91f61;-webkit-text-fill-color:currentColor;box-shadow:inset 0 0 0 1px #e9b6d0;}
html[data-neway-theme="light"] body .staff-current-user-box,
html[data-neway-theme="light"] body .staff-directory-toolbar-8642,
html[data-neway-theme="light"] body .staff-directory-table-8642{background:#fff;border-color:var(--lt-line);color:var(--lt-ink);box-shadow:none;}
html[data-neway-theme="light"] body .staff-current-user-box{color:var(--lt-ink);}
html[data-neway-theme="light"] body .staff-current-user-box small,
html[data-neway-theme="light"] body .staff-directory-toolbar-8642 label>span,
html[data-neway-theme="light"] body .staff-directory-scope-summary-8642,
html[data-neway-theme="light"] body .staff-directory-login-8642,
html[data-neway-theme="light"] body .staff-directory-person-8642 small,
html[data-neway-theme="light"] body .staff-directory-store-8642 small{color:var(--lt-sub);}
html[data-neway-theme="light"] body .staff-directory-counts-8642 span{background:#fff;border-color:var(--lt-line);color:var(--lt-sub);}
html[data-neway-theme="light"] body .staff-directory-counts-8642 b{color:var(--lt-ink);}
html[data-neway-theme="light"] body .staff-status-tabs-8315{background:#fff;border-color:var(--lt-line);}
html[data-neway-theme="light"] body .staff-status-tabs-8315 button{color:var(--lt-sub);}
html[data-neway-theme="light"] body .staff-status-tabs-8315 button.active{background:#fdeaf4;color:#a91f61;-webkit-text-fill-color:currentColor;box-shadow:inset 0 0 0 1px #e9b6d0;}
html[data-neway-theme="light"] body .staff-directory-columns-8642{background:#f7f8fa;border-color:var(--lt-line);color:var(--lt-sub);}
html[data-neway-theme="light"] body .staff-directory-row-8642{color:var(--lt-ink);border-color:var(--lt-line);}
html[data-neway-theme="light"] body .staff-directory-row-8642.is-left{opacity:1;background:#fafbfc;}
html[data-neway-theme="light"] body .staff-directory-person-8642 b,
html[data-neway-theme="light"] body .staff-directory-no-8642,
html[data-neway-theme="light"] body .staff-directory-store-8642>span,
html[data-neway-theme="light"] body .staff-directory-group-8642{color:var(--lt-ink);-webkit-text-fill-color:var(--lt-ink);}
html[data-neway-theme="light"] body .staff-directory-person-8642 small,
html[data-neway-theme="light"] body .staff-directory-store-8642 small,
html[data-neway-theme="light"] body .staff-directory-login-8642,
html[data-neway-theme="light"] body .staff-directory-scope-summary-8642{color:#5f6672;-webkit-text-fill-color:#5f6672;}
html[data-neway-theme="light"] body .role-pill{background:#f5f7fa;border-color:var(--lt-line);color:#384150;-webkit-text-fill-color:#384150;}
html[data-neway-theme="light"] body .staff-status-pill-8642.active{background:#eaf9f1;border-color:#c9ead9;color:#167848;}
html[data-neway-theme="light"] body .staff-status-pill-8642.left{background:#fff8e9;border-color:#eed9ad;color:#8b6415;}
html[data-neway-theme="light"] body .staff-activation-badge-8321{background:#fff4dc;color:#8b6415;}
html[data-neway-theme="light"] body .staff-protected-inline-8642,
html[data-neway-theme="light"] body .staff-directory-readonly-8642{background:#f6f7f9;color:var(--lt-sub);}
html[data-neway-theme="light"] body .staff-user-permission-group-8636{color:#b72d70;-webkit-text-fill-color:#b72d70;}
html[data-neway-theme="light"] body .staff-quick-permission-group-8639 select{color:#202027;-webkit-text-fill-color:#202027;}
html[data-neway-theme="light"] body .staff-directory-actions-8642 button,
html[data-neway-theme="light"] body .staff-quick-permission-group-8639 button{color:#2b2b33;-webkit-text-fill-color:#2b2b33;}
html[data-neway-theme="light"] body .staff-editor-scrim-8642{background:rgba(25,28,36,.22);}
html[data-neway-theme="light"] body .staff-editor-drawer-8642{background:#fff;border-color:var(--lt-line);box-shadow:-22px 0 58px rgba(31,34,44,.16);}
html[data-neway-theme="light"] body .staff-editor-head-8642,
html[data-neway-theme="light"] body .staff-editor-section-8642,
html[data-neway-theme="light"] body .staff-editor-actions-8642{border-color:var(--lt-line);}
html[data-neway-theme="light"] body .staff-editor-head-8642 h3,
html[data-neway-theme="light"] body .staff-editor-section-8642 h4{color:var(--lt-ink);}
html[data-neway-theme="light"] body .staff-editor-head-8642 p,
html[data-neway-theme="light"] body .staff-permission-group-field-8636 small{color:var(--lt-sub);}
html[data-neway-theme="light"] body .staff-store-access-8309{background:#fff7fb;border-color:#efc7da;}
html[data-neway-theme="light"] body .staff-store-choice-8309{background:#fff;border-color:var(--lt-line);color:var(--lt-ink);}
html[data-neway-theme="light"] body .staff-store-choice-8309 small{color:var(--lt-sub);}
html[data-neway-theme="light"] body .staff-warning{background:#fff7e8;border-color:#ead8ae;color:#77540f;}
html[data-neway-theme="light"] body .staff-editor-actions-8642{background:rgba(255,255,255,.96);}
html[data-neway-theme="light"] body .super-admin-note-8307,
html[data-neway-theme="light"] body .staff-protected-8307{background:#fff3f8;border-color:#efc7da;color:#8b2f60;}

