/* MONALISA_GRAFICO_ATIVO_V1 — componente de gráfico do ativo */
.mac{position:relative;--mac-up:#0d9f6e;--mac-dn:#d63b3b;--mac-acc:#1d6fd8;--mac-amber:#b45309;--mac-mut:#4a6080;--mac-dim:#8a9ab5;}
.mac-bar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-bottom:8px;}
.mac-seg{display:inline-flex;border:1px solid #cfd9e6;border-radius:9px;overflow:hidden;background:#fff;}
.mac-seg button{border:0;background:transparent;padding:6px 11px;font:600 12.5px 'DM Sans',sans-serif;color:var(--mac-mut);cursor:pointer;min-height:32px;}
.mac-seg button+button{border-left:1px solid #cfd9e6;}
.mac-seg button[aria-pressed="true"]{background:#e8f1fc;color:var(--mac-acc);}
.mac-seg button[hidden]{display:none;}
.mac-plot{position:relative;touch-action:pan-y;user-select:none;-webkit-user-select:none;overflow:hidden;}
.mac-svg{display:block;max-width:100%;font-family:'DM Sans',sans-serif;}
.mac-wait{display:flex;align-items:center;justify-content:center;min-height:220px;border:1px dashed #cfd9e6;border-radius:10px;color:var(--mac-mut);font-size:13px;padding:16px;text-align:center;}
.mac-grid{stroke:#eef2f7;}
.mac-ax{fill:var(--mac-dim);font-size:10.5px;font-variant-numeric:tabular-nums;}
.mac-future{fill:#f6f9fd;}
.mac-now{stroke:#a9b8cc;stroke-dasharray:3 3;}
.mac-c-up{stroke:var(--mac-up);fill:var(--mac-up);} .mac-c-dn{stroke:var(--mac-dn);fill:var(--mac-dn);}
.mac-ma{fill:none;stroke-width:1.4;} .mac-ma21{stroke:#1d6fd8;} .mac-ma50{stroke:#7c5cd6;} .mac-ma200{stroke:#b45309;}
.mac-sup{stroke:var(--mac-up);stroke-dasharray:6 4;opacity:.7;} .mac-res{stroke:var(--mac-dn);stroke-dasharray:6 4;opacity:.7;}
.mac-cone80{fill:rgba(29,111,216,.10);} .mac-cone50{fill:rgba(29,111,216,.16);}
.mac-median{fill:none;stroke:rgba(29,111,216,.55);stroke-width:1.2;stroke-dasharray:4 3;}
.mac-zone-up{fill:rgba(13,159,110,.13);} .mac-zone-dn{fill:rgba(214,59,59,.08);}
.mac-strike{stroke-width:1.4;stroke-dasharray:5 3;} .mac-strike.is-call{stroke:var(--mac-up);} .mac-strike.is-put{stroke:var(--mac-dn);}
.mac-be{stroke:#0f1923;stroke-width:1.2;stroke-dasharray:2 3;}
.mac-lastline{stroke:#0f1923;stroke-width:.8;stroke-dasharray:2 3;opacity:.45;}
.mac-lasttag{fill:#0f1923;} .mac-lasttxt{fill:#fff;font-size:11px;font-weight:700;}
.mac-tline{stroke:var(--mac-acc);stroke-width:1.2;stroke-dasharray:3 3;}
.mac-target{cursor:grab;outline:none;}
.mac-target-halo{fill:rgba(29,111,216,.18);} .mac-target-dot{fill:var(--mac-acc);stroke:#fff;stroke-width:2;}
.mac-target:focus-visible .mac-target-halo{stroke:var(--mac-acc);stroke-width:2;}
.mac-cross{stroke:#8a9ab5;stroke-dasharray:2 3;pointer-events:none;}
.mac-legend{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:6px;font-size:11.5px;color:var(--mac-mut);}
.mac-lg{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;}
.mac-lg i{display:inline-block;width:16px;height:0;border-top:2px solid currentColor;}
.mac-lg-cone{height:9px!important;border:0!important;background:linear-gradient(90deg,rgba(29,111,216,.12),rgba(29,111,216,.24));border-radius:2px;}
.mac-lg-ma21{color:#1d6fd8;} .mac-lg-ma50{color:#7c5cd6;} .mac-lg-ma200{color:#b45309;}
.mac-lg-sup{color:var(--mac-up);border-top-style:dashed!important;} .mac-lg-res{color:var(--mac-dn);border-top-style:dashed!important;}
.mac-lg-zup{height:9px!important;border:0!important;background:rgba(13,159,110,.25);border-radius:2px;} .mac-lg-zdn{height:9px!important;border:0!important;background:rgba(214,59,59,.18);border-radius:2px;}
.mac-lg-be{color:#0f1923;border-top-style:dotted!important;}
.mac-read{margin:8px 0 0;font-size:13px;line-height:1.55;color:var(--mac-mut);}
.mac-read b{color:#0f1923;}
.mac-read .is-up{color:var(--mac-up);font-weight:700;} .mac-read .is-down{color:var(--mac-dn);font-weight:700;}
.mac-tip{position:absolute;z-index:20;pointer-events:none;max-width:260px;background:#0f1923;color:#fff;border-radius:9px;padding:8px 10px;font:12.5px/1.45 'DM Sans',sans-serif;box-shadow:0 8px 24px rgba(15,25,35,.25);}
.mac-tip small{color:#a9b8cc;} .mac-tip .is-up{color:#5fe0b0;} .mac-tip .is-down{color:#ff8f8f;}
@media (max-width:560px){.mac-bar{flex-direction:column;align-items:stretch;}.mac-seg{justify-content:stretch;}.mac-seg button{flex:1;}}
/* Etapa B — painel de resultado ao lado do eixo de preço e alças de strike */
.mac-side{fill:#f9fbfe;stroke:#e3e9f2;}
.mac-side-up{fill:rgba(13,159,110,.22);} .mac-side-dn{fill:rgba(214,59,59,.16);}
.mac-side-zero{stroke:#a9b8cc;stroke-width:1;}
.mac-side-exp{fill:none;stroke:#0f1923;stroke-width:1.6;stroke-linejoin:round;}
.mac-side-now{fill:none;stroke:var(--mac-amber);stroke-width:1.8;stroke-dasharray:5 3;stroke-linejoin:round;}
.mac-side-t{fill:var(--mac-acc);stroke:#fff;stroke-width:2;}
.mac-strike.is-drag{stroke-width:2.2;stroke-dasharray:none;}
.mac-leg{cursor:ns-resize;outline:none;touch-action:none;}
.mac-leg-hit{fill:transparent;}
.mac-leg-dot{stroke:#fff;stroke-width:2;}
.mac-leg.is-call .mac-leg-dot{fill:var(--mac-up);} .mac-leg.is-put .mac-leg-dot{fill:var(--mac-dn);}
.mac-leg:hover .mac-leg-hit,.mac-leg:focus-visible .mac-leg-hit{fill:rgba(15,25,35,.10);stroke:#0f1923;stroke-width:1;}
.mac-lg-sexp{color:#0f1923;}
.mac-lg-snow{color:var(--mac-amber);border-top-style:dashed!important;}
.mac-lg-leg{width:10px!important;height:10px!important;border:0!important;border-radius:50%;background:var(--mac-up);box-shadow:12px 0 0 -1px var(--mac-dn);margin-right:10px;}
