:root {

}
main {
  margin: 8em 2em;
  border: 1px solid #e5e7eb; /* Tailwind gray-200 */
  border-radius: 1em;
  padding: 2em;
}
/* body { 
  font-family: Arial, sans-serif; 
  margin: 2em; 
}

h2 { 
  margin-top: 2em; 
}

h3 { 
  margin-top: 0; 
  color: #333; 
  font-size: 1.1em; 
} */
h1,h2,h3, h4, h5, h6 {
  font-weight: bold;
}

h1{font-size: 1.5em;}
h2{font-size: 1.3em;}
h3{font-size: 1.2em;}
h4{font-size: 1.1em;}
h5{font-size: 1em;}
h6{font-size: 0.9em;}

input[type="number"] { 
  appearance: textfield;
  -moz-appearance: textfield;
}

.input[readonly] {
  pointer-events: none;
  user-select: none;
  color: green;
}

/* Estado de producción */
.estado-produccion {
  font-size: 0.9em;
  display: flex;
  align-items: center;
}

.deficit {
  color: red;
  font-weight: bold;
}

.superavit {
  color: green;
  font-weight: bold;
}

.result { 
  margin-bottom: 2em; 
  display: none;
}

/* label { 
  display: block; 
  margin-top: 1em; 
} */




/* input, select { 
  margin-top: 0.5em; 
  padding: 5px; 
  border: 1px solid #ccc; 
  border-radius: 3px; 
} */

.fecha-auto {
  background-color: #f8f9fa;
  color: #6c757d;
  font-weight: bold;
  cursor: not-allowed;
}

/* textarea { 
  margin-top: 0.5em; 
  padding: 5px; 
  border: 1px solid #ccc; 
  border-radius: 3px; 
  width: 100%; 
  min-height: 60px; 
  resize: vertical; 
} */

/* button { 
  margin-top: 1em; 
  padding: 8px 16px; 
  background: #007cba; 
  color: white; 
  border: none; 
  border-radius: 3px; 
  cursor: pointer; 
}

button:hover { 
  background: #005a87; 
} */

/* .result { 
  background: #f9f9f9; 
  padding: 1em; 
  border-radius: 5px; 
  overflow-y: auto; 
  font-size: 0.9em; 
} */

.endpoint { 
  color: #888; 
  font-size: 0.8em; 
}

.form-row { 
  display: flex; 
  gap: 1em; 
  align-items: end; 
}

.form-row label { 
  flex: 1; 
}

.producto-item { 
  background: #f5f5f5; 
  padding: 1em; 
  margin: 0.5em 0; 
  border-radius: 5px; 
  border: 1px solid #ddd; 
}

#productos-container { 
  margin: 1em 0; 
}

.producto-lote-item { 
  background: #e8f4f8; 
  padding: 0.8em; 
  margin: 0.3em 0; 
  border-radius: 3px; 
  border: 1px solid #b8dae6; 
}

.producto-lote-item label { 
  margin-top: 0.5em; 
}


/* Estilos para la nueva vista de productos */
#productos-lote-lista {
  transition: all 0.2s ease;
}



/* .producto-tienda-item { 
  background: #f9f9f9; 
  padding: 1em; 
  margin: 0.5em 0; 
  border-radius: 5px; 
  border: 1px solid #ddd; 
} */

/* .tiendas-cantidades { 
  background: #f0f8ff; 
  padding: 1em; 
  margin-top: 1em; 
  border-radius: 3px; 
  border: 1px solid #b0d4f1; 
} */

/* .tiendas-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 1em; 
  margin-top: 0.5em; 
} */

/* Estilos para totales por tienda en el footer */
#tiendas-totales-grid {
  display: flex;
  justify-content: space-around;
  gap: 1em;
}

/* Estilo simple para los valores de totales */
.tienda-total-valor {
  display: inline-block;
  margin: 0 0.5em;
}

/* .tienda-cantidad { 
  display: flex; 
  align-items: center; 
  gap: 0.5em; 
}

.tienda-cantidad label { 
  margin: 0; 
  font-weight: bold; 
  min-width: 100px; 
}

.tienda-cantidad input { 
  flex: 1; 
} */

/* Estilos para tarjetas de lotes */
.lotes-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
  height: 400px;
  overflow: scroll;
}

/* .lote-card {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 1rem;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #f9f9f9;
} */

.lote-card:hover {
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* .lote-card.selected {
  border: 2px solid #007bff;
  background-color: #e6f2ff;
} */

/* .lote-card h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #007bff;
} */

/* .lote-card p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
} */

.lote-productos {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #ccc;
}

.lote-card input[type="radio"] {
  display: none;
}

/* Estilos para la tabla de pedidos */
/* .table-container {
  margin: 1rem 0;
  overflow-x: auto;
}

.pedidos-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.pedidos-table thead th {
  background-color: #f2f2f2;
  padding: 0.75rem;
  border-bottom: 2px solid #ddd;
  text-align: left;
}

.pedidos-table tbody tr {
  border-bottom: 1px solid #ddd;
}

.pedidos-table td {
  padding: 0.75rem;
  vertical-align: middle;
}

.pedidos-table td:first-child {
  width: 30%;
}

.pedidos-table td:nth-child(2) {
  width: 60%;
}

.pedidos-table td:last-child {
  width: 10%;
  text-align: center;
} */

/* Estilos para el modal de gestión de usuarios de tienda */
.modal-usuarios-tienda {
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body .dialog > article {
    z-index: 50;
    --tw-translate-x: calc(calc(1/2*100%)*-1) !important;
    width: 100%;
    max-height: calc(100% - 2rem);
    translate: var(--tw-translate-x)var(--tw-translate-y) !important;
    --tw-translate-y: calc(calc(1/2*100%)*-1) !important;
    translate: var(--tw-translate-x)var(--tw-translate-y) !important;
    gap: calc(var(--spacing)*4);
    border-radius: var(--radius-lg);
    border-style: var(--tw-border-style);
    background-color: var(--color-background);
    padding: calc(var(--spacing)*6);
    --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a) !important;
    box-shadow: var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);
    --tw-scale-x: 95% !important;
    --tw-scale-y: 95% !important;
    --tw-scale-z: 95% !important;
    scale: var(--tw-scale-x)var(--tw-scale-y) !important;
    transition-property: all;
    transition-timing-function: var(--tw-ease,var(--default-transition-timing-function));
    transition-duration: var(--tw-duration,var(--default-transition-duration));
    border-width: 1px;
    flex-direction: column;
    display: flex;
    position: fixed;
    top: 50%;
    left: 50%;
  }

