﻿

#sidebar {
    display: none;
    position: fixed;
    right: -600px; /* Empieza fuera de la vista */
    top: 0;
    width: 600px;
    height: 100%;
    background-color: #f8f9fa;
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
    overflow: auto;
    transition: right 0.3s ease; /* Animación de deslizamiento */
    /* Neutralise Bootstrap .container auto-margins so content fills the full 600px */
    max-width: 600px;
    padding-left: 16px;
    padding-right: 16px;
}


#sidebar.show {
    right: 0; /* Mueve la sidebar a la vista */
}

#sidebar-loading-Msg {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 1.2em;
}

/* Media query para pantallas más pequeñas */
@media (max-width: 600px) {
    #sidebar {
        width: 85%; /* Ocupa el 100% del ancho en pantallas pequeñas */
        right: -85%;
    }

    #sidebar.show {
        right: 0;
    }
}
