/* Painel de estoque, aba Piloto (opção A da prévia SZSekdEPdFtUq3Zx4AP3xi, escolhida pelo dono em 15-10-2026).
   Tudo preso a #v-estoque. As cores de estado são as quatro da trilha (--t-ok, --t-rev, --t-mau, --t-off) mais
   o azul do Radar para "informação": nenhuma cor nova sem um estado novo. */

#v-estoque .pn-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
#v-estoque .pn-cab h1 { margin: 0; }
#v-estoque .pn-abas { display: flex; gap: 4px; flex-wrap: wrap; margin: 14px 0 4px; border-bottom: 1px solid var(--line); }
#v-estoque .pn-abas button { font: inherit; font-size: 14px; cursor: pointer; border: 1px solid transparent; border-bottom: 0;
  background: none; color: var(--muted); padding: 8px 14px; border-radius: 9px 9px 0 0; margin-bottom: -1px; }
#v-estoque .pn-abas button[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 600; border-color: var(--line); }
#v-estoque .pn-quando { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
#v-estoque .pn-quando b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
#v-estoque .pn-corpo { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
#v-estoque .pn-aviso { border: 1px solid var(--t-rev); background: var(--t-rev-bg); color: var(--t-rev); border-radius: 10px;
  padding: 10px 14px; font-size: 13.5px; font-weight: 600; }
#v-estoque .pn-aviso.pn-mau { border-color: var(--t-mau); background: var(--t-mau-bg); color: var(--t-mau); }
#v-estoque .pn-bloco { background: #fff; border: 1px solid #e7ecf2; border-radius: 13px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px; min-width: 0; }
#v-estoque .pn-bloco > h2 { margin: 0; font-size: 17px; font-weight: 600; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
#v-estoque .pn-bloco > h2 small { font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
#v-estoque h3 { margin: 0; font-size: 14px; font-weight: 600; }
#v-estoque .pn-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
#v-estoque .pn-kv { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: #f6f8f7; border-radius: 9px; min-width: 0; }
#v-estoque .pn-kv .k { font-size: 12px; color: var(--muted); }
#v-estoque .pn-kv .v { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#v-estoque .pn-kv .d { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
#v-estoque .pn-kv.pn-mau { background: var(--t-mau-bg); }
#v-estoque .pn-kv.pn-mau .v { color: var(--t-mau); }
#v-estoque .pn-regra { font-size: 12.5px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; margin: 0; }

/* os três jeitos de "não ter número": ausente, não validado e desligado. Zero é só o número 0. */
#v-estoque .pn-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px;
  background: var(--t-off-bg); color: var(--ink); white-space: nowrap; line-height: 1.6; }
#v-estoque .pn-ok { background: var(--t-ok-bg); color: var(--t-ok); }
#v-estoque .pn-rev { background: var(--t-rev-bg); color: var(--t-rev); }
#v-estoque .pn-mau-t { background: var(--t-mau-bg); color: var(--t-mau); }
#v-estoque .pn-info { background: #e6eef6; color: var(--accent); }
#v-estoque .pn-sem { font-size: 12px; font-weight: 600; color: var(--muted); border: 1px dashed var(--linha-2); border-radius: 999px;
  padding: 0 8px; white-space: nowrap; line-height: 1.6; display: inline-block; }
#v-estoque .pn-off { font-size: 12px; font-weight: 600; color: var(--muted); background: repeating-linear-gradient(135deg, #f2f4f3 0 6px, #fff 6px 12px);
  border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; white-space: nowrap; line-height: 1.6; display: inline-block; }
#v-estoque .pn-legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); align-items: center; }
#v-estoque .pn-legenda span.it { display: inline-flex; gap: 6px; align-items: center; }

#v-estoque .pn-sub { display: flex; gap: 4px; flex-wrap: wrap; }
#v-estoque .pn-sub button { font: inherit; font-size: 13px; cursor: pointer; border: 1px solid var(--line); background: #f6f8f7;
  color: var(--muted); padding: 5px 12px; border-radius: 8px; }
#v-estoque .pn-sub button[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 600; border-color: var(--linha-2); }
#v-estoque .pn-tw { overflow-x: auto; }
#v-estoque .pn-tw table { min-width: 760px; font-size: 13px; }
#v-estoque .pn-tw td { vertical-align: top; }
#v-estoque .pn-tw td small { display: block; color: var(--muted); font-size: 11.5px; }
#v-estoque .pn-vazio { color: var(--muted); font-size: 13px; padding: 6px 0; }

#v-estoque .pn-ind { display: flex; flex-direction: column; gap: 6px; }
#v-estoque .pn-ind-linha { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
#v-estoque .pn-ind-linha b { font-weight: 600; }

#v-estoque .pn-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: #f6f8f7; border-radius: 10px; padding: 12px; }
#v-estoque .pn-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
#v-estoque .pn-form input, #v-estoque .pn-form select { font: inherit; font-size: 14px; padding: 7px 9px; border: 1px solid var(--linha-2);
  border-radius: 8px; background: #fff; color: var(--ink); min-width: 0; }
#v-estoque .pn-form .pn-motivo { flex: 1 1 260px; }
#v-estoque .pn-form .pn-motivo input { width: 100%; }
#v-estoque .pn-msg { font-size: 13px; }
#v-estoque .pn-msg.erro { color: var(--t-mau); }
#v-estoque .pn-msg.ok { color: var(--t-ok); }
#v-estoque .btn[disabled] { opacity: .5; cursor: not-allowed; }

/* R9: busca de produto na fila ou fora dela, indicadores com janela e registros anteriores */
#v-estoque .pn-form .pn-busca { flex: 1 1 320px; position: relative; }
#v-estoque .pn-form .pn-busca input { width: 100%; }
#v-estoque .pn-busca-res { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; }
#v-estoque .pn-busca-item { font: inherit; font-size: 13px; text-align: left; cursor: pointer; border: 1px solid var(--line);
  background: #fff; color: var(--ink); border-radius: 8px; padding: 6px 9px; display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
#v-estoque .pn-busca-item:hover, #v-estoque .pn-busca-item:focus { border-color: var(--accent); }
#v-estoque .pn-escolhido { font-size: 13px; display: inline-flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
#v-estoque .pn-ind h3 { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
#v-estoque .pn-ind h3 select { font: inherit; font-size: 13px; padding: 3px 6px; border: 1px solid var(--linha-2); border-radius: 7px; }
#v-estoque .pn-ind-det { flex-basis: 100%; color: var(--muted); font-size: 12px; }
#v-estoque .pn-det { flex-basis: 100%; font-size: 12px; color: var(--muted); }
#v-estoque .pn-det summary { cursor: pointer; }
#v-estoque .pn-antigos { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
