/* Visual do ERP (Fernando, 15/11/2026): a cor é só da empresa; o resto em tinta e cinza,
   para os números saltarem aos olhos. A faixa da esquerda e o quadro da empresa usam a cor
   cadastrada em Empresa.cor. */
:root {
  --papel: #F5F7F6; --tinta: #18211E; --linha: #D9E0DC; --linha-fraca: #EEF2F0;
  --apagado: #5C6964; --alerta: #B4232A; --branco: #FFFFFF;
  --empresa: #3A3F44;
  --cor: var(--tinta); --fundo: var(--papel); --erro: var(--alerta);
}
body { --empresa-claro: color-mix(in srgb, var(--empresa) 12%, white); }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Archivo", system-ui, sans-serif; font-size: 15px; line-height: 1.45; background: var(--papel); color: var(--tinta); font-variant-numeric: tabular-nums; }
body.com-menu { border-left: 6px solid var(--empresa); }
a { color: inherit; }
h1 { font-size: 1.7rem; font-weight: 650; letter-spacing: -.015em; margin: .2rem 0 .8rem; }
h2 { font-size: 1.15rem; font-weight: 650; margin: 1.4rem 0 .5rem; }

/* Estrutura: menu à esquerda, tela à direita */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.lateral { background: var(--branco); border-right: 1px solid var(--linha); padding: 18px 14px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.marca { font-weight: 700; font-size: 17px; letter-spacing: -.01em; padding: 0 6px; text-decoration: none; }
.selo-ambiente { align-self: flex-start; background: #FFE9A8; color: #5A4300; padding: .05rem .5rem; border-radius: 4px; font-size: .75rem; margin: -8px 6px 0; }
.empresa-ativa { position: relative; }
.empresa-ativa summary { list-style: none; cursor: pointer; background: var(--empresa); color: #fff; border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; }
.empresa-ativa summary::-webkit-details-marker { display: none; }
.empresa-codigo { font-size: 26px; font-weight: 700; line-height: 1; font-stretch: 87.5%; }
.empresa-nome { font-size: 13px; opacity: .92; }
.empresa-trocar { font-size: 12px; opacity: .75; }
.empresas-lista { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--branco); border: 1px solid var(--linha); border-radius: 8px; padding: 6px; z-index: 20; box-shadow: 0 8px 24px rgba(24,33,30,.14); display: grid; gap: 2px; }
.empresas-lista form { margin: 0; }
.empresas-lista button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 6px; font-size: 14px; cursor: pointer; color: var(--tinta); }
.empresas-lista button:hover, .empresas-lista button[aria-current] { background: var(--papel); }
.pigmento { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.menu { display: grid; gap: 10px; }
.menu .grupo { display: grid; gap: 1px; }
.menu .grupo + .grupo { border-top: 1px solid var(--linha); padding-top: 10px; }
/* Título do grupo bem visível (pedido do Fernando, 16/11/2026): maiúsculas, negrito, filete da empresa. */
.menu .grupo > span { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--tinta); padding: 2px 8px 5px; margin-bottom: 2px; border-left: 3px solid var(--empresa); }
.menu a { text-decoration: none; padding: 6px 8px 6px 14px; border-radius: 6px; font-size: 14.5px; color: var(--tinta); }
.menu a:hover { background: var(--papel); }
.menu a.atual { background: var(--empresa-claro); font-weight: 600; box-shadow: inset 3px 0 0 var(--empresa); }
.usuario { margin-top: auto; display: flex; gap: .6rem; align-items: center; font-size: 13px; color: var(--apagado); padding: 0 8px; }
.usuario form { margin: 0; }
main { padding: 20px 28px 32px; min-width: 0; }
:focus-visible { outline: 2px solid var(--empresa); outline-offset: 2px; }

/* Peças comuns */
.cartao { background: var(--branco); max-width: 44rem; margin: 0 0 1.5rem; padding: 1.25rem 1.5rem; border-radius: 10px; border: 1px solid var(--linha); }
body:not(.com-menu) .cartao { margin: 3rem auto; }
.login { max-width: 22rem; }
label { display: block; margin-bottom: 1rem; }
input[type=text], input[type=password] { width: 100%; padding: .5rem; margin-top: .25rem; }
input, select, textarea { font: inherit; border: 1px solid var(--linha); border-radius: 6px; background: var(--branco); color: var(--tinta); padding: .4rem .55rem; }
button { font: inherit; padding: .45rem .9rem; cursor: pointer; border: 1px solid var(--linha); border-radius: 7px; background: var(--branco); color: var(--tinta); }
.erro { color: var(--erro); }
.mensagens { list-style: none; max-width: 52rem; margin: 0 0 1rem; padding: 0; }
.mensagens li { background: var(--branco); border: 1px solid var(--linha); border-left: 4px solid #2F7A47; border-radius: 6px; padding: .55rem .8rem; margin-bottom: .4rem; }
.mensagens li.error { border-left-color: var(--erro); background: #FCEEEF; }
.mensagens li.warning { border-left-color: #B07A00; background: #FBF4E2; }
.cartao.largo { max-width: 72rem; }
.cabecalho-tela { display: flex; justify-content: space-between; align-items: flex-end; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.cabecalho-tela h1 { margin: 0; }
.cabecalho-tela > span { display: flex; gap: .5rem; flex-wrap: wrap; }
.botao { display: inline-block; background: var(--tinta); color: #fff; border: 1px solid var(--tinta); border-radius: 7px; padding: .45rem .95rem; text-decoration: none; font-size: .93rem; cursor: pointer; }
.botao:hover { background: #2C3833; }
.botao-perigo { background: var(--alerta); color: #fff; border: 1px solid var(--alerta); border-radius: 7px; padding: .45rem .95rem; cursor: pointer; }
.filtros { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.filtros input[type=search] { flex: 1 1 18rem; padding: .5rem; }
.filtros select { padding: .45rem; }
label.em-linha { margin: 0; display: flex; gap: .3rem; align-items: center; }
.discreto { color: var(--apagado); font-size: .9rem; }
.tabela { width: 100%; border-collapse: collapse; }
.tabela th, .tabela td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--linha-fraca); vertical-align: top; }
.tabela th { font-size: .82rem; font-weight: 600; color: var(--apagado); border-bottom-color: var(--linha); }
.tabela tr.inativo td { color: #8C9792; }
.paginacao { display: flex; gap: 1rem; justify-content: center; }
.formulario fieldset { border: 1px solid #e3e6ea; border-radius: 6px; margin: 0 0 1rem; padding: .75rem 1rem; }
.formulario legend { font-weight: 600; padding: 0 .4rem; }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .75rem 1rem; }
.campo { display: flex; flex-direction: column; gap: .2rem; }
.campo label { margin: 0; }
.campo.inteiro { grid-column: 1 / -1; }
.campo.caixa label { display: flex; gap: .4rem; align-items: center; }
.campo input:not([type=checkbox]), .campo select, .campo textarea { width: 100%; padding: .45rem; }
.campo small { color: #666; }
.campo.com-erro input, .campo.com-erro select { border: 1px solid var(--erro); }
@media (max-width: 54rem) {
  .app { grid-template-columns: 1fr; }
  .lateral { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--linha); }
  .menu { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
  main { padding: 16px; }
}
@media (max-width: 40rem) {
  .tabela:not(.planilha-unc):not(.por-empresa) th:nth-child(3), .tabela:not(.planilha-unc):not(.por-empresa) td:nth-child(3) { display: none; }
}
.selo { white-space: nowrap; display: inline-block; background: var(--branco); color: var(--tinta); border: 1px solid var(--linha); border-radius: 999px; padding: .05rem .55rem; font-size: .8rem; font-weight: 500; vertical-align: middle; }
.tabela-edicao td { padding: .3rem; }
.tabela-edicao input:not([type=checkbox]), .tabela-edicao select { width: 100%; padding: .35rem; }
.centro { text-align: center; }
.acoes { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; }
form.em-linha { display: flex; gap: .75rem; align-items: flex-end; }
.filtros input[type=number] { width: 9rem; padding: .4rem; }
.dre .dre-linha td { background: #eef3f8; font-weight: 600; padding-top: .7rem; }
.dre .dre-linha.fora td { background: #f6f1e7; }
.dre .dre-subtotal td { background: var(--cor); color: #fff; font-weight: 700; }
.dre .dre-subtotal td.discreto { color: #dbe6f2; font-weight: 400; }
.dre td.recuo { padding-left: 1.5rem; white-space: nowrap; }
.dre select { padding: .25rem; max-width: 100%; }
.grupos { margin-top: 1rem; }
.aviso { background: #FBF4E2; border-left: 4px solid #B07A00; border-radius: 6px; padding: .55rem .8rem; }
.selo-aviso { background: #FBF4E2; color: #6B4A00; border-color: #EBD9A8; }
.selo-perigo { background: #FCEEEF; color: var(--alerta); border-color: #F0C5C8; }
details.operacao { border-bottom: 1px solid #e3e6ea; padding: .6rem 0; }
details.operacao summary { cursor: pointer; }
.resultado-cfop { border: 1px solid #e3e6ea; border-radius: 6px; padding: 1rem; }
.resultado-cfop .cfop { font-size: 1.6rem; margin: 0 0 .5rem; }

/* Padrão novo de telas (doc 15, seção 17): compacto, uma tela só, teclado. */
.tela-pedido { background: var(--branco); max-width: 82rem; margin: 0; padding: .9rem 1.1rem 1.1rem; border-radius: 10px; border: 1px solid var(--linha); font-size: .92rem; }
.tela-pedido label { margin: 0; display: flex; flex-direction: column; gap: .15rem; font-size: .8rem; color: #555; }
.tela-pedido input, .tela-pedido select { padding: .3rem .4rem; border: 1px solid #c9ced6; border-radius: 4px; font-size: .9rem; color: #222; width: 100%; }
.tela-pedido input:focus, .tela-pedido select:focus { outline: 2px solid #7aa7d6; border-color: var(--cor); }
.faixa-prototipo { display: flex; gap: 1rem; align-items: center; background: #fff4e0; border-radius: 4px; padding: .35rem .6rem; margin-bottom: .6rem; font-size: .85rem; }
.faixa-prototipo #medidor { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.faixa-prototipo button { padding: .15rem .6rem; }
.linha-campos { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: flex-end; margin-bottom: .5rem; }
.linha-campos > label { flex: 1 1 9rem; }
.linha-campos .largo { flex: 3 1 22rem; }
.linha-campos .campo-curto { flex: 0 1 10rem; }
.tipo-documento { display: flex; border: 1px solid var(--cor); border-radius: 4px; overflow: hidden; }
.tipo-documento button { border: 0; background: #fff; color: var(--cor); padding: .35rem .8rem; }
.tipo-documento button.ativo { background: var(--cor); color: #fff; }
.campo-busca { position: relative; }
.campo-busca label { margin-bottom: .15rem; }
.sugestoes { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 0; list-style: none;
  background: #fff; border: 1px solid #c9ced6; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.12); max-height: 18rem; overflow: auto; min-width: 22rem; }
.sugestoes li { padding: .3rem .5rem; cursor: pointer; display: flex; flex-direction: column; }
.sugestoes li small { color: #666; }
.sugestoes li.marcado { background: #e3eef8; }
kbd { font: .7rem ui-monospace, monospace; border: 1px solid #c9ced6; border-bottom-width: 2px; border-radius: 3px; padding: 0 .25rem; background: #f6f7f9; color: #444; }
.grade-itens { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.grade-itens th { text-align: left; font-size: .8rem; color: #555; font-weight: 600; padding: .3rem .4rem; border-bottom: 2px solid #e3e6ea; }
.grade-itens td { padding: .15rem .4rem; border-bottom: 1px solid #eef0f3; vertical-align: middle; }
.grade-itens .num { text-align: right; white-space: nowrap; }
.grade-itens td.num input { text-align: right; max-width: 8rem; }
.grade-itens .col-codigo { width: 11rem; }
.grade-itens .seq { color: #888; width: 2rem; }
.grade-itens .remover { border: 0; background: none; color: #999; padding: .1rem .3rem; }
.grade-itens .remover:hover { color: #b3261e; }
.grade-itens tfoot td { border-top: 2px solid #e3e6ea; border-bottom: 0; padding-top: .4rem; font-weight: 600; }
.grade-itens tfoot td.discreto { font-weight: 400; }
.total-geral { font-size: 1.1rem; color: var(--cor); }
.rodape-pedido { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-top: .75rem; }
.rodape-pedido .botoes { display: flex; gap: .5rem; }
.botao-aprovar { background: var(--tinta); }
.painel { margin-top: .75rem; padding: .6rem .8rem; border-radius: 6px; border: 1px solid #e3e6ea; display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.tela-pedido [hidden] { display: none !important; }
.painel.resultado { display: block; background: #e8f5e9; border-color: #a5d6a7; }
.painel.resultado .medida { font-weight: 600; }
.painel.aviso { display: block; }
.tela-pedido input.invalido { border-color: var(--erro); background: #fdecea; }
.tela-pedido .campo-busca > label { display: block; }
.linha-campos .campo-medio { flex: 1 1 14rem; }
.tela-pedido .observacoes { margin-top: .6rem; }
.tela-pedido textarea { width: 100%; padding: .3rem .4rem; border: 1px solid #c9ced6; border-radius: 4px; font: inherit; }
.tela-pedido details.cancelar { margin-top: 1rem; }
.tela-pedido details.cancelar summary { cursor: pointer; color: #b3261e; }
.tela-pedido .cabecalho-tela h1 { font-size: 1.3rem; margin: .2rem 0 .5rem; }
.selo-pedido { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.selo-perdido, .selo-cancelado { background: #f1f1f1; color: #666; }
.selo-faturado { background: #E6F2EA; color: #1F5C34; border-color: #BFDCC9; }
.selo-unc { background: #EEF0F3; color: #3A3F44; border-color: #D5D9DE; font-size: .72rem; }
.tabela .num { text-align: right; white-space: nowrap; }
.resumo-op { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: .25rem 0 1rem; }
.resumo-op div { display: flex; flex-direction: column; }
.resumo-op small { color: #666; font-size: .8rem; }
.tela-op h2 { font-size: 1.05rem; margin: 1.25rem 0 .4rem; }
.tela-op form.alocar input { padding: .25rem .35rem; }
.tela-op details { margin: .75rem 0; }
.tela-op details summary { cursor: pointer; color: var(--cor); }
.tela-op details.cancelar summary { color: #b3261e; }
.producao-pedido { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; margin-bottom: .6rem; }
.producao-pedido form { margin: 0; }
.tela-pedido .incluir-item { margin-top: .4rem; background: none; border: 1px dashed #9fb3c8; color: var(--cor); border-radius: 4px; padding: .3rem .8rem; }
.alterar-formula .campo-busca { position: relative; }
.alterar-formula td.descricao { color: #555; font-size: .9rem; }
dialog.janela { width: min(60rem, 95vw); max-height: 85vh; border: 0; border-radius: 8px; padding: .8rem 1rem; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
dialog.janela::backdrop { background: rgba(0,0,0,.35); }
.janela-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.janela-topo .fechar { border: 0; background: none; font-size: 1.1rem; cursor: pointer; }
.janela-filtros { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.janela-filtros input[type=search] { flex: 1 1 16rem; padding: .35rem .5rem; }
.janela-filtros select { padding: .3rem; }
.janela-lista { max-height: 55vh; overflow: auto; border: 1px solid #e3e6ea; border-radius: 4px; }
.janela-lista tr { cursor: pointer; }
.janela-lista tr.marcado td { background: #e3eef8; }
.janela-lista td, .janela-lista th { padding: .3rem .5rem; font-size: .9rem; }
.janela .tipo-documento button { font-size: .85rem; padding: .3rem .6rem; }
.tela-op details.alterar-quantidade summary { color: var(--cor); }
.tela-op button:disabled { opacity: .5; cursor: not-allowed; }
.tela-nota h2 { font-size: 1.05rem; margin: 1.25rem 0 .4rem; }
.tela-nota .tabela-impostos th, .tela-nota .tabela-impostos td { padding: .3rem .4rem; font-size: .85rem; }
.tela-nota details.porque { margin: .5rem 0; }
.tela-nota details.porque summary { cursor: pointer; color: var(--cor); }
.tela-nota details.porque ul { margin: .2rem 0 .6rem; font-size: .85rem; color: #555; }
.totais-nota { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); margin: .8rem 0 1rem; background: var(--branco); border: 1px solid var(--linha); border-radius: 8px; }
.totais-nota > div { padding: .6rem 1rem; border-left: 1px solid var(--linha); }
.totais-nota > div:first-child { border-left: 0; }
.totais-nota strong { font-size: 1.25rem; font-weight: 600; font-stretch: 87.5%; }
.totais-nota div { display: flex; flex-direction: column; }
.totais-nota small { color: var(--apagado); font-size: .82rem; }
.totais-nota .total strong { font-size: 1.35rem; }
.resumo-op div small + small { font-size: .8rem; }
.botao:disabled { opacity: .45; cursor: not-allowed; }

.chave-nfe { font-family: ui-monospace, monospace; font-size: .8rem; word-break: break-all; }
.aviso.erro { border-color: #c0392b; background: #fdecea; }

.vencido { color: var(--alerta); font-weight: 600; }
.form-baixa { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .5rem 1rem; align-items: end; }
.form-baixa label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; }
.form-baixa label.largo { grid-column: span 2; }

.form-baixa.lote { margin-top: .75rem; padding: .75rem; background: #f4f6f8; border-radius: 6px; }

/* Rastreabilidade do lote */
.arvore, .arvore ul { list-style: none; padding-left: 1.2rem; margin: .2rem 0; }
.arvore > li { padding-left: 0; }
.arvore li { border-left: 2px solid #d5dbe1; padding: .2rem 0 .2rem .6rem; }

/* Grade no estilo do UNC (contas a receber): todas as colunas, linhas compactas, rola na horizontal. */
.cartao.planilha { max-width: none; margin: 0; padding: 0; background: none; border: 0; }
.planilha-rolagem { overflow: auto; max-height: 75vh; border: 1px solid var(--linha); border-radius: 8px; background: var(--branco); }
.tabela.planilha-unc { font-size: .86rem; white-space: nowrap; font-stretch: 92%; }
.tabela.planilha-unc th, .tabela.planilha-unc td { padding: .35rem .55rem; border-right: 0; }
.tabela.planilha-unc thead th { position: sticky; top: 0; background: var(--branco); z-index: 1; }
.tabela.planilha-unc thead tr.grupo-colunas th { text-align: center; font-weight: 600; color: #555; border-bottom: 1px solid #d5d9de; }
.tabela.planilha-unc thead tr + tr th { top: 1.7rem; }
.tabela.planilha-unc tbody tr:nth-child(even) td { background: #FAFBFA; }
.tabela.planilha-unc tbody tr:hover td { background: var(--empresa-claro); }
.tabela.planilha-unc tfoot td { position: sticky; bottom: 0; background: var(--branco); border-top: 1px solid var(--linha); font-weight: 600; }

/* Visão consolidada das empresas (A receber / A pagar) */
.empresas-consolidado { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; margin: 0 0 .75rem; padding: .45rem .75rem; background: var(--branco); border: 1px solid var(--linha); border-radius: 8px; font-size: .92rem; }
.empresas-consolidado label { display: inline-flex; gap: .35rem; align-items: center; cursor: pointer; }
.empresas-consolidado .separado { margin-left: auto; }
.tabela.por-empresa { width: auto; min-width: 28rem; margin: 0 0 1rem; }

/* Desfecho da recompra (volta para a carteira ou venda cancelada) */
fieldset.desfecho { border: 1px solid #c9d3de; border-radius: 6px; padding: .5rem .75rem; margin: .25rem 0; flex-basis: 100%; }
fieldset.desfecho legend { font-weight: 600; padding: 0 .25rem; }
fieldset.desfecho label { display: flex; gap: .4rem; align-items: center; margin: .2rem 0; }

/* Rodapé com a versão instalada */
.rodape { color: #8C9792; font-size: .8rem; padding: 2rem 0 0; }

/* Botão com cara de link (ex.: mostrar os outros títulos cedidos) */
.link-botao { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
/* Cabeçalho que ordena a lista (clique: crescente; de novo: decrescente). */
.tabela.planilha-unc thead a.ordenar { color: inherit; text-decoration: none; white-space: nowrap; }
.tabela.planilha-unc thead a.ordenar:hover { text-decoration: underline; }
.tabela.planilha-unc thead th.ordenada { color: var(--tinta); }
.grade-conciliacao { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1rem; }
.grade-conciliacao h3 { margin: .5rem 0; }
.acao-linha summary { color: #b3261e; cursor: pointer; font-size: .8rem; }
.acao-linha form { display: flex; gap: .4rem; margin-top: .3rem; }
.quadro-adiantamento { margin: 1rem 0; padding: .75rem 1rem; background: #f4f6f8; border-radius: 6px; }
.quadro-adiantamento .caixa-linha { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; cursor: pointer; }
.quadro-adiantamento .caixa-linha input { margin-top: .25rem; }
.quadro-adiantamento .form-baixa { margin-top: .75rem; }
.form-baixa .largo { grid-column: span 2; }
[hidden] { display: none !important; }
.filtros label { display: inline-flex; gap: .4rem; align-items: center; margin: 0; font-size: .9rem; color: var(--apagado); }
.filtros input, .filtros select { padding: .4rem .55rem; }
.tabela a { text-decoration: none; }
.tabela a:hover { text-decoration: underline; }
.tabela td a:not(.botao) { font-weight: 500; }
.filtros label { white-space: nowrap; }
.periodo-totais { margin: -.6rem 0 .8rem; font-size: .82rem; }
.sem-quebra { white-space: nowrap; }
.ligar-pedido { margin: 0 0 4px; }
.botao-pequeno { font-size: .8rem; padding: .2rem .55rem; white-space: nowrap; }
.outros-pedidos summary { cursor: pointer; font-size: .8rem; }
.outros-pedidos .ligar-pedido { margin-top: 4px; }
.novidades { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 14px; }
.novidades > li { border-left: 3px solid var(--linha); padding: 2px 0 2px 14px; }
.novidades > li.atual { border-left-color: var(--empresa); }
.novidades-cabeca { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.novidades ul { margin: 4px 0 0; padding-left: 1.1rem; }
.novidades ul li { margin: 2px 0; }
.rodape a { color: inherit; }
.barra-fatura { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: end; margin-top: 1rem; padding: .8rem 1rem; border: 1px solid var(--linha); border-radius: 8px; background: var(--branco); position: sticky; bottom: 0; }
.barra-fatura legend { font-weight: 600; padding: 0 .3rem; }
.margem-pedido { margin: 1rem 0; border: 1px solid var(--linha); border-radius: 8px; padding: .6rem 1rem; background: var(--branco); }
.margem-pedido summary { cursor: pointer; }
.tabela-margem { max-width: 46rem; margin-top: .5rem; }
.tabela-margem tr.subtotal td { font-weight: 600; border-top: 2px solid var(--linha); }
