/*
*   GENERAL SETTINGS
*/
:root {
    --color-very-light: #BD4B00;
    --color-light: #4C4C4C;
    /*color-middle: #2D4A61; */
    --color-middle: rgba(45, 74, 85, 0.4);
    --color-dark: rgba(26, 37, 48, 0.3);
}

body {
    font-family: 'DejaVu Sans', Arial, 'Sans Serif';
    text-align: left;
    font-size: 0.9em;
    width: 100%;
    margin: auto;
    /*background-color: cadetblue;*/
    background-color: var(--color-light);
    background-image: url('../img/bga.jpg');
    background-attachment: fixed;
    background-position: top center;
}

#main {
    display: grid;
}

/* small screen */
@media screen and (max-width: 700px) {
    #main {
        grid-template-rows: auto auto auto auto 1fr 25px;
        grid-template-columns: 1fr;
    }
    .smallHide {
        display: none;
    }
}

/* tablet */
@media screen and (min-width: 701px) and (max-width: 850px) {
    #main {
        grid-template-rows: auto auto auto auto 1fr 25px;
        grid-template-columns: 240px 1fr;
    }
    .tabletHide {
        display: none;
    }
}

/* large screen */
@media screen and (min-width: 851px) {
    #main {
        grid-template-rows: auto auto auto 1fr 25px;
        grid-template-columns: 240px auto 50px;
    }
}

img {
    border: none;
    vertical-align: middle;
    margin-right: 5px;
}


label {
    display: inline-block;
    vertical-align: top;
    margin: 7px 0px 5px 0px;
    padding-right: 10px;
}

input, textarea, select, checkbox {
    vertical-align: top;
    margin: 5px 0px 5px 0px;
    font-family: calibri, arial;
    font-size: 1em;
    outline: none; /* to ignore webkit outline */
}

input.radio, input.checkbox {
    margin: 10px 10px 5px 10px;
}

fieldset {
    padding: 0;
    border: none;
}

/*
*   GENERAL CLASSES
*/

.right {
    text-align: right;
}

.clickable {
    cursor: pointer;
}

span.right {
    float:right;
}

span.left {
    float:left;
}

.center {
    text-align: center;
}

.left {
    text-align: left;
}

input.button {
    margin: 10px 0px 0px 70px;
    width: 200px;
    height: 50px;
    background-color: whitesmoke;
    border: 1px solid #00354f;
    color: #00354f;
    padding: 5px;
    border-radius: 5px;
}

input.button:hover {
    cursor: pointer;
    box-shadow: 0px 0px 5px 0px #00354f;
}

input.selected {
    border: 1px solid #00354f;
    background-color: #00354f;
    color: white;
    box-shadow: 0px 0px 10px 0px #00354f;
}

#actionbar form {
    display: inline-block;
}

#actionbar a, #actionbar span, #actionbar input[type=submit] {
    cursor:pointer;
    padding: 6px;
    margin: 5px 0px 5px 5px;
    background-color: gray;
    color: silver;
    border-radius: 5px;
}

#actionbar a:hover, #actionbar span:hover, #actionbar input[type=submit]:hover {
    box-shadow: 2px 2px 5px -1px black;
}

/*
*   TOP HEAD
*/
div#loading {
    background: inherit;
    margin: 40px 10px 0px 0px;
    padding: 3px 7px 3px 7px;
    display: none;/*hidden*/
    position: absolute;
    right: 0%;
}

span.errordeleter {
    cursor: pointer;
}

span.errordeleter img {
    margin: 0px 7px -3px 0px;
}

div#tophead {
    position: fixed;
    width: 100%;
    top: 0px;
}

div#backgroundTop {
    position: fixed;
    width:100%;
    background-image: url('./../img/EqTop.jpg');
    background-repeat: repeat-x;
    min-height: 260px;
}

div#backgroundBottom {
    position: fixed;
    width:100%;
    bottom: 0px;
    background-image: url('./../img/EqBottom.jpg');
    background-repeat: repeat-x;
    min-height: 260px;
}


/*
*   CONTENTS
*/
/*
div#contents_large {
margin-top: 0px;
}
*/

#contents {
    /*max-width: 1000px;*/
    min-height: 500px;
    padding-top: 10px;
    /*display: inline-block;*/
}

/* small screen & tablet */
@media screen and (max-width:700px) {
    .contentsDefault {
        grid-row: 5;
        grid-column: 1;
        padding:5px;
    }
    .contentsNotDefault {
        grid-row: 5;
        grid-column: 1;
        padding:5px;
    }
}

/* small screen & tablet */
@media screen and (min-width:701px) and (max-width:850px) {
    .contentsDefault {
        grid-row: 4;
        grid-column: 2;
        padding:5px;
    }
    .contentsNotDefault {
        grid-column: 1 / span 2;
        padding:5px;
    }
}

/* large screen */
@media screen and (min-width:851px) {
    .contentsDefault {
        grid-row: 4;
        grid-column: 2;
        padding:5px;
    }
    .contentsNotDefault {
        grid-column: 1 / span 2;
        padding:5px;
    }
}



.home {
    position: relative;
    padding: 5px;
    margin-bottom: 30px;
    /*overflow: auto;*/ /* not good for calendar */
    background-color:  var(--color-middle);
    /*box-shadow: 3px 3px 5px 0px lightgray;*/
    box-shadow: 0px 0px 20px -5px black;
    border-radius: 10px;
}

/* large screen */
@media screen and (min-width:701px) {
    .home {
        padding: 10px;
    }
}

.home a {
    color: var(--color-very-light);
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
}

.dashboard .large {
    grid-column: span 2;
}

.highlighted {
    background-color: #F0E68C66;
    border-radius: 10px;
    padding: 2px 5px 2px 0px;
}


/*****************
***   TITLES   ***
*****************/
h1 {
    font-family: 'Courier New';
    /*margin: -10px 0px 20px 0px;*/
    margin: 0px 0px 0px 0px;
    font-size: 1.5em;
    padding-left: 15px;
    padding-right: 15px;
    color: white;
}

h2 {
    font-size: 1.2em;
    text-align: left;
    margin: 0px 20px 0px 20px;
    border-bottom: 1px dotted #000000;
}

h2 a, h2 a:hover {
    color: inherit;
    text-decoration: none;
    cursor:pointer;
}

h3 {
    font-size: 1.2em;
    text-align: left;
    border-bottom: 1px dotted #000000;
}

span.inactive {
    background: #B3272A;
    font-style: italic;
}

div.inactive {
    background: orange;
    font-style: italic;
}

span.title_big {
    font-size: 35px;
    font-weight: bold;
}

.bold {
    font-weight: bold;
}

.border {
    border: 1px solid black;
    padding: 5px;
}

/***************
***   MENU   ***
***************/
/*topmenu*/
#topmenuskin {
    font-size: 1.3em;
}

/* small screen */
@media screen and (max-width:700px) {
    #topmenuskin {
        grid-row: 3;
        grid-column: 1;
    }
}

/* large screen */
@media screen and (min-width:701px) {
    #topmenuskin {
        grid-row: 2;
        grid-column: 1 / span 3;
    }
}

ul#topmenu {
    padding: 5px 0px 0px 0px;
    margin: auto;
}

ul#topmenu li {
    display: inline-block;
    padding: 0px 0px 0px 10px;
}

@media screen and (min-width: 701px) {
    ul#topmenu li {
        padding: 0px 0px 0px 30px;
    }
}

ul#topmenu li img {
    margin: 0px 5px 0px 0px;
    vertical-align: bottom;
}


ul#topmenu li a {
    padding: 10px 10px 0px 7px;
    text-decoration: none;
    color: white;
    border-radius: 10px 10px 0px 0px;

    transition: 0.5s background;
}

ul#topmenu li a:hover {
    background-color: rgba(189, 75, 0, 0.2);
    transition: 0s;
}

ul#topmenu li a.selected {
    background-color: rgba(189, 75, 0, 0.2);
}


/*submenu*/
div#submenu {
    background: rgba(189, 75, 0, 0.2);
    padding-top:3px;
    padding-bottom: 5px;
}

/* small screen */
@media screen and (max-width:700px) {
    div#submenu {
        grid-row: 4;
        grid-column: 1;
    }
}

/* large screen */
@media screen and (min-width:701px) {
    div#submenu {
        grid-row: 3;
        grid-column: 1 / span 3;
    }
}

ul#submenu {
    margin: 5px auto auto auto;
    padding: 0px 0px 0px 0px;
}

/* large screen */
@media screen and (min-width:851px) {
    ul#submenu {
        margin: 5px auto auto 210px;
    }
}



ul#submenu li {
    display: inline;
    list-style: none;
}

ul#submenu li a {
    margin: 0px 0px 0px 5px;
    padding: 5px 10px 5px 10px;
    text-decoration: none;
    color: white;
    transition: 0.5s background, color;
}


ul#submenu li a.selected {
    position: relative;
    color: rgba(189, 75, 0, 1);
}

ul#submenu li a:hover {
    position: relative;
    color: rgba(189, 75, 0, 1);
}

/* left menu */
#leftmenuContainer{
    min-height: 500px;
    padding-top:   10px;
    padding-bottom:   10px;
    transition-duration: 0.5s;
}

/* small screen */
@media screen and (max-width:700px) {
    #leftmenuContainer {
        position: absolute;
        width:300px;
        left:-300px;
        top:220px;
        z-index: +5;
        background-color: var(--color-light);
    }
    .leftMenuDefault {
        margin-left: 0px;
    }
    .leftMenuNotDefault {
        margin-left: 300px;
    }
    /*.leftMenuNotDefault {margin-left: 300px;grid-row: 5;grid-column: 1;width:300px;background-color: var(--color-light);}*/
}

/* large screen */
@media screen and (min-width:701px) {
    .leftMenuDefault {
        grid-row: 4;
        grid-column: 1;
    }
    .leftMenuNotDefault {
        display: none;
    }
}

#leftmenu_buttons {
    padding:   10px 0px 10px 10px;
    color: white;
}

#leftmenu_buttons a {
    color: white;
    font-size: 1.1em;
}

#leftmenu_buttons a:hover {
    text-shadow: 2px 2px 5px black;
}

#leftmenu_buttons img {
    margin-bottom: -5px;
    margin-right: 5px;
}

#leftmenu {
    margin : 0;
    padding: 0;
}

#leftmenu li {
    padding-left: 20px;
    padding-bottom: 2px;
    padding-top: 2px;
    list-style: none;
    margin-bottom: 2px;
}

#leftmenu li.selected {
    border-radius: 10px 0px 0px 10px;
    padding-left: 15px;
    margin-left: 5px;

}

#leftmenu li a {
    text-decoration: none;
    /*color: var(--color-middle);*/
    color: dimgray;
}

#leftmenu li a:hover {
    color: var(--color-very-light);
}

#leftmenu li a.selected {
    color: var(--color-very-light);
}

div#leftalphas {
    padding: 20px;
    /*color: var(--color-middle);*/
    color:dimgray;
}

div#leftalphas span {
    cursor: pointer;
}

div#leftalphas span.selected {
    color: var(--color-very-light);
}

.family {
    color: silver;
    padding: 10px 0px 0px 5px;
    display: inline-block;
}


/*****************
*** PARAGRAPHS ***
******************/
div.p1 {
    font-size: 1.0em;
    color: black;
    text-align: justify;
    padding: 20px;
}

::selection {
    color: black;
    background-color: var(--color-very-light);
}

div.description_head {
    margin-bottom: 10px;
}

div.descriptionContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    grid-gap: 20px;
}

div.descriptionBlock {
    background-color: var(--color-dark);
    padding-left: 20px;
    color: silver;
}


/*****************
***   TABLES   ***
******************/
table {
    margin: auto;
    margin-top: 5px;
    border-collapse: collapse;
    border: 1px var(--color-light) solid;
    background-color: var(--color-middle);
}

thead {
    color: white;
    background-color: var(--color-dark);
}

tr.line1 {

}

tr.line2 {
}

tr.selectedrow {
    background-color: #96cbe5;
}

tr.line1:hover {
    background-color: var(--color-light);
}

tr.line2:hover {
    background-color: var(--color-light);
}

tr.selectedrow:hover {
    background-color: #646464;
}

td {
    border-right: 1px var(--color-light) solid;
    border-left: 1px var(--color-light) solid;
    padding-left: 5px;
    padding-right: 5px;
    vertical-align: middle;
}

table > tbody .hlcol {
    background-color: var(--color-sub-light);
}

td img {
    margin: 0px 3px -2px 0px;
}

td a {
    margin: 0px 10px 0px 0px;
}

td img.clickable {
    margin: 5px 10px;
}


/**************************
***   WYSIWYG FOR CRM   ***
**************************/

.boxshadow {
    border: none;
}

.nicEdit-main {
    background-color: white;
}

.mapInserted, .formInserted {
    border: 1px solid black;
}

/********************
***   MANDATORY   ***
********************/
div.mandatory_fields {
    margin-top: 10px;
}

span.mandatory_star {
    color: #00354f;
    margin-left: 3px;
}

span.mandatory_text {
    font-style: italic;
}

/****************
***   FORMS   ***
*****************/
/*.form {
position: relative;
display: inline-block;
text-align: right;
padding: 40px;    
vertical-align: top;
}*/

.form {
    position: relative;
    display: inline-block;
    text-align: left;
    padding: 40px;
}

.form label {
    width: 160px;
}

.form input {
    width: 250px;
}

.form input[type=checkbox] {
    margin: 10px 10px 10px 0px;
}

.form input:last-of-type {
    float:right;
    margin-top: 25px;
}

.form input.short {
    width: auto;
}

label.checkboxlabel {
    width: auto;
    padding-left: 10px;
}

.form textarea {
    width: 250px;
    height: 200px;
}

.vdform textarea {
    width: 316px;
}

input.search {
    background-color: #DD9E56;
    margin: 0px 0px 0px 0px;
    width: 100%;
}

#deletesearch {
    text-align: right;
    margin-top: -19px;
}

img.prevnext {
    margin-bottom: 0px;
}

.field {
    width: 200px;
}

.datefield {
}

input:focus {
    position: relative;
    box-shadow: 0px 0px 2px 2px var(--color-very-light);
}

.fielderror {
    width: 200px;
    box-shadow: 0px 0px 5px 2px red;
}

.radioerror {
    position: relative;
    margin: 10px 10px 5px 10px;
    box-shadow: 0px 0px 5px 2px red;
}

.cmscompact {
    position: relative;
    text-align: left;
}

.compact {
    position: relative;
    display: inline-block;
    text-align: left;
}

.compact label, .cmscompact label {
    width: 180px;
}

.compact input, .cmscompact input {
    width: 300px;
}

.compact input[type=submit], .cmscompact input[type=submit] {
    width: 150px;
}

.compactbill {
    position: relative;
    display: inline-block;
    text-align: left;
    padding: 0px;
}

.compactbill label {
    width: 100px;
}

.compactbill input[type=submit] {
    margin-top: 0px;
}


textarea.editable {
    min-height: 150px;
}

@media screen and (max-width: 850px) {
    textarea.editable {
        width: 98%;
    }
}

@media screen and (min-width: 851px) {
    textarea.editable {
        width: 100%;
    }
}

#loginblock {
    text-align: center;
    margin-top: 150px;
}


input[type=submit].add {
    margin:8px;
    border:none;
    background: none;
    background-image: url('../img/add16.png');
    background-repeat: no-repeat;
    cursor: pointer;
}

input[type=submit].update {
    margin:8px;
    border:none;
    background: none;
    background-image: url('../img/validate16.png');
    background-repeat: no-repeat;
    cursor: pointer;
}

input[type=submit].remove {
    margin:0px;
    border:none;
    background: none;
    background-image: url('../img/delete16.png');
    background-repeat: no-repeat;
    cursor: pointer;
}

/****************
***   LINKS   ***
*****************/
a {
    text-decoration: none;
    color: var(--color-very-light);
    cursor: pointer;
}

a:hover {
    text-decoration: none;
    color: inherit;
}

#logo {
    grid-row: 1;
    grid-column:1;
    font-family: 'Courier New';
    font-weight: bold;
    font-size: 3em;
    padding: 0px 0px 5px 25px;
}

#logo a {
    color: var(--color-light);
}

div.order {
    float: right;
}

img.orderup {
    margin: 0px -2px 0px 0px;
}

img.orderdown {
    margin: 0px 0px 0px 0px;
}

img.intext {
    margin: 0px 5px -2px 20px;
}

/***************
***   FOOT   ***
***************/
#foot {
    color: white;
    padding: 2px;
    text-align: center;
    background-color: var(--color-dark);

    position:fixed;
    bottom:0px;
    width: 100%;
    height:26px;
}

/* small screen */
@media screen and (max-width:700px) {
    #foot {
        grid-row: 6;
        grid-column: 1;
    }
}

/* large screen */
@media screen and (min-width:701px) {
    #foot {
        grid-row: 5;
        grid-column: 1 / span 3;
    }
}

#foot a {
    cursor: pointer;
    color: inherit;
}

#foot a:hover {
    text-decoration: none;
    color: var(--color-light);
}

/******************
***   MESSAGE   ***
*******************/
#msg {
    /*    position:absolute;
        top:0px;
        left:0px;
        width:100%;*/
    font-weight: bold;
    text-align: center;
    min-height: 30px;
    padding-top: 10px;
}

.error {
    color: #B3272A;
}

.info {
    color: forestgreen;
}


.communication {
    margin: 5px;
    border: 1px solid silver;
    box-shadow: 0px 0px 5px 0px silver;
    border-radius: 5px;
    color: #222;
}

.communication.comred {
    background-color: #cd5c5c55;
}
.communication.comred .commtitle {
    background-color: #cd5c5c;
}
.communication.comgreen {
    background-color: #80aa8055;
}
.communication.comgreen .commtitle {
    background-color: #80aa80;
}

.commtitle {
    padding: 10px 30px;
    border-radius: 5px 5px 0 0;
    font-size: 1.2em;
    font-weight: bold;
    color: whitesmoke;
}

.commbody {
    padding: 10px 30px;
}

.commactions {
    padding: 10px;
    text-align: right;
}

.commevents > div {
    display: none;
    position: absolute;
    font-size: small;
    font-weight: normal;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px grey;
    z-index: +1;
    color: #555;
    text-align: left;
}

.commevents:hover > div {
    display: block;
}


/******************
***   ADDRESS   ***
******************/
p.address {
    font-family: Cambria, 'Courier New';
    font-size: 1.2em;
    text-align: center;
}



/****************
***   POPUP   ***
*****************/
div#popupback {
    position: absolute;
    z-index: 1;
    top: 0;
    width: 100%;
    height: 120%;
    padding-top: 10%;
    background-color: rgba(20, 20, 20, 0.7);
    text-align: center;
}


img#popupclose {
    position: relative;
    float: right;
    margin-top: -30px;
    margin-right: -30px;
    cursor: pointer;
}

.popup {
    position: relative;
    display: inline-block;
    text-align: right;
    padding: 40px;

    background-color: rgba(255,255,255,0.6);
    border-radius: 10px;
    box-shadow: 0px 0px 20px 0px black;
}

.popup p {
    text-align: justify;
    font-style: italic;
    max-width: 400px;
}

.areyousure {
    z-index: +1;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.6);
    /*background-color: var(--color-middle);*/
    width: 100%;
    height: 100%;
    display: flex;
    overflow: auto;
    display: -ms-flexbox;
}

.areyousure > fieldset {
    max-height: 80vh;
    margin: auto;
    position: relative;

    /*    position: absolute;
        left: calc(50vw - 170px);
        top: 25vh;
        max-width: 500px;
    
        display: inline-block;
        text-align: right;
        padding: 40px 40px 20px 40px;
        border: solid 1px grey;
        border-radius: 10px;
        box-shadow: 0px 0px 20px 0px white;
        background-color: slategray;*/
}

.areyousure h1 {
    border-radius: 5px 5px 0px 0px;
    padding: 10px;
    background-color: rgba(0,0,0,0.2);
    cursor: move;
}

.areyousure > fieldset > div {
    position: relative;
    border-radius: 10px;
    box-shadow: 0px 0px 50px 0px grey;
    background-color: slategray;
}

.areyousure > fieldset > div > div {
    padding:20px;
}

.areyousure .wide {
    max-width: unset;
}
.areyousure input[type=checkbox], .areyousure input[type=radio] {
    vertical-align: unset;
    width: auto;
    margin-right: 10px;
}
.areyousure input[type=submit], .areyousure input[type=button] {
    margin: 40px 20px 20px 20px;
}
.areyousure input[type=submit].thin, .areyousure input[type=button].thin {
    margin:0px;
}

@media screen and (max-width:500px) {
    .areyousure label {
        width: 145px;
    }
    .areyousure label.auto {
        width: auto;
    }
    .areyousure label.radio {
        margin-top: 15px;
    }
    .areyousure input, .areyousure select {
        margin-top: 15px;
    }
    .areyousure input[type=radio] {
        margin-top: 0px;
    }
}

.areyousure .hints {
    margin: 0px;
}

@media screen and (max-width:500px) {
    /*.areyousure input[type=submit], .areyousure input[type=button] {margin: 20px 10px 10px 10px;padding: 4px 10px 4px 10px;}*/
    .areyousure input[type=submit], .areyousure input[type=button] {
        margin: 20px 10px 10px 10px;
    }
}

.areyousure label {
    width: 160px;
}

label.auto {
    width: auto;
}

img#popupclose {
    position: relative;
    float: right;
    margin-top: -30px;
    margin-right: -30px;
    cursor: pointer;
}




/******************
***   FACTURE   ***
*******************//***************
***   BILL   ***
****************/
div.bill div.billhead {
    overflow: auto;
    margin-bottom: 20px;
}


div.bill div.billhead div.client {
    float: right;
}


div.bill div.client span.client {
    font-size: 30px;
}

div.bill div.client span.client img {
    margin: 0px 10px -2px -34px;
}

div.bill div.billcode {
    font-size: 40px;
    font-weight: bold;
    font-family: 'Times', 'Arial';
}

div.draft {
    background-color:lightyellow;
    padding-bottom: 5px;
}






span.queries {
    position: absolute;
    bottom : 10px;
    right: 15px;
}

@media screen and (max-width:700px) {
    span.queries {
        display: none;
    }
}

/*
 *      CLIENT
 */
.clientTileContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 10px;
    margin: 10px;
}

.clientTile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background-color: var(--color-middle);
    border-radius: 5px;
    box-shadow: 1px 1px 0px 0px var(--color-dark);
}

.legend {
    margin-bottom: 10px;
}

.legend strong {
    color: white;
    display: inline-block;
    min-width: 90px;
    font-weight: normal;
    text-align: right;
    margin-right: 5px;
}

.legend_sample {
    display: inline-block;
    cursor: pointer;
    padding: 5px 10px 5px 10px;
    margin: 0px 5px 5px 5px;
    border-radius: 5px;
    box-shadow: 1px 1px var(--color-dark);
    background-color: whitesmoke;
}

.clientTile > div > div {
    padding: 5px;
}

.clientStatusProspect {
    background-color: silver;
}

.clientStatusContacted {
    background-color: powderblue;
}

.clientStatusNotInterested {
    background-color: CadetBlue;
}

.clientStatusInterested {
    background-color: palegoldenrod;
}

.clientStatusNego {
    background-color: BurlyWood;
}

.clientStatusClient {
    background-color: palegreen;
}

.clientStatusExclient {
    background-color: DarkSlateGray;
}

.clientStatusOffTarget {
    background-color: indianred;
}

.clientStatusOther {
    background-color: sandybrown;
}

.clientStatusInternalTest {
    background-color: saddlebrown;
}

.clientTileHead {
    background-color: var(--color-dark);
    border-radius: 5px 5px 0px 0px;
}

.clientTileActions {
    background-color: var(--color-dark);
    text-align: center;
    border-radius: 0px 0px 5px 5px;
}

.productions {
    background-color: var(--color-light);
    color:silver;
    /*    padding: 2px 7px 2px 7px;
        margin-right: 10px;
        border-radius: 5px;
        color: whitesmoke;*/
}

.productions.selected {
    color:whitesmoke;
    box-shadow: 0px 0px 5px 2px var(--color-very-light);
}

a img {
    margin: 0px 5px 0px 5px;
    vertical-align: middle;
}

/***********************
***   PRODUCT TILE   ***
************************/
.productTileContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 10px;
    margin: 10px;
}

.productTile {
    display: grid;
    grid-template-rows: auto 1fr 25px;
    background-color: var(--color-dark);
    overflow: auto;
    border-radius: 10px;
}

.productTileHead, .productTileHead a {
    font-size: 1.2em;
    padding-left: 10px;
    color: white;
    background-color: var(--color-very-light);
}

.productTileContent {
    /*    display: grid;
        grid-template-columns: 120px 1fr;
        grid-gap: 10px;*/
    padding: 5px;
}

.productTileActions  {
    text-align: center;
    padding: 3px;
    background-color: rgba(0,0,0,0.1);
}

.productTileActions > a {
    margin-left: 15px;
}

.productTile label {
    width: 150px;
}

.productTile input[type=number] {
    width: 110px;
    text-align: right;
}

.productTileForms > div {
    text-align: center;
}

.productTile input[type=submit] {
    cursor: pointer;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 5px;
    background-color: var(--color-very-light);
    margin-bottom: 0px;
    padding: 5px 20px 5px 20px;
    box-shadow: 2px 2px 5px 0px var(--color-dark);
}

.productDescription {
    display: grid;
    grid-template-columns: max-content 2fr 1fr;
    grid-gap: 5px;
}

.productDescription > div {
    padding: 5px;
}

/***************
***   SEARCH   ***
***************/
#searchboxskin {
    text-align:center;
}

/* small screen */
@media screen and (max-width:700px) {
    #searchboxskin {
        grid-row: 2;
        grid-column: 1;
    }
}

/* large screen */
@media screen and (min-width:701px) {
    #searchboxskin {
        grid-row: 1;
        grid-column: 2;
    }
}

#searchbox {
    margin: 5px 0px 15px 0px;
    display:inline-block;
}

#searchbox input {
    height: 30px;
    width:300px;
    margin: 0px 10px 0px 0px;
    font-size: 1.3em;
    border-color: white;
    background-color: var(--color-very-light);
}

#searchbox input#search_submit {
    background: url("../img/search32.png") no-repeat;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
}

#searchbox_result {
    z-index: 1;
    background-color: darkseagreen;
    border: solid 1px silver;
    text-align: left;
    width:301px;
    position:absolute;
    margin-left: 2px;
    padding:10px 0px 10px 0px;
}

#searchbox_result p {
    padding:0px 0px 0px 10px;
    margin:0;
}

#searchbox_result p:hover {
    background-color: gray;
}

.searchbox_result_num {
    text-align: right;
    font-size: 0.8em;
    font-style: italic;
    color: darkgreen;
    padding:0;
    margin:0;
}

div#postal_result {
    background-color: var(--color-dark);
    position:absolute;
    top:560px;
    left:835px;
    border-radius: 10px;
    padding:10px;
    color: var(--color-very-light);
}

div#postal_result span {
    cursor: pointer;
}

div#postalarrow {
    position:absolute;
    top:30px;
    left:-20px;
    border: solid 10px #FFFFFF00;
    border-right: solid 10px var(--color-dark);
}

.taskContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 10px;
}

.tasktile {
    background-color: var(--color-light);
    padding: 10px;
    overflow: visible;
    border-radius: 10px;
}

.taskLine {
    display: grid;
    grid-template-columns: 120px 240px 125px auto 1fr;
    margin: 5px;
    padding: 2px;
    align-items: baseline;
    border-radius: 10px;
}

.meetingLine {
    display: grid;
    grid-template-columns: 120px 240px auto;
    margin: 5px;
    padding: 7px 2px 7px 2px;
    align-items: baseline;
    border-radius: 10px;
}

.taskLine > div, .meetingLine > div {
    display: inline-block;
}

.subLine {
    display: grid;
    grid-template-columns: 90px 125px auto;
    margin: 5px;
}

.action_buttons {
    text-align: center;
}

.action_buttons > a {
    display: inline-block;
    border: 1px solid var(--color-very-light);
    border-radius: 5px;
    padding: 2px 2px 2px 2px;
    margin: 2px 2px 2px 2px;
}

.action_buttons > a:hover, .action_buttons > a.selected {
    background-color: var(--color-very-light);
    color:inherit;
}

.tasktile img.taskaction {
    vertical-align: bottom;
    margin: 0px 8px 0px 0px;
}


#logout {
    text-align: right;
}

/* small screen */
@media screen and (max-width:700px) {
    #logout {
        grid-row: 1;
        grid-column:1;
    }
}

/* tablet */
@media screen and (min-width: 701px) and (max-width: 850px) {
    #logout {
        grid-row: 1;
        grid-column:2;
    }
}

/* large screen */
@media screen and (min-width:851px) {
    #logout {
        grid-row: 1;
        grid-column:3;
    }
}

#logout img {
    margin-top: 5px;
}

.button, .crmbutton {
    display: inline-block;
    margin-top: 20px;
    min-width: 200px;
    text-align: center;
    background-color: silver;
    padding: 5px;
    border-radius: 5px;
}

.button:hover {
    cursor: pointer;
    box-shadow: 0px 0px 5px 0px silver;
}

.stats .button {
    margin: 0px;
}

/*
 *      CONTACT
*/
.statusContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-gap: 10px;
}

.clientstatus {
    cursor: pointer;
    background-color: var(--color-light);
    display: inline-block;
    padding: 20px 20px 20px 20px;
    border-radius: 10px;
    color: white;
    text-align: center;
}

.clientstatus:hover {
    box-shadow: 0px 0px 10px 0px var(--color-light);
}

.clientstatus.selected {
    background-color: var(--color-very-light);
    box-shadow: 0px 0px 10px 0px var(--color-very-light);
}

/*
*       CONFIG
*/
h1.paramFamilyHead {
    display: grid;
    grid-template-columns: 1fr 45px 35px;
}

.slaveparam > span:first-of-type{
    display: inline-block;
    margin: 7px 0px 5px 0px;
    width: 200px;
}

.slaveparam > span.onoff {
    margin-right: 20px;
}

.onoff {
    cursor: pointer;
    color: silver;
}

.onoff.on {
    color: chartreuse;
    text-shadow: 0px 0px 5px chartreuse;
}

.onoff.off {
    color: orangered;
    text-shadow: 0px 0px 5px orangered;
}

.userimage {
    display: inline-block;
    vertical-align: top;
}

.userimage > div {
    margin: 5px;
    display: inline-block;
    vertical-align: top;
}

.userimage > div > img {
    max-width: 200px;
    max-height: 135px;
    border-radius: 5px;
}

.userimage input {
    margin: 0px;
}

#template_folder {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.templateform textarea {
    width: 1000px;
    height: 500px;
    font-family: 'Ubuntu Mono', 'Courrier';
}

#templatebuttons {
    display: flex;
}

#templatebuttons input {
    margin: 5px;
}

#modify_status, #modifyname_status {
    background-color: white;
    padding: 10px;
    width: max-content;
    border-radius: 2px;
}

/*
 *      Leaflet Marker Class
 */
#mapclients {
    height: 400px;
}

@media screen and (min-width:701px) {
    #mapclients {
        height:650px;
    }
}

.markerIcon > .markerTop{
    display: inline-block;
    padding: 8px;
    border-radius: 20px;
    background-color: #c75c5c;
}

.markerTop > div {
    width: 24px;
    height: 24px;
    border-radius: 15px;
    background-color: #76c2af;
}

.markerBottom {
    border: 20px solid rgba(255,255,255,0);
    border-bottom: 0px;
    border-top: 40px solid #c75c5c;
    margin: -21px 0px 0px 0px;
}

.hidden {
    /*visibility: hidden;*/
    display: none;
}

.undisplayed {
    display: none;
}

.displayed {
    display: inline-block;
}

.visible {
    visibility: visible;
    /*display: initial;*/
}

/*
 *      Nanso
 */
.vpage {
    display: inline-block;
    margin: 10px;
    vertical-align: top;
}

.vpage input[type=button] {
    background: none;
    border: none;
    margin: 0px;
    padding: 0px;
    color: black;
    font-size: 1.1em;
}

@media screen and (min-width: 701px) {
    .vpagecontainer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 10px;
    }

    .vpagecontainerv2 {
        display: grid;
        grid-template-columns: repeat(12,1fr);
        grid-gap: 10px;
    }

    .col-12 {
        grid-column: span 12;
    }
    .col-11 {
        grid-column: span 11;
    }
    .col-10 {
        grid-column: span 10;
    }
    .col-9 {
        grid-column: span 9;
    }
    .col-8 {
        grid-column: span 8;
    }
    .col-7 {
        grid-column: span 7;
    }
    .col-6 {
        grid-column: span 6;
    }
    .col-5 {
        grid-column: span 5;
    }
    .col-4 {
        grid-column: span 4;
    }
    .col-3 {
        grid-column: span 3;
    }
    .col-2 {
        grid-column: span 2;
    }

    .large {
        grid-column: span 2;
    }
}

.vpagecontainer {
    margin-top: 10px;
}

.vblock {
    background-color: silver;
    padding: 10px;
    border-radius: 10px;
}

.structure_selected {
    background-color: rgba(189, 75, 0, 0.3);
    color: silver;
    padding: 5px;
    border-radius: 5px;
}

.orphan {
    border: 1px solid white;
    padding: 5px;
}

.orphans {
    background-color: silver;
    color: var(--color-very-light);
    border-radius: 5px;
    padding: 5px 0px 5px 0px;
    text-align: center;
    border: 5px solid black;
    box-sizing: border-box;
}


#detail {
    width: 100%;
}

.module {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 5px;
}

.inline {
    display: inline-block;
}

.module_parameter, .client_parameter {
    padding: 5px;
}


/*
 *    CHATBOX
 */
#chatboxContact {
    position: fixed;
    bottom: 35px;
    right: 315px;
    overflow: auto;
    min-width: 220px;
    max-height: 85vh;
    border-radius: 10px;
    border: 3px solid #bd4b00;
    background: whitesmoke;
    z-index: +1;
}

#chatboxChat {
    position: fixed;
    bottom: 35px;
    right: 10px;
    max-width: 300px;
    max-height: 90vh;
    border-radius: 10px;
    border: 3px solid whitesmoke;
    background: #bd4b00;
    z-index: +1;
    display: flex;
    flex-direction: column;
}

#chatboxChat textarea {
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    margin-bottom: 0px;
}

#chatboxChat_header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    border-radius: 10px 10px 0px 0px;
    padding: 0px 10px 0px 10px;
}

#contact_infos {
    margin: 10px;
    padding: 5px;
}

#contact_infos a {
    color: white;
}

#text_conversation {
    height: 70vh;
    overflow: auto;
    width: 300px;
    display: flex;
    flex-direction: column-reverse;
    background-color: whitesmoke;
}

#text_writer {
    border-radius: 0px 0px 10px 10px;
    padding-top: 5px;
}

.chatbox_msg {
    border-radius: 10px;
    margin: 5px;
    padding: 5px;
    width: 260px;
    overflow: visible;
    overflow-wrap: break-word;
}

.msg_user {
    background-color: #80aa8055;
}

.msg_euryclee {
    background-color: #bd4b0035;
}

.msg_info {
    background-color: #add8e685;
    text-align: center;
}

.msg_alert {
    background-color: #bd000d35;
    text-align: center;
}

.chat_textinfo {
    text-align: center;
    width: 270px;
}

.chat_readerinfo {
    columns: 3;
}

.italic {
    font-style: italic;
    font-size: 0.7em;
}

.align_right {
    text-align: right;
}

#chatbox_img {
    cursor: pointer;
    position: absolute;
    margin-top: 5px;
}

#msgNb {
    font-weight: bold;
    color: #D40000;
    display: inline-block;
    width: 100%;
}

#msgInfo {
    text-align: center;
    width: 40px;
    height: 40px;
    position: relative;
    margin: 5px 5px 0px 0px;
    display: flex;
    align-items: center;
}

#chatboxMessage {
    height: auto;
}

#chatboxNew {
    float: right;
    margin: 5px 10px 5px 0px;
}

#archiveMessage {
    margin: 5px 0px 5px 10px;
}

.chatboxDate {
    font-style: italic;
    font-size: 0.7em;
    margin-bottom: 5px;
    color: grey;
}

#close_contact_infos {
    cursor: pointer;
}

input[type=submit].submit, input[type=button].submit {
    cursor: pointer;
    border: none;
    background-color: #bd4b00;
    color: white;
    font-size: 1.2em;
    border-radius: 5px;
    padding: 7px 20px 7px 20px;
}

input[type=submit].submit:hover, input[type=button].submit:hover {
    box-shadow: 0px 0px 5px 0px silver;
}

input[type=submit].submit.thin, input[type=button].submit.thin {
    padding: 2px 10px 2px 10px;
    font-size: 1em;
}

.selectedContact {
    box-shadow: 0px 0px 5px 0px silver;
    background-color: #80aa8080;
    color: black
}

.contactToChoose {
    padding: 10px;
    cursor: pointer;
}

#readMessage {
    margin: 5px 0px 5px 10px;
}

.contactWithNewMessage {
    background-color: #ff000080;
}

.archived_message {
    width: max-content;
    max-width: 1000px;
    padding: 10px;
    margin-bottom: 5px;
}

.by_euryclee {
    border: 1px solid #bd4b00;
    border-radius: 10px;
}

.by_contact {
    border: 1px solid #F5F5F5;
    border-radius: 10px;
}

.sender_euryclee {
    color: #BD4B00;
}

.sender_contact {
    color: whitesmoke;
}

.upgrade_add {
    display: inline-block;
    vertical-align: top;
    margin-right: 20px;
}

.upgrade_add > textarea {
    width: 400px;
}

.button_upgrade {
    cursor: pointer;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 5px;
    background-color: var(--color-very-light);
    box-shadow: 2px 2px 5px 0px var(--color-dark);
}

.button_upgrade_add {
    margin-top: 50px;
    padding: 5px 20px 5px 20px;
    float: right;
}

.bug {
    color: yellow;
    display: grid;
    grid-template-columns: 100px 30px auto;
    margin: 5px;
}

.necessary {
    color: cyan;
    display: grid;
    grid-template-columns: 100px 30px auto;
    margin: 5px;
}

.nicetohave {
    color: black;
    display: grid;
    grid-template-columns: 100px 30px auto;
    margin: 5px;
}

.menu_upgrade {
    display: grid;
    grid-template-columns: auto 1fr;
}


/*
 *      calendar
 */
.calendar {
    position: absolute;
    background-color: white;
    margin-top: 5px;
    padding: 2px;
    border: 3px double silver;
    text-align: center;
    z-index: +1;
}

@media screen and (max-width: 500px) {
    .calendar {
        width: 95vw;
        left:0;
    }
}

.calendar .head {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    /*margin-top: 15px;*/
    padding: 10px;
}

.calendar .head .left {
    cursor: pointer;
    float: left;
}
.calendar .head .right {
    cursor: pointer;
    float: right;
}
.closer {
    cursor: pointer;
    color: white;
    background-color: black;
    padding: 0px 3px 0px 3px;
    border: 1px solid black;
    border-radius: 10px;
}

.calendar .foot {
    font-weight: bold;
    padding: 10px;
}

.calendar .weekday {
    display: inline-block;
    width: 13%;  /* 35px */
    padding: 5px;
    color: powderblue;
}

.calendar .week {
    display: flex;
    justify-content: space-around;
}
.calendar .monthday {
    cursor: pointer;
    display: inline-block;
    width: 13%;  /* 35px */
    padding: 5px;
    border-radius: 10px;
}

.calendar .monthday:hover {
    box-shadow: 0px 0px 2px 2px powderblue inset;
}

.calendar .othermonth {
    color: silver;
}

.calendar .today {
    background-color: Gainsboro;
}

.calendar .selected {
    background-color: powderblue;
}

.calendar .error {
    background-color: AntiqueWhite;
}

.calendar .info {
    background-color: Honeydew;
}

.calendar .unselectable {
    cursor: default;
    background-color: unset;
}
.calendar .unselectable:hover {
    box-shadow: unset;
}


/*
 *      graph
 */
.graphContainer.pie {
    display: flex;
    flex-wrap: wrap;
}

.graphContainer {
    min-height: 300px;
}


@media screen and (min-width: 801px) {
    .graphContainer {
        min-height: 380px;
    }
}