/* Extensão visual: mantém o tema e os componentes financeiros existentes. */
:root{--mg-blue:#3b637d;--mg-series-0:#3b637d;--mg-series-1:#20745b;--mg-series-2:#b83e16;--mg-series-3:#9a721d;--mg-series-4:#866797;--mg-series-5:#596d57}
.mg-panel{margin:16px 0}.mg-view-header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:15px 0}.mg-view-header h2{margin:0}.mg-view-header button{font-size:12px}
.mg-monthly-table tbody tr:nth-child(odd)>td{background:var(--panel)}
.mg-monthly-table tbody tr:nth-child(even)>td{background:#f0f1ee}
.mg-monthly-table tbody tr:hover>td,.mg-monthly-table tbody tr:focus-within>td{background:#fff0e8}
nav .mg-nav-section{border:0;color:#e6e7df}nav .mg-nav-section summary{font-size:13px;font-weight:600;padding:12px 8px;cursor:pointer}nav .mg-nav-section button{width:100%;padding-left:20px;font-size:12px;min-height:38px}nav .mg-nav-section button:before{display:none}.brand span{font-size:19px!important;line-height:1.3!important;letter-spacing:-.4px!important}.asideNote{font-size:11px}
.mg-chart{width:100%;min-width:0}.mg-chart svg{display:block;width:100%;height:auto;cursor:pointer}.mg-chart text{font:11px Inter,"Segoe UI",system-ui,sans-serif;fill:var(--muted)}.mg-chart-picker{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;font-size:12px;margin-top:8px}.mg-chart-picker select{width:auto;max-width:100%}.mg-legend{display:flex;gap:10px 15px;flex-wrap:wrap;font-size:11px;margin:10px 0}.mg-legend-label{color:var(--muted)}.mg-legend>span:first-child{color:var(--green)}.mg-legend>span:nth-child(2){color:var(--orange)}
.mg-full{grid-column:1/-1}.mg-pre{white-space:pre-wrap}.mg-form-message{color:var(--red)}#mgDetailDialog{width:min(1000px,95vw)}#mgFormDialog{width:min(760px,95vw)}#mgNotificationsDialog{width:min(700px,95vw)}#mgFormFields textarea{width:100%;font:inherit;padding:10px;border:1px solid var(--line);border-radius:6px}#mgDetailBody p{overflow-wrap:anywhere}#mgDetailBody a{color:var(--orange);overflow-wrap:anywhere}#mgDetailBody td{overflow-wrap:anywhere}
.mg-podium{display:flex;align-items:flex-end;gap:12px;list-style:none;margin:20px 0;padding:20px 10px 0;background:radial-gradient(ellipse at 50% 100%,#fff0e8,transparent 72%);border-bottom:2px solid var(--line)}.mg-podium li{flex:1;min-width:0;text-align:center}.mg-place-1{order:2;--medal:#f2cb69}.mg-place-2{order:1;--medal:#d4dde5}.mg-place-3{order:3;--medal:#dfb89c}.mg-player{display:flex;align-items:center;flex-direction:column;gap:6px;padding-bottom:15px;font-size:13px;overflow-wrap:anywhere}.mg-player>span:first-child{height:28px;font-size:24px}.mg-avatar{display:grid;place-items:center;width:48px;height:48px;border:3px solid var(--medal);border-radius:50%;background:#fff;font-size:22px;font-weight:650}.mg-place-1 .mg-avatar{width:60px;height:60px}.mg-step{height:98px;display:flex;align-items:center;flex-direction:column;justify-content:center;background:var(--medal);color:#312b20;border-radius:10px 10px 0 0;font-size:25px}.mg-place-1 .mg-step{height:130px}.mg-place-3 .mg-step{height:76px}.mg-player small{font-size:11px}
@media(max-width:650px){.mg-podium{gap:7px;padding:14px 0 0}.mg-player{font-size:11px}.mg-avatar{width:40px;height:40px}.mg-place-1 .mg-avatar{width:48px;height:48px}.mg-chart-picker{justify-content:flex-start}#mgFormFields{grid-template-columns:1fr}.mg-full{grid-column:auto}}
@media print{.mg-nav-section,.mg-chart-picker,#mgBell,#mgBackup,.mg-view-header button{display:none!important}}
