/* VIPCRED Gestão — custos/despesas: escopo exclusivo Análise Gerencial, somente admin */
#managementAnalysis #mgTabCosts[hidden],#managementAnalysis #mgCostsPane[hidden],#managementAnalysis #mgCostCustom[hidden]{display:none!important}
#managementAnalysis.mg-costs-active .mg-hero,#managementAnalysis.mg-costs-active .mg-minor-kpis,#managementAnalysis.mg-costs-active .mg-filters,#managementAnalysis.mg-costs-active #mgPeriodLabel,#managementAnalysis.mg-costs-active #mgStatus{display:none!important}
#app #managementAnalysis .mg-costs{color:#e8faf4;--cost-edge:#375f59;--cost-bg:#0e292c;--cost-surface:#1a393d;--cost-green:#23df94;--cost-orange:#ff9c43}
#managementAnalysis .mg-costs *{box-sizing:border-box}
#managementAnalysis .mg-costs h2{color:#f3fff9;margin:0 0 4px;font-size:1.12rem}
#managementAnalysis .mg-costs p{margin:0}
#managementAnalysis .mg-cost-note{color:#9dc3ba;font-size:.84rem;line-height:1.55}
#managementAnalysis .mg-cost-panel{border:1px solid #38625b;background:linear-gradient(145deg,#143337,#11282f);border-radius:18px;padding:19px;margin:12px 0;box-shadow:0 9px 27px #06151635}
#managementAnalysis .mg-cost-eyebrow{color:#3bedaa;font-weight:800;letter-spacing:.075em;text-transform:uppercase;font-size:.72rem;margin-bottom:5px}
#managementAnalysis .mg-cost-controls{display:grid;grid-template-columns:repeat(4,minmax(155px,1fr)) auto;gap:10px;align-items:end;margin-top:16px}
#managementAnalysis .mg-cost-field{display:flex;flex-direction:column;gap:6px;min-width:0}
#managementAnalysis .mg-cost-field label{color:#bad7d0;font-size:.79rem;font-weight:700}
#managementAnalysis .mg-cost-field select,#managementAnalysis .mg-cost-field input{width:100%;height:40px;border:1px solid #47736a;background:#16383a!important;color:#f7fffb!important;border-radius:10px;padding:0 10px;font:inherit;outline:none}
#managementAnalysis .mg-cost-field option{background:#17353b;color:#fff}
#managementAnalysis .mg-cost-field :is(select,input):focus-visible{outline:2px solid #28cf8f;outline-offset:2px}
#managementAnalysis .mg-cost-field input::-webkit-calendar-picker-indicator{filter:invert(1)}
#managementAnalysis .mg-cost-custom{display:flex;gap:8px;margin-top:12px}
#managementAnalysis .mg-cost-custom .mg-cost-field{width:170px;max-width:48%}
#managementAnalysis .mg-cost-apply{height:40px;border:1px solid #24a76c;border-radius:10px;padding:0 15px;background:linear-gradient(120deg,#109f67,#19d17d);color:white;font-weight:800;cursor:pointer}
#managementAnalysis .mg-cost-apply:disabled{opacity:.55;cursor:wait}
#managementAnalysis .mg-cost-status{margin-top:12px;font-size:.83rem;color:#b9dfcf}
#managementAnalysis .mg-cost-status[data-error="true"]{color:#ffb6b6}
#managementAnalysis .mg-cost-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#managementAnalysis .mg-cost-kpi{border:1px solid #3b6a61;border-radius:13px;background:#1a3b3e;padding:14px;min-width:0}
#managementAnalysis .mg-cost-kpi small{color:#b8d1cb;font-size:.75rem;display:block;margin-bottom:6px}
#managementAnalysis .mg-cost-kpi strong{display:block;font-size:clamp(1.13rem,1.7vw,1.65rem);color:#fff;line-height:1.12;overflow-wrap:anywhere}
#managementAnalysis .mg-cost-kpi.main{background:linear-gradient(120deg,#0c6c51,#1b8d68);border-color:#28c68b}
#managementAnalysis #mgCostMoM[data-direction="up"]{color:#ffb285}
#managementAnalysis #mgCostMoM[data-direction="down"]{color:#62eeb5}
#managementAnalysis .mg-cost-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:12px}
#managementAnalysis .mg-cost-toggles{display:flex;gap:6px}
#managementAnalysis .mg-cost-toggles button{border:1px solid #427b69;color:#c7e9d9;background:#1b4041;border-radius:8px;padding:6px 10px;cursor:pointer;font-size:.75rem}
#managementAnalysis .mg-cost-toggles button[aria-pressed="true"]{background:#0d9e66;color:#fff}
#managementAnalysis .mg-cost-chart{display:flex;align-items:end;gap:8px;min-height:240px;overflow-x:auto;overflow-y:hidden;padding:18px 4px 10px;border-bottom:1px solid #47645f}
#managementAnalysis .mg-cost-column{display:flex;flex-direction:column;align-items:center;gap:4px;flex:1 0 44px;min-width:45px;height:215px;color:#c7e5dc}
#managementAnalysis .mg-cost-bar-value{height:30px;white-space:nowrap;text-align:center;font-weight:800;font-size:.69rem;color:#d5f4e8}
#managementAnalysis .mg-cost-column-track{height:162px;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;width:70%;max-width:62px;background:linear-gradient(0deg,#12423e,#123137);border-radius:6px 6px 0 0;overflow:hidden}
#managementAnalysis .mg-cost-column-fill{background:linear-gradient(0deg,#098f60,#21de91);border-radius:6px 6px 0 0;min-height:0;transition:height .2s ease}
#managementAnalysis .mg-cost-column-fill.is-highlight{background:linear-gradient(0deg,#e77724,#ffb250)}
#managementAnalysis .mg-cost-column-label{font-size:.73rem;white-space:normal;text-align:center;line-height:1.15;width:100%;overflow-wrap:anywhere}
#managementAnalysis .mg-cost-empty{align-self:center;display:block;color:#a9c7be;text-align:center;width:100%;padding:25px}
#managementAnalysis .mg-cost-donut-layout{display:grid;grid-template-columns:160px minmax(0,1fr);gap:14px;align-items:center;padding-top:12px}
#managementAnalysis .mg-cost-donut{aspect-ratio:1;border-radius:50%;width:160px;display:grid;place-items:center;background:#273d41}
#managementAnalysis .mg-cost-donut-inner{border-radius:50%;width:102px;height:102px;background:#173235;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:8px;text-align:center}
#managementAnalysis .mg-cost-donut-inner strong{color:#fff;font-size:.87rem;overflow-wrap:anywhere}
#managementAnalysis .mg-cost-donut-inner small{color:#a6ccc1;font-size:.69rem}
#managementAnalysis .mg-cost-donut-row{display:grid;grid-template-columns:11px 1fr auto;gap:7px;align-items:center;padding:5px 0;font-size:.76rem;color:#d8e9e3}
#managementAnalysis .mg-cost-donut-row strong{color:#f6fff9}
#managementAnalysis .mg-cost-swatch{width:10px;height:10px;border-radius:3px}
#managementAnalysis .mg-cost-tablewrap{overflow:auto;border-radius:11px;border:1px solid #3e6d64;margin-top:12px}
#managementAnalysis table.mg-cost-table{width:100%;border-collapse:collapse;background:#163337;color:#f0fdf8;min-width:620px;font-size:.82rem}
#managementAnalysis .mg-cost-table th,#managementAnalysis .mg-cost-table td{padding:11px 10px;border-bottom:1px solid #355c57;text-align:left;white-space:nowrap;background:transparent!important;color:#e6f6ef!important}
#managementAnalysis .mg-cost-table th{background:#215346!important;color:#c2ffda!important;position:sticky;top:0;font-size:.76rem}
#managementAnalysis .mg-cost-table tr:hover td{background:#24514d!important;color:#fff!important}
#managementAnalysis .mg-cost-table .mg-cost-unit{font-weight:800}
#managementAnalysis .mg-cost-table .mg-cost-up{color:#ffb69b!important}
#managementAnalysis .mg-cost-table .mg-cost-down{color:#66ebb1!important}
#managementAnalysis .mg-cost-insight{display:flex;gap:10px;padding:10px 11px;margin:8px 0;border:1px solid #376b5d;border-left:3px solid #33d18d;background:#214139;color:#d7efe5;border-radius:10px;line-height:1.45;font-size:.84rem}
#managementAnalysis .mg-cost-insight.warning{border-color:#805a31;border-left-color:#ffa243;background:#493524;color:#ffe9cf}
#managementAnalysis .mg-cost-insight-dot{font-weight:900;color:#51f5b6}
#managementAnalysis .mg-cost-insight.warning .mg-cost-insight-dot{color:#ffc586}
@media(max-width:1050px){#managementAnalysis .mg-cost-controls{grid-template-columns:repeat(2,minmax(150px,1fr))}#managementAnalysis .mg-cost-grid{grid-template-columns:1fr}}
@media(max-width:620px){#managementAnalysis .mg-cost-controls{grid-template-columns:1fr 1fr}#managementAnalysis .mg-cost-kpis{grid-template-columns:1fr 1fr}#managementAnalysis .mg-cost-donut-layout{grid-template-columns:1fr;justify-items:center}#managementAnalysis .mg-cost-donut-legend{width:100%}#managementAnalysis .mg-cost-panel{padding:12px}#managementAnalysis .mg-cost-field label{font-size:.72rem}}
