#ev2-cards.evf-grid{--evf-green:#22c55e;--evf-blue:#60a5fa;--evf-pink:#ff6ec7;--evf-purple:#a78bfa;--evf-cyan:#38bdf8;--evf-red:#ef4444;--evf-amber:#fbbf24;--evf-muted:#94a3b8;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;align-items:stretch;padding:0!important}
#ev2-cards .evf-card{position:relative;min-width:0;min-height:146px;padding:16px 13px 13px;border:1px solid var(--border,#384252);border-radius:12px;background:var(--bg-card,#161c25);color:var(--text,#e2e8f0);overflow:visible;box-sizing:border-box;cursor:grab}
#ev2-cards .evf-wide{grid-column:span 2}
#ev2-cards .evf-split{display:grid;height:100%;align-items:start;gap:0}
#ev2-cards .evf-three{grid-template-columns:repeat(3,minmax(0,1fr))}
#ev2-cards .evf-two{grid-template-columns:repeat(2,minmax(0,1fr));--evf-white:#fff}
#ev2-cards .evf-two .evf-brl{font-size:clamp(11px,1vw,19px)}
:root[data-theme="light"] #ev2-cards .evf-two>.evf-metric:last-child{background:#334155;border-radius:6px;padding:7px 8px;margin-top:-7px}
:root[data-theme="light"] #ev2-cards .evf-two>.evf-metric:last-child :is(.evf-label,.evf-usd){color:#e2e8f0}
@media(max-width:1250px){#ev2-cards :is([data-evcard="renovadas"],[data-evcard="upSemFront"]){grid-column:span 2}#ev2-cards .evf-two .evf-brl{font-size:20px}}
#ev2-cards .evf-metric{min-width:0;box-sizing:border-box;position:relative;outline:none}
#ev2-cards .evf-split>.evf-metric{padding:0 10px}
#ev2-cards .evf-split>.evf-metric:first-child{padding-left:0}
#ev2-cards .evf-split>.evf-metric:last-child{padding-right:0}
#ev2-cards .evf-split>.evf-metric+.evf-metric{border-left:1px solid var(--border,#384252)}
#ev2-cards .evf-label{font-size:10px;line-height:1.3;letter-spacing:.015em;text-transform:uppercase;color:var(--text-dim,#94a3b8);min-height:27px;padding-right:8px;overflow-wrap:anywhere}
#ev2-cards .evf-count,#ev2-cards .evf-brl{font-size:clamp(15px,1.32vw,23px);line-height:1.22;font-weight:650;font-variant-numeric:tabular-nums;color:var(--evf-color,var(--text));white-space:nowrap;letter-spacing:-.03em}
#ev2-cards .evf-count{font-size:clamp(19px,1.55vw,27px)}
#ev2-cards .evf-usd{font-size:10px;line-height:1.45;color:var(--text-dim,#94a3b8);margin-top:3px;overflow-wrap:anywhere}
#ev2-cards .evf-source{font-size:9px;line-height:1.4;color:var(--text-dim,#94a3b8);margin-top:7px}
#ev2-cards .evf-unavailable{font-size:15px;line-height:1.3;color:var(--text-dim,#94a3b8);margin:5px 0}
#ev2-cards .evf-drag{position:absolute;right:4px;top:3px;width:24px;height:24px;padding:0;background:transparent;border:0;color:var(--text-dim,#94a3b8);cursor:grab;touch-action:none;font-size:17px;line-height:24px;border-radius:4px;opacity:.65}
#ev2-cards .evf-drag:hover{opacity:1;background:#94a3b818}
#ev2-cards :is(.evf-metric,.evf-loss,.evf-drag):focus-visible{outline:2px solid #60a5fa;outline-offset:4px;border-radius:3px}
#ev2-cards .evf-dragging{opacity:.5}
#ev2-cards .evf-loss-row{display:grid;grid-template-columns:minmax(90px,1.3fr) 35px minmax(88px,1fr) minmax(80px,1fr);gap:8px;align-items:baseline;font-size:11px;line-height:1.65;font-variant-numeric:tabular-nums}
#ev2-cards .evf-loss-row>b,#ev2-cards .evf-loss-row>strong,#ev2-cards .evf-loss-row>small{text-align:right;white-space:nowrap}
#ev2-cards .evf-loss-row>small{color:var(--text-dim,#94a3b8);font-size:10px}
#ev2-cards .evf-loss .evf-label{min-height:20px}
#ev2-cards .evf-refund{color:var(--evf-amber)}
#ev2-cards .evf-charge,#ev2-cards .evf-loss-total{color:var(--evf-red)}
#ev2-cards .evf-loss-total{border-top:1px solid #ef444440;margin-top:4px;padding-top:4px;font-weight:600}
.evf-tooltip{position:fixed;z-index:2147483000;width:390px;max-width:calc(100vw - 20px);max-height:75vh;overflow:auto;padding:15px 17px;border-radius:14px;border:1px solid var(--border,#3b4657);background:color-mix(in srgb,var(--bg-card,#151b25) 94%,transparent);color:var(--text,#e2e8f0);box-shadow:0 18px 55px #0008;backdrop-filter:blur(22px);font:12px/1.62 system-ui,sans-serif;white-space:pre-line;box-sizing:border-box;pointer-events:none}
:is(.pfb-glass-all,.pfb-glass-tab) #ev2-cards .evf-card{background:var(--glass-surface)!important;border-color:var(--glass-border)!important;box-shadow:var(--glass-shadow)!important;backdrop-filter:blur(24px) saturate(145%)}
:root[data-theme="light"] #ev2-cards.evf-grid{--evf-green:#15803d;--evf-blue:#2563eb;--evf-pink:#be185d;--evf-purple:#7c3aed;--evf-cyan:#0369a1;--evf-red:#dc2626;--evf-amber:#a16207;--evf-muted:#64748b}
@media(min-width:1900px){#ev2-cards .evf-card{min-height:156px}#ev2-cards .evf-label{font-size:11px}#ev2-cards .evf-brl{font-size:24px}#ev2-cards .evf-loss-row{font-size:12px}}
@media(max-width:1250px){#ev2-cards.evf-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}#ev2-cards .evf-wide{grid-column:span 2}#ev2-cards .evf-count{font-size:24px}#ev2-cards .evf-brl{font-size:22px}}
@media(max-width:650px){#ev2-cards.evf-grid{gap:9px!important}#ev2-cards .evf-card{padding:14px 10px 12px;min-height:130px}#ev2-cards .evf-label{font-size:9px;min-height:28px}#ev2-cards .evf-split>.evf-metric{padding:0 6px}#ev2-cards .evf-count{font-size:19px}#ev2-cards .evf-brl{font-size:clamp(11px,3.3vw,19px);letter-spacing:-.045em}#ev2-cards .evf-usd{font-size:9px}#ev2-cards .evf-loss-row{grid-template-columns:minmax(80px,1.3fr) 28px minmax(65px,1fr) minmax(65px,1fr);gap:4px;font-size:10px}#ev2-cards .evf-loss-row>small{font-size:9px}#ev2-cards .evf-drag{width:23px;height:23px;top:0;right:0}#ev2-cards .evf-source{font-size:8px}}

#ev2-cards .evf-brl.evf-brl-missing{font-size:11px!important;white-space:normal;letter-spacing:0;line-height:1.4}

/* Match the measured Campanhas Meta card grid: four equal cards, 104px high. */
#ev2-cards.evf-grid{--evf-white:#fff;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
#ev2-cards .evf-card{grid-column:span 1!important;height:104px!important;min-height:104px!important;max-height:104px!important;padding:6px 8px!important;border-radius:10px!important;overflow:hidden}
#ev2-cards .evf-split{align-items:center;height:100%}
#ev2-cards .evf-split>.evf-metric{padding:0 6px}
#ev2-cards .evf-split>.evf-metric:first-child{padding-left:0}
#ev2-cards .evf-split>.evf-metric:last-child{padding-right:0}
#ev2-cards .evf-label{font-size:8px!important;line-height:1.08;min-height:19px!important;padding-right:6px}
#ev2-cards .evf-count{font-size:19px!important;line-height:1.13}
#ev2-cards .evf-brl,#ev2-cards .evf-two .evf-brl{font-size:14px;line-height:1.17;letter-spacing:-.03em}
#ev2-cards .evf-usd{font-size:8px!important;line-height:1.15;margin-top:2px}
#ev2-cards .evf-source{font-size:7px!important;line-height:1.15;margin-top:3px}
#ev2-cards .evf-loss .evf-label{min-height:12px!important}
#ev2-cards .evf-loss-row{grid-template-columns:minmax(90px,1.4fr) 24px minmax(59px,1fr) minmax(53px,.85fr);gap:4px;font-size:8px;line-height:1.55}
#ev2-cards .evf-loss-row>small{font-size:7px}
#ev2-cards .evf-loss-row>span>small{font-size:6.5px;white-space:nowrap}
#ev2-cards .evf-loss-total{margin-top:2px;padding-top:2px}
#ev2-cards .evf-unavailable{font-size:12px;line-height:1.2;margin:2px 0}
#ev2-cards .evf-drag{width:18px;height:18px;font-size:13px;line-height:18px;right:1px;top:0}
#ev2-root .evf-originals{font-size:7px;line-height:1.1;color:var(--text-dim,#94a3b8);overflow-wrap:anywhere}
@media(max-width:1300px){#ev2-cards.evf-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){#ev2-cards.evf-grid{grid-template-columns:minmax(0,1fr)!important}#ev2-cards .evf-card{width:100%}#ev2-cards .evf-loss-row{font-size:8px}}

/* Paid and open renewal charges share the conversion base; three sections. */
#ev2-cards .evf-renewal-grid{grid-template-columns:minmax(0,1fr) minmax(58px,.65fr) minmax(0,1fr);--evf-white:#fff}
#ev2-cards .evf-renewal-grid.evf-has-orphan{grid-template-columns:repeat(4,minmax(0,1fr))}
#ev2-cards .evf-four{grid-template-columns:repeat(4,minmax(0,1fr))}
#ev2-cards .evf-conversion{text-align:center;color:#a78bfa}
#ev2-cards .evf-conversion .evf-label{padding:0;min-height:12px!important}
#ev2-cards .evf-conversion svg{display:block;width:100%;max-width:100px;height:51px;margin:auto;overflow:visible}
#ev2-cards .evf-conversion text{font:600 21px system-ui;fill:#bda7ff}
#ev2-cards .evf-conversion .evf-usd{white-space:normal;font-size:7px!important;max-width:100%;overflow-wrap:anywhere;line-height:1.15}
#ev2-cards .evf-four .evf-metric{padding:0 4px}
#ev2-cards .evf-four .evf-label{font-size:7px!important;min-height:23px!important}
#ev2-cards .evf-four .evf-count{font-size:18px!important}
:root[data-theme="light"] #ev2-cards .evf-renewal-grid>.evf-metric:first-child{background:#263d35;border-radius:5px;padding:6px}
:root[data-theme="light"] #ev2-cards .evf-renewal-grid>.evf-metric:first-child :is(.evf-label,.evf-usd){color:#eefaf3}

#ev2-cards .evf-net{font-size:7px;line-height:1.25;margin-top:2px;color:var(--text-dim,#94a3b8);font-variant-numeric:tabular-nums}#ev2-cards .evf-net b{color:var(--evf-green);font-weight:600}

/* Keep each renewal caption inside its column and the existing 104px card. */
#ev2-cards .evf-renewal-grid>.evf-metric{max-width:100%;overflow:hidden}
#ev2-cards .evf-native-values{font-size:7px!important;line-height:1.1}
#ev2-cards .evf-native-values>span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#ev2-cards .evf-source{max-width:100%;overflow-wrap:anywhere}

/* Renewal stays paid / renewal conversion / open charges, on one label line.
   These are Events populations; checkout and traffic metrics belong elsewhere. */
#ev2-cards .evf-renewal-grid>.evf-metric{display:flex;flex-direction:column;align-self:stretch;justify-content:flex-start;padding-top:3px}
#ev2-cards .evf-renewal-grid .evf-label{min-height:20px!important;padding-right:0}
#ev2-cards .evf-renewal-conversion svg{height:34px;max-width:84px;margin:0 auto}
#ev2-cards .evf-renewal-conversion text{font-size:17px}

/* The loss meter belongs in the header, outside the five statement rows.
   A normal 51px conversion block displaced the rows below the 104px card. */
#ev2-cards .evf-loss{position:relative;display:grid;grid-template-rows:22px repeat(5,minmax(0,1fr)) 9px;height:100%;min-width:0}
#ev2-cards .evf-loss>.evf-label{padding-right:44px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ev2-cards .evf-loss-gauge{position:absolute;right:0;top:-3px;width:42px;height:25px;min-width:0;z-index:1}
#ev2-cards .evf-loss-gauge :is(.evf-label,.evf-usd){display:none}
#ev2-cards .evf-loss-gauge svg{width:42px;max-width:42px;height:25px;margin:0}
#ev2-cards .evf-loss-gauge text{font-size:14px}
#ev2-cards .evf-loss-row{grid-template-columns:minmax(0,1.4fr) 14px minmax(52px,1fr) minmax(38px,.85fr);gap:4px;line-height:1.2}
#ev2-cards .evf-loss-row>:is(span,b,strong,small){min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#ev2-cards .evf-loss-total{margin-top:0;padding-top:0}
#ev2-cards .evf-loss>.evf-ledger-stamp{margin-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
