* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 20px;
  min-height: 100vh;
}
.header{
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 1rem;
  border-radius: 8px;
  background-color: #58c202;
  color:white;
;
}
/* 
.container {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
} */
 .container {
  max-width: 1400px;
  margin: 0 auto;

}

h1 {
  text-align: center;
  /* color: #08a933; */
  margin-bottom: 30px;
  font-size: 2em;
}

.form-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #003900;
}

.form-section h2 {
  color: #003900;
  margin-bottom: 20px;
  font-size: 1.5em;
  border-bottom: 2px solid #58c202;
  padding-bottom: 10px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #003900;
}

/* Lote Section Styles */
.lote-section {
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  border: 2px solid #003900;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lote-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #003900;
}

.lote-header h3 {
  color: #003900;
  font-size: 1.3em;
  margin: 0;
}

.lote-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.productos-section {
  margin-top: 20px;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 5px;
}

.productos-section h4 {
  color: #003900;
  margin-bottom: 15px;
  font-size: 1.1em;
}

/* Table Styles */
.table-container {
  overflow-x: auto;
  margin-bottom: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.productosTable {
  font-size: 0.9em;
}

thead {
  background: #003900;
  color: white;
}

th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  text-transform: capitalize;
  font-size: 0.85em;
  letter-spacing: 0.5px;
}

td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

tbody tr:hover {
  background: #f5f5f5;
}

td input,
td select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
}

.prod-cantidad-total-display {
  font-weight: 600;
  color: #003900;
  text-align: center;
}

tfoot {
  background: #f0f8f0;
  font-weight: bold;
}

.total-row td {
  padding: 12px;
  font-size: 1em;
  border-top: 2px solid #003900;
}

.total-usd-ha {
  color: #003900;
  font-size: 1.1em;
  text-align: center;
}

/* Button Styles */
.btn-add,
.btn-generate {
  background: #58c202;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.btn-add:hover,
.btn-generate:hover {
  background: #003900;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 139, 34, 0.3);
}

.btn-add-small {
  background: #58c202;
  color: white;
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-add-small:hover {
  background: #003900;
}

.btn-delete {
  background: #dc3545;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-delete:hover {
  background: #c82333;
  transform: translateY(-1px);
}

.btn-delete-small {
  background: #dc3545;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s;
}

.btn-delete-small:hover {
  background: #c82333;
}

.form-actions {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #003900;
}

.mapa-status {
  display: inline-block;
  margin-left: 10px;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 1.5em;
  }

  .lote-info {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 12px;
  }

  th,
  td {
    padding: 8px;
  }
}
