/* ================================================================
   MWA Dashboard — Action Center CSS (clean rewrite)
   ================================================================ */

/* ── Grid dos 3 cards de ação ── */
.block-mwa-dashboard-app .action-cards-row{align-items:stretch;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:18px 0 20px}

/* Dashboard KPI row: keep six summary cards balanced on wide screens. */
.block-mwa-dashboard-app #page-ac .kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;align-items:stretch}
.block-mwa-dashboard-app #page-ac .kpis .kpi{min-width:0;min-height:140px;padding:18px 16px}
.block-mwa-dashboard-app #page-ac .kpis .kpi-label{min-height:28px;line-height:1.18;overflow-wrap:anywhere}
.block-mwa-dashboard-app #page-ac .kpis .kpi-value{font-size:2.25rem;line-height:1}
.block-mwa-dashboard-app #page-ac .kpis .kpi-sub{line-height:1.25}
.block-mwa-dashboard-app #page-ac #kpis{position:relative;z-index:30}
.block-mwa-dashboard-app #page-ac #kpis .ac-main-kpi{overflow:visible}
.block-mwa-dashboard-app #page-ac #kpis .ac-main-kpi:hover,
.block-mwa-dashboard-app #page-ac #kpis .ac-main-kpi:focus,
.block-mwa-dashboard-app #page-ac #kpis .ac-main-kpi:focus-within{z-index:300}
.block-mwa-dashboard-app #page-ac #kpis .mwa-help-tip{z-index:301}
.block-mwa-dashboard-app #page-ac #kpis .mwa-help-tip::before,
.block-mwa-dashboard-app #page-ac #kpis .mwa-help-tip::after{z-index:302}
@media (max-width:1500px){.block-mwa-dashboard-app #page-ac .kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:820px){.block-mwa-dashboard-app #page-ac .kpis{grid-template-columns:1fr}}

/* ── Cards de ação ── */
.block-mwa-dashboard-app .ac-card{background:linear-gradient(180deg,#fff,#fbfcff);border:1px solid var(--line);border-radius:24px;padding:18px 20px;box-shadow:var(--shadow);min-height:300px;display:flex;flex-direction:column;gap:10px;height:100%;transition:transform .15s,box-shadow .15s,border-color .15s}
.block-mwa-dashboard-app .ac-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-hover)}
.block-mwa-dashboard-app .ac-card.urgent{border-top:3px solid var(--red)}
.block-mwa-dashboard-app .ac-card.attention{border-top:3px solid var(--amber)}
.block-mwa-dashboard-app .ac-card.review{border-top:3px solid var(--green)}
.block-mwa-dashboard-app .ac-card.opportunity{border-top:3px solid var(--blue)}
.block-mwa-dashboard-app .ac-badge-row{display:flex;align-items:center;gap:10px}
.block-mwa-dashboard-app .ac-badge{font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.09em;padding:5px 10px;border-radius:999px}
.block-mwa-dashboard-app .ac-badge.urgent{background:var(--red-dim);color:var(--red)}
.block-mwa-dashboard-app .ac-badge.attention{background:var(--amber-dim);color:var(--amber)}
.block-mwa-dashboard-app .ac-badge.review{background:var(--green-dim);color:var(--green)}
.block-mwa-dashboard-app .ac-badge.opportunity{background:var(--blue-dim);color:var(--blue)}
.block-mwa-dashboard-app .ac-time{font-size:.75rem;color:#8a94a8;font-weight:800}
.block-mwa-dashboard-app .mwa-help-tip{position:relative;display:inline-grid;place-items:center;width:18px;height:18px;border-radius:999px;border:1px solid var(--line2);background:#fff;color:#657089;font-size:.72rem;font-weight:900;line-height:1;cursor:help;flex-shrink:0;text-transform:none;letter-spacing:0;z-index:200}
.block-mwa-dashboard-app .mwa-help-tip:hover,.block-mwa-dashboard-app .mwa-help-tip:focus{border-color:var(--blue);color:var(--blue);outline:none}
.block-mwa-dashboard-app .mwa-help-tip::after{content:attr(data-tooltip);position:absolute;left:50%;bottom:calc(100% + 10px);transform:translateX(-50%) translateY(4px);width:max-content;max-width:280px;background:#101828;color:#fff;border-radius:10px;padding:9px 11px;font-size:.76rem;font-weight:700;line-height:1.45;letter-spacing:0;text-transform:none;box-shadow:0 12px 30px rgba(15,23,42,.22);opacity:0;pointer-events:none;z-index:10000;transition:opacity .12s,transform .12s;white-space:normal;text-align:left}
.block-mwa-dashboard-app .mwa-help-tip::before{content:"";position:absolute;left:50%;bottom:calc(100% + 4px);transform:translateX(-50%) translateY(4px);border:6px solid transparent;border-top-color:#101828;opacity:0;pointer-events:none;z-index:10001;transition:opacity .12s,transform .12s}
.block-mwa-dashboard-app .mwa-help-tip:hover::after,.block-mwa-dashboard-app .mwa-help-tip:focus::after,.block-mwa-dashboard-app .mwa-help-tip.is-open::after,.block-mwa-dashboard-app .mwa-help-tip:hover::before,.block-mwa-dashboard-app .mwa-help-tip:focus::before,.block-mwa-dashboard-app .mwa-help-tip.is-open::before{opacity:1;transform:translateX(-50%) translateY(0)}
.block-mwa-dashboard-app .card-head>.mwa-help-tip,.block-mwa-dashboard-app .card-head strong+.mwa-help-tip{margin-left:6px;vertical-align:middle}
.block-mwa-dashboard-app .ac-number{font-family:'DM Mono',ui-monospace,Menlo,Consolas,monospace;font-size:2.55rem;font-weight:900;line-height:1;letter-spacing:-.06em}
.block-mwa-dashboard-app .ac-number.urgent{color:var(--red)}
.block-mwa-dashboard-app .ac-number.attention{color:var(--amber)}
.block-mwa-dashboard-app .ac-number.review{color:var(--green)}
.block-mwa-dashboard-app .ac-number.opportunity{color:var(--blue);font-size:1.5rem;letter-spacing:-.03em}
.block-mwa-dashboard-app .ac-desc{font-size:.9rem;line-height:1.45;color:#33415c;min-height:38px}
.block-mwa-dashboard-app .ac-card-content{display:flex;flex-direction:column;justify-content:center;min-height:76px}
.block-mwa-dashboard-app .ac-card-content.urgent{gap:8px}
.block-mwa-dashboard-app .ac-card-content.attention{justify-content:flex-start;min-height:96px}
.block-mwa-dashboard-app .ac-card-content.review{justify-content:flex-start;min-height:96px}
.block-mwa-dashboard-app .ac-card-content.opportunity{justify-content:flex-end;min-height:96px}
@media (max-width:1380px){.block-mwa-dashboard-app .action-cards-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.block-mwa-dashboard-app .action-cards-row{grid-template-columns:1fr}}
.block-mwa-dashboard-app .ac-avatars{display:flex;gap:4px;align-items:center;margin:2px 0}
.block-mwa-dashboard-app .ac-av{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;color:#fff;background:var(--blue);font-size:.7rem;font-weight:900;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.block-mwa-dashboard-app .ac-av.has-img{overflow:hidden;background:#e8ecf5;color:transparent}
.block-mwa-dashboard-app .ac-av.has-img img{width:100%;height:100%;display:block;object-fit:cover}
.block-mwa-dashboard-app .ac-av.danger{background:var(--red)}
.block-mwa-dashboard-app .ac-av.warn{background:var(--amber)}
.block-mwa-dashboard-app .ac-av.good{background:var(--green)}
.block-mwa-dashboard-app .ac-av-more{background:#e8ecf5;color:#66708a}
.block-mwa-dashboard-app .ac-av-open-list{cursor:pointer;transition:background .15s,color .15s,transform .15s}
.block-mwa-dashboard-app .ac-av-open-list:hover{background:var(--red-dim);color:var(--red);transform:translateY(-1px)}
.block-mwa-dashboard-app .ac-urgent-summary{display:flex;flex-wrap:wrap;gap:6px 10px;margin-top:2px;color:#58627a;font-size:.75rem;line-height:1.35}
.block-mwa-dashboard-app .ac-urgent-summary span{align-items:center;background:#f6f8fc;border:1px solid var(--line);border-radius:999px;display:inline-flex;gap:4px;padding:4px 8px}
.block-mwa-dashboard-app .ac-urgent-summary strong{color:var(--red);font-family:'DM Mono',ui-monospace,Menlo,Consolas,monospace;font-weight:900}
.block-mwa-dashboard-app .ac-items{display:flex;flex-direction:column;gap:7px;margin:3px 0}
.block-mwa-dashboard-app .ac-items-compact{gap:5px;margin-top:0}
.block-mwa-dashboard-app .ac-items-compact .ac-item-row{align-items:center;display:grid;gap:8px;grid-template-columns:minmax(0,1fr)}
.block-mwa-dashboard-app .ac-items-compact .ac-item-more-row{margin-top:2px;display:block}
.block-mwa-dashboard-app .ac-item-more-slot{display:flex;justify-content:flex-end;min-width:34px}
.block-mwa-dashboard-app .ac-item-row{display:flex;justify-content:space-between;gap:12px;font-size:.8rem;min-height:18px}
.block-mwa-dashboard-app .ac-item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:100%;display:block;color:#536078}
.block-mwa-dashboard-app a.ac-item-link{text-decoration:none}
.block-mwa-dashboard-app a.ac-item-link:hover{color:var(--blue);text-decoration:underline}
.block-mwa-dashboard-app .ac-item-actions{align-items:center;display:inline-flex;flex-shrink:0;gap:6px}
.block-mwa-dashboard-app .ac-item-val{font-weight:900;color:var(--amber);font-family:'DM Mono',ui-monospace,Menlo,Consolas,monospace;flex-shrink:0}
.block-mwa-dashboard-app .ac-item-more{align-self:flex-start;background:#f5f7fc;border:1px solid var(--line);border-radius:999px;color:#66708a;cursor:pointer;font-size:.7rem;font-weight:900;line-height:1;padding:3px 10px;transition:background .15s,color .15s,transform .15s;display:inline-block;width:auto}
.block-mwa-dashboard-app .ac-item-more:hover{background:var(--amber-dim);color:var(--amber);transform:translateY(-1px)}
.block-mwa-dashboard-app .ac-compact-summary{display:flex;flex-wrap:wrap;gap:6px 10px;margin-top:2px;color:#58627a;font-size:.75rem;line-height:1.35}
.block-mwa-dashboard-app .ac-compact-summary span{align-items:center;background:#f6f8fc;border:1px solid var(--line);border-radius:999px;display:inline-flex;gap:4px;padding:4px 8px}
.block-mwa-dashboard-app .ac-compact-summary strong{color:var(--amber);font-family:'DM Mono',ui-monospace,Menlo,Consolas,monospace;font-weight:900}
.block-mwa-dashboard-app .ac-btn-row{margin-top:auto;display:grid;grid-template-columns:1fr auto;gap:10px;align-items:stretch;min-height:42px}
.block-mwa-dashboard-app .ac-btn-p,.block-mwa-dashboard-app .ac-btn-s{border:0;border-radius:14px;padding:12px 15px;font-weight:900;cursor:pointer;transition:transform .15s,box-shadow .15s}
.block-mwa-dashboard-app .ac-btn-p{background:linear-gradient(135deg,var(--blue2),var(--purple));color:#fff;box-shadow:0 8px 20px rgba(58,127,193,.18)}
.block-mwa-dashboard-app .ac-btn-s{background:#fff;border:1px solid var(--line2);color:#1e293b}
.block-mwa-dashboard-app .ac-btn-p:hover,.block-mwa-dashboard-app .ac-btn-s:hover{transform:translateY(-1px);box-shadow:var(--shadow-hover)}
.block-mwa-dashboard-app .ac-insight{align-items:center;background:#f5f7fc;border:1px solid var(--line);border-radius:14px;box-sizing:border-box;color:#58627a;display:flex;font-size:.82rem;gap:9px;height:82px;line-height:1.45;overflow:auto;padding:10px 12px}.block-mwa-dashboard-app .ac-insight>.mwa-ui-icon{color:#c98a2a;display:block;flex:0 0 20px;height:20px;width:20px}
.block-mwa-dashboard-app .mwa-bulk-progress{margin:12px 0 2px}
.block-mwa-dashboard-app .mwa-bulk-progress-track{background:#e8ecf5;border-radius:999px;height:9px;overflow:hidden;position:relative}
.block-mwa-dashboard-app .mwa-bulk-progress-bar{height:100%;background:linear-gradient(90deg,var(--blue2),var(--purple));border-radius:999px;position:relative;transition:width .28s ease;width:0}
.block-mwa-dashboard-app .mwa-bulk-progress-bar.is-sending::after{animation:mwaBulkShine 1.05s linear infinite;background:linear-gradient(90deg,transparent,rgba(255,255,255,.72),transparent);content:"";inset:0;position:absolute;transform:translateX(-100%)}
.block-mwa-dashboard-app .mwa-bulk-progress-status{color:var(--muted);font-size:.78rem;font-weight:700;margin-top:7px;text-align:center}
.block-mwa-dashboard-app .mwa-msg-send-btn.is-sending{box-shadow:0 0 0 4px rgba(91,155,213,.14),0 10px 24px rgba(91,155,213,.24)}

/* ── Avatares urgentes (expansíveis) ── */
.block-mwa-dashboard-app .ac-avatars-urgent{display:flex;flex-wrap:nowrap;align-items:center;gap:4px;margin:2px 0}
.block-mwa-dashboard-app .ac-av-expand{cursor:pointer;background:#e8ecf5;color:var(--muted);transition:background .15s,color .15s}
.block-mwa-dashboard-app .ac-av-expand:hover{background:var(--red-dim);color:var(--red)}
.block-mwa-dashboard-app .ac-av-extra{display:none;flex-wrap:wrap;gap:4px;align-items:center;margin-top:2px}

/* ── Mini chart ── */
.block-mwa-dashboard-app .ac-chart-mini{height:54px;display:flex;align-items:flex-end;gap:3px;padding:5px 0}
.block-mwa-dashboard-app .ac-bar-mini{flex:1;background:#dbeafe;border-radius:4px 4px 0 0;min-height:4px}
.block-mwa-dashboard-app .ac-bar-mini.hi{background:var(--blue)}

/* ── Gauge / Engajamento ── */
.block-mwa-dashboard-app .gauge{width:270px!important;height:270px!important;position:relative!important;background:transparent!important;display:block!important;filter:none!important;border-radius:0!important;flex-shrink:0}
.block-mwa-dashboard-app .gauge-donut{width:100%;height:100%;display:block;transform:rotate(-90deg)}
.block-mwa-dashboard-app .gauge-inner{position:absolute!important;inset:22%;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px;overflow:hidden;width:auto!important;height:auto!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;text-align:center;pointer-events:none}
.block-mwa-dashboard-app .gauge-dot{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:5px;flex-shrink:0}
.block-mwa-dashboard-app .gauge-track{fill:none;stroke:#e9edf6;stroke-width:17;stroke-linecap:butt}
.block-mwa-dashboard-app .gauge-progress{fill:none;stroke:var(--gauge-color,var(--green));stroke-width:17;stroke-linecap:butt;transition:stroke-dasharray .6s ease}
.block-mwa-dashboard-app .engage{align-items:center;justify-content:center;gap:40px;min-height:275px}
.block-mwa-dashboard-app .gauge-num{font-size:2.6rem;line-height:1;letter-spacing:-.05em;color:#1b2436}
.block-mwa-dashboard-app .gauge-label{font-size:.74rem;margin:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0;font-weight:800;color:#66708a;line-height:1.2;max-width:100%;min-width:0;text-align:center;overflow-wrap:anywhere}
.block-mwa-dashboard-app .gauge-label-txt{min-width:0;max-width:100%;overflow-wrap:anywhere}

/* ── Grid prioridade: lista + card IA — SEMPRE lado a lado ── */
.block-mwa-dashboard-app .ac-priority-grid{display:grid;grid-template-columns:1fr;gap:18px;align-items:start}
.block-mwa-dashboard-app .ac-priority-grid .card{margin-bottom:0}
.block-mwa-dashboard-app .ac-priority-card{min-height:380px}

/* ── Lista de atenção (att-rows) ── */
.block-mwa-dashboard-app #actionFocusList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.block-mwa-dashboard-app .att-item{min-width:0}
.block-mwa-dashboard-app .att-row{display:grid;grid-template-columns:42px minmax(120px,1fr) 150px 124px auto;align-items:center;gap:10px;border:1px solid var(--line);background:#f7f9fd;border-radius:18px;padding:12px 14px;cursor:pointer;transition:background .12s}
.block-mwa-dashboard-app .att-row:hover{background:#f0f4ff}
.block-mwa-dashboard-app .att-row.selected{background:var(--blue-dim)!important;border-color:var(--blue)!important}
.block-mwa-dashboard-app .att-avatar{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;color:#fff;background:var(--blue);font-weight:900;font-size:13px}
.block-mwa-dashboard-app .att-avatar.has-img{overflow:hidden;background:#e8ecf5;color:transparent}
.block-mwa-dashboard-app .att-avatar.has-img img{width:100%;height:100%;display:block;object-fit:cover}
.block-mwa-dashboard-app .att-avatar.danger{background:var(--red)}
.block-mwa-dashboard-app .att-avatar.warn{background:var(--amber)}
.block-mwa-dashboard-app .att-info{min-width:0}
.block-mwa-dashboard-app .att-name{font-size:.94rem;font-weight:900;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.block-mwa-dashboard-app .att-sub{font-size:.8rem;color:#5f6a80;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.block-mwa-dashboard-app .att-risk-wrap{flex:0 0 150px;display:grid;grid-template-columns:58px 72px;align-items:center;justify-content:end;gap:8px;width:150px}
.block-mwa-dashboard-app .att-risk-label{font-size:.7rem;color:#6b7489;font-weight:900;text-align:right;white-space:nowrap;width:58px}
.block-mwa-dashboard-app .att-risk-bar{width:72px;height:6px;border-radius:999px;background:#e4e8f1;overflow:hidden}
.block-mwa-dashboard-app .att-risk-fill{height:100%;border-radius:999px;background:var(--blue)}
.block-mwa-dashboard-app .att-risk-fill.danger{background:var(--red)}
.block-mwa-dashboard-app .att-risk-fill.warn{background:var(--amber)}
.block-mwa-dashboard-app .att-badge{flex:0 0 124px;font-size:.7rem;font-weight:900;border-radius:999px;padding:5px 8px;white-space:nowrap;width:124px;min-width:124px;max-width:124px;text-align:center;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis}
.block-mwa-dashboard-app .att-badge.high{background:#fdecec;color:#b42318}
.block-mwa-dashboard-app .att-badge.medium{background:#fff4df;color:#986014}
.block-mwa-dashboard-app .att-badge.low{background:#e8f7ef;color:#13794c}
.block-mwa-dashboard-app .att-open-btn{background:#fff;border:1px solid var(--line2);border-radius:12px;padding:8px 12px;font-weight:900;cursor:pointer;white-space:nowrap}
.block-mwa-dashboard-app .att-open-btn:hover{border-color:var(--blue);color:var(--blue);background:var(--blue-dim)}
.block-mwa-dashboard-app .att-detail{margin-top:8px;border:1px solid var(--line);border-radius:16px;background:#fff;padding:10px 12px;box-shadow:0 8px 18px rgba(30,42,70,.06)}
.block-mwa-dashboard-app .att-risk-summary{display:flex;align-items:center;gap:18px;min-height:38px;flex-wrap:wrap}
.block-mwa-dashboard-app .att-risk-chip{display:inline-flex;align-items:center;gap:7px;color:#111827;font-size:.84rem;font-weight:600;white-space:nowrap}
.block-mwa-dashboard-app .att-risk-chip i{width:13px;height:13px;border-radius:50%;display:inline-block;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.block-mwa-dashboard-app .att-risk-chip strong{font-weight:600}
.block-mwa-dashboard-app .att-risk-actions{flex-basis:100%;margin-left:0;display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap}
.block-mwa-dashboard-app .att-context-btn{border:1px solid var(--line2);background:#fff;border-radius:999px;padding:7px 11px;font-size:.72rem;font-weight:900;color:#28344f;cursor:pointer;white-space:nowrap;box-shadow:0 2px 8px rgba(30,42,70,.05)}
.block-mwa-dashboard-app .att-context-btn:hover{border-color:var(--blue);background:var(--blue-dim);color:var(--blue)}

/* ── Painel de IA placeholder ── */
.block-mwa-dashboard-app .ai-placeholder{min-height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#4b5871}
.block-mwa-dashboard-app .ai-placeholder .target{font-size:3rem;margin-bottom:18px}
.block-mwa-dashboard-app .ai-placeholder .line{width:64px;height:3px;background:#d9deea;margin:0 auto 34px;border-radius:99px}

/* ── Card de predição IA (rex-*) ── */
.block-mwa-dashboard-app .rex-wrap{display:block}
.block-mwa-dashboard-app .rex-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.2rem}
.block-mwa-dashboard-app .rex-sub{font-size:.68rem;color:var(--muted)}
.block-mwa-dashboard-app .rex-sub strong{color:var(--text)}
.block-mwa-dashboard-app .rex-pct{font-family:'DM Mono',ui-monospace,monospace;font-size:.78rem;font-weight:700;padding:3px 9px;border-radius:99px}
.block-mwa-dashboard-app .rex-name{font-size:1.05rem;font-weight:700;letter-spacing:-.02em;margin:.3rem 0 1rem;color:var(--text)}
.block-mwa-dashboard-app .rex-factor{margin-bottom:.45rem}
.block-mwa-dashboard-app .rex-factor-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.3rem}
.block-mwa-dashboard-app .rex-factor-label{font-size:.78rem;font-weight:700;color:var(--text)}
.block-mwa-dashboard-app .rex-factor-weight{font-size:.72rem;color:var(--muted)}
.block-mwa-dashboard-app .rex-bar{height:7px;background:#e8ecf5;border-radius:4px;overflow:hidden}
.block-mwa-dashboard-app .rex-bar-fill{height:100%;border-radius:4px;transition:width .6s cubic-bezier(.4,0,.2,1)}
.block-mwa-dashboard-app .rex-feedback-label{font-size:.7rem;color:var(--muted);margin-top:.6rem;margin-bottom:.35rem}
.block-mwa-dashboard-app .rex-feedback{display:flex;gap:.5rem}
.block-mwa-dashboard-app .rex-fb-btn{flex:1;background:#f5f7fc;border:1px solid var(--line2);border-radius:14px;padding:.55rem .5rem;font-family:inherit;font-size:.77rem;font-weight:600;color:var(--muted);cursor:pointer;transition:all .15s;text-align:center}
.block-mwa-dashboard-app .rex-fb-btn:hover{border-color:var(--blue);color:var(--text);background:var(--blue-dim)}
.block-mwa-dashboard-app .rex-fb-btn.voted{border-color:var(--green);color:var(--green);background:var(--green-dim)}
.block-mwa-dashboard-app .rex-feedback-hint{font-size:.65rem;color:var(--muted);margin-top:.4rem;text-align:center}
.block-mwa-dashboard-app .rex-spacer{display:none}
.block-mwa-dashboard-app .rex-email-btn{width:100%;margin-top:.7rem;background:linear-gradient(135deg,var(--blue2),var(--purple));color:#fff;border:none;border-radius:12px;padding:.58rem;font-family:inherit;font-size:.8rem;font-weight:700;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:.5rem}
.block-mwa-dashboard-app .rex-email-btn:hover{transform:translateY(-1px);box-shadow:0 4px 16px rgba(79,142,247,.3)}

/* ── Drill-down retenção ── */
.block-mwa-dashboard-app .mwa-ret-drill{position:fixed;inset:0;z-index:9100;background:rgba(0,0,0,.25);display:none;align-items:center;justify-content:center}
.block-mwa-dashboard-app .mwa-ret-drill-inner{background:#fff;border:1px solid var(--line);border-radius:20px;padding:1.1rem 1.3rem;min-width:300px;max-width:420px;box-shadow:0 12px 40px rgba(0,0,0,.18);animation:mwaFadeIn .15s ease}
.block-mwa-dashboard-app .mwa-ret-drill-head{display:flex;align-items:center;justify-content:space-between;font-size:.75rem;font-weight:700;color:var(--muted);letter-spacing:.05em;text-transform:uppercase;margin-bottom:.75rem}
.block-mwa-dashboard-app .mwa-ret-drill-head button{background:none;border:none;font-size:1rem;cursor:pointer;color:var(--muted);line-height:1;padding:0 4px}
.block-mwa-dashboard-app .mwa-ret-left{font-size:.75rem;color:var(--red);margin-bottom:.4rem;line-height:1.5}
.block-mwa-dashboard-app .mwa-ret-came{font-size:.75rem;color:var(--green);margin-bottom:.4rem;line-height:1.5}
.block-mwa-dashboard-app .mwa-ret-stayed{font-size:.75rem;color:var(--muted);line-height:1.5}

/* ── Toolbar de atenção ── */
.block-mwa-dashboard-app .ac-hero{margin-bottom:18px}
.block-mwa-dashboard-app .hero-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.block-mwa-dashboard-app .btn.small{padding:9px 13px;border-radius:12px;font-size:.84rem}
.block-mwa-dashboard-app .ac-list-head{align-items:center}
.block-mwa-dashboard-app .ac-retention-card .card-body{padding:24px 28px 20px}

/* Action center visual adjustments */
.block-mwa-dashboard-app #page-ac .grid2{gap:18px;position:relative;z-index:20}
.block-mwa-dashboard-app #page-ac .ac-retention-card{position:relative;z-index:35}
.block-mwa-dashboard-app #page-ac .ac-retention-card .card-head{position:relative;z-index:36;overflow:visible}
.block-mwa-dashboard-app #page-ac .ac-retention-card .mwa-help-tip{z-index:37}
.block-mwa-dashboard-app #page-ac .ac-retention-card .mwa-help-tip::after,
.block-mwa-dashboard-app #page-ac .ac-retention-card .mwa-help-tip::before{z-index:38}
.block-mwa-dashboard-app #page-ac .grid2:not(.ac-priority-grid){margin-bottom:22px}
.block-mwa-dashboard-app #page-ac .card{border-radius:20px;margin-bottom:18px;box-shadow:0 1px 5px rgba(0,0,0,.05),0 5px 18px rgba(30,42,70,.06);overflow:visible;position:relative;z-index:20}
.block-mwa-dashboard-app #page-ac .card:has(.mwa-help-tip:hover),
.block-mwa-dashboard-app #page-ac .card:has(.mwa-help-tip:focus){z-index:40}
.block-mwa-dashboard-app #page-ac .card-head{min-height:46px;padding:12px 18px;font-size:.74rem;background:#f6f8fc;border-radius:20px 20px 0 0;position:relative;overflow:visible;z-index:10}
.block-mwa-dashboard-app #page-ac .card .mwa-help-tip{z-index:11}
.block-mwa-dashboard-app #page-ac .card .mwa-help-tip::after,
.block-mwa-dashboard-app #page-ac .card .mwa-help-tip::before{z-index:10000}
.block-mwa-dashboard-app #page-ac .card-body{padding:18px 20px;border-radius:0 0 20px 20px}
.block-mwa-dashboard-app #page-ac .action-cards-row{gap:14px;margin:14px 0 18px}
.block-mwa-dashboard-app #page-ac .ac-card{min-height:178px;padding:16px 18px;border-radius:20px;gap:9px}
.block-mwa-dashboard-app #page-ac .ac-number{font-size:2.2rem}
.block-mwa-dashboard-app #page-ac .ac-desc{font-size:.86rem;min-height:38px}
.block-mwa-dashboard-app #page-ac .mwa-kpi-clickable,
.block-mwa-dashboard-app #page-ac .ac-click-card{cursor:pointer;position:relative;overflow:visible}
.block-mwa-dashboard-app #page-ac .mwa-kpi-clickable::after,
.block-mwa-dashboard-app #page-ac .ac-click-card::after{content:"→";position:absolute;right:18px;bottom:14px;color:var(--blue);font-weight:900;opacity:0;transform:translateX(-4px);transition:opacity .15s,transform .15s}
.block-mwa-dashboard-app #page-ac .mwa-kpi-clickable:hover,
.block-mwa-dashboard-app #page-ac .mwa-kpi-clickable:focus-visible,
.block-mwa-dashboard-app #page-ac .ac-click-card:hover,
.block-mwa-dashboard-app #page-ac .ac-click-card:focus-visible{border-color:rgba(91,155,213,.55);box-shadow:0 12px 28px rgba(43,76,126,.14);transform:translateY(-2px);outline:none}
.block-mwa-dashboard-app #page-ac .mwa-kpi-clickable:hover::after,
.block-mwa-dashboard-app #page-ac .mwa-kpi-clickable:focus-visible::after,
.block-mwa-dashboard-app #page-ac .ac-click-card:hover::after,
.block-mwa-dashboard-app #page-ac .ac-click-card:focus-visible::after{opacity:1;transform:translateX(0)}
.block-mwa-dashboard-app #page-ac .ac-btn-p,.block-mwa-dashboard-app #page-ac .ac-btn-s{padding:9px 12px;border-radius:12px;font-size:.82rem}
.block-mwa-dashboard-app #page-ac .engage{min-height:270px;gap:28px;justify-content:center}
.block-mwa-dashboard-app #page-ac .gauge{width:250px!important;height:250px!important}
.block-mwa-dashboard-app #page-ac .gauge-track,.block-mwa-dashboard-app #page-ac .gauge-progress{stroke-width:17}
.block-mwa-dashboard-app #page-ac #engPct.gauge-num{font-size:2.3rem}
.block-mwa-dashboard-app #page-ac .gauge-label{font-size:.72rem;margin:0}
.block-mwa-dashboard-app #page-ac .ac-priority-card{min-height:320px}
.block-mwa-dashboard-app #page-ac .ac-retention-card{margin-bottom:18px}
.block-mwa-dashboard-app #page-ac #retentionChart{height:154px!important;max-height:154px!important}
.block-mwa-dashboard-app #page-ac #eventChart{height:250px!important;max-height:250px!important;width:100%!important;cursor:pointer}
.block-mwa-dashboard-app #page-ac .ac-event-description{margin:0 auto 10px;max-width:620px;text-align:center;font-size:.83rem;line-height:1.5}
.block-mwa-dashboard-app #page-ac .ac-event-card .card-body{padding-top:20px}

/* ── Animação ── */
@keyframes mwaFadeIn{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}
@keyframes mwaBulkShine{to{transform:translateX(100%)}}

/* ── Responsivo: colapsa SOMENTE o que não é ac-priority-grid ── */
@media(max-width:1100px){
  .block-mwa-dashboard-app .action-cards-row{grid-template-columns:1fr}
  .block-mwa-dashboard-app .grid2:not(.ac-priority-grid){grid-template-columns:1fr}
}
@media(max-width:800px){
  .block-mwa-dashboard-app .ac-priority-grid{grid-template-columns:1fr}
  .block-mwa-dashboard-app #actionFocusList{grid-template-columns:1fr}
  .block-mwa-dashboard-app .att-row{grid-template-columns:42px minmax(0,1fr) auto;grid-template-areas:"avatar info open" "risk badge badge"}
  .block-mwa-dashboard-app .att-avatar{grid-area:avatar}
  .block-mwa-dashboard-app .att-info{grid-area:info}
  .block-mwa-dashboard-app .att-risk-wrap{grid-area:risk;justify-content:start}
  .block-mwa-dashboard-app .att-badge{grid-area:badge;justify-self:end}
  .block-mwa-dashboard-app .att-open-btn{grid-area:open}
}
@media(max-width:760px){
  .block-mwa-dashboard-app .ac-insight{height:auto;min-height:70px;overflow:visible}
}
.block-mwa-dashboard-app .att-see-all-btn{grid-column:1/-1;width:100%;margin-top:8px;background:#f5f7fc;border:1px solid var(--line2);border-radius:14px;padding:10px;font-family:inherit;font-size:.8rem;font-weight:800;color:var(--blue);cursor:pointer;transition:all .15s;text-align:center;}
.block-mwa-dashboard-app .att-see-all-btn:hover{background:var(--blue);color:#fff;}
.block-mwa-dashboard-app #page-ac .mwa-scroll-highlight{animation:mwaFocusPulse 1.35s ease}
@keyframes mwaFocusPulse{0%{box-shadow:0 0 0 0 rgba(91,139,213,.45)}70%{box-shadow:0 0 0 10px rgba(91,139,213,0)}100%{box-shadow:var(--shadow)}}
