@media (max-width: 991.98px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    @supports (height: 100dvh) {
        html,
        body {
            height: 100dvh;
        }
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    img,
    svg,
    video,
    canvas {
        max-width: 100%;
    }

    #demo_config {
        display: none !important;
    }

    .navbar-footer {
        display: none !important;
    }

    .navbar {
        min-width: 0;
    }

    .navbar > .container-fluid {
        min-width: 0;
        gap: 0.5rem;
    }

    .navbar-brand {
        min-width: 0;
    }

    .navbar-brand h3 {
        font-size: 1.35rem;
        line-height: 1.1;
    }

    .navbar-search {
        min-width: 0;
    }

    .page-content,
    .content-wrapper,
    .content-inner {
        min-width: 0;
        max-width: 100%;
    }

    .content {
        min-width: 0;
        max-width: 100%;
        padding: 0.75rem !important;
    }

    .card {
        max-width: 100%;
    }

    .card-body,
    .card-header,
    .modal-body,
    .modal-header,
    .modal-footer {
        min-width: 0;
    }

    .table-responsive,
    .table-scroll {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive > table,
    .table-scroll > table {
        margin-bottom: 0;
    }

    .dropdown-menu {
        max-width: calc(100vw - 1.5rem);
    }

    .offcanvas {
        max-width: 100vw;
    }

    .modal-dialog {
        max-width: 100%;
    }

    .btn,
    button,
    input,
    select,
    textarea {
        min-width: 0;
    }

    .bookings-card-shell {
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .bookings-card-shell .bookings-page {
        width: 100%;
        max-width: 100%;
    }

    .bookings-card-shell .panel-toolbar {
        margin-inline: 0 !important;
    }

    .bookings-card-shell .panel-toolbar-right {
        display: flex !important;
        justify-content: stretch !important;
        width: 100% !important;
    }

    .bookings-card-shell .panel-toolbar-right .btn {
        flex: 1 1 100%;
        width: 100% !important;
    }

    .bookings-card-shell .toolbar-search .input-group {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: stretch;
    }

    .bookings-card-shell .toolbar-search .input-group-text {
        grid-column: 1;
        grid-row: 1;
        display: inline-flex;
        align-items: center;
    }

    .bookings-card-shell .toolbar-search .form-control {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    .bookings-card-shell .toolbar-search-dropdown {
        grid-column: 1 / -1;
        position: static;
        width: 100%;
        max-width: 100%;
        margin-top: 0.375rem;
    }

    .bookings-card-shell .booking-kpis,
    .bookings-card-shell .week-controls,
    .bookings-card-shell #bookings-list-mobile {
        margin-inline: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .content {
        padding: 0.625rem !important;
    }

    .card-header {
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .card-header > .d-flex,
    .card-header > form,
    .card-header .toolbar-actions {
        width: 100%;
        min-width: 0;
    }

    .card-header > .d-flex {
        align-items: stretch !important;
        flex-direction: column;
    }

    .card-header form.d-flex {
        width: 100%;
        align-items: stretch !important;
        flex-wrap: wrap;
    }

    .card-header .dropdown,
    .card-header .dropdown > .btn,
    .card-header .btn {
        max-width: 100%;
    }

    .card-header .toolbar-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .card-header .toolbar-actions > *,
    .card-header .toolbar-actions .btn,
    .card-header > .btn,
    .card-header > a.btn {
        width: 100%;
    }

    .card-header h1,
    .card-header h2,
    .card-header h3,
    .card-header h4,
    .card-header h5 {
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .login-form {
        width: min(100%, 420px);
        padding-inline: 0.75rem;
    }

    .login-form .card-body {
        padding: 1.25rem;
    }

    .login-form .row > [class*="col-6"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .login-form img {
        width: min(100%, 240px);
        height: auto;
    }

    .login-form .btn {
        white-space: normal;
        line-height: 1.25;
    }
}
