body { font-family: Arial, sans-serif; margin: 0; font-size: 14px;background-color: white;}
#search { margin: 5px; padding: 10px 7px; width:calc(100% - 30px) ;border-radius: 5px; }
.container { height: auto;width: 100%;background-color: whitesmoke;}

.item { 
    display: grid;
    grid-template-columns: 105px calc(100% - 105px);
    padding: 5px; 
    background: white; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
    margin: 5px;
    width: calc(100% - 22px);
   
 
}

.d-block{display: block;}
.d-none{display: none;}

.quantity-container { display: flex; align-items: center; gap: 1px; }
.quantity-input { width: 39px; padding: 5px; text-align: center; }

.btn { padding: 7px 10px; background-color: #005f20; color: white; border: none; cursor: pointer; text-decoration: none;}
.btn_vider { padding: 7px 10px; background-color: red; color: white; border: none; cursor: pointer; text-decoration: none;}
.export{margin: 3px 10px;}
.decrease { border-radius: 0px;}
.increase { border-radius: 0px ;}
.btn:hover { background-color: #027e2b; }
.totals {  padding: 5px; border-radius: 5px; padding-top: 10px;display: grid;grid-template-columns: 44% 28% 28%;font-size: 16px;}
.layout_pr_pv_sc{
    display: grid;
    grid-template-columns: 45% 55% ;  
    text-align: left;
    max-width: 450px;
    
}

.total_g{height: 25px;width: 100%;}

.layout_top{height: 68px;margin: 0 auto;overflow: auto;max-width: 1100px;width: 100%;background-color: #01a538;color: white;}
.layout_body{height: calc(100vh - 155px);margin: 0 auto;max-width: 1100px;overflow: auto;width: calc(100% - 4px);background-color: whitesmoke;padding: 1px;}
.layout_buttom{height: 85px;width: calc(100% - 20px);margin: 0 auto;width: 500px;max-width: 1100px;width: 100%;background-color: #01a538;;color: white;}

.layout{
    width: calc(100% - 4px);
    max-width: 1100px;
    margin: 0 auto;
    height: 100vh;
    border-left: 2px solid #969696;
    border-right: 2px solid #969696; 
     
}


/* Barre de navigation */
.navbar {
    display: grid;
    grid-template-columns: 90px calc(100% - 90px) ;
    align-items: center;

    background-color: #333;

height: 68px;
    top: 0;
    left: 50%;
    position: fixed;
    transform: translateX(-50%);
    max-width: 1100px;
    width: 100%;
   
}

/* Dropdown des drapeaux */
.dropdown {
    position: relative;
    display: inline-block;
  
   
}

.dropbtn {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    margin: 5px 0 0 5px;
 }

.flag {
    width: 30px;
    height: auto;
    border-radius: 50%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 120px;
    z-index: 1;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    padding: 8px;
    text-decoration: none;
    color: black;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown-content img {
    margin-right: 8px;
    width: 30px;
}

.dropdown:hover .dropdown-content {
    display: block;
}



#search {
    margin-left: 20px;
    width: calc(100% - 50px);
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Menu burger */
.menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    margin:0 5px 5px 5px;

}



.menu-btn:hover {
    color: #ddd;
}

.op_qte
{
display: grid;   
grid-template-columns: 25px 54px 25px;
height: 30px; 
}
.pdf{background-color: rgb(177, 0, 0);}
.vider{background-color: red;}
.round{border-radius: 5px;margin-right: 5px;}
.round_img{border-radius: 8px;}
.w1{width: 100px;}
.w2{width: 60px;}
.w3{width: 100px;}
.w4{width: 100px;}
.w5{width: calc(100% - 360px);}
.active{background-color: #027e2b;;}

.round_c1{border-radius: 5px 0 0 5px ;} 
.round_c2{border-radius:0 5px 5px 0;}
.round_c3{border-radius: 5px;}
.round_c4{border-radius: 5px;}
.layout_btn{
    display: flex;
    width: 100%;
}

        /* Overlay */
        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
        }

        /* Boîte de dialogue */
        .confirm-box {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
            text-align: center;
            width: 300px;
        }

        .confirm-buttons {
            margin-top: 20px;
        }



        .btn-ok {
            background-color: #28a745;
            color: white;
        }

        .btn-cancel {
            background-color: #dc3545;
            color: white;
        }

        .button {
            padding: 10px 15px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            margin: 5px;
        }


        
        .msg_center {
            width: 100%;
            height: calc(100vh - 160px);
            display: none;
            justify-content: center; /* Centre horizontalement */
            align-items: center; /* Centre verticalement */
            font-size: medium;
        }


        
        /* Bouton pour ouvrir la nav */
        .open-btn {
            position: fixed;
            top: 20px;
            left: 20px;
            background-color: #3498db;
            color: white;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
            border-radius: 5px;
        }

        .sidebar {
    position: fixed;
    top: 0;
    left: Calc(50% -250px);
    width: 0; /* Caché au départ */
    height: calc(100vh - 50px);
    background-color: #008533;
    padding-top: 50px;
    transition: width 0.3s ease-in-out;
    overflow: hidden; /* Empêche le contenu d'apparaître */
}

/* Correction pour les liens */
.sidebar a {
    display: block;
    color: white;
    padding: 15px;
    text-decoration: none;
    opacity: 0; /* Caché au début */
    transition: opacity 0.3s ease-in-out;
    
}

.sidebar.active {
    width: 250px;
}

/* Rendre les liens visibles quand la sidebar est ouverte */
.sidebar.active a {
    opacity: 1;
}


        /* Bouton pour fermer */
        .close-btn {
            position: absolute;
            top: 4px;
            right: 20px;
            font-size: 24px;
            color: white;
            cursor: pointer;
        }
        .sidebar a:hover {
            background-color: #1a252f; /* Couleur plus foncée au survol */
        }
        
        /* Effet active (élément sélectionné) */
        .sidebar a.active {
            background-color: #005f00; /* Couleur différente pour le bouton actif */
        }
        
        /* Afficher les liens quand la sidebar est ouverte */
        .sidebar.active a {
            opacity: 1;
        }



        .lang{
            display: flex;
            width: 100%;
        }


        
  
  
  /* If the screen size is 600px wide or less, set the font-size of <div> to 30px */
  @media screen and (max-width: 1100px) {
    .layout{
border: 0;
width: 100%;
    } 


  }
