/* Scope every rule so other modules keep their independent layouts. */
.people-workspace {--people-yellow:#ffc928;--people-ink:#202631;}
.people-workspace .module-intro p {font-size:13px;}
.people-sample {font-size:12px;color:#77633b;margin:0 0 16px;padding:9px 12px;background:#fff9e7;border:1px solid #f1e6bd;border-radius:9px;}
.people-tabs {display:flex;gap:5px;border-bottom:1px solid #e8e9ec;margin-bottom:24px;overflow-x:auto;scrollbar-width:none;}
.people-tabs button {flex:none;padding:12px 18px;background:transparent;border:0;border-bottom:3px solid transparent;color:#737b87;font:inherit;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap;}
.people-tabs button[aria-selected=true] {border-color:#ffc928;color:#202631;}
.people-tabs button:focus-visible {outline:2px solid #b18000;outline-offset:-3px;}
.people-panel[hidden] {display:none!important;}
.people-panel {animation:people-enter .18s ease-out;}
.people-attendance-layout {display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:20px;align-items:start;}
.people-workspace .card {padding:22px!important;border:1px solid #e8e9ec!important;border-radius:15px!important;box-shadow:0 4px 20px #19212b04!important;min-width:0;}
.people-workspace .card-header {margin-bottom:20px!important;padding-bottom:14px!important;gap:12px;}
.people-workspace .card-title {font-size:16px!important;font-weight:700!important;line-height:1.5!important;}
.people-workspace .input {min-height:44px;font-size:13px!important;}
.people-workspace .data-table th {font-size:11px!important;letter-spacing:0;font-weight:500;color:#7b828b;background:#fafbfc;padding:13px 12px;white-space:nowrap;}
.people-workspace .data-table td {font-size:13px!important;padding:18px 12px!important;line-height:1.6;}
.people-workspace .data-table {min-width:0!important;}
.people-workspace .badge {font-size:11px!important;white-space:normal;}
.people-workspace .label {font-size:12px!important;color:#626c78;}
.people-workspace .btn {font-size:12px!important;min-height:40px;}
.people-disclosure {border-top:1px solid #eceef0;margin-top:16px;padding-top:12px;font-size:12px;}
.people-disclosure > summary {cursor:pointer;color:#727b86;line-height:1.6;padding:3px 0;list-style:none;display:flex;justify-content:space-between;align-items:center;}
.people-disclosure > summary:after {content:'+';font-size:18px;font-weight:400;}
.people-disclosure[open] > summary:after {content:'−';}
.people-disclosure[open] > summary {margin-bottom:12px;color:#202631;}
.people-empty {text-align:center;padding:60px 20px;color:#8b929c;background:#fafbfc;border-radius:12px;}
#view-staff #staffQuotaBanner {background:#faf8ef!important;color:#7b6b38!important;font-size:11px!important;font-weight:400!important;padding:10px!important;line-height:1.8;}
#view-staff #managerLeaveFlexContainer > div {border:1px solid #eceef0!important;padding:18px!important;line-height:1.9;}
#view-staff #commissionRuleSelect {max-width:240px;width:100%!important;}
#view-staff #commissionPoolFormulaBox {background:#fafbfc!important;border-color:#e7eaed!important;color:#636b76!important;line-height:1.9;}
#view-staff #securityAuditLogContainer {max-height:none!important;}
.report-toolbar {display:flex;justify-content:flex-end;margin:0 0 8px;}
.report-toolbar-controls {display:flex;align-items:center;gap:10px;font-size:12px;color:#747d87;}
.report-toolbar .input {width:190px;background:#fff;color:#303742;border:1px solid #e4e7eb;}
.report-kpis {gap:20px!important;}
.report-kpis .stat-card {padding:22px!important;border:1px solid #e8e9ec!important;border-radius:15px!important;background:#fff!important;min-width:0;}
.report-kpis .stat-card:first-child {background:#fff9e5!important;border-color:#f1df9f!important;}
.report-kpis .stat-card > div:first-child {align-items:flex-start;gap:8px;flex-wrap:wrap;}
.report-kpis .stat-val {font-size:31px!important;letter-spacing:-1px;color:#202631!important;margin-top:16px!important;font-weight:750;}
.report-kpis .stat-val small {font-size:13px!important;letter-spacing:0;color:#858d98;}
.report-kpis .people-disclosure {margin-top:10px;padding-top:9px;}
.report-workspace .bar-row {display:grid!important;grid-template-columns:1fr auto;gap:10px!important;margin:18px 0!important;align-items:center;}
.report-workspace .bar-row > span {width:auto!important;font-size:12px!important;font-weight:400!important;}
.report-workspace .bar-track {grid-row:2;grid-column:1/-1;width:100%;height:7px!important;background:#f1f2f4!important;border-radius:5px;overflow:hidden;}
.report-workspace .bar-fill {height:100%!important;background:#ffc928!important;border-radius:5px;}
.report-workspace .bar-row:nth-child(2) .bar-fill {background:#303947!important;}
.report-workspace .bar-row:nth-child(3) .bar-fill {background:#87919d!important;}
.report-workspace .bar-row:nth-child(4) .bar-fill {background:#b4bdc8!important;}
.report-workspace .bar-row:nth-child(5) .bar-fill {background:#d7dde4!important;}
.report-menu-matrix .people-disclosure {margin:0;padding:0;border:0;min-width:110px;}
.report-operations {grid-template-columns:1fr!important;}
.report-workspace .heatmap-table {width:100%;font-size:12px;}
.report-workspace .heatmap-cell {border:4px solid white!important;border-radius:8px;padding:18px 8px!important;}
.report-workspace .hm-low {background:#fff9e7!important;color:#8b7845!important;}
.report-workspace .hm-med {background:#ffedb0!important;color:#76612c!important;}
.report-workspace .hm-high {background:#ffdb65!important;color:#55431b!important;}
.report-workspace .hm-peak {background:#ffc928!important;color:#332b18!important;}
@keyframes people-enter {from {opacity:0;transform:translateY(3px);} to {opacity:1;transform:translateY(0);}}
@media(max-width:1150px) {.people-attendance-layout {grid-template-columns:1fr;} .report-kpis {grid-template-columns:repeat(3,minmax(0,1fr))!important;} .report-kpis .stat-val {font-size:26px!important;} .report-workspace .grid-2 {grid-template-columns:1fr!important;} }
@media(max-width:600px) {.people-tabs {gap:0;margin-bottom:18px;} .people-tabs button {padding:11px 13px;font-size:13px;} .people-workspace .card {padding:16px!important;} .report-kpis {grid-template-columns:1fr!important;gap:10px!important;} .report-kpis .stat-card {padding:18px!important;} .report-kpis .stat-val {font-size:30px!important;margin-top:8px!important;} .people-workspace .data-table {min-width:540px!important;} .people-workspace .card {overflow-x:auto;} .people-workspace .heatmap-table {min-width:600px;} .report-toolbar {justify-content:flex-start;margin-bottom:15px;} .people-sample {font-size:11px;} #view-staff .card-header {flex-wrap:wrap;} .report-operations .card > div:last-child > div > div {flex-wrap:wrap;gap:8px;} }
@media(prefers-reduced-motion:reduce) {.people-panel {animation:none;}}
.report-speed-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px!important;background:transparent!important;border:0!important;padding:0!important}.report-speed-metrics > div {display:flex;flex-direction:column;padding:18px;background:#fafbfc;border-radius:12px;gap:8px}.report-speed-metrics span,.report-speed-metrics small {font-size:12px;color:#78818b}.report-speed-metrics strong {font-size:30px;color:#242c37;font-weight:700}.report-insight {padding:14px;background:#fff9e7;border-radius:10px;color:#78632c;line-height:1.8;font-size:12px}@media(max-width:600px){.report-speed-metrics{gap:6px!important}.report-speed-metrics > div{padding:12px 9px}.report-speed-metrics strong{font-size:25px}}
.people-payroll-subtitle {font-size:12px;color:#77818b;margin:4px 0 0}.people-payroll-toolbar {display:flex;align-items:end;gap:12px;flex-wrap:wrap}.people-payroll-toolbar label {display:grid;gap:7px;font-size:12px;color:#68717c;min-width:180px;flex:1}.people-payroll-toolbar button {min-width:96px}.people-payroll-access {max-width:500px}.people-payroll-access label {display:grid;gap:7px;color:#68717c}.people-payroll-access p {color:#7b858e;line-height:1.6}.people-payroll-source {margin:20px 0 12px;padding:10px 12px;border-radius:9px;background:#fff9e7;color:#7d6735;font-size:12px}.people-payroll-summary {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.people-payroll-stat {display:grid;gap:8px;background:#f8f9fb;border:1px solid #e8eaee;border-radius:12px;padding:16px;min-width:0}.people-payroll-stat span {font-size:12px;color:#737c87}.people-payroll-stat strong {font-size:21px;color:#202631;overflow-wrap:anywhere}.people-payroll-total {background:#fff5d6;border-color:#eeca60}.people-payroll-history {margin-top:28px}.people-payroll-history-title {display:flex;justify-content:space-between;align-items:center;font-size:16px;font-weight:700;margin-bottom:10px}.people-payroll-history-title span {font-size:12px;color:#7d858e;font-weight:400}.people-payroll-ledger {border:1px solid #e8eaee;border-radius:12px;overflow:hidden}.people-payroll-row {display:grid;grid-template-columns:130px 115px minmax(0,1fr) 100px;gap:12px;align-items:center;padding:14px;border-bottom:1px solid #edf0f2;font-size:12px}.people-payroll-row:last-child {border-bottom:0}.people-payroll-row b {font-weight:650}.people-payroll-row em {font-style:normal;text-align:right;color:#5d6771}.people-payroll-note {font-size:11px;color:#76808a;line-height:1.7;margin:15px 0 0}.people-audit-card {margin-top:20px}.people-audit-card .card-header {margin-bottom:4px!important}@media(max-width:1150px){.people-payroll-summary {grid-template-columns:repeat(2,minmax(0,1fr));}}@media(max-width:600px){.people-payroll-toolbar {display:grid;grid-template-columns:1fr 1fr}.people-payroll-toolbar label {min-width:0}.people-payroll-toolbar button {grid-column:1/-1}.people-payroll-summary {grid-template-columns:repeat(2,minmax(0,1fr))}.people-payroll-stat {padding:12px}.people-payroll-stat strong {font-size:18px}.people-payroll-row {grid-template-columns:1fr auto;gap:3px 10px}.people-payroll-row span:nth-child(3) {grid-column:1;grid-row:2}.people-payroll-row em {grid-column:2;grid-row:2}.people-payroll-row b {text-align:right}}
