/* MGID uses the compact Meta campaign components with its own original branding. */
.app[data-dash="mgid"] #main:has(>.tab-content[data-tab="mgid-campanhas"]:not(.hidden)){padding:0!important}
.app[data-dash="mgid"] .tab-content[data-tab="mgid-campanhas"]{position:relative;isolation:isolate;box-sizing:border-box;min-height:100%;padding:32px 40px 60px;--channel-color:#0132cc}
.app[data-dash="mgid"] #cmp-flag-mgid{position:absolute;inset:0!important;z-index:0;border-radius:0;opacity:1;background:#0132cc;overflow:hidden}
.app[data-dash="mgid"] #cmp-flag-mgid::before{content:'';position:absolute;inset:-8%;z-index:1;background:linear-gradient(105deg,#0005,transparent 18%,#fff2 30%,#0004 50%,transparent 70%,#fff2 85%,#0004);animation:mgid-flag-folds 16s ease-in-out infinite;pointer-events:none}
.app[data-dash="mgid"] #cmp-flag-mgid::after{z-index:2;background:radial-gradient(125% 95% at 50% 0%,rgba(11,15,22,.55),rgba(11,15,22,.82) 52%,rgba(11,15,22,.95))!important}
.app[data-dash="mgid"] #cmp-flag-mgid svg{transform:scale(1.08);animation:mgid-flag-wave 16s ease-in-out infinite;will-change:transform}
@keyframes mgid-flag-wave{0%,100%{transform:scale(1.08) translate(-1%,0) skewY(-.6deg)}50%{transform:scale(1.12) translate(1%,.4%) skewY(.6deg)}}
@keyframes mgid-flag-folds{0%,100%{transform:translateX(-2%) skewY(-.6deg)}50%{transform:translateX(2%) skewY(.6deg)}}
.app[data-dash="mgid"] .tab-content[data-tab="mgid-campanhas"] .cmp-wrap{position:relative;z-index:1;padding:6px 0 14px}
.app[data-dash="mgid"] #cmp-hdr-mgid{margin:0 0 10px;padding:5px 0;border:0}
.app[data-dash="mgid"] #cmp-hdr-mgid .page-title{font-family:var(--font-ui,Manrope,system-ui,sans-serif);font-size:17px;letter-spacing:normal}
.app[data-dash="mgid"] #cmp-hdr-mgid>[data-channel-graph]{display:none}
.app[data-dash="mgid"] #cmp-cards-mgid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px}
.app[data-dash="mgid"] #cmp-cards-mgid>.cmp-card{min-width:0;min-height:104px!important;height:104px!important;max-height:104px!important;padding:6px 8px!important;overflow:hidden!important;background:rgba(11,15,22,.5);border:1px solid rgba(255,255,255,.15);border-radius:10px;backdrop-filter:blur(10px)}
.app[data-dash="mgid"] #cmp-cards-mgid .k{font-family:var(--font-ui,Manrope,system-ui,sans-serif);font-size:8px!important;letter-spacing:.02em;text-transform:uppercase;color:var(--text-dim,#9aa4b2)}
.app[data-dash="mgid"] #cmp-cards-mgid .v{font-family:var(--font-ui,Manrope,system-ui,sans-serif);font-size:16px!important;line-height:1.04!important}
.app[data-dash="mgid"] #cmp-cards-mgid .cmp-b{font:inherit;color:inherit}
.app[data-dash="mgid"] #cmp-cards-mgid .cmp-s{font-size:7.5px;line-height:1.1;color:var(--text-dim,#9aa4b2)}
.app[data-dash="mgid"] #cmp-cards-mgid>.cmp-cod-merged{display:block!important;padding:5px 6px!important}
.app[data-dash="mgid"] #cmp-cards-mgid>.cmp-cod-merged .k{font-size:calc(7.5px * var(--cod-fit,1))!important;line-height:1.08!important;margin:0!important;white-space:normal!important}
.app[data-dash="mgid"] #cmp-cards-mgid>.cmp-cod-merged .v{font-size:calc(16px * var(--cod-fit,1))!important;line-height:1.04!important;white-space:nowrap!important;margin:1px 0!important}
.app[data-dash="mgid"] #cmp-cards-mgid>.cmp-cod-merged :is(.m,.s,.cmp-s){font-size:calc(7.5px * var(--cod-fit,1))!important;line-height:1.1!important;margin:0!important}
.app[data-dash="mgid"] .mgid-money{display:inline-block;vertical-align:middle;white-space:nowrap}
.app[data-dash="mgid"] .mgid-money>.cmp-b,.app[data-dash="mgid"] .mgid-money>.cmp-s{display:block}
.app[data-dash="mgid"] #cmp-cards-mgid>.cmp-funnel-switch .cmp-funnel-body{overflow:hidden!important;display:flex;align-items:center;width:100%;min-width:0}
.app[data-dash="mgid"] #cmp-cards-mgid>.cmp-funnel-switch .cmp-traffic-funnel{width:100%;min-width:0}
.app[data-dash="mgid"] #cmp-cards-mgid>.cmp-funnel-switch .fo-svg.fo-comp{height:69px!important;width:100%!important;min-width:0!important;display:block}
.app[data-dash="mgid"] #cmp-cards-mgid>.cw-card .cw-plot,.app[data-dash="mgid"] #cmp-cards-mgid>.cw-card .cw-plot svg{height:48px!important;min-height:0}
.app[data-dash="mgid"] #cmp-cards-mgid>.cw-card .cw-tools{display:flex;gap:3px;padding:0;font-size:8px}
.app[data-dash="mgid"] #cmp-cards-mgid>.cw-card .cw-tools select{min-width:0;flex:1;font-size:8px!important;height:17px!important;padding:0 1px!important}
.app[data-dash="mgid"] .channel-hour-tip{font-size:7.5px;line-height:1.1}
/* The shared table rule sets .cmp-b white; numeric channels inherit their metric colour. */
.app[data-dash="mgid"] #cmp-table-mgid td[data-channel-metric] .cmp-b{color:inherit!important}
.app[data-dash="mgid"] #cmp-table-mgid :is(td,.cmp-b){font-family:"JetBrains Mono",monospace}
.app[data-dash="mgid"] #cmp-table-mgid .cmp-nome,.app[data-dash="mgid"] #cmp-table-mgid .cmp-txt{font-family:var(--font-ui,Manrope,system-ui,sans-serif)}
.app[data-dash="mgid"] .mgid-advertiser-link{margin-left:6px;color:var(--text-dim);text-decoration:underline}
.app[data-dash="mgid"] #cmp-box-mgid{background:rgba(11,15,22,.82)!important}
:root[data-theme="light"] .app[data-dash="mgid"] #cmp-cards-mgid>.cmp-card{background:#f4f7fbc9;border-color:#cbd5e1}
:root[data-theme="light"] .app[data-dash="mgid"] #cmp-box-mgid{background:#f4f7fbd9!important}
:root[data-theme="light"] .app[data-dash="mgid"] #cmp-table-mgid .cmp-tot>td{background:#e8edf7!important}
:root[data-theme="light"] .app[data-dash="mgid"] #cmp-flag-mgid::after{background:radial-gradient(ellipse at 50% 25%,rgba(245,248,252,.66),rgba(245,248,252,.86) 65%,#f2f4f8)!important}
@media(max-width:1600px){.app[data-dash="mgid"] #cmp-cards-mgid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:900px){.app[data-dash="mgid"] .tab-content[data-tab="mgid-campanhas"]{padding:12px 10px 80px}}
@media(max-width:650px){.app[data-dash="mgid"] .tab-content[data-tab="mgid-campanhas"]{padding-top:60px}}
@media(max-width:580px){.app[data-dash="mgid"] #cmp-cards-mgid{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){.app[data-dash="mgid"] #cmp-flag-mgid svg,.app[data-dash="mgid"] #cmp-flag-mgid::before{animation:none}}
.app[data-dash="mgid"] #cmp-flag-mgid.mgid-flag-still svg,.app[data-dash="mgid"] #cmp-flag-mgid.mgid-flag-still::before{animation:none}
@media(prefers-reduced-transparency:reduce){.app[data-dash="mgid"] #cmp-cards-mgid>.cmp-card{background:var(--bg-elev);backdrop-filter:none}}
.app[data-dash="mgid"] #cmp-cards-mgid [data-channel-card="audiencia"]{position:relative}
.app[data-dash="mgid"] #cmp-cards-mgid [data-channel-card="audiencia"] .channel-vsl-detail{position:absolute;right:6px;bottom:4px;padding:0 3px;height:11px;line-height:10px;font-size:6px;border:0;border-radius:3px;background:var(--bg-elev,#141a24);color:#60a5fa;cursor:pointer}
.app[data-dash="mgid"] #cmp-cards-mgid>.cw-card .cw-period{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin:0;font-size:7px!important;line-height:1.1!important}
.app[data-dash="mgid"] #cmp-cards-mgid>.cw-card .cw-tools{min-height:17px;line-height:1}

[data-mgid-report] .cmp-table td .cmp-b{color:inherit!important}
