.body-layout {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-bar {
    height: 60px;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1040;
}

.content-wrapper {
    display: flex;
    flex: 1;
    margin-top: 60px;
    overflow: hidden;
}

.sidebar {
    background-color: #f8f9fa;
    border-right: 1px solid #ddd;
    width: 250px;
    height: calc(100vh - 60px); /* Altezza fissa per la sidebar */
    position: fixed;
    top: 60px; /* Altezza della barra superiore */
    z-index: 1030;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease-in-out;
}

.fs-small {
    font-size: 0.7rem;
}

.sidebar.active {
    transform: translateX(0); /* Sidebar visibile in modalità mobile */
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - 60px);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%); /* Sidebar nascosta su mobile */
    }

    .sidebar.active {
        transform: translateX(0); /* Sidebar visibile su mobile */
    }

    .main-content {
        margin-left: 0;
    }

    .overlay.active {
        display: block; /* L'overlay è visibile su mobile */
    }
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1020;
}

.overlay.active {
    display: block;
}





.body-login {
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}
.login-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 400px;
    width: 100%;
}
.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Arial', sans-serif;
    color: #333;
}
.login-container .form-label {
    color: #555;
}
.login-container .btn-primary {
    width: 100%;
}
.login-container .form-text {
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
}

tr.collapse-wrapper:has(.collapse:not(.show)) {
    display: none;
}