/*
 * Gerador de orçamento, por cima de base/estilo.css e ../estilo.css. A folha
 * da prévia é branca como o papel e é ela, sozinha, que sai na impressão: o
 * PDF do orçamento é o "Salvar como PDF" do navegador, sem biblioteca.
 */

.bloco-orcamento { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--borda); }
.itens { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 1rem; }
.item {
  display: grid; gap: 0.75rem; align-items: end;
  grid-template-columns: minmax(0, 1fr) 4.5rem 7.5rem auto;
}
.remover-item {
  font: inherit; font-size: 0.8125rem; color: var(--texto-2); background: none; border: 0;
  padding: 0.75rem 0.25rem; cursor: pointer; text-decoration: underline;
}
.remover-item:hover { color: var(--texto); }
@media (max-width: 34rem) {
  .item { grid-template-columns: 1fr 1fr; }
  .item-descricao { grid-column: 1 / -1; }
  .remover-item { justify-self: start; }
}

.folha {
  background: #ffffff; color: #1b1b1b; border-radius: var(--raio-p);
  padding: 1.5rem; font-size: 0.875rem; min-height: 12rem;
}
.folha-vazia { color: #555555; text-align: center; margin: 3rem 0; }
.folha-cabeca { border-bottom: 2px solid #1b1b1b; padding-bottom: 0.75rem; margin-bottom: 1rem; }
.folha-empresa { font-size: 1.25rem; font-weight: 700; margin: 0; }
.folha-contatos, .folha-meta p { margin: 0.25rem 0 0; color: #45454a; }
.folha-titulo { font-weight: 600; color: #1b1b1b !important; }
.folha-itens { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.folha-itens th, .folha-itens td { text-align: left; padding: 0.5rem 0.25rem; border-bottom: 1px solid #dcdad3; vertical-align: top; }
.folha-itens th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #5e5e64; }
.folha-itens th:not(:first-child), .folha-itens td:not(:first-child) { text-align: right; white-space: nowrap; }
.folha-itens td:first-child { overflow-wrap: anywhere; }
.folha { overflow-x: auto; }
.folha-totais { margin: 0 0 1rem; display: grid; gap: 0.25rem; justify-items: end; }
.folha-totais div { display: flex; gap: 1rem; }
.folha-totais dt { color: #45454a; }
.folha-totais dd { margin: 0; min-width: 7rem; text-align: right; }
.folha-total { font-size: 1.125rem; font-weight: 700; }
.folha-total dt { color: #1b1b1b; }
#folha-conteudo > p { margin: 0.5rem 0 0; color: #45454a; }
.acoes-orcamento .dica { text-align: center; }

@media print {
  .menu, .pular, .progresso, .hero, .dicas, #contato, .rodape, #formulario-orcamento, .acoes-orcamento, #titulo-previa { display: none !important; }
  body, main, .gerador, .previa { background: #ffffff !important; color: #1b1b1b; padding: 0 !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; }
  .gerador { display: block !important; }
  .previa { position: static !important; }
  .folha { border-radius: 0; padding: 0; font-size: 11pt; overflow: visible; }
}
