/* ============================================================
   top-actions.css — botones de utilidad (tema / volver al inicio)
   Estilo basado en el botón de tema de tienda/ (.td-icon-btn):
   cuadrado de 42px, radio 12px, icono centrado.
   Usa color heredado y fondo translúcido para funcionar igual
   sobre cabeceras de color y sobre tarjetas blancas.
   ============================================================ */

.mx-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(127, 127, 127, .28);
  background: rgba(127, 127, 127, .14);
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  flex: 0 0 auto;
  transition: background .15s ease, border-color .15s ease;
}

.mx-icon-btn:hover {
  background: rgba(127, 127, 127, .26);
  border-color: rgba(127, 127, 127, .42);
  color: inherit;
}

.mx-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(127, 127, 127, .28);
  background: rgba(127, 127, 127, .14);
  color: inherit;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background .15s ease, border-color .15s ease;
}

.mx-home-btn:hover {
  background: rgba(127, 127, 127, .26);
  border-color: rgba(127, 127, 127, .42);
  color: inherit;
}

/* Sobre fondos de marca (cabeceras azules, pantallas de login): texto blanco. */
.mx-on-brand.mx-icon-btn,
.mx-on-brand.mx-home-btn {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .28);
}

.mx-on-brand.mx-icon-btn:hover,
.mx-on-brand.mx-home-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, .26);
  border-color: rgba(255, 255, 255, .40);
}

[data-bs-theme="dark"] .mx-icon-btn,
[data-bs-theme="dark"] .mx-home-btn {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .18);
}

[data-bs-theme="dark"] .mx-icon-btn:hover,
[data-bs-theme="dark"] .mx-home-btn:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .30);
}

@media (max-width: 575.98px) {
  .mx-home-btn { padding: 0 10px; }
  .mx-home-btn span { display: none; }
}
