@media only screen and (max-width: 991.98px) {
    #menu_interno {
        height: auto !important;
        min-height: auto !important;
        padding: 5px 15px;
    }

    #menu_interno .navbar-collapse {
        background-color: #0c9331;
        text-align: center;
        width: 100%;
        margin-top: 10px;
    }

    #menu_interno .nav-item {
        min-height: auto !important;
        padding: 0.5rem 0 !important;
        border-bottom: 1px solid #47a700;
        background-color: transparent !important;
    }

    #menu_interno #navbarSupportedContent .navbar-nav {
        min-height: auto !important;
    }

    #appInterna {
        padding-top: 1rem !important;
        overflow-x: clip;
    }

    #contenedor-dashboard {
        padding-top: 1rem !important;
    }

    #c_iconosDashboard { flex-wrap: wrap !important; }
    .tablaOrdenCompra { overflow: auto; }
}

@media only screen and (max-width: 576px) {
    .dataTables_wrapper,
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dataTables_scroll {
        overflow-x: auto;
    }
}

.date-picker{
    padding: 5px;
    background-color: #24a13b;
    font-family: "Roboto Mono",monospace;
    color: #fff;
    border: none;
    outline: none;
    border-radius: 5px;
    box-shadow: 3px 3px 5px rgb(197, 197, 197);
    font-weight: 600;
    margin: 10px;
}

::-webkit-calendar-picker-indicator{
    background-color: #fff;
    border-radius: 3px;
    padding: 5px;
    cursor: pointer;
}

.date-consult{
    position: relative;
    margin-bottom: 1rem;
}

.dataTables_filter{
    z-index: 25;
}

#example2_wrapper{
    padding-top: 2rem !important;
}

/* ========================================
   Fix SweetAlert2: Conflicto con style.min.css
   (versión vieja usa ::before) y Bootstrap
   (box-sizing: border-box global).
   ======================================== */

/* 1. Corregir box-sizing que Bootstrap rompe */
.swal2-icon,
.swal2-icon *,
.swal2-icon *::before,
.swal2-icon *::after {
    box-sizing: content-box !important;
}

/* 2. ELIMINAR pseudo-elementos duplicados del CSS viejo.
      El JS v10 usa .swal2-icon-content en su lugar. */
.swal2-icon.swal2-question::before,
.swal2-icon.swal2-warning::before,
.swal2-icon.swal2-info::before {
    content: none !important;
    display: none !important;
}

/* 3. Dimensiones correctas del icono.
      NO usar display !important: el JS controla la visibilidad
      con inline styles (display:none / display:flex). */
.swal2-icon {
    position: relative;
    align-items: center;
    justify-content: center;
    border: 4px solid transparent;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin: 1.25em auto 1.875em;
    padding: 0;
    /* Resetear font-size que style.min.css pone en 4rem */
    font-size: 1rem !important;
    line-height: 80px;
    cursor: default;
    user-select: none;
}

/* 4. Contenido del icono (el caracter ?, !, i) */
.swal2-icon .swal2-icon-content {
    align-items: center;
    justify-content: center;
    /* Usar px absolutos: ~60px para que quepa dentro del circulo de 80px */
    font-size: 60px !important;
    line-height: 1;
}

/* 5. Colores por tipo */
.swal2-icon.swal2-error {
    border-color: #f27474 !important;
}
.swal2-icon.swal2-error .swal2-x-mark {
    position: relative !important;
}
.swal2-icon.swal2-warning {
    border-color: #facea8 !important;
    color: #f8bb86 !important;
}
.swal2-icon.swal2-info {
    border-color: #9de0f6 !important;
    color: #3fc3ee !important;
}
.swal2-icon.swal2-question {
    border-color: #c9dae1 !important;
    color: #87adbd !important;
}
.swal2-icon.swal2-success {
    border-color: #a5dc86 !important;
}
.swal2-icon.swal2-success [class^='swal2-success-line'] {
    position: absolute;
    height: 5px;
    border-radius: 2px;
    background-color: #a5dc86;
}
.swal2-icon.swal2-success .swal2-success-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    top: -4px;
    left: -4px;
    border: 4px solid rgba(165, 220, 134, 0.3); 
    border-radius: 50%;
}

/* 6. Fondo siempre blanco en popup y toast */
.swal2-popup {
    background: #fff !important;
    color: #545454 !important;
}
.swal2-toast {
    background: #fff !important;
}