.pdv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: start;
}
.pdv-layout > .panel, .pdv-historico {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
}
.pdv-layout h2, .pdv-historico h2 { margin: 0 0 12px; font-size: 1.15rem; }
.pdv-layout h3 { margin: 0 0 8px; font-size: 1rem; }
.pdv-layout label, .pdv-estorno label { display: grid; gap: 6px; margin: 0; font-weight: 600; }
.pdv-catalogo > label { margin-bottom: 6px; }
.pdv-categorias { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.pdv-categorias button { min-height: 44px; }
.workspace button[aria-pressed="true"]:is(.pdv-categorias button, .page-title button) {
  color: var(--ink);
  background: var(--surface-2);
  border-color: var(--gold);
}
.pdv-produtos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 136px), 1fr));
  gap: 8px;
}
.workspace .pdv-produto {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 100px;
  text-align: left;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.workspace .pdv-produto:hover:enabled { background: var(--surface-2); border-color: var(--gold); }
.workspace .pdv-produto:disabled { cursor: default; opacity: .65; }
.pdv-produto img { width: 100%; height: 74px; object-fit: cover; border-radius: 4px; }
.pdv-produto-valor { font-variant-numeric: tabular-nums; font-weight: 700; }
.pdv-layout small, .pdv-historico small { color: var(--muted); font-size: 12.5px; }
.pdv-mais { margin-top: 12px; }
.pdv-vazio { margin: 0; padding: 18px 0; color: var(--muted); }
.pdv-cabecalho, .pdv-total, .pdv-acoes { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pdv-cabecalho h2 { margin-bottom: 0; }
.pdv-cliente { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 0 12px; border-bottom: 1px solid var(--line); }
.pdv-cliente small, .pdv-cliente strong { display: block; }
.pdv-cliente strong { overflow-wrap: anywhere; }
#pdv-identificar, .pdv-cliente-acoes button { min-height: 44px; }
#pdv-identificacao { grid-column: 1 / -1; }
#pdv-identificacao:not([hidden]) { display: grid; gap: 8px; }
.pdv-cliente-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.pdv-medida { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pdv-itens li > strong, .pdv-resumo li > strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pdv-rodape { border-top: 1px solid var(--line); background: var(--surface); }
.pdv-rodape .pdv-total { margin: 0; }
.pdv-atalho-cupom { display: none; }
#pdv-titulo-venda { scroll-margin-top: 68px; }
.pdv-clientes { display: grid; gap: 4px; }
.pdv-clientes:empty { display: none; }
.pdv-clientes button { text-align: left; }
.pdv-itens, .pdv-resumo, .pdv-historico-vendas { padding: 0; margin: 0; list-style: none; }
.pdv-itens:empty, .pdv-resumo:empty { display: none; }
.pdv-itens li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pdv-itens small, .pdv-historico-vendas small { display: block; margin-top: 3px; }
.pdv-quantidade { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pdv-quantidade button { min-width: 44px; min-height: 44px; }
.pdv-total { margin: 12px 0 8px; padding: 10px 0; font-weight: 700; }
.pdv-total strong { font-size: 1.65rem; font-variant-numeric: tabular-nums; }
.pdv-finalizar { width: 100%; min-height: 44px; }
.pdv-layout button:disabled { opacity: .65; cursor: default; transform: none; box-shadow: none; }
.pdv-pagamento-linha { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 8px; margin-bottom: 10px; }
.pdv-pagamento-linha button { grid-column: 1 / -1; justify-self: end; }
.pdv-pagamento-resumo { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; }
.pdv-pagamento-resumo strong { display: block; margin-top: 3px; }
.pdv-resumo li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pdv-erro { color: var(--danger); margin: 0 0 10px; }
.pdv-erro[hidden] { display: none; }
.pdv-totais-forma { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 16px 0; }
.pdv-totais-forma dt { color: var(--muted); }
.pdv-totais-forma dd { margin: 3px 0 0; font-weight: 700; }
.pdv-historico-vendas li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pdv-estorno { margin-top: 12px; }
.pdv-layout button:focus-visible, .pdv-historico button:focus-visible, .pdv-estorno button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (min-width: 901px) {
  .pdv-venda { position: sticky; top: 64px; }
  .pdv-venda[data-etapa="carrinho"] { display: flex; flex-direction: column; max-height: calc(100dvh - 9rem); }
  .pdv-venda[data-etapa="carrinho"] .pdv-cupom-corpo { min-height: 0; overflow-y: auto; scrollbar-gutter: stable; padding: 3px; }
  .pdv-venda[data-etapa="carrinho"] .pdv-rodape { flex: none; }
  .pdv-venda[data-etapa="pagamento"] .pdv-cupom-corpo { max-height: 30dvh; overflow-y: auto; }
  .pdv-produtos { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
}
@media (max-width: 900px) {
  .pdv-layout { grid-template-columns: minmax(0, 1fr); }
  #pdv-produtos { max-height: 42vh; overflow: auto; padding: 3px; }
  .pdv-categorias, .pdv-produtos { gap: 6px; }
  .pdv-categorias button, .pdv-quantidade button { min-height: 44px; }
  .pdv-atalho-cupom { display: block; position: sticky; bottom: env(safe-area-inset-bottom, 0px); padding: 8px 0; background: var(--surface); }
}
@media (max-width: 540px) {
  .pdv-historico-vendas li { grid-template-columns: minmax(0, 1fr) auto; }
  .pdv-historico-vendas li > button { justify-self: end; }
}

/* Balcão rápido (O1): item sem estoque, quantidade digitável, peso, cadastro curto, Configurações > Balança */
.workspace .pdv-produto.sem-estoque, .cmd-produto.sem-estoque { filter: grayscale(1); opacity: .5; cursor: not-allowed; }
.pdv-etiqueta-sem { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--line); color: var(--ink); font-weight: 700; font-size: .78rem; }
.pdv-qtd-valor, .cmd-qtd-valor { min-width: 64px; font-variant-numeric: tabular-nums; font-weight: 700; }
.bal-peso h2 { margin: 0 0 6px; }
.bal-peso-linha { display: flex; gap: 8px; margin: 10px 0 6px; }
.bal-peso-linha input { flex: 1; min-width: 0; font-size: 1.4rem; }
.bal-previa { min-height: 1.4em; margin: 4px 0 0; font-weight: 600; }
.bal-teste { display: flex; gap: 8px; margin: 8px 0; }
.bal-teste input { flex: 1; min-width: 0; }
.bal-lido { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.bal-lido.erro { border-color: #e7bdb7; background: #fff4f2; }
.bal-lido div { display: flex; justify-content: space-between; gap: 12px; }
.bal-lido span { color: var(--muted); }
details.cli-mais { margin: 12px 0; }
details.cli-mais > summary { cursor: pointer; font-weight: 700; margin-bottom: 10px; }
.cli-erro { margin: 0; color: var(--danger); font-weight: 700; background: #fff4f2; border: 1px solid #e7bdb7; border-radius: 10px; padding: 8px 12px; }
.cli-erro:empty { display: none; }
.cli-aviso:empty { display: none; }
.cli-aviso { border: 1px solid var(--gold); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.cli-aviso ul { margin: 6px 0; padding-left: 18px; }
form[data-tipo="empresa"] .cli-erro { display: none; }

/* ===== O2: histórico do PDV com dois botões ===== */
@media (min-width: 541px) { .pdv-historico-vendas li { grid-template-columns: minmax(0, 1fr) auto auto auto auto; } }
.pdv-comprovante-botao { width: 100%; min-height: 44px; margin-top: 8px; }

/* ===== O2: tempo de mesa (destaque discreto, cor de atenção que o sistema já usa) ===== */
.cmd-mesa.demorada { border-color: var(--danger); }
.cmd-mesa.demorada .cmd-mesa-estado { color: var(--danger); }
.cmd-demora { font-size: 12px; font-weight: 800; color: var(--danger); background: #fbeeec; border-radius: 999px; padding: 2px 8px; }
.cmd-config .form-grid { max-width: 420px; }

/* ===== O2: comprovante da venda (papel estreito, até 80 mm, e também legível em A4) ===== */
.fd-modal { width: min(100%, 360px); }
.fd-comprovante { max-width: 76mm; margin: 0 auto; font-size: 13px; line-height: 1.35; color: var(--ink); }
.fd-comprovante h2 { margin: 0 0 4px; font-size: 16px; text-align: center; }
.fd-comprovante p { margin: 4px 0; }
.fd-meta { font-size: 12px; text-align: center; }
.fd-estornada { text-align: center; font-weight: 800; font-size: 15px; letter-spacing: .1em; border: 2px solid currentColor; padding: 2px 0; color: var(--danger); }
.fd-itens, .fd-pag { list-style: none; margin: 8px 0; padding: 8px 0; border-top: 1px dashed #888; border-bottom: 1px dashed #888; display: grid; gap: 6px; }
.fd-itens li, .fd-pag li, .fd-total { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.fd-itens li > div { min-width: 0; }
.fd-itens small { display: block; color: var(--muted); }
.fd-total { font-size: 15px; }
.fd-sub { font-weight: 700; margin-bottom: 0 !important; }
.fd-pag { border-top: 0; padding-top: 0; margin-top: 2px; }
.fd-rodape { text-align: center; font-size: 12px; margin-top: 10px; }

/* ===== O2: resumo do dia ===== */
.fd-resumo { padding: 18px; }
.fd-resumo h3 { margin: 18px 0 6px; font-size: 1rem; }
.fd-cab h2 { margin: 0; }
.fd-cab p { margin: 2px 0; }
.fd-peq { font-size: 12px; margin: 2px 0 8px; }
.fd-tabela { width: 100%; border-collapse: collapse; font-size: 13px; }
.fd-tabela th, .fd-tabela td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.fd-tabela .num { text-align: right; white-space: nowrap; }
.fd-tabela tfoot td { font-weight: 700; border-top: 2px solid var(--ink); }
.fd-resumo .table-scroll, .fd-resumo { overflow-x: auto; }
.fd-gaveta, .fd-fecha { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin: 10px 0 0; }
.fd-gaveta > div, .fd-fecha > div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.fd-gaveta dt, .fd-fecha dt { font-size: 12px; color: var(--muted); }
.fd-gaveta dd, .fd-fecha dd { margin: 2px 0 0; font-size: 18px; font-weight: 800; }
.fd-fecha-liq { border-color: var(--ink) !important; }
.fd-aprazo { margin: 8px 0 0; font-size: 13px; }
.fd-notas { font-size: 12px; margin: 12px 0 0; padding-left: 18px; }
.fd-resumo footer.fd-rodape { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 8px; }
.fd-resumo.carregando { opacity: .6; }
.page-title .title-actions input[type="date"] { min-height: 40px; }

/* ===== O2: revisão de cadastros ===== */
.rev-abas { display: flex; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.rev-criterios { display: flex; gap: 16px; flex-wrap: wrap; margin: 8px 0; }
.rev-lista { display: grid; gap: 10px; }
.rev-linha { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; background: #fff; }
.rev-campos { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.rev-campos label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.rev-campos input { min-height: 40px; }
.rev-motivo { color: var(--muted); }
.rev-aviso { border: 1px solid var(--gold); border-radius: 10px; padding: 8px 10px; font-size: 13px; background: #f7f9fb; }
.rev-aviso button { margin-left: 4px; }
.rev-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .rev-campos { grid-template-columns: 1fr; } }

/* ===== O2: impressão (comprovante e resumo: só eles, em preto e branco) ===== */
@page { margin: 5mm; }
@media print {
  body:has(.fd-comprovante) #app { display: none !important; }
  body:has(.fd-comprovante) .modal-backdrop { position: static; background: none; padding: 0; display: block; }
  body:has(.fd-comprovante) .modal-card { box-shadow: none; border: 0; padding: 0; max-height: none; overflow: visible; width: auto; max-width: none; }
  .fd-comprovante { color: #000; font-size: 12px; max-width: 76mm; margin: 0; }
  .fd-comprovante small, .fd-comprovante .fd-estornada { color: #000; }
  .fd-itens, .fd-pag { border-color: #000; }
  .fd-resumo { border: 0 !important; box-shadow: none !important; padding: 0 !important; color: #000; font-size: 10.5px; }
  .fd-resumo h3 { margin: 10px 0 4px; font-size: 12px; }
  .fd-resumo .muted, .fd-resumo small { color: #000 !important; }
  .fd-tabela { font-size: 10.5px; }
  .fd-tabela th, .fd-tabela td { padding: 3px 5px; border-color: #999; }
  .fd-gaveta > div, .fd-fecha > div { border-color: #000; padding: 4px 8px; }
  .fd-gaveta dd, .fd-fecha dd { font-size: 13px; }
  .fd-resumo { break-inside: avoid; }
  .workspace { padding: 0 !important; }
}
.bal-cli-lista { display: grid; gap: 4px; margin: 6px 0; }
.bal-cli-lista:empty { display: none; }
.bal-cli-lista button { text-align: left; }
.bal-cli-escolhido { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; }
.bal-cli-escolhido strong { display: block; }
.cmd-nomes { display: block; overflow-wrap: anywhere; }
.cmd-nova-na-mesa { width: 100%; min-height: 48px; margin-top: 10px; }

/* Resumo do dia: formas sem valor ficam discretas; Pedidos: cancelados esmaecidos (o status continua escrito) */
.fd-tabela tr.fd-zero td { color: var(--muted); }
.fd-tabela tr.fd-zero strong { font-weight: 400; }
tr.pedido-cancelado td { opacity: .65; }
tr.pedido-cancelado:hover td { opacity: .85; }

/* ===== Frente de caixa por teclado: lista de produtos, ferramentas, notas rápidas, calculadora, ajuda ===== */
.pdv-dica { display: block; min-height: 1.2em; margin-top: 4px; color: var(--muted); }
.pdv-catalogo > label small { font-weight: 400; color: var(--muted); }
.pdv-lista-wrap { max-height: 52dvh; overflow-y: auto; scrollbar-gutter: stable; margin-top: 10px; }
.pdv-lista-cab, .pdv-linha { display: grid; grid-template-columns: 64px minmax(0, 1fr) 130px; align-items: center; gap: 10px; padding: 7px 10px; }
.pdv-lista-cab { position: sticky; top: 0; z-index: 1; background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 700; border-bottom: 1px solid var(--line); }
.pdv-lista-cab span:last-child { text-align: right; }
.pdv-lista { margin: 0; padding: 0; list-style: none; }
.pdv-linha { border-bottom: 1px solid var(--line); cursor: pointer; min-height: 40px; }
.pdv-linha:hover { background: var(--surface-2); }
.pdv-linha.sel { background: var(--surface-2); box-shadow: inset 4px 0 0 var(--gold); }
.pdv-linha.sem-estoque { opacity: .5; cursor: not-allowed; }
.pdv-cod { color: var(--muted); font-variant-numeric: tabular-nums; }
.pdv-preco { text-align: right; font-variant-numeric: tabular-nums; }
.pdv-preco { font-weight: 700; }
.pdv-ferramentas { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.pdv-ferramentas button { min-height: 32px; padding: 4px 8px; font-size: .85rem; }
kbd { display: inline-block; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2); font: 600 .75rem/1.5 inherit; color: var(--muted); }
.pdv-itens li.pdv-ultima { background: var(--surface-2); box-shadow: inset 4px 0 0 var(--gold); padding-left: 8px; }
.pdv-notas, .pdv-pagamento-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.pdv-notas span { color: var(--muted); font-weight: 600; }
.pdv-notas button { min-width: 48px; min-height: 40px; }
.pdv-calc { max-width: 340px; }
.pdv-calc input { width: 100%; font-size: 1.4rem; text-align: right; font-variant-numeric: tabular-nums; }
.pdv-calc-res { margin: 6px 0 10px; font-size: 1.7rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; min-height: 1.4em; }
.pdv-calc-teclas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pdv-calc-teclas button { min-height: 46px; font-size: 1.15rem; }
.pdv-calc-dica { margin: 8px 0 0; font-size: 12.5px; }
.pdv-ajuda { max-width: 560px; }
.pdv-ajuda dl { display: grid; gap: 6px; margin: 0 0 12px; }
.pdv-ajuda dl div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.pdv-ajuda dd { margin: 0; }
.pdv-espera .pdv-resumo li { flex-wrap: wrap; }
.pdv-espera-guardar { width: 100%; margin: 8px 0; }
@media (max-width: 900px) { .pdv-lista-cab, .pdv-linha { grid-template-columns: minmax(0, 1fr) 110px; } .pdv-lista-cab span:first-child, .pdv-cod { display: none; } .pdv-lista-wrap { max-height: none; } }

/* ===== Frente de caixa: fonte maior, R$ alinhado, coluna da venda mais larga e visual ===== */
.pdv-moeda { display: flex; justify-content: space-between; gap: .5em; width: 100%; font-variant-numeric: tabular-nums; }
.pdv-layout { grid-template-columns: minmax(0, 1.1fr) minmax(460px, 1fr); gap: 20px; }
#pdv-busca { min-height: 52px; font-size: 1.25rem; }
.pdv-catalogo > label { font-size: 1.05rem; }
.pdv-categorias button { font-size: 1rem; }
.pdv-lista-cab, .pdv-linha { grid-template-columns: 76px minmax(0, 1fr) 150px; padding: 10px 14px; }
.pdv-lista-cab { font-size: 14px; }
.pdv-linha { font-size: 1.2rem; min-height: 54px; }
.pdv-linha .pdv-cod { font-size: 1rem; }
.pdv-lista-wrap { max-height: 58dvh; }
/* coluna da venda */
.pdv-venda { font-size: 1.08rem; border: 2px solid var(--line); background: var(--surface); }
.pdv-venda h2 { font-size: 1.4rem; }
.pdv-cliente strong { font-size: 1.15rem; }
.pdv-itens li { padding: 14px 0; gap: 8px 14px; }
.pdv-itens li strong { font-size: 1.15rem; }
.pdv-itens li > strong { min-width: 8.5em; text-align: right; font-size: 1.3rem; }
.pdv-itens small { font-size: 14px; }
.pdv-itens li.pdv-ultima { background: var(--surface-2); box-shadow: inset 6px 0 0 var(--gold); padding-left: 12px; }
.pdv-quantidade button { min-height: 48px; min-width: 52px; font-size: 1.1rem; }
.pdv-qtd-valor { min-width: 84px; font-size: 1.15rem; }
.pdv-rodape .pdv-total { margin: 14px 0 12px; padding: 16px 20px; border-radius: 12px; background: var(--ink); color: var(--surface); align-items: center; }
.pdv-rodape .pdv-total span { font-size: 1.2rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pdv-rodape .pdv-total strong { font-size: 3rem; line-height: 1; }
.pdv-finalizar { min-height: 60px; font-size: 1.3rem; font-weight: 700; }
.pdv-resumo li { font-size: 1.15rem; padding: 10px 0; }
.pdv-pagamento h3 { font-size: 1.3rem; }
.pdv-pagamento label { font-size: 1.05rem; }
.pdv-pagamento select, .pdv-pagamento input { min-height: 52px; font-size: 1.3rem; }
.pdv-pagamento-resumo strong { font-size: 1.6rem; }
.pdv-notas button { min-height: 48px; min-width: 56px; font-size: 1.1rem; }
.pdv-acoes button { min-height: 52px; font-size: 1.1rem; }
.pdv-ferramentas button { font-size: .9rem; }
@media (max-width: 900px) { .pdv-layout { grid-template-columns: minmax(0, 1fr); } .pdv-rodape .pdv-total strong { font-size: 2.3rem; } .pdv-linha { font-size: 1.1rem; } }

.pdv-resumo li > strong .pdv-moeda { min-width: 7.5em; }
.pdv-resumo li > strong:has(.pdv-moeda) { min-width: 7.5em; }

/* ===== Frente de caixa sem rolagem da página (telas largas): lista e cupom rolam por dentro ===== */
@media (min-width: 901px) {
  .app-shell.tela-caixa { height: 100dvh; min-height: 0; overflow: hidden; grid-template-rows: auto minmax(0, 1fr); }
  .app-shell.tela-caixa.lateral-oculta { display: grid; grid-template-columns: minmax(0, 1fr); }
  .app-shell.tela-caixa > .barra-titulos { grid-column: 1 / -1; }
  .app-shell.tela-caixa.lateral-fixa > .lateral { height: 100%; }
  .tela-caixa > .workspace { min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding-bottom: 12px; }
  .tela-caixa .topbar { position: static; flex: none; padding: 8px 0 10px; }
  .tela-caixa .workspace > :not(.pdv-layout):not(.pdv-historico) { flex: none; }
  .tela-caixa .pdv-layout { flex: 1; min-height: 0; align-items: stretch; }
  .tela-caixa .pdv-layout > .panel { min-height: 0; display: flex; flex-direction: column; }
  .tela-caixa .pdv-catalogo { overflow: hidden; }
  .tela-caixa #pdv-produtos { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .tela-caixa .pdv-lista-wrap { flex: 1; min-height: 0; max-height: none; }
  .tela-caixa .pdv-venda { position: static; max-height: none; overflow-y: auto; }
  .tela-caixa .pdv-venda[data-etapa="carrinho"] { overflow: hidden; }
  .tela-caixa .pdv-venda[data-etapa="carrinho"] .pdv-cupom-corpo { flex: 1; min-height: 0; max-height: none; overflow-y: auto; }
  .tela-caixa .pdv-venda[data-etapa="pagamento"] .pdv-cupom-corpo { max-height: 22dvh; }
  .tela-caixa .pdv-historico { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
  .tela-caixa .pdv-historico-vendas { flex: 1; min-height: 0; overflow-y: auto; }
}
