@media (max-width:1200px) {
    .side-wrapper-tools {
        width: 220px
    }

    #content-main {
        flex-direction: column-reverse
    }

    #changelist,
    .side-wrapper {
        width: 100% !important;
        padding: 5px
    }

    #changelist {
        max-width: 100%
    }

    .card .card-content {
        width: 100%
    }

    #changelist-search>div {
        max-width: 100% !important
    }

    .inline-group .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(290px, 1fr))
    }

    .module {
        margin-right: 0
    }
}

@media (max-width:1024px) {
    #header {
        flex-direction: row !important
    }

    #header #site-name {
        top: 0
    }

    h1 {
        display: none
    }

    .js-inline-admin-formset.inline-group {
        overflow: visible
    }
}

@media (max-width:992px) {

    #header #site-name,
    #header #user-tools {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        width: 100%
    }

    #container.indent {
        padding-left: 0
    }
}

@media (max-width:767px) {
    .aligned .form-row>div.input-field {
        width: 100%;
        display: block
    }

    .aligned .input-field label+div.readonly {
        margin-top: 30px
    }
}

@media (max-width:576px) {
    #header {
        height: 150px !important
    }

    #user-tools {
        display: flex;
        flex-direction: column
    }

    #user-tools a {
        margin: 0 auto;
        padding-top: 5px;
        padding-bottom: 5px
    }
}