div.mod_sidebar, div.mod_sidebar_module {
    position: fixed;
    top: 0;
    right: 0;
    width: auto;
    padding: 0;
    bottom: 0;
    align-self: center;
    > div {
        padding: 0.25em 0;
    }

    @media (max-width:991px){
        display: none;
    }
}
.mod_bootstrapNavbar {
    @media (max-width: 991.98px) {
        .mod_sidebar, .navbar-collapse .mod_sidebar_module {
            display: flex;
            justify-content: center;
            position: relative;
            top: 0;
            > div {
                padding: 0 0.25em;
            }
        }
    }
}
div.mod_sidebar.open, div.mod_sidebar_module.open {
    z-index: 1100;
}

div.mod_sidebar > div, div.mod_sidebar_module > div {
    position: relative;
}

div.mod_sidebar div.form, div.mod_sidebar_module div.form {
    position: absolute;
    top: 0px;
    right: 60px;
    padding: 10px;
    border: 2px solid #CCCCCC;
    background-color: #FFFFFF;
    display: none;
    box-shadow: 0px 5px 15px #DEDEDE;
}

div.mod_sidebar_module {
    .hasForm div.form {
        top: -15em;
        @media (max-width: 991px) {
            width: 100%;
            min-width: 15em;
            height: 100%;
            min-height: 32em;
            top: -20em;
            z-index: 2;
            left: -3em;
        }
    }
    .hasForm:first-child div.form {
        top: 0;
        @media (max-width: 991px) {
            left: 0;
            width: 100%;
            right: 0;
            min-width: 16em;
            height: 100%;
            min-height: 8em;
            top: -10em;
        }
    }
}

div.mod_sidebar img, div.mod_sidebar_module img {
    cursor: pointer;
    width: 50px;
    height: 50px;
}

div.mod_sidebar.open img, div.mod_sidebar_module.open img {
    opacity: 0.3;
}
div.mod_sidebar.open img.open, div.mod_sidebar_module.open img.open {
    opacity: 1;
}

div.mod_sidebar .submit_container, div.mod_sidebar_module .submit_container {
    text-align: right;
}

div.mod_sidebar form label, div.mod_sidebar_module form label {
    display: none;
}
div.mod_sidebar form [type="checkbox"] + label, div.mod_sidebar_module form [type="checkbox"] + label {
    display: inline;
}

.form-check input {
    min-width: 1em;
}

div.mod_sidebar input.text, div.mod_sidebar_module input.text {
    margin-bottom: 5px;
    min-width: 175px;
    width: calc( 100% - 10px );
    padding: 0 4px;
    border:1px solid #CCCCCC;
    height: 23px;
    line-height: 23px;
    font-family: Arial;
    font-size: 12px;
}
div.mod_sidebar textarea, div.mod_sidebar_module textarea {
    padding: 4px;
    border: 1px solid #CCCCCC;
}
div.mod_sidebar p, div.mod_sidebar_module p {
    margin: 0;
    padding: 0;
    margin-bottom: 5px;
}