body {
    background-color: #f0f0f0;
}

div.container {
    max-width: 1700px;
}

table {
    font-size: 0.9em;
}

div.container > h1 {
    background-color: #B8C543;
    color: #000000;
    padding: 5px;
    font-size: 1.6em;
    font-weight: bold;
    font-variant: small-caps;
    margin-bottom: 0.5em;
}

div.auth-box {
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    min-height: 200px;
    text-align: center;
    z-index: 100;
    transition: 0.5s all;
    top: -600px;
    border-right: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 10px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
    background-color: #FFFFFF;
}

div.auth-box header {
    font-variant: small-caps;
    font-size: 1em;
    background-color: #000;
    color: #F8EB0B;
    padding: 5px;
    text-align: center;
    position: relative;
}

div.auth-box label {
    text-align: left;
}

.upperbar {
    background-color: #000;
    color: white;
    height: 70px;
    z-index: 1000;
}

.logo-upper {
    height: 70px;
    float: left;
}

span.initiales {
    background-color: #FFFFFF;
    border: 0px;
    height: 70px;
    width: 70px;
    float: right;
    font-size: 1.5em;
    display: block;
    color: #000;
    text-align: center;
    line-height: 70px;
}


nav#menu {
    position: relative;
}

nav#menu ul {
    padding-left: 10px;
    z-index: 500;
}

nav#menu li {
    list-style: none;
    display: inline-block;
    background-color: #79624E;
    padding: 5px 0px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    text-align: center;
    box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.5);
    transition: 0.3s all;
}

nav#menu li a {
    display: inline-block;
    width: 150px;
    color: #FFFFFF;
    text-decoration: none;
    line-height: 2em;
}

nav#menu li.large a {
    width: 300px;
}

nav#menu li:hover,
nav#menu li.selected {
    background-color: #574739;
}

div.sep_menu {
    background-color: #574739;
}

.hamburger {
    display: none;
}

div.param {
    margin-top: 1em;
    margin-bottom: 70px;
}

div.param header {
    background-color: #B8C543;
    color: #000000;
    padding: 5px;
    font-size: 1.3em;
    font-weight: bold;
    font-variant: small-caps;
    margin-bottom: 0.5em;
}

table.param .id {
    width: 50px;
    text-align: center;
}

table.param .lib {
    width: 300px;
    text-align: center;
}

table.param .lib.couleur {
    width: 100px;
    text-align: center;
}

table.param td input[type=color] {
    height: 30px;
    margin: 2px 0;
}

td.click {
    cursor: pointer;
}

input:invalid {
    border: 1px solid #ff0000;
}

div.section header {
    background-color: #B8C543;
    color: #000000;
    padding: 5px;
    font-size: 1.3em;
    font-weight: bold;
    font-variant: small-caps;
    margin-bottom: 0.5em;
}

div.section header.hideonoff {
    cursor: pointer;
}

div.section header.red {
    background-color: #ff0000;
    color: #FFF;
}

div.poseur {
    border: 1px solid #CCC;
    margin-bottom: 5px;
    padding: 3px;
    background-color: #FFFFFF;
    font-weight: bold;
    position: relative;
    height: 45px;
    padding-left: 0.5em;
}

div.poseur .resp {
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
    margin-left: 1em;
    position: relative;
    top: -7px;
}

div.poseur .boutons {
    position: absolute;
    right: 2px;
    top: 2px;
}

#liste_poseurs{
    list-style-type: none;
}

.US_fullname {
    cursor: pointer;
}

.fb {
    border: 1px solid #DDD;
    background-color: white;
}

.chantier {
    border: 1px solid #DDD;
    position: relative;
    background-color: white;
}

.chantier .CH_code {
    font-size: 0.8em;
    color: #666;
}

.chantier .CH_lib {
    font-weight: bold;
}

.chantier .CH_date {
    position: absolute;
    right: 0px;
    top: 0px;
    background-color: #000;
    color: white;
    padding: 0px 2px;
}

.chantier .CH_adresse {
    font-size: 0.8em;
}

.infos {
    font-size: 0.9em;
}

#duree_human_readable {
    font-style: italic;
    font-size: 0.8em;
}

div.photo {
    position: relative;
    display: inline-block;
}

div.photo div.suppr_photo {
    position: absolute;
    top: 0;
    right: 0;
    background-color: red;
    color: white;
    padding: 3px;
    width: 30px;
    height: 30px;
    text-align: center;
    cursor: pointer;
}


div.photo div.view_photo {
    position: absolute;
    top: 0;
    right: left;
    background-color: blue;
    color: white;
    padding: 3px;
    width: 30px;
    height: 30px;
    text-align: center;
    cursor: pointer;
}

div.cr > div {
    font-weight: bold;
    font-size: 0.8em;
}

div.cr li {
    font-size: 0.8em;
}

.filtres {
    border: 1px solid #CCC;
    background-color: #FFFFFF;
}

span.critere-l {
    border-left: 1px solid #CCC;
    padding-left: 10px;
}

.distance {
    font-size: 0.8em;
}

.poseurs {
    font-size: 0.8em;
}

.del_user_from_chantier {
    user-select: none;
}

.row.chantiers {
    margin-right: 0px;
    margin-left: 0px;
}

.travail_nb_chantier {
    border: 1px solid #CCC;
    padding: 2px;
    margin-bottom: 2px;
}

.travail_nb_chantier.total {
    background-color: #CCC;
    margin-top: 10px;
}

.form_sep {
    border-bottom: 1px solid #CCC;
    margin-top: 30px;
    margin-bottom: 10px;
    font-style: italic;
    color: #999;
    font-size: 0.9em;
}

.carac_lib {
    font-weight: bold;
    display: inline-block;
}

.carac_value {
    float: right;
}

.gps {
    font-size: 0.8em;
}

div[name=liblegende]{
    cursor: pointer;
}

#message_gps {
    font-size: 0.8em;
    font-style: italic;
    color: #555;
}

.updatable_field {
    background: transparent;
    border: none;
    width: 100%;
}

.liste-chantiers-non-planifies {
    border: 1px solid #CCC;
    background-color: #FFF;
    margin-bottom: 30px;
    box-sizing: border-box;
    padding: 20px;
}

.planning {
    display: table;
    border-collapse: collapse;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 50px;
}

.semaine {
    display: table-row;
}

.week-number {
    display: table-cell;
    vertical-align: middle;
    font-size: 0.8em;
    font-weight: bold;
    padding: 5px;
    background-color: #555;
    border-bottom: 1px solid white;
    color: white;
}

.jour {
    display: table-cell;
    width: 250px;
    height: 250px;
    border: 1px solid #CCC;
    background-color: #FFF;
    box-sizing: border-box;
    position: relative;
}

.jour.titre {
    text-align: center;
    height: auto;
    font-weight: bold;
}

.jour.today {
    background-color: rgba(184, 197, 67, 0.3);
}

.jour.past {
    background-color: rgba(204, 204, 204, 0.3);
}

.jour.ferie {
    background-color: rgba(0, 0, 0, 0.7);
}

.jour.fdom {
    border-left: 2px solid black;
}

.planning_date {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    background-color: #CCC;
    font-size: 0.8em;
}

.planning_infos {
    font-size: 0.75em;
    opacity: 0.5;
    text-align: right;
}

.chantier-planning {
    border: 1px solid black;
    display: inline-block;
    box-sizing: border-box;
    padding: 2px 10px;
    font-weight: bold;
    font-size: 0.8em;
    min-width: 150px;
    text-align: center;
    background-color: #79624E;
    color: #FFF;
    margin: 1px;
    cursor: grab;
    border-radius: 4px;
    position: relative;
}

.chantier-planning.version-poseur {
    width: 99%;
    box-sizing: border-box;
}

.date_planning_poseur.today {
    color: red;
}

.date_planning_poseur.past {
    color: #888;
}

.chantier-planning.onplanning {
    /*display: block;*/
}

.chantier-planning.cloture {
    background-color: #CCC;
    color: black;
}

.chantier-planning.avancement_pose {
    background-color: #B8C543;
    color: black;
}

.chantier-planning.avancement_finition {
    background-color: #f3862c;
    color: black;
}

.chantier-planning.avancement_sav {
    background-color: #ff0000;
    color: black;
}

.chantier-planning.avancement_cloture {
    background-color: #CCC;
    color: black;
}

#legende_planning {
    /*display: none;*/
    margin-bottom: 20px;
}

.chantier-planning.onplanning.sav {
    border: 2px solid red;
}

.planning_jour_chantier {
    padding-top: 20px;
    box-sizing: border-box;
}

.date_planning_poseur {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    font-size: 0.8em;
}

a.link-chantier-planning {
    color: white;
    text-decoration: none;
    position: absolute;
    right: 5px;
    top: 2px;
}

.message-poseur {
    text-align: center;
    background-color: #FFFFFF;
    border: 1px solid #CCC;
    width: 100%;
    padding: 10px;
    font-size: 0.8em;
    font-style: italic;
}

.intervention { 
    background-color: #FFFFFF;
    border: 1px solid #CCC;
    padding: 3px;
    font-size: 0.8em;
}

.intervention .code_chantier {
    color: #666;
}

.intervention .nom_chantier {
    font-size: 1.2em;
    color: #000;
    font-weight: bold;
}

div.signature-pad-body {
    width: 100%;
    max-width: 400px;
    height: 400px;
    border: 1px solid #EEE;
    position: relative;
    display: inline-block;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.02) inset;
}

canvas.signature {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.cadre {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
}

div.container.signer {
    background-color: #EEE;
    max-width: 420px;
    padding-bottom: 10px;
}

div.container.signer h1 {
    text-align: center;
    color: white;
    background-color: teal;
    font-size: 1.3em;
}

div.container.signer .info {
    font-size: 0.9em;
}

#chantiers-passes-sans-cr {
    text-align: center;
    font-size: 0.8em;
    background-color: #ff0000;
    color: #FFF;
    padding: 5px;
    display: none;
}

.important {
    font-size: 1.2em;
    color:red;
}

div.event {
    background-color: #CCC;
}

div.event .fl {
    font-size: 0.8em;
}

div.event .texte {
    background-color: #FFF;
    border: 1px solid #AAA;
    margin-bottom: 5px;
    border-radius: 4px;
}

div.ressource {
    border: 1px solid #CCC;
    margin-bottom: 5px;
    padding: 3px;
    background-color: #FFFFFF;
    font-weight: bold;
    position: relative;
    height: 45px;
    padding-left: 0.5em;
}

div.horaire_poseur {
    background-color: #FFFFFF;
    border: 1px solid #CCC;
    padding: 3px;
    font-size: 0.8em;
    margin-bottom: 15px;
}

div.horaire_poseur > .date {
    text-align: center;
    font-weight: bold;
}

div.horaire_poseur>.duree {
    text-align: center;
    font-style: italic;
    font-size: 0.9em;
}

div.horaire_poseur>.commentaire {
    height: 5em;
    overflow: hidden;
    margin-bottom: 1em;
    background-color: #F0F0F0;
    padding: 3px;
}

div.horaire_poseur>.commentaire.full {
    height: auto;
    margin-bottom: 1em;
}

div.decompte_cr {
    font-size: 0.8em;
}

div.total_cr {
    font-size: 0.8em;
    font-weight: bold;
    border-top: 1px solid #999;
}

div.total_chantier {
    background-color: #F00;
    font-weight: bold;
    color: #FFF;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 3px 5px;
}

div.decompte_cr {
    cursor: pointer;
}

div.decompte_cr:hover {
    background-color: rgba(255, 255, 255,0.5);
}

div.contact_chantier {
    display: inline-block;
    border: 1px solid #CCC;
    text-align: center;
    background-color: rgba(0, 0, 0, .1);
}

div.caract_section {
    font-weight: bold;
    text-align: center;
    background-color: #CCC;
    font-size: 0.9em;
}

div.sscaract_section {
    font-weight: bold;
    margin-top: 10px;
}

a.nom_doc {
    font-size: 0.9em;
}

@media screen and (max-width: 1750px) {

    nav#menu li a {
        width: 50px;
        transition: 0.3s all;
        white-space: nowrap;
    }

    nav#menu li a:hover {
        width: 150px;
    }

    nav#menu li span.menu_label {
        display: none;
    }

    nav#menu li a:hover span.menu_label {
        display: initial;
    }

}


@media screen and (max-width: 1100px) {

    nav#menu li span.menu_label {
        display: initial;
    }
    
    div.section {
        margin-left: -15px;
        margin-right: -15px;
    }

    nav#menu ul {
        padding-left: 0px;
        position: absolute;
        width: 100%;
        left: -101%;
        transition: 0.5s all;
    }

    nav#menu ul.displayed {
        left: 0px;
    }

    nav#menu li {
        display: block;
        border-bottom-right-radius: 0px;
        border-bottom-left-radius: 0px;
    }

    nav#menu li a {
        font-size: 1.2em;
        width: 100%;
        text-align: left;
        padding-left: 10px;
    }

    .hamburger {
        display: inline-block;
        height: 50px;
        width: 50px;
        background-color: #79624E;
        line-height: 50px;
        text-align: center;
        font-size: 1.7em;
    }

}