/* JAGRO SYSTEM V1.0.151 • Performance desktop-only */
@media(max-width:1023px){#jagroPerformanceModule,[data-jds-module="performance"],#jagroPerformanceImportModal,#jagroPerformancePdfModal{display:none!important}}
@media(min-width:1024px){
#jagroPerformanceModule{position:relative!important;left:auto!important;right:auto!important;width:auto!important;max-width:none!important;margin:0 18px 30px 262px!important;background:#f4f8f6;color:#173f33;min-height:calc(100vh - 30px);box-sizing:border-box;border-radius:0 0 18px 18px}
#jagroPerformanceModule.hidden{display:none!important}
#jagroPerformanceModule>.module-topbar{position:relative!important;top:auto!important;z-index:2!important;transform:none!important}
.perf-top-actions{display:flex;gap:8px;flex-wrap:wrap}.perf-top-actions button{border:0;border-radius:10px;padding:10px 13px;font-size:10px;font-weight:950;cursor:pointer}.perf-primary{background:#0b7653;color:#fff}.perf-secondary{background:#fff;color:#0b6549;border:1px solid #d7e5de!important}.perf-print{background:#173f33;color:#fff}
.perf-shell{padding:18px}.perf-hero{background:linear-gradient(120deg,#073d2c,#0b7653);color:#fff;border-radius:18px;padding:20px 22px;display:flex;justify-content:space-between;gap:20px;align-items:center;box-shadow:0 12px 30px rgba(7,61,44,.12)}.perf-hero small{font-size:10px;font-weight:900;letter-spacing:.12em;opacity:.78}.perf-hero h1{margin:5px 0 4px;font-size:25px}.perf-hero p{margin:0;opacity:.84;font-size:12px}.perf-hero-score{text-align:right}.perf-hero-score b{font-size:38px;line-height:1}.perf-hero-score span{display:block;font-size:10px;font-weight:900;opacity:.8;margin-top:4px}
.perf-toolbar{display:grid;grid-template-columns:170px 170px minmax(220px,1fr) auto;gap:10px;margin:14px 0}.perf-toolbar label{background:#fff;border:1px solid #dbe8e2;border-radius:12px;padding:7px 10px;font-size:9px;font-weight:900;color:#60756c}.perf-toolbar input,.perf-toolbar select{display:block;width:100%;border:0;outline:0;font-size:12px;font-weight:800;color:#173f33;background:transparent;margin-top:3px}.perf-refresh{align-self:stretch;border:0;border-radius:12px;background:#e6f2ed;color:#0b6549;font-weight:950;padding:0 16px;cursor:pointer}.perf-refresh[disabled]{opacity:.7;cursor:wait}.perf-spinner{display:inline-block;width:13px;height:13px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:perfSpin .7s linear infinite;vertical-align:-2px;margin-right:6px}@keyframes perfSpin{to{transform:rotate(360deg)}}
.perf-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:12px}.perf-kpi{background:#fff;border:1px solid #dbe8e2;border-radius:14px;padding:14px;box-shadow:0 5px 16px rgba(7,61,44,.04)}.perf-kpi small{display:block;font-size:9px;font-weight:950;color:#71847c;letter-spacing:.04em}.perf-kpi b{display:block;font-size:23px;margin-top:5px;color:#173f33}.perf-kpi span{font-size:9px;color:#789087;font-weight:700}.perf-kpi.good b{color:#087b56}.perf-kpi.warn b{color:#b7791f}.perf-kpi.bad b{color:#b42318}
.perf-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,.85fr);gap:12px}.perf-card{background:#fff;border:1px solid #dbe8e2;border-radius:15px;padding:15px;box-shadow:0 5px 18px rgba(7,61,44,.04)}.perf-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.perf-card-head small{display:block;color:#71847c;font-size:9px;font-weight:950;letter-spacing:.08em}.perf-card-head h2{margin:2px 0 0;font-size:16px}.perf-card-head span{font-size:9px;font-weight:850;color:#71847c}
.perf-bars{display:flex;align-items:flex-end;gap:7px;height:190px;padding:15px 4px 2px;border-bottom:1px solid #e6eee9}.perf-bar-col{flex:1;min-width:24px;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px}.perf-bar{width:min(34px,80%);background:linear-gradient(180deg,#2ea579,#0b7653);border-radius:7px 7px 2px 2px;min-height:3px}.perf-bar-col b{font-size:9px}.perf-bar-col span{font-size:8px;max-width:58px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#667c73}.perf-donut{width:150px;height:150px;border-radius:50%;margin:12px auto;display:grid;place-items:center;background:conic-gradient(#087b56 0 var(--good),#d69a1c var(--good) var(--attention),#b42318 var(--attention) 100%)}.perf-donut:after{content:"";width:94px;height:94px;background:#fff;border-radius:50%;position:absolute}.perf-donut-wrap{position:relative;text-align:center}.perf-donut-center{position:absolute;inset:0;display:grid;place-content:center;z-index:1}.perf-donut-center b{font-size:25px}.perf-donut-center span{font-size:8px;font-weight:900;color:#71847c}.perf-legend{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;font-size:9px;font-weight:850;color:#60756c}.perf-legend i{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:4px}.perf-legend .g{background:#087b56}.perf-legend .a{background:#d69a1c}.perf-legend .r{background:#b42318}
.perf-ranking{margin-top:12px}.perf-rank-head,.perf-rank-row{display:grid;grid-template-columns:46px minmax(220px,1.8fr) 82px 90px 78px 90px 100px minmax(220px,1.5fr);gap:8px;align-items:center}.perf-rank-head{padding:8px 12px;font-size:8px;font-weight:950;color:#71847c}.perf-rank-row{background:#fff;border:1px solid #dbe8e2;border-radius:13px;padding:10px 12px;margin-bottom:7px;box-shadow:0 3px 12px rgba(7,61,44,.03)}.perf-pos{font-size:17px;font-weight:950;color:#60756c}.perf-person b{display:block;font-size:11px}.perf-person span{font-size:8px;color:#789087}.perf-score{font-size:19px;font-weight:950}.perf-score.good{color:#087b56}.perf-score.att{color:#b7791f}.perf-score.bad{color:#b42318}.perf-cell b{display:block;font-size:11px}.perf-cell span{font-size:8px;color:#789087}.perf-impact{font-size:9px;line-height:1.35;color:#526a60;font-weight:750}.perf-status{display:inline-block;border-radius:999px;padding:4px 7px;font-size:8px;font-weight:950}.perf-status.good{background:#e3f5ed;color:#087b56}.perf-status.att{background:#fff3d6;color:#9a650e}.perf-status.bad{background:#fde9e7;color:#b42318}
.perf-empty{padding:30px;text-align:center;color:#71847c;font-size:12px}.perf-import-log{margin-top:12px;background:#eef6f2;border:1px solid #d8e8e0;border-radius:12px;padding:10px 12px;font-size:10px;color:#526a60}.perf-import-log b{color:#0b6549}
.perf-modal{position:fixed;inset:0;background:rgba(4,29,21,.56);z-index:5000;display:flex;align-items:center;justify-content:center;padding:22px}.perf-modal.hidden{display:none!important}.perf-modal-card{width:min(760px,96vw);max-height:88vh;overflow:auto;background:#fff;border-radius:18px;padding:20px;box-shadow:0 28px 80px rgba(0,0,0,.25)}.perf-modal-card h2{margin:0 0 4px}.perf-modal-card>p{margin:0 0 15px;color:#6c8178;font-size:11px}.perf-drop{border:2px dashed #bcd5ca;border-radius:15px;padding:26px;text-align:center;background:#f7fbf9}.perf-drop input{margin-top:12px}.perf-import-state{text-align:center;padding:18px}.perf-import-state .bigspin{width:34px;height:34px;border:4px solid #d6e9e0;border-top-color:#0b7653;border-radius:50%;animation:perfSpin .7s linear infinite;margin:0 auto 10px}.perf-preview{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.perf-preview div{background:#f3f8f5;border-radius:10px;padding:10px}.perf-preview small{display:block;font-size:8px;color:#71847c;font-weight:900}.perf-preview b{font-size:14px}.perf-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.perf-modal-actions button{border:0;border-radius:10px;padding:10px 13px;font-weight:900;cursor:pointer}.perf-check-tools{display:flex;gap:8px;margin:10px 0}.perf-check-list{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;max-height:380px;overflow:auto}.perf-check{display:flex;align-items:center;gap:8px;border:1px solid #e0ebe6;border-radius:9px;padding:8px;font-size:10px}.perf-check input{accent-color:#0b7653}
}


/* V1.0.151 • ajustes visuais + HE + seletores compactos */
@media(min-width:1024px){
#jagroPerformanceModule>.perf-module-topbar{min-height:0!important;padding:13px 18px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important}
.perf-title-block{min-width:300px;max-width:520px}.perf-title-block small{font-size:9px!important}.perf-title-block h2{font-size:20px!important;line-height:1.08!important;margin:2px 0 2px!important}.perf-title-block p{font-size:10px!important;line-height:1.2!important;margin:0!important;white-space:nowrap!important}
.perf-top-actions{justify-content:flex-end!important;align-items:center!important}.perf-shell{padding-top:12px!important}.perf-hero{padding:13px 18px!important;border-radius:15px!important}.perf-hero h1{font-size:20px!important;margin:3px 0!important}.perf-hero p{font-size:10px!important}.perf-hero-score b{font-size:31px!important}
.perf-kpis-six{grid-template-columns:repeat(6,minmax(0,1fr))!important}.perf-kpis-six .perf-kpi{padding:11px!important}.perf-kpis-six .perf-kpi b{font-size:19px!important}
.perf-score-line{display:flex;align-items:center;gap:5px}.perf-trend{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:2px 5px;font-size:7px;font-weight:950;line-height:1.1;white-space:nowrap}.perf-trend.up{background:#e3f5ed;color:#087b56}.perf-trend.down{background:#fde9e7;color:#b42318}.perf-trend.flat{background:#eef2f0;color:#60756c}.perf-trend.new{background:#eaf0f7;color:#47627a}.perf-bar-col .perf-trend{margin-top:0;padding:1px 4px}
.perf-check-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;max-height:390px!important}.perf-pdf-person{min-height:48px!important;padding:6px 9px!important;gap:8px!important}.perf-pdf-person input{width:18px!important;height:18px!important;flex:0 0 18px!important}.perf-pdf-person span{min-width:0}.perf-pdf-person b{font-size:9px!important;line-height:1.15!important}.perf-pdf-person small{font-size:7.5px!important;line-height:1.1!important;color:#60756c}.perf-check-tools button{padding:8px 10px!important;font-size:9px!important;border-radius:9px!important}
#jagroPerformancePdfModal .perf-modal-card{width:min(760px,92vw)!important;padding:16px!important}#jagroPerformancePdfModal .perf-modal-card>p{margin-bottom:9px!important}#perfPdfSearch{padding:8px 10px!important;font-size:11px!important}
#jagroPerformanceAccessModal .perf-modal-card{width:min(820px,92vw)!important;padding:16px!important}.perf-access-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}.perf-access-person{min-height:52px!important;padding:7px 10px!important;gap:9px!important;background:#fff!important}.perf-access-person input{width:18px!important;height:18px!important;flex:0 0 18px!important}.perf-access-person span{display:flex!important;flex-direction:column!important;gap:2px!important;min-width:0!important}.perf-access-person b{font-size:9.5px!important;line-height:1.15!important}.perf-access-person small{font-size:7.5px!important;color:#71847c!important}.perf-access-person.is-on{background:#edf8f3!important;border-color:#a8d9c5!important}.perf-access-person.is-on small{color:#087b56!important;font-weight:950!important}
}

/* V1.0.154 • leitura oficial do Fechamento + destaques de situação/HE */
@media(min-width:1024px){
.perf-situation{font-weight:950!important;letter-spacing:.02em}.perf-situation.inactive{color:#b42318!important}.perf-situation.notice{color:#d97706!important}.perf-situation.experience{color:#9a650e!important}.perf-he.has-he{color:#087b56!important;font-weight:950!important}.perf-kpi.good small{color:#087b56}.perf-kpi.good span{color:#4e7f6c}
}

/* V1.0.155 — status compactos + HF/HE visíveis */
.perf-situation{display:inline-flex!important;align-items:center!important;padding:2px 6px!important;border-radius:999px!important;font-size:8px!important;line-height:1.15!important;white-space:nowrap!important;vertical-align:middle!important}.perf-situation.inactive{background:#feeceb!important;color:#b42318!important}.perf-situation.notice{background:#fff3df!important;color:#c76a00!important}.perf-situation.experience{background:#fff8d9!important;color:#8a6100!important}.perf-hf.has-hf{color:#b42318!important;font-weight:950!important}.perf-he.has-he{color:#087b56!important;font-weight:950!important}

/* V1.0.156 - leitura executiva do impacto */
.perf-impact>b{display:block;color:#435d52;font-size:9px;line-height:1.3}.perf-impact-comp{display:block;margin-top:3px;color:#087b56;font-weight:950;font-size:8px}.perf-impact small{display:block;margin-top:2px;color:#71847c;font-size:7.5px;font-weight:700}
