/* Botón flotante — descargar PDF (estilo WhatsApp) */

.fab-export {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 1000;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #d4a5a5;
  color: #fff;
  box-shadow: 0 4px 18px rgba(166, 123, 125, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.fab-export[hidden] {
  display: none !important;
}

.fab-export:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(166, 123, 125, 0.48);
}

.fab-export:active {
  transform: scale(0.96);
}

.fab-export:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}

.fab-export svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fab-export--loading svg {
  animation: fab-spin 0.75s linear infinite;
}

@keyframes fab-spin {
  to {
    transform: rotate(360deg);
  }
}

@media print {
  .fab-export {
    display: none !important;
  }
}
