/* AmeliaGym R8.1 · BI visible, sidebar fijo, densidad profesional */
:root{--r81-green:#15966e;--r81-red:#d64b58;--r81-amber:#c88715;--r81-blue:#2f7fa5;--r81-navy:#071a2b}
/* El menú pertenece al viewport, no al documento. */
@media(min-width:981px){.sidebar{position:fixed!important;top:0!important;left:0!important;bottom:0!important;height:100dvh!important;max-height:100dvh!important}.shell main{grid-column:2!important;min-width:0}.sidebar nav{height:auto!important;min-height:0!important;overflow-y:auto!important}.sidebar-foot{position:relative!important}.shell{min-height:100vh!important}}
/* Corrige la regla histórica .content svg de 18px que estaba destruyendo los gráficos BI. */
#r81ReportBody svg.r81-chart,#r61ReportBody svg.r61-trend{display:block!important;width:100%!important;height:300px!important;min-width:720px!important;max-width:none!important;max-height:none!important;overflow:visible!important;fill:initial;stroke:initial}
#r81ReportBody svg.r81-chart *{vector-effect:non-scaling-stroke}
.r81-report-head{background:linear-gradient(125deg,#071a2b,#12445f);color:#fff;border-radius:18px;padding:20px 22px;margin-bottom:10px}.r81-report-head>div>span{font-size:10px;font-weight:900;letter-spacing:.12em;color:#ff9a5d}.r81-report-head h2{font-size:26px;margin:5px 0 4px;color:#fff}.r81-report-head p{margin:0;color:#bfd1db;font-size:12px}.r81-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.r81-tabs{display:flex;background:#e5edf1;padding:3px;border-radius:11px;overflow:auto}.r81-tabs button{border:0;background:transparent;padding:8px 12px;border-radius:8px;font-size:11px;font-weight:850;color:#526b7c;white-space:nowrap}.r81-tabs button.active{background:#fff;color:#102b3f;box-shadow:0 2px 8px #15384b12}.r81-controls{display:flex;gap:7px}.r81-controls select{height:38px;border:1px solid #d2dee4;border-radius:10px;background:#fff;padding:0 10px;font-size:11px}.r81-health-hero{display:grid;grid-template-columns:105px 1fr auto;align-items:center;gap:18px;background:#fff;border:1px solid #dce6eb;border-left:6px solid var(--r81-blue);border-radius:16px;padding:16px 18px;margin-bottom:10px}.r81-health-hero.green{border-left-color:var(--r81-green)}.r81-health-hero.red{border-left-color:var(--r81-red)}.r81-health-hero.amber{border-left-color:var(--r81-amber)}.r81-health-score{width:88px;height:88px;border-radius:50%;background:#edf4f7;display:flex;align-items:baseline;justify-content:center;padding-top:24px}.r81-health-score strong{font-size:31px;color:#102f43}.r81-health-score span{font-size:10px;color:#6d8392}.r81-health-hero>div:nth-child(2)>span{font-size:9px;font-weight:900;color:#657c8c;letter-spacing:.12em}.r81-health-hero h2{font-size:22px;margin:4px 0;color:#102a3e}.r81-health-hero p{font-size:11px;color:#647b8b;margin:0}.r81-health-deltas{display:flex;gap:9px}.r81-health-deltas>div{background:#f4f8fa;border-radius:11px;padding:9px 12px;min-width:112px}.r81-health-deltas small{display:block;font-size:8px;color:#718696}.r81-health-deltas b{font-size:16px}.up{color:#11805d}.down{color:#c43849}.r81-health-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:10px}.r81-health-kpi{background:#fff;border:1px solid #dce6eb;border-top:3px solid var(--r81-blue);border-radius:13px;padding:11px 13px}.r81-health-kpi.green{border-top-color:var(--r81-green)}.r81-health-kpi.red{border-top-color:var(--r81-red)}.r81-health-kpi.amber{border-top-color:var(--r81-amber)}.r81-health-kpi span{font-size:8px;color:#718696;font-weight:900;letter-spacing:.06em}.r81-health-kpi b{display:block;font-size:20px;color:#0e293d;margin:4px 0}.r81-health-kpi small{font-size:9px;color:#647a89}.r81-health-layout{display:grid;grid-template-columns:2fr 1fr;gap:10px}.r81-panel{background:#fff;border:1px solid #dce6eb;border-radius:15px;padding:14px;min-width:0}.r81-panel.wide{grid-row:span 2}.r81-panel-head{display:flex;justify-content:space-between;gap:10px;align-items:start;margin-bottom:10px}.r81-panel-head span{font-size:9px;color:#f06c20;font-weight:900;letter-spacing:.1em}.r81-panel-head h3{font-size:15px;color:#102c40;margin:3px 0}.r81-panel-head p{font-size:10px;color:#677d8c;margin:2px 0}.r81-actions{display:grid;gap:7px}.r81-actions article{display:grid;grid-template-columns:34px 1fr auto;gap:10px;align-items:center;border:1px solid #e2eaee;border-left:4px solid #2f7fa5;border-radius:11px;padding:10px;background:#fafcfd}.r81-actions article.alta{border-left-color:#d64b58}.r81-actions article.media{border-left-color:#c88715}.r81-actions article.oportunidad{border-left-color:#15966e}.r81-actions .rank{width:27px;height:27px;border-radius:9px;background:#edf3f6;display:grid;place-items:center;font-size:10px;font-weight:900}.r81-actions b{font-size:11px;color:#163145}.r81-actions p{font-size:9.5px;color:#5d7485;margin:3px 0}.r81-actions small{display:block;font-size:8px;color:#82919d}.r81-actions button{border:0;background:#edf3f6;border-radius:8px;padding:8px 9px;font-size:9px;font-weight:900;color:#19374a}.r81-hours{display:grid;grid-template-columns:1fr 1fr;gap:8px}.r81-hours>div{display:grid;gap:5px}.r81-hours>b{font-size:10px}.r81-hours span{display:flex;justify-content:space-between;background:#f3f7f9;border-radius:8px;padding:7px 8px;font-size:9px}.r81-hours span.low{background:#fff5eb}.r81-bigline{display:flex;justify-content:space-between;align-items:end;border-top:1px solid #edf2f4;padding:9px 0}.r81-bigline b{font-size:18px;color:#102d40}.r81-bigline span{font-size:9px;color:#657b8a}.r81-trend-grid{display:grid;grid-template-columns:1fr;gap:10px}.r81-chart-wrap{width:100%;overflow-x:auto;min-height:310px}.r81-chart .grid{stroke:#e6edf1!important;stroke-width:1!important}.r81-chart .bar{fill:#347fa4!important;stroke:none!important}.r81-chart .bar.hot{fill:#ff7621!important}.r81-chart .line{fill:none!important;stroke:#277da4!important;stroke-width:3!important}.r81-chart .area{fill:#2f7fa51a!important;stroke:none!important}.r81-chart .dot{fill:#fff!important;stroke:#277da4!important;stroke-width:2!important}.r81-chart .dot.hot{fill:#ff7621!important;stroke:#ff7621!important}.r81-chart text{font-size:10px!important;fill:#657b8a!important;stroke:none!important}.r81-op-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.r81-gauge b{display:block;font-size:34px;color:#102f43}.r81-gauge span{font-size:10px;color:#647b8b}.r81-pay{display:flex;justify-content:space-between;border-top:1px solid #edf2f4;padding:8px 0;font-size:10px}.r81-historical .table-wrap{max-height:620px}.r81-billing-ready,.r81-billing-ok{background:#fff;border:1px solid #dce6eb;border-left:5px solid #c88715;border-radius:13px;padding:12px 14px;margin:10px 0;display:flex;align-items:center;gap:12px}.r81-billing-ready b{font-size:12px}.r81-billing-ready p{flex:1;font-size:10px;color:#617787}.r81-billing-ready strong{font-size:10px;color:#9a6711}.r81-billing-ok{border-left-color:#15966e}.r81-billing-ok span{font-size:10px;color:#617787}.r81-locker-grid{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:9px}.r81-locker-grid article{background:#fff;border:1px solid #dce6eb;border-radius:13px;padding:11px;display:grid;gap:7px}.r81-locker-grid article>div:first-child{display:flex;justify-content:space-between}.r81-locker-grid span,.r81-locker-grid em{font-size:8px;color:#6b8292;font-style:normal}.r81-locker-grid b{font-size:18px}.r81-locker-grid small,.r81-locker-grid time{font-size:9px;color:#5f7585}.r81-locker-grid button{border:0;border-radius:8px;padding:8px;background:#0d2e44;color:#fff;font-weight:800;font-size:9px}.r81-locker-grid button.release{background:#f1e7e8;color:#9d3340}
@media(max-width:1200px){.r81-health-layout{grid-template-columns:1fr}.r81-panel.wide{grid-row:auto}.r81-locker-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){.r81-toolbar{align-items:stretch;flex-direction:column}.r81-controls{display:grid;grid-template-columns:1fr 1fr}.r81-controls .btn{grid-column:1/-1}.r81-health-hero{grid-template-columns:82px 1fr}.r81-health-deltas{grid-column:1/-1}.r81-health-kpis,.r81-op-grid{grid-template-columns:1fr 1fr}.r81-locker-grid{grid-template-columns:1fr 1fr}.r81-actions article{grid-template-columns:30px 1fr}.r81-actions button{grid-column:2}.r81-report-head h2{font-size:21px}}
@media(max-width:480px){.r81-health-kpis,.r81-op-grid,.r81-locker-grid{grid-template-columns:1fr}.r81-health-hero{grid-template-columns:1fr}.r81-health-score{width:74px;height:74px;padding-top:19px}.r81-health-deltas{display:grid;grid-template-columns:1fr 1fr}.r81-hours{grid-template-columns:1fr}.r81-chart-wrap{min-height:270px}#r81ReportBody svg.r81-chart{height:260px!important}.r81-tabs{width:100%}.r81-tabs button{flex:1}}
@media print{.r81-toolbar,.r81-report-head{display:none!important}.r81-health-layout,.r81-op-grid{display:block}.r81-panel,.r81-health-hero,.r81-health-kpi{break-inside:avoid;margin-bottom:8px;box-shadow:none}.r81-chart-wrap{overflow:visible}#r81ReportBody svg.r81-chart{min-width:0!important;width:100%!important;height:190px!important}.r81-actions button{display:none}}
