/* ======================================================================
   PAINEL v2 (13/11/2026): menu lateral + acabamento profissional.
   Arquivo adicional, carregado por último. Para voltar ao visual antigo,
   use os arquivos da pasta design-anterior-2026-11-13.
   ====================================================================== */
:root{
  --v2-navy:#0C2748; --v2-navy-2:#16324A; --v2-blue:#2E6E92; --v2-gold:#C9A35A;
  --v2-paper:#FBFAF7; --v2-card:#FFFFFF; --v2-line:#E7E3D7; --v2-line-2:#F0EDE5; --v2-field:#D5DCE4;
  --v2-ink:#1B2A38; --v2-muted:#6E7C88; --v2-green:#2F7A4A; --v2-red:#B42318;
  --v2-side:248px;
  --v2-body:'Poppins',system-ui,-apple-system,'Segoe UI',sans-serif;
  --v2-mono:'DM Mono','IBM Plex Mono',ui-monospace,Consolas,monospace;
}

/* ---------- Paleta do modo claro (substitui o fundo azul) ---------- */
html body.pv2:not(.tema-escuro){
  --page:var(--v2-paper); --paper:var(--v2-paper); --card:var(--v2-card); --line:var(--v2-line);
  --navy:var(--v2-navy); --ink:var(--v2-ink); --muted:var(--v2-muted);
  --on-page:var(--v2-navy); --on-page-muted:var(--v2-muted);
  background:var(--v2-paper); color:var(--v2-ink);
}
html:has(body.pv2:not(.tema-escuro)){background:var(--v2-paper)}
html body.pv2{font-family:var(--v2-body);-webkit-font-smoothing:antialiased}

/* ---------- Menu lateral ---------- */
html body.pv2 .cabecalho{
  position:fixed;top:0;left:0;bottom:0;width:var(--v2-side);z-index:70;
  display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;gap:0;
  padding:calc(18px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
  background:var(--v2-navy);border:0;border-right:1px solid rgba(255,255,255,.06);box-shadow:none;overflow-y:auto;scrollbar-width:none;
}
html body.pv2 .cabecalho::-webkit-scrollbar{display:none}
html body.pv2.tema-escuro .cabecalho{background:#061428;border-right-color:#14284a}
html body.pv2 .marca{display:flex;align-items:center;gap:10px;padding:2px 8px 18px;margin-bottom:6px;border-bottom:1px solid rgba(255,255,255,.08)}
html body.pv2 .marca img{width:34px;height:34px;border-radius:6px;object-fit:cover}
html body.pv2 .marca-txt{display:flex;flex-direction:column;line-height:1.2;min-width:0}
html body.pv2 .marca strong{color:#fff;font-family:var(--v2-body);font-weight:600;font-size:14px;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.pv2 .marca small{font-family:var(--v2-mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:#7F95B0;margin-top:2px}
html body.pv2 .cabecalho nav{display:flex;flex-direction:column;gap:2px;flex:1;width:auto;overflow:visible;padding:0;flex-wrap:nowrap}
html body.pv2 .nav-grupo{font-family:var(--v2-mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:#6F86A3;padding:16px 10px 6px}
html body.pv2 .cabecalho .nav-btn{
  display:flex;align-items:center;gap:11px;width:100%;text-align:left;
  padding:8px 10px;margin:0;border:0;border-radius:6px;background:transparent;
  color:#C9D5E3;font:500 13.5px/1.35 var(--v2-body);letter-spacing:0;box-shadow:none;text-decoration:none;cursor:pointer;white-space:nowrap
}
html body.pv2 .cabecalho .nav-btn:hover{background:rgba(255,255,255,.07);color:#fff}
html body.pv2 .cabecalho .nav-btn.ativo{background:#fff;color:var(--v2-navy)}
html body.pv2.tema-escuro .cabecalho .nav-btn.ativo{background:#1B355C;color:#fff}
html body.pv2 .cabecalho .nav-btn:focus-visible{outline:2px solid #8CB4D0;outline-offset:1px}
html body.pv2 .nav-ico{width:17px;height:17px;flex:none;opacity:.9}
html body.pv2 .nav-txt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
html body.pv2 .nav-ext-ico{width:13px;height:13px;flex:none;opacity:.55}
html body.pv2 .cabecalho .nav-badge{position:static;margin:0;min-width:0;height:auto;font:500 11px/1.5 var(--v2-mono);background:#C2362F;color:#fff;border-radius:4px;padding:0 6px;box-shadow:none}
html body.pv2 .cabecalho .nav-badge.oculto{display:none}
html body.pv2 .nav-rodape{margin-top:auto;padding-top:12px;border-top:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;gap:2px}
html body.pv2 .nav-rodape{margin-top:auto}
html body.pv2 .cabecalho nav > .nav-rodape{margin-top:auto}
html body.pv2 .cabecalho .nav-btn.sair{color:#C9D5E3}
html body.pv2 .cabecalho .nav-btn.sair:hover{color:#F4B4AE}

/* Conteúdo ao lado do menu */
html body.pv2 #painel{padding-left:var(--v2-side)}
html body.pv2 .conteudo{max-width:1120px;margin:0 auto;padding:28px max(36px,env(safe-area-inset-right)) 64px 36px}
html body.pv2:not(.tema-escuro) .conteudo > .aba{background:transparent;border-radius:0;padding:0;box-shadow:none}
html body.pv2 .conteudo > .aba{display:flex;flex-direction:column;gap:20px}

/* ---------- Tipografia e componentes base ---------- */
html body.pv2 .aba h2{font:600 26px/1.2 var(--v2-body);letter-spacing:-.01em;margin:0}
html body.pv2:not(.tema-escuro) .aba h2{color:var(--v2-navy)}
html body.pv2 .lista-topo{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
html body.pv2:not(.tema-escuro) .iddas-ajuda{color:var(--v2-muted);font-size:13px}
html body.pv2 .botao-principal,
html body.pv2 .form button[type=submit].botao-principal{border-radius:4px;font-family:var(--v2-body);font-weight:500;letter-spacing:0;box-shadow:none}
html body.pv2:not(.tema-escuro) .botao-principal{background:var(--v2-navy);border-color:var(--v2-navy);color:#fff}
html body.pv2:not(.tema-escuro) .botao-principal:hover{background:var(--v2-navy-2)}
html body.pv2 .btn-mini,html body.pv2 .vt-btn,html body.pv2 .btn-add{border-radius:4px;font-family:var(--v2-body);box-shadow:none}
html body.pv2:not(.tema-escuro) .vt-btn{background:#fff;color:var(--v2-navy);border:1px solid var(--v2-field)}
html body.pv2:not(.tema-escuro) .vt-btn.ativo{background:var(--v2-navy);border-color:var(--v2-navy);color:#fff}
html body.pv2:not(.tema-escuro) .form input,
html body.pv2:not(.tema-escuro) .form select,
html body.pv2:not(.tema-escuro) .form textarea{border-radius:4px;border-color:var(--v2-field);background:#fff}
html body.pv2 .form input:focus,html body.pv2 .form select:focus,html body.pv2 .form textarea:focus{outline:none;border-color:var(--v2-blue);box-shadow:0 0 0 3px rgba(46,110,146,.14)}

/* ---------- Tela Propostas ---------- */
html body.pv2 .pv2-ey{font-family:var(--v2-mono);font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--v2-muted)}
html body.pv2 .pv2-fio{display:block;width:28px;height:2px;background:var(--v2-gold);margin-bottom:10px}
html body.pv2 .pv2-topo-acoes{display:flex;gap:10px;align-items:center}
html body.pv2 .pv2-bt{display:inline-flex;align-items:center;gap:7px;font:500 13px var(--v2-body);padding:9px 16px;border-radius:4px;border:1px solid var(--v2-navy);background:var(--v2-navy);color:#fff;cursor:pointer;white-space:nowrap}
html body.pv2 .pv2-bt:hover{background:var(--v2-navy-2)}
html body.pv2 .pv2-bt.contorno{background:transparent;color:var(--v2-blue);border-color:var(--v2-blue)}
html body.pv2 .pv2-bt svg{width:15px;height:15px}

/* Números */
html body.pv2 #resumo-propostas.resumo-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:0;background:var(--v2-card);border:1px solid var(--v2-line);border-radius:8px;overflow:hidden;margin:0}
html body.pv2 #resumo-propostas .resumo-card{background:transparent;border:0;border-radius:0;box-shadow:none;padding:14px 20px;text-align:left}
html body.pv2 #resumo-propostas .resumo-card::before{display:none}
html body.pv2 #resumo-propostas .resumo-card + .resumo-card{border-left:1px solid var(--v2-line)}
html body.pv2 #resumo-propostas .resumo-num{font:600 24px/1.2 var(--v2-body);color:var(--v2-navy);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
html body.pv2 #resumo-propostas .resumo-num small{font:500 13px var(--v2-body);color:var(--v2-muted);margin-left:6px}
html body.pv2 #resumo-propostas .resumo-lbl{font:11px var(--v2-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--v2-muted);margin-top:2px}

/* Blocos de tarefas de hoje e "abriram sua proposta" */
html body.pv2 .follow-bloco{background:var(--v2-card);border:1px solid var(--v2-line);border-radius:8px;padding:0;box-shadow:none;margin:0;overflow:hidden}
html body.pv2 .follow-bloco:empty{display:none}
html body.pv2 .follow-bloco::before{display:none}
html body.pv2 .follow-tit{display:flex;align-items:center;gap:8px;padding:13px 18px;margin:0;border-bottom:1px solid var(--v2-line);font:600 14px var(--v2-body);letter-spacing:0;text-transform:none;color:var(--v2-navy)}
html body.pv2 .follow-bloco.recolhido .follow-tit{border-bottom:0}
html body.pv2 .follow-tit-ico{display:none}
html body.pv2 .follow-cnt{font:500 11px var(--v2-mono);background:#EEF3F7;color:var(--v2-navy);border-radius:4px;padding:1px 7px;min-width:0;height:auto}
html body.pv2 .follow-chevron{margin-left:auto;color:var(--v2-muted)}
html body.pv2 .follow-lista{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:0}
html body.pv2 .follow-card{display:flex;align-items:center;justify-content:space-between;gap:12px;background:transparent;border:0;border-radius:0;box-shadow:none;padding:12px 18px;margin:0;border-bottom:1px solid var(--v2-line-2)}
html body.pv2 .follow-lista .follow-card:nth-child(odd){border-right:1px solid var(--v2-line-2)}
html body.pv2 .follow-info b{font:500 14px var(--v2-body);color:var(--v2-navy)}
html body.pv2 .follow-dest{color:var(--v2-muted);font-size:12.5px}
html body.pv2 .follow-motivo,html body.pv2 .follow-motivo.visto{font:12px var(--v2-body);color:var(--v2-green);background:none;padding:0;letter-spacing:0}
html body.pv2 .follow-acoes{display:flex;gap:6px;flex:none}
html body.pv2 .follow-acoes a,html body.pv2 .follow-acoes button{font:500 12px var(--v2-body);padding:6px 11px;border-radius:4px;border:1px solid var(--v2-field);background:#fff;color:var(--v2-navy);text-decoration:none;box-shadow:none}
html body.pv2 .follow-acoes .fa-wpp{background:var(--v2-navy);border-color:var(--v2-navy);color:#fff}
html body.pv2 .tar-itens{padding:4px 0}
html body.pv2 .tarefas-hoje-bloco .tar-card{background:transparent;border:0;border-radius:0;box-shadow:none;border-bottom:1px solid var(--v2-line-2);margin:0;padding:11px 18px}
html body.pv2 .tarefas-hoje-bloco .tar-card:last-child{border-bottom:0}

/* Busca */
html body.pv2 .busca-wrap{position:relative;margin:0}
html body.pv2 .busca-ico{display:none}
html body.pv2 .busca-wrap::before{content:"";position:absolute;left:13px;top:50%;width:15px;height:15px;transform:translateY(-50%);pointer-events:none;
  background:currentColor;color:#8A97A3;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") center/contain no-repeat}
html body.pv2 .busca-prop{width:100%;border-radius:4px;border:1px solid var(--v2-field);background:#fff;padding:10px 12px 10px 36px;font:14px var(--v2-body);color:var(--v2-ink);box-shadow:none}
html body.pv2 .busca-prop:focus{outline:none;border-color:var(--v2-blue);box-shadow:0 0 0 3px rgba(46,110,146,.14)}

/* Lista de propostas em tabela */
html body.pv2 #lista-propostas.grade-propostas{display:block;padding:0;gap:0;background:var(--v2-card);border:1px solid var(--v2-line);border-radius:8px;overflow:visible}
html body.pv2 #lista-propostas.oculto{display:none}
html body.pv2 .pv2-th,html body.pv2 .pv2-row{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(0,1.2fr) minmax(0,1.3fr) 120px 112px;align-items:center;gap:14px;padding:0 18px}
html body.pv2 .pv2-th{font:500 10.5px var(--v2-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--v2-muted);padding-top:11px;padding-bottom:11px;border-bottom:1px solid var(--v2-line)}
html body.pv2 .pv2-row{padding-top:12px;padding-bottom:12px;border-bottom:1px solid var(--v2-line-2)}
html body.pv2 .pv2-row:last-child{border-bottom:0}
html body.pv2 .pv2-row:hover{background:#FCFBF8}
html body.pv2 .pv2-cli{min-width:0}
html body.pv2 .pv2-cli b{display:block;font:500 14px var(--v2-body);color:var(--v2-navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.pv2 .pv2-cli span{display:block;font-size:12.5px;color:var(--v2-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.pv2 .pv2-tag{display:inline-block;font:500 10.5px var(--v2-mono);letter-spacing:.06em;color:var(--v2-blue);border:1px solid #BFD0DC;border-radius:3px;padding:0 5px;margin-left:6px;vertical-align:1px}
html body.pv2 .pv2-etapa{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:var(--v2-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.pv2 .pv2-etapa i{width:7px;height:7px;border-radius:50%;flex:none;background:#8A97A3}
html body.pv2 .pv2-etapa[data-k=W] i{background:var(--v2-blue)}
html body.pv2 .pv2-etapa[data-k=Y] i,html body.pv2 .pv2-etapa[data-k=Z] i{background:#B7791F}
html body.pv2 .pv2-etapa[data-k=F] i,html body.pv2 .pv2-etapa[data-k=X] i{background:#B54A3A}
html body.pv2 .pv2-vis{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--v2-green);white-space:nowrap}
html body.pv2 .pv2-vis svg{width:14px;height:14px;flex:none}
html body.pv2 .pv2-vis.nao{color:#9AA5B0}
html body.pv2 .pv2-data{font:12px var(--v2-mono);color:var(--v2-muted);white-space:nowrap}
html body.pv2 .pv2-acoes{display:flex;justify-content:flex-end;gap:2px;position:relative}
html body.pv2 .pv2-ib{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:4px;border:0;background:transparent;color:#51606E;cursor:pointer;padding:0}
html body.pv2 .pv2-ib:hover{background:#EEF3F7;color:var(--v2-navy)}
html body.pv2 .pv2-ib svg{width:16px;height:16px}
html body.pv2 .pv2-mais{position:relative}
html body.pv2 .pv2-mais > summary{list-style:none}
html body.pv2 .pv2-mais > summary::-webkit-details-marker{display:none}
html body.pv2 .pv2-menu{position:absolute;right:0;top:36px;z-index:20;min-width:180px;background:#fff;border:1px solid var(--v2-line);border-radius:6px;box-shadow:0 10px 30px rgba(12,39,72,.12);padding:6px;display:flex;flex-direction:column}
html body.pv2 .pv2-menu button{display:block;text-align:left;font:13px var(--v2-body);color:var(--v2-ink);background:transparent;border:0;border-radius:4px;padding:8px 10px;cursor:pointer}
html body.pv2 .pv2-menu button:hover{background:#F4F6F8}
html body.pv2 .pv2-menu button.perigo{color:var(--v2-red)}
html body.pv2 .pv2-menu hr{border:0;border-top:1px solid var(--v2-line-2);margin:4px 2px}
html body.pv2 .pv2-vazio{padding:28px;text-align:center;color:var(--v2-muted)}

/* ---------- Nova proposta: índice dos blocos à direita ---------- */
html body.pv2:not(.tema-escuro) #aba-nova .form-jumpbar{background:var(--v2-paper);border-bottom:1px solid var(--v2-line)}
html body.pv2:not(.tema-escuro) #aba-nova .jump-chip,html body.pv2:not(.tema-escuro) #aba-nova .jump-topo{color:var(--v2-muted)}
html body.pv2:not(.tema-escuro) #aba-nova .jump-chip:hover{color:var(--v2-navy)}
html body.pv2:not(.tema-escuro) #aba-nova .jump-chip.ativo{color:var(--v2-navy);border-bottom-color:var(--v2-navy)}
@media (min-width:1000px){
  html body.pv2 .conteudo:has(> #aba-nova:not(.oculto)){margin-left:auto;margin-right:auto;padding-right:260px}
  html body.pv2 #aba-nova .form-jumpbar{left:auto;right:28px;top:calc(var(--cab-h) + 28px);width:200px;padding:12px 8px;border:1px solid var(--v2-line);border-radius:8px;background:#fff}
  html body.pv2.tema-escuro #aba-nova .form-jumpbar{background:#0d1d36;border-color:#1f3558}
  html body.pv2 #aba-nova .jump-cab{font-family:var(--v2-mono);color:var(--v2-muted);padding:2px 8px 8px}
  html body.pv2:not(.tema-escuro) #aba-nova .jump-chip{color:var(--v2-muted);border-left:0;border-radius:5px;padding:7px 10px;margin:0}
  html body.pv2:not(.tema-escuro) #aba-nova .jump-chip:hover{background:#F4F6F8;color:var(--v2-navy)}
  html body.pv2:not(.tema-escuro) #aba-nova .jump-chip.ativo{background:#EEF3F7;color:var(--v2-navy)}
  html body.pv2 #aba-nova .jump-topo{padding:7px 10px}
}
html body.pv2:not(.tema-escuro) .grupo-tit{font-family:var(--v2-body);color:var(--v2-navy);letter-spacing:0}

/* ---------- Barra inferior do celular ---------- */
.pv2-tabbar,.pv2-topbar,.pv2-veu{display:none}
@media (max-width:899px){
  html body.pv2 #painel{padding-left:0;padding-top:0}
  html body.pv2 .cabecalho{transform:translateX(-102%);transition:transform .22s ease;width:min(84vw,300px);box-shadow:0 0 40px rgba(0,0,0,.25)}
  html body.pv2.pv2-menu-aberto .cabecalho{transform:none}
  html body.pv2 .pv2-veu{display:block;position:fixed;inset:0;background:rgba(6,16,32,.45);z-index:65;opacity:0;pointer-events:none;transition:opacity .2s}
  html body.pv2.pv2-menu-aberto .pv2-veu{opacity:1;pointer-events:auto}
  html body.pv2 .pv2-topbar{display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:60;background:var(--v2-navy);color:#fff;
    padding:calc(10px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left))}
  html body.pv2.tema-escuro .pv2-topbar{background:#061428}
  html body.pv2 .pv2-topbar img{width:30px;height:30px;border-radius:6px}
  html body.pv2 .pv2-topbar b{flex:1;font:600 16px var(--v2-body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html body.pv2 .pv2-topbar button{background:transparent;border:0;color:#fff;padding:6px;display:grid;place-items:center;cursor:pointer}
  html body.pv2 .pv2-topbar svg{width:22px;height:22px}
  html body.pv2 .pv2-tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:60;background:#fff;border-top:1px solid var(--v2-line);
    padding:8px 6px calc(8px + env(safe-area-inset-bottom));justify-content:space-around;align-items:center}
  html body.pv2.tema-escuro .pv2-tabbar{background:#0a1a31;border-top-color:#1f3558}
  html body.pv2 .pv2-tab{display:flex;flex-direction:column;align-items:center;gap:2px;background:transparent;border:0;font:500 10.5px var(--v2-body);color:#8A97A3;width:64px;position:relative;cursor:pointer;padding:2px 0}
  html body.pv2 .pv2-tab svg{width:21px;height:21px}
  html body.pv2 .pv2-tab.ativo{color:var(--v2-navy)}
  html body.pv2.tema-escuro .pv2-tab.ativo{color:#fff}
  html body.pv2 .pv2-tab .pv2-badge{position:absolute;top:-4px;right:12px;font:500 9.5px/1.5 var(--v2-mono);background:#C2362F;color:#fff;border-radius:8px;padding:0 5px}
  html body.pv2 .pv2-fab{width:48px;height:48px;border-radius:12px;background:var(--v2-navy);color:#fff;border:0;display:grid;place-items:center;margin-top:-4px;cursor:pointer}
  html body.pv2 .pv2-fab svg{width:22px;height:22px}
  html body.pv2 .conteudo{padding:16px max(14px,env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
  html body.pv2 .aba h2{font-size:21px}
  html body.pv2 #resumo-propostas.resumo-cards{grid-template-columns:repeat(2,1fr)}
  html body.pv2 #resumo-propostas .resumo-card:nth-child(3){border-left:0}
  html body.pv2 #resumo-propostas .resumo-card:nth-child(n+3){border-top:1px solid var(--v2-line)}
  html body.pv2 #resumo-propostas .resumo-num{font-size:20px}
  html body.pv2 .follow-lista{grid-template-columns:1fr}
  html body.pv2 .follow-lista .follow-card:nth-child(odd){border-right:0}
  html body.pv2 .follow-card{flex-direction:column;align-items:stretch}
  html body.pv2 .pv2-th{display:none}
  html body.pv2 .pv2-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"cli acoes" "meta acoes";gap:2px 10px;padding:12px 14px}
  html body.pv2 .pv2-row .pv2-cli{grid-area:cli}
  html body.pv2 .pv2-row .pv2-acoes{grid-area:acoes}
  html body.pv2 .pv2-row .pv2-col-etapa{grid-area:meta}
  html body.pv2 .pv2-row .pv2-col-vis,html body.pv2 .pv2-row .pv2-data{display:none}
  html body.pv2 .pv2-row .pv2-col-etapa .pv2-vis-m{display:inline-flex}
  html body.pv2 .pv2-topo-acoes .pv2-bt.contorno{display:none}
  html body.pv2 .pv2-topo-acoes .pv2-bt{display:none}
  html body.pv2 #aba-nova .form-jumpbar{top:var(--cab-h)}
  html body.pv2 .form-actionbar{bottom:calc(66px + env(safe-area-inset-bottom))}
}
html body.pv2 .pv2-vis.pv2-vis-m{display:none}
@media (max-width:899px){ html body.pv2 .pv2-vis.pv2-vis-m{display:inline-flex;margin-left:8px} }

/* ---------- Modo escuro: ajustes do que é novo ---------- */
html body.pv2.tema-escuro #resumo-propostas.resumo-cards,
html body.pv2.tema-escuro .follow-bloco,
html body.pv2.tema-escuro #lista-propostas.grade-propostas{background:#0d1d36;border-color:#1f3558}
html body.pv2.tema-escuro #resumo-propostas .resumo-card + .resumo-card{border-left-color:#1f3558}
html body.pv2.tema-escuro #resumo-propostas .resumo-num,
html body.pv2.tema-escuro .follow-tit,
html body.pv2.tema-escuro .follow-info b,
html body.pv2.tema-escuro .pv2-cli b{color:#EAF0FA}
html body.pv2.tema-escuro .follow-tit,html body.pv2.tema-escuro .pv2-th{border-bottom-color:#1f3558}
html body.pv2.tema-escuro .follow-card,html body.pv2.tema-escuro .pv2-row,html body.pv2.tema-escuro .tarefas-hoje-bloco .tar-card{border-color:#172b4b}
html body.pv2.tema-escuro .pv2-row:hover{background:#10223f}
html body.pv2.tema-escuro .pv2-etapa{color:#C9D5E3}
html body.pv2.tema-escuro .follow-cnt{background:#1B355C;color:#EAF0FA}
html body.pv2.tema-escuro .follow-acoes a,html body.pv2.tema-escuro .follow-acoes button{background:#112a4d;border-color:#2a4470;color:#cfe0f0}
html body.pv2.tema-escuro .follow-acoes .fa-wpp{background:#2E6E92;border-color:#2E6E92;color:#fff}
html body.pv2.tema-escuro .busca-prop{background:#0d1d36;border-color:#1f3558;color:#EAF0FA}
html body.pv2.tema-escuro .pv2-ib{color:#9FB3CB}
html body.pv2.tema-escuro .pv2-ib:hover{background:#1B355C;color:#fff}
html body.pv2.tema-escuro .pv2-menu{background:#0d1d36;border-color:#1f3558}
html body.pv2.tema-escuro .pv2-menu button{color:#EAF0FA}
html body.pv2.tema-escuro .pv2-menu button:hover{background:#1B355C}
html body.pv2.tema-escuro .pv2-menu hr{border-top-color:#1f3558}
html body.pv2.tema-escuro .pv2-bt.contorno{color:#8CB4D0;border-color:#8CB4D0}
html body.pv2.tema-escuro .pv2-bt{background:#2E6E92;border-color:#2E6E92}

/* Barra de ações da Nova proposta respeita o menu lateral */
@media (min-width:900px){ html body.pv2 .form-actionbar{left:var(--v2-side)} }
html body.pv2:not(.tema-escuro) .form-actionbar{background:#fff;border-top:1px solid var(--v2-line);box-shadow:none}

html body.pv2 #lista-propostas.grade-propostas::before{content:none;display:none}
html body.pv2 .pv2-cli > span.pv2-tag{display:inline-block}
/* Ordem da tela Propostas: números, tarefas, quem abriu, busca, lista */
html body.pv2 #aba-lista > .lista-topo{order:0;margin-bottom:0}
html body.pv2 #aba-lista > #resumo-propostas{order:1}
html body.pv2 #aba-lista > #tarefas-hoje{order:2}
html body.pv2 #aba-lista > #abriram-propostas{order:3}
html body.pv2 #aba-lista > .busca-wrap{order:4}
html body.pv2 #aba-lista > *{order:5}
html body.pv2 #aba-lista > .iddas-ajuda{order:6;margin-top:-12px;font-size:12.5px}
html body.pv2 #aba-lista > #lista-propostas,html body.pv2 #aba-lista > #crm-board{order:5}
/* Cartões de tarefa no estilo novo */
html body.pv2 .tarefas-hoje-bloco .tar-card *{font-family:var(--v2-body)}
html body.pv2 .tarefas-hoje-bloco .tar-titulo,html body.pv2 .tarefas-hoje-bloco .tar-card b{font-weight:500;font-size:14px;letter-spacing:0}
html body.pv2:not(.tema-escuro) .tarefas-hoje-bloco .tar-titulo,html body.pv2:not(.tema-escuro) .tarefas-hoje-bloco .tar-card b{color:var(--v2-navy)}
html body.pv2 .tarefas-hoje-bloco .tar-meta,html body.pv2 .tarefas-hoje-bloco .tar-sub{font-family:var(--v2-body);font-size:12px;color:var(--v2-muted)}
html body.pv2 .pv2-cli b .pv2-tag{display:inline-block}
html body.pv2 .cabecalho #btn-tema.nav-btn{font:500 13.5px/1.35 var(--v2-body);padding:8px 10px;min-width:0;width:100%}
html body.pv2.tema-escuro #resumo-propostas .resumo-card{background:transparent;border:0;border-radius:0;box-shadow:none}
html body.pv2.tema-escuro #resumo-propostas .resumo-card + .resumo-card{border-left:1px solid #1f3558}
html body.pv2.tema-escuro .follow-lista .follow-card,html body.pv2.tema-escuro .follow-lista .follow-card:nth-child(odd){border-color:#172b4b;border-left:0}
html body.pv2.tema-escuro .follow-motivo,html body.pv2.tema-escuro .follow-motivo.visto,html body.pv2.tema-escuro .pv2-vis{color:#6FCF97}
html body.pv2.tema-escuro .pv2-vis.nao{color:#6B7F99}
html body.pv2.tema-escuro .follow-dest,html body.pv2.tema-escuro .pv2-cli > span,html body.pv2.tema-escuro .pv2-data{color:#8EA3BD}
/* Títulos que eram brancos sobre o fundo azul antigo */
html body.pv2 #aba-nova > h2,html body.pv2 #aba-nova .pv2-nova-topo h2,html body.pv2 #aba-calc .lista-topo h2{font:600 26px/1.2 var(--v2-body);letter-spacing:-.01em;margin:0}
html body.pv2:not(.tema-escuro) #aba-nova > h2,html body.pv2:not(.tema-escuro) #aba-nova .pv2-nova-topo h2,html body.pv2:not(.tema-escuro) #aba-calc .lista-topo h2{color:var(--v2-navy)}
html body.pv2 #blocos-hoteis > .bloco-mod > .bloco-cab > strong{font-family:var(--v2-body)}
html body.pv2:not(.tema-escuro) #aba-calc > .iddas-ajuda{color:var(--v2-muted)}
html body.pv2:not(.tema-escuro) .jbm-ativar-notif{background:#fff;color:var(--v2-navy);border-color:var(--v2-field)}

/* ======================================================================
   NOVA PROPOSTA v2: blocos numerados, recolhíveis, índice com ✓ e resumo
   ====================================================================== */
html body.pv2 #form-proposta{counter-reset:pv2bloco}
html body.pv2 #aba-nova #form-proposta > .grupo{counter-increment:pv2bloco;border-radius:8px !important;border:1px solid var(--v2-line) !important;box-shadow:none !important;background:#fff;overflow:visible}
html body.pv2 #aba-nova #form-proposta > .grupo.grupo-calc{background:#fff}
html body.pv2 #aba-nova #form-proposta > .grupo > .grupo-tit{
  display:flex;align-items:center;gap:12px;flex-wrap:nowrap;
  background:transparent !important;color:var(--v2-navy) !important;border-bottom:1px solid var(--v2-line);
  padding:15px 22px;font:600 15px/1.35 var(--v2-body);letter-spacing:0;text-transform:none;border-radius:8px 8px 0 0;cursor:pointer;user-select:none}
html body.pv2 #aba-nova #form-proposta > .grupo > .grupo-tit::before{
  content:counter(pv2bloco,decimal-leading-zero);flex:none;width:26px;height:22px;border-radius:4px;box-shadow:none;
  display:grid;place-items:center;background:var(--v2-navy);color:#fff;font:500 11px var(--v2-mono)}
html body.pv2 #aba-nova #form-proposta > .grupo.pv2-fechado > .grupo-tit::before{background:transparent;color:var(--v2-muted);border:1px solid var(--v2-field)}
html body.pv2 #aba-nova #form-proposta > .grupo > .grupo-tit .leg-dica{font:400 12.5px var(--v2-body);color:var(--v2-muted);letter-spacing:0;text-transform:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
html body.pv2 .pv2-estado{margin-left:auto;flex:none;font:500 12.5px var(--v2-body);color:var(--v2-blue);display:inline-flex;align-items:center;gap:6px}
html body.pv2 .pv2-estado .pv2-st{font:12px var(--v2-mono);color:var(--v2-green)}
html body.pv2 .pv2-estado .pv2-st.pv2-vz{color:#9AA5B0}
html body.pv2 #aba-nova #form-proposta > .grupo.pv2-fechado > .grupo-tit{border-bottom:0;border-radius:8px}
html body.pv2 #aba-nova #form-proposta > .grupo.pv2-fechado > .grupo-tit{font-weight:500;color:#344250 !important}
html body.pv2 #aba-nova #form-proposta > .grupo.pv2-fechado > .grupo-corpo{display:none}
html body.pv2 #aba-nova #form-proposta > .grupo > .grupo-corpo{padding:20px 22px}
html body.pv2 #aba-nova #form-proposta{display:flex;flex-direction:column;gap:14px}
html body.pv2 #aba-nova #form-proposta label{font-family:var(--v2-body)}
/* Índice à direita com ✓ */
html body.pv2 #aba-nova .jump-chip{position:relative}
@media (min-width:1000px){
  html body.pv2 #aba-nova .form-jumpbar{max-height:calc(100vh - 56px)}
  html body.pv2 #aba-nova .jump-chip{padding-left:36px !important}
  html body.pv2 #aba-nova .jump-chip::before{content:"";position:absolute;left:10px;top:50%;transform:translateY(-50%);width:16px;height:16px;border-radius:50%;border:1.5px solid #C8CFD6;box-sizing:border-box}
  html body.pv2 #aba-nova .jump-chip.pv2-ok::before{background:var(--v2-green);border-color:var(--v2-green);
    -webkit-mask:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-size:16px;background-position:center;background-repeat:no-repeat}
  html body.pv2 #aba-nova .jump-chip.ativo::before{border-color:var(--v2-navy)}
  html body.pv2:not(.tema-escuro) #aba-nova .jump-chip.pv2-ok{color:#344250}
  html body.pv2.tema-escuro #aba-nova .jump-chip{color:#C9D5E3 !important;background:transparent !important;border:0 !important;border-radius:5px;padding-top:7px;padding-bottom:7px;margin:0}
  html body.pv2.tema-escuro #aba-nova .jump-chip:hover{background:#132a4d !important}
  html body.pv2.tema-escuro #aba-nova .jump-chip.ativo{background:#1B355C !important;color:#fff !important}
  html body.pv2.tema-escuro #aba-nova .jump-chip::before{border-color:#3a5480}
}
.pv2-resumo{display:none}
@media (min-width:1000px){
  html body.pv2 .pv2-resumo{display:block;margin:12px 0 0;background:var(--v2-navy);color:#C9D5E3;border-radius:8px;padding:14px 14px 12px;font-size:12.5px;line-height:1.45}
  html body.pv2 .pv2-resumo .pv2-ey{color:#7F95B0;font-size:10.5px}
  html body.pv2 .pv2-resumo b.v{display:block;font:500 22px/1.2 'Fraunces',Georgia,serif;color:#fff;margin:6px 0 2px;word-break:break-word}
  html body.pv2 .pv2-resumo .l{display:flex;justify-content:space-between;gap:8px;border-top:1px solid rgba(255,255,255,.12);margin-top:8px;padding-top:8px}
  html body.pv2 .pv2-resumo .l b{color:#fff;font-weight:500;text-align:right}
  html body.pv2 .pv2-resumo .l b.neg{color:#F4B4AE}
}
/* Barra de ações */
html body.pv2 .pv2-prog{margin-right:auto;font:12.5px var(--v2-body);color:var(--v2-muted);white-space:nowrap}
html body.pv2 #form-erro:not(.oculto) ~ .pv2-prog{display:none}
html body.pv2 .form-actionbar .fab-preview{background:#fff;color:var(--v2-navy);border:1px solid var(--v2-field);border-radius:4px;font:500 13.5px var(--v2-body);padding:10px 18px}
html body.pv2 .form-actionbar .botao-principal{border-radius:4px;font:500 13.5px var(--v2-body);padding:10px 20px}
html body.pv2 .form-actionbar .fab-inner{max-width:none;padding-left:36px;padding-right:36px}
/* Celular: barra de progresso com "Próximo" */
.pv2-passo{display:none}
@media (max-width:999px){
  html body.pv2 .pv2-passo{display:flex;align-items:center;gap:10px;position:sticky;top:calc(var(--cab-h) + 44px);z-index:49;background:var(--v2-paper);padding:8px 2px 10px;margin-top:-14px;font-size:12.5px;color:var(--v2-muted)}
  html body.pv2 .pv2-passo b{color:var(--v2-navy);font-weight:600}
  html body.pv2 .pv2-passo .txt{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html body.pv2 .pv2-passo button{flex:none;font:500 12.5px var(--v2-body);color:#fff;background:var(--v2-navy);border:0;border-radius:4px;padding:6px 10px;cursor:pointer}
  html body.pv2 .pv2-passo .barra{position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--v2-line)}
  html body.pv2 .pv2-passo .barra i{display:block;height:3px;background:var(--v2-navy);transition:width .2s}
  html body.pv2 .pv2-prog{display:none}
  html body.pv2 .form-actionbar .fab-inner{padding:10px 14px calc(10px + env(safe-area-inset-bottom))}
  html body.pv2 .form-actionbar .fab-preview{padding:10px 12px}
  html body.pv2 #aba-nova #form-proposta > .grupo > .grupo-tit{padding:13px 14px}
  html body.pv2 #aba-nova #form-proposta > .grupo > .grupo-tit .leg-dica{display:none}
  html body.pv2 #aba-nova #form-proposta > .grupo > .grupo-corpo{padding:16px 14px}
}
/* Escuro */
html body.pv2.tema-escuro #aba-nova #form-proposta > .grupo{background:#0d1d36 !important;border-color:#1f3558 !important;-webkit-backdrop-filter:none;backdrop-filter:none}
html body.pv2.tema-escuro #aba-nova #form-proposta > .grupo > .grupo-tit{color:#EAF0FA !important;border-bottom-color:#1f3558}
html body.pv2.tema-escuro #aba-nova #form-proposta > .grupo.pv2-fechado > .grupo-tit{color:#C9D5E3 !important}
html body.pv2.tema-escuro #aba-nova #form-proposta > .grupo > .grupo-tit::before{background:#2E6E92}
html body.pv2.tema-escuro #aba-nova #form-proposta > .grupo.pv2-fechado > .grupo-tit::before{background:transparent;color:#8EA3BD;border-color:#2a4470}
html body.pv2.tema-escuro .pv2-estado{color:#8CB4D0}
html body.pv2.tema-escuro .pv2-estado .pv2-st{color:#6FCF97}
html body.pv2.tema-escuro .pv2-passo{background:#0b1324}
html body.pv2.tema-escuro .form-actionbar .fab-preview{background:#0d1d36;color:#EAF0FA;border-color:#2a4470}
html body.pv2.tema-escuro .pv2-resumo{background:#132a4d}
html body.pv2.tema-escuro #resumo-propostas .resumo-num{color:#EAF0FA !important}
html body.pv2.tema-escuro #resumo-propostas .resumo-card::before{display:none !important}

@media (max-width:999px){
  html body.pv2 #form-proposta > .grupo{scroll-margin-top:calc(var(--cab-h) + 86px)}
  html body.pv2 .form-actionbar .fab-preview,html body.pv2 .form-actionbar .botao-principal{white-space:nowrap;font-size:13px;padding:10px 11px}
  html body.pv2 .form-actionbar .botao-principal{flex:1}
}

/* ---------- Menu lateral recolhido (só ícones) ---------- */
@media (min-width:900px){
  html body.pv2.pv2-mini{--v2-side:68px}
  html body.pv2.pv2-mini .cabecalho{padding-left:10px;padding-right:10px;overflow-x:hidden}
  html body.pv2.pv2-mini .marca{justify-content:center;padding:2px 0 16px}
  html body.pv2.pv2-mini .marca-txt,
  html body.pv2.pv2-mini .nav-txt,
  html body.pv2.pv2-mini .nav-ext-ico{display:none}
  html body.pv2.pv2-mini .nav-grupo{font-size:0;padding:0;margin:10px 8px;height:1px;background:rgba(255,255,255,.1)}
  html body.pv2.pv2-mini .cabecalho .nav-btn{justify-content:center;padding:9px 0;position:relative}
  html body.pv2.pv2-mini .cabecalho .nav-badge{position:absolute;top:3px;right:6px;font-size:9.5px;padding:0 4px;line-height:1.45}
  html body.pv2.pv2-mini .nav-ico{width:19px;height:19px}
}
html body.pv2 .pv2-recolher .nav-ico{transition:transform .2s}
html body.pv2.pv2-mini .pv2-recolher .nav-ico{transform:rotate(180deg)}
@media (max-width:899px){ html body.pv2 .pv2-recolher{display:none !important} }
html body.pv2 #painel,html body.pv2 .cabecalho,html body.pv2 .form-actionbar{transition:padding-left .2s ease,width .2s ease,left .2s ease}
@media (prefers-reduced-motion:reduce){html body.pv2 #painel,html body.pv2 .cabecalho,html body.pv2 .form-actionbar{transition:none}}
