#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  background: #333;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  min-width: 220px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease-out;
  position: relative;
}

.toast-icon {
  margin-right: 8px;
  font-size: 1.2em;
}

.toast-close {
  position: absolute;
  top: 6px;
  right: 8px;
  cursor: pointer;
  font-weight: bold;
}

.toast-msg {
  white-space: pre-line; /* para el texto multilinea */
}

.toast-success { background: #30c552; }
.toast-error   { background: #dc3545; }
.toast-info    { background: #17a2b8; }
.toast-warning { background: #ffc107; color: #212529; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* UI.toast("Guardado con éxito", "success");
UI.toast("Error al conectar con el servidor", "error");
UI.toast("Actualizando datos...", "info", 6000);
UI.toast("Faltan campos obligatorios", "warning");
 */

  
/* --------------------------------------------------- pestañas ---------------------------------------------------- */
.tabs-nav {
  display: flex;
  list-style: none;
  padding: 0;
  margin-bottom: 10px;
  border-bottom: 2px solid #ccc;
}

.tabs-nav li {
  padding: 8px 16px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-bottom: none;
  background: #f5f5f5;
  margin-right: 4px;
  border-radius: 4px 4px 0 0;
}

.tabs-nav li.active {
  background: #fff;
  font-weight: bold;
  border-bottom: 2px solid #fff;
}

.tab-pane {
  display: none;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 0 4px 4px 4px;
  background: #fff;
}

.tab-pane.active {
  display: block;
}