#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}
