#tab-nota-fiscal .nf-required-note,
#tab-nota-fiscal .nf-transport-note,
#tab-nota-fiscal .nf-volume-lock-note {
  display: none !important;
}

/* =====================================================
   TELA EMISSÃO NF - ALINHAMENTO DA TABELA
===================================================== */

#tab-nota-fiscal #nfListaWrap .workflow-table th,
#tab-nota-fiscal #nfListaWrap .workflow-table td {
  text-align: center !important;
  vertical-align: middle !important;
}

#tab-nota-fiscal #nfListaWrap .workflow-table td input,
#tab-nota-fiscal #nfListaWrap .workflow-table td button,
#tab-nota-fiscal #nfListaWrap .workflow-table td span,
#tab-nota-fiscal #nfListaWrap .workflow-table td .nf-cell-stack,
#tab-nota-fiscal #nfListaWrap .workflow-table td .nf-volume-edit-wrap,
#tab-nota-fiscal #nfListaWrap .workflow-table td .nf-actions-inline {
  margin-left: auto !important;
  margin-right: auto !important;
}

#tab-nota-fiscal #nfListaWrap .workflow-table td .nf-cell-stack {
  align-items: center !important;
}

/* Cliente */
#tab-nota-fiscal #nfListaWrap .workflow-table th:nth-child(2),
#tab-nota-fiscal #nfListaWrap .workflow-table td:nth-child(2) {
  text-align: left !important;
}

/* Responsável */
#tab-nota-fiscal #nfListaWrap .workflow-table th:nth-child(9),
#tab-nota-fiscal #nfListaWrap .workflow-table td:nth-child(9) {
  text-align: left !important;
}

/* Transportadora */
#tab-nota-fiscal #nfListaWrap .workflow-table th:nth-child(10),
#tab-nota-fiscal #nfListaWrap .workflow-table td:nth-child(10) {
  text-align: left !important;
}

#tab-nota-fiscal #nfListaWrap .workflow-table td:nth-child(10) input,
#tab-nota-fiscal #nfListaWrap .workflow-table td:nth-child(10) .nf-transport-edit,
#tab-nota-fiscal #nfListaWrap .workflow-table td:nth-child(10) .nf-transport-edit-wrap {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

#tab-nota-fiscal #nfListaWrap .workflow-table td:nth-child(10) .nf-cell-stack,
#tab-nota-fiscal #nfListaWrap .workflow-table td:nth-child(10) .nf-transport-edit-wrap {
  align-items: flex-start !important;
}

/* =====================================================
   TELA ETIQUETAS NFE - ALINHAMENTO DA TABELA
===================================================== */

#etiquetasNFWrap .nfe-table-restaurada th,
#etiquetasNFWrap .nfe-table-restaurada td {
  text-align: center !important;
  vertical-align: middle !important;
}

#etiquetasNFWrap .nfe-table-restaurada td input,
#etiquetasNFWrap .nfe-table-restaurada td button,
#etiquetasNFWrap .nfe-table-restaurada td span,
#etiquetasNFWrap .nfe-table-restaurada td .nfe-status,
#etiquetasNFWrap .nfe-table-restaurada td .nfe-action-buttons {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Cliente */
#etiquetasNFWrap .nfe-table-restaurada th:nth-child(5),
#etiquetasNFWrap .nfe-table-restaurada td:nth-child(5) {
  text-align: left !important;
}

/* Cidade/UF */
#etiquetasNFWrap .nfe-table-restaurada th:nth-child(6),
#etiquetasNFWrap .nfe-table-restaurada td:nth-child(6) {
  text-align: left !important;
}

/* Transportadora */
#etiquetasNFWrap .nfe-table-restaurada th:nth-child(7),
#etiquetasNFWrap .nfe-table-restaurada td:nth-child(7) {
  text-align: left !important;
}

/* Coluna Ação menor */
#etiquetasNFWrap .nfe-table-restaurada th:nth-child(10),
#etiquetasNFWrap .nfe-table-restaurada td:nth-child(10) {
  width: 210px !important;
  min-width: 210px !important;
  max-width: 210px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

#etiquetasNFWrap .nfe-table-restaurada td:nth-child(10) .nfe-action-buttons {
  display: flex !important;
  justify-content: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
}

#etiquetasNFWrap .nfe-table-restaurada td:nth-child(10) .nfe-action-buttons .btn,
#etiquetasNFWrap .nfe-table-restaurada td:nth-child(10) button {
  padding: 7px 9px !important;
  font-size: 11px !important;
  border-radius: 8px !important;
  min-width: auto !important;
}

/* =====================================================
   IMPRESSÃO DA LISTA - REMOVER MENU / STATUS DA IMPRESSORA
===================================================== */

@media print {
  .main-menu,
  .menu-toggle-btn,
  header,
  .app-topbar,
  #printerFloatStatus,
  .printer-float-status,
  #printerAlertBig,
  .printer-alert-big,
  .print-menu,
  .print-menu-status,
  .lista-print-menu,
  .picking-print-menu,
  .bloco-print-menu {
    display: none !important;
    visibility: hidden !important;
  }
}

/* =====================================================
   MENU ETIQUETAS NFE - TAMANHO, ALERTA, PULSO E ATIVO AZUL
===================================================== */

/* Tamanho do botão igual aos outros botões do menu */
#menuEtiquetasNF {
  min-height: auto !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  border-radius: 10px !important;
  gap: 8px !important;
}

/* Quando tiver notificação e NÃO estiver na página */
#menuEtiquetasNF.menu-has-alert:not(.active) {
  background: #fff1f2 !important;
  color: #991b1b !important;
  border-color: #fecaca !important;
  box-shadow:
    0 0 0 1px rgba(248, 113, 113, 0.12),
    0 8px 18px rgba(239, 68, 68, 0.10) !important;
}

#menuEtiquetasNF.menu-has-alert:not(.active):hover {
  background: #ffe4e6 !important;
  color: #991b1b !important;
  border-color: #fca5a5 !important;
}

/* Quando estiver dentro da página Etiquetas NFe, fica azul igual aos outros ativos */
#menuEtiquetasNF.active,
#menuEtiquetasNF.menu-has-alert.active {
  background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22) !important;
}

/* Badge vermelho pulsando */
#menuEtiquetasNF .menu-counter-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 24px !important;
  height: 24px !important;
  margin-left: 6px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.28) !important;
  animation: menuEtiquetasNFePulse 1.4s ease-in-out infinite !important;
}

#menuEtiquetasNF.active .menu-counter-badge {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.90) !important;
}

#menuEtiquetasNF .menu-counter-badge:empty {
  display: none !important;
}

@keyframes menuEtiquetasNFePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(239, 68, 68, 0.45),
      0 6px 14px rgba(239, 68, 68, 0.28);
  }
  50% {
    transform: scale(1.16);
    box-shadow:
      0 0 0 6px rgba(239, 68, 68, 0),
      0 8px 18px rgba(239, 68, 68, 0.40);
  }
}

/* Linha injetada para Correios com XML + PDF liberada para impressão */
#etiquetasNFWrap .nfe-table-restaurada tr.nfe-correios-xml-pdf-liberado td {
  background: #fff7ed !important;
}

#etiquetasNFWrap .nfe-table-restaurada tr.nfe-correios-xml-pdf-liberado:hover td {
  background: #ffedd5 !important;
}



/* =====================================================
   CORREÇÃO - MENU ETIQUETAS NFE COM APENAS 1 CONTADOR
===================================================== */

/* Esconde qualquer contador antigo dentro do botão Etiquetas NFe */
#menuEtiquetasNF .menu-counter-badge:not(.nfe-menu-badge-final),
#menuEtiquetasNF .counter-badge,
#menuEtiquetasNF .badge:not(.nfe-menu-badge-final) {
  display: none !important;
}

/* Contador oficial da Etiquetas NFe */
#menuEtiquetasNF .nfe-menu-badge-final {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-width: 24px !important;
  height: 24px !important;
  margin-left: 6px !important;
  padding: 0 7px !important;

  border-radius: 999px !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;

  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1 !important;

  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.28) !important;
  animation: menuEtiquetasNFePulse 1.4s ease-in-out infinite !important;
}

/* Se estiver vazio, esconde */
#menuEtiquetasNF .nfe-menu-badge-final:empty {
  display: none !important;
}
