/* Proposta fotovoltaica no modelo "Proposta Comercial" da Construtech (azul-marinho, laranja, cartões e fotos) */
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.1c0792ac34ef.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.9e624ca74fb3.woff2") format("woff2"); }
.pfv { --marinho: #0f2a5f; --azul: #1d4ed8; --laranja: #f47b20; --fundo: #f2f6fc; --borda: #d5deeb; }
.pfv-doc { font-variant-numeric: lining-nums tabular-nums; font-family: Georgia, "Times New Roman", serif; font-size: 12.5px; line-height: 1.5; color: #1f2937; position: relative; }
.pfv-doc p { margin: 0 0 8px; text-align: justify; }
.pfv-doc h1, .pfv-doc h2, .pfv-doc h3, .pfv-doc h4 { font-family: "Montserrat", "Segoe UI", Arial, sans-serif; color: var(--marinho); }
.pfv-doc h2 { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .2px; margin: 26px 0 12px; padding: 0 0 7px; border: 0; position: relative; break-after: avoid; }
.pfv-doc h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26mm; height: 3px; background: var(--laranja); border-radius: 2px; }
.pfv-doc h2 span, .pfv-doc h3 span { margin-right: 8px; }
.pfv-doc h3 { font-size: 15px; font-weight: 800; margin: 18px 0 8px; padding-bottom: 5px; position: relative; break-after: avoid; }
.pfv-doc h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 22mm; height: 2.5px; background: var(--laranja); border-radius: 2px; }
.pfv-doc h4 { font-size: 13.5px; font-weight: 700; margin: 0 0 8px; }
.pfv-sec > p:first-of-type { margin-top: 0; }

/* Capa */
.pfv-capa { min-height: 230mm; display: flex; flex-direction: column; break-after: page; position: relative; }
.pfv-capa-logo { width: 125mm; margin: 4mm auto 0; display: block; }
.pfv-capa-num { text-align: right !important; font-weight: 700; font-size: 14px; margin-top: 10mm !important; }
.pfv-capa h1 { text-align: center; font-family: Georgia, "Times New Roman", serif !important; color: #111 !important; font-size: 24px; font-weight: 700; text-decoration: underline; margin: 38mm 0 6px; }
.pfv-capa-sub { text-align: center !important; font-size: 14px; color: #334155; margin-bottom: 28mm !important; }
.pfv-capa-dados { border-collapse: collapse; font-size: 15px; }
.pfv-capa-dados th { text-align: left; padding: 3px 22px 3px 0; white-space: nowrap; vertical-align: top; }
.pfv-capa-dados td { padding: 3px 0; }
.pfv-capa-resp { margin-top: auto !important; text-align: center !important; font-size: 12px; color: #475569; }

/* Blocos lado a lado, fotos e caixas */
.pfv-lado { display: grid; grid-template-columns: 1fr 43%; gap: 18px; align-items: center; break-inside: avoid; }
.pfv-lado-topo { align-items: start; }
.pfv-foto { width: 100%; height: 52mm; object-fit: cover; border-radius: 10px; box-shadow: 0 2px 8px rgba(15, 42, 95, .18); display: block; }
.pfv-foto-alta { height: 92mm; }
.pfv-esquema { width: 100%; max-height: 70mm; object-fit: contain; }
.pfv-caixa { background: var(--fundo); border-radius: 10px; padding: 12px 16px; margin: 8px 0 12px; font-family: "Segoe UI", Arial, sans-serif; font-size: 13px; line-height: 1.55; text-align: left; break-inside: avoid; }
.pfv-caixa-laranja { background: #fff5ec; border-left: 4px solid var(--laranja); border-radius: 6px; font-size: 12px; }
.pfv-cartao { background: var(--fundo); border-radius: 12px; padding: 12px 14px; margin: 8px 0 14px; break-inside: avoid; }
.pfv-cartao svg { width: 100%; height: auto; display: block; background: #fff; border-radius: 8px; }
.pfv-nota { font-size: 10.5px; color: #64748b; margin: -6px 0 10px !important; }
.pfv-recuo { margin-left: 18px !important; }
.pfv-neg { color: #dc2626; font-weight: 700; }
.pfv-pos { color: #15803d; font-weight: 700; }
.pfv-laranja { color: #ea6a0c !important; }
.pfv-azul { color: var(--azul) !important; }

/* Listas com ícone laranja */
.pfv-ok { list-style: none; margin: 4px 0 12px; padding: 0; }
.pfv-ok li { position: relative; padding: 2px 0 5px 30px; min-height: 22px; }
.pfv-ok li::before { content: ""; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11.5' fill='%23f47b20'/%3E%3Cpath d='M6.8 12.4l3.4 3.3 7-7.2' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.pfv-menos li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11.5' fill='%23f47b20'/%3E%3Cpath d='M6.5 12h11' stroke='%23fff' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.pfv-ok-grande li { padding: 8px 0 12px 44px; font-size: 14px; }
.pfv-ok-grande li::before { width: 30px; height: 30px; top: 4px; }

/* Passos numerados */
.pfv-passos { margin: 0; padding: 0; list-style: none; counter-reset: passo; }
.pfv-passos li { counter-increment: passo; position: relative; padding: 0 0 8px 32px; }
.pfv-passos li::before { content: counter(passo); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--marinho); color: #fff; font: 700 11.5px/22px Arial, sans-serif; text-align: center; }

/* Tabelas */
.pfv-tab { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 13px; break-inside: avoid; }
.pfv-tab thead th { background: var(--marinho); color: #fff; font-family: Georgia, serif; font-weight: 700; text-align: left; padding: 7px 12px; }
.pfv-tab td, .pfv-tab tbody th, .pfv-tab tfoot th { border: 1px solid #cbd5e1; padding: 4px 12px; text-align: left; }
.pfv-tab tbody th { font-weight: 700; width: 38%; }
.pfv-tab tbody tr:nth-child(even) td, .pfv-tab tbody tr:nth-child(even) th { background: #f6f8fc; }
.pfv-tab tfoot th, .pfv-tab tfoot td { background: #e8eef8; font-family: Arial, sans-serif; font-weight: 700; color: var(--marinho); }
.pfv-tab-3 tbody th { width: 30%; }
.pfv-tab-num thead th { text-align: center; }
.pfv-tab-num td { text-align: right; }
.pfv-tab-num tbody th { width: auto; }
.pfv-tab-num td, .pfv-tab-num tbody th, .pfv-tab-num tfoot th { padding-top: 3px !important; padding-bottom: 3px !important; }
.pfv-tab-peq { font-size: 11.5px; }
.pfv-tab-peq td, .pfv-tab-peq th { padding: 4px 8px !important; }
.pfv-etapas { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 13px; break-inside: avoid; }
.pfv-etapas th { background: var(--marinho); color: #fff; font-weight: 400; width: 26mm; text-align: center; padding: 7px 8px; border-bottom: 1px solid #fff; }
.pfv-etapas td { border: 1px solid #cbd5e1; padding: 7px 12px; background: #fbfcfe; }

/* Cartões de indicadores */
.pfv-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); background: #fff; border-radius: 8px; padding: 10px 4px; }
.pfv-kpis > div { display: grid; grid-template-columns: 40px 1fr; column-gap: 9px; align-items: center; padding: 4px 12px; border-left: 1px solid var(--borda); }
.pfv-kpis > div:first-child { border-left: 0; }
.pfv-kpis .pfv-ic { width: 38px; height: 38px; grid-row: span 2; }
.pfv-kpis span { font-size: 12px; line-height: 1.25; color: #334155; align-self: end; }
.pfv-kpis b { font-family: "Montserrat", "Segoe UI", Arial, sans-serif; font-size: 16.5px; font-weight: 800; color: var(--marinho); white-space: nowrap; align-self: start; margin-top: 3px; }
.pfv-glos { margin: 0 0 12px; font-size: 11.5px; }
.pfv-glos div { margin: 0 0 3px; }
.pfv-glos dt { display: inline; font-weight: 700; color: var(--marinho); }
.pfv-glos dt::after { content: ": "; }
.pfv-glos dd { display: inline; margin: 0; }
.pfv-glos-2 { columns: 2; column-gap: 22px; }
.pfv-glos-2 div { break-inside: avoid; }

/* Preço, Pix, responsabilidades, aceite */
.pfv-preco { background: var(--marinho); color: #fff; border-radius: 12px; padding: 14px 18px; text-align: center; margin: 6px 0 14px; }
.pfv-preco span { display: block; font: 700 12px Arial, sans-serif; letter-spacing: 1px; opacity: .85; }
.pfv-preco b { display: block; font: 800 28px "Montserrat", "Segoe UI", Arial, sans-serif; margin: 2px 0; }
.pfv-preco small { display: block; font-size: 11px; opacity: .85; }
.pfv-pix { display: flex; gap: 14px; align-items: center; background: var(--fundo); border-radius: 10px; padding: 10px 14px; margin: 4px 0 12px; font-size: 12px; break-inside: avoid; }
.pfv-pix img { width: 96px; height: 96px; }
.pfv-resp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 12px; }
.pfv-resp > div, .pfv-assin > div { border: 1px solid var(--borda); border-radius: 8px; overflow: hidden; background: #fbfcff; }
.pfv-resp h4 { background: var(--marinho); color: #fff !important; padding: 8px 14px; margin: 0 !important; font-family: Georgia, serif !important; }
.pfv-resp .pfv-ok { padding: 10px 12px 2px; margin: 0; font-size: 12px; }
.pfv-aceite-data { text-align: right !important; margin: 14px 0 10px !important; }
.pfv-assin { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; break-inside: avoid; }
.pfv-assin h4 { background: #e6eefb; text-align: center; padding: 6px; margin: 0 !important; font-size: 12px; font-weight: 600; }
.pfv-assin .pfv-linha { border-top: 1px solid #334155; margin: 30px 26px 4px; }
.pfv-assin p { text-align: center !important; font-size: 12px; margin: 0 0 10px !important; }
.pfv-campo { display: flex; gap: 6px; margin: 10px 18px; font-size: 12px; }
.pfv-campo span { flex: 1; border-bottom: 1px solid #334155; min-height: 16px; }
.pfv-campo:first-of-type { margin-top: 22px; }
.pfv-faq div { break-inside: avoid; margin: 0 0 9px; }
.pfv-faq dt { font-weight: 700; color: var(--marinho); font-family: "Segoe UI", Arial, sans-serif; }
.pfv-faq dd { margin: 1px 0 0; text-align: justify; }
.pfv-anexo-tec { break-before: page; }
.pfv-lgpd { margin-top: 14px !important; }
.pfv-junto { break-inside: avoid; }
.pfv .doc-fv h2 { font-size: 14px; }
.pfv .doc-fv h2::after { display: none; }

/* Cabeçalho, rodapé e marca d'água */
.pfv-cabeca, .pfv-rodape { display: none; }
.pfv-moldura { width: 100%; border-collapse: collapse; }
.pfv-marca { display: block; position: fixed; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 150mm; max-width: 80vw; opacity: .08; z-index: 2; pointer-events: none; }
@media print {
  @page { size: A4; margin: 8mm 14mm 9mm 14mm;
    @bottom-right { content: "Página " counter(page) " de " counter(pages); font: 11px Georgia, serif; color: #111; vertical-align: top; } }
  .pfv-moldura > thead > tr > td, .pfv-moldura > tfoot > tr > td, .pfv-moldura > tbody > tr > td { padding: 0; border: 0; }
  .pfv-esp-topo { height: 31mm; }
  .pfv-esp-base { height: 33mm; }
  .pfv-cabeca { display: flex; justify-content: space-between; align-items: center; position: fixed; top: 0; left: 0; right: 0; height: 25mm; border-bottom: 1.5px solid var(--marinho); z-index: 3; }
  .pfv-cabeca img { width: 72mm; }
  .pfv-cabeca-dir { text-align: center; font-family: Georgia, serif; }
  .pfv-cabeca-dir b { display: block; font-size: 13px; margin-top: 4px; }
  .pfv-selo { display: block; background: var(--marinho); color: #fff; font: 700 11.5px Georgia, serif; padding: 6px 26px; border-radius: 3px; letter-spacing: .3px; }
  .pfv-rodape { font-variant-numeric: lining-nums; display: block; position: fixed; bottom: 0; left: 0; right: 0; text-align: center; font: 10.5px/1.4 Georgia, serif; color: #1f2937; border-top: 1.5px solid var(--marinho); padding-top: 5px; z-index: 3; }
  .pfv-rodape-data { font-size: 11.5px; margin-bottom: 6px; }
  .pfv-rodape b { font-size: 11px; }
  .pfv-marca { width: 165mm; max-width: none; opacity: .09; }
  .pfv-doc { padding: 0 !important; box-shadow: none !important; margin: 0 !important; max-width: none !important; background: transparent !important; }
  body.doc-corpo.pfv { background: transparent !important; }
  .pfv-capa { margin-top: -31mm; padding-top: 2mm; min-height: 236mm; z-index: 5; }
  .pfv-capa::before { content: ""; position: absolute; left: -2mm; right: -2mm; top: -2mm; height: 28mm; background: #fff; z-index: -1; }
  .pfv-nova-pagina { break-before: page; }
  .pfv-sec > h2:first-child { margin-top: 4px; }
}
@media screen {
  .pfv-doc { padding: 16mm 15mm !important; }
}
@media (max-width: 700px) { .pfv-lado, .pfv-resp, .pfv-assin { grid-template-columns: 1fr; } .pfv-kpis { grid-template-columns: 1fr 1fr; } .pfv-glos-2 { columns: 1; } }
.pfv-cobra { text-align: center !important; font-size: 10.5px; color: #475569; white-space: nowrap; }
.pfv-tab-peq td { white-space: nowrap; }
.pfv-kpis-2 { margin-top: 8px; }
.pfv-esquema { max-height: 52mm; }
.pfv-preco { margin-top: 0; }
.pfv-kpis > div { grid-template-columns: 32px 1fr; column-gap: 7px; padding: 4px 8px; }
.pfv-kpis .pfv-ic { width: 30px; height: 30px; }
.pfv-kpis span { font-size: 11px; }
.pfv-kpis b { font-size: 14px; }
