/* ╔═══════════════════════════════════════════════════════╗
   ║ 🎨 inventario.css – Estilo da tela de Inventário     ║
   ╚═══════════════════════════════════════════════════════╝ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background-color: #f7f7f7;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 24px;
  color: #333;
}

#btnNovoInventario {
  padding: 10px 20px;
  background-color: #00796b;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#btnNovoInventario:hover {
  background-color: #005b4f;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background-color: #eeeeee;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  font-weight: bold;
  color: #555;
}

td:last-child {
  text-align: center;
}

button.acao {
  padding: 6px 12px;
  background-color: #2196f3;
  color: white;
  border: none;
  border-radius: 4px;
  margin: 0 4px;
  cursor: pointer;
}

button.acao:hover {
  background-color: #1976d2;
}

button.remover {
  background-color: #e53935;
}

button.remover:hover {
  background-color: #c62828;
}

/* 🔲 MODAIS */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 20, 20, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
}

.modal-conteudo {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.modal h2 {
  margin-bottom: 20px;
  font-size: 20px;
  color: #333;
}

.modal input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.modal button {
  padding: 10px 16px;
  margin-top: 10px;
  margin-right: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#btnSalvarInventario {
  background-color: #388e3c;
  color: white;
}

#btnSalvarInventario:hover {
  background-color: #2e7d32;
}

#btnFecharModal, #btnFecharItens {
  background-color: #aaa;
  color: white;
}

#btnFecharModal:hover,
#btnFecharItens:hover {
  background-color: #888;
}

/* Form de itens */
.form-itens {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.form-itens input {
  flex: 1;
}

/* Ocultar modal por padrão */
.oculto {
  display: none !important;
}
