@media screen and (max-width: 1280px) {
    .loading-content {
        height: auto;
        width: 90%;
        margin-top: 40px;
    }

    header {
        background: var(--cts-main-light);
        border-bottom: 1px solid var(--cts-main);
        box-shadow: var(--box-shadow);

        nav .burger-container {
            transform: rotate(45deg) scale(.7);
        }

        a.home {
            top: 20px;

            img {
                width: 50px;
            }
        }
    }

    main {
        display: flex;
        align-items: center;
        margin: 90px auto 20px auto;
        width: 100%;
        min-height: calc(100vh - 110px);
    }

    .entreprise {
        img {
            width: 150px;
        }
    }

    .app-container {
        margin-bottom: 50px;

        .app img {
            width: 80%;
        }
    }

    .container {
        overflow: auto;
        width: 100%;
        margin: 0;
    }

    .annees-filter {
        margin: 10px 0;
        width: 100%;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 5px;

        a, a.active, a:hover {
            border-radius: 10px;
            border: 2px solid var(--cts-main);
            padding: 5px 10px;
            font-size: .8em;
        }
    }

    .mobile-filters-host {
        display: none;
    }

    .mobile-filters-host.is-mobile {
        display: block;
        position: sticky;
        top: 70px;
        z-index: 100;
        width: 100%;
    }

    .mobile-filters-toggle {
        position: fixed;
        top: 25px;
        left: 50%;
        transform: translateX(-50%);
        border: 1px solid var(--cts-main);
        border-radius: 10px;
        background: var(--blocks);
        color: var(--cts-main);
        font-weight: bold;
        padding: 10px 15px;
        cursor: pointer;

        &:hover {
            transform: translateX(-50%) !important;
            color: var(--blocks);
        }
    }

    .mobile-filters-drawer {
        position: fixed;
        left: 0;
        right: 0;
        top: -110vh;
        max-height: 90vh;
        overflow: auto;
        background: var(--blocks);
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        box-shadow: var(--box-shadow);
        z-index: 110;
        transition: top .4s ease;
        padding: 20px 10px;

        &.is-open {
            top: 0;
        }

        .annees-filter {
            margin: 0 0 12px;
        }

        .sidenav {
            margin: 0;
            align-items: stretch;

            .dropdown-toggle {
                background: var(--cts-main);
                color: var(--blocks);
            }

            .dropdown-menu {
                border: 1px solid var(--cts-main-light);
            }

            .onglets {
                display: none;
            }

            .filter-form {
                margin: 0 auto;
            }
        }
    }

    .mobile-filters-close {
        border: 1px solid var(--cts-main);
        border-radius: 10px;
        background: transparent;
        color: var(--cts-main);
        padding: 5px 10px;
        cursor: pointer;
    }

    .mobile-filters-drawer-footer {
        display: flex;
        justify-content: center;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--cts-main-light);
    }

    .mobile-filters-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        border: 0;
        background: rgba(0, 0, 0, .35);
        z-index: 109;
        cursor: pointer;
        border-radius: 0;

        &.is-open {
            display: block;
        }
    }

    body.mobile-filters-open {
        overflow: hidden;
    }

    .suivi-container {
        height: auto;
        width: 100%;
    }

    .pro-stats-container {
        max-height: unset;
        width: 100%;
    }

    .pro-stats-panel {
        flex-direction: column;
    }

    .summary {
        flex-direction: row;
    }

    .chart-canvas-wrap {
        height: 240px;
    }

    .stats-container {
        display: flex;
        flex-wrap: wrap;
        max-height: none;
    }

    .stats-wrapper {
        height: 250px;
    }

    .pro-part-panel {
        width: calc(100% - 20px);
        height: 300px !important;
    }

    .graphique {
        height: 100%;
    }

    .previous .row {
        white-space: nowrap;
    }

    [data-ajax-results].panel-focus-mode {
        position: relative;
        inset: auto;
        z-index: 1;
        width: 100%;
        height: 100%;
        min-height: 72vh;
        max-height: none;
        margin: 0;
        padding: 8px;
        box-sizing: border-box;
        border-radius: inherit;
        overflow: hidden;
    }

    [data-ajax-results].panel-focus-mode > .panel-isolated {
        display: flex;
        flex-direction: column;
        height: 100%;
        max-height: 100%;
        min-height: 0;
        width: 100%;
    }

    [data-ajax-results].panel-focus-mode > .panel-isolated .stats-panel,
    [data-ajax-results].panel-focus-mode > .panel-isolated .pro-stats-panel {
        height: calc(100% - 34px);
        max-height: calc(100% - 34px);
        min-height: 0;
    }

    [data-ajax-results].panel-focus-mode .stats-wrapper,
    [data-ajax-results].panel-focus-mode .stats-wrapper.graphique {
        height: auto !important;
        min-height: 0;
    }

    [data-ajax-results].panel-focus-mode .chart-canvas-wrap {
        height: auto;
        min-height: 0;
        flex: 1 1 auto;
    }

    .pro-stats-container.panel-focus-mode {
        min-height: 72vh;
    }

    .table-wrapper {
        max-height: 80vh;
    }

    .form-wrapper {
        max-height: 70vh;
    }
}

@media screen and (max-width: 500px) {
    .container {
        height: 85vh;
    }

    .stats-wrapper {
        .names {
            max-width: 150px;
            box-sizing: border-box;

            .salarie-name {
                min-width: 0;
                overflow: hidden;
                text-align: left;
                text-overflow: ellipsis;
            }
        }
    }

    .col-part, .col-pro {
        min-width: 80px !important;
    }
}
