.swal-responsive-popup {
  max-width: 100vw !important;
  width: 100% !important;
  left: 0 !important;
  margin: 0 auto !important;
  padding: 0.5em !important;
  box-sizing: border-box;
}

.swal2-modal {
  max-width: 100vw !important;
  width: 100% !important;
}

@media screen and (max-width: 600px) {
  .swal-responsive-popup {
    max-width: 98vw !important;
    padding: 0.5em !important;
  }

  .swal2-modal {
    max-width: 98vw !important;
    overflow: auto !important;
    padding: 0.5em !important;
  }
}

/* For daterangepicker menu and select2 dropdowns */
.daterangepicker,
.rs-picker-daterange-menu {
  z-index: 11000 !important; /* or higher than SweetAlert2 modal */
}

.select2-dropdown {
  z-index: 11000 !important;
}



/* El contenedor principal que simula el fieldset */
.form-section {
  border: 1px solid #ddd; /* El borde de la caja */
  border-radius: 8px;       /* Esquinas redondeadas */
  padding: 2rem 1rem 1rem 1rem; /* Relleno interior (más arriba para el título) */
  position: relative;       /* Esencial para posicionar el título */
}

/* El contenedor del título que simula el legend */
.form-section-header {
  position: absolute; /* Lo sacamos del flujo normal */
  top: -0.8em;        /* Lo subimos para que se siente sobre el borde */
  left: 12px;         /* Lo separamos un poco de la izquierda */
  background: #fff;   /* Le damos un fondo para "tapar" el borde */
  padding: 0 8px;     /* Pequeño relleno a los lados */

  /* Estilos para el texto y el botón */
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1em;
  color: #555;
}

.swal2-modal {
    overflow: visible !important;
}




/*
 * ESTILOS PARA IGUALAR FIELDSET Y LEGEND AL DISEÑO DE .form-section
 */

/* Estilo para la caja del fieldset, imitando a .form-section */
#swal-form fieldset.border {
    border: 1px solid #ddd !important; /* El borde de la caja */
    border-radius: 8px;                /* Esquinas redondeadas */
    padding: 2rem 1rem 1rem 1rem;      /* Relleno interior */
    position: relative;                /* Necesario para posicionar el legend */
}

/* Estilo para el título legend, imitando a .form-section-header */
#swal-form fieldset.border > legend.float-none {
    position: absolute;   /* Lo sacamos del flujo normal */
    top: -0.8em;          /* Lo subimos para que se siente sobre el borde */
    left: 12px;           /* Lo separamos un poco de la izquierda */
    background: #fff;     /* Le damos un fondo para "tapar" el borde */
    padding: 0 8px;       /* Pequeño relleno a los lados */
    width: auto;          /* Ancho automático basado en el contenido */

    /* Estilos de texto */
    font-weight: 600;
    font-size: 1em;
    color: #555;
}

.margin-top-filter-responsive{
  margin-top: 40px !important;
}

.swal2-title{
  margin: 10px !important;
  font-size: 20px !important;
}

.btn-custom-filter-responsive{
  color: #555;
  border-color: #555;
}


#mobileFilterBtn{
    display: none;
}

.margin-top-responsive{
  margin-top: 10rem;
}
.customer-column {
    white-space: normal !important;
    word-break: break-word;
}


.dtr-details > li[data-dtr-index="4"] span.dtr-data {
    white-space: normal !important; /* Permite que el texto salte a la siguiente línea */
    word-break: break-word;       /* Rompe palabras largas si es necesario */
    display: inline-block;
    vertical-align: top;
}