/* planos/patrimonio/patrimonio.css — identidade visual da área do plano Patrimônio.
   Mesma linguagem da landing: serifa + itálico na cor de destaque, rótulos com traço,
   números grandes, ícones de linha e o "R" do monograma. Usa var(--accent) para seguir
   a cor de tema que o cliente Patrimônio escolher. */

.pt-wrap{position:relative}
.pt-serif{font-family:var(--ced-serif);font-weight:400}
.pt-num{font-variant-numeric:tabular-nums}
.pt-eyebrow{font-size:12.5px;color:var(--muted);margin-bottom:4px}
.pt-titulo{font-family:var(--ced-serif);font-weight:400;font-size:22px;letter-spacing:-.3px;line-height:1.15;color:var(--text)}
.pt-titulo em{font-style:normal;color:inherit}

/* Cabeçalho da página */
#sec-score .page-title h2{font-family:var(--ced-serif);font-weight:400;letter-spacing:-.5px}
#sec-score .page-title h2 em{font-style:normal;color:inherit}

/* Abas: linha sob a ativa, com ícones de linha */
.pt-abas{display:flex;gap:2px;margin-bottom:20px;border-bottom:1px solid var(--border);overflow-x:auto;scrollbar-width:none}
.pt-abas::-webkit-scrollbar{display:none}
.pt-aba{display:inline-flex;align-items:center;gap:8px;padding:12px 16px;background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-1px;color:var(--muted);font-family:'DM Sans',sans-serif;font-size:13px;font-weight:500;cursor:pointer;white-space:nowrap;transition:color .2s,border-color .2s}
.pt-aba svg{width:16px;height:16px;flex-shrink:0}
.pt-aba:hover{color:var(--text)}
.pt-aba.ativa{color:var(--accent);border-bottom-color:var(--accent)}

/* Cartões */
.pt-card{position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:24px;margin-bottom:16px}
.pt-card-cab{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:18px}
.pt-r{position:absolute;right:-18px;bottom:-70px;font-family:var(--ced-serif);font-size:260px;line-height:1;color:var(--accent);opacity:.05;pointer-events:none;user-select:none}

/* Score: destaque + fatores */
.pt-score{display:grid;grid-template-columns:minmax(220px,.8fr) 1.2fr;gap:28px;align-items:center}
.pt-anel{position:relative;width:190px;height:190px;margin:0 auto}
.pt-anel svg{transform:rotate(-90deg);display:block}
.pt-anel-centro{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.pt-anel-num{font-family:var(--ced-serif);font-size:64px;line-height:1}
.pt-anel-de{font-size:12px;color:var(--muted);margin-top:4px}
.pt-nivel{text-align:center;margin-top:14px}
.pt-nivel strong{display:block;font-family:var(--ced-serif);font-style:normal;font-weight:500;font-size:26px;line-height:1.1}
.pt-nivel span{font-size:12px;color:var(--muted)}
.pt-fatores{display:flex;flex-direction:column;gap:18px}
.pt-fator-linha{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:7px}
.pt-fator-nome{font-size:14px;font-weight:500;color:var(--text)}
.pt-fator-pts{font-size:12px;color:var(--muted)}
.pt-fator-pts b{font-family:var(--ced-serif);font-weight:400;font-size:18px;color:var(--accent)}
.pt-barra{height:4px;border-radius:2px;background:var(--surface3);overflow:hidden}
.pt-barra i{display:block;height:100%;border-radius:2px;background:var(--accent);transition:width .6s ease}
.pt-fator-desc{font-size:11.5px;color:var(--muted);margin-top:6px}

/* Insights */
.pt-insights{display:flex;flex-direction:column;gap:12px}
.pt-insight{display:flex;gap:14px;padding:16px 18px;background:var(--surface2);border:1px solid var(--border);border-left:3px solid var(--pt-cor,var(--accent));border-radius:14px}
.pt-insight-ico{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex-shrink:0;color:var(--pt-cor,var(--accent));background:color-mix(in srgb,var(--pt-cor,var(--accent)) 14%,transparent)}
.pt-insight-ico svg{width:17px;height:17px}
.pt-insight h4{font-size:14px;font-weight:600;color:var(--text);margin-bottom:3px}
.pt-insight p{font-size:12.5px;color:var(--muted);line-height:1.5}

/* Desafios */
.pt-nivel-card{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.pt-medalha{width:86px;height:86px;border-radius:50%;display:grid;place-items:center;border:2px solid var(--pt-cor,var(--accent));color:var(--pt-cor,var(--accent));flex-shrink:0;box-shadow:0 0 30px color-mix(in srgb,var(--pt-cor,var(--accent)) 25%,transparent)}
.pt-medalha span{font-family:var(--ced-serif);font-size:30px;line-height:1}
.pt-nivel-info{flex:1;min-width:200px}
.pt-pontos{font-family:var(--ced-serif);font-size:44px;line-height:1;color:var(--text)}
.pt-pontos small{font-family:'DM Sans',sans-serif;font-size:14px;color:var(--muted);margin-left:6px}
.pt-desafios{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.pt-desafio{display:flex;align-items:center;gap:12px;padding:14px;background:var(--surface2);border:1px solid var(--border);border-radius:14px}
.pt-desafio.feito{border-color:color-mix(in srgb,var(--accent) 35%,transparent)}
.pt-check{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;border:1.5px solid var(--border2);color:var(--muted)}
.pt-desafio.feito .pt-check{background:var(--accent);border-color:var(--accent);color:#0f0f0f}
.pt-check svg{width:14px;height:14px}
.pt-desafio h4{font-size:13px;font-weight:600;color:var(--text)}
.pt-desafio:not(.feito) h4{color:var(--muted)}
.pt-desafio p{font-size:11.5px;color:var(--muted);margin-top:2px}
.pt-desafio-pts{margin-left:auto;font-family:var(--ced-serif);font-size:17px;color:var(--muted);flex-shrink:0}
.pt-desafio.feito .pt-desafio-pts{color:var(--accent)}

/* Projeções */
.pt-param{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.pt-param .field{margin:0;min-width:200px}
.pt-param-nota{font-size:12px;color:var(--muted);flex:1;min-width:220px}
.pt-param-nota strong{color:var(--text)}
.pt-marcos{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-top:1px solid var(--border)}
.pt-marco{padding:18px 16px 4px 0}
.pt-marco+.pt-marco{padding-left:16px;border-left:1px solid var(--border)}
.pt-marco small{display:block;font-size:12.5px;color:var(--muted)}
.pt-marco strong{display:block;font-family:var(--ced-serif);font-weight:400;font-size:24px;color:var(--text);margin-top:6px;line-height:1.1}
.pt-marco:last-child strong{color:var(--accent)}

/* Sem dados */
.pt-vazio{text-align:center;padding:52px 20px}
.pt-vazio-ico{width:56px;height:56px;border-radius:16px;margin:0 auto 16px;display:grid;place-items:center;background:var(--accent-s);color:var(--accent)}
.pt-vazio-ico svg{width:24px;height:24px}
.pt-vazio p{font-size:13px;color:var(--muted);max-width:340px;margin:8px auto 0}

@media(max-width:767px){
  .pt-card{padding:20px 18px;border-radius:18px}
  .pt-score{grid-template-columns:1fr;gap:24px}
  .pt-anel{width:170px;height:170px}
  .pt-anel svg{width:170px;height:170px}
  .pt-anel-num{font-size:56px}
  .pt-desafios{grid-template-columns:1fr}
  .pt-marcos{grid-template-columns:1fr 1fr}
  .pt-marco:nth-child(3){padding-left:0;border-left:none}
  .pt-marco:nth-child(n+3){border-top:1px solid var(--border)}
  .pt-abas{justify-content:space-between}
  .pt-aba{padding:11px 4px;gap:6px;font-size:12.5px}
  .pt-aba svg{width:14px;height:14px}
  .pt-r{font-size:200px}
}

@media(max-width:359px){
  .pt-aba svg{display:none}
}

/* ═══ Relatórios (Patrimônio) — folha no padrão Cédula, também usada para gerar o PDF ═══ */
.rel-controles{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.rel-controles select{height:38px;padding:0 12px;background:var(--surface2);border:1px solid var(--border2);border-radius:6px;color:var(--text);font:13px 'DM Sans',sans-serif;outline:none;min-width:220px}
.rel-controles select:focus{border-color:var(--accent)}
.rel-folha{display:flex;flex-direction:column;gap:12px;max-width:900px}
.rel-bloco{background:var(--surface);border:1px solid var(--ced-gravura-fina);border-radius:8px;padding:20px 22px}
.rel-tit{font-family:var(--ced-serif);font-weight:500;font-size:19px;letter-spacing:-.2px;color:var(--text);margin:0 0 14px}
.rel-capa{position:relative;overflow:hidden;min-height:150px;border:1px solid var(--ced-gravura);box-shadow:inset 0 0 0 5px var(--surface),inset 0 0 0 6px var(--ced-gravura-fina)}
.rel-roseta{position:absolute;right:-60px;top:50%;width:260px;height:260px;transform:translateY(-50%);color:var(--accent);opacity:.45;pointer-events:none}
.rel-roseta svg{position:static;width:100%;height:100%;transform:none;opacity:1}
.rel-capa-txt{position:relative;padding:6px 4px}
.rel-serie{font-size:11px;letter-spacing:2px;color:var(--muted);margin-bottom:10px;font-variant-numeric:tabular-nums}
.rel-capa-tipo{font-size:13px;color:var(--muted)}
.rel-capa-periodo{font-family:var(--ced-serif);font-weight:500;font-size:34px;letter-spacing:-.6px;line-height:1.1;color:var(--text);margin:2px 0 8px}
.rel-capa-dono{font-size:13px;color:var(--accent)}
.rel-resumo{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--ced-gravura-fina)}
.rel-resumo>div{padding:12px 14px 4px;border-left:1px solid var(--ced-gravura-fina);display:flex;flex-direction:column;gap:3px;min-width:0}
.rel-resumo>div:first-child{border-left:none;padding-left:0}
.rel-resumo span{font-size:12px;color:var(--muted)}
.rel-resumo b{font-family:var(--ced-serif);font-weight:500;font-size:22px;letter-spacing:-.3px;color:var(--text);font-variant-numeric:lining-nums tabular-nums;white-space:nowrap}
.rel-resumo b.pos{color:var(--green)} .rel-resumo b.neg{color:var(--red)}
.rel-var{font-size:11.5px;color:var(--muted)}
.rel-var.bom{color:var(--green)} .rel-var.ruim{color:var(--red)}
.rel-recs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.rel-recs li{font-size:13.5px;line-height:1.55;color:var(--text);padding:2px 0 2px 14px;border-left:2px solid var(--accent)}
.rel-recs li.alerta{border-left-color:var(--red)} .rel-recs li.ok{border-left-color:var(--green)}
.rel-cats{display:flex;flex-direction:column;gap:10px}
.rel-cat{display:grid;grid-template-columns:150px 1fr 170px;align-items:center;gap:14px}
.rel-cat-nome{font-size:13.5px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rel-cat-barra{height:6px;border-radius:3px;background:var(--surface3);overflow:hidden}
.rel-cat-barra i{display:block;height:100%;border-radius:3px;background:var(--accent)}
.rel-cat-val{font-family:var(--ced-serif);font-weight:500;font-size:16px;text-align:right;color:var(--text);font-variant-numeric:lining-nums tabular-nums;white-space:nowrap}
.rel-cat-val small{display:block;font-family:'DM Sans',sans-serif;font-size:11px;color:var(--muted)}
.rel-linha{display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--ced-gravura-fina)}
.rel-linha:last-child{border-bottom:none}
.rel-data{font-family:var(--ced-serif);font-weight:500;font-size:16px;color:var(--muted);font-variant-numeric:lining-nums}
.rel-nome{font-size:13.5px;color:var(--text);min-width:0}
.rel-nome small{display:block;font-size:11.5px;color:var(--muted)}
.rel-linha b{font-family:var(--ced-serif);font-weight:500;font-size:16px;color:var(--text);white-space:nowrap}
.rel-duas{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.rel-score{display:flex;align-items:baseline;gap:10px;margin-bottom:8px}
.rel-score b{font-family:var(--ced-serif);font-weight:500;font-size:44px;line-height:1;color:var(--accent)}
.rel-score span{font-size:13px;color:var(--muted)}
.rel-fator{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:var(--muted);padding:7px 0;border-bottom:1px solid var(--ced-gravura-fina)}
.rel-fator b{font-family:var(--ced-serif);font-weight:500;font-size:16px;color:var(--text)}
.rel-nota{font-size:12px;color:var(--muted);margin-top:8px}
.rel-meta{padding:8px 0}
.rel-meta-top{display:flex;justify-content:space-between;gap:10px;font-size:13.5px;color:var(--text);margin-bottom:6px}
.rel-meta-top span:last-child{color:var(--muted);font-size:12.5px}
.rel-meta-sub{font-size:11.5px;color:var(--muted);margin-top:4px}
.rel-rodape{font-size:11.5px;color:var(--muted);background:none;border:none;padding:4px 2px}
/* No PDF a folha tem sempre a largura do computador */
.rel-pdf .rel-resumo{grid-template-columns:repeat(4,1fr)!important}
.rel-pdf .rel-duas{grid-template-columns:1fr 1fr!important}
@media(max-width:767px){
  .rel-folha:not(.rel-pdf) .rel-resumo{grid-template-columns:1fr 1fr}
  .rel-folha:not(.rel-pdf) .rel-resumo>div:nth-child(3){border-left:none;padding-left:0}
  .rel-folha:not(.rel-pdf) .rel-duas{grid-template-columns:1fr}
  .rel-folha:not(.rel-pdf) .rel-cat{grid-template-columns:1fr auto}
  .rel-folha:not(.rel-pdf) .rel-cat .rel-cat-barra{grid-column:1 / -1;grid-row:2}
  .rel-bloco{padding:16px}
  .rel-capa-periodo{font-size:28px}
  .rel-controles select{flex:1;min-width:0}
}
.rel-datas{display:flex;gap:10px;flex-wrap:wrap}
.rel-datas label{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted)}
.rel-datas input{height:38px;padding:0 10px;background:var(--surface2);border:1px solid var(--border2);border-radius:6px;color:var(--text);font:13px 'DM Sans',sans-serif;outline:none;color-scheme:dark}
.rel-datas input:focus{border-color:var(--accent)}
@media(max-width:767px){.rel-datas{width:100%}.rel-datas label{flex:1}.rel-datas input{flex:1;min-width:0}}
