/* PDV (caixa da loja): venda, pagamento, caixa e fiado.
   Bloco 59 passo 9: parte do antigo style.css. A ordem de carregamento está no index.html (base primeiro). */
/* ---- Bloco 33: PDV do MEI ---- */
.pdv {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: calc(100vh - 60px);
}
.pdv kbd {
  font: 600 11px/1 system-ui;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 2px 4px;
  opacity: 0.75;
  margin-left: 6px;
}
.pdv-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #123e5e;
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 15px;
}
.pdv-topo-resumo {
  font-weight: 600;
}
.pdv-rede {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffffff1f;
}
.pdv-rede.ok {
  color: #9ff0c6;
}
.pdv-rede.off {
  color: #ffd88a;
}
.pdv-rede.pendente {
  background: #ffd88a;
  color: #5a3d00;
  font-weight: 700;
}
/* 16/11: versão nova do sistema — selo discreto; atualiza sozinho quando o caixa estiver livre */
.pdv-atualizacao {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffffff1f;
  color: #bfe3ff;
  white-space: nowrap;
}
.pdv-abrir {
  max-width: 440px;
  margin: 30px auto;
  display: grid;
  gap: 14px;
  background: #fff;
  border: 1px solid #d6e7ed;
  border-radius: 14px;
  padding: 24px;
}
.pdv-abrir h2 {
  margin: 0;
}
.pdv-abrir p {
  margin: 0;
  color: #4b6573;
}
.pdv-abrir label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: #173c50;
}
.pdv-abrir input {
  font-size: 20px;
  padding: 10px 12px;
  border: 1px solid #bcd3dc;
  border-radius: 9px;
}
.pdv-grande {
  font-size: 20px !important;
  padding: 14px 18px !important;
  border-radius: 12px !important;
}
.pdv-corpo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  flex: 1;
}
.pdv-itens {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.pdv-entrada {
  display: flex;
  gap: 8px;
}
.pdv-entrada input {
  flex: 1;
  font-size: 22px;
  padding: 14px 16px;
  border: 2px solid #2a8a6a;
  border-radius: 12px;
}
.pdv-erro {
  margin: 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff0f0;
  color: #a5161b;
  font-weight: 700;
}
.pdv-opcoes {
  display: grid;
  gap: 6px;
  background: #f4fbff;
  border: 1px solid #bcd8e6;
  border-radius: 12px;
  padding: 12px;
}
.pdv-opcoes p {
  margin: 0;
  font-weight: 700;
}
.pdv-opcoes button:hover {
  background: #e9f6ff;
}
.pdv-ultima {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #ecfaf3;
  border: 1px solid #a8e0c4;
  color: #0d5c3e;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 16px;
}
.pdv-ultima span {
  flex: 1;
}
.pdv-lista {
  flex: 1;
  background: #fff;
  border: 1px solid #d6e7ed;
  border-radius: 12px;
  overflow: auto;
  max-height: calc(100vh - 290px);
}
.pdv-lista table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.pdv-lista th {
  position: sticky;
  top: 0;
  background: #f4f9fb;
  text-align: left;
  font-size: 12px;
  color: #55707a;
  padding: 8px;
}
.pdv-lista td {
  padding: 9px 8px;
  border-top: 1px solid #edf3f6;
  vertical-align: top;
}
.pdv-lista td small {
  display: block;
  color: #6e8793;
  font-size: 12px;
}
.pdv-lista tr.ultimo td {
  background: #fffbe6;
}
.pdv-num {
  text-align: right;
  white-space: nowrap;
}
.pdv-n {
  color: #8aa0aa;
  width: 28px;
}
.pdv-tirar {
  border: 0;
  background: none;
  color: #b3343a;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
}
.pdv-vazio {
  color: #6e8793;
  text-align: center;
  padding: 50px 20px;
  font-size: 17px;
}
.pdv-lado {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdv-total {
  background: #0d5c3e;
  color: #fff;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 4px;
  text-align: right;
}
.pdv-total span {
  font-size: 14px;
  opacity: 0.85;
  text-align: left;
}
.pdv-total small {
  opacity: 0.8;
}
.pdv-pagar {
  display: flex;
  justify-content: center;
}
.pdv-pagar form {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
  background: #fff;
  border: 1px solid #d6e7ed;
  border-radius: 14px;
  padding: 22px;
}
.pdv-pagar h2 {
  margin: 0;
  display: flex;
  justify-content: space-between;
}
.pdv-pagar h2 span {
  color: #0d5c3e;
}
.pdv-formas {
  display: grid;
  gap: 8px;
}
.pdv-forma {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.pdv-forma input {
  font-size: 22px;
  padding: 10px 12px;
  text-align: right;
  border: 1px solid #bcd3dc;
  border-radius: 9px;
}
.pdv-pag-situacao {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pdv-pag-situacao > div {
  border: 1px solid #d6e7ed;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 4px;
}
.pdv-pag-situacao span {
  font-size: 12px;
  color: #55707a;
}
.pdv-pag-situacao .falta strong {
  color: #a5161b;
}
.pdv-pag-situacao .troco {
  background: #ecfaf3;
  border-color: #a8e0c4;
}
.pdv-pag-situacao .troco strong {
  color: #0d5c3e;
  font-size: 26px;
}
.pdv-pag-acoes {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
@media (max-width: 820px) {
  .pdv-corpo {
    grid-template-columns: 1fr;
  }
  .pdv-forma {
    grid-template-columns: 90px 1fr;
  }
  .pdv-lista {
    max-height: none;
  }
}
.pdv-caixa-acoes {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed #cfe0e7;
}
.pdv-abrir select {
  font-size: 16px;
  padding: 10px;
  border: 1px solid #bcd3dc;
  border-radius: 9px;
}
.pdv-fechar {
  max-width: 520px;
}
.pdv-res {
  border: 1px solid #d6e7ed;
  border-radius: 10px;
  padding: 6px 12px;
}
.pdv-res-linha {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 15px;
}
.pdv-res-linha.forte {
  font-weight: 700;
  border-top: 1px solid #e5eef2;
}
.pdv-res-linha:first-child {
  border-top: 0;
}
.pdv-dif {
  min-height: 24px;
  font-weight: 700;
  font-size: 17px;
}
.pdv-dif .ok {
  color: #0d5c3e;
}
.pdv-dif .sobra {
  color: #0a6b8a;
}
.pdv-dif .furo {
  color: #a5161b;
}
.pdv-topo-acoes {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pdv-topo-acoes button:hover {
  background: #ffffff33;
}
/* Bloco 34 */
.pdv-topo-marca {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pdv-logo {
  height: 30px;
  width: auto;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}
.pdv-espera {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: #f4f1ff;
  border: 1px solid #d5ccff;
  border-radius: 10px;
  padding: 8px 12px;
  color: #3f2f8a;
  font-weight: 600;
}
.pdv-desconto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: end;
}
.pdv-desconto label {
  display: grid;
  gap: 4px;
  font-weight: 600;
  color: #173c50;
  margin: 0;
}
.pdv-desconto input {
  font-size: 16px;
  padding: 8px 10px;
  border: 1px solid #bcd3dc;
  border-radius: 8px;
}
.pdv-desconto p {
  grid-column: 1/-1;
  margin: 0;
  color: #8a5a00;
  font-weight: 600;
  min-height: 0;
}
.pdv-consulta input[name='cod'] {
  font-size: 22px;
  padding: 12px 14px;
  border: 2px solid #2a8a6a;
  border-radius: 12px;
}
.pdv-consulta-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 20px;
  padding: 10px 12px;
  border: 1px solid #d6e7ed;
  border-radius: 10px;
}
.pdv-vendas {
  max-width: 820px;
}
.pdv-vendas table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.pdv-vendas th {
  text-align: left;
  font-size: 12px;
  color: #55707a;
  padding: 6px;
}
.pdv-vendas td {
  padding: 7px 6px;
  border-top: 1px solid #edf3f6;
}
.pdv-vendas td small {
  display: block;
  color: #a5161b;
  font-size: 11px;
}
.pdv-vendas tr.cancelada td {
  color: #9aa6ab;
  text-decoration: line-through;
}
.pdv-vendas tr.cancelada td:last-child {
  text-decoration: none;
}
.pdv-vendas-acoes {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
@media (max-width: 820px) {
  .pdv-desconto {
    grid-template-columns: 1fr;
  }
}
/* Bloco 35: falta vira desconto */
.pdv-pag-dica {
  margin: 0;
  color: #55707a;
  font-size: 14px;
}
.pdv-pag-aviso {
  margin: 8px 0 0;
  font-size: 15px;
  min-height: 1.2em;
}
.pdv-pag-aviso.auto {
  color: #0d5c3e;
}
.pdv-pag-aviso.confirmar {
  color: #7a5300;
}
.pdv-pag-aviso.bloqueado {
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff0f0;
  color: #a5161b;
  font-weight: 700;
}
.pdv-confirma-desc {
  border: 2px solid #e0a800;
  background: #fff8e1;
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}
.pdv-confirma-desc p {
  margin: 0;
  font-size: 18px;
}
.pdv-confirma-desc input {
  font-size: 18px;
  padding: 8px 10px;
  border: 1px solid #bcd3dc;
  border-radius: 9px;
  width: 100%;
}
.pdv-forma input[readonly] {
  background: #f3f6f7;
  color: #55707a;
}
.pdv-forma input::placeholder {
  color: #b3c4cb;
  font-style: italic;
  font-size: 18px;
}
.confirmando .pdv-pag-aviso {
  display: none;
}
.pdv-conferir .pdv-res-linha.desc strong {
  color: #a5161b;
}
.pdv-conferir-troco {
  border: 1px solid #d6e7ed;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pdv-conferir-troco span {
  font-size: 18px;
  color: #55707a;
}
.pdv-conferir-troco.tem {
  background: #ecfaf3;
  border-color: #a8e0c4;
}
.pdv-conferir-troco.tem strong {
  font-size: 40px;
  color: #0d5c3e;
}
.pdv-conferir-troco label {
  display: grid;
  gap: 2px;
}
.pdv-conferir-troco input {
  width: 190px;
  font-size: 36px;
  font-weight: 700;
  color: #0d5c3e;
  text-align: right;
  border: 2px solid #a8e0c4;
  border-radius: 10px;
  padding: 4px 10px;
  background: #fff;
}
.pdv-troco-ajuste {
  margin: 0;
  min-height: 1.2em;
  color: #55707a;
  font-size: 15px;
  text-align: right;
}
.pdv-troco-ajuste.alerta {
  color: #a5161b;
}
.pdv-vendas-total {
  margin: 0 0 8px;
  font-size: 16px;
}
.pdv-totais {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
/* 18/11: cards baixos — título e valor numa linha, detalhes e "ver" na outra */
.pdv-total-card {
  flex: 1 1 0;
  min-width: 280px;
  max-width: 520px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 2px;
  text-align: left;
  padding: 8px 14px;
  border: 1px solid #dbe7ec;
  border-radius: 10px;
  background: #fbfdfe;
}
.pdv-total-card span {
  font-size: 14px;
  color: #4a5d66;
}
.pdv-total-card strong {
  font-size: 22px;
  line-height: 1.2;
  color: #12324a;
  text-align: right;
}
.pdv-total-card small {
  font-size: 13px;
  color: #5b6b73;
}
.pdv-total-card.recebido {
  border-color: #b9e1c8;
  background: #f3fbf6;
}
.pdv-total-card.recebido strong {
  color: #0f7a3a;
}
button.pdv-total-card {
  font: inherit;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.15s, box-shadow 0.15s;
}
button.pdv-total-card:hover,
button.pdv-total-card:focus-visible {
  opacity: 1;
}
button.pdv-total-card.on {
  opacity: 1;
  border-width: 2px;
  border-color: #12324a;
  box-shadow: 0 2px 8px rgba(18, 50, 74, 0.1);
}
button.pdv-total-card.recebido.on {
  border-color: #0f7a3a;
}
.pdv-total-card em {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  color: #1d5fa8;
  text-align: right;
  white-space: nowrap;
}
.pdv-logo-grande {
  max-width: min(320px, 60%);
  max-height: 180px;
  object-fit: contain;
  margin: 0 auto 14px;
  opacity: 0.95;
}
body.modo-pdv .pdv {
  height: calc(100vh - 24px);
  min-height: 0;
}
.pdv {
  gap: 10px;
}
.pdv-topo {
  padding: 8px 14px;
}
.pdv-relogio {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.95;
  margin-right: 4px;
}
.pdv-corpo {
  min-height: 0;
}
.pdv-itens {
  min-height: 0;
  gap: 8px;
}
.pdv-lista {
  position: relative;
  min-height: 0;
  max-height: none;
}
.pdv-lista.marca::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--pdv-marca) center/min(45%, 320px) no-repeat;
  opacity: 0.07;
  pointer-events: none;
}
.pdv-lista table {
  position: relative;
  font-size: 18px;
}
.pdv-lista th {
  font-size: 12px;
  padding: 7px 10px;
}
.pdv-lista th.pdv-num {
  text-align: right;
}
.pdv-lista td {
  padding: 8px 10px;
  vertical-align: middle;
}
.pdv-lista td.pdv-prod small {
  display: inline;
  margin-left: 6px;
  font-size: 12px;
}
.pdv-lista tr.ultimo td {
  background: #fffbe6cc;
}
.pdv-x {
  width: 34px;
}
.pdv-n {
  width: 34px;
}
.pdv-vazio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 16px 20px;
  box-sizing: border-box;
}
.pdv-vazio p {
  margin: 6px 0 4px;
}
.pdv-logo-grande {
  max-height: min(200px, 32vh);
}
.pdv-entrada input {
  font-size: 24px;
  padding: 12px 16px;
}
.pdv-lado {
  min-height: 0;
  overflow: auto;
  gap: 8px;
}
.pdv-lado-logo {
  background: #fff;
  border: 1px solid #d6e7ed;
  border-radius: 14px;
  padding: 6px;
  display: flex;
  justify-content: center;
}
.pdv-lado-logo img {
  max-height: 64px;
  max-width: 100%;
  object-fit: contain;
}
.pdv-total {
  padding: 12px 16px;
}
.pdv-teclas {
  display: grid;
  gap: 6px;
}
.pdv-teclas .button {
  padding: 8px 10px;
  font-size: 13px;
  justify-content: space-between;
}
.pdv-espera-op {
  background: #fff;
  border: 1px solid #d5ccff;
  border-radius: 8px;
  padding: 4px 8px;
}
.pdv-menu-caixa {
  gap: 10px;
}
.pdv-menu-op {
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  font-size: 18px;
  padding: 12px 14px;
  border: 1px solid #cfe1ea;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.pdv-menu-op kbd {
  font-size: 14px !important;
  margin: 0 !important;
}
.pdv-vendas tr.sel td {
  background: #e7f4ff;
}
/* 18/11 (Thauand: "não dá pra visualizar qual venda está selecionada"): a escolhida com barra azul e fundo mais forte
   na linha inteira (inclusive a célula dos botões). */
.pdv-vendas-lista > table > tbody > tr.sel > td {
  background: #d6ebff !important;
  font-weight: 600;
}
/* 18/11 20h43: a lista das vendas rola dentro desta caixa (cabeçalho preso em cima); cards e itens sempre à vista */
.pdv-vendas-lista {
  max-height: max(200px, calc(100vh - 520px));
  overflow-y: auto;
  border-bottom: 1px solid #e3edf2;
  margin-top: 10px;
}
.pdv-vendas-lista > table {
  margin: 0 !important;
  border-spacing: 0 !important;
}
.pdv-vendas-lista thead th {
  position: sticky;
  top: -1px;
  z-index: 5;
  background: #eef5fb !important;
  box-shadow: 0 -2px 0 #eef5fb, 0 1px 0 #dbe7ec;
}
.pdv-itens-painel {
  max-height: 26vh;
  overflow-y: auto;
}
/* 18/11 (Thauand: "pode manter o negrito"): colunas com largura fixa só na tabela das VENDAS (na dos movimentos
   apertava as colunas e o texto ficava por cima do nome do cliente) */
.pdv-vendas-lista > table.pdv-tab-vendas {
  table-layout: fixed;
  width: 100%;
}
.pdv-vendas-lista > table.pdv-tab-vendas th:nth-child(1) {
  width: 6%;
}
.pdv-vendas-lista > table.pdv-tab-vendas th:nth-child(2) {
  width: 9%;
}
.pdv-vendas-lista > table.pdv-tab-vendas th:nth-child(3) {
  width: 8%;
}
.pdv-vendas-lista > table.pdv-tab-vendas th:nth-child(4) {
  width: 33%;
}
.pdv-vendas-lista > table.pdv-tab-vendas th:nth-child(5) {
  width: 15%;
}
.pdv-vendas-lista > table > tbody > tr.sel > td:first-child {
  box-shadow: inset 4px 0 0 #1d5fa8;
}
.pdv-vendas-teclas {
  margin: 6px 0 0;
  color: #55707a;
  font-size: 13px;
}
.pdv-opcoes p small {
  font-weight: 400;
  color: #55707a;
}
@media (max-height: 700px) {
  .pdv-teclas .button {
    padding: 6px 10px;
  }
  .pdv-grande {
    padding: 10px 14px !important;
  }
}
@media (max-width: 820px) {
  body.modo-pdv .pdv {
    height: auto;
  }
  .pdv-lista {
    min-height: 220px;
  }
}
body.modo-pdv .pdv .pdv-lista td {
  font-size: 18px;
  color: #22352d;
}
body.modo-pdv .pdv .pdv-lista td.pdv-n {
  color: #8aa0aa;
  font-size: 14px;
}
body.modo-pdv .pdv .pdv-lista td.pdv-num strong {
  font-size: 18px;
}
.pdv-entrada {
  position: relative;
}
.pdv-sugestoes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 5;
  background: #fff;
  border: 2px solid #2a8a6a;
  border-radius: 12px;
  box-shadow: 0 10px 30px #12334a33;
  padding: 8px;
  display: grid;
  gap: 4px;
  max-height: min(420px, 60vh);
  overflow: auto;
}
.pdv-sugestoes p {
  margin: 0 4px 4px;
  font-size: 12px;
  color: #55707a;
}
.pdv-sugestoes button small {
  color: #8aa0aa;
  font-size: 12px;
}
.pdv-sugestoes button strong {
  color: #0d5c3e;
  white-space: nowrap;
}
.pdv-sugestoes button.sel {
  background: #e7f6ef;
  border-color: #2a8a6a;
}
/* Bloco 40: cliente, fiado, consumo do dono */
.pdv-cliente-linha {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #eef6ff;
  border: 1px solid #bcd8f0;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 16px;
  color: #123e5e;
}
.pdv-cli-lista {
  display: grid;
  gap: 4px;
  max-height: 50vh;
  overflow: auto;
}
.pdv-cli-lista button.sel {
  background: #e7f6ef;
  border-color: #2a8a6a;
}
.pdv-cli-lista button strong {
  color: #a5161b;
  white-space: nowrap;
}
.pdv-cli-lista button small {
  color: #6e8793;
  font-size: 12px;
}
.pdv-cli-lista button.novo {
  border-style: dashed;
}
.pdv-cliente-busca input[name='busca'] {
  font-size: 20px;
  padding: 10px 12px;
  border: 2px solid #2a8a6a;
  border-radius: 10px;
}
.pdv-parcelas {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #55707a;
  white-space: nowrap;
}
.pdv-parcelas input {
  width: 46px;
  font-size: 16px !important;
  padding: 6px !important;
  text-align: center;
}
.pdv-forma {
  grid-template-columns: 120px 1fr auto;
}
.pdv-fiado-cli {
  font-size: 12px;
  color: #55707a;
  max-width: 140px;
}
.pdv-conf-cliente {
  margin: 0;
  font-size: 16px;
  color: #123e5e;
}
.pdv-vendas td small.cli {
  color: #123e5e !important;
}
.pdv-consumo .pdv-res-linha small {
  color: #6e8793;
  font-size: 12px;
  margin-left: 4px;
}
.pdv-sugestoes[hidden] {
  display: none;
}

/* 21/10 (piloto Amandinha): produto de valor livre — pede o valor no lugar do campo do leitor. */
.pdv-valor-livre {
  align-items: center;
  background: #fff8e1;
  border: 2px solid #eda100;
  border-radius: 10px;
  padding: 8px 10px;
}
.pdv-valor-livre label {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 10px;
  margin: 0;
}
.pdv-valor-livre label span {
  font-size: 17px;
  white-space: nowrap;
}
.pdv-valor-livre small {
  color: #6b5600;
}
/* 21/10 (parte D): cliente com fiado vencido */
.pdv-vencido {
  color: #a5161b;
}
.pdv-cli-lista .pdv-vencido {
  display: block;
  font-size: 12px;
}
.pdv-cliente-linha.vencido {
  background: #fff1f1;
  border-color: #f2c4c4;
}
/* 21/10/2026: "Trocar" e "Tirar cliente" lado a lado na linha do cliente. */
.pdv-cliente-acoes {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}
/* 21/10/2026 (Thauand, desenho da folha): colunas Item | Código | Produto | Qtde | UN | Preço | Total. No celular o
   código volta para baixo do nome e a unidade para o lado da quantidade, para não cortar a tabela. */
.pdv-lista .pdv-cod {
  color: #55707a;
  white-space: nowrap;
  width: 1%;
}
body.modo-pdv .pdv .pdv-lista td.pdv-cod {
  color: #55707a;
  font-size: 15px;
}
.pdv-lista .pdv-un {
  text-align: center;
  white-space: nowrap;
  width: 1%;
}
.pdv-lista .pdv-cod-cel,
.pdv-lista .pdv-un-cel {
  display: none !important;
}
@media (max-width: 820px) {
  .pdv-lista .pdv-cod,
  .pdv-lista .pdv-un {
    display: none;
  }
  .pdv-lista td.pdv-prod small.pdv-cod-cel {
    display: block !important;
    margin-left: 0;
  }
  .pdv-lista .pdv-un-cel {
    display: inline !important;
  }
}
@media (max-width: 520px) {
  .pdv-lista table,
  body.modo-pdv .pdv .pdv-lista td {
    font-size: 15px;
  }
  .pdv-lista td,
  .pdv-lista th {
    padding: 7px 6px;
  }
  /* celular estreito: sem a coluna Preço (o preço aparece na faixa de cima) e o nome quebra linha */
  .pdv-lista th:nth-child(6),
  .pdv-lista td:nth-child(6) {
    display: none;
  }
  .pdv-lista td.pdv-prod {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
/* 21/10/2026: "Pix caiu em qual conta?" ao lado do valor do Pix (pagamento e Receber F7). */
.pdv-conta-pix {
  border: 1px solid #bcd8e0;
  border-radius: 8px;
  background: #fff;
  color: #123e5e;
  font-size: 13px;
  margin-left: 6px;
  max-width: 170px;
  padding: 4px 6px;
}
.pdv-forma .pdv-conta-pix {
  flex: 0 0 auto;
  font-size: 13px !important;
  height: auto !important;
  max-width: 150px;
  min-height: 0 !important;
  padding: 5px 6px !important;
}

/* 22/10 (piloto Amandinha): tela pequena (notebook) — as telas de abrir/fechar caixa rolam para mostrar os botões */
body.modo-pdv .pdv {
  overflow-y: auto;
}
.pdv > .pdv-abrir {
  flex-shrink: 0;
}
/* Fechamento: de onde veio cada fiado recebido */
.pdv-res-sub span {
  padding-left: 12px;
  color: #4f6670;
  font-size: 13px;
}
.pdv-res-sub strong {
  font-weight: 600;
  font-size: 13px;
}
/* Receber fiado: "Vai receber R$ X no PIX · conta" */
.pdv-vai-receber:empty {
  display: none;
}
.pdv-vai-receber {
  background: #eef6ff;
  border: 1px solid #9cc3ef;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 17px;
}
.pdv-vai-receber > span {
  display: block;
  font-size: 12px;
  color: #4f6670;
}
.pdv-vai-receber ul {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
}
.pdv-vai-receber li.dinheiro b:nth-child(2) {
  color: #8a5a00;
}
.pdv-vai-receber li.pix b:nth-child(2) {
  color: #0b6b6b;
}
.pdv-vai-alerta {
  margin: 8px 0 0;
  color: #9a2a00;
  font-size: 14px;
}
/* 23/10: F11 — movimentos do caixa (fiado recebido, sangria, reforço) */
.pdv-mov-titulo {
  margin: 14px 0 4px;
  font-size: 15px;
}
.pdv-movs {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pdv-movs th {
  text-align: left;
  font-size: 12px;
  color: #5d6c66;
  font-weight: 500;
  padding: 4px 6px;
}
.pdv-movs td {
  padding: 6px;
  border-top: 1px solid #e6edf0;
  vertical-align: top;
}
.pdv-movs td small {
  display: block;
  color: #6e8793;
  font-size: 12px;
}
.pdv-movs .pos {
  color: #1f6f56;
  font-weight: 600;
}
.pdv-movs .neg {
  color: #a5161b;
  font-weight: 600;
}
.pdv-mini {
  border: 1px solid #cfd8d4;
  background: #fff;
  border-radius: 7px;
  padding: 2px 8px;
  cursor: pointer;
}
/* 23/10 (Thauand: "pode ocupar mais o espaço da tela"): F11 mais largo e com letra maior */
.pdv > .pdv-vendas {
  max-width: min(1280px, 94vw);
  width: 100%;
  font-size: 17px;
}
.pdv-vendas h2 {
  font-size: 22px;
}
.pdv-vendas table,
.pdv-movs {
  font-size: 17px;
}
.pdv-vendas th,
.pdv-movs th {
  font-size: 14px;
}
.pdv-movs td {
  padding: 9px 8px;
}
.pdv-movs td small {
  font-size: 14px;
}
.pdv-mov-titulo {
  font-size: 19px;
  margin-top: 20px;
}
.pdv-mini {
  font-size: 14px;
  padding: 4px 10px;
}
.pdv-vendas td,
.pdv-vendas .pdv-movs td {
  font-size: 17px;
}
.pdv-vendas .pdv-movs td small {
  font-size: 14px;
  color: #6e8793;
}
.pdv-vendas .pdv-movs th {
  font-size: 14px;
}

/* 27/10: logo do Mais Lucro em linha, pequena, no canto da barra do PDV (o destaque é o nome da loja) */
.pdv-sistema {
  height: 32px;
  width: auto;
}
/* 02/11: pergunta "É caixa?" (produto com caixa cadastrada) */
.pdv-caixa-pergunta {
  background: #fff6e0;
  border-color: #f0c66b;
}
.pdv-caixa-pergunta p {
  font-size: 17px;
}
.pdv-caixa-pergunta button kbd {
  margin-right: 6px;
}
/* 07/11 (piloto Amandinha): "O que o cliente está pagando?" no Receber fiado (F7) */
.pdv-compras {
  display: grid;
  gap: 6px;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 2px solid #f0c36d;
  border-radius: 10px;
  background: #fff8e6;
}
.pdv-compras legend {
  padding: 0 6px;
  font-weight: 700;
  font-size: 16px;
  color: #6b4b00;
}
.pdv-compras label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #f3dca8;
  cursor: pointer;
  font-size: 16px;
}
.pdv-compras label:has(input:checked) {
  border-color: #1f9d6b;
  background: #eaf7f0;
}
.pdv-compras label span {
  color: #4b5b6b;
  font-size: 14px;
}
.pdv-vai-compra {
  margin: 4px 0 0;
}
/* 07/11: desfazer fiado recebido por engano (F11) */
.pdv-mini.perigo {
  color: #b42318;
  border-color: #f3c2bd;
}
.pdv-mov-desfeito td {
  color: #8a94a3;
}

.pdv-aviso-ok {
  margin: 0;
  color: #0b6b45;
  font-weight: 600;
}
/* 18/11: itens da venda escolhida no F11 — quadro logo abaixo da tabela (as linhas da tabela não se mexem) */
.pdv-vendas tr[data-pdv-linha] {
  cursor: pointer;
}
.pdv-itens-painel {
  margin: 10px 0 0;
  padding: 8px 12px 10px;
  border: 1px solid #c9dbe6;
  border-left: 4px solid #1d5fa8;
  border-radius: 8px;
  background: #f6fafc;
}
.pdv-itens-titulo {
  margin: 0 0 4px;
  font-weight: 700;
  color: #12324a;
}
.pdv-itens-painel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.pdv-itens-painel th {
  font-size: 13px;
  color: #5b6b73;
  text-align: left;
  font-weight: 600;
}
.pdv-itens-painel th.pdv-num,
.pdv-itens-painel td.pdv-num {
  text-align: right;
}
.pdv-itens-painel td,
.pdv-itens-painel th {
  padding: 4px 8px;
  border-bottom: 1px solid #e3edf2;
}
.pdv-itens-cod {
  color: #5b6b73;
  width: 90px;
}
/* 21/11 (Thauand, foto do F11 do CMM): itens da venda à esquerda e "Como foi pago" à direita */
.pdv-iv-grade {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr);
  gap: 16px;
  align-items: start;
}
.pdv-iv-pag {
  border-left: 1px solid #d5e3ec;
  padding-left: 14px;
}
.pdv-itens-painel .pdv-iv-pag tfoot td {
  font-weight: 700;
  color: #12324a;
  border-bottom: 0;
  border-top: 2px solid #c9dbe6;
}
.pdv-itens-painel tr.pdv-pg-troco td {
  color: #5b6b73;
}
.pdv-pg-sem {
  color: #8a9aa3;
}
.pdv-pg-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 6px 0 0;
  font-size: 13px;
  color: #3d5866;
}
.pdv-pg-cancelada {
  color: #b42318;
  font-weight: 700;
}
@media (max-width: 760px) {
  .pdv-iv-grade {
    grid-template-columns: 1fr;
  }
  .pdv-iv-pag {
    border-left: 0;
    padding-left: 0;
  }
}
/* 21/11: os itens cabem na coluna da esquerda (nome comprido quebra a linha, não passa por cima do pagamento) */
.pdv-iv-itens {
  min-width: 0;
}
.pdv-iv-itens table {
  table-layout: fixed;
}
.pdv-iv-itens th:nth-child(1) {
  width: 62px;
}
.pdv-iv-itens th:nth-child(3) {
  width: 74px;
}
.pdv-iv-itens th:nth-child(4),
.pdv-iv-itens th:nth-child(5) {
  width: 92px;
}
.pdv-iv-itens td {
  overflow-wrap: anywhere;
}
.pdv-itens-painel .pdv-iv-itens td:nth-child(2) {
  white-space: normal;
}
.pdv-iv-pag td:nth-child(3) {
  white-space: nowrap;
}
/* F11 mais largo para caber itens e pagamento lado a lado */
.pdv-vendas {
  max-width: 1180px;
}
.pdv-vendas th.pdv-num {
  text-align: right;
}
