/* Fixee · protótipo do Recebimento · pensado primeiro para o celular */
:root {
  --tinta: #1a1a1a; --suave: #6b6b6b; --linha: #dcdcdc; --fundo: #fafafa; --branco: #fff;
  --laranja: #c2531a; --marinho: #0e1935;
  --verde: #1f7a45; --verde-f: #e3f1e8; --ambar: #7a4e00; --ambar-f: #fcf1d4;
  --vermelho: #b3261e; --vermelho-f: #fbeae8; --azul: #2a4dd0; --azul-f: #eef3fe;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fundo); color: var(--tinta); font: 15px/1.4 "IBM Plex Sans", system-ui, sans-serif; }
h1 { margin: 0 0 12px; font-size: 20px; line-height: 28px; }
h2, h3, p { margin: 0; }
a { color: var(--laranja); }
:focus-visible { outline: 2px solid var(--laranja); outline-offset: 2px; }

.topo { display: flex; align-items: center; gap: 20px; padding: 0 16px; min-height: 56px; background: var(--marinho); }
.topo img { display: block; }
.topo nav { display: flex; gap: 4px; }
.topo nav a { padding: 8px 12px; border-radius: 6px; color: #c9d0de; text-decoration: none; font-weight: 600; font-size: 14px; }
.topo nav a.ativa { background: rgba(255, 255, 255, .14); color: #fff; }
.pagina { max-width: 1100px; margin: 0 auto; padding: 16px; }
.rodape { padding: 24px 16px; text-align: center; color: var(--suave); font-size: 13px; }
.sub, .trilha { color: var(--suave); font-size: 14px; margin-bottom: 12px; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--linha);
  border-radius: 6px; background: var(--branco); color: var(--tinta); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn.primario { background: var(--laranja); border-color: var(--laranja); color: #fff; }
.btn.escuro { background: var(--marinho); border-color: var(--marinho); color: #fff; }
.btn.grande { width: 100%; min-height: 56px; font-size: 17px; margin-bottom: 20px; }
.btn.alto { min-height: 48px; }
.btn.pequeno { min-height: 36px; font-size: 13px; }
.btn.largo { width: 100%; }
.link { border: 0; background: none; padding: 12px 4px; color: var(--laranja); font: inherit; font-weight: 600; cursor: pointer; }
.lixeira { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 40px; color: #8a8a8a; }

/* kanban */
.kanban { display: grid; gap: 24px; }
.kanban section { display: grid; gap: 10px; align-content: start; }
.etapa { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px 6px 14px; border-radius: 10px; font-size: 16px; }
.etapa span { min-width: 24px; padding: 0 8px; border-radius: 99px; background: #fff; font-size: 13px; line-height: 24px; text-align: center; }
.etapa .btn { margin-left: auto; }
.etapa.azul { background: var(--azul-f); } .etapa.verde { background: var(--verde-f); } .etapa.ambar { background: var(--ambar-f); }
.card { display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: var(--branco); border: 1px solid var(--linha); border-radius: 10px; margin-bottom: 10px; }
.card-txt { flex: 1; min-width: 0; }
.card h3 { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card p { color: var(--suave); font-size: 13px; }
.card .alerta, .alerta { color: var(--ambar); font-weight: 600; }
.card .erro { color: var(--vermelho); font-weight: 600; }
.barra { height: 4px; margin-top: 8px; border-radius: 99px; background: #e6e6e6; overflow: hidden; }
.barra i { display: block; height: 4px; background: var(--verde); }
.vazio { padding: 16px; color: var(--suave); font-size: 14px; text-align: center; border: 1px dashed var(--linha); border-radius: 10px; }

/* formulários */
label, legend { display: block; margin-bottom: 6px; padding: 0; font-size: 13px; font-weight: 600; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
input, select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--linha); border-radius: 6px; background: #fff; color: var(--tinta); font: inherit; }
input.grande { min-height: 52px; font-size: 20px; font-weight: 600; }
input:disabled { background: #f0f0f0; color: var(--suave); }
input[type=checkbox], input[type=radio] { width: 18px; min-height: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--laranja); }
.opcao { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-weight: 400; }
.faixa { margin-top: 8px; color: var(--suave); font-size: 13px; }
.campo { min-width: 0; }
.linha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.linha.entre { justify-content: space-between; margin: 16px 0; }
.linha > input { flex: 1 1 120px; } .linha > select { flex: 0 0 88px; min-height: 52px; }
#novo > * { flex: 1 1 160px; min-height: 44px; }
.dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 10px; border: 1px solid var(--linha); border-radius: 6px; background: #fff; font-weight: 500; text-align: center; cursor: pointer; }
.seg input:checked + span { border-color: var(--laranja); background: #fbefe9; color: #a84514; font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--laranja); outline-offset: 2px; }
#busca, #novo { margin-top: 8px; }
.reconhecido { padding: 11px 12px; border: 1px solid var(--linha); border-radius: 6px; background: #fff; font-weight: 600; color: var(--tinta); }
details summary { color: var(--laranja); font-weight: 600; cursor: pointer; }
.grade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; padding: 16px; border: 1px solid var(--linha); border-radius: 10px; background: #fff; }
.caixa { padding: 20px; background: #fff; border: 1px solid var(--linha); border-radius: 10px; }
.estreita { max-width: 520px; margin: 0 auto; }
.pilha { display: grid; gap: 8px; margin-top: 16px; }
.lista { margin: 0 0 8px; padding-left: 20px; }
.resumo { margin-bottom: 12px; color: var(--suave); } .resumo b { margin-right: 4px; font-size: 20px; color: var(--tinta); } .resumo b + b, .resumo b:last-of-type { margin-left: 16px; }

/* conferência */
.conf.na-lista .item, .conf.no-item .itens { display: none; }
.itens { display: grid; gap: 12px; }
.nota { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.nota strong { font-size: 18px; } .nota span { color: var(--suave); font-size: 13px; } .nota em { margin-left: auto; font-style: normal; font-weight: 600; }
.itens ol { margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--linha); border-radius: 10px; overflow: hidden; }
.itens li a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-bottom: 1px solid #ededed; color: var(--tinta); text-decoration: none; }
.itens li:last-child a { border-bottom: 0; }
.itens li b { width: 22px; color: var(--suave); font-weight: 500; text-align: center; }
.itens li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.itens li small { font-weight: 600; color: var(--ambar); }
.itens li a.ok b { color: var(--verde); font-weight: 600; } .itens li a.dev small { color: var(--vermelho); } .itens li a.nv small { color: var(--suave); }
.item { display: grid; gap: 18px; }
.item h1 { margin: 0; font-size: 17px; line-height: 24px; }
.posicao { color: var(--suave); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: -14px; }
.voltar { font-weight: 600; text-decoration: none; }
.acoes { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -16px; padding: 12px 16px; background: #fff; border-top: 1px solid var(--linha); }
.acoes .btn { flex: 1; max-width: 260px; }

/* relatórios */
.grade-rel { display: grid; gap: 12px; }
.rel { display: grid; gap: 4px; padding: 20px; background: #fff; border: 1px solid var(--linha); border-radius: 10px; color: var(--tinta); text-decoration: none; }
.rel strong { font-size: 17px; } .rel span { color: var(--suave); font-size: 14px; }
.rel.novo { border-color: var(--laranja); } .rel.inativo { opacity: .6; }
.filtros { display: grid; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--linha); border-radius: 10px; }
.tabela { overflow-x: auto; background: #fff; border: 1px solid var(--linha); border-radius: 10px; }
table { width: 100%; min-width: 1180px; border-collapse: collapse; font-size: 14px; }
th { padding: 14px 12px; background: #f3f4f6; text-align: left; white-space: nowrap; }
td { padding: 12px; border-top: 1px solid #e5e5e5; white-space: nowrap; }
td small { display: block; color: var(--suave); font-size: 12px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.tag.verde { background: var(--verde-f); color: var(--verde); } .tag.ambar { background: var(--ambar-f); color: var(--ambar); }
.tag.vermelho { background: var(--vermelho-f); color: var(--vermelho); } .tag.cinza { background: #ededed; color: #4a4a4a; }

.aviso { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 8px; background: var(--tinta); color: #fff; font-size: 14px; z-index: 9; }

/* a partir do tablet deitado e do computador */
@media (min-width: 900px) {
  .pagina { padding: 24px; }
  .btn.grande { display: flex; max-width: 380px; margin: 8px auto 28px; }
  .kanban { grid-template-columns: repeat(3, 1fr); }
  .conf { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
  .conf.na-lista .item, .conf.no-item .itens { display: grid; }
  .item { padding: 24px; background: #fff; border: 1px solid var(--linha); border-radius: 10px; }
  .voltar { display: none; }
  .acoes { position: static; margin: 0; padding: 0; border: 0; justify-content: flex-end; gap: 20px; }
  .grade { grid-template-columns: repeat(5, 1fr); }
  .grade-rel { grid-template-columns: repeat(3, 1fr); }
  .filtros { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- impressão de etiquetas ---------- */
[hidden] { display: none !important; }
.topo nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topo nav a { white-space: nowrap; }
.resp { display: flex; align-items: center; gap: 8px; }
.resp label { margin: 0; color: var(--suave); font-weight: 400; }
.resp select { width: auto; min-height: 40px; font-weight: 600; }
.linha.entre h1 { margin: 0; }
.busca { min-height: 52px; margin-bottom: 20px; font-size: 16px; }
.sec { font-size: 16px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 24px; }
.tile { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 68px; padding: 10px 14px; background: #fff;
  border: 1px solid var(--linha); border-radius: 10px; color: var(--tinta); text-decoration: none; }
.tile:hover, .pill:hover { border-color: var(--laranja); }
.tile strong { font-size: 15px; } .tile span { color: var(--suave); font-size: 13px; }
.tile.grupo strong { font-size: 16px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--linha); border-radius: 99px;
  background: #fff; color: var(--tinta); font-weight: 600; text-decoration: none; white-space: nowrap; }
.pill small { font-weight: 400; color: var(--suave); }
.pill.ativa { border-color: var(--laranja); background: #fbefe9; color: #a84514; }
.etq { display: grid; gap: 16px; }
.previa { display: flex; justify-content: center; padding: 16px; background: #f5f5f5; border: 1px solid var(--linha); border-radius: 10px; }
.etiqueta { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 340px; aspect-ratio: 1 / 1; padding: 14px; background: #fff;
  border: 1px solid var(--linha); border-radius: 6px; color: #000; font: 13px/19px "IBM Plex Mono", ui-monospace, monospace; text-transform: uppercase; }
.e-nome { padding: 6px 10px; border: 2px solid #000; font-size: 18px; line-height: 24px; font-weight: 600; }
.e-linha { display: flex; justify-content: space-between; gap: 8px; }
.e-pe { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; }
.e-pe > div { flex: 1; min-width: 0; }
.e-cod { margin-top: 6px; padding-top: 6px; border-top: 2px solid #000; font-weight: 600; }
.seg.duas span { flex-direction: column; min-height: 60px; }
.seg small { font-size: 13px; font-weight: 400; }
.estreito { max-width: 260px; }
.stepper { display: inline-flex; align-items: center; flex: none; border: 1px solid var(--linha); border-radius: 6px; background: #fff; }
.stepper button { width: 44px; height: 46px; padding: 0; border: 0; background: none; color: var(--tinta); font-size: 20px; cursor: pointer; }
.stepper input { width: 36px; min-height: 0; height: 46px; padding: 0; border: 0; font-size: 18px; font-weight: 600; text-align: center; }
.acoes.imprimir .btn { max-width: none; }
@media (min-width: 900px) {
  .tiles { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .etq { grid-template-columns: minmax(320px, 400px) 1fr; gap: 24px; align-items: start; }
  .acoes.imprimir .btn { flex: 0 0 auto; min-width: 240px; }
}
@media (max-width: 480px) {
  .topo { gap: 12px; padding: 0 12px; }
  .topo nav a { padding: 8px; font-size: 13px; }
}

/* ---------- carrinho de etiquetas ---------- */
.tile { flex-direction: row; align-items: center; padding: 0; }
.tile a { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 10px 6px 10px 14px; color: var(--tinta); text-decoration: none; }
.tile.grupo a { padding-right: 14px; }
.tiles.prod { grid-template-columns: 1fr; }
.mais { flex: none; width: 44px; height: 44px; margin-right: 10px; padding: 0; border: 1px solid var(--linha); border-radius: 99px; background: #fff;
  color: var(--laranja); font-family: inherit; font-size: 24px; font-weight: 500; line-height: 1; cursor: pointer; }
.mais:hover { border-color: var(--laranja); background: #fbefe9; }
.mais.tem { border-color: var(--laranja); background: var(--laranja); color: #fff; font-size: 16px; font-weight: 600; }
.carrinho-barra { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 -16px; padding: 12px 16px; background: #fff; border-top: 1px solid var(--linha); }
.carrinho-barra a { display: flex; flex-direction: column; min-width: 0; color: var(--tinta); text-decoration: none; }
.carrinho-barra a strong { color: var(--laranja); text-decoration: underline; }
.carrinho-barra a span { color: var(--suave); font-size: 13px; }
body:has(.carrinho-barra) .aviso { bottom: 96px; }
.acoes.imprimir { flex-wrap: wrap; }
.acoes.imprimir .btn { flex: 1 1 auto; order: 1; }
.acoes.imprimir #btn-imprimir { flex-basis: 100%; order: 2; }
.stepper span { width: 36px; font-size: 18px; font-weight: 600; text-align: center; }
button.lixeira { border: 0; background: none; cursor: pointer; }
.larga { max-width: 640px; }
.larga .card { padding: 12px 8px 12px 16px; }
.larga .card h3 { white-space: normal; }
.fim-carrinho { margin-top: 16px; }
.fim-carrinho .btn { max-width: none; }
@media (min-width: 900px) {
  .tiles.prod { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .carrinho-barra { margin: 0; padding: 12px 16px; border: 1px solid var(--linha); border-radius: 10px; box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); }
  .acoes.imprimir { flex-wrap: nowrap; }
  .acoes.imprimir .btn, .acoes.imprimir #btn-imprimir { flex: 0 0 auto; }
  .fim-carrinho { justify-content: space-between; }
  .fim-carrinho .btn { flex: 0 0 auto; min-width: 260px; }
}
