#stRelGeral52{box-sizing:border-box;font-family:inherit;color:inherit;margin:14px 0 24px;max-width:100%;}
#stRelGeral52 *{box-sizing:border-box}
#stRelGeral52 .st51-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:16px}
#stRelGeral52 h2{font-size:clamp(20px,2vw,27px);line-height:1.25;font-weight:800;margin:0 0 6px}
#stRelGeral52 h3{font-size:17px;font-weight:750;margin:0 0 12px;line-height:1.35}
#stRelGeral52 p{margin:4px 0;font-size:13px;line-height:1.5}
#stRelGeral52 small{color:#536458;font-size:11px;line-height:1.45;display:block}
#stRelGeral52 .st51-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
#stRelGeral52 .st51-tools label{font-size:12px;font-weight:700;display:grid;gap:4px}
#stRelGeral52 input[type=month]{min-width:150px;width:150px;border:1px solid #b8cec0;border-radius:9px;padding:10px 12px;min-height:40px;color:#123923;background:#fff}
#stRelGeral52 button{cursor:pointer;border:0;border-radius:9px;min-height:40px;padding:10px 15px;font-weight:750;font-size:12px}
#stRelGeral52 button:disabled{opacity:.6;cursor:wait}
#stRelGeral52 .st51-primary{background:#146c42;color:#fff}
#stRelGeral52 .st51-secondary{background:#eaf2ed;color:#174a31;border:1px solid #bad1c1}
#stRelGeral52 .st51-progress{background:#f0f5f1;border-left:4px solid #24764e;border-radius:7px;padding:10px 13px;font-size:12px;line-height:1.45;margin:12px 0;white-space:normal}
#stRelGeral52 .st51-error{border-color:#a53636;background:#fff2f0;color:#8e2323}
#stRelGeral52 .st51-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
#stRelGeral52 .st51-kpi{background:#fff;border:1px solid #d5e3d8;border-radius:12px;padding:14px;min-width:0;box-shadow:0 1px 4px rgba(18,50,29,.035)}
#stRelGeral52 .st51-kpi>span{display:block;color:#52665a;font-size:11px;line-height:1.35;font-weight:650}
#stRelGeral52 .st51-kpi>strong{display:block;font-size:clamp(16px,1.8vw,22px);line-height:1.45;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#stRelGeral52 .st51-card{border:1px solid #d5e3d8;border-radius:12px;padding:16px;background:#fff;margin:13px 0;overflow:hidden}
#stRelGeral52 .st51-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#stRelGeral52 .st51-scroll{overflow-x:auto;max-width:100%}
#stRelGeral52 table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.45;min-width:430px;font-variant-numeric:tabular-nums}
#stRelGeral52 th,#stRelGeral52 td{border-bottom:1px solid #e5ece7;padding:9px 8px;text-align:left;white-space:nowrap}
#stRelGeral52 th{color:#4a6252;background:#f3f8f5;font-weight:750}
#stRelGeral52 td:not(:first-child),#stRelGeral52 th:not(:first-child){text-align:right}
#stRelGeral52 .st51-bar-row{display:grid;grid-template-columns:minmax(80px,1fr) minmax(80px,2fr) auto;align-items:center;gap:8px;margin:9px 0;font-size:12px}
#stRelGeral52 .st51-bar-row>span{overflow-wrap:anywhere}
#stRelGeral52 .st51-track{height:10px;border-radius:5px;background:#e8f0eb;overflow:hidden}
#stRelGeral52 .st51-fill{height:100%;border-radius:5px;background:#29865a}
#stRelGeral52 .st51-source-list{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
#stRelGeral52 .st51-source{border:1px solid #d2dfd4;background:#f5f9f6;color:#345642;border-radius:7px;padding:6px 9px;font-size:11px;font-weight:650}
#stRelGeral52 .st51-source.bad{background:#fff4ee;border-color:#ecc5a9;color:#914924}
#stRelGeral52 .st51-warning{color:#8a4c14;font-size:12px;padding:8px 0}
#stRelGeral52 .st51-muted{color:#5e7165;font-size:12px}
#stRelGeral52 .st51-foot{margin:13px 0;padding:12px;border:1px dashed #bacbbd;border-radius:9px;font-size:12px;line-height:1.55}
#stRelGeral52 .st51-empty{padding:17px;text-align:center;color:#5c705f;font-size:13px}
#stRelGeral52 .st51-followup-link{background:#f2f7f3;border-left:4px solid #2e784d;padding:13px;margin-top:12px;border-radius:7px}
@media(max-width:1080px){#stRelGeral52 .st51-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#stRelGeral52 .st51-two,#stRelGeral52 .st51-grid{grid-template-columns:1fr}#stRelGeral52 .st51-tools{width:100%}#stRelGeral52 input[type=month]{width:100%;min-width:0}#stRelGeral52 .st51-tools label{flex:1;min-width:125px}#stRelGeral52 .st51-tools button{flex:1}}

/* V52 — filtros e gráfico mensal */
#stRelGeral52 .st51-tools{flex:1;justify-content:flex-end;gap:10px}
#stRelGeral52 .st51-tools select{min-width:158px;max-width:250px;width:100%;border:1px solid #b8cec0;border-radius:9px;padding:10px 12px;min-height:40px;color:#123923;background:#fff;font:inherit;font-size:12px}
#stRelGeral52 .st51-tools label:has(#st51Product){flex:1;max-width:250px}
#stRelGeral52 .st51-tools select:disabled{opacity:.6}
#stRelGeral52 .st51-selection{background:#eef6ef;border-radius:8px;padding:8px 11px;margin:10px 0;font-size:12px;color:#174b30}
#stRelGeral52 .st51-chart-legend{display:flex;flex-wrap:wrap;gap:16px;margin:4px 0 14px;font-size:12px;color:#465b4b}
#stRelGeral52 .st51-chart-legend>span{display:flex;align-items:center;gap:7px}
#stRelGeral52 .st51-chart-legend i{display:inline-block;width:24px;height:3px;border-radius:2px}
#stRelGeral52 .st51-chart-scroll{width:100%;overflow-x:auto}
#stRelGeral52 .st51-line-svg{width:100%;min-width:650px;height:auto;display:block;background:#fff}
#stRelGeral52 .st51-line-svg .st51-axis{fill:#597066;font-size:12px;font-family:inherit}
#stRelGeral52 .st51-pair{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:700px){#stRelGeral52 .st51-tools{justify-content:flex-start}#stRelGeral52 .st51-tools label:has(#st51Product){max-width:none}#stRelGeral52 .st51-tools select{min-width:0;max-width:100%}#stRelGeral52 .st51-line-svg{min-width:680px}}

/* V52.1: avanço real por etapas concluídas (mês x fonte). */
#stRelGeral52 .st51-progress-wrap[hidden], #stRelGeral52 .st51-progress-issue[hidden]{display:none!important}
#stRelGeral52 .st51-progress-wrap{background:#fff;border:1px solid #c7daca;border-radius:12px;padding:14px 16px;margin:10px 0 16px;box-shadow:0 2px 6px rgba(20,70,40,.045)}
#stRelGeral52 .st51-progress-head{display:flex;gap:13px;align-items:center;margin-bottom:12px}
#stRelGeral52 .st51-progress-head>strong{font-size:29px;line-height:1.1;color:#146c42;min-width:82px;font-variant-numeric:tabular-nums}
#stRelGeral52 .st51-progress-head>div{display:flex;flex-direction:column;gap:3px}
#stRelGeral52 .st51-progress-head>div>strong{font-size:13px;font-weight:750}
#stRelGeral52 .st51-progress-head small{font-size:11px;color:#597363}
#stRelGeral52 .st51-progress-rail{height:13px;border-radius:10px;background:#e2ece6;overflow:hidden;position:relative}
#stRelGeral52 .st51-progress-fill{width:0;height:100%;background:linear-gradient(90deg,#218652,#0d6d3e);border-radius:10px;transition:width .25s ease}
#stRelGeral52 .st51-progress-detail{font-size:12px;margin:10px 0 5px;line-height:1.45;color:#27513a}
#stRelGeral52 .st51-progress-wrap>small{font-size:11px;color:#5c7163}
#stRelGeral52 .st51-progress-warning .st51-progress-rail{background:#f7e9d7}
#stRelGeral52 .st51-progress-warning .st51-progress-fill{background:linear-gradient(90deg,#c48d24,#d57922)}
#stRelGeral52 .st51-progress-issue{font-size:11px;color:#984827;background:#fff5ee;border-radius:7px;padding:8px 10px;margin-top:8px;overflow-wrap:anywhere}

/* V53: gráfico compacto, caixas de seleção por unidade e detalhes ao passar o mouse. */
#stRelGeral52 .st53-chart-settings{display:grid;gap:9px;background:#f5faf6;border:1px solid #dce9df;border-radius:10px;padding:11px 12px;margin-bottom:10px}
#stRelGeral52 .st53-unit-field{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;font-weight:750}
#stRelGeral52 .st53-unit-field select{font:inherit;font-size:12px;border:1px solid #b8cec0;border-radius:7px;background:#fff;color:#153d27;padding:6px 9px;min-height:34px}
#stRelGeral52 .st53-metric-fieldset{border:0;padding:0;margin:0;min-width:0}
#stRelGeral52 .st53-metric-fieldset legend{font-size:11px;color:#52675a;margin-bottom:6px;font-weight:700}
#stRelGeral52 .st53-metric-checks{display:flex;flex-wrap:wrap;gap:7px 9px}
#stRelGeral52 .st53-metric-label{display:inline-flex;align-items:center;gap:6px;border:1px solid #dae6dd;border-radius:8px;background:#fff;padding:6px 9px;font-weight:650;font-size:11px;line-height:1.25;cursor:pointer;user-select:none}
#stRelGeral52 .st53-metric-label:has(input:checked){border-color:#9dbba7;background:#edf6f0}
#stRelGeral52 .st53-metric-label input{accent-color:#176e42;margin:0;cursor:pointer;min-width:14px;min-height:14px}
#stRelGeral52 .st53-metric-disabled{opacity:.5;cursor:not-allowed}
#stRelGeral52 .st53-series-swatch{display:inline-block;width:13px;height:4px;border-radius:3px;flex-shrink:0}
#stRelGeral52 .st53-chart-help{font-size:10px;color:#576d5f}
#stRelGeral52 .st53-chart-plot{position:relative;min-width:0}
#stRelGeral52 .st51-chart-scroll{overflow-x:auto;width:100%}
#stRelGeral52 .st51-line-svg{width:100%;min-width:670px;height:246px;max-height:246px;display:block;background:#fff}
#stRelGeral52 .st51-line-svg .st51-axis{font-size:11px;fill:#5c7062}
#stRelGeral52 .st53-hover-target{cursor:crosshair;outline:0}
#stRelGeral52 .st53-hover-target:focus{stroke:#96b9a4;stroke-width:1;stroke-dasharray:3 4}
#stRelGeral52 .st53-chart-tooltip[hidden]{display:none!important}
#stRelGeral52 .st53-chart-tooltip{position:absolute;z-index:10;pointer-events:none;min-width:215px;max-width:280px;background:#fff;color:#153b26;border:1px solid #c7ddce;border-radius:9px;padding:10px 12px;box-shadow:0 6px 22px rgba(15,40,22,.18);font-size:11px;line-height:1.5}
#stRelGeral52 .st53-chart-tooltip>strong{display:block;font-size:12px;margin-bottom:6px}
#stRelGeral52 .st53-tip-row{display:flex;justify-content:space-between;gap:13px;align-items:baseline;padding:2px 0}
#stRelGeral52 .st53-tip-row span{display:flex;align-items:center;gap:5px}
#stRelGeral52 .st53-tip-row i{display:inline-block;width:10px;height:3px;border-radius:2px;flex-shrink:0}
#stRelGeral52 .st53-tip-row b{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:11px}
@media(max-width:700px){#stRelGeral52 .st53-chart-settings{padding:10px}#stRelGeral52 .st51-line-svg{min-width:670px}#stRelGeral52 .st53-metric-checks{gap:6px}#stRelGeral52 .st53-chart-tooltip{max-width:240px}}

/* V55: a tooltip e unica, sem tooltip nativo SVG sobreposto. */

/* V56 — só indicadores atribuíveis ao produto ficam no resumo filtrado. */
#stRelGeral52 .st56-unfiltered{margin:12px 0;border:1px dashed #b7cdbd;border-radius:11px;background:#f7faf7;padding:11px 14px}
#stRelGeral52 .st56-unfiltered summary{font-weight:750;font-size:12px;color:#425d48;cursor:pointer}
#stRelGeral52 .st56-unfiltered>p{color:#5c705f;margin:11px 0 4px}
#stRelGeral52 .st56-traffic-note{margin:18px 0 5px;padding:10px 12px;background:#fff8e9;color:#6b4d12;border-left:3px solid #d19c35;border-radius:8px}

/* V57 — transparência da atribuição de origem */
#stRelGeral52 .st57-origin-quality{border:1px solid #cddfd2;border-radius:9px;padding:9px 12px;margin:8px 0;color:#16452d;background:#f4faf5;font-size:12px;}
#stRelGeral52 .st57-origin-quality small{display:block;color:#65756b;margin-top:5px;line-height:1.45;}
#stRelGeral52 .st57-origin-label{white-space:normal;}

.st58-coverage {padding: 9px 12px; background: #eef6f0; border-radius: 6px; font-size: 12px; line-height: 1.65; color: #184a33;}
.st58-coverage small {color:#59665f;}

/* V59 — filtros independentes: vendedor Excel e vendedor Kommo identificado pelo funil. */
#stRelGeral52 .st51-tools label:has(#st59CrmSeller){min-width:188px;max-width:265px}
#stRelGeral52 .st51-tools select#st59CrmSeller{min-width:215px}
@media(max-width:700px){#stRelGeral52 .st51-tools label:has(#st59CrmSeller){min-width:0;max-width:none;flex:1}#stRelGeral52 .st51-tools select#st59CrmSeller{min-width:0}}

/* V60: memoria de calculo da meta comercial, oculta ate o usuario abrir. */
.st60-goal-details{margin:12px 0 18px;border:1px solid #cddfd4;border-radius:9px;padding:10px 14px;background:#f7faf7;color:#183c2c}
.st60-goal-details summary{cursor:pointer;font-weight:700;font-size:13px}
.st60-goal-details p{font-size:12px;line-height:1.6;margin:10px 0;color:#395746}
.st60-goal-details .st51-scroll{max-width:100%;overflow-x:auto}
.st60-goal-details table{min-width:520px}


/* V61 — Visão de CEO: priorização, divulgação progressiva e conferência. */
#stRelGeral52{--st61-border:#dbe6df;--st61-muted:#587265;--st61-deep:#134c32;}
#stRelGeral52 .st51-header{display:block;margin-bottom:12px}
#stRelGeral52 .st51-header>div:first-child{margin-bottom:14px}
#stRelGeral52 .st51-header>div:first-child p{color:#587265;max-width:680px}
#stRelGeral52 .st51-tools{justify-content:flex-start;gap:9px 10px;background:#f7faf8;border:1px solid var(--st61-border);border-radius:12px;padding:12px}
#stRelGeral52 .st51-tools>label{flex:1 1 145px;max-width:225px}
#stRelGeral52 .st51-tools label:has(#st51Product){flex:1 1 170px;max-width:260px}
#stRelGeral52 .st51-tools>button{align-self:end}
#stRelGeral52 .st51-tools select,#stRelGeral52 .st51-tools input[type=month]{min-width:0;width:100%;}
#stRelGeral52 .st61-advanced{flex:1 1 100%;min-width:0;order:10;border-top:1px solid #deebe2;padding-top:7px;}
#stRelGeral52 .st61-advanced summary{font-size:12px;color:var(--st61-deep);font-weight:700;cursor:pointer;user-select:none;}
#stRelGeral52 .st61-advanced-grid{display:flex;gap:10px;flex-wrap:wrap;padding:10px 0 2px;}
#stRelGeral52 .st61-advanced-grid label{display:grid;gap:5px;flex:1 1 190px;max-width:265px}
#stRelGeral52 .st61-tabs{display:flex;align-items:center;gap:5px;max-width:100%;overflow-x:auto;border-bottom:1px solid var(--st61-border);margin:10px 0 16px;padding:0 0 1px;}
#stRelGeral52 .st61-tab{flex-shrink:0;min-height:39px;background:transparent;color:#4c6a58;border:0;border-bottom:3px solid transparent;border-radius:0;padding:10px 15px;font-size:13px;}
#stRelGeral52 .st61-tab[aria-selected=true]{color:var(--st61-deep);border-color:#157347;background:#f1f8f3;}
#stRelGeral52 .st61-tab:focus-visible{outline:2px solid #226e4a;outline-offset:-2px}
#stRelGeral52 .st61-pane[hidden]{display:none!important}
#stRelGeral52 .st61-section-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:12px 0 12px;}
#stRelGeral52 .st61-section-head strong{display:block;font-size:18px;line-height:1.25;color:#133f2c;font-weight:800}
#stRelGeral52 .st61-section-head p{font-size:12px;color:var(--st61-muted);margin-top:3px}
#stRelGeral52 .st61-scope{font-size:11px;color:#587265;line-height:1.45;border-bottom:1px solid #e6eee8;padding-bottom:9px;margin-bottom:10px}
#stRelGeral52 .st61-ceo-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-bottom:10px}
#stRelGeral52 .st61-ceo-kpis .st51-kpi{padding:12px;box-shadow:none;border:1px solid #d5e3d8;min-width:0}
#stRelGeral52 .st61-ceo-kpis .st51-kpi>span{min-height:27px;font-size:10.5px}
#stRelGeral52 .st61-ceo-kpis .st51-kpi>strong{font-size:clamp(15px,1.5vw,20px)}
#stRelGeral52 .st61-ceo-kpis .st51-kpi>small{line-height:1.3}
#stRelGeral52 .st61-subheading{font-size:11px;color:#5f7366;font-weight:700;margin:10px 0 6px}
#stRelGeral52 .st61-pipeline{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 16px}
#stRelGeral52 .st61-pipeline>span{display:flex;gap:7px;align-items:baseline;border:1px solid #e0e9e3;background:#f8faf8;border-radius:7px;padding:7px 10px;font-size:11px}
#stRelGeral52 .st61-pipeline>span span{color:#557366}
#stRelGeral52 .st61-pipeline strong{color:#163e2d;font-variant-numeric:tabular-nums;font-size:13px}
#stRelGeral52 .st61-chart-head{margin-top:20px;margin-bottom:7px}
#stRelGeral52 .st61-chart-head + .st51-card{margin-top:5px}
#stRelGeral52 .st61-chart-head + .st51-card h3{display:none}
#stRelGeral52 .st51-line-svg{height:225px;max-height:225px}
#stRelGeral52 .st61-fold{border:1px solid var(--st61-border);border-radius:10px;background:#fff;margin:9px 0;padding:0 12px;}
#stRelGeral52 .st61-fold>summary{cursor:pointer;font-weight:750;color:var(--st61-deep);padding:13px 4px;font-size:13px}
#stRelGeral52 .st61-fold[open]>summary{border-bottom:1px solid #edf1ed;margin-bottom:9px}
#stRelGeral52 .st61-fold>.st51-card{border:0;padding:8px 4px;margin:0}
#stRelGeral52 .st61-fold>.st51-card>h3{display:none}
#stRelGeral52 .st61-fold>.st51-two{margin:4px 0 12px}
#stRelGeral52 #st61-pane-audit .st51-source-list{margin:8px 0 15px}
#stRelGeral52 #st61-pane-audit .st51-foot{margin-top:14px}
#stRelGeral52 .st61-progress-done{padding:7px 10px;margin:7px 0 10px;}
#stRelGeral52 .st61-progress-done .st51-progress-head{margin:0}
#stRelGeral52 .st61-progress-done .st51-progress-head>strong{font-size:17px;min-width:48px}
#stRelGeral52 .st61-progress-done .st51-progress-rail,#stRelGeral52 .st61-progress-done .st51-progress-detail{display:none}
#stRelGeral52 .st61-progress-done .st51-progress-head>div>strong{font-size:11px}
#stRelGeral52 .st61-progress-done .st51-progress-head small{font-size:10px}
#stRelGeral52 .st61-progress-done .st51-progress-wrap>small{font-size:10px}
@media(max-width:1300px){#stRelGeral52 .st61-ceo-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){#stRelGeral52 .st61-ceo-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){#stRelGeral52 .st61-ceo-kpis{grid-template-columns:1fr}#stRelGeral52 .st51-tools>label{max-width:none}#stRelGeral52 .st51-tools button{flex:1 1 auto}#stRelGeral52 .st61-tabs{gap:2px}#stRelGeral52 .st61-tab{font-size:12px;padding:9px 10px}}

#stRelGeral52 .st61-signals{padding:10px 12px;border:1px solid #e8d8ab;border-left:3px solid #c48a23;border-radius:9px;background:#fffaf1;margin:10px 0 12px;color:#68501c;font-size:11px;}
#stRelGeral52 .st61-signals>strong{display:block;font-size:12px;margin-bottom:3px}
#stRelGeral52 .st61-signals p{margin:3px 0;font-size:11px;color:#775c29}

/* V62 — alternância rápida entre meses já consultados (sem refazer requisições). */
#stRelGeral52 .st62-month-nav{display:flex;align-items:center;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;background:#edf6f0;border:1px solid #c9ddce;border-radius:10px;padding:11px 13px;margin:8px 0 12px}
#stRelGeral52 .st62-month-nav[hidden]{display:none!important}
#stRelGeral52 .st62-month-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#stRelGeral52 .st62-month-controls>label{font-size:12px;color:#214b33;font-weight:750;margin-right:4px}
#stRelGeral52 .st62-month-controls select{min-height:38px;border:1px solid #aac7b4;background:white;color:#153e29;padding:7px 10px;border-radius:8px;font:inherit;font-size:12px;font-weight:650;min-width:215px;max-width:100%}
#stRelGeral52 .st62-month-controls button{min-width:38px;min-height:38px;padding:4px 10px;background:white;border:1px solid #acc9b6;color:#135635;font-size:22px;line-height:1}
#stRelGeral52 .st62-month-controls button:disabled{opacity:.35;cursor:default}
#stRelGeral52 #st62MonthInfo{font-size:11px;color:#426451;flex:1 1 250px;text-align:right}
@media(max-width:780px){#stRelGeral52 .st62-month-nav{align-items:stretch}#stRelGeral52 .st62-month-controls{width:100%}#stRelGeral52 .st62-month-controls>label{width:100%}#stRelGeral52 .st62-month-controls select{min-width:0;flex:1}#stRelGeral52 #st62MonthInfo{text-align:left}}
