/* --- Sidebar Styles --- */
.side-nav {
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #95a5a6;
    margin: 1.5rem 0 0.5rem 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.side-nav-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.side-nav-item i {
    width: 25px;
    font-size: 1.1rem;
    margin-right: 10px;
}

.side-nav-item:hover {
    background: #f1f4f9;
    color: #3498db;
    padding-left: 1.2rem;
}

.side-nav-item.active {
    background: #e1f0fa;
    color: #2980b9;
    font-weight: bold;
}

/* --- Mobile Logic --- */
.mobile-nav-toggle {
    display: none;
    /* Caché sur PC */
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    #mainSidebar {
        display: none;
        /* Caché par défaut sur mobile */
        position: fixed;
        top: 50px;
        left: 0;
        width: 100%;
        height: calc(100vh - 50px);
        z-index: 1000;
        background: #fff;
        overflow-y: auto;
    }

    #mainSidebar.open {
        display: block;
    }

    .column-80 {
        width: 100% !important;
        /* Le contenu prend toute la place */
    }
}

/* Couleur spécifique pour le module production */
.active-prod {
    background: #fdf2e9 !important;
    color: #d35400 !important;
    border-left: 4px solid #e67e22;
    font-weight: bold;
}

.exit-prod:hover {
    color: #7f8c8d;
    background: #f8f9fa;
}

/* On réutilise les mêmes règles mobiles que le sidebar principal */
@media (max-width: 768px) {
    #productionSidebar {
        display: none;
        position: fixed;
        top: 50px;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: #fff;
    }

    #productionSidebar.open {
        display: block;
    }
}