/* Estilos personalizados adicionales sobre Tailwind CSS */

.menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #cbd5e0;
  transition: all 0.2s;
}

.menu-item:hover {
  background-color: #334155;
  color: #ffffff;
}

.menu-item.active {
  background-color: #0284c7;
  color: #ffffff;
  font-weight: 600;
}

/* Tabla adaptable en móviles */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 8px;
  text-align: left;
  border: 1px solid #e2e8f0;
}

th {
  background-color: #f8fafc;
  color: #475569;
  font-size: 0.8rem;
  text-transform: uppercase;
}

input[type="text"], input[type="number"] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-size: 0.875rem;
  outline: none;
}

input[type="text"]:focus, input[type="number"]:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

/* Estados de Validación de Inputs */
input.input-valid {
  border-color: #16a34a !important;
  background-color: #f0fdf4 !important;
  color: #15803d !important;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2) !important;
}

input.input-warning {
  border-color: #eab308 !important;
  background-color: #fefce8 !important;
  color: #a16207 !important;
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.2) !important;
}

input.input-invalid {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
  color: #b91c1c !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2) !important;
}

/* Tooltip / Mensaje flotante de ayuda */
.input-hint {
  font-size: 0.75rem;
  margin-top: 2px;
  font-weight: 500;
}
.hint-warning { color: #d97706; }
.hint-invalid { color: #dc2626; }
.hint-valid { color: #16a34a; }