/* Portal Lemix — cores da marca: turquesa (#20B4C8) como cor de ação, laranja (#FC741C) como destaque; tipografia arredondada como no logo */
:root {
  --bg: #f4f8f9;
  --panel: #ffffff;
  --ink: #142a30;
  --muted: #5a6f75;
  --line: #dbe6e9;
  --brand-teal: #20b4c8;
  --brand-orange: #fc741c;
  --accent: #0b8293;          /* turquesa escurecido para texto/botões legíveis */
  --accent-ink: #ffffff;
  --accent-soft: #e2f5f8;
  --orange: #d9600f;          /* laranja para texto */
  --orange-soft: #fff0e5;
  --danger: #b3361f;
  --danger-soft: #fbe6e1;
  --ok: #1f7a4d;
  --ok-soft: #e1f3e8;
  --label-paper: #ffffff;
  --font-display: "Nunito", "Segoe UI", Roboto, Arial, sans-serif;
  --font-ui: "Nunito Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-ui); font-size: 14px; line-height: 1.45; }
a { color: var(--accent); }
code { font-family: var(--font-data); font-size: .92em; }
h1 { font-family: var(--font-display); font-size: 24px; margin: 0; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 13px; margin: 0; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.sub { color: var(--muted); margin: 4px 0 0; }
.nota { color: var(--muted); font-size: 12.5px; margin: 0; }
.dica { color: var(--muted); font-weight: 400; font-size: 12px; }
[hidden] { display: none !important; }

/* barra superior */
.topo { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topo::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--brand-teal) 0 62%, var(--brand-orange) 62% 100%); }
.marca img { height: 30px; width: auto; display: block; }
.marca-rotulo { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
.topo-in { max-width: 1240px; margin: 0 auto; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.marca { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.marca-sinal { width: 14px; height: 14px; border-radius: 3px; background:
  repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 3px, var(--accent) 3px 4px, transparent 4px 6px); }
.topo-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.topo-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.topo-links a:hover { color: var(--accent); }
.quem { color: var(--muted); font-size: 13px; }
.sair-form { margin: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-weight: 500; cursor: pointer; }
.link-btn:hover { color: var(--danger); }

/* página */
.pagina { max-width: 1320px; margin: 0 auto; padding-block: 24px 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 18px; }
.pagina.estreita { max-width: 520px; }
.pagina-h { display: flex; flex-direction: column; gap: 2px; }
.cartao { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.cartao-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.contador { font-family: var(--font-data); font-size: 12px; color: var(--muted); }
.cartao.aviso, .cartao.vazio, .cartao.formulario { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.cartao.vazio h2 { text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--ink); }

/* formulários */
label { display: flex; flex-direction: column; gap: 5px; font-weight: 500; font-size: 13px; }
input[type=text], input[type=password], input[type=search], input[type=number] {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 9px 10px; width: 100%; }
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
legend { font-weight: 500; font-size: 13px; margin-bottom: 4px; padding: 0; }
label.opcao { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; }
label.opcao input { accent-color: var(--accent); width: 16px; height: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 500; cursor: pointer; border-radius: 7px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 8px 14px; text-decoration: none; }
.btn:hover { border-color: var(--accent); }
.btn.primario { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primario:disabled { opacity: .45; cursor: not-allowed; }
.btn.largo { width: 100%; padding: 10px 14px; }
.alerta { border-radius: 8px; padding: 10px 12px; font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; }
.alerta.erro { background: var(--danger-soft); color: var(--danger); }
.alerta.ok { background: var(--ok-soft); color: var(--ok); }
.credenciais { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink); }
.credenciais code { font-size: 15px; background: var(--panel); padding: 2px 6px; border-radius: 4px; user-select: all; }

/* login */
.tela-login { min-height: 100vh; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.cartao.login { width: 100%; max-width: 380px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.login-marca { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); font-size: 13px; letter-spacing: .02em; }

/* início */
.grade-ferramentas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.ferramenta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.ferramenta:hover { border-color: var(--accent); }
.ferramenta-sigla { font-family: var(--font-data); font-weight: 500; font-size: 12px; color: var(--accent); background: var(--accent-soft);
  border-radius: 8px; width: 48px; height: 48px; display: grid; place-items: center; }
.ferramenta-txt { display: flex; flex-direction: column; gap: 2px; }
.ferramenta-txt strong { font-size: 15px; }
.ferramenta-txt span { color: var(--muted); font-size: 13px; }
.seta { color: var(--muted); font-size: 18px; }
.bloco-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); }

/* usuários */
.duas-colunas { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .duas-colunas { grid-template-columns: minmax(0, 1fr); } }
.lista-usuarios { display: flex; flex-direction: column; }
details.usuario { border-bottom: 1px solid var(--line); }
details.usuario:last-child { border-bottom: 0; }
details.usuario summary { list-style: none; cursor: pointer; padding: 11px 14px; display: flex; flex-direction: column; gap: 3px; }
details.usuario summary::-webkit-details-marker { display: none; }
details.usuario[open] summary, details.usuario summary:hover { background: var(--accent-soft); }
details.usuario.inativo .u-nome { color: var(--muted); text-decoration: line-through; }
.u-nome { font-weight: 600; }
.u-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; }
.u-ultimo { color: var(--muted); font-size: 12px; }
.selo { display: inline-block; font-size: 11px; font-family: var(--font-data); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; font-weight: 500; }
.selo.forte { color: var(--accent); border-color: var(--accent); }
.selo.alerta-selo { color: var(--danger); border-color: var(--danger); }
.selo.gerente { color: var(--orange, #d9600f); border-color: var(--orange, #d9600f); }
.form-usuario { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.tabela-rolagem { overflow-x: auto; }
.tabela { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabela th, .tabela td { text-align: left; padding: 8px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabela th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.tabela td.num { font-family: var(--font-data); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabela td.detalhe { color: var(--muted); max-width: 520px; overflow-wrap: anywhere; }
.vazio-td { color: var(--muted); text-align: center; padding: 24px; }

/* gerador de etiquetas */
.ferr-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.spec { font-family: var(--font-data); font-size: 12px; color: var(--muted); }
.grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.panel-h h2 { font-size: 13px; }
.count { font-family: var(--font-data); font-size: 12px; color: var(--muted); }
.search { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.list { max-height: 68vh; overflow-y: auto; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 64px auto; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--accent-soft); }
.name { font-weight: 500; overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--font-data); font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.row input[type=number], .qrow input[type=number] { padding: 6px; text-align: center; font-family: var(--font-data); }
.panel button { font: inherit; cursor: pointer; border-radius: 7px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 7px 12px; font-weight: 500; }
.panel button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.panel button.primary:disabled { opacity: .45; cursor: not-allowed; }
.panel button.ghost { border-color: transparent; background: transparent; color: var(--muted); padding: 4px 8px; }
.panel button.ghost:hover { color: var(--danger); }
.badge { display: inline-block; font-size: 11px; font-family: var(--font-data); color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 0 7px; margin-left: 6px; vertical-align: 1px; }
.empty { padding: 26px 14px; color: var(--muted); text-align: center; }
.qrow { display: grid; grid-template-columns: minmax(0, 1fr) 70px auto; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.qrow.sel { background: var(--accent-soft); }
.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
@media (max-width: 860px) { .side { position: static; } }
.queue { max-height: 34vh; overflow-y: auto; }
.preview { padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.paper { width: 100%; max-width: 360px; aspect-ratio: 60 / 40; background: var(--label-paper); border-radius: 4px; box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(0,0,0,.08); }
.paper svg { width: 100%; height: 100%; display: block; }
.cap { font-size: 12px; color: var(--muted); text-align: center; }
.foot { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
.foot label { font-size: 12px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.total { font-family: var(--font-data); font-size: 13px; }
.total b { font-size: 18px; }
.msg { font-size: 12.5px; min-height: 1.2em; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* gerador v2: busca por SKU */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.busca-sku { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 14px; border-bottom: 1px solid var(--line); }
.busca-sku input { font-family: var(--font-data); font-size: 16px; padding: 10px 12px; }
.busca-sku button { padding: 0 18px; }
.status-busca { padding: 0 14px; font-size: 13.5px; }
.status-busca:empty { display: none; }
.status-busca { margin: 12px 14px 0; padding: 10px 12px; border-radius: 8px; }
.status-busca.carregando { background: var(--accent-soft); color: var(--accent); }
.status-busca.erro { background: var(--danger-soft); color: var(--danger); }
.status-busca.aviso { background: #fff4d6; color: #7a5a00; }
.status-busca ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.sugestoes { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.sug { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; text-align: left; align-items: baseline; }
.sug:hover { border-color: var(--accent) !important; background: var(--accent-soft) !important; }
.mono { font-family: var(--font-data); font-size: 12.5px; }
.ficha { margin: 0; padding: 14px; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 12px; }
.ficha dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.ficha dd { margin: 0; overflow-wrap: anywhere; }
.bruto { padding: 0 14px 14px; }
.bruto summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.bruto pre { font-size: 11px; background: var(--bg); border-radius: 6px; padding: 10px; max-height: 320px; overflow: auto; white-space: pre-wrap; }
.linha-campos { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
.panel button.largo { width: 100%; padding: 10px 14px; font-size: 15px; }

/* conferência de estoque */
.est-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .est-grid { grid-template-columns: minmax(0, 1fr); } }
.est-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.est-form { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.est-form input[type=file] { font: inherit; font-size: 13px; padding: 8px; border: 1px dashed var(--line); border-radius: 7px; background: var(--bg); color: var(--ink); width: 100%; }
.est-form input[type=date] { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; width: 100%; }
.est-form label.opcao { flex-wrap: wrap; }
.historico { max-height: 52vh; overflow-y: auto; }
.hist-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--line); }
.hist-item:last-child { border-bottom: 0; }
.hist-item.sel { background: var(--accent-soft); }
.panel .hist-abrir { border: 0; background: transparent; text-align: left; padding: 10px 14px; border-radius: 0; display: flex; flex-direction: column; gap: 2px; width: 100%; }
.panel .hist-abrir:hover { background: var(--accent-soft); }
.empty.grande { padding: 48px 20px; }
.est-comp { margin: 0; padding: 12px 14px; }
.rel-corpo { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.rel-num { font-family: var(--font-data); font-size: 13px; color: var(--muted); }
.rel-num b { font-size: 26px; color: var(--ink); margin-right: 4px; }
.alerta-box { background: var(--danger-soft); color: var(--ink); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.alerta-box strong { color: var(--danger); }
.alerta-box ul, .parados ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.faixas { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.faixa { display: inline-flex; align-items: center; gap: 6px; }
.faixa i { width: 10px; height: 10px; border-radius: 2px; background: var(--cor); display: inline-block; }
.parados { font-size: 13px; }
.parados summary { cursor: pointer; color: var(--muted); }

/* página inicial v2 — marca */
.inicio-h { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; }
.inicio-h h1 { font-size: 30px; }
.inicio-h h1 span { color: var(--accent); }
.atalhos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.atalho { --cor: var(--brand-teal); --cor-soft: var(--accent-soft); --cor-txt: var(--accent);
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 168px; padding: 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.atalho.laranja { --cor: var(--brand-orange); --cor-soft: var(--orange-soft); --cor-txt: var(--orange); }
.atalho::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--cor); }
.atalho:hover { transform: translateY(-2px); border-color: var(--cor); box-shadow: 0 10px 24px rgba(10, 60, 70, .10); }
.atalho-icone { width: 52px; height: 52px; border-radius: 14px; background: var(--cor-soft); color: var(--cor-txt); display: grid; place-items: center; }
.atalho-icone svg { width: 28px; height: 28px; }
.atalho-rodape { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.atalho-nome { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.2; }
.atalho-seta { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: var(--cor-soft); color: var(--cor-txt); font-size: 16px; flex: none; transition: background .15s, color .15s; }
.atalho:hover .atalho-seta { background: var(--cor); color: #fff; }
.admin-faixa { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 18px; border-radius: 12px; background: var(--panel); border: 1px dashed var(--line); }
.admin-faixa p { margin: 0; color: var(--muted); }
.login-logo { width: 190px; height: auto; display: block; margin-bottom: 4px; }
@media (prefers-reduced-motion: reduce) { .atalho, .atalho:hover { transform: none; transition: none; } }

/* localização de produtos */
.loc-resultado { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 14px; }
.loc-foto, .promo-foto { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; }
.loc-foto img, .promo-foto img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sem-foto { color: var(--muted); width: 40%; }
.sem-foto svg { width: 100%; height: auto; display: block; }
.loc-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.loc-rotulo { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.loc-valor { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1.15; overflow-wrap: anywhere; }
.loc-valor.vazio { color: var(--muted); font-size: 18px; }
.loc-nome { font-weight: 600; overflow-wrap: anywhere; }
.promo-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px; }
.panel .ghost-btn { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.panel .ghost-btn:hover { border-color: var(--accent); }
.progresso { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; min-width: 0; font-size: 12.5px; color: var(--muted); }
.progresso-barra { flex: 0 0 120px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progresso-barra i { display: block; height: 100%; width: 2%; background: linear-gradient(90deg, var(--brand-teal), var(--brand-orange)); transition: width .3s; }
.promo-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 14px; padding: 0 14px 16px; }
.promo-grade .empty { grid-column: 1 / -1; }
.promo-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.promo-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.promo-txt strong { font-size: 13.5px; line-height: 1.3; overflow-wrap: anywhere; }
@media (max-width: 480px) { .loc-resultado { grid-template-columns: 88px minmax(0, 1fr); } .loc-valor { font-size: 22px; } }

/* produtos em promoção v2: lista */
.promo-barra #filtro { flex: 1 1 260px; min-width: 0; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px; }
.panel .ghost-btn { padding: 9px 14px; }
.promo-barra + .progresso { padding: 0 14px 12px; }
.promo-cab, .promo-linha { display: grid; grid-template-columns: 64px 140px minmax(0, 1fr); gap: 16px; align-items: center; padding: 0 14px; }
.promo-cab { padding-top: 8px; padding-bottom: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--muted); }
.promo-lista { list-style: none; margin: 0; padding: 0; }
.promo-linha { padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.promo-linha:last-child { border-bottom: 0; }
.promo-linha:hover { background: var(--accent-soft); }
.promo-linha .promo-foto { width: 64px; height: 64px; border-radius: 8px; }
.promo-linha .sem-foto { width: 45%; }
.promo-sku { font-size: 13px; color: var(--accent); font-weight: 500; overflow-wrap: anywhere; }
.promo-nome { font-weight: 600; overflow-wrap: anywhere; }
.promo-lista .empty { padding: 28px 14px; }
@media (max-width: 560px) {
  .promo-cab { display: none; }
  .promo-linha { grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; }
  .promo-linha .promo-foto { width: 56px; height: 56px; grid-row: span 2; }
  .promo-sku { font-size: 12px; }
}

/* produtos em promoção v3: coluna de saídas */
.promo-cab, .promo-linha { grid-template-columns: 64px 140px minmax(0, 1fr) 110px; }
.promo-cab .dir { text-align: right; }
.promo-saidas { text-align: right; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--orange); display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.promo-saidas small { font-family: var(--font-ui); font-weight: 600; font-size: 11px; color: var(--muted); }
.promo-saidas.zero { color: var(--muted); }
@media (max-width: 560px) {
  .promo-linha { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .promo-linha .promo-foto { grid-row: span 2; }
  .promo-saidas { grid-row: span 2; grid-column: 3; font-size: 18px; }
  .promo-sku { grid-column: 2; } .promo-nome { grid-column: 2; }
}

/* faixa de status da Jodda (só administrador) */
.jodda-faixa { margin: 0 14px 12px; padding: 10px 12px; border-radius: 8px; background: var(--bg); border: 1px dashed var(--line); font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.jodda-faixa .btn { padding: 5px 12px; font-size: 13px; }
.ok-ponto, .aviso-ponto { width: 8px; height: 8px; border-radius: 99px; display: inline-block; background: var(--ok); }
.aviso-ponto { background: var(--brand-orange); }

/* produtos em promoção v4: ações, cancelar, engrenagem e diagnóstico */
.promo-h { align-items: flex-start; }
.promo-h .spec { margin: 6px 0 0; }
.engrenagem { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.engrenagem:hover, .engrenagem[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
.engrenagem svg { width: 20px; height: 20px; }
.config-corpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; padding: 14px; }
@media (max-width: 760px) { .config-corpo { grid-template-columns: minmax(0, 1fr); } }
.config-bloco { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.config-bloco .nota { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.diag-form { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.diag-form input { flex: 1 1 200px; min-width: 0; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; }
.diag-saida { width: 100%; max-height: 360px; overflow: auto; margin: 0; font-size: 11.5px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.promo-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.panel .cancelar-btn { background: transparent; color: var(--danger); border: 1px solid var(--danger); padding: 9px 14px; }
.panel .cancelar-btn:hover { background: var(--danger-soft); }
.panel button:disabled { opacity: .5; cursor: not-allowed; }
.aviso-saidas { margin: 0 14px 12px; padding: 8px 12px; border-radius: 8px; background: var(--orange-soft); color: var(--ink); font-size: 13px; }

/* ---------- Produtos em Promoção: sugestão de preço ---------- */
.promo-cab, .promo-linha { grid-template-columns: 64px 140px minmax(0, 1fr) 170px 110px; }
.promo-linha.clic { cursor: pointer; }
.promo-linha.clic:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pr-preco { font-size: 12.5px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.pr-sem { color: var(--muted); font-weight: 500; }
.pr-aviso { margin: 0 14px 12px; font-size: 12.5px; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 9px 14px; }
.gav-fundo { position: fixed; inset: 0; background: rgba(20,42,48,.28); z-index: 40; }
.pr-det { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--panel); z-index: 41; box-shadow: -12px 0 40px rgba(20,42,48,.16); display: flex; flex-direction: column; }
.pr-det[hidden], .gav-fundo[hidden] { display: none; }
.pr-det header { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.pr-det header .promo-foto { width: 64px; height: 64px; flex: none; border-radius: 8px; }
.pr-det header .sem-foto { width: 45%; }
.pr-det header h2 { margin: 0; text-transform: none; letter-spacing: 0; color: var(--ink); font-family: var(--font-display); font-size: 17px; font-weight: 800; }
.pr-det header .x { margin-left: auto; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: 20px; flex: none; cursor: pointer; color: var(--ink); }
.pr-c { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.pr-base { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pr-base div { background: var(--bg); border-radius: 10px; padding: 9px 11px; display: flex; flex-direction: column; min-width: 0; }
.pr-base .l, .pr-card .l { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pr-base b { font-family: var(--font-display); font-size: 16px; }
.pr-base small { font-size: 11px; color: var(--muted); }
.pr-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pr-cards .empty { grid-column: 1 / -1; margin: 0; }
.pr-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pr-card .h { display: flex; align-items: center; gap: 8px; } .pr-card .h img { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; }
.pr-card .h b { font-size: 14px; } .pr-card .h small { color: var(--muted); font-size: 12px; }
.pr-card .min { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--accent); line-height: 1.1; }
.pr-card .sug { font-size: 12.5px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; } .pr-card .sug b { color: var(--orange); font-size: 14px; } .pr-card .sug em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.pr-card table { width: 100%; font-size: 12px; border-collapse: collapse; margin-top: 2px; }
.pr-card td { padding: 3px 0; border-top: 1px dashed var(--line); color: var(--muted); } .pr-card td:last-child { text-align: right; color: var(--ink); font-family: var(--font-data); }
.pr-card tr.m td { color: var(--accent); font-weight: 700; }
.pr-nota { margin: 0; font-size: 12px; color: var(--muted); }
.link-btn { all: unset; cursor: pointer; color: var(--accent); font-weight: 600; text-decoration: underline; }
.pr-cfg { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.pr-cfg input { width: 60px; font: inherit; font-size: 13px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--ink); text-align: right; }
.pr-cfg small { flex-basis: 100%; }
@media (max-width: 900px) {
  .promo-cab { display: none; }
  .promo-linha { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 2px 12px; }
  .promo-linha .promo-foto { width: 56px; height: 56px; grid-row: span 3; }
  .promo-sku, .promo-nome, .pr-preco { grid-column: 2; }
  .promo-saidas { grid-row: 1 / span 3; grid-column: 3; font-size: 18px; }
  .pr-base { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .pr-cards { grid-template-columns: 1fr; } }

/* ===== Etiquetas de Localização 116 × 40 mm ===== */
.el-abas { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; width: max-content; max-width: 100%; margin-top: 12px; }
.el-abas a { padding: 8px 14px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.el-abas a:hover { color: var(--ink); }
.el-abas a.on { background: var(--accent); color: #fff; }
.el-abas + .grid { margin-top: 16px; }
.el-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 16px; align-items: start; margin-top: 16px; }
.el-ph { padding: 14px 14px 6px; display: flex; gap: 8px; }
.el-ph input { flex: 1; min-width: 0; font: inherit; font-size: 15px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; font-family: var(--font-data); background: var(--panel); color: var(--ink); }
.el-dica { margin: 0 14px 10px; font-size: 12px; color: var(--muted); }
.el-sugs { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.el-sug { font: inherit; font-family: var(--font-data); font-size: 12px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); cursor: pointer; }
.el-fila { list-style: none; margin: 10px 0 0; padding: 0; max-height: 62vh; overflow: auto; }
.el-fila li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 60px 28px; gap: 10px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.el-fila li:hover { background: var(--bg); }
.el-fila li.on { background: var(--bg); box-shadow: inset 3px 0 0 var(--accent); }
.el-mini { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; }
.el-mini img { width: 100%; height: 100%; object-fit: contain; }
.el-mini em { font-style: normal; font-size: 9px; color: var(--muted); text-align: center; line-height: 1.1; }
.el-carr { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: elgira .8s linear infinite; }
@keyframes elgira { to { transform: rotate(360deg); } }
.el-fila .t { display: flex; flex-direction: column; min-width: 0; }
.el-fila .t b { font-family: var(--font-data); font-size: 12.5px; }
.el-fila .t > span { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-fila .t small { font-size: 11.5px; color: var(--muted); }
.el-jcm { font-family: var(--font-ui); font-size: 10px; font-weight: 700; color: var(--orange); background: var(--orange-soft); border-radius: 4px; padding: 0 5px; }
.el-semloc { color: var(--orange); font-weight: 600; }
.el-fila input { width: 100%; font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 7px; padding: 5px 6px; text-align: center; background: var(--panel); color: var(--ink); }
.el-fila .x { all: unset; cursor: pointer; color: var(--muted); font-size: 18px; text-align: center; line-height: 1; padding: 4px 0; }
.el-fila .x:hover { color: var(--danger); }
.el-vazia { padding: 22px 14px; color: var(--muted); font-size: 13px; text-align: center; border-top: 1px solid var(--line); margin-top: 10px; }
.el-vazia[hidden] { display: none; }
.el-acoes { padding: 10px 14px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.el-acoes button { all: unset; cursor: pointer; font-size: 12.5px; color: var(--muted); text-decoration: underline; }
.el-acoes button:hover { color: var(--danger); }
.el-prev { padding: 22px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; overflow-x: auto; background: repeating-linear-gradient(45deg, var(--bg), var(--bg) 8px, transparent 8px, transparent 16px); }
.el-prev > div:first-child { max-width: 100%; overflow-x: auto; }
.el-cap { font-size: 12px; color: var(--muted); font-family: var(--font-data); }
.el-foot { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); }
.el-aviso { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
/* a etiqueta em tamanho real (as mesmas medidas do PDF) */
.el-etq { width: 116mm; height: 40mm; box-sizing: border-box; background: #fff; color: #000; border: 1px solid #222; display: grid; grid-template-columns: minmax(0, 1fr) 36mm; gap: 3mm; padding: 2.5mm 3mm 2.5mm 4mm; box-shadow: 0 6px 18px rgba(0,0,0,.12); font-family: Helvetica, Arial, sans-serif; }
.el-etq.vazia { display: grid; place-items: center; grid-template-columns: 1fr; color: #888; font-size: 13px; border-style: dashed; box-shadow: none; }
.el-txt { display: flex; flex-direction: column; justify-content: center; gap: 1.4mm; min-width: 0; }
.el-sku { font-weight: 700; font-size: 15.5pt; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-nome { font-weight: 700; font-size: 12.5pt; line-height: 1.18; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.el-loc { margin-top: .6mm; font-size: 6.5pt; font-weight: 700; letter-spacing: .06em; color: #3c3c3c; display: flex; align-items: center; gap: 1.6mm; }
.el-loc b { font-family: "Courier New", monospace; font-size: 8pt; letter-spacing: 0; border: .3mm solid #000; border-radius: .8mm; padding: .2mm 1.3mm; color: #000; }
.el-img { display: grid; place-items: center; min-width: 0; }
.el-img img { max-width: 100%; max-height: 35mm; object-fit: contain; }
@media (max-width: 1100px) { .el-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .el-fila li { grid-template-columns: 40px minmax(0, 1fr) 52px 24px; gap: 8px; } .el-mini { width: 40px; height: 40px; } .el-ph { flex-wrap: wrap; } .el-ph button { width: 100%; } }

/* ===== Descrição de Produtos ===== */
.dp-busca { display: flex; gap: 8px; padding: 14px; }
.dp-busca input { flex: 1; min-width: 0; font: inherit; font-family: var(--font-data); font-size: 15px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; background: var(--panel); color: var(--ink); }
#dpStatus:empty { display: none; }
#dpStatus { margin: 0 14px 12px; }
.dp-prod { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; border-top: 1px solid var(--line); }
.dp-prod[hidden], #dpArea[hidden] { display: none; }
.dp-foto { width: 84px; height: 84px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.dp-foto img { width: 100%; height: 100%; object-fit: contain; }
.dp-foto em { font-style: normal; font-size: 11px; color: var(--muted); }
.dp-prod h2 { margin: 0; font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.dp-prod .sku { font-family: var(--font-data); font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.dp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.dp-tags:empty { display: none; }
.dp-tag { font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 10px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.dp-tag.alerta { background: var(--orange-soft); border-color: transparent; color: var(--orange); }
.dp-padroes { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.dp-padroes button { font: inherit; font-size: 13.5px; font-weight: 600; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.dp-padroes button:hover { border-color: var(--accent); }
.dp-padroes button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.dp-cols { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.dp-txt { margin: 0; padding: 16px 18px; white-space: pre-wrap; word-break: break-word; font-family: var(--font-ui); font-size: 13.5px; line-height: 1.55; color: var(--ink); min-height: 120px; }
.dp-txt.velho { color: var(--muted); font-size: 12.5px; max-height: 640px; overflow: auto; }
.dp-ia { background: color-mix(in srgb, var(--accent) 9%, transparent); border-left: 3px solid var(--accent); padding: 2px 8px; margin: 0 -8px; display: block; border-radius: 4px; }
.dp-espera { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.dp-acoes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dp-btn2 { font: inherit; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; color: var(--ink); }
.dp-btn2[hidden] { display: none; }
.dp-btn2:disabled { opacity: .5; cursor: default; }
#dpCopiar.ok { background: #1f7a4d; border-color: #1f7a4d; }
.dp-rod { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.dp-leg { display: inline-flex; align-items: center; gap: 6px; }
.dp-leg i { width: 12px; height: 12px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 20%, transparent); border-left: 3px solid var(--accent); }
.dp-cfg { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; padding: 14px; }
.dp-cfg label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.dp-cfg label small { font-weight: 500; color: var(--muted); font-family: var(--font-data); font-size: 11.5px; }
.dp-cfg input, .dp-cfg select { font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: var(--panel); color: var(--ink); font-weight: 400; }
.dp-cfg-nota { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--muted); }
.dp-cfg .msg { grid-column: 1 / -1; }
@media (max-width: 1000px) { .dp-cols { grid-template-columns: minmax(0, 1fr); } .dp-cfg { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .dp-prod { grid-template-columns: 64px minmax(0, 1fr); } .dp-foto { width: 64px; height: 64px; } .dp-busca { flex-wrap: wrap; } .dp-busca button { width: 100%; } }
.dp-falha { grid-column: 1 / -1; font-size: 12.5px; }
.dp-falha summary { cursor: pointer; color: var(--orange); font-weight: 600; }
.dp-falha p { margin: 6px 0; color: var(--muted); }
.dp-falha pre { margin: 0; white-space: pre-wrap; word-break: break-word; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px; max-height: 260px; overflow: auto; font-size: 12px; }

/* ===== Consulta de SKU ===== */
.cs-busca { display: flex; gap: 8px; padding: 14px; }
.cs-busca input { flex: 1; min-width: 0; font: inherit; font-family: var(--font-data); font-size: 15px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; background: var(--panel); color: var(--ink); }
#csStatus:empty { display: none; }
#csStatus { margin: 0 14px 12px; }
.cs-prod { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px; border-top: 1px solid var(--line); }
.cs-prod[hidden], #csArea[hidden], .cs-prog[hidden] { display: none; }
.cs-prod .dp-foto { width: 76px; height: 76px; }
.cs-prod h2 { margin: 0; font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.cs-prod .sku { font-family: var(--font-data); font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cs-hora { font-size: 12px; color: var(--muted); text-align: right; }
.cs-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.cs-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-kpi small { font-size: 12px; color: var(--muted); font-weight: 600; }
.cs-kpi b { font-family: var(--font-display); font-size: 28px; line-height: 1.1; }
.cs-kpi span { font-size: 12px; color: var(--muted); }
.cs-kpi.cs-tot { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.cs-kpi.aberto b { color: var(--orange); }
.cs-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); gap: 16px; align-items: start; }
.cs-rolo { overflow-x: auto; }
.cs-tab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cs-tab th { text-align: left; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 9px 14px; background: var(--bg); font-weight: 700; white-space: nowrap; }
.cs-tab td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.cs-tab .n { text-align: right; font-family: var(--font-data); font-weight: 600; white-space: nowrap; }
.cs-tab tr.desc td { color: var(--muted); }
.cs-tab tfoot td { font-weight: 700; background: var(--bg); }
.cs-tab .cs-vazio { color: var(--muted); text-align: center; padding: 18px; }
.cs-emp { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 5px; padding: 1px 7px; white-space: nowrap; }
.cs-emp.FMM { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.cs-emp.JCM { background: var(--orange-soft); color: var(--orange); }
.cs-emp.outra { background: var(--bg); color: var(--muted); }
.cs-ped a { font-family: var(--font-data); font-weight: 600; }
.cs-ec { display: block; font-size: 11px; color: var(--muted); font-family: var(--font-data); }
.cs-nota { margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.cs-filtro { display: flex; gap: 4px; flex-wrap: wrap; }
.cs-filtro button { font: inherit; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.cs-filtro button.on { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.cs-prog { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
@media (max-width: 1100px) { .cs-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 800px) { .cs-kpis { grid-template-columns: 1fr 1fr; } .cs-prod { grid-template-columns: 64px minmax(0, 1fr); } .cs-prod .dp-foto { width: 64px; height: 64px; } .cs-hora { grid-column: 1 / -1; text-align: left; } }
@media (max-width: 600px) { .cs-busca { flex-wrap: wrap; } .cs-busca button { width: 100%; } }
.cs-kpi b.neg { color: var(--danger); }
.cs-tab tr.sub td { color: var(--muted); font-weight: 600; }
.cs-tab tr.sub td.n { color: var(--danger); }
.cs-tab tr.sub small { font-weight: 500; }
.cs-tab tr.disp td { font-weight: 800; background: color-mix(in srgb, var(--accent) 9%, transparent); border-top: 2px solid var(--accent); }
.cs-tab tr.disp td.n { color: var(--accent); font-size: 15px; }
.cs-kpi.fis label { font-size: 12px; color: var(--muted); font-weight: 600; }
.cs-kpi.fis input { font: inherit; font-family: var(--font-display); font-size: 24px; font-weight: 800; width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 3px 10px; background: var(--bg); color: var(--ink); margin: 2px 0; }
.cs-kpi.fis input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.cs-kpi.sug { border-color: #1f7a4d; box-shadow: inset 4px 0 0 #1f7a4d; }
.cs-kpi.sug b { color: #1f7a4d; }
.cs-kpi.sug b.neg { color: var(--danger); }
.cs-sub-h { padding: 10px 14px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-top: 1px solid var(--line); background: var(--bg); }
.cs-vazio2 { margin: 0; padding: 14px; color: var(--muted); font-size: 13px; text-align: center; }
.cs-kpi.fis input:disabled { opacity: .55; cursor: not-allowed; }
.cs-full { background: var(--orange-soft); border: 1px solid color-mix(in srgb, var(--orange) 45%, transparent); border-radius: 14px; margin: 0 0 16px; overflow: hidden; }
.cs-full[hidden] { display: none; }
.cs-full-h { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.cs-full-h h2 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--orange); }
.cs-full-h span { font-size: 12.5px; color: var(--ink); opacity: .8; }
.cs-full-l { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 16px; background: var(--panel); border-top: 1px solid color-mix(in srgb, var(--orange) 25%, transparent); }
.cs-full-p { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13.5px; }
.cs-full-p a { font-family: var(--font-data); font-weight: 700; }
.cs-full-p span { color: var(--muted); font-size: 12.5px; }
.cs-full-sit { background: var(--bg); border-radius: 5px; padding: 1px 7px; font-size: 11px !important; font-weight: 700; }
.cs-full-q { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.cs-full-op { display: flex; gap: 6px; }
.cs-full-op label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--panel); white-space: nowrap; }
.cs-full-op label.on { border-color: #1f7a4d; background: color-mix(in srgb, #1f7a4d 10%, transparent); color: #1f7a4d; }
.cs-full-op label.on.nao { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.cs-full-op label { flex-direction: row; }
.cs-full-op input[type=radio] { display: inline-block; width: 16px; height: 16px; margin: 0; padding: 0; flex: none; accent-color: var(--accent); }
@media (max-width: 800px) { .cs-full-l { grid-template-columns: minmax(0, 1fr) auto; } .cs-full-op { grid-column: 1 / -1; flex-wrap: wrap; } }
.cs-kpi.sug { cursor: pointer; position: relative; }
.cs-kpi.sug:hover, .cs-kpi.sug:focus-visible { box-shadow: inset 4px 0 0 #1f7a4d, 0 0 0 3px color-mix(in srgb, #1f7a4d 18%, transparent); outline: none; }
.cs-conta { display: none; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12.5px; }
.cs-kpi.sug.aberto .cs-conta { display: block; }
.cs-kpi.sug.aberto #kSugS { display: none; }
.cs-conta > div { display: grid; grid-template-columns: 14px auto minmax(0, 1fr); gap: 6px; align-items: baseline; padding: 2px 0; color: var(--muted); }
.cs-conta b { font-family: var(--font-data); color: var(--ink); text-align: right; min-width: 52px; }
.cs-conta .op { color: var(--muted); font-weight: 700; text-align: center; }
.cs-conta .tot { border-top: 1px solid var(--line); margin-top: 3px; padding-top: 5px; }
.cs-conta .fim { border-top: 2px solid #1f7a4d; margin-top: 3px; padding-top: 5px; }
.cs-conta .fim b, .cs-conta .fim span { color: #1f7a4d; font-weight: 800; }
.cs-kpis:has(.sug.aberto) { align-items: start; }
.cs-kpi .cs-conta b { font-family: var(--font-data); font-size: 13px; line-height: 1.4; color: var(--ink); font-weight: 700; }
.cs-kpi .cs-conta .fim b { color: #1f7a4d; font-size: 14px; }
.cs-kpi.sug { background: var(--panel); }
.el-abas + .est-grid, .el-abas + .panel { margin-top: 16px; }

/* ===== Conversor de Pedido Fulfillment ===== */
.fc-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.fc-passo { display: flex; align-items: center; gap: 10px; padding: 14px 16px 6px; font-weight: 700; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.fc-passo i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; }
.fc-contas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px 16px 16px; }
.fc-conta { position: relative; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; background: var(--panel); margin: 0; }
.fc-conta input { position: absolute; opacity: 0; pointer-events: none; }
.fc-conta b { font-family: var(--font-display); font-size: 18px; }
.fc-conta span { font-size: 12px; color: var(--muted); font-family: var(--font-data); }
.fc-conta.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.fc-conta:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.fc-drop { flex-direction: row; margin: 8px 16px 16px; border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 14px; background: var(--bg); cursor: pointer; font-weight: 400; }
.fc-drop.arrastando { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.fc-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fc-drop:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.fc-drop .pdf { width: 42px; height: 50px; border-radius: 6px; background: #c0392b; color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; flex: none; }
.fc-drop b { display: block; font-size: 14px; word-break: break-word; }
.fc-drop small { color: var(--muted); font-size: 12px; }
.fc-msg { margin: 0 16px 16px; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 13.5px; line-height: 1.45; }
.fc-msg[hidden] { display: none; }
.fc-msg.ok { background: color-mix(in srgb, #1f7a4d 10%, transparent); color: #1f7a4d; }
.fc-msg.aviso { background: var(--orange-soft); color: var(--orange); }
.fc-msg.erro { background: var(--danger-soft); color: var(--danger); }
.fc-fixos { margin: 0; padding: 12px 16px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 12.5px; border-top: 1px solid var(--line); }
.fc-fixos dt { color: var(--muted); }
.fc-fixos dd { margin: 0; font-weight: 600; }
.fc-baixar { padding: 14px 16px; border-top: 1px solid var(--line); }
.fc-rolo { max-height: 70vh; overflow: auto; }
.fc-tab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fc-tab th { position: sticky; top: 0; text-align: left; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 9px 14px; background: var(--bg); }
.fc-tab td { padding: 8px 14px; border-top: 1px solid var(--line); }
.fc-tab .sku { font-family: var(--font-data); font-weight: 700; white-space: nowrap; }
.fc-tab .n { text-align: right; font-family: var(--font-data); font-weight: 700; }
.fc-tab .nome { color: var(--muted); font-size: 12.5px; }
.fc-tab tr.erro td { background: var(--danger-soft); color: var(--danger); }
.fc-tab .fc-vazio { text-align: center; color: var(--muted); padding: 24px; }
@media (max-width: 900px) { .fc-grid { grid-template-columns: minmax(0, 1fr); } }

/* ===== Conciliação Bancária (a tela roda num quadro, ocupando o resto da janela) ===== */
.conc-quadro { height: calc(100vh - 58px); height: calc(100dvh - 58px); }
.conc-quadro iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--bg); }
/* Descrição de Produtos: bullet points da Amazon */
.dp-bullets { margin-top: 16px; }
.dp-blista { list-style: none; margin: 0; padding: 12px 18px; display: flex; flex-direction: column; gap: 10px; counter-reset: b; }
.dp-blista li { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 14px; line-height: 1.55; }
.dp-blista li.dp-espera { background: none; border: 0; padding: 6px 0; }
.dp-btxt { flex: 1; }
.dp-btxt b { font-weight: 800; }
.dp-bcp { flex: none; padding: 5px 12px; font-size: 12px; }
.dp-btn2.ok, .dp-bcp.ok { color: #1f7a4d; border-color: #1f7a4d; }
.est-explica { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.est-explica b { color: var(--ink); }
.est-prog { display: flex; flex-direction: column; gap: 6px; }
.est-barra { height: 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.est-barra span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s; }
.est-prog-l { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.est-prog .dica { margin: 0; }
/* lista de conferência */
.btn-lista { display: flex; justify-content: center; align-items: baseline; gap: 10px; width: 100%; padding: 12px 16px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
.btn-lista span { font-weight: 400; font-size: 12.5px; opacity: .85; }
.btn-lista:hover { filter: brightness(1.06); }
.cl-voltar { display: inline-block; margin-bottom: 10px; font-size: 13.5px; color: var(--muted); text-decoration: none; }
.cl-voltar:hover { color: var(--accent); }
.cl-barra { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.cl-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.cl-info { font-size: 13.5px; color: var(--muted); }
.cl-info b { color: var(--ink); }
.cl-rolo { overflow-x: auto; }
.cl-tab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cl-tab th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg); white-space: nowrap; }
.cl-tab td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cl-tab .r { text-align: right; }
.cl-tab td.n { color: var(--muted); width: 36px; text-align: center; }
.cl-tab .mono { font-family: var(--font-data); font-size: 12.5px; }
.cl-sku { color: var(--muted); margin-top: 2px; }
.cl-tab tr.cl-faixa td { background: color-mix(in srgb, var(--cor) 12%, var(--panel)); font-weight: 700; color: color-mix(in srgb, var(--cor) 75%, #000); border-left: 4px solid var(--cor); }
.cl-tab tr.cl-faixa span { float: right; font-weight: 600; }
.cl-in { width: 82px; text-align: right; font: inherit; font-family: var(--font-data); padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.cl-in:focus, .cl-obs:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.cl-in.ruim { border-color: var(--danger); }
.cl-obs { width: 100%; min-width: 140px; font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.cl-ajc { position: relative; white-space: nowrap; }
.panel button.cl-aj { border: 1px solid #1f7a4d; background: color-mix(in srgb, #1f7a4d 9%, transparent); color: #1f7a4d; font: inherit; font-weight: 700; font-family: var(--font-data); padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.panel button.cl-aj.neg { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.panel button.cl-aj.zero { border-color: var(--line); background: var(--bg); color: var(--muted); }
.cl-conta { position: absolute; right: 8px; top: 40px; z-index: 5; min-width: 320px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgb(0 0 0 / .12); padding: 10px 12px; }
.cl-conta[hidden] { display: none; }
.cl-cinza { color: var(--muted); }
.cl-erro { color: var(--danger); font-size: 12.5px; }
.cl-aviso { color: var(--orange); font-size: 12.5px; font-weight: 600; }
.cl-fulls { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.cl-full { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.cl-full .cs-full-op label { padding: 4px 10px; font-size: 12px; }
.cl-nota { font-size: 12.5px; color: var(--muted); margin: 10px 2px; }
.cl-tab:not(.preencher) td { vertical-align: middle; }
.cl-conta:not([hidden]) { display: block; margin-top: 0; border-top: 1px solid var(--line); }
.cl-barra .msg { margin: 0; } .cl-barra .msg:empty { display: none; }
.cl-lista-panel { overflow: hidden; }
.cl-tab tr.cl-igual td { background: #fff8db; }
.cl-tab tr.cl-igual td:first-child { box-shadow: inset 4px 0 0 #e0b100; }
.cl-igual-msg { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #8a6a00; }
.cl-igual-txt { color: #8a6a00; font-weight: 600; }
/* Produtos em Promoção: coluna de estoque */
.promo-cab, .promo-linha { grid-template-columns: 64px 140px minmax(0, 1fr) 170px 90px 110px; }
.promo-est { text-align: right; font-family: var(--font-data); font-weight: 600; font-size: 15px; display: flex; flex-direction: column; align-items: flex-end; }
.promo-est small { font-family: var(--font-body, inherit); font-weight: 400; font-size: 11px; color: var(--muted); }
.promo-est.vazio { color: var(--muted); font-weight: 400; }
.promo-est.zero { color: var(--danger); }
@media (max-width: 560px) { .promo-cab, .promo-linha { grid-template-columns: 56px minmax(0, 1fr); } .promo-est { align-items: flex-start; } }
.fc-contas { grid-template-columns: 1fr 1fr 1fr; }
.fc-conta.amz b { color: #b35c00; }
.fc-drop .pdf.csv { background: #1f7a4d; }
@media (max-width: 560px) { .fc-contas { grid-template-columns: 1fr; } }
.fc-conta b { font-size: 16px; white-space: nowrap; }
/* Envios Fulfillment */
.ef-h { align-items: flex-start; }
.ef-h-dir { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ef-contas { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.ef-contas button { border: 0; background: none; font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.ef-contas button.on { background: var(--accent); color: #fff; }
.ef-up { cursor: pointer; }
.ef-msg { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 8%, var(--panel)); font-size: 14px; }
.ef-msg.err { background: var(--danger-soft); color: var(--danger); }
.ef-vazio { padding: 40px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: 14px; }
.ef-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ef-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ef-kpi small { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.ef-kpi > b { font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.ef-kpi > b i { font-style: normal; font-size: 14px; color: var(--muted); font-weight: 500; }
.ef-kpi > b.cinza { color: var(--muted); }
.ef-kpi span { font-size: 12.5px; color: var(--muted); }
.ef-kpi span em { font-style: normal; color: var(--orange); font-weight: 600; }
.ef-kpi.urg > b { color: var(--danger); }
.ef-painel { overflow: hidden; }
.ef-barra { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px 8px; }
.ef-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ef-chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; background: var(--panel); color: var(--ink); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.ef-chip span { color: var(--muted); font-family: var(--font-data); font-size: 12px; }
.ef-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ef-chip.on span { color: #e2f5f8; }
.ef-ferr { display: flex; gap: 8px; }
.ef-ferr input, .ef-ferr select { font: inherit; font-size: 13.5px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.ef-ferr input { width: 220px; }
.ef-acoes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 4px 16px 12px; }
.ef-info { font-size: 12.5px; color: var(--muted); font-family: var(--font-data); }
.ef-prog { padding: 0 16px 12px; }
.ef-rolo { overflow-x: auto; border-top: 1px solid var(--line); }
.ef-tab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ef-tab th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 10px 12px; background: var(--bg); border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.ef-tab td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ef-tab .r { text-align: right; }
.ef-tab td small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ef-tab tr.bloq td { background: color-mix(in srgb, var(--danger) 4%, var(--panel)); }
.ef-tab tr.bloq .ef-obs { color: var(--danger); }
.ef-tab .cinza { color: var(--muted); }
.ef-urg { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.ef-urg.u0 { background: #fde8e6; color: #b42318; }
.ef-urg.u1 { background: #fff0e0; color: #b45309; }
.ef-urg.u2 { background: #fff8db; color: #8a6a00; }
.ef-urg.u3 { background: #e6f4f6; color: #0b6b78; }
.ef-urg.u4 { background: #eef2ef; color: #4b5b55; }
.ef-urg.u5 { background: #ece9fb; color: #5b45b0; }
.ef-sku { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.ef-copy { border: 1px solid var(--line); background: var(--panel); border-radius: 6px; width: 26px; height: 26px; cursor: pointer; color: var(--accent); font-size: 14px; line-height: 1; padding: 0; }
.ef-copy:hover { border-color: var(--accent); }
.ef-copy.feito { background: var(--accent); color: #fff; border-color: var(--accent); }
.ef-prod { min-width: 220px; max-width: 330px; }
.ef-estrela { color: #b45309; font-weight: 700; margin-right: 6px; }
.ef-sug b { font-family: var(--font-display); font-size: 18px; color: var(--accent); }
.ef-est b { font-family: var(--font-display); font-size: 16px; }
.ef-est b.zero { color: var(--danger); }
.ef-est b.curto, .ef-est small.curto { color: var(--orange); }
.ef-est small.ok { color: #1f7a4d; }
.ef-erro { color: var(--danger); font-size: 12.5px; cursor: help; }
.ef-obs { font-size: 12.5px; color: var(--muted); min-width: 170px; max-width: 240px; }
.ef-nada { text-align: center; color: var(--muted); padding: 30px !important; }
.ef-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; z-index: 50; box-shadow: 0 8px 24px rgb(0 0 0 / .2); }
@media (max-width: 900px) { .ef-kpis { grid-template-columns: 1fr 1fr; } }
.ef-barra { align-items: center; justify-content: flex-start; padding: 14px 16px; }
.ef-seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.ef-seg button { border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 6px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.ef-seg button span { font-family: var(--font-data); font-size: 12px; font-weight: 400; margin-left: 3px; }
.ef-seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.ef-barra select, .ef-barra input[type=search] { font: inherit; font-size: 13.5px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.ef-barra input[type=search] { width: 210px; }
.ef-esp { flex: 1; }
.ef-tab th.ord { cursor: pointer; }
.ef-tab th.ord:hover, .ef-tab th.ord.on { color: var(--accent); }
.ef-tab th.ef-lanc, .ef-tab td.ef-lanc { width: 64px; text-align: center; padding-left: 8px; padding-right: 4px; }
.ef-lanc input { width: 20px; height: 20px; accent-color: #1f7a4d; cursor: pointer; }
.ef-tab td.ef-lanc small { color: #1f7a4d; font-size: 10.5px; line-height: 1.25; }
.ef-tab tr.lancado td { background: color-mix(in srgb, #1f7a4d 6%, var(--panel)); }
.ef-tab tr.lancado td:not(.ef-lanc) { opacity: .55; }
.ef-ok { color: #1f7a4d; }
.ef-seta { font-style: normal; margin-left: 4px; opacity: .45; }
.ef-tab th.ord.on .ef-seta { opacity: 1; }
.ef-copy { display: inline-flex; align-items: center; justify-content: center; }
.ef-tab .ef-copy { color: var(--accent); }
.ef-tab .ef-copy svg { display: block; width: 14px; height: 14px; flex: none; }
.ef-tab .ef-copy.feito { color: #fff; }
.fc-baixar { display: flex; flex-direction: column; gap: 8px; }
.fc-baixar .fc-pdf { width: 100%; padding: 11px 16px; border-radius: 9px; border: 1.5px solid var(--accent); background: var(--panel); color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.fc-baixar .fc-pdf:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.fc-baixar .fc-pdf:disabled { opacity: .5; cursor: default; }
.fc-pdf-dica { font-size: 12px; color: var(--muted); text-align: center; }
/* engrenagem do topo e área de Configurações */
.topo-eng { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--muted); }
.topo-eng:hover { color: var(--accent); background: var(--accent-soft); }
.cfg-abas { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 18px; }
.cfg-abas a { padding: 10px 14px 9px; font-weight: 600; font-size: 14.5px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.cfg-abas a.on { color: var(--accent); border-bottom-color: var(--accent); }
.cfg-abas a:hover { color: var(--ink); }
.bd-painel .panel-h { display: flex; justify-content: space-between; align-items: center; }
.bd-corpo { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.bd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bd-k { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.bd-k small { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.bd-k b { font-family: var(--font-display); font-size: 26px; }
.bd-k span { font-size: 12.5px; color: var(--muted); }
.bd-status { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, #1f7a4d 8%, var(--panel)); font-size: 14px; }
.bd-status.rodando { background: color-mix(in srgb, var(--accent) 9%, var(--panel)); }
.bd-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; animation: bdpulso 1.2s ease-in-out infinite; }
.bd-dot.ok { background: #1f7a4d; animation: none; }
@keyframes bdpulso { 50% { opacity: .35; } }
.bd-info { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 14px; }
.bd-info dt { color: var(--muted); }
.bd-info dd { margin: 0; }
.bd-nota { line-height: 1.5; }
@media (max-width: 760px) { .bd-kpis { grid-template-columns: 1fr 1fr; } }
/* olhinho para ver a senha */
.senha-campo { position: relative; display: block; }
.senha-campo input { width: 100%; padding-right: 44px; }
.senha-olho { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; padding: 0; }
.senha-olho:hover, .senha-olho:focus-visible { color: var(--accent); background: var(--accent-soft); }
.senha-olho .fe { display: none; }
.senha-olho.on .ab { display: none; }
.senha-olho.on .fe { display: block; }

/* ---------- menu lateral (estilo barra de ícones + painel) ---------- */
:root { --rail: 72px; --painel: 252px; --rail-bg: #0f3940; --rail-ink: #b9dbe1; }
body.com-menu { padding-left: var(--rail); transition: padding-left .18s ease; }
body.com-menu.menu-fixo { padding-left: calc(var(--rail) + var(--painel)); }
.lx-rail { position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 40; background: var(--rail-bg); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0 14px;
  border-right: 3px solid transparent; border-image: linear-gradient(180deg, var(--brand-teal) 0 62%, var(--brand-orange) 62% 100%) 1; }
.lx-r-logo { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.lx-r-logo img { width: 30px; height: 30px; object-fit: contain; display: block; }
.lx-r-item { width: 60px; border: 0; background: none; color: var(--rail-ink); font: inherit; cursor: pointer; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 2px 7px; border-radius: 12px; position: relative; }
.lx-r-item svg { width: 22px; height: 22px; }
.lx-r-item span { font-size: 10px; font-weight: 600; line-height: 1.1; text-align: center; letter-spacing: .01em; }
.lx-r-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.lx-r-item.on { background: rgba(32,180,200,.22); color: #fff; }
.lx-r-item.on::before { content: ""; position: absolute; left: -6px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-orange); }
.lx-r-item.aberto { background: #fff; color: var(--accent); }
.lx-r-esp { flex: 1; }
.lx-r-eu { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); background: var(--brand-orange); color: #fff; font: 800 13px var(--font-display); cursor: pointer; margin-top: 6px; }
.lx-r-eu:hover, .lx-r-eu.aberto { border-color: #fff; }
.lx-painel { position: fixed; top: 0; bottom: 0; left: var(--rail); width: var(--painel); z-index: 39; background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; transform: translateX(-102%); transition: transform .18s ease, box-shadow .18s; visibility: hidden; }
body.menu-aberto .lx-painel { transform: none; visibility: visible; box-shadow: 8px 0 28px rgba(15,57,64,.14); }
body.menu-fixo .lx-painel { box-shadow: none; }
.lx-veu { position: fixed; inset: 0; z-index: 38; background: rgba(15,57,64,.12); }
.lx-p-topo { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.lx-p-marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lx-p-marca img { height: 28px; width: auto; display: block; }
.lx-p-marca span { font: 700 13px var(--font-display); color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
.lx-p-grupo { padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.lx-p-tit { margin: 0 6px 8px; font: 800 17px var(--font-display); color: var(--ink); }
.lx-p-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.lx-p-item:hover { background: var(--bg); color: var(--accent); }
.lx-p-item.on { background: var(--accent-soft); color: var(--accent); }
.lx-p-item.sub { margin-left: 22px; font-size: 12.5px; padding-block: 6px; }
.lx-p-ic { width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 700 9px var(--font-data); }
.lx-p-ic svg { width: 17px; height: 17px; }
.lx-p-item.sub .lx-p-ic { width: 24px; height: 24px; }
.lx-p-item.sub .lx-p-ic svg { width: 14px; height: 14px; }
.lx-p-item.on .lx-p-ic { background: var(--accent); color: #fff; }
.lx-p-pe { margin-top: auto; border-top: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.lx-p-eu { display: flex; align-items: center; gap: 10px; padding: 4px 8px 10px; }
.lx-p-eu b { display: block; font-size: 13px; }
.lx-p-eu small { color: var(--muted); font-size: 11.5px; }
.lx-p-av { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-orange); color: #fff; display: grid; place-items: center; font: 800 12px var(--font-display); flex: none; }
.lx-p-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--muted); text-decoration: none; font: 600 13px var(--font-ui); background: none; border: 0; width: 100%; cursor: pointer; text-align: left; }
.lx-p-link svg { width: 17px; height: 17px; }
.lx-p-link:hover { background: var(--bg); color: var(--accent); }
.lx-p-link.sair:hover { color: var(--danger); }
.lx-painel .lx-fixar { display: flex; flex-direction: row; gap: 10px; margin: 0; align-items: center; justify-content: space-between; padding: 9px 10px 2px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.lx-fixar input { position: absolute; opacity: 0; pointer-events: none; }
.lx-fixar i { width: 36px; height: 20px; border-radius: 20px; background: #c9d6d9; position: relative; transition: background .15s; }
.lx-fixar i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.lx-fixar input:checked + i { background: var(--accent); }
.lx-fixar input:checked + i::after { transform: translateX(16px); }
.lx-fixar input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) {
  :root { --rail: 60px; }
  .lx-r-item { width: 52px; }
  .lx-r-item span { display: none; }
  body.com-menu.menu-fixo { padding-left: var(--rail); }
  body.menu-fixo .lx-painel { box-shadow: 8px 0 28px rgba(15,57,64,.14); }
}
@media print { .lx-rail, .lx-painel, .lx-veu { display: none !important; } body.com-menu, body.com-menu.menu-fixo { padding-left: 0; } }
