/* ═══════════════════════════════════════════════════════════════════
   ETIQUETAS DE ALMOXARIFADO — tela do módulo
   (o CSS da etiqueta em si vive em etiquetas.js, para ser reaproveitado
    na janela de impressão, que não carrega esta folha de estilo)
   ═══════════════════════════════════════════════════════════════════ */

.etiq-overlay{ position:fixed; inset:0; z-index:9600; display:none;
  background:rgba(0,0,0,.72); padding:18px; overflow-y:auto; }
.etiq-overlay.open{ display:block; }
.etiq-modal{ width:100%; max-width:1320px; margin:0 auto; background:var(--bg2);
  border:1px solid var(--border); border-radius:14px; box-shadow:0 18px 60px rgba(0,0,0,.5); overflow:hidden; }
.etiq-head{ display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  padding:15px 18px; border-bottom:1px solid var(--border); background:var(--bg3); }
.etiq-head h2{ font-size:16px; font-weight:700; color:var(--text); margin:0; }
.etiq-head .etiq-x{ margin-left:auto; background:none; border:none; color:var(--muted);
  font-size:21px; cursor:pointer; line-height:1; padding:0 4px; }
.etiq-head .etiq-x:hover{ color:var(--text); }
.etiq-sub{ font-size:12px; color:var(--muted2); }

.etiq-grid{ display:grid; grid-template-columns:260px 1fr 300px; gap:0; align-items:stretch; }
.etiq-col{ padding:14px 16px; min-width:0; }
.etiq-filtros{ border-right:1px solid var(--border); background:rgba(255,255,255,.012); }
.etiq-prev-col{ border-left:1px solid var(--border); background:rgba(255,255,255,.012);
  display:flex; flex-direction:column; }
.etiq-sec{ display:flex; align-items:center; gap:8px; font-size:11px; font-weight:700;
  color:var(--muted2); text-transform:uppercase; letter-spacing:.05em; margin:14px 0 8px; }
.etiq-col > .etiq-sec:first-child{ margin-top:0; }
.etiq-link{ margin-left:auto; background:none; border:none; color:var(--cyan);
  font-size:11px; cursor:pointer; text-transform:none; letter-spacing:0; }
.etiq-link:hover{ text-decoration:underline; }

.etiq-fchips{ display:flex; flex-wrap:wrap; gap:6px; }
.etiq-fchip{ padding:6px 10px; border-radius:9px; background:var(--bg3);
  border:1px solid var(--border); color:var(--muted2); font-size:11.5px;
  font-weight:600; cursor:pointer; transition:all .15s ease; white-space:nowrap; }
.etiq-fchip:hover{ border-color:var(--cyan); color:var(--text); }
.etiq-fchip.on{ background:rgba(34,211,238,.13); border-color:var(--cyan); color:var(--cyan); }

.etiq-chks{ display:grid; grid-template-columns:1fr 1fr; gap:5px 8px; }
.etiq-chk{ display:flex; align-items:center; gap:6px; font-size:12px;
  color:var(--muted2); cursor:pointer; }
.etiq-chk input{ width:14px; height:14px; accent-color:var(--cyan); cursor:pointer; flex-shrink:0; }
.etiq-chk:hover span{ color:var(--text); }

.etiq-cfg{ display:flex; align-items:center; gap:8px; margin-bottom:7px; font-size:12px; color:var(--muted2); }
.etiq-cfg span{ flex:0 0 92px; }
.etiq-cfg input, .etiq-cfg select{ flex:1; min-width:0; background:var(--bg3);
  border:1px solid var(--border); border-radius:7px; padding:5px 8px; color:var(--text); font-size:12px; }
.etiq-cfg-nota{ font-size:11px; color:var(--muted); line-height:1.5; margin-top:6px; }
/* Quadro com a medida exata para o driver — evita etiqueta em branco */
.etiq-papel{ margin-top:8px; padding:9px 11px; border-radius:9px;
  background:rgba(34,211,238,.08); border:1px solid rgba(34,211,238,.35); }
.etiq-papel-t{ font-size:10.5px; color:var(--muted2); text-transform:uppercase; letter-spacing:.05em; }
.etiq-papel-v{ font-size:15px; font-weight:800; color:var(--cyan); margin:3px 0 2px; }
.etiq-papel-d{ font-size:11px; color:var(--muted); line-height:1.45; }
.etiq-off{ display:flex; align-items:center; gap:5px; margin:4px 0 5px; }
.etiq-off button{ width:24px; height:26px; padding:0; justify-content:center; font-weight:700; }
.etiq-off input{ width:56px; height:26px; text-align:center; background:var(--bg3);
  border:1px solid var(--border); border-radius:6px; color:var(--text);
  font-size:13px; font-weight:800; -moz-appearance:textfield; }
.etiq-off input::-webkit-outer-spin-button, .etiq-off input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.etiq-off span{ font-size:11.5px; color:var(--muted2); }
.etiq-w100{ width:100%; justify-content:center; margin-bottom:6px; }

.etiq-topo{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.etiq-topo .vf-search{ flex:1; min-width:170px; }
.etiq-tbl{ max-height:calc(100vh - 300px); overflow-y:auto; }
.etiq-tbl table{ font-size:12.5px; }
.etiq-tbl tbody tr{ cursor:pointer; }
.etiq-tbl tbody tr:hover{ background:rgba(255,255,255,.035); }
.etiq-tbl tbody tr.on{ background:rgba(34,211,238,.07); }
.etiq-qtd{ display:inline-flex; align-items:center; gap:2px; }
.etiq-qtd button{ width:22px; height:24px; border-radius:6px; background:var(--bg3);
  border:1px solid var(--border); color:var(--muted2); font-size:13px; font-weight:700; cursor:pointer; }
.etiq-qtd button:hover{ border-color:var(--cyan); color:var(--cyan); }
.etiq-qtd input{ width:44px; height:24px; text-align:center; background:var(--bg3);
  border:1px solid var(--border); border-radius:6px; color:var(--text); font-size:12px; font-weight:700;
  -moz-appearance:textfield; }
.etiq-qtd input::-webkit-outer-spin-button, .etiq-qtd input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.etiq-pag{ display:flex; align-items:center; justify-content:center; gap:10px;
  margin-top:10px; font-size:12px; color:var(--muted2); }
.etiq-pag button[disabled]{ opacity:.4; cursor:default; }

/* Prévia — a etiqueta aparece no tamanho real, sobre fundo branco */
.etiq-prev-wrap{ background:#e9edf3; border:1px solid var(--border); border-radius:10px;
  padding:14px; display:flex; align-items:center; justify-content:center; min-height:120px; overflow:auto; }
.etiq-prev-wrap .etiqueta{ box-shadow:0 2px 10px rgba(0,0,0,.28); flex-shrink:0; }
.etiq-prev-nota{ font-size:11.5px; color:var(--muted2); text-align:center; margin-top:8px; line-height:1.5; }
.etiq-alerta{ margin-top:8px; padding:8px 10px; border-radius:8px; text-align:left;
  background:rgba(249,115,22,.10); border:1px solid rgba(249,115,22,.4);
  color:var(--muted2); font-size:11.5px; line-height:1.5; }
.etiq-alerta b{ color:var(--orange); }
.etiq-resumo{ margin-top:auto; padding-top:12px; font-size:12.5px; color:var(--muted2); text-align:center; }
.etiq-resumo b{ color:var(--cyan); }
.etiq-acoes{ margin-top:12px; }
.etiq-status{ font-size:12px; color:var(--muted2); min-height:17px; text-align:center; }

/* Botão de abrir na aba Estoque */
.etiq-btn{ display:inline-flex; align-items:center; gap:6px; background:rgba(34,211,238,.12);
  border:1px solid rgba(34,211,238,.45); color:var(--cyan); border-radius:9px;
  padding:8px 14px; font-size:12.5px; font-weight:700; cursor:pointer; transition:all .2s ease; white-space:nowrap; }
.etiq-btn:hover{ background:var(--cyan); border-color:var(--cyan); color:#062a30;
  box-shadow:0 4px 14px rgba(34,211,238,.3); }

/* ── Responsivo: empilha filtros → lista → prévia ── */
@media(max-width:1080px){
  .etiq-grid{ grid-template-columns:1fr; }
  .etiq-filtros{ border-right:none; border-bottom:1px solid var(--border); }
  .etiq-prev-col{ border-left:none; border-top:1px solid var(--border); }
  .etiq-tbl{ max-height:none; }
  .etiq-chks{ grid-template-columns:repeat(3,1fr); }
}
@media(max-width:640px){
  .etiq-overlay{ padding:0; }
  .etiq-modal{ border-radius:0; min-height:100vh; }
  .etiq-chks{ grid-template-columns:1fr 1fr; }
  .etiq-col{ padding:12px 13px; }
  .etiq-tbl table{ font-size:12px; }
  /* no celular a tabela fica enxuta: o essencial é marcar e definir a quantidade */
  .etiq-tbl th:nth-child(5), .etiq-tbl td:nth-child(5),
  .etiq-tbl th:nth-child(6), .etiq-tbl td:nth-child(6),
  .etiq-tbl th:nth-child(7), .etiq-tbl td:nth-child(7){ display:none; }
  /* alvos de toque maiores no celular */
  .etiq-qtd input{ width:36px; height:30px; }
  .etiq-qtd button{ width:28px; height:30px; font-size:15px; }
  .etiq-tbl .ped-ck{ width:19px; height:19px; }
  .etiq-tbl .ped-act{ height:32px; min-width:34px; }
}
