/* === Estilos generales === */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(to right, #b4e900, #2e7d32);
  /* Verde Falabella */
  padding: 20px;
}

/* === Login === */
.login-container {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin: auto;
  margin-top: 10vh;
}

.login-box h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #2e7d32;
}

input[readonly] {
  background-color: #f0f0f0;
  color: #888;
  border: 1px dashed #ccc;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
select {
  width: 97%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
}

select {
  width: 99% !important;
}

button {
  width: 100%;
  padding: 10px;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background-color: #256d28;
}

.download{
  width: 10%;
  margin-top: 0px;
  margin-bottom: 10px;
}

.error {
  color: red;
  font-size: 0.9rem;
  margin-top: 5px;
  text-align: center;
}

/* === Lista === */
.container {
  max-width: 90%;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 50%;
}

h1 {
  text-align: center !important;
  color: #2e7d32;
}

.text-center {
  text-align: center !important;
}

input[type="search"],
input#searchInput {
  width: 97%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background-color: #b4e900;
  color: #333;
  cursor: pointer;
  padding: 12px;
  text-align: left;
}

tbody td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

td button {
  padding: 6px 12px;
  font-size: 0.9rem;
  width: auto;
}


#pagination button {
  width: 20%;
  padding: 8px 16px;
  margin: 0 4px;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#pagination button:disabled {
  background-color: #aaa;
  cursor: default;
}

.buttons-container {
  display: flex;
  justify-content: space-between;
}

.buttons-container button {
  width: 20%;
}

.tabs {
  display: flex;
  border-bottom: 2px solid #ccc;
  margin-bottom: 10px;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  margin-right: 5px;
}

.tab.active {
  background-color: #f0f0f0;
  border-color: #ccc;
  border-bottom: none;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  max-height: 400px;
  overflow-y: auto;
}

label {
  display: block;
}

.hidden {
  display: none;
}

.formulario {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.grupo {
  display: flex;
  align-items: center;
  gap: 5px;
}

.input-size {
  width: 40px;
  padding: 4px;
  box-sizing: border-box;
}

#history {
  max-height: 300px;
  overflow-y: auto;
  border: solid 3px;
  border-radius: 20px;
  border-color: #ccc;
}

#history table {
  padding: 15px;
  border-collapse: separate !important;
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.popup {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2e7d32;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.popup.show {
  opacity: 1;
}

.popup.error {
  background-color: #d32f2f;
}

.hidden {
  display: none;
}

/* estilos encabezados */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
  padding: 10px 0;
  border-bottom: 2px solid #e0e0e0;
}

.section-title {
  margin: 0;
  color: #2e7d32;
  font-size: 1.3rem;
}

.info-boxes {
  display: flex;
  gap: 10px;
}

.info-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 15px;
  min-width: 80px;
}

.info-label {
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 2px;
}

.info-value {
  font-size: 0.9rem;
  color: #333;
  font-weight: 600;
}