:root {
  color-scheme: light;
  /* paleta preto, branco e cinza (Braz, 16/11/2026): o que era azul é preto; fundo branco; cinza claro onde preto pesa */
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f2f2f2; --border: #e0e0e0;
  --text: #111111; --text-2: #444444; --muted: #767676;
  --accent: #111111; --accent-2: #333333; --accent-ink: #ffffff;
  --good: #0f7b3e; --good-bg: #e3f4ea; --bad: #c42b2b; --bad-bg: #fbe7e7; --warn: #8a5a00; --warn-bg: #fff3d6;
  --picking: #1baf7a; --armazenagem: #2a78d6;
  --livre: #1f9d55; --ocupado: #ff9500; --zerado: #ff3b30; --bloqueado: #e7b416; --montante-2d: #3d5f9e; --longarina-2d: #e8521c; --pallet-2d: #b98a55; --pallet-2d-pe: #8c6239; --caixa: #c49a6c; --caixa-2: #a77d50;
  --azul: #2563eb; --laranja: #ea580c;
  --raio: 12px; --toque: 46px;
  --sombra: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f0f0f; --surface: #1a1a1a; --surface-2: #242424; --border: #333333;
    --text: #f0f0f0; --text-2: #c4c4c4; --muted: #8f8f8f;
    --accent: #e6e6e6; --accent-2: #d0d0d0; --accent-ink: #111111;
    --good: #4cc27f; --good-bg: #13301f; --bad: #ef6b6b; --bad-bg: #3a1717; --warn: #f0b84a; --warn-bg: #352a10;
    --azul: #60a5fa; --laranja: #fb923c;
    --sombra: none;
  }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0f0f0f; --surface: #1a1a1a; --surface-2: #242424; --border: #333333;
    --text: #f0f0f0; --text-2: #c4c4c4; --muted: #8f8f8f;
    --accent: #e6e6e6; --accent-2: #d0d0d0; --accent-ink: #111111;
    --good: #4cc27f; --good-bg: #13301f; --bad: #ef6b6b; --bad-bg: #3a1717; --warn: #f0b84a; --warn-bg: #352a10;
    --azul: #60a5fa; --laranja: #fb923c;
    --sombra: none;
  }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-bottom: env(safe-area-inset-bottom); }
h1, h2, h3 { margin: 0 0 6px; } h3 { font-size: 16px; }
a { color: var(--accent-2); }
.small { font-size: 13px; } .muted { color: var(--muted); }
code { font-size: 12px; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; word-break: break-all; }
[hidden] { display: none !important; }

/* topo + menu: no celular o menu abre pela lateral no botão ☰ (como no Escudon); no computador fica fixo na lateral esquerda */
.topo { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top));
  display: flex; align-items: center; gap: 8px; }
.topo .marca { flex: 1; min-width: 0; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: none; color: var(--text); cursor: pointer; flex: none; }
.menu-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn:active { background: var(--surface-2); }
.menu-fundo { position: fixed; inset: 0; z-index: 44; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .2s; }
body.menu-aberto .menu-fundo { opacity: 1; pointer-events: auto; }
body.menu-aberto { overflow: hidden; }
.marca { display: flex; align-items: center; gap: 8px; } .marca b { font-size: 16px; } .marca .muted { margin-left: auto; max-width: 45vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { position: fixed; top: 0; left: 0; bottom: 0; z-index: 45; width: min(290px, 84vw); display: flex; flex-direction: column; gap: 2px; background: var(--surface);
  border-right: 1px solid var(--border); padding: calc(14px + env(safe-area-inset-top)) 12px calc(14px + env(safe-area-inset-bottom)); overflow-y: auto;
  transform: translateX(-102%); transition: transform .22s ease; box-shadow: 0 0 30px rgba(0,0,0,.25); }
body.menu-aberto .nav { transform: none; }
.nav-marca { display: flex; align-items: center; gap: 8px; padding: 4px 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); font-size: 17px; }
.nav-sec { display: block; margin: 12px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav a { display: flex; flex-direction: row; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 15.5px; font-weight: 500; }
.nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav a.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.aviso-local { background: var(--warn-bg); color: var(--warn); font-size: 12.5px; padding: 6px 16px; }
.alerta-barra { display: block; background: var(--bad); color: #fff; font-size: 13.5px; font-weight: 700; padding: 9px 16px; text-decoration: none; }
.alerta-barra[hidden] { display: none; }
.nav a { position: relative; }
.badge { position: absolute; top: 5px; left: calc(50% + 4px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.badge[hidden] { display: none; }
.nav .badge { position: static; margin-left: auto; }
.menu-btn { position: relative; }
.menu-btn .badge { top: 2px; left: auto; right: 0; }
.al-card .ficha img, .al-card .ficha .sem-foto { width: 52px; height: 52px; }
.al-num { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 6px; font-size: 14px; }
.al-barra { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-bottom: 8px; }
.al-barra i { display: block; height: 100%; background: var(--bad); border-radius: 4px; }
.al-fonte-acao { display: flex; align-items: center; gap: 8px; }
.numeros-inicio .card-alerta { border: 1px solid var(--bad); }
/* tela inteira, do menu até a borda direita (como no Escudon) */
main { padding: 12px 16px 16px; margin: 0; }
/* computador: menu sempre aberto na lateral esquerda (como no Escudon) */
@media (min-width: 900px) {
  body { padding-bottom: 0; padding-left: 232px; }
  body.menu-aberto { overflow: auto; }
  .menu-btn, .menu-fundo, .topo .marca img, .topo .marca b { display: none; }
  .topo { padding: 8px 24px; min-height: 52px; }
  .topo .marca .muted { margin-left: auto; }
  .nav { width: 232px; transform: none; transition: none; box-shadow: none; z-index: 30; padding-top: 16px; }
  .nav a { min-height: 40px; font-size: 14.5px; }
  main { padding: 18px 24px; }
}
.view { display: none; } .view.on { display: block; }

/* blocos */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--raio); padding: 14px; margin-bottom: 12px; box-shadow: var(--sombra); }
.card.sem-pad { padding: 0; }
.linha-tit { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.linha-tit h3 { margin: 0; }
.acoes, .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.row { margin: 0 0 10px; }
.lista { display: flex; flex-direction: column; gap: 8px; }

/* controles: alvos de toque grandes */
input, select, button, textarea { font: inherit; color: inherit; }
input, select, textarea { min-height: var(--toque); border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 8px 12px; width: 100%; }
input[type="checkbox"], input[type="radio"] { width: 20px; min-height: 20px; height: 20px; padding: 0; flex: none; vertical-align: -4px; accent-color: var(--accent); }
input:focus, select:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.btn { min-height: var(--toque); border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 0 16px; cursor: pointer; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.primario { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.perigo { color: var(--bad); }
.btn.link { border: 0; background: none; padding: 0; min-height: 32px; color: var(--accent-2); }
.btn.icone { width: var(--toque); padding: 0; }
.btn.icone svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.btn.mini-btn { min-height: 34px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.arquivo { position: relative; }
label { display: block; }
.cfg { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; margin: 8px 0; }
.cfg label { display: flex; flex-direction: column; gap: 4px; color: var(--text-2); font-size: 13px; }

/* modos e filtros */
.modos { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 10px; padding: 0 16px; }
.modos::-webkit-scrollbar { display: none; }
.modos button, .chips button, .seg button { flex: none; min-height: 40px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 0 14px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.modos button.on, .chips button.on, .seg button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.modos.pequenos { margin: 8px 0; padding: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chips button { min-height: 34px; font-size: 13px; }
.chips button span { opacity: .75; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; gap: 4px; flex-wrap: wrap; }

/* leitura (bipar) */
.passos { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.passo { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px dashed var(--border); border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.passo b { font-size: 14px; letter-spacing: .02em; }
.passo.feito { border-style: solid; border-color: var(--accent-2); }
.passo.agora { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.passo button { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; padding: 0 2px; cursor: pointer; }
.scan { display: flex; gap: 8px; }
.scan input { flex: 1; min-width: 0; font-size: 18px; letter-spacing: .02em; min-height: 54px; }
.scan .btn { min-height: 54px; }
.scan .btn.icone { width: 54px; }
.scan input.mini { flex: none; width: 64px; text-align: center; padding: 0 4px; }
/* botão do teclado na tela (coletor/celular): ligado fica destacado */
.scan .teclado-btn.on { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-color: var(--accent); color: var(--accent); }
@media (max-width: 420px) { .scan { gap: 6px; } .scan .btn.icone { width: 46px; } .scan input.mini { width: 52px; } .scan .btn.primario { padding: 0 12px; } }
.qtd-linha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.qtd { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.qtd button { width: 44px; border: 0; background: var(--surface-2); font-size: 20px; cursor: pointer; }
.qtd input { width: 70px; border: 0; border-radius: 0; text-align: center; min-height: 42px; }
.feed { margin: 10px 0; padding: 12px 14px; border-radius: var(--raio); font-weight: 600; background: var(--surface-2); }
.feed.ok { background: var(--good-bg); color: var(--good); }
.feed.erro { background: var(--bad-bg); color: var(--bad); border: 2px solid var(--bad); }
.feed.erro.treme { animation: feedTreme .35s ease-in-out; }
@keyframes feedTreme { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .feed.erro.treme { animation: none; } }
.feed.aviso { background: var(--warn-bg); color: var(--warn); }
.feed.info { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--text); }

/* fichas de produto/endereço */
.ficha { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }
.ficha img, .ficha .sem-foto { width: 64px; height: 64px; border-radius: 10px; object-fit: contain; background: var(--surface-2); border: 1px solid var(--border); }
.ficha h3 { font-size: 15px; line-height: 1.3; }
.cod { font-weight: 700; letter-spacing: .01em; }
.etiquetas-cod { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); }
.tag.dun { background: color-mix(in srgb, var(--accent-2) 16%, var(--surface)); color: var(--accent); }
.tag.picking { background: color-mix(in srgb, var(--picking) 18%, var(--surface)); color: var(--good); }
.tag.armazenagem { background: color-mix(in srgb, var(--armazenagem) 16%, var(--surface)); color: var(--accent); }
.tag.ruim { background: var(--bad-bg); color: var(--bad); } .tag.ok { background: var(--good-bg); color: var(--good); } .tag.aviso { background: var(--warn-bg); color: var(--warn); }
.tag button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 2px; font-size: 14px; line-height: 1; }
.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.numeros div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.numeros b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.numeros span { font-size: 12px; color: var(--muted); }
.ends { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.end { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.end .cod { font-size: 15px; }
.end .q { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 16px; }
.item { padding: 12px 14px; }
.item .topo-item { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.item .nome { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.item .nums { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; color: var(--muted); }
.item .nums b { color: var(--text); font-variant-numeric: tabular-nums; }
.item.clicavel { cursor: pointer; }
.item.ok-borda { border-left: 4px solid var(--good); } .item.falta-borda { border-left: 4px solid var(--warn); } .item.ruim-borda { border-left: 4px solid var(--bad); }
.barra { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 8px 0 4px; }
.barra b { display: block; height: 100%; background: var(--good); width: 0; transition: width .2s; }
.grade-mais { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { .grade-mais { grid-template-columns: 1fr 1fr; } }
.atalho { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text); margin: 0; }
.senha-campo { display: flex; gap: 6px; align-items: center; }
@media (min-width: 600px) { .cfg label.largo { grid-column: span 2; } }
.senha-campo input { flex: 1; min-width: 0; }
.acesso-novo { margin-top: 10px; padding: 12px; border-radius: 10px; background: var(--good-bg); color: var(--text); font-size: 14px; line-height: 1.6; }
.acesso-novo code { font-size: 14px; }
.chave-nova { margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); word-break: break-all; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }

/* tabelas (galpão) */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 12px; background: var(--surface); position: sticky; top: 0; }
td.l, th.l { text-align: left; } td.wrap { white-space: normal; }
table.mini { width: 100%; } table.mini th { position: static; }
.down { color: var(--bad); } .up { color: var(--good); }

/* galpão 3D (do WMS anterior) */
.wms-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 12px; }
.wview { display: none; } .wview.on { display: block; }
.wms-mapa { display: grid; grid-template-columns: minmax(0, 1fr) 300px; overflow: hidden; }
.wms3d { position: relative; height: 68vh; min-height: 420px; background: var(--surface-2); touch-action: none; }
.wms3d canvas { display: block; }
.wms3d-vazio { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; }
.wms3d-vazio[hidden] { display: none; }
.wms3d.movendo canvas { cursor: move; }
.wms-dica { position: absolute; z-index: 4; pointer-events: none; max-width: 260px; background: rgba(21,24,22,.92); color: #fff; border-radius: 8px; padding: 7px 10px; font-size: 12px; line-height: 1.35; box-shadow: 0 4px 14px rgba(0,0,0,.28); }
.wms-dica[hidden] { display: none; }
.wms-dica .wd-end { font-size: 13px; font-weight: 800; margin-bottom: 3px; }
.wms-dica .wd-nm { color: rgba(255,255,255,.72); }
.wms-dica .wd-it + .wd-it { margin-top: 4px; }
.andar-ui { position: absolute; inset: 0; pointer-events: none; }
.andar-ui[hidden] { display: none; }
.andar-topo { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; pointer-events: auto; }
.andar-onde { flex: 1 1 140px; min-width: 0; background: rgba(21,24,22,.82); color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 600; }
.andar-pad { position: absolute; left: 16px; bottom: 16px; width: 124px; height: 124px; border-radius: 50%; background: rgba(21,24,22,.28); border: 2px solid rgba(255,255,255,.7); touch-action: none; pointer-events: auto; cursor: grab; }
.andar-pad i { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.andar-dica { position: absolute; right: 10px; bottom: 10px; max-width: 320px; margin: 0; background: rgba(21,24,22,.78); color: #fff; border-radius: 8px; padding: 6px 9px; line-height: 1.35; }
@media (pointer: coarse) { .andar-dica .so-teclado { display: none; } }
@media (pointer: fine) { .so-celular { display: none !important; } }
.andar-passos { position: absolute; top: 54px; left: 10px; right: 10px; max-width: 430px; max-height: calc(100% - 64px); overflow-y: auto; pointer-events: auto; z-index: 2;
  background: var(--surface); color: var(--text); border-radius: 12px; padding: 12px 14px; box-shadow: 0 8px 28px rgba(0,0,0,.28); display: flex; flex-direction: column; gap: 8px; }
.andar-passos[hidden] { display: none; }
.andar-passos ol { margin: 0; padding-left: 18px; }
.andar-passos p { margin: 0; }
.andar-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
@media (max-width: 600px) { .andar-dica { left: 156px; font-size: 11px; } }
.wms-lado { border-left: 1px solid var(--border); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 68vh; }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--text-2); }
.legenda i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legenda i.vazio { border: 1px solid var(--muted); background: transparent; }
/* donos das ruas (mapa 3D) */
.wms-dono { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.wms-dono label { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 160px; }
.wms-dono .wms-dono-filtro { flex: 1 1 100%; flex-direction: row; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.wms-dono .wms-dono-filtro select { flex: 1; min-width: 0; }
#wmsDonoInfo { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
#wmsDonoInfo h4 { margin: 0 0 4px; font-size: 15px; }
#wmsDonoInfo ul { margin: 6px 0 0; padding-left: 18px; } #wmsDonoInfo li { margin: 3px 0; }
.dono-cor { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dono-linha { display: flex; gap: 6px; align-items: baseline; padding: 3px 0; cursor: pointer; }
.dono-linha:hover b { text-decoration: underline; }
.dono-tab td, .dono-tab th { padding: 4px 6px; text-align: left; vertical-align: top; }
.wms-end { font-size: 18px; font-weight: 700; }
.wms-area { display: inline-block; margin: 6px 0; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; }
.wms-area--picking { background: var(--picking); } .wms-area--armazenagem { background: var(--armazenagem); }
.wms-mover { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.wms-mover .mov-info { margin: 0; color: var(--text-2); }
.mov-setas { display: flex; flex-wrap: wrap; gap: 4px; }
.wms-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 6px; }
.wms-cab h3 { margin: 0; }
@media (max-width: 900px) {
  .wms-mapa { grid-template-columns: minmax(0, 1fr); }
  .wms-lado { border-left: 0; border-top: 1px solid var(--border); max-height: none; }
  .wms3d { height: 56vh; min-height: 320px; }
}
body.nao-admin .so-admin { display: none !important; }
body.leitura .so-operador { display: none !important; }

/* câmera, folha (bottom sheet) e aviso */
.camera { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; flex-direction: column; }
.camera video { flex: 1; width: 100%; object-fit: cover; }
.mira { position: absolute; left: 10%; right: 10%; top: 38%; height: 22%; border: 3px solid rgba(255,255,255,.85); border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); pointer-events: none; }
.cam-barra { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); color: #fff; background: #111; }
.folha { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.4); display: flex; align-items: flex-end; justify-content: center; }
.folha-corpo { background: var(--surface); width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .folha { align-items: center; } .folha-corpo { border-radius: 16px; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 70; background: #222; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; max-width: calc(100% - 32px); }

/* login */
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login-box { width: 100%; max-width: 380px; }
.login-box form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.login-box label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); }

/* início: mapa do estoque (desenho de frente das ruas) */
.mapa-cab { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.mapa-tit { display: flex; flex-direction: column; } .mapa-tit b { font-size: 18px; }
.mapa-nums { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: flex-end; }
.mapa-nums div span { display: block; font-size: 12px; color: var(--muted); }
.mapa-nums div b { font-size: 22px; font-variant-numeric: tabular-nums; }
.mapa-nums .livre b { color: var(--livre); } .mapa-nums .ocup b { color: var(--ocupado); }
.mapa-nums .pk-vazio { cursor: pointer; border-radius: 10px; padding: 4px 10px; margin: -4px -10px; border: 1px solid transparent; }
.mapa-nums .pk-vazio span:first-child, .mapa-nums .pk-vazio b { color: var(--zerado); }
.mapa-nums .pk-vazio .pk-sub { font-size: 11px; color: var(--muted); }
.mapa-nums .pk-vazio:hover, .mapa-nums .pk-vazio.on { border-color: color-mix(in srgb, var(--zerado) 45%, transparent); background: color-mix(in srgb, var(--zerado) 8%, transparent); }
.mapa-nums .pk-vazio:focus-visible { outline: 2px solid var(--zerado); }
#mapaRuas button .pk, .rua-tit-2d .pk { color: var(--zerado); opacity: 1; }
#mapaRuas button.on .pk { color: #ffd2cd; }
.mapa-desenho .cel .anel.pv { stroke: var(--zerado); stroke-width: 2.5; }
.mapa-geral .quad i.pv { background: var(--zerado); outline: 2px solid var(--zerado); outline-offset: 1px; }
.mapa-desenho.buscando .mapa-geral .quad i.pv:not(.a) { opacity: 1; }
.mapa-nums .barra { width: 160px; margin: 4px 0 0; }
.mapa-desenho { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 12px; border-radius: 10px; background: var(--surface-2); padding: 8px 0; }
.mapa-desenho svg { display: block; }
.mapa-desenho .fileira-tit { font-size: 12.5px; color: var(--text-2); padding: 6px 12px 0; position: sticky; left: 0; }
.mapa-desenho .cel { cursor: pointer; }
.mapa-desenho .cel:hover rect.fundo { stroke: var(--text); stroke-width: 2; }
.mapa-geral { display: flex; flex-direction: column; gap: 8px; padding: 6px 12px; }
.mapa-geral .linha { display: grid; grid-template-columns: 64px 1fr 48px; gap: 10px; align-items: center; cursor: pointer; }
.mapa-geral .quad { display: flex; flex-wrap: wrap; gap: 3px; }
.mapa-geral .quad i { width: 12px; height: 12px; border-radius: 2px; background: var(--border); }
.mapa-geral .quad i.o { background: var(--ocupado); } .mapa-geral .quad i.b { background: var(--bloqueado); }
.mapa-leg { margin-top: 10px; }
.legenda i.pk { background: transparent; border: 2px solid var(--picking); }
.numeros-inicio { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .numeros-inicio { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 699px) { .numeros-inicio .card-alerta { grid-column: 1 / -1; } }
.numeros-inicio a { text-decoration: none; color: var(--text); margin: 0; }
.numeros-inicio b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.mapa-dica { position: fixed; z-index: 40; pointer-events: none; background: #151816; color: #fff; border-radius: 10px; padding: 8px 10px; font-size: 12.5px; max-width: 280px; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.mapa-dica b { display: block; font-size: 13.5px; margin-bottom: 2px; }

.tb-por-rua td input, .tb-por-rua td select { min-height: 40px; width: 92px; padding: 6px 8px; }
.tb-por-rua td select { width: 150px; }
.tb-por-rua td[data-pos] { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .tb-por-rua table, .tb-por-rua tbody, .tb-por-rua tr, .tb-por-rua td { display: block; width: 100%; }
  .tb-por-rua tr:first-child { display: none; }
  .tb-por-rua tr { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; background: var(--surface); }
  .tb-por-rua td { border: 0; padding: 4px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
  .tb-por-rua td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 13px; }
  .tb-por-rua td.rua-tit { font-size: 15px; }
  .tb-por-rua td input { width: 110px; } .tb-por-rua td select { width: 170px; }
}

.modos-criar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 12px; }
.modos-criar button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; min-height: 64px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; }
.modos-criar button b { font-size: 15px; } .modos-criar button span { font-size: 12.5px; color: var(--muted); }
.modos-criar button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); box-shadow: inset 0 0 0 1px var(--accent); }
@media (max-width: 600px) { .modos-criar { grid-template-columns: 1fr; } }

/* sub-abas (Produtos | Comparação) e comparação WMS x Bling */
.sub-abas { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 10px; }
.sub-abas button { padding: 0 10px; font-size: 13.5px; line-height: 1.2; }
@media (min-width: 700px) { .sub-abas { display: inline-flex; } .sub-abas button { padding: 0 16px; font-size: 14px; } }
.cmp-heroi { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 8px; }
.cmp-heroi b { font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.cmp-heroi span { color: var(--text-2); font-size: 14px; }
.cmp-barra { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.cmp-barra i { display: block; height: 100%; width: 0; background: var(--good); border-radius: 5px; }
.cmp-nums { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.cmp-item .barra-mini { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.cmp-item .barra-mini i { display: block; height: 100%; background: var(--good); border-radius: 3px; }
.cmp-item .acoes { margin-top: 8px; }
.cmp-item .topo-item .cod { min-width: 0; overflow-wrap: anywhere; }
/* alocar endereço */
.aloc-sug { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 6px; }
.aloc-sug button { min-height: 32px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 0 10px; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.aloc-end { display: flex; gap: 8px; }
.aloc-end input { flex: 1; min-width: 0; text-transform: uppercase; }
.aloc-info { min-height: 20px; }
.cfg label.chk { flex-direction: row; align-items: center; gap: 8px; }
.cfg .linha-cheia { grid-column: 1 / -1; }
.lnk { color: var(--accent-2); cursor: pointer; text-decoration: underline; }
.cod-linha { display: grid; grid-template-columns: minmax(0, 1fr) 110px 130px; gap: 8px; margin-bottom: 8px; align-items: center; }
.cod-linha .scan input { min-height: 44px; font-size: 16px; }
.cod-linha .scan .btn { min-height: 44px; }
@media (max-width: 599px) { .cod-linha { grid-template-columns: 1fr 1fr; } .cod-linha .scan { grid-column: 1 / -1; } }
/* separação: ondas, caixas (QR), packing e expedição */
.sview { display: none; } .sview.on { display: block; }
.barra-mini { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.barra-mini i { display: block; height: 100%; background: var(--good); border-radius: 3px; }
.sep-item .ficha { margin-top: 6px; grid-template-columns: 52px 1fr; }
.sep-item .ficha img, .sep-item .ficha .sem-foto { width: 52px; height: 52px; }
.end-grande { font-size: 19px; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.q-grande { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.cx { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px; border-radius: 10px; border: 2px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; text-align: left; min-width: 0; }
.cx b { font-size: 16px; font-variant-numeric: tabular-nums; } .cx span { font-size: 12px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx.parcial { border-color: var(--warn); } .cx.completa { border-color: var(--good); background: var(--good-bg); } .cx.fechada { opacity: .55; }
.cx.aberta { outline: 3px solid var(--accent); outline-offset: 1px; } .cx.alvo { outline: 3px solid var(--warn); outline-offset: 1px; }
.cx-alvo { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 16px; margin-top: 10px; border-radius: var(--raio); background: var(--warn-bg); color: var(--warn); }
.cx-alvo > b { font-size: 46px; line-height: 1.05; letter-spacing: .03em; color: var(--text); }
.cx-tag { display: inline-block; font-weight: 800; font-size: 13px; padding: 2px 8px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.pk-pedido { margin-top: 10px; } .pk-pedido.cancelado { border-left: 4px solid var(--bad); padding-left: 10px; }
.end.ok { border-color: var(--good); background: var(--good-bg); }
.end.clicavel { cursor: pointer; }
.ex-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 10px 0; }
.ex-nums div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.ex-nums b { display: block; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; } .ex-nums span { font-size: 12.5px; color: var(--muted); }
.ex-nums .falta b { color: var(--bad); } .ex-nums .ok b { color: var(--good); }
.etq-card { border: 1px solid var(--border); border-radius: var(--raio); padding: 12px 14px; margin: 10px 0; background: var(--surface-2); }


/* ===== Pedidos (lista com filtros) ===== */
.pl-barra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.pl-barra .pl-busca { flex: 1 1 260px; min-width: 0; }
.pl-barra select { min-height: 34px; width: auto; }
.pl-horas { align-items: center; }
.pl-horas button { min-height: 32px; font-size: 12.5px; }
.pl-chips button.pl-alerta:not(.on) { border-color: var(--bad); color: var(--bad); }
.pl-ativos .etiquetas-cod { margin-top: 10px; align-items: center; }
.pl-vivo { font-size: 11px; vertical-align: middle; }
.pl-mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
/* barra dos pedidos marcados: fica presa no rodapé da tela e acompanha a rolagem (celular e computador) */
.pl-sel { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); margin: 0 auto;
  display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; justify-content: center;
  background: var(--surface); border: 1px solid var(--accent); border-radius: var(--raio); padding: 10px 12px; box-shadow: 0 6px 24px rgba(0,0,0,.22); }
body.com-selecao main { padding-bottom: 96px; }
.pl-sel { border-color: var(--border); } .pl-sel.tem-sel { border-color: var(--accent); }
.pl-sel-acoes, .pl-sel-pag { display: contents; }
.pl-sel select.pl-pp { width: auto; min-height: 34px; }
.pl-sel .pl-num { min-width: 36px; justify-content: center; }
.pl-div { width: 1px; align-self: stretch; background: var(--border); margin: 0 2px; }
body.com-selecao #instalarApp { display: none !important; }
@media (max-width: 899px) { .pl-sel { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding: 8px 10px; }
  .pl-sel::-webkit-scrollbar { display: none; } .pl-sel > * { flex: none; } }
@media (min-width: 900px) { .pl-sel { left: calc(232px + 24px); right: 24px; } }
.pl-tab td { vertical-align: top; }
.pl-tab tr.pl-linha { cursor: pointer; }
.pl-tab tr.pl-linha:hover td { background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.pl-tab tr.sel td { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.pl-tab .pl-chk { width: 34px; text-align: center; }
.pl-tab .pl-chk input { width: 18px; height: 18px; min-height: 0; }
.pl-tab .pl-abrir { width: 30px; }
.pl-th-ord { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; white-space: nowrap; }
.pl-th-ord:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pl-th-ord:focus-visible { outline: 2px solid var(--accent); }
.pl-th-ord .pl-seta { width: 9px; height: 14px; flex: none; }
.pl-th-ord .pl-seta path { fill: var(--muted); opacity: .35; transition: opacity .15s, fill .15s; }
.pl-th-ord:hover .pl-seta path { opacity: .6; }
.pl-th-ord.asc .pl-seta .c, .pl-th-ord.desc .pl-seta .b { fill: var(--accent); opacity: 1; }
.pl-th-ord.on { color: var(--accent); }
.pl-tab .tag { margin: 2px 4px 2px 0; }
.pl-mp { max-width: 220px; white-space: normal; }
.pl-det td { background: var(--surface-2); white-space: normal; text-align: left; }
.pl-detalhe { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pl-detalhe b { display: block; margin-bottom: 4px; }
/* log do pedido no WMS (19/11/2026): picking, packing e expedição — quem fez e quando */
.pl-log { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.pl-log-resumo { display: grid; gap: 3px; margin: 6px 0 8px; }
.pl-log-lista { display: grid; gap: 3px; max-height: 340px; overflow: auto; padding-right: 4px; overflow-wrap: anywhere; }
.pl-pagina { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 14px; }
.pl-pagina select { width: auto; min-height: 34px; }
.pl-grupo { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pl-grupo legend { font-weight: 700; font-size: 13px; padding: 0 4px; }
.pl-grupo textarea { width: 100%; }
.pl-grupo label.chk, .pl-campo.chk { display: flex; align-items: center; gap: 6px; font-size: 14px; min-height: 32px; }
.pl-campo { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.pl-campo.chk { flex-direction: row; color: var(--text); }
.pl-rot { font-weight: 700; font-size: 13px; color: var(--text); }
/* filtro em lista que abre e fecha (como um select com várias opções) */
.pl-drop { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.pl-drop > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 0 12px; font-size: 14px; color: var(--text); }
.pl-drop > summary::-webkit-details-marker { display: none; }
.pl-drop > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -4px; flex: none; }
.pl-drop[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.pl-drop.ativo { border-color: var(--accent); }
.pl-drop.ativo > summary { color: var(--accent); font-weight: 600; }
.pl-resumo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-opcoes { border-top: 1px solid var(--border); padding: 6px 12px; max-height: 260px; overflow-y: auto; }
.pl-opcoes label.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 36px; color: var(--text); }
.pl-salvo { display: flex; align-items: center; gap: 8px; justify-content: space-between; border-bottom: 1px solid var(--border); padding: 4px 0; }
/* celular: cada pedido vira um cartão */
@media (max-width: 899px) {
  .pl-tab thead { display: none; }
  .pl-tab, .pl-tab tbody { display: block; }
  .pl-tab tr.pl-linha { display: grid; grid-template-columns: 30px 1fr 1fr; gap: 2px 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); position: relative; }
  .pl-tab tr.pl-linha td { border: 0; padding: 2px 0; white-space: normal; text-align: left; }
  .pl-tab tr.pl-linha td.pl-chk { grid-row: span 6; padding-top: 4px; }
  .pl-tab tr.pl-linha td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
  .pl-tab tr.pl-linha td.pl-abrir { position: absolute; top: 6px; right: 6px; }
  .pl-tab tr.pl-det { display: block; } .pl-tab tr.pl-det td { display: block; }
}

/* ===== Início: Dashboard e Analytics ===== */
.ini-abas { margin-bottom: 12px; }
.dash-ola h2 { font-size: 20px; margin-bottom: 2px; } .dash-ola p { margin: 0 0 12px; }
.dash-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 12px; }
.dash-card { text-align: left; font: inherit; color: inherit; cursor: pointer; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.dash-card:disabled { cursor: default; }
.dash-card:not(:disabled):hover { border-color: var(--accent-2); }
.dash-card.ruim { border-color: var(--bad); background: var(--bad-bg); } .dash-card.aviso { border-color: var(--warn); background: var(--warn-bg); }
.dash-tit { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dash-nums { display: flex; gap: 18px; }
.dash-nums div { display: flex; flex-direction: column; }
.dash-nums b { font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash-nums span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.dash-dupla { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 899px) { .dash-dupla { grid-template-columns: 1fr; } }
.g-caixa { position: relative; }
.g-grade { stroke: var(--border); stroke-width: 1; }
.g-eixo { fill: var(--muted); font-size: 11px; }
.g-linha { fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.g-area { fill: var(--accent-2); opacity: .12; }
.g-mira { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.g-ponto { fill: var(--accent-2); stroke: var(--surface); stroke-width: 2; }
.g-dica { position: absolute; top: 0; background: var(--text); color: var(--surface); font-size: 12px; padding: 6px 9px; border-radius: 8px; pointer-events: none; width: 140px; }
.g-barras { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.g-barra { display: grid; grid-template-columns: minmax(80px, 1fr) 2fr auto; gap: 8px; align-items: center; }
.g-trilho { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.g-trilho i { display: block; height: 100%; background: var(--accent-2); border-radius: 0 4px 4px 0; }
.anl-fil { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.anl-fil select, .anl-fil input { width: auto; min-height: 36px; }
.anl-abas { margin-bottom: 10px; }
.anl-sec { margin: 6px 0 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.anl-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 12px; }
.anl-kpi { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.anl-v { display: flex; align-items: baseline; gap: 6px; } .anl-v b { font-size: 28px; font-variant-numeric: tabular-nums; } .anl-v span { color: var(--muted); font-size: 13px; }
.anl-dinheiro { font-size: 22px; }
.anl-pipe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0; }
@media (max-width: 600px) { .anl-pipe { grid-template-columns: 1fr; } }
.anl-etapa { border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.anl-etapa b { font-size: 22px; } .anl-etapa.gargalo { border-color: var(--bad); }

/* ===== Logs ===== */
.log-tab td { vertical-align: top; }
.log-onda { margin-bottom: 10px; line-height: 1.5; }
.tag.tag-onda { background: color-mix(in srgb, var(--azul) 14%, var(--surface)); color: var(--azul); white-space: nowrap; }
@media (max-width: 899px) {
  .log-tab thead { display: none; } .log-tab, .log-tab tbody { display: block; }
  .log-tab tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
  .log-tab td { border: 0; padding: 1px 0; text-align: left; white-space: normal; }
}

/* painel do endereço no mapa 3D: nome longo quebra a linha, sem rolagem para o lado */
#wmsSel table.mini { width: 100%; table-layout: fixed; }
#wmsSel table.mini td.l, #wmsSel table.mini th.l { overflow-wrap: anywhere; white-space: normal; }
#wmsSel table.mini td { vertical-align: top; }
#wmsSel table.mini td:last-child, #wmsSel table.mini th:last-child { width: 64px; text-align: right; }

/* picking zerado: o produto continua marcando o endereço, em vermelho */
.legenda i.zr { background: repeating-linear-gradient(45deg, var(--zerado) 0 3px, transparent 3px 6px); border: 1px dashed var(--zerado); }
.mapa-geral .quad i.z { background: repeating-linear-gradient(45deg, var(--zerado) 0 2px, transparent 2px 4px); outline: 1px solid var(--zerado); }
.ends .end.zerado { border-color: var(--zerado); background: color-mix(in srgb, var(--zerado) 8%, transparent); }
.ends .end.zerado .q { color: var(--zerado); }

/* cartão do endereço por cima do desenho 3D (clique na caixa) */
.wms-card { position: absolute; left: 10px; right: 10px; bottom: 10px; max-height: 58%; overflow-y: auto; z-index: 5; max-width: 460px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 13px; }
.wms-card[hidden] { display: none; }
.wms-card .wms-card-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.wms-card table.mini { width: 100%; table-layout: fixed; }
.wms-card table.mini td.l, .wms-card table.mini th.l { overflow-wrap: anywhere; white-space: normal; }
.wms-card table.mini td { vertical-align: top; }
.wms-card table.mini td:last-child, .wms-card table.mini th:last-child { width: 64px; text-align: right; }
.wms-card .row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wms-resumo { margin: 6px 0; font-size: 13px; }

/* botão de tema (Automático / Claro / Escuro) */
.tema-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; flex: none; }
.tema-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tema-btn .i-sol, .tema-btn .i-lua, .tema-btn .i-auto { display: none; }
.tema-btn[data-tema="claro"] .i-sol, .tema-btn[data-tema="escuro"] .i-lua, .tema-btn[data-tema="auto"] .i-auto { display: block; }
@media (max-width: 420px) { .tema-btn .tema-nome { display: none; } .tema-btn { padding: 0 8px; } }
.marca .tema-btn { margin-left: 8px; }
.marca b { white-space: nowrap; }

/* "E" = pedido com etiqueta de envio */
.pl-e { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 5px; background: var(--good); color: #fff;
  font-size: 12px; font-weight: 800; vertical-align: 1px; margin-left: 4px; }
.etq-ultima { border: 1px solid var(--good); border-radius: 10px; background: var(--good-bg); }
.etq-venda { font-size: 14px; margin-top: 2px; } .etq-venda .pl-mono { font-size: 15px; }
.etq-prods { margin: 4px 0 2px; padding: 0; list-style: none; font-size: 13px; }
.etq-prods li { padding: 1px 0; } .etq-prods .q { display: inline-block; min-width: 2.4em; font-weight: 700; }

/* status com cor (bolinha + etiqueta), como no Escudon */
.st-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: 0; flex: none; }
.st-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  color: var(--text); background: color-mix(in srgb, var(--st) 18%, transparent); border: 1px solid color-mix(in srgb, var(--st) 45%, transparent); }
.st-tag .st-dot { width: 8px; height: 8px; margin-right: 6px; background: var(--st); }
.st-lista .btn { justify-content: flex-start; }

/* símbolos nos atalhos, botões e ações da lista de pedidos */
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-right: 6px; vertical-align: -3px; }
.chips button .ic { margin-right: 6px; }
.chips button { display: inline-flex; align-items: center; }
.chip-aguardando .ic { color: var(--text-2); } .chip-atrasados .ic { color: var(--bad); } .chip-hoje .ic { color: #f97316; } .chip-congelados .ic { color: var(--muted); }
.chip-sem_etiqueta .ic { color: var(--muted); } .chip-com_etiqueta .ic { color: var(--good); } .chip-reclamacao .ic { color: var(--warn); } .chip-cancelado_mp .ic { color: var(--bad); }
.chips button.on .ic { color: inherit; }
.pl-barra .btn, .pl-sel .btn, .folha .lista .btn { display: inline-flex; align-items: center; }
.pl-gelo { color: var(--muted); font-size: 14px; margin-left: 3px; }

/* separação: o próximo endereço a ir */
.sep-proximo { border: 2px solid var(--accent) !important; }
.sep-prox-tag { display: inline-block; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; padding: 2px 8px; border-radius: 6px; margin-bottom: 6px; }
.pl-barra .pl-sku { flex: 0 1 130px; min-width: 90px; }
/* barra do rodapé mais compacta: ações + paginação cabem numa linha na tela do computador */
.pl-sel { gap: 6px; padding: 8px 10px; }
.pl-sel .btn { min-height: 32px; padding: 0 10px; font-size: 13px; }
.pl-sel select.pl-pp { min-height: 32px; font-size: 13px; padding: 0 8px; }
.pl-sel .pl-nsel { margin-right: 4px; font-size: 14px; }
.pl-sel .pl-exib { margin: 0 4px; white-space: nowrap; }

/* horário de corte da Shopee (atalho na linha de prazo) */

/* botão copiar (ID do Bling, nº da venda, cliente) */
.pl-cp { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: 4px; vertical-align: middle; padding: 0;
  border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.pl-cp svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.pl-cp:hover { background: var(--surface-2); color: var(--accent); }
.pl-cp:active { transform: scale(.92); }

/* ===== Dashboard (cartões com ícone, fluxo do dia, gráfico e rosca) ===== */
.dk-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; }
.dk-cab h2 { font-size: 24px; letter-spacing: -.01em; margin: 0 0 4px; }
.dk-cab p { margin: 0; }
.dk-vivo { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
.dk-vivo i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: dk-pulso 2s infinite; }
@keyframes dk-pulso { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@media (prefers-reduced-motion: reduce) { .dk-vivo i { animation: none; } }
.dk-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 14px; }
.dk { position: relative; overflow: hidden; text-align: left; font: inherit; color: inherit; margin: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; cursor: pointer;
  border-radius: 14px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.dk::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--dk); opacity: .9; }
.dk:disabled { cursor: default; }
.dk:not(:disabled):hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--dk) 45%, var(--border)); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--dk) 55%, transparent); }
.dk-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.dk-tit { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.dk-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 12px;
  color: var(--dk); background: color-mix(in srgb, var(--dk) 14%, transparent); }
.dk-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dk-nums { display: flex; align-items: stretch; gap: 16px; }
.dk-nums div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dk-nums b { font-size: 32px; line-height: 1.05; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dk-nums span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.dk-sep { width: 1px; background: var(--border); }
.dk-rodape { font-size: 12px; color: var(--text-2); }
.dk-prog { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 2px; }
.dk-prog i { display: block; height: 100%; border-radius: 3px; background: var(--dk); transition: width .6s ease; }
.dk-tend { font-style: normal; font-weight: 700; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; }
.dk-tend.sobe { color: var(--good); background: var(--good-bg); } .dk-tend.desce { color: var(--bad); background: var(--bad-bg); }
.dk-ruim { border-color: color-mix(in srgb, var(--bad) 55%, var(--border)); background: color-mix(in srgb, var(--bad) 7%, var(--surface)); }
.dk-ruim .dk-nums b { color: var(--bad); }
.dk-aviso { border-color: color-mix(in srgb, #f59e0b 50%, var(--border)); background: color-mix(in srgb, #f59e0b 7%, var(--surface)); }
.dk-bloco-tit { display: flex; align-items: center; gap: 12px; }
.dk-bloco-tit .dk-ic { width: 38px; height: 38px; border-radius: 10px; }
.dk-bloco-tit .dk-ic svg { width: 19px; height: 19px; }
.dk-bloco-tit h3 { margin: 0; font-size: 15.5px; }
/* fluxo do dia */
.dk-fluxo { padding: 16px 18px; border-radius: 14px; margin-bottom: 14px; }
.dk-etapas { display: flex; align-items: center; gap: 6px; margin: 16px 0 6px; overflow-x: auto; scrollbar-width: none; }
.dk-etapa { flex: 1 1 0; min-width: 120px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.dk-etapa .dk-ic { width: 36px; height: 36px; border-radius: 10px; } .dk-etapa .dk-ic svg { width: 18px; height: 18px; }
.dk-etapa b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.dk-etapa span:last-child { font-size: 12px; color: var(--muted); }
.dk-seta { display: flex; flex-direction: column; align-items: center; color: var(--muted); font-size: 11px; font-weight: 700; flex: none; min-width: 34px; }
.dk-seta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dk-pilha-tit { display: flex; justify-content: space-between; margin: 14px 0 6px; }
.dk-pilha { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--surface-2); }
.dk-pilha button { border: 0; padding: 0; min-width: 4px; cursor: pointer; transition: filter .15s; } .dk-pilha button:hover { filter: brightness(1.12); }
.dk-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.dk-leg button { border: 0; background: none; padding: 2px 0; font: inherit; font-size: 12.5px; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; }
.dk-leg button:hover { color: var(--text); } .dk-leg b { margin-left: 5px; color: var(--text); }
/* gráfico */
.dk-graf, .dk-canal { padding: 16px 18px; border-radius: 14px; }
.dk-graf-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dk-graf-acoes { display: flex; align-items: center; gap: 8px; }
.dk-total { font-weight: 700; font-size: 13px; background: var(--surface-2); border-radius: 999px; padding: 5px 12px; font-variant-numeric: tabular-nums; }
.dk-linha { stroke-width: 2.6; }
.dk-ant { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 5 5; opacity: .55; }
.dk-gline { stroke-dasharray: 3 5; }
.dk-dica { box-shadow: 0 8px 20px rgba(0,0,0,.18); line-height: 1.45; }
.dk-dica-ant { opacity: .7; }
/* rosca por plataforma */
.dk-rosca { display: flex; align-items: center; gap: 18px; margin-top: 16px; flex-wrap: wrap; }
.dk-rosca svg { width: 150px; height: 150px; flex: none; }
.dk-rosca-fundo { stroke: var(--surface-2); }
.dk-rosca-n { font-size: 24px; font-weight: 750; fill: var(--text); }
.dk-rosca-l { font-size: 10.5px; fill: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dk-rosca-leg { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 8px; }
.dk-rosca-leg div { display: grid; grid-template-columns: 10px 1fr auto 42px; align-items: center; gap: 8px; font-size: 13px; }
.dk-rosca-leg i { width: 10px; height: 10px; border-radius: 3px; }
.dk-rosca-leg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.dk-rosca-leg em { font-style: normal; color: var(--muted); text-align: right; font-size: 12px; }
.dk-vazio { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 34px 10px; color: var(--muted); }
.dk-vazio svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; opacity: .55; }
.dk-vazio p { margin: 4px 0 0; color: var(--text-2); font-weight: 600; }
@media (max-width: 599px) {
  .dk-grade { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dk { padding: 12px 12px 12px 14px; } .dk-nums b { font-size: 21px; } .dk-ic { width: 34px; height: 34px; border-radius: 10px; } .dk-ic svg { width: 17px; height: 17px; }
  .dk-nums { gap: 8px; } .dk-nums span { font-size: 10px; } .dk-cab h2 { font-size: 20px; } .dk-tit { font-size: 10.5px; letter-spacing: .06em; }
}

/* prazo para despachar: escolha única; o corte da Shopee fica separado à direita */
.pl-horas [data-prazo-todos].on, .pl-horas [data-urg].on, .pl-horas [data-horas].on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 699px) {
  .dk-etapas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .dk-seta { display: none; }
  .dk-etapa { min-width: 0; padding: 9px 10px; gap: 8px; } .dk-etapa b { font-size: 19px; }
  .dk-nums b { letter-spacing: -.03em; }
}

/* sugestões de onda: cartões lado a lado com rolagem para o lado */
.sug-acoes { display: flex; gap: 6px; }
#sugFiltrosBtn.ativo { border-color: var(--accent); color: var(--accent); }
#sugFiltrosBtn b { margin-left: 4px; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 6px; font-size: 11px; }
.sug-filtros { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; margin: 8px 0 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.sug-filtros[hidden] { display: none; }
.sug-f-linha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sug-f-linha .chips { margin-top: 0; }
.sug-f-tit { min-width: 76px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.sug-f-linha .chips button span { margin-left: 6px; }
.sug-f-linha .chips button.zero:not(.on) { opacity: .5; }
.sug-filtros .small { margin: 0; }
.sug-trilho { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; margin: 0 -2px; -webkit-overflow-scrolling: touch; }
.sug-card { flex: 0 0 250px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.sug-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sug-n b { font-size: 22px; font-variant-numeric: tabular-nums; }
.sug-prods { display: flex; flex-direction: column; gap: 6px; flex: 1; max-height: 132px; overflow-y: auto; }
.sug-prods .cod { font-weight: 700; }
.sug-card .btn { justify-content: center; }
@media (max-width: 599px) { .sug-card { flex-basis: 78vw; } }

/* quem está usando (login com vários nomes, ex.: expedição) */
.pessoa-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; max-width: 46vw; margin-left: auto; padding: 0 12px; border: 1px solid var(--accent); border-radius: 999px;
  background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.pessoa-btn[hidden] { display: none; }
.pessoa-btn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.pessoa-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pessoa-btn small { color: var(--text-2); font-weight: 600; }
.marca .pessoa-btn + .tema-btn { margin-left: 8px; }
.pessoa-fundo { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pessoa-caixa { width: min(560px, 100%); max-height: 90vh; overflow-y: auto; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.pessoa-caixa h3 { margin: 0 0 4px; }
.pessoa-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 14px 0 4px; }
.pessoa-grade .btn { min-height: 56px; justify-content: center; font-size: 16px; font-weight: 700; }
@media (max-width: 420px) { .pessoa-btn small { display: none; } .pessoa-grade { grid-template-columns: 1fr 1fr; } }

/* mapa do estoque: botões de rua com o nome em cima e a ocupação embaixo */
#mapaRuas button { flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 46px; padding: 5px 14px; line-height: 1.15; border-radius: 14px; }
#mapaRuas button b { font-size: 13px; font-weight: 700; }
#mapaRuas button span { font-size: 11px; font-weight: 600; opacity: .8; }

/* nota fiscal na plataforma: NF (já recebeu) / Sem NF (a etiqueta não sai antes) */
.pl-nf { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; margin-left: 4px; vertical-align: 1px;
  font-size: 11px; font-weight: 800; letter-spacing: .02em; color: var(--good); border: 1px solid var(--good); background: var(--good-bg); }
.pl-nf.sem { color: #fff; background: var(--bad); border-color: var(--bad); }

/* Pedidos: prazo para despachar em lista suspensa (abre as opções ao tocar) */
.pl-prazo-campo { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; }
.pl-horas select.pl-prazo { width: auto; min-height: 34px; padding: 0 30px 0 10px; font-size: 13px; font-weight: 600; border-radius: 999px; }
.pl-horas select.pl-prazo.ativo { border-color: var(--accent); color: var(--accent); }

/* Pedidos: menu "Mais opções" (pequeno, embaixo do botão) */
.pl-menu { position: fixed; z-index: 60; min-width: 260px; max-width: calc(100vw - 16px); padding: 6px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); box-shadow: 0 10px 30px rgba(0,0,0,.22); display: flex; flex-direction: column; gap: 2px; }
.pl-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 8px; background: none;
  color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.pl-menu button:hover, .pl-menu button:focus-visible { background: var(--surface-2); outline: none; }
.pl-menu button .ic { width: 18px; height: 18px; flex: none; color: var(--text-2); }
.pl-menu button small { display: block; font-size: 12px; color: var(--text-2); }
.pl-menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 6px; }
.pl-colunas { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; margin: 10px 0; }

/* Pedidos › Filtros › Produto (como no Escudon): campo compacto com busca e seleção */
.pl-prod { display: flex; flex-direction: column; gap: 8px; }
.pl-prod-caixa { position: relative; }
.pl-prod-abrir { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface); color: var(--text-2); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.pl-prod-abrir.ativo { color: var(--text); border-color: var(--accent); }
.pl-prod-abrir svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-prod-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  box-shadow: 0 10px 30px rgba(0,0,0,.22); overflow: hidden; }
.pl-prod-pop[hidden] { display: none; }
.pl-prod-busca { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.pl-prod-busca svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; }
.pl-prod-busca input { border: 0; background: none; min-height: 34px; padding: 0; box-shadow: none; outline: none; }
.pl-prod-lista { max-height: 280px; overflow-y: auto; padding: 4px; }
.pl-prod-lista > p { margin: 10px 8px; }
.pl-prod-op { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--text);
  font: inherit; text-align: left; cursor: pointer; }
.pl-prod-op:hover { background: var(--surface-2); }
.pl-prod-op.on { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.pl-prod-op b { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.pl-prod-op small { display: block; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pl-prod-op > span:last-child { min-width: 0; flex: 1; }
.pl-prod-ck { width: 18px; height: 18px; flex: none; margin-top: 1px; border: 1.5px solid var(--border); border-radius: 5px; background: var(--surface); }
.pl-prod-op.on .pl-prod-ck { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); }
.pl-prod-livre b { font-family: inherit; }
.pl-prod-sel { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-prod-sel:empty { display: none; }
.pl-seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pl-seg3 button { min-height: 36px; padding: 0 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text-2); font: inherit;
  font-size: 13px; font-weight: 600; cursor: pointer; }
.pl-seg3 button.on { background: var(--surface-2); color: var(--text); border-color: var(--text-2); }
.pl-prod-ajuda { margin: 0; }

/* Pedidos: plataforma em lista suspensa (fora dos Filtros), ao lado do prazo */
.pl-horas select.pl-plat { width: auto; max-width: 240px; min-height: 34px; padding: 0 30px 0 10px; font-size: 13px; font-weight: 600; border-radius: 999px; }
.pl-horas select.pl-plat.ativo { border-color: var(--accent); color: var(--accent); }
.pl-horas select.pl-status { width: auto; max-width: 260px; min-height: 34px; padding: 0 30px 0 10px; font-size: 13px; font-weight: 600; border-radius: 999px; }
.pl-horas select.pl-status.ativo { border-color: var(--accent); color: var(--accent); }
.pl-horas { gap: 8px 16px; }

/* mapa 2D: arrastar estoque de uma posição para outra */
.mapa-desenho svg { user-select: none; -webkit-user-select: none; }
.mapa-desenho .cel.arrastando { opacity: .45; }
.mapa-desenho .cel.alvo .fundo { stroke: var(--accent); stroke-width: 3; fill: var(--accent); fill-opacity: .18; }
.mapa-desenho .cel.alvo-ruim .fundo { stroke: var(--bad); stroke-width: 3; }
body.arrastando-estoque, body.arrastando-estoque * { cursor: grabbing !important; }
.mapa-arrasto { position: fixed; z-index: 80; pointer-events: none; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px;
  background: var(--surface); color: var(--text); border: 1px solid var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 13px; }
.mapa-arrasto span { font-size: 12px; color: var(--text-2); }

/* Dashboard: cartões compridos e baixos, 3 por linha (pedido do Braz, 15/11), sem rodapé */
.dk-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dk { padding: 14px 18px; gap: 6px; }
.dk-nums.um span { text-transform: none; letter-spacing: 0; font-size: 12px; }
@media (max-width: 1099px) { .dk-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .dk-grade { grid-template-columns: 1fr; gap: 10px; } }

/* Galpão › Valor do estoque (só administrador) */
.vl-total { font-size: 34px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 2px 0; }
.vl-nums { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.vl-nums > div { display: flex; flex-direction: column; gap: 2px; min-width: 130px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.vl-nums > div.ruim { border-color: var(--bad); background: var(--bad-bg); }
.vl-nums b { font-size: 20px; font-variant-numeric: tabular-nums; }
.vl-nums span { font-size: 12px; color: var(--text-2); }
.vl-tab td, .vl-tab th { white-space: nowrap; }
.vl-tab td.l:nth-child(2) { white-space: normal; min-width: 220px; }
.vl-tab tr.sem td { background: color-mix(in srgb, var(--bad) 6%, transparent); }

/* mapa 2D com várias ruas: nome de cada rua em cima do desenho dela */
.rua-tit-2d { position: sticky; left: 0; padding: 12px 12px 2px; font-size: 14px; font-weight: 800; color: var(--text); }
.rua-tit-2d span { font-size: 12px; font-weight: 600; color: var(--text-2); margin-left: 6px; }
.rua-tit-2d:not(:first-child) { margin-top: 10px; border-top: 1px solid var(--border); }
.sug-prazo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sug-prazo select, .sug-prazo input[type="date"] { min-height: 34px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.sug-prazo .chk { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
/* mapa 2D: achar produto e guardar sem sair do mapa */
.mapa-busca { position: relative; margin: 10px 0 8px; }
.mapa-busca-campo { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.mapa-busca-campo:focus-within { border-color: var(--accent); }
.mapa-busca-campo svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; }
.mapa-busca-campo input { flex: 1; min-width: 0; min-height: 40px; padding: 0; border: 0; background: none; box-shadow: none; outline: none; color: var(--text); font: inherit; }
.mapa-busca-lista { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 6; max-height: 320px; overflow-y: auto; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--sombra, 0 10px 30px rgba(0,0,0,.18)); }
.mapa-busca-lista[hidden], .gd-lista[hidden], .mapa-achado[hidden] { display: none; }
.mapa-busca-lista > p, .gd-lista > p { margin: 10px 8px; }
.mapa-busca-lista .pl-prod-op, .gd-lista .pl-prod-op { align-items: center; }
.mapa-busca-lista .pl-prod-op em, .gd-lista .pl-prod-op em { flex: none; margin-left: auto; font-style: normal; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.mapa-achado { display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: 12px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.ma-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mapa-achado .chips { margin-top: 0; }
.ma-ends button span { margin-left: 6px; font-weight: 700; }
.ma-ends button.zero { color: var(--zerado); }
.mapa-desenho.buscando .cel.fora { opacity: .22; }
.mapa-desenho .cel .anel { fill: none; stroke: var(--accent); stroke-width: 3; }
.mapa-desenho .cel.pulso .anel { animation: anelPulso .4s ease-in-out 5 alternate; }
@keyframes anelPulso { to { stroke-width: 8; } }
.mapa-desenho.buscando .mapa-geral .quad i:not(.a) { opacity: .25; }
.mapa-geral .quad i.a { outline: 2px solid var(--accent); outline-offset: 1px; }
.gd-lista { max-height: 240px; overflow-y: auto; padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.gd-feed { display: flex; flex-direction: column; gap: 6px; max-height: 260px; margin-top: 10px; overflow-y: auto; }
.gd-feed > div { padding: 8px 10px; border-radius: 10px; font-size: 13.5px; }
.gd-feed .ok { background: var(--good-bg); }
.gd-feed .erro { background: var(--bad-bg); color: var(--bad); }
/* mover estoque (arrastar no mapa): origem → destino, Total ou quantidade */
.cfg label[hidden] { display: none; }
.mv-rota { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 8px; margin: 8px 0 4px; }
.mv-ponta { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); min-width: 0; }
.mv-ponta span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.mv-ponta b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; overflow-wrap: anywhere; }
.mv-ponta em { font-style: normal; font-size: 13px; color: var(--text-2); }
.mv-seta { align-self: center; font-size: 20px; color: var(--text-2); }
.mv-quanto { display: flex; flex-direction: column; gap: 6px; }
.mv-quanto .seg { flex-wrap: wrap; }
.mv-depois { margin: 4px 0 0; }
.mapa-busca-lista .pl-prod-op > span, .gd-lista .pl-prod-op > span { flex: 1; min-width: 0; }
/* cadastro das caixas de separação */
#cxCadCard { margin-top: 12px; }
.etq-auto-chk { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; margin: 8px 0 4px; } .etq-auto-chk input { margin-top: 2px; }
#cfgCaixas .cx-cad-grade { max-height: 420px; overflow-y: auto; padding-right: 2px; }
.cx-cad-nums .nums { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 10px; font-size: 13px; color: var(--muted); }
.cx-cad-nums .nums b { color: var(--text); font-variant-numeric: tabular-nums; }
.cx-cad-nums .nums .up b { color: var(--good); }
.cx-cad .cx-c { min-height: 56px; }
.cx-cad .cx-c span { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.cx-cad .cx-c.livre { border-color: color-mix(in srgb, var(--good) 55%, var(--border)); background: var(--good-bg); }
.cx-cad .cx-c.em-uso { border-color: color-mix(in srgb, var(--warn) 55%, var(--border)); background: var(--warn-bg); }
.cx-cad .cx-c.desativada { opacity: .5; text-decoration: line-through; }

/* Criar onda manual (Pedidos): caixa de cada pedido */
.om-fora { margin: 0 0 8px; } .om-fora summary { cursor: pointer; color: var(--bad); }
.om-lista { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 6px; max-height: 46vh; overflow-y: auto; }
.om-linha { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.om-ped { flex: 1; min-width: 0; font-size: 14px; } .om-ped > b + span { font-size: 13px; }
.om-ped .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.om-cx { width: 104px; flex: none; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.om-cx.erro { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }

/* Guardar no mapa 2D: total do produto no WMS e no Bling */
.gd-totais { font-size: 13px; margin-top: 3px; }

/* caminho da onda: bloco das que saíram do Picking e lista no Packing */
.ondas-depois { margin-top: 10px; } .ondas-depois > summary { cursor: pointer; font-weight: 600; padding: 8px 2px; color: var(--muted); }
.ondas-depois[open] > summary { color: var(--text); }
.pk-onda { display: grid; grid-template-columns: 1fr 120px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.pk-onda:last-child { border-bottom: 0; }
/* filtro de plataforma do Packing (17/11/2026) */
.pk-plat { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.pk-plat label { display: flex; align-items: center; gap: 8px; }
.pk-plat select { min-width: 220px; max-width: 100%; }
.pk-plat .tag { white-space: normal; }
@media (max-width: 420px) { .pk-onda { grid-template-columns: 1fr 70px; } }

/* observação do pedido (pedido do Braz, 16/11): aviso laranja grande no bipe — mesma cor no claro e no escuro */
.obs-alerta { background: #ea580c; color: #fff; border-radius: var(--raio); padding: 14px 16px; margin: 10px 0; box-shadow: 0 0 0 3px #fdba74 inset;
  animation: obsPisca 1.2s ease-in-out 2; }
.obs-alerta .obs-tit { font-weight: 900; font-size: 15px; letter-spacing: .02em; margin-bottom: 6px; }
.obs-alerta .obs-txt { font-weight: 800; font-size: 20px; line-height: 1.3; white-space: pre-wrap; overflow-wrap: anywhere; }
.obs-alerta .obs-por { font-size: 12.5px; opacity: .9; margin-top: 6px; font-weight: 600; }
.obs-alerta .obs-item + .obs-item { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .35); }
.obs-alerta .obs-item .obs-txt { font-size: 18px; }
@keyframes obsPisca { 50% { box-shadow: 0 0 0 6px #fed7aa inset; } }
@media (prefers-reduced-motion: reduce) { .obs-alerta { animation: none; } }
/* tela de Pedidos: marca e campo da observação */
.pl-obs-tag { display: inline-block; background: #ea580c; color: #fff; font-weight: 800; font-size: 11px; border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: middle; }
.pl-obs-form textarea { width: 100%; min-height: 64px; font: inherit; padding: 8px; border-radius: 8px; border: 1px solid var(--border, #ccc); background: var(--surface, #fff); color: var(--text, inherit); resize: vertical; }

/* alteração pedida pelo cliente esperando confirmação do grupo (16/11) */
.pl-obs-tag.pend { background: #fef3c7; color: #92400e; box-shadow: inset 0 0 0 1px #f59e0b; }
.pl-alt-pend { margin: 0 0 10px; padding: 10px 12px; border: 2px dashed #f59e0b; border-radius: 10px; background: #fffbeb; color: #78350f; }
.pl-alt-pend > div { margin: 6px 0; font-weight: 600; white-space: pre-wrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pl-alt-pend, :root:not([data-theme="light"]) .pl-obs-tag.pend { background: #3a2a06; color: #fde68a; } }
:root[data-theme="dark"] .pl-alt-pend, :root[data-theme="dark"] .pl-obs-tag.pend { background: #3a2a06; color: #fde68a; }

/* ===== Expedição: números da coleta clicáveis + pedidos com sinais de atenção (16/11/2026) ===== */
.ex-nums .ex-num { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--surface-2); border: 2px solid transparent; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.ex-nums .ex-num:hover { border-color: var(--border); }
.ex-nums .ex-num:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ex-nums .ex-num.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface-2)); }
.ex-nums .ex-num i { display: block; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--accent); margin-top: 3px; }
.ex-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 2px 0 10px; }
.ex-chips .chip { font: inherit; font-size: 13px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; min-height: 32px; }
.ex-chips .chip b { font-variant-numeric: tabular-nums; }
.ex-chips .chip.ruim { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--border)); }
.ex-chips .chip.aviso { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
.ex-chips .chip.obs { color: #c2410c; border-color: color-mix(in srgb, #ea580c 45%, var(--border)); }
.ex-chips .chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.ex-ped { align-items: flex-start; }
.ex-ped .ex-linha1 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ex-ped.ex-grave { border-left: 4px solid var(--bad); }
.ex-ped.ex-atencao { border-left: 4px solid #ea580c; }
/* últimos bipes da coleta (bipe rápido, 18/11/2026): o erro de um pacote fica à vista mesmo bipando o seguinte */
.ex-ult { margin: 4px 0 2px; display: grid; gap: 3px; }
.ex-ult[hidden] { display: none; }
.ex-ult-l { font-size: 13px; padding: 4px 8px; border-radius: 8px; background: var(--surface-2); border-left: 4px solid var(--border); overflow-wrap: anywhere; }
.ex-ult-l.ok { border-left-color: var(--good); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-ult-l.erro { border-left-color: var(--bad); background: var(--bad-bg); color: var(--bad); font-weight: 600; }
.ex-ult-l.aviso { border-left-color: var(--warn); background: var(--warn-bg); }
.ex-ult-h { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 400; }
.ex-ped .ex-acoes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; flex-shrink: 0; }
.ex-obs { margin: 5px 0 3px; padding: 4px 8px; border-radius: 6px; background: #fff1e6; color: #9a3412; font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
.tag.obs { background: #fff1e6; color: #9a3412; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ex-obs, :root:not([data-theme="light"]) .tag.obs { background: #3b1d0a; color: #fdba74; } :root:not([data-theme="light"]) .ex-chips .chip.obs { color: #fdba74; } }
:root[data-theme="dark"] .ex-obs, :root[data-theme="dark"] .tag.obs { background: #3b1d0a; color: #fdba74; }
:root[data-theme="dark"] .ex-chips .chip.obs { color: #fdba74; }
@media (max-width: 600px) { .ex-ped { flex-direction: column; } .ex-ped .ex-acoes { justify-content: flex-start; } }
/* filtro de Produto da tela Pedidos: quantos pedidos/unidades de cada SKU que está nos pedidos (16/11/2026) */
.pl-prod-op .pl-prod-n { margin-left: auto; padding-left: 8px; font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; align-self: center; }

/* Picking › Separar onda: buscar produto (16/11/2026) */
.sep-busca { margin: 10px 0; }
.sep-busca-res { margin-top: 6px; }
.sep-busca-outras { margin-top: 6px; display: grid; gap: 6px; }
.sep-busca-onda { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.sep-busca-onda > span { min-width: 0; overflow-wrap: anywhere; }

/* ===== painel de processamento (puxar etiqueta, status, Bling, notas — 16/11/2026) ===== */
.proc-fundo { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .45); }
.proc-card { width: min(440px, 100%); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px; padding: 18px 18px 14px; box-shadow: var(--sombra, 0 10px 30px rgba(0,0,0,.25)); }
.proc-tit { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.proc-giro { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--accent) 25%, transparent); border-top-color: var(--accent); animation: proc-gira .8s linear infinite; }
@keyframes proc-gira { to { transform: rotate(360deg); } }
.proc-barra { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 14px 0 8px; }
.proc-barra i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .3s; }
.proc-barra.indet i { width: 35%; animation: proc-vai 1.2s ease-in-out infinite; }
@keyframes proc-vai { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
.proc-info { color: var(--text-2); font-variant-numeric: tabular-nums; }
.proc-aviso { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-weight: 600; font-size: 13.5px; }
.proc-fundo.ok .proc-aviso { background: var(--good-bg); color: var(--good); }
.proc-fundo.ok .proc-barra i { background: var(--good); }
.proc-fundo.erro .proc-aviso { background: var(--bad-bg); color: var(--bad); }
.proc-fundo.erro .proc-barra i { background: var(--bad); }
.proc-acoes { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .proc-giro, .proc-barra.indet i { animation: none; } }

/* Pedidos: 1ª linha de atalhos maior (aguardando, hoje, atrasados, sem prazo, reclamação, cancelados); embaixo NF/etiqueta/obs (16/11/2026) */
.pl-chips { flex-direction: column; align-items: stretch; gap: 8px; }
.pl-chips-prim, .pl-chips-sec { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-chips-prim button { min-height: 44px; font-size: 15px; padding: 0 18px; }
.pl-chips-prim button span { font-size: 15px; }
.pl-chips-sec { padding-top: 8px; border-top: 1px dashed var(--border); }
.pl-chips button.chip-com_obs:not(.on) { border: 2px solid #ea580c; color: #c2410c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pl-chips button.chip-com_obs:not(.on) { color: #fdba74; } }
:root[data-theme="dark"] .pl-chips button.chip-com_obs:not(.on) { color: #fdba74; }
@media (max-width: 600px) { .pl-chips-prim button { min-height: 42px; font-size: 14px; padding: 0 14px; } }

/* Produtos: busca + "Mais opções" (importar do Bling) */
.prod-topo { display: flex; gap: 8px; align-items: center; }
.prod-topo input { flex: 1; min-width: 0; }
.prod-topo .btn { flex: none; white-space: nowrap; }
#prodBlingMsg:empty { display: none; }
#prodBlingMsg { margin-top: 8px; }
/* Picking: pedidos da onda (Devolver para Pedidos) */
.sep-peds summary { cursor: pointer; font-weight: 600; }
.sep-peds .ends { margin-top: 8px; }
.sep-peds .end, #fDevLista .end { gap: 8px; align-items: center; }
/* Packing: onda clicável (filtra a fila) */
.pk-onda.clicavel { cursor: pointer; border-radius: 8px; }
.pk-onda.clicavel:hover, .pk-onda.on { background: color-mix(in srgb, var(--accent, #22c55e) 12%, transparent); }

/* ---------- canto superior: lupa, sino e sol (Braz, 17/11/2026) ---------- */
.topo-acoes { display: flex; align-items: center; gap: 2px; flex: none; }
.topo-ic { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px;
  background: none; color: var(--text); cursor: pointer; flex: none; }
.topo-ic:hover, .topo-ic.on { background: var(--surface-2); }
.topo-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topo-ic .i-sol, .topo-ic .i-lua { display: none; }
.topo-ic[data-efetivo="claro"] .i-sol, .topo-ic[data-efetivo="escuro"] .i-lua { display: block; }
.topo-badge { position: absolute; top: 2px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1; display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface); box-sizing: content-box; }
.topo-badge[hidden] { display: none; }
.topo-pop { position: absolute; right: 12px; top: calc(100% + 6px); z-index: 60; width: min(380px, calc(100vw - 24px)); background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 10px; }
.topo-pop[hidden] { display: none; }
/* busca de páginas (paleta) */
.topo-pop.paleta { top: 6px; right: 96px; width: min(460px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
.paleta-campo { display: flex; align-items: center; gap: 10px; margin: 8px; padding: 0 8px 0 12px; height: 44px; border: 2px solid var(--azul); border-radius: 12px; background: var(--surface); }
.paleta-campo svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.paleta-campo input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font-size: 15px; padding: 0; min-height: 0; box-shadow: none; }
.paleta-campo input::-webkit-search-cancel-button { display: none; }
.paleta-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 7px; background: var(--surface-2); color: var(--text-2); font-size: 18px; line-height: 1; cursor: pointer; }
.paleta-lista { max-height: min(60vh, 460px); overflow-y: auto; padding: 0 8px 8px; }
.paleta-sec { padding: 10px 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.paleta-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.paleta-item.on { background: color-mix(in srgb, var(--azul) 10%, var(--surface)); border-color: color-mix(in srgb, var(--azul) 45%, transparent); }
.paleta-ic { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--surface-2); color: var(--text-2); }
.paleta-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.paleta-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.paleta-nome { display: flex; align-items: center; gap: 8px; min-width: 0; } .paleta-nome b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paleta-tag { flex: none; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); font-size: 11px; font-weight: 600; }
.paleta-desc { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paleta-seta { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.paleta-item.on .paleta-seta { visibility: visible; }
.paleta-rodape { display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.paleta-rodape kbd { padding: 2px 6px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-2); font: 600 11px ui-monospace, monospace; color: var(--text-2); }
.paleta-rodape kbd:not(:first-child) { margin-left: 10px; }
@media (max-width: 600px) { .topo-pop.paleta { left: 8px; right: 8px; width: auto; } .paleta-rodape { display: none; } }
#notifPop .linha-tit { margin-bottom: 6px; }
.notif-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 8px; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.notif-item:hover { background: var(--surface-2); }
.notif-item + .notif-item { border-top: 1px solid var(--border); border-radius: 0; }
.notif-n { min-width: 34px; font-variant-numeric: tabular-nums; color: var(--bad); }
.notif-item span:not(.notif-ir) { flex: 1; } .notif-ir { color: var(--muted); }
@media (max-width: 480px) { .topo .marca #quem { display: none; } .topo-ic { width: 36px; height: 36px; } }
/* celular e tablet (Braz, 17/11/2026: "ficou apertado"): sem o nome "WMS Galpão" (fica o ícone); o botão da pessoa logo depois
   do ícone, com o nome; a lupa, o sino e o sol no canto direito, separados por uma divisória, sem passar por cima do botão */
@media (max-width: 899px) {
  .topo { gap: 6px; }
  .topo .marca b { display: none; }
  .topo .marca { flex: 1 1 auto; min-width: 0; gap: 6px; }
  .topo .marca .pessoa-btn { margin-left: 2px; min-width: 0; flex: 0 1 auto; max-width: 100%; padding: 0 10px; }
  .topo-acoes { margin-left: auto; gap: 2px; padding-left: 6px; border-left: 1px solid var(--border); }
}

/* ---------- filtros rápidos de Pedidos: retangulares com as pontas arredondadas (Braz, 17/11/2026) ---------- */
.pl-chips button { border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.05); gap: 2px; }
.pl-chips button span { opacity: 1; font-weight: 700; color: var(--text); margin-left: 3px; }
.pl-chips button:hover:not(.on) { background: var(--surface-2); }
.pl-chips button.on { background: var(--surface-2); border-color: var(--text); color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.pl-chips button.on .ic { color: var(--text-2); }
.pl-chips-prim button, .pl-chips-prim button span { font-size: 14px; }
.pl-chips-prim button { min-height: 40px; padding: 0 14px; }
.pl-chips button.pl-alerta:not(.on) { border-color: var(--border); color: var(--text); }
.pl-chips .chip-aguardando .ic, .pl-chips button.on.chip-aguardando .ic { color: var(--azul); }
.pl-chips .chip-congelados .ic, .pl-chips button.on.chip-congelados .ic { color: var(--azul); }
.pl-chips .chip-atrasados .ic, .pl-chips button.on.chip-atrasados .ic, .pl-chips .chip-atrasados span { color: var(--bad); }
.pl-chips .chip-hoje .ic, .pl-chips button.on.chip-hoje .ic, .pl-chips .chip-hoje span { color: var(--laranja); }
/* câmera em todas as abas (Recebimento, Bipar/Guardar, Separar onda, Caixas, Packing, Expedição/coleta): não usam
   (Braz, 17/11/2026: "todas as abas que tem ele pode tirar") — o botão fica escondido; o do teclado, que nasce logo depois
   dele, continua */
#scanCam, #recCam, [data-cam], [data-cam-linha], [data-ex-cam] { display: none !important; }
