
/* B8: mapa do funil (SVG + blocos HTML). Paleta e cards do CLAUDE.md; prefixo mp-. Reaproveita .pg-card/.pg-btn/.pg-badge. Só o contêiner do mapa rola na horizontal; a página rola no #main. */
.mp-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.mp-banner { border-radius:6px; padding:10px 14px; font-size:13px; line-height:1.5; margin-bottom:12px; }
.mp-banner.err { background:rgba(239,68,68,.12); color:#fca5a5; } .mp-banner.info { background:rgba(184,246,253,.1); color:#d1d5db; }
.mp-scroll { overflow-x:auto; overflow-y:hidden; background:#0a0a0a; border-radius:6px; -webkit-overflow-scrolling:touch; }
.mp-canvas { position:relative; } .mp-sizer { position:relative; }
.mp-svg { position:absolute; left:0; top:0; pointer-events:none; overflow:visible; }
.mp-edge { fill:none; stroke-width:2; } .mp-edge.accept { stroke:#B8F6FD; } .mp-edge.decline { stroke:#9ca3af; } .mp-edge.entry, .mp-edge.sales, .mp-edge.main, .mp-edge.sw { stroke:#6b7280; }
.mp-node { cursor:grab; user-select:none; -webkit-user-select:none; position:absolute; box-sizing:border-box; background:#1a1a1a; border-radius:8px; padding:14px 16px; box-shadow:0 1px 4px rgba(0,0,0,.5); display:flex; flex-direction:column; gap:6px; overflow:hidden; color:#fff; }
.mp-node.mp-t-step, .mp-node.mp-t-sales, .mp-node.mp-t-checkout { cursor:default; }
.mp-node.mp-drag { box-shadow:0 6px 18px rgba(0,0,0,.7); z-index:5; }
.mp-node.mp-off { opacity:.65; } .mp-node.mp-orphan { outline:1px dashed #6b7280; outline-offset:-1px; }
.mp-node.mp-soon .mp-ty { white-space:normal; line-height:1.25; }
.mp-node.mp-soon { background:transparent; outline:1px dashed #3a3a3a; outline-offset:-1px; box-shadow:none; opacity:.7; }
.mp-nh { display:flex; align-items:center; gap:8px; min-height:24px; } .mp-ty { font-size:11px; letter-spacing:.04em; text-transform:uppercase; color:#919eab; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mp-grip { flex:0 0 auto; width:28px; height:28px; display:inline-flex; align-items:center; justify-content:center; color:#919eab; background:transparent; border:0; border-radius:6px; cursor:grab; touch-action:none; padding:0; }
.mp-grip:hover { background:#262626; color:#fff; } .mp-node.mp-drag .mp-grip { cursor:grabbing; }
.mp-nt { font-size:15px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mp-np { font-size:12px; color:#d1d5db; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .mp-np s { color:#6b7280; margin-left:4px; }
.mp-ns { font-size:12px; line-height:1.3; color:#919eab; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.mp-bl { font-size:12px; color:#d1d5db; } .mp-bl div { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; line-height:20px; }
.mp-na { display:flex; gap:6px; margin-top:auto; flex-wrap:nowrap; }
.mp-na button { flex:1 1 0; min-width:0; min-height:36px; padding:0 8px; border:0; border-radius:6px; background:#262626; color:#fff; font-size:13px; cursor:pointer; }
.mp-na button:hover { background:#333; } .mp-na button.dan { background:#3b1414; color:#fca5a5; } .mp-na button:disabled { opacity:.5; cursor:not-allowed; }
.mp-chip { position:absolute; transform:translate(-50%,-50%); background:#0a0a0a; font-size:11px; padding:2px 8px; border-radius:10px; border:0; cursor:pointer; white-space:nowrap; } .mp-chip:hover { background:#262626; } .mp-chip::after { content:''; position:absolute; inset:-8px -4px; }
.mp-chip.accept { color:#B8F6FD; } .mp-chip.decline { color:#9ca3af; }
.mp-plus { position:absolute; transform:translate(-50%,-50%); width:28px; height:28px; border-radius:50%; border:0; background:#B8F6FD; color:#121635; font-size:18px; line-height:1; font-weight:700; cursor:pointer; padding:0; display:flex; align-items:center; justify-content:center; box-shadow:0 1px 4px rgba(0,0,0,.6); }
.mp-plus::after { content:''; position:absolute; inset:-8px; } .mp-plus:hover { filter:brightness(1.1); }
.mp-hint { font-size:12px; color:#919eab; margin-top:10px; }
@media (max-width:700px) {
  .mp-na button { min-height:44px; } .mp-grip { width:44px; height:44px; margin:-8px -8px -8px 0; }
  .mp-plus { width:44px; height:44px; font-size:22px; } .mp-plus::after { inset:0; } .mp-chip { min-height:44px; padding:0 12px; font-size:12px; }
  .mp-node { padding:8px 12px; gap:2px; }
}
/* tela cheia do mapa: só vale enquanto o mapa está na tela */
body.mp-full:has(#mpScroll) :is(#sidebar, #topbar, #pgNav, #pgHead) { display: none !important; }
body.mp-full:has(#mpScroll) #pgPane > .pg-card { position: fixed; inset: 0; z-index: 400; margin: 0; border-radius: 0; overflow: auto; display: flex; flex-direction: column; background: var(--nx-page, #0a0a0a); padding: 16px 20px; }
body.mp-full:has(#mpScroll) .mp-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; max-height: none; }
body.mp-full:has(#mpScroll) .mp-hint { margin-bottom: 0; }
.pg-card .pg-acts.mp-acts { position: static; background: none; margin: 0; padding: 0; border: 0; border-radius: 0; }
/* mapa em tela cheia de verdade (14/11/2026): o fundo cinza do funil cobre a janela inteira, sem moldura; o título e os botões flutuam por cima; arrasta-se o fundo vazio */
body.mp-full:has(#mpScroll) #pgPane > .pg-card { position: fixed; inset: 0; z-index: 400; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; display: block; overflow: hidden; background: linear-gradient(var(--nx-tint, rgba(128,128,128,.18)), var(--nx-tint, rgba(128,128,128,.18))), var(--nx-page, #0a0a0a); }
body.mp-full:has(#mpScroll) .mp-scroll { position: absolute; inset: 0; background: transparent !important; border-radius: 0 !important; overflow: auto; padding: 96px 24px 44px; box-sizing: border-box; cursor: grab; }
body.mp-full:has(#mpScroll) .mp-scroll.mp-pan { cursor: grabbing; user-select: none; }
body.mp-full:has(#mpScroll) .mp-scroll .mp-canvas { background: transparent !important; border-radius: 0 !important; }
body.mp-full:has(#mpScroll) .mp-head { position: absolute; top: 12px; left: 20px; right: 20px; z-index: 6; margin: 0; pointer-events: none; }
body.mp-full:has(#mpScroll) .mp-head > * { pointer-events: auto; }
body.mp-full:has(#mpScroll) .mp-banner { position: absolute; top: 60px; left: 20px; right: 20px; z-index: 6; margin: 0; }
body.mp-full:has(#mpScroll) .mp-hint { position: absolute; left: 20px; right: 20px; bottom: 10px; z-index: 6; margin: 0; pointer-events: none; }
body.mp-full:has(#mpScroll) .mp-hint { right: auto; width: max-content; max-width: calc(100% - 40px); background: var(--nx-solid-bg, #fff); border-radius: 10px; padding: 6px 12px; box-shadow: 0 1px 6px rgba(0,0,0,.18); }
body.mp-full:has(#mpScroll) .mp-banner { top: 78px; right: auto; max-width: min(640px, calc(100% - 40px)); pointer-events: none; }
/* números dos cards (14/11/2026) */
.mp-sts { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; line-height: 1.3; margin: 2px 0 4px; }
.mp-st i { font-style: normal; opacity: .65; } .mp-st b { font-variant-numeric: tabular-nums; }
.mp-acts #mpPeriod { min-height: 44px; }
.mp-x { position:absolute; transform:translate(-50%,-50%); width:22px; height:22px; border-radius:50%; border:1px solid #6b7280; background:#0a0a0a; color:#e5e7eb; font-size:14px; line-height:1; cursor:pointer; padding:0; display:flex; align-items:center; justify-content:center; } .mp-x::after { content:''; position:absolute; inset:-10px; } .mp-x:hover { background:#7f1d1d; border-color:#ef4444; }
.mp-na button[hidden] { display:none; }
@media (max-width:700px) { .mp-x { width:44px; height:44px; font-size:20px; } .mp-x::after { inset:0; } }
.mp-menu { position:fixed; z-index:10050; min-width:180px; background:#0a0a0a; border:1px solid rgba(255,255,255,.18); border-radius:12px; padding:6px; box-shadow:0 8px 28px rgba(0,0,0,.6); }
.mp-menu-t { font-size:11px; opacity:.6; padding:4px 10px 6px; text-transform:uppercase; letter-spacing:.04em; }
.mp-menu button { display:block; width:100%; text-align:left; background:transparent; border:0; color:#fff; font:inherit; font-size:14px; padding:9px 10px; border-radius:8px; cursor:pointer; } .mp-menu button:hover, .mp-menu button:focus-visible { background:rgba(184,246,253,.14); outline:none; }
.mp-h { position:absolute; right:0; top:var(--hp,36%); transform:translateY(-50%); width:28px; height:28px; border:0; background:transparent; padding:0; cursor:crosshair; touch-action:none; z-index:3; }
.mp-h::before { content:''; position:absolute; left:50%; top:50%; width:16px; height:16px; margin:-8px 0 0 -8px; border-radius:50%; border:2px solid #B8F6FD; background:#0a0a0a; box-sizing:border-box; }
.mp-h-decline::before { border-color:#9ca3af; } .mp-h:hover::before { background:#B8F6FD; }
.mp-live { stroke:#B8F6FD; stroke-width:2; stroke-dasharray:6 4; fill:none; pointer-events:none; }
.mp-linking, .mp-linking * { cursor:crosshair !important; } .mp-node.mp-tgt { outline:2px solid #B8F6FD; outline-offset:2px; } .mp-node.mp-bad { outline:2px dashed #ef4444; outline-offset:2px; }
@media (max-width:700px) { .mp-h { width:44px; height:44px; } }
.mp-zoom { display:inline-flex; align-items:center; gap:6px; } .mp-zoom span { min-width:46px; text-align:center; font-size:13px; color:inherit; opacity:.85; } .mp-zoom .pg-btn { min-width:40px; }
.mp-node.mp-drag { cursor:grabbing; z-index:5; } .mp-node button, .mp-node a { cursor:pointer; }
@media (hover:hover) and (pointer:fine) { .mp-grip { display:none; } }
.mp-node .mp-h { cursor:crosshair; }
/* espaço grande e igual nos quatro lados do mapa; os cards ficam centralizados (mpCenter) */
.mp-scroll { overflow: auto; }
body:not(.mp-full) .mp-scroll { height: 70vh; min-height: 420px; }
.mp-sizer { box-sizing: content-box; padding: 1800px; }
@media (max-width: 800px) { .mp-sizer { padding: 700px; } }
