/* v16.4.52 — additive premium-density refinements. Presentation only. */
/* Report categories: proper inline disclosure; preserve original report routes. */
.kx-report-category-grid{align-items:start}
.kx-report-category-item{min-width:0}
.kx-report-category-card{display:grid;width:100%;min-height:136px;box-sizing:border-box;padding:15px;text-align:left;cursor:pointer}
.kx-report-category-card[aria-expanded="true"]{border-color:#0a796f;background:#edf7f3;box-shadow:0 0 0 2px rgba(8,127,117,.12)}
.kx-report-category-card .kx-report-state{font-size:11px}
.kx-report-category-expanded{margin-top:8px;padding:10px;border:1px solid #c9dfd8;background:#f8fcfa;border-radius:12px}
.kx-report-category-expanded[hidden]{display:none!important}
.kx-report-category-expanded .kx-report-modal-list{grid-template-columns:1fr;gap:6px}
.kx-report-category-expanded .kx-report-modal-list button{padding:10px;max-width:100%}
.kx-report-category-card:focus-visible,.kx-report-category-expanded button:focus-visible{outline:3px solid #087f75;outline-offset:3px}
/* Import workflow: unmistakable selection, never rely on pale teal only. */
.complete-import-open .employee-import-mode.active,.complete-import-open .employee-import-mode[aria-pressed="true"]{
 position:relative;background:#d4f2e8!important;border:2px solid #066e5a!important;
 box-shadow:inset 0 0 0 1px #066e5a,0 2px 12px #0d69532b!important;padding:12px 34px 12px 13px;
}
.complete-import-open .employee-import-mode.active::after,.complete-import-open .employee-import-mode[aria-pressed="true"]::after{
 content:'✓';position:absolute;top:10px;right:12px;display:grid;place-items:center;
 width:22px;height:22px;border-radius:50%;background:#066e5a;color:#fff;font:800 14px/1 system-ui;
}
.complete-import-open .employee-import-mode.active b,.complete-import-open .employee-import-mode[aria-pressed="true"] b{color:#064b3e!important;font-weight:850}
.complete-import-open .employee-import-mode.active span,.complete-import-open .employee-import-mode[aria-pressed="true"] span{color:#1a5749!important}
.complete-import-open .employee-import-mode:focus-visible{outline:3px solid #0b806b;outline-offset:3px}
/* Compact card typography and balanced wide-screen rows, no numeric truncation. */
#payrollRevampStats.stats,.release-results .stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
#payrollRevampStats .stat,.release-results .stat{min-width:0;padding:12px 14px!important;min-height:95px!important}
#payrollRevampStats .stat strong,.release-results .stat strong{font-size:clamp(19px,1.6vw,24px)!important;line-height:1.2!important;letter-spacing:-.025em;overflow-wrap:anywhere}
#payrollRevampStats .stat small,.release-results .stat small{font-size:10px!important;line-height:1.3}
.kx-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.kx-kpi{min-width:0;padding:11px 12px;min-height:90px}
.kx-kpi strong{font-size:clamp(18px,1.6vw,23px)!important;line-height:1.2!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere}
.kx-kpi small,.kx-kpi span{font-size:10px}
/* Payroll approval: contained dialog with one predictable body scroller and anchored actions. */
#modal:has(.stage52-payroll-summary) .modal-card{width:min(940px,calc(100vw - 32px))!important;max-width:940px!important;
 max-height:min(88dvh,850px)!important;display:flex;flex-direction:column;overflow:hidden;border-radius:17px}
#modal:has(.stage52-payroll-summary) .modal-body{min-height:0;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;flex:1 1 auto;padding:15px 20px}
#modal:has(.stage52-payroll-summary) .modal-head{flex:0 0 auto;padding:15px 20px 12px}
#modal:has(.stage52-payroll-summary) .modal-foot{flex:0 0 auto;overflow:visible;display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;padding:11px 16px;border-top:1px solid #dce9e3;background:#fff}
.stage52-payroll-head h2{font-size:clamp(18px,2vw,23px)!important;line-height:1.2!important;margin:2px 0!important}
.stage52-payroll-head p{font-size:11px;color:#61776c;margin:3px 0}
.stage52-eyebrow{font-size:9px;letter-spacing:.12em;color:#087f75;font-weight:800}
.stage52-payroll-summary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;margin:0!important}
.stage52-payroll-summary>.detail-item{min-width:0;min-height:75px;padding:11px!important;margin:0!important}
.stage52-payroll-summary>.detail-item small{display:block;font-size:10px;color:#657a71}
.stage52-payroll-summary>.detail-item strong{display:block;font-size:clamp(17px,1.7vw,23px)!important;line-height:1.22;overflow-wrap:anywhere;white-space:normal}
.stage52-approval-journey{margin:14px 0;padding:12px;border:1px solid #d5e8e1;border-radius:11px;background:#f8fcfa;max-width:100%;overflow-x:hidden}
.stage52-approval-journey h3{margin:0 0 8px;font-size:12px}
.stage52-approval-journey .flow{max-width:100%;min-width:0}
.stage52-payroll-actions .btn{min-height:34px;font-size:11px;padding:7px 12px}
@media(max-width:900px){#payrollRevampStats.stats,.release-results .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.kx-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kx-report-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#payrollRevampStats.stats,.release-results .stats,.kx-report-category-grid{grid-template-columns:1fr!important}.kx-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stage52-payroll-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}#modal:has(.stage52-payroll-summary) .modal-card{width:calc(100vw - 12px)!important;max-height:94dvh!important}#modal:has(.stage52-payroll-summary) .modal-head,#modal:has(.stage52-payroll-summary) .modal-body{padding:12px!important}}
@media print{.kx-report-category-expanded[hidden]{display:none!important}}

/* The active Reports Centre uses native <details>: both Open and Close exist in source. */
.enterprise-report-category-card{min-width:0}
.enterprise-report-category-card[open]{border-color:#0b8171!important;background:#f2faf7!important}
.enterprise-report-category-card summary{cursor:pointer}
.enterprise-report-category-card summary:focus-visible{outline:3px solid #0b8279;outline-offset:3px}
.enterprise-report-category-card .report-action-open,.enterprise-report-category-card .report-action-close{font-weight:800;font-size:11px}
.enterprise-report-category-card:not([open]) .report-action-close{display:none!important}
.enterprise-report-category-card[open] .report-action-open{display:none!important}
.enterprise-report-category-card[open] .report-action-close{display:inline!important}
/* Four-stage progression never collapses into one huge pill. */
.stage52-stepper{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:0;margin:0}
.stage52-stepper li{min-width:0;background:#fff;border:1px solid #d5e5de;border-radius:9px;padding:10px 8px;display:flex;gap:7px;align-items:center}
.stage52-stepper li.is-current{border-color:#087f75;background:#e7f5ef}
.stage52-stepper li.is-done{background:#f2faf6}
.stage52-stepper li .stage52-step-number{flex:0 0 23px;width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:#dcece5;color:#246356;font-size:10px;font-weight:800}
.stage52-stepper li.is-done .stage52-step-number{background:#087f75;color:#fff}
.stage52-stepper li strong{display:block;font-size:10px;line-height:1.25;overflow-wrap:anywhere}
.stage52-stepper li small{display:block;color:#617b70;font-size:9px;margin-top:2px;overflow-wrap:anywhere}
@media(max-width:630px){.stage52-stepper{grid-template-columns:repeat(2,minmax(0,1fr))}}
