/* Panofo Estoque — iteração 2: correções A1–A4, detalhe, teclado, wizards */

/* ===== A3 · Indicador de pilha maior (legível a 1 m) ===== */
.cell .dots { display: flex; gap: 5px; margin-top: 3px; }
.cell .dots .d { width: 13px; height: 13px; border-radius: 999px; background: currentColor; border: none; }
.cell .dots .d.off { background: transparent; border: 2.2px solid currentColor; opacity: 0.85; }

/* ===== A1 · Célula cheia bloqueada durante drag/posicionar ===== */
.cell.full-block {
  opacity: 0.38;
  filter: saturate(0.35);
  cursor: not-allowed;
}
.badge-block {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9.5px; font-weight: 800;
  background: var(--white); color: var(--gray-700);
  border-radius: 999px; padding: 1.5px 7px;
  flex-shrink: 0; margin-left: auto;
}
.cell.shake-cell { animation: cell-shake 420ms var(--ease-out); }
@keyframes cell-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-7px); }
  35% { transform: translateX(6px); }
  55% { transform: translateX(-4px); }
  75% { transform: translateX(3px); }
}

/* ===== A4 · Idade no rascunho ===== */
.rasc-idade {
  display: flex; align-items: center; gap: 5px;
  margin-top: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--gray-600);
}
.rasc-idade.velho { color: var(--orange-700); }

/* ===== Card da pilha — corpo tocável ===== */
.linha1.tocavel { cursor: pointer; border-radius: 10px; margin: -4px; padding: 4px; position: relative; }
.linha1.tocavel:hover { background: var(--gray-100); }
.nivel-card.travado .linha1.tocavel:hover { background: var(--gray-200); }
.linha1 .chev { align-self: center; color: var(--gray-400); flex-shrink: 0; }

/* ===== Detalhe do pallet ===== */
.btn-voltar {
  width: 48px; height: 48px; border-radius: 10px;
  border: 1.5px solid var(--gray-300); background: var(--white); color: var(--navy-900);
  cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.btn-voltar:hover { background: var(--gray-100); }
.foto.grande { width: 76px; height: 76px; font-size: 12.5px; }
.det-meta { display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.det-meta-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--gray-700);
}
.det-sec {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--gray-500); margin: 8px 0 -2px;
  display: flex; align-items: baseline; justify-content: space-between;
}
.ver-tudo {
  border: none; background: none; cursor: pointer;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  color: var(--navy-600); text-decoration: underline; text-transform: none; letter-spacing: 0;
}
.lote-total { font-size: 14.5px; color: var(--gray-800); }
.lote-total strong { color: var(--navy-900); }
.lote-posicoes { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.lote-pos {
  display: flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 14px;
  border-radius: 10px; border: 1.5px solid var(--gray-200);
  background: var(--white); cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--navy-900);
}
.lote-pos:hover:not(:disabled) { border-color: var(--navy-500); background: var(--navy-50); }
.lote-pos:disabled { cursor: default; }
.lote-pos.este { background: var(--gray-100); border-style: dashed; }
.lote-pos .lp-code { font-variant-numeric: tabular-nums; }
.lote-pos .lp-cx { margin-left: auto; color: var(--gray-600); font-variant-numeric: tabular-nums; }
.lote-pos .lp-este {
  font-size: 11px; font-weight: 700; color: var(--gray-600);
  background: var(--gray-200); border-radius: 999px; padding: 2px 9px;
}
.lote-pos svg { color: var(--gray-400); }
.nivel-card.movs { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; }
.mov-row {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; border-bottom: 1px solid var(--gray-100);
}
.mov-row:last-child { border-bottom: none; }
.mov-ic {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-100); color: var(--gray-700);
}
.mov-ic.saida_venda { background: var(--orange-100); color: var(--orange-700); }
.mov-ic.entrada { background: var(--success-100); color: var(--success-700); }
.mov-ic.movimentacao { background: var(--navy-100); color: var(--navy-700); }
.mov-desc { font-size: 13.5px; font-weight: 600; color: var(--navy-900); flex: 1; min-width: 0; }
.mov-meta { font-size: 12px; color: var(--gray-600); flex-shrink: 0; }

/* ===== Teclado numérico ===== */
.numpad {
  display: grid; grid-template-columns: repeat(3, 92px); gap: 10px;
  justify-content: center;
}
.numpad.disabled { opacity: 0.5; }
.np-key {
  height: 74px; border-radius: 12px;
  border: 1px solid var(--gray-200); background: var(--white);
  font-family: var(--font-body); font-size: 30px; font-weight: 600; color: var(--navy-900);
  cursor: pointer; box-shadow: var(--shadow-xs);
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast);
}
.np-key:hover { background: var(--gray-100); }
.np-key:active { transform: scale(0.96); background: var(--gray-200); }
.np-key.back { color: var(--gray-600); }
.np-key:disabled { cursor: not-allowed; }
.np-erro {
  text-align: center; font-size: 15px; font-weight: 700; color: var(--danger-700);
  margin: 2px 0 10px;
}
.pinpad, .qtdpad { display: flex; flex-direction: column; align-items: center; }
.pin-dots { display: flex; gap: 18px; justify-content: center; margin-bottom: 18px; }
.pin-dots[data-shake] { animation: cell-shake 420ms var(--ease-out); }
.pin-dot {
  width: 22px; height: 22px; border-radius: 999px;
  border: 2.5px solid var(--gray-400); background: transparent;
}
.pin-dot.on { background: var(--navy-900); border-color: var(--navy-900); }
.pin-hint { margin-top: 16px; font-size: 12px; color: var(--gray-500); text-align: center; }
.qtd-display {
  display: flex; align-items: baseline; gap: 12px; justify-content: center;
  margin-bottom: 2px; min-height: 64px;
}
.qtd-display .num {
  font-family: var(--font-heading); font-weight: 800; font-size: 56px; color: var(--navy-900);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.qtd-display .num.vazio { color: var(--gray-300); }
.qtd-display .unid { font-size: 19px; font-weight: 600; color: var(--gray-600); }
.qtd-display.excede .num { color: var(--danger-700); }
.qtd-m2 {
  min-height: 26px; font-size: 17px; font-weight: 700; color: var(--orange-700);
  margin-bottom: 12px; font-variant-numeric: tabular-nums;
}
.qtd-m2.excede { color: var(--danger-700); }
.qtd-m2.hint-venda { color: var(--gray-600); font-weight: 500; }
.btn-todas {
  height: 50px; padding: 0 20px; margin-bottom: 14px;
  border-radius: 10px; border: 1.5px solid var(--gray-300); background: var(--white);
  font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--navy-900);
  cursor: pointer; display: flex; align-items: center; gap: 9px;
}
.btn-todas:hover { background: var(--gray-100); }
.btn-todas.on { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

/* ===== Wizard ===== */
.wizard {
  position: absolute; inset: 0; z-index: 70;
  background: var(--bg-page);
  display: flex; flex-direction: column;
  animation: fade-in 180ms var(--ease-out);
}
.wz-head {
  height: 68px; flex-shrink: 0;
  background: var(--white); border-bottom: 1px solid var(--border-default);
  display: flex; align-items: center; gap: 20px; padding: 0 24px;
}
.wz-titulo { font-family: var(--font-heading); font-weight: 800; font-size: 21px; color: var(--navy-900); white-space: nowrap; }
.wz-prog { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.wz-seg { width: 38px; height: 7px; border-radius: 999px; background: var(--gray-200); }
.wz-seg.on { background: var(--orange-600); }
.wz-n { font-size: 13px; font-weight: 700; color: var(--gray-600); margin-left: 8px; font-variant-numeric: tabular-nums; }
.wz-head .btn-cancelar { margin-left: auto; }
.wz-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; justify-content: center; padding: 22px 24px; }
.wz-col { width: 460px; display: flex; flex-direction: column; align-items: center; }
.wz-col.larga { width: 780px; }
.wz-col.resumo { width: 560px; }
.wz-pergunta {
  margin: 0 0 18px; font-family: var(--font-heading); font-weight: 800; font-size: 28px;
  color: var(--navy-900); text-align: center; letter-spacing: -0.01em;
}
.btn-wz-continuar {
  margin-top: 18px; height: 60px; padding: 0 34px; align-self: stretch;
  border-radius: 12px; border: none;
  background: var(--navy-900); color: var(--white);
  font-family: var(--font-body); font-size: 17px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-wz-continuar:hover { background: var(--navy-800); }
.btn-wz-continuar:disabled { background: var(--gray-200); color: var(--gray-500); cursor: not-allowed; }
.btn-wz-confirmar {
  margin-top: 18px; height: 64px; width: 100%;
  border-radius: 12px; border: none;
  background: var(--orange-600); color: var(--white);
  font-family: var(--font-body); font-size: 18px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 11px;
}
.btn-wz-confirmar:hover { background: var(--orange-700); }
.btn-wz-confirmar:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-wz-confirmar:disabled:hover { background: var(--orange-600); }
.ola-splash {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  animation: fade-in 200ms var(--ease-out);
}
.ola-txt { font-family: var(--font-heading); font-weight: 800; font-size: 34px; color: var(--navy-900); }
.suc-circ {
  width: 104px; height: 104px; border-radius: 999px;
  background: var(--success-100); color: var(--success-700);
  display: flex; align-items: center; justify-content: center;
  animation: suc-pop 420ms var(--ease-out);
}
@keyframes suc-pop { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.suc-acoes { display: flex; gap: 14px; align-items: center; margin-top: 6px; }
.suc-hint { font-size: 13.5px; color: var(--gray-600); }

/* Resumo */
.resumo-card {
  width: 100%; background: var(--white);
  border: 1px solid var(--border-default); border-radius: 16px;
  padding: 20px; box-shadow: var(--shadow-sm);
}
.resumo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-100);
}
.rg-item { display: flex; flex-direction: column; gap: 2px; }
.rg-lbl { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500); }
.rg-val { font-size: 16.5px; font-weight: 700; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.aviso-resumo {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; line-height: 19px;
}
.aviso-resumo svg { flex-shrink: 0; margin-top: 1px; }
.aviso-resumo.navy { background: var(--navy-50); color: var(--navy-800); border: 1px solid var(--navy-200); }
.aviso-resumo.ambar { background: var(--warning-100); color: var(--warning-700); border: 1px solid var(--warning-500); }
.aviso-resumo.erro { background: var(--danger-100); color: var(--danger-700); border: 1px solid var(--danger-500); }

/* Entrada — produto */
.prod-busca {
  width: 100%; height: 52px;
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1.5px solid var(--gray-300); border-radius: 10px;
  padding: 0 16px; margin-bottom: 16px; color: var(--gray-500);
}
.prod-busca input {
  flex: 1; border: none; outline: none; font-family: var(--font-body);
  font-size: 16px; color: var(--navy-900); background: transparent;
}
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.prod-opt {
  border: 2px solid var(--gray-200); border-radius: 14px; background: var(--white);
  padding: 14px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-body);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.prod-opt:hover { border-color: var(--navy-400); }
.prod-opt.on { border-color: var(--orange-600); background: var(--orange-50); }
.po-foto {
  width: 56px; height: 56px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; border: 1px solid rgba(4,13,62,0.12);
}
.po-nome { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--navy-900); }
.po-marca { font-size: 12.5px; color: var(--gray-600); }

/* Entrada — lote/ton/bit */
.lote-campos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; }
.lote-campo { display: flex; flex-direction: column; gap: 8px; }
.lote-campo label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-600); }
.chips-recentes { display: flex; flex-wrap: wrap; gap: 7px; min-height: 44px; align-content: flex-start; }
.chip-rec {
  height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--gray-300); background: var(--white);
  font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--navy-900);
  cursor: pointer; font-variant-numeric: tabular-nums;
}
.chip-rec:hover { border-color: var(--navy-500); }
.chip-rec.on { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.lote-campo input {
  height: 52px; border-radius: 10px; border: 1.5px solid var(--gray-300);
  padding: 0 14px; font-family: var(--font-body); font-size: 16px; font-weight: 600;
  color: var(--navy-900); outline: none; background: var(--white);
}
.lote-campo input:focus { border-color: var(--navy-500); box-shadow: var(--shadow-focus); }

/* Entrada — destino */
.destino-alvos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.alvo.destino { height: 170px; gap: 12px; }
.destino-rasc-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; margin-top: 16px; }
.destino-rasc-g .alvo { height: 120px; }

/* ===== Header: botão + Entrada ===== */
.btn-entrada {
  height: 48px; padding: 0 20px;
  border-radius: 10px; border: none;
  background: var(--orange-600); color: var(--white);
  font-family: var(--font-body); font-size: 15.5px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.btn-entrada:hover { background: var(--orange-700); }
.btn-entrada:disabled { background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.45); cursor: not-allowed; }
