@media (min-width: 992px) {
    #main.utenti > .content {
        top: 45px;
        height: calc(100% - 45px) !important;
    }
}

@media (max-width: 1024px) {
    #nav-mobile .nav-mobile-links {
        display: grid !important;
        gap: 0;
    }

    #nav-mobile .nav-mobile-links.nav-customer {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    #nav-mobile .nav-mobile-links.nav-end-user {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #nav-mobile .nav-mobile-links .nav-btn {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        padding-inline: 2px;
    }

    #nav-mobile .nav-mobile-links .nav-btn span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #main.end-users .header-mobile > .d-flex:first-child {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #main.end-users .header-mobile .nav-btn {
        width: 100%;
        min-width: 0;
        margin-bottom: 0 !important;
        padding-inline: 6px;
        white-space: nowrap;
    }

}

@media (min-width: 769px) and (max-width: 1024px) {
    #main.risultati .table-container table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    #main.risultati .table-container thead th,
    #main.risultati .table-container tbody td {
        min-width: 0;
        width: auto;
        padding-inline: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #main.risultati .table-container th:nth-child(1) { width: 15%; }
    #main.risultati .table-container th:nth-child(2) { width: 15%; }
    #main.risultati .table-container th:nth-child(3) { width: 15%; }
    #main.risultati .table-container th:nth-child(4) { width: 15%; }
    #main.risultati .table-container th:nth-child(5) { width: 16%; }
    #main.risultati .table-container th:nth-child(6) { width: 15%; }
    #main.risultati .table-container th:nth-child(7) { width: 9%; }
}

@media (max-width: 480px) {
    #navbar .logo img {
        max-width: 200px;
    }

    #navbar .menu {
        gap: 4px;
    }

    #navbar .log-out,
    #navbar .lang-selector {
        padding-inline: 6px;
    }
}
