*{
    margin:0;
    padding:0;
    box-sizing: border-box;
    font-family: 'Nunito',sans-serif;
    color:black;
    transition: 0.1s;
}

body
{
    width: 100%;
    height: 100vh;
    background-color: white;
    -webkit-tap-highlight-color: transparent;

}

.header
{
    width: 100%;
    height: 90px;
    padding: 30px;
    padding-bottom:0;
    display: flex;
    justify-content: space-between;
}

.headerlogo
{
    height: 30px;
    aspect-ratio: 1/1;
}

.headerlogo img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.headeraccount
{
    height: 100%;
    display: flex;
}

.headeraccountimage
{
    height: 35px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.headeraccountimage img
{
    width: 100%;
    height: 100%;
    user-select: none;
    pointer-events: none;
}

.headeraccountdata
{
    display: flex;
    flex-direction: column;
}

.headeraccountdata h2
{
    font-size: 15px;
    font-weight: 700;
    color: black;
}

.headeraccountdata h3
{
    font-size: 15px;
    font-weight: 600;
    color: grey;
    margin-top: -2px;
}

.largebox
{
    width: 100%;
    height: calc(100% - 90px);
    display: flex;
}

.linkbox
{
    width: 90px;
    height: 100%;
    padding:20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.linkbox a
{
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding:14px;
    background-color: white;
    margin:5px;
}

.linkbox a img
{
    width: 100%;
    user-select: none;
    pointer-events: none;
}

.linkbox a:hover
{
    background-color: #f0f0f0;
}

.linkselected
{
    background-color: #b98aff !important;
}

.linkselected img
{
    filter: invert(1);
}

.rightbox
{
    width: calc(100% - 70px);
    height: 100%;
    padding: 30px;
    overflow-y: auto;
    position: relative;
}

.rightboxheader
{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    /*position: sticky;
    top:0;*/
    background-color: white;
}

.rightboxheadertitle
{

}

.rightboxheadertitle h2
{
    font-size: 36px;
    font-weight: 800;
    color: black;
    letter-spacing: -1px;
}

.rightboxheadertitle h2 span
{
    color:#b98aff;
}

.rightboxlayout
{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr; /* <--- clé pour forcer même hauteur */
    grid-gap: 15px;
}

.rightboxitem
{
    border:1px solid #e0e0e0;
    border-radius: 10px;
    padding:20px;
    display: flex;
    justify-content: space-between;
    height: 100%; /* <--- ils remplissent leur cellule */
}

.rightboxitem:hover
{
    opacity: 0.9;
}

.rightboxitem:active
{
    transform: scale(0.95);
    opacity: 0.8;
}

.rightboxitemnopadding
{
    padding: 0px;
}

.rightboxitemadd
{
    height: 100%; /* important pour qu'il prenne toute la hauteur de la cellule */
    border-radius: 10px;
    background-color: #f2f2f2;
    border: 1px solid #e0e0e0;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.rightboxitemadd button
{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(242 242 242);
    border:0;
    cursor: pointer;
}

.productitemadd button img
{
    width: 35px;
    user-select: none;
    pointer-events: none;
}


.rightboxitemdata h2
{
    font-size: 20px;
    font-weight: 800;
    color: black;
}

.rightboxitemdata h3
{
    font-size: 15px;
    font-weight: 600;
    color: grey;
}

.rightboxitemaction
{
    height: 100%;
}

.rightboxitemaction a
{
    width: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.rightboxitemaction a img
{
    width: 100%;
    height: 100%;
    user-select: none;
    pointer-events: none;
}

.rightboxlayoutdash
{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}


.rightboxitemgiant
{
    min-height: 400px;
    border: 0px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    float: left;
    flex: 4;
}

.rightboxitemlarge
{
    min-height: 300px;
    border: 0px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    float: left;
    flex: 3;
}

.rightboxitemsmall
{
    border: 0px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    flex: 1;
}

.rightboxitemtitle
{
    margin-bottom: 20px;
}

.rightboxitemtitle h2
{
    font-size: 20px;
    font-weight: 700;
    color: black;
    display: flex;
}

.rightboxitemtitle h2 img
{
    width: 20px;
    margin-right: 8px;
}

.rightboxitemchart
{
    width: 100%;
    height: 300px;
    font-family: 'Nunito', sans-serif;
}

.rightboxitemgeneral
{
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 10px;
}

.rightboxitemgeneral h2
{
    font-size: 17px;
    color: black;
    font-weight: 700;
}

.rightboxitemgeneral a
{
    font-size: 15px;
    color: grey;
    font-weight: 600;
    text-decoration: underline;
}

.rightboxitemgeneral p
{
    font-size: 15px;
    color: grey;
    font-weight: 600;
    margin-top: 5px;
}
.productlist
{
    display: grid;
    grid-template-columns: repeat(auto-fit, 200px);
    grid-auto-rows: 1fr; /* <--- clé pour forcer même hauteur */
    grid-gap: 15px;
}

.productitem
{
    border-radius: 10px;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 15px;
    width: 200px;
    cursor:pointer;
    user-select: none;
    overflow: hidden;
    height: 100%; /* <--- ils remplissent leur cellule */
}

.productitem:hover
{
    opacity: 0.9;
}

.productitem:active
{
    transform: scale(0.95);
    opacity: 0.8;
}

.productitem a
{
    text-decoration: none;
}

.productitemimage
{
    width: 100%;
    aspect-ratio: 1;
    background-color: white;
    overflow: hidden;
    border-radius: 10px;
    border: 0px solid #ffffff;
    margin-bottom: 10px;
    padding:15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.productitemimage img
{
    max-width: 100%;
    max-height: 100%;
    user-select: none;
    pointer-events: none;
    border-radius: 10px;
}

.productitemtitle
{
    width: 100%;
    overflow: hidden;
    position: relative;
}

.productitemtitle h2
{
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    white-space: nowrap;
}

.productitemstate
{
    width: 100%;
    display: flex;
    margin-top: 8px;
}

.productitemstate h2
{
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    background-color: #c0c0c0;
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 5px;
}

.ready
{
    background-color: #8aff97 !important;
}

.incomplete
{
    background-color: #ffe58a !important;
}

.productitemnopadding
{
    padding: 0px;
}

.productitemadd {
    height: 100%; /* important pour qu'il prenne toute la hauteur de la cellule */
    border-radius: 10px;
    background-color: #f2f2f2;
    border: 1px solid #e0e0e0;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}


.productitemadd button
{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(242 242 242);
    border:0;
    cursor: pointer;
}

.productitemadd button img
{
    width: 35px;
    user-select: none;
    pointer-events: none;
}

.addstoregiantbox
{
    width: 100%;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top:0;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.2);
    padding:20px;
}

.addstorebox
{
    width: 100%;
    width: 600px;
    background-color: white;
    border:0px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
}

.addstoreboxheader h2
{
    font-size: 25px;
    font-weight: 800;
    color: black;
    letter-spacing: -1px;
}

.addstoreboxform
{
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.addstoreboxform label
{
    font-size: 15px;
    font-weight: 700;
    color: grey;
    margin-bottom: 5px;
    display: block;
}

.addstoreboxform input
{
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 10px;
    font-size: 20px;
    font-weight: 700;
    color: black;
    margin-bottom: 20px;
    outline: transparent;
}

.addstoreboxform textarea
{
    width: 100%;
    height: 100px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 10px;
    font-size: 20px;
    font-weight: 700;
    color: black;
    margin-bottom: 20px;
    outline: transparent;
}

.addstoreboxformaction
{
    width: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    grid-gap:10px;
}

.addstoreboxform button
{
    padding: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 10px;
    border: 0px solid #e0e0e0;
    background-color: #b98aff;
    color: white;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.addstoreboxform button:first-child
{
    background-color: #efefef;
    color: black;
}

.addstoreboxform button:hover
{
    opacity: 0.9;
}

.addstoreboxform button:active
{
    transform: scale(0.95);
    opacity: 0.8;
}

@media screen and (max-width: 1000px) {
    .header
    {
        padding:20px;
    }
   .linkbox
   {
    width: 100%;
    height: 70px;;
    position: fixed;
    bottom:0;
    flex-direction: row;
    z-index:1;
   }
   .rightbox
   {
    width: 100%;
    height: calc(100% - 70px);
    padding:0;
   }
   .rightboxheader
   {
    padding-left: 20px;
    padding-right:20px;
   }
   .rightboxheadertitle h2
   {
    font-size: 25px;
   }
    .rightboxlayout
    {
        grid-template-columns: repeat(1, 1fr);
        padding-left: 20px;
        padding-right:20px;
    }
    .rightboxitemchart{
        height: 200px;
    }
    .rightboxitemlarge,
    .rightboxitemsmall {
        flex: 1 1 100%;
        min-width: 100%;
    }
    .productlist
    {
        grid-template-columns: 1fr 1fr;
    }
    .productitem
    {
        width: 100%;
    }
    .productitemimage
    {
        padding:0px;
    }
}