.factura {
    font-size: 60%
}

/* Clase temporal para modo captura PDF */
.printing-mode {
  width: 800px !important;
  max-width: 800px !important;
  min-width: 800px !important;
  position: absolute !important;
  left: -9999px !important;
  top: 0 !important;
  overflow: visible !important;
}

.printing-mode .factura {
  font-size: 100% !important;
  width: 100% !important;
  overflow: visible !important;
}

.printing-mode table {
  page-break-inside: auto !important;
  width: 100% !important;
}

.printing-mode tr {
  page-break-inside: avoid !important;
  page-break-after: auto !important;
}

@media print {
  @page {
    margin: 0; /* Eliminar márgenes en la impresión */
  }

  body {
    margin: 0; /* Eliminar márgenes del contenido */
  }
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.centered-alert {
  font-size: 1.2em;
  padding: 20px 40px 20px 30px; /* Extra padding on right for close button */
  border-radius: 8px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative; /* Ensure close button is positioned relative to alert */
}

/* Estilos para el botón de cerrar */
.alert-dismissible .btn-close {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0;
  background: none;
  border: none;
  font-size: 1em;
  line-height: 1;
  cursor: pointer;
}