/* ╔══════════════════════════════════════════════════════════════╗ */
/* ║ 🎨 entradasFiscais.css – Estilo para Importação de XML NF-e ║ */
/* ╚══════════════════════════════════════════════════════════════╝ */

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f7fa;
  padding: 20px;
  box-sizing: border-box;
}

h2 {
  margin-top: 30px;
  color: #333;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

button {
  padding: 6px 12px;
  background-color: #1976d2;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #1565c0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 14px;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

tr:hover {
  background-color: #eef;
}

/* 🔍 Modal de Produto */
#modalProduto {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#modalProduto.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 20px;
  width: 80%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.modal-header h3 {
  margin: 0;
}

.modal-header button {
  background: #c62828;
}

.modal-header button:hover {
  background: #b71c1c;
}

input[type="text"], input[type="file"] {
  padding: 8px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin: 5px 0 15px;
}

/* 📦 Estilo para colunas da tabela de produtos XML */
.produtoSelecionado {
  font-size: 12px;
  color: #333;
  margin-top: 3px;
  font-style: italic;
}

/* 📄 Estilo para seções do emitente/destinatário */
.dados-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.dados-section > div {
  flex: 1 1 300px;
  background: #f8f9fb;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* ╔════════════════════════════════════════════╗ */
/* ║ 🎨 Estilo para Bloco de Dados da Nota      ║ */
/* ╚════════════════════════════════════════════╝ */

.dados-nota {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.dados-header {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}

.info-bloco {
  background-color: #f9f9f9;
  border-left: 4px solid #1976d2;
  padding: 15px 20px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.info-bloco p {
  margin: 4px 0;
  font-size: 14px;
}

.info-bloco strong {
  color: #000;
  display: inline-block;
  width: 130px;
}

/* Layout lado a lado para Emitente e Destinatário */
.dados-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.dados-flex > .info-bloco {
  flex: 1 1 48%;
}

/* Layout horizontal de três colunas */
.linha-dados-tres-colunas {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin-top: 20px;
  flex-wrap: wrap;
}

.bloco-coluna {
  flex: 1;
  min-width: 280px;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.bloco-coluna h4 {
  margin-top: 0;
  color: #444;
  font-size: 16px;
  margin-bottom: 10px;
}

.bloco-coluna p {
  margin: 4px 0;
  font-size: 14px;
}

/* ╔════════════════════════════════════════════╗ */
/* ║ 🧭 Estilo das Abas de Navegação            ║ */
/* ╚════════════════════════════════════════════╝ */

.abas-menu {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.aba-btn {
  padding: 10px 20px;
  background-color: #e0e0e0;
  color: #333;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.aba-btn:hover {
  background-color: #d5d5d5;
}

.aba-btn.ativa {
  background-color: #1976d2;
  color: white;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.aba-conteudo {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.aba-conteudo.ativa {
  display: block;
}

/* ✨ Animação suave de exibição */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
