/* Kit de MVP (S65). Troque só as variáveis do :root (a cor vem do produto.json no montar). */
:root { --cor: #1d4e89; --texto: #1b1f24; --fraco: #5a6270; --fundo: #ffffff; --linha: #d8dde3; --erro: #b3261e; }
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* S77: sem isto, ".botao, button { display: inline-block }" vencia o hidden e o botão escondido aparecia */
body { margin: 0; font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--texto); background: var(--fundo); }
header, main, footer { max-width: 40rem; margin: 0 auto; padding: 1rem; }
header a { display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; color: var(--texto); text-decoration: none; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: .5rem 0 1rem; }
h2 { font-size: 1.2rem; margin-top: 2rem; }
a { color: var(--cor); }
.frase { font-size: 1.15rem; }
.nota { color: var(--fraco); font-size: 1rem; } /* S77: .95rem dava 15,2 px (rem é 16 px), abaixo do CA14 */
label { display: block; margin: .8rem 0 .25rem; font-weight: 600; }
input { width: 100%; font: inherit; padding: .7rem; border: 1px solid var(--linha); border-radius: .5rem; }
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--cor); outline-offset: 2px; }
.botao, button { display: inline-block; font: inherit; font-weight: 600; min-height: 48px; padding: .7rem 1.2rem; margin: .8rem .4rem 0 0;
  border: 2px solid var(--cor); border-radius: .5rem; background: var(--cor); color: #fff; text-decoration: none; cursor: pointer; }
.contorno { background: transparent; color: var(--cor); }
.pequeno { min-height: 40px; padding: .3rem .8rem; margin: 0; }
.perigo { background: var(--erro); border-color: var(--erro); }
.lista { list-style: none; padding: 0; }
.lista li { display: flex; gap: .8rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--linha); }
.lista span { flex: 1; overflow-wrap: anywhere; }
.total { font-size: 1.1rem; }
.aviso { min-height: 1.5em; font-weight: 600; }
.aviso.erro { color: var(--erro); }
.fundador { margin-top: 2rem; padding: 1rem; border: 2px dashed var(--cor); border-radius: .75rem; }
.codigo { font: 700 1.2rem ui-monospace, Menlo, monospace; letter-spacing: .05em; overflow-wrap: anywhere; }
body[data-modo="servidor"] [data-modo-texto="aparelho"] { display: none; }
details { margin-top: 1rem; }
summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; color: var(--erro); font-weight: 600; }
footer { display: flex; gap: 1.2rem; flex-wrap: wrap; border-top: 1px solid var(--linha); margin-top: 2rem; }
footer a { min-height: 48px; display: inline-flex; align-items: center; }
.texto { overflow-wrap: break-word; overflow-wrap: anywhere; }
.texto table { border-collapse: collapse; width: 100%; }
.texto th, .texto td { border: 1px solid var(--linha); padding: .4rem; text-align: left; overflow-wrap: anywhere; }
.tabela { overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f4f6f8; padding: .8rem; border-radius: .5rem; }
.faixa { background: #fff6d6; border: 1px solid #e5c75c; padding: .6rem .8rem; border-radius: .5rem; }
/* Pronto Orçado (S77): campos, itens, folha do PDF e impressão. */
textarea, select { width: 100%; font: inherit; padding: .7rem; border: 1px solid var(--linha); border-radius: .5rem; background: #fff; color: var(--texto); }
textarea:focus-visible, select:focus-visible, label.arquivo:focus-within { outline: 3px solid var(--cor); outline-offset: 2px; }
.escondido { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
label.arquivo { display: inline-flex; align-items: center; margin: .8rem .4rem 0 0; }
.itens { list-style: none; padding: 0; margin: 0; }
.item { border: 1px solid var(--linha); border-radius: .5rem; padding: .2rem .8rem .8rem; margin-bottom: .8rem; }
.par { display: flex; gap: .8rem; margin-bottom: .6rem; }
.par > div { flex: 1; min-width: 0; }
.tirar { margin-top: .2rem; }
.linha-orcamento { width: 100%; text-align: left; background: transparent; color: var(--texto); border: 1px solid var(--linha); margin: 0; font-weight: 400; overflow-wrap: anywhere; }
.lista li { padding: .3rem 0; border: 0; }
.folha { border: 1px solid var(--linha); border-radius: .5rem; padding: 1rem; margin: 1rem 0; background: #fff; overflow-wrap: anywhere; }
.folha h2 { margin-top: 1rem; }
.folha-cabeca { display: flex; gap: 1rem; align-items: center; }
.logo { max-width: 96px; max-height: 96px; object-fit: contain; }
.folha dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; }
.folha dt { font-weight: 600; }
.folha dd { margin: 0; }
.folha table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.folha th, .folha td { border-bottom: 1px solid var(--linha); padding: .4rem .3rem; text-align: left; vertical-align: top; }
.folha td:nth-child(n+2), .folha th:nth-child(n+2) { text-align: right; white-space: nowrap; }
.assinatura { margin-top: 3rem; border-top: 1px solid var(--texto); padding-top: .3rem; }
.rodape-folha { margin-top: 1.5rem; color: var(--fraco); font-size: 1rem; }
@media print {
  @page { size: A4; margin: 15mm; }
  body > header, body > footer, main > *:not(.tela), .tela > *:not(.folha) { display: none !important; }
  .tela:not([hidden]) { display: block; }
  body[data-imprimir="folha"] #folha-recibo, body[data-imprimir="folha-recibo"] #folha { display: none !important; }
  .folha { border: 0; padding: 0; margin: 0; }
}
.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* campo-armadilha do /ajuda/pedido/ */
