/* ╔════════════════════════════════════════════╗
   ║ 🎨 produtosFiscal.css – Estilo do Fiscal   ║
   ╚════════════════════════════════════════════╝ */

body {
  font-family: Arial, sans-serif;
  background-color: #f6f6f6;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 500px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

form label {
  display: block;
  margin-top: 12px;
  font-weight: bold;
  color: #444;
}

form input,
form select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

form button[type="submit"] {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background-color: #1b8f3c;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

form button[type="submit"]:hover {
  background-color: #157933;
}

.botoes-secundarios {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.botoes-secundarios button {
  flex: 1;
  margin-right: 10px;
  padding: 10px;
  background-color: #dddddd;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.botoes-secundarios button:last-child {
  margin-right: 0;
}

.botoes-secundarios button:hover {
  background-color: #cfcfcf;
}

.mensagem {
  margin-top: 20px;
  font-size: 14px;
  color: green;
  text-align: center;
}

/* ╔════════════════════════════════════════════╗
   ║ 💬 Modal de Pesquisa de Produtos           ║
   ╚════════════════════════════════════════════╝ */

#modalProdutos {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

#modalProdutos .modal-content {
  background-color: white;
  max-width: 600px;
  margin: 80px auto;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

#modalProdutos h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
}

#buscaProduto {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

#listaResultados {
  list-style: none;
  padding: 0;
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#listaResultados li {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s ease;
}

#listaResultados li:hover {
  background-color: #f0f0f0;
}

#listaResultados li:last-child {
  border-bottom: none;
}

/* 📱 Responsivo */
@media (max-width: 600px) {
  .container {
    margin: 20px;
    padding: 20px;
  }

  #modalProdutos .modal-content {
    margin: 40px 15px;
  }
}
