/* Scoped customer operations; shared by the HQ workspace and native WP admin. */
.sgor-people {box-sizing:border-box;min-width:0;max-width:100%;font-family:var(--helium-type-body,system-ui)}
.sgor-people *, .sgor-people *::before, .sgor-people *::after {box-sizing:border-box}
.sgor-people .card, .sgor-people.card {width:100%;max-width:none;margin:16px 0;padding:22px;background:var(--helium-color-card,#fff);border:1px solid var(--helium-color-border,#e2e7e5);border-radius:22px;box-shadow:none}
.sgor-people .sgor-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;align-items:end}
.sgor-people.sgor-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;align-items:end}
.sgor-people .sgor-fields>p, .sgor-people .sgor-fields>.sgor-check {grid-column:1/-1}
.sgor-people label {display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:500}
.sgor-people .sgor-check, .sgor-people label:has(input[type=checkbox]) {display:flex;flex-direction:row;align-items:center;gap:9px}
.sgor-people input:not([type=checkbox]):not([type=hidden]), .sgor-people select {display:block;width:100%;min-width:0;min-height:46px;padding:9px 13px;font:inherit;color:var(--helium-color-text,#192d38);background:var(--helium-color-field,#edf2f6);border:1px solid var(--helium-color-border,#dce4e6);border-radius:12px}
.sgor-people input:focus-visible, .sgor-people select:focus-visible, .sgor-people button:focus-visible {outline:3px solid var(--helium-color-focus,#7960b3);outline-offset:2px}
.sgor-people .filters {display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:20px 0}
.sgor-people .filters .input {flex:2 1 240px;width:auto}
.sgor-people .filters select {flex:1 1 180px;width:auto}
.sgor-people .sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.sgor-people .btn {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;gap:8px;border:1px solid var(--helium-color-border,#dce4e6);border-radius:14px;background:var(--helium-color-card,#fff);color:var(--helium-color-text,#192d38);font:600 14px/1.4 var(--helium-type-body,system-ui);text-decoration:none;cursor:pointer;width:fit-content}
.sgor-people .btn-primary {background:var(--helium-color-brand-dark,#294f27);color:var(--he-color-on-dark,#fff);border-color:transparent}
.sgor-people .table-wrap {width:100%;overflow-x:auto}
.sgor-people table {width:100%;border-collapse:collapse;min-width:960px;text-align:left}
.sgor-people th, .sgor-people td {padding:13px 15px;border-bottom:1px solid var(--helium-color-border,#e2e7e5);vertical-align:top;overflow-wrap:anywhere}
.sgor-people th {font-size:12px;color:var(--helium-color-muted,#586b5b)}
.sgor-people .pager {display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:16px}
.sgor-people .pager .row {display:flex;gap:6px;flex-wrap:wrap}
.sgor-people a[aria-current=page] {outline:2px solid var(--helium-color-brand-dark,#294f27)}
.sgor-people h2 {font-size:23px;margin:0 0 16px}
.sgor-people p {font-size:14px;line-height:1.6}
.sgor-people summary {cursor:pointer}
.sgor-people details[open]>summary {margin-bottom:18px}
.sgor-people .stack {display:grid;gap:16px}
@media(max-width:600px){.sgor-people .card,.sgor-people.card{padding:16px}.sgor-people .filters .input,.sgor-people .filters select{flex-basis:100%}.sgor-people .btn{max-width:100%;white-space:normal}}
/* Fields remain recognisable against either the canvas or a white card. */
.sgor-people .filters input.input,
.sgor-people .filters select.select,
.sgor-people .sgor-fields input.input,
.sgor-people .sgor-fields select.select {
 background:#fff !important;
 color:var(--helium-color-text,#192d38) !important;
 border:1.5px solid #778b80 !important;
 box-shadow:inset 0 1px 2px rgb(20 43 29 / 5%);
}
.sgor-people input::placeholder {color:#52645b !important;opacity:1}
.sgor-people .filters input:focus,
.sgor-people .filters select:focus,
.sgor-people .sgor-fields input:focus,
.sgor-people .sgor-fields select:focus {border-color:var(--helium-color-brand-dark,#294f27) !important;outline:3px solid var(--helium-color-focus,#7960b3);outline-offset:2px}
.sgor-people .sgor-grant-result,.sgor-people .sgor-grant-receipt,.sgor-people .sgor-grant-error {padding:14px 16px;border-radius:12px;line-height:1.6;overflow-wrap:anywhere}
.sgor-people .sgor-grant-receipt {background:#edf5ec;color:#214720;border:1px solid #91aa8b}
.sgor-people .sgor-grant-error {background:#fff1ef;color:#822f26;border:1px solid #c0837a}
.sgor-people [data-grant-selection] {font-weight:600}
.sgor-people svg{width:22px;height:22px;max-width:100%;flex-shrink:0}
.sgor-people .empty{padding:24px;text-align:center}
.sgor-people .empty svg{width:36px;height:36px}
.sgor-people .dl{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,3fr);gap:14px 24px;margin:0;padding:4px}
.sgor-people .dl dt{font-weight:600}.sgor-people .dl dd{margin:0;overflow-wrap:anywhere}
.sgor-people .card.flush{padding:0}.sgor-people .card-head{padding:18px 20px}
.sgor-people .kpi-value{font-size:32px;line-height:1.3;font-weight:600}
.sgor-people .sgor-directory-filters{flex-basis:100%;padding:12px;border:1px solid #778b80;border-radius:12px;background:var(--helium-color-card,#fff)}
.sgor-people th a{color:inherit;display:inline-flex;gap:6px;align-items:center;text-decoration:underline;text-underline-offset:4px}
.sgor-people .table-wrap table{min-width:760px}
@media(max-width:600px){.sgor-people .dl{grid-template-columns:1fr;gap:6px}.sgor-people .dl dd{margin-bottom:10px}}

.sgor-point-history{margin:24px 0}.sgor-point-history>.card-head{padding:20px 0 12px}.sgor-point-history h2{margin:0}.sgor-point-history>.segment{margin-bottom:16px}.sgor-point-change{display:inline-block;padding:7px 12px;border-radius:10px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.sgor-point-change.is-credit{color:#205d32;background:#e7f2e6}.sgor-point-change.is-debit{color:#a32320;background:#fce8e4}.sgor-history-ref{display:block;max-width:220px;overflow-wrap:anywhere;font-size:12px}.sgor-pin-help{display:block;color:#8a2620;font-size:13px;line-height:1.5}.sgor-pin-help[data-valid="true"]{color:#205d32}.sgor-people button:disabled{opacity:.5;cursor:not-allowed}
/* Native checkbox semantics remain visible across WordPress, HQ and cashier surfaces. */
:is(.sgor-admin,.sgor-people,.app,.perks-cashier) input[type=checkbox]:not(.switch):not([role=switch]){appearance:auto!important;-webkit-appearance:checkbox!important;accent-color:var(--helium-color-brand-dark,#294f27);color-scheme:light;position:static!important;opacity:1!important;display:inline-block!important;visibility:visible!important;pointer-events:auto!important;clip:auto!important;clip-path:none!important;transform:none!important;width:22px!important;min-width:22px!important;height:22px!important;min-height:22px!important;margin:0 8px 0 0!important;vertical-align:middle;flex-shrink:0;cursor:pointer;z-index:auto!important}
:is(.sgor-admin,.sgor-people,.app,.perks-cashier) input[type=checkbox]:not(.switch):not([role=switch])::before,:is(.sgor-admin,.sgor-people,.app,.perks-cashier) input[type=checkbox]:not(.switch):not([role=switch])::after{content:none!important}
:is(.sgor-admin,.sgor-people,.app,.perks-cashier) .he-draw-check .he-check-box{display:none!important}
:is(.sgor-admin,.sgor-people,.app,.perks-cashier) input[type=checkbox]:focus-visible{outline:3px solid var(--helium-color-focus,#7960b3)!important;outline-offset:3px}
:is(.sgor-admin,.sgor-people,.app,.perks-cashier) input[type=checkbox]:disabled{cursor:not-allowed;opacity:.5!important}
.sgor-people .grid{display:grid;gap:16px}.sgor-people .grid.kpis{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.sgor-people .kpi-label{font-size:13px;font-weight:600;color:#52645b}.sgor-people .kpi-foot{font-size:12px;color:#52645b;margin-top:8px}.sgor-people .kpi.card{padding:18px;margin:8px 0}.sgor-people .kpi-value{margin-top:8px}.sgor-people .row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.sgor-people .row.between{justify-content:space-between}.sgor-people .hint{font-size:13px;color:#52645b}.sgor-people .eyebrow{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#52645b}.sgor-people .cell-main{font-weight:600}.sgor-people .cell-sub{display:block;color:#52645b;font-size:12px;margin-top:5px}.sgor-people .r{text-align:right}.sgor-people .chip{display:inline-block;padding:5px 9px;border-radius:8px;font-size:12px;background:var(--helium-color-control,#edf2eb)}
.sgor-people .sgor-member-person{display:flex;align-items:center;gap:10px;min-width:180px}.sgor-member-avatar{width:36px;height:36px;display:inline-grid;place-items:center;flex:none;border-radius:12px;background:var(--helium-color-control,#edf2eb);color:var(--helium-color-brand-dark,#294f27);font-weight:700}.sgor-people [data-crm-points]{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}.sgor-people .table tbody tr:has(input[name="crm_ids[]"]:checked){background:#edf4e9}.sgor-selection-tools{display:flex;justify-content:space-between;align-items:center;padding:12px 4px;gap:12px}.sgor-selection-tools label{display:inline-flex;align-items:center;flex-direction:row;min-height:44px;cursor:pointer}.sgor-people details.sgor-grant>summary{font-weight:600;cursor:pointer;color:var(--helium-color-brand-dark,#294f27)}.sgor-people details.sgor-grant[open]>summary{margin-bottom:16px}.sgor-people details.sgor-grant>button{margin-top:12px}
.sgor-funding{margin:20px 0 28px}.sgor-funding .table-wrap table{min-width:640px}.sgor-funding h2{margin:6px 0}.sgor-funding h3{margin:24px 0 8px}.sgor-funding .card.flush{margin:12px 0}.sgor-funding .empty h3{margin:12px 0}.sgor-funding [data-funding-status]{padding:12px;border:1px solid #b98a37;border-radius:10px;background:#fff5da;color:#594317}
