/* V1586 — restaura a composição aprovada do detalhe do indicador: cabeçalho, quatro KPIs, série e interpretação. */
.tfh-approved-detail{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0;width:100%;}
.tfh-approved-titlebar{display:flex;align-items:center;justify-content:space-between;gap:22px;min-width:0;padding:20px 24px;border:1px solid #d6e4f3;border-radius:14px;background:linear-gradient(110deg,#fff 0%,#fbfdff 100%);box-shadow:0 1px 2px rgba(19,48,88,.025);}
.tfh-approved-titlecopy{min-width:0;}
.tfh-approved-titlecopy h2{margin:0;color:#0b2045;font-size:30px;font-weight:800;line-height:1.16;letter-spacing:-.025em;}
.tfh-approved-titlecopy p{margin:8px 0 0;color:#40618e;font-size:19px;line-height:1.35;}
.tfh-approved-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:18px;min-width:0;}
.tfh-approved-signal{display:flex;align-items:center;gap:14px;min-width:280px;max-width:460px;padding:13px 17px;border:1px solid #ffd9d9;border-radius:12px;background:#fff0f0;color:#bd1717;}
.tfh-approved-signal-icon{font-size:24px;line-height:1;font-weight:900;transform:scaleY(1.15);}
.tfh-approved-signal>div{display:flex;min-width:0;flex-direction:column;gap:3px;}
.tfh-approved-signal strong{font-size:18px;font-weight:800;line-height:1.2;}
.tfh-approved-signal small{font-size:14px;line-height:1.35;}
.tfh-approved-signal.is-good{color:#177245;border-color:#c5ead7;background:#effaf4;}
.tfh-approved-signal.is-neutral{color:#315579;border-color:#d8e4f1;background:#f4f8fd;}
.tfh-approved-constatar{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:58px;padding:0 20px;border:1px solid #b8cfe9;border-radius:9px;background:#fff;color:#12315e;font-size:16px;font-weight:750;white-space:nowrap;cursor:pointer;}
.tfh-approved-constatar:hover{border-color:#3c76bd;background:#f5f9ff;}
.tfh-approved-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;min-width:0;}
.tfh-approved-kpi{position:relative;display:flex;min-width:0;min-height:122px;flex-direction:column;align-items:flex-start;gap:3px;padding:18px 22px 15px;border:1px solid #d6e5f5;border-radius:12px;background:linear-gradient(130deg,#f7fbff 0%,#f0f6fc 100%);box-sizing:border-box;}
.tfh-approved-kpi>small{color:#203f6e;font-size:14px;font-weight:800;line-height:1.3;letter-spacing:.015em;}
.tfh-approved-kpi>strong{color:#0e315c;font-size:39px;font-weight:800;line-height:1.08;letter-spacing:-.03em;}
.tfh-approved-kpi>strong.is-red,.tfh-approved-kpi>.is-red{color:#e51e1e;}
.tfh-approved-kpi>span{color:#365b8b;font-size:16px;line-height:1.3;overflow-wrap:anywhere;}
.tfh-kpi-delta{position:absolute;right:18px;top:43px;display:flex;flex-direction:column;align-items:flex-end;gap:2px;color:#e51e1e;font-size:19px;font-weight:800;line-height:1.1;}
.tfh-kpi-delta.is-green{color:#187b43;}
.tfh-kpi-delta small{font-size:12px;font-weight:500;color:#264d7a;}
.tfh-approved-kpi-status>strong{display:flex;align-items:center;gap:12px;margin-top:9px;font-size:27px;letter-spacing:-.015em;}
.tfh-approved-kpi-status>strong i{width:21px;height:21px;flex:0 0 21px;border-radius:50%;background:#ef2525;box-shadow:inset 0 0 0 1px #dc1515;}
.tfh-approved-kpi-status>strong.is-good i{background:#219653;box-shadow:inset 0 0 0 1px #147642;}
.tfh-approved-kpi-status>strong.is-neutral i{background:#7b8da5;box-shadow:inset 0 0 0 1px #657991;}
.tfh-approved-kpi-status>span{padding-left:33px;}
.tfh-trend-chart{position:relative;overflow:visible;min-width:0;width:100%;padding:20px 22px 22px;border:1px solid #d6e4f3;border-radius:14px;background:#fff;box-sizing:border-box;}
.tfh-approved-chart-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px;}
.tfh-approved-chart-head h3{margin:0;color:#103261;font-size:24px;font-weight:800;line-height:1.25;}
.tfh-approved-controls{display:flex;align-items:center;justify-content:flex-end;gap:18px;flex-wrap:wrap;}
.tfh-approved-controls label{display:flex;align-items:center;gap:12px;color:#152f55;font-size:15px;font-weight:500;white-space:nowrap;}
.tfh-approved-controls select{min-width:135px;min-height:43px;padding:8px 34px 8px 12px;border:1px solid #bdd0e6;border-radius:8px;background:#fff;color:#101d30;font:inherit;box-shadow:0 1px 2px rgba(15,42,76,.06);}
.tfh-trend-chart>svg{display:block;width:100%;height:auto;max-width:100%;overflow:visible;}
.tfh-trend-chart .tfh-chart-limit-attention,.tfh-trend-chart .tfh-chart-limit-critical,.tfh-trend-chart .tfh-chart-baseline{vector-effect:non-scaling-stroke;}
.tfh-approved-legend{display:flex;align-items:center;justify-content:space-between;gap:14px 24px;flex-wrap:wrap;margin:8px 8px 16px;color:#1e3e6a;font-size:14px;line-height:1.4;}
.tfh-approved-legend span{display:inline-flex;align-items:center;gap:9px;white-space:nowrap;}
.tfh-approved-legend i{display:inline-block;position:relative;width:31px;height:0;border-top:3px solid #d92d2d;flex:0 0 31px;}
.tfh-approved-legend .legend-current:after{content:"";position:absolute;left:11px;top:-6px;width:8px;height:8px;border:1px solid #d92d2d;border-radius:50%;background:#d92d2d;}
.tfh-approved-legend .legend-baseline{border-top:3px dashed #0965db;}
.tfh-approved-legend .legend-band{height:20px;width:32px;flex-basis:32px;border:0;border-radius:4px;background:#d8eaff;}
.tfh-approved-legend .legend-attention{border-top:3px dashed #f59e0b;}
.tfh-approved-legend .legend-critical{border-top:3px dashed #ef2525;}
.tfh-approved-legend .legend-event{border-top:3px dashed #13254a;}
.tfh-approved-interpretation{margin-top:8px;padding:18px 20px 19px;border:1px solid #ffe0e0;border-radius:12px;background:linear-gradient(115deg,#fff0f0 0%,#fff5f5 100%);}
.tfh-approved-interpretation h3{margin:0 0 14px;color:#c91c1c;font-size:20px;font-weight:800;line-height:1.3;}
.tfh-approved-interpretation-grid{display:grid;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,.9fr));align-items:stretch;}
.tfh-approved-interpretation-text{display:flex;align-items:center;gap:18px;min-width:0;padding:4px 22px 4px 0;}
.tfh-approved-reading-icon{display:grid;place-items:center;flex:0 0 51px;width:51px;height:51px;border-radius:11px;background:#ffe0e0;color:#d51d1d;font-size:25px;font-weight:900;}
.tfh-approved-interpretation-text p{margin:0;color:#151515;font-size:16px;line-height:1.5;}
.tfh-approved-insight{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:5px;padding:5px 20px 4px 28px;border-left:1px solid #f1bcbc;}
.tfh-approved-insight>small{color:#22436e;font-size:15px;line-height:1.35;}
.tfh-approved-insight>strong{color:#0c315f;font-size:35px;font-weight:800;line-height:1.15;letter-spacing:-.02em;overflow-wrap:anywhere;}
.tfh-approved-insight>span{color:#365a87;font-size:13px;line-height:1.4;}
.tfh-approved-insight>strong.is-good{color:#198344;font-size:21px;}
.tfh-approved-insight>strong.is-bad{color:#c81e1e;font-size:21px;}
@media(max-width:1180px){
 .tfh-approved-titlebar{align-items:flex-start;padding:18px;gap:14px;}
 .tfh-approved-titlecopy h2{font-size:25px;}
 .tfh-approved-titlecopy p{font-size:16px;}
 .tfh-approved-head-actions{gap:9px;}
 .tfh-approved-signal{min-width:220px;padding:10px 12px;gap:9px;}
 .tfh-approved-signal strong{font-size:15px;}
 .tfh-approved-signal small{font-size:12px;}
 .tfh-approved-constatar{min-height:48px;padding:0 13px;font-size:14px;}
 .tfh-approved-kpis{gap:9px;}
 .tfh-approved-kpi{padding:14px;min-height:112px;}
 .tfh-approved-kpi>strong{font-size:31px;}
 .tfh-approved-kpi-status>strong{font-size:22px;}
 .tfh-kpi-delta{right:12px;top:42px;font-size:15px;}
 .tfh-approved-interpretation-grid{grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,.9fr));}
 .tfh-approved-interpretation-text{gap:10px;padding-right:14px;}
 .tfh-approved-interpretation-text p{font-size:14px;}
 .tfh-approved-insight{padding-left:14px;padding-right:10px;}
}
@media(max-width:820px){
 .tfh-approved-titlebar{flex-direction:column;}
 .tfh-approved-head-actions{width:100%;justify-content:space-between;}
 .tfh-approved-signal{flex:1;max-width:none;}
 .tfh-approved-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}
 .tfh-approved-interpretation-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
 .tfh-approved-interpretation-text{grid-column:1/-1;border-bottom:1px solid #f1bcbc;padding:4px 0 14px;margin-bottom:8px;}
 .tfh-approved-insight:first-of-type{border-left:0;padding-left:0;}
 .tfh-approved-controls{width:100%;justify-content:flex-start;gap:10px;}
 .tfh-approved-controls label{justify-content:space-between;flex:1 1 220px;}
 .tfh-approved-controls select{min-width:0;max-width:65%;}
 .tfh-approved-legend{justify-content:flex-start;font-size:12px;gap:10px 16px;}
}
@media(max-width:520px){
 .tfh-approved-detail{gap:10px;}
 .tfh-approved-titlebar{padding:14px;}
 .tfh-approved-titlecopy h2{font-size:22px;}
 .tfh-approved-titlecopy p{font-size:14px;margin-top:5px;}
 .tfh-approved-head-actions{align-items:stretch;flex-direction:column;}
 .tfh-approved-signal{min-width:0;}
 .tfh-approved-constatar{width:100%;}
 .tfh-approved-kpis{gap:7px;}
 .tfh-approved-kpi{padding:11px;min-height:100px;}
 .tfh-approved-kpi>small{font-size:10px;}
 .tfh-approved-kpi>strong{font-size:27px;}
 .tfh-approved-kpi>span{font-size:11px;}
 .tfh-kpi-delta{position:static;align-items:flex-start;margin-top:3px;font-size:12px;}
 .tfh-kpi-delta small{font-size:10px;}
 .tfh-approved-kpi-status>strong{gap:7px;margin-top:5px;font-size:16px;}
 .tfh-approved-kpi-status>strong i{width:13px;height:13px;flex-basis:13px;}
 .tfh-approved-kpi-status>span{padding-left:20px;}
 .tfh-trend-chart{padding:12px 10px 14px;}
 .tfh-approved-chart-head h3{font-size:20px;}
 .tfh-approved-controls label{font-size:12px;}
 .tfh-approved-controls select{font-size:12px;padding:6px 24px 6px 8px;}
 .tfh-approved-interpretation{padding:13px;}
 .tfh-approved-interpretation h3{font-size:17px;}
 .tfh-approved-interpretation-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
 .tfh-approved-reading-icon{width:35px;height:35px;flex-basis:35px;font-size:18px;}
 .tfh-approved-interpretation-text p{font-size:12px;}
 .tfh-approved-insight{padding:4px 7px;border-left:1px solid #f1bcbc;}
 .tfh-approved-insight>small{font-size:10px;}
 .tfh-approved-insight>strong{font-size:22px;}
 .tfh-approved-insight>span{font-size:10px;}
 .tfh-approved-insight>strong.is-good,.tfh-approved-insight>strong.is-bad{font-size:13px;}
}

/* V1587 — keeps chart drawing inside the plot and controls above SVG paint layers. */
.tfh-approved-chart-head{position:relative;z-index:2;background:#fff;}
.tfh-approved-controls{position:relative;z-index:3;opacity:1;isolation:isolate;}
.tfh-approved-controls label,.tfh-approved-controls select{opacity:1;}
.tfh-trend-chart>svg{position:relative;z-index:0;overflow:hidden;}
