:root
{
    --type_DELIVERY_color: green;
    --type_RETURN_color: orange;
    
    --state_PENDING_color: orange;
    --state_INPROGRESS_color: green;
    --state_COMPLETE_color: red;
    
    --state_ALL_DELIVERED_color: green;
    --state_INCOMPLETE_color: grey;
    --state_SOME_NOT_DELIVERED_color: red;
    --state_SOME_PARTIALLY_DELIVERED_color: orange;

    --delivery_DELIVERED_color: green;
    --delivery_PARTIAL_color: orange;
    --delivery_REJECTED_color: grey;
    --delivery_NOT_DELIVERED_color: red;
}

*
{
    font-size: 100%;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    box-sizing: border-box;
}

body
{
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

button
{
    border-radius: .125rem;
    padding: .125rem .25rem;
    outline: none;
    color: blue;
    border: none;
    background-color: white;
    box-shadow: var(--shadow2);
}

button:hover
{
    color: white;
    background-color: blue;
}

input
{
    outline: none;
    border: none;
    border-bottom: 1px solid grey;
}

input:focus
{
    border-bottom: 2px solid grey;
}

input, select, button, label
{
    cursor: pointer;
}

table
{
    background-color: white;
    border-collapse: collapse;
}

table tr>*
{
    border: 1px solid grey;
    padding: .25rem .5rem;
}


.BackButton
{
    color: orange;
    background-color: white;
    border-radius: .25rem;
    padding: .25rem .5rem;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
}

.BackButton:hover
{
    color: white;
    background-color: orange;
}

#modalScreen,
.ModalScreen
{
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,.8);
}

#modalScreen {z-index: 10000;}
.ModalScreen {z-index: 1000;}

#modalScreen.SHOW,
.ModalScreen.SHOW
{
    display: inline-block;
}

#modalScreen>#modalMessage,
.ModalScreen>.ModalContent
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background-color: white;
    box-shadow: var(--shadow4);
    padding: 1rem;
}


/* -------------------------------- OMBRE -------------------------------- */

:root
{
    --shadow1: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow2: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    --shadow3: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    --shadow4: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    --shadow5: 0 19px 38px rgba(0, 0, 0, 0.30), 0 15px 12px rgba(0, 0, 0, 0.22);
}

.SHADOW1 {box-shadow: var(--shadow1);}
.SHADOW2 {box-shadow: var(--shadow2);}
.SHADOW3 {box-shadow: var(--shadow3);}
.SHADOW4 {box-shadow: var(--shadow4);}
.SHADOW5 {box-shadow: var(--shadow5);}

/* -------------------------------- NOTIFICHE -------------------------------- */

notification_container
{
    display: inline-block;
    position: fixed;
    transition: .25s all ease-in-out;
    z-index: 2000;
}

notification_container>notification
{
    --fg-color: white;
    --bg-color: grey;
    
    display: block;
    width: calc(100% - 1rem);
    color: var(--fg-color);
    background-color: var(--bg-color);
    padding: .5rem;
    border-radius: .25rem;
    margin: .5rem;
    cursor: pointer;   
    box-shadow: var(--shadow5);
}

notification_container>notification.SUCCESS {--bg-color: green;}
notification_container>notification.ERROR {--bg-color: red;}
notification_container>notification.WARNING {--bg-color: orange;}
notification_container>notification.INFO {--bg-color: blue;}
notification_container>notification.NEUTRAL{--bg-color: grey;}

notification_container[position=bottomright]{bottom: 0; right: 0;}
notification_container[position=topright]{top: 0; right: 0;}
notification_container[position=bottomleft]{bottom: 0; left: 0;}
notification_container[position=topleft]{top: 0; left: 0;}
notification_container[position=topcenter]{top: 0; right: 50%; transform: translateX(-50%);}
notification_container[position=bottomcenter]{bottom: 0; right: 50%; transform: translateX(-50%);}
