* {
margin : 0;
padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12pt;
    overflow-x: hidden;
}

section {
    margin-left: 10px;
    min-width: 700px;
    height: calc(100% - 135px);
    overflow-y: auto;
}

article {
    min-height: 100vh;
    height: auto;
}

.pageTitle {
    box-sizing: border-box;
    height: 70px;
    padding-top: 10px;
    font-family: 'Segoe UI Light', 'Segoe UI', Tahoma;
    font-size: 24pt;
}

.pageContent {
    width: 100%;
    min-height: calc(100vh - 70px);
}

iframe {
    border: none;
}


.toolbar .tbButton {
    float: right;
    margin-left: 10px;
    width: 48px;
    height: 48px;
    background: #efefef no-repeat center center;
    border-radius: 4px;
}
    .toolbar .tbButton:hover {
        background-color: #fff;
        cursor: pointer;
    }

header {
    height: 75px;
    padding: 10px;
    background-color: #2f2f30;    
}

    header .logo {
        float: left;
        width: 75px;
        height: 100%;
        margin-right: 10px;
        background: #fff url("images/logo_TERRAexpertis_64.png") no-repeat center center;
    }

    header .toolbar {
        float: right;
        height: 100%;
    }

        header .toolbar .exportPDF {
            /*background-image: url("images/ExportPDF.png");*/
            background-image: url("images/Print.png");
        }

header .rapportInfo {
	float: right;
	height: 100%;
}
header .infoDate {
    font-size: 16pt;
    text-align: right;
    color: #fff;
}
header .infoClient,
header .infoChantier {
    font-size: 12pt;
    text-align: right;
    color: #fff;
}

footer {
    height: 30px;
    margin: 2px 10px 0 10px;
    padding-top: 5px;
    border-top: solid 3px #89bf6a;
    overflow: hidden;
}

    footer #logoTerraExpertis {
        float: left;
    }

    footer span {
        padding: 0 20px;
        font-size: 10pt;
    }

#pageCartographie {
    display: flex;
    flex-direction: column;
}
    #pageCartographie .pageContent {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    #pageCartographie .pageContent img {
        max-width: 100%;
        max-height: 100%;
        height: auto;
    }

header nav {
	height: 100%;
	display: inline-block;
    float: left;
}
.terranavig {
    position: relative;
    float: left;
    width: 160px;
    height: 100%;
    margin-right: 10px;
}

    .terranavig a {
        text-decoration: none;
    }

    .terranavig .terrastep {
        position: relative;
        display: block;
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 20pt;
        margin: auto;
        text-align: center;
        border-radius: 50%;
        z-index: 2;
    }

    .terranavig .terrabutton {
        position: absolute;
        top: 47px;
        display: block;
        width: 100%;
        height: 25px;
        border-radius: 12px;
        text-align: center;
        background-color: #6caf45;
        color: #fff;
        border: solid 1px #ddd;
        z-index: 1;
    }

.terraclick {
    background-color: #fff;
    color: #333;
    border: solid 1px #ddd;
}
    .terraclick:hover {
        background-color: #6caf45;
        color: #fff;
    }
    .terraclick:active {
        background-color: #4d6c3b;
        color: #fff;
    }


.logsMenu {
    height: 55px;
}

    .logsMenu .logsMenuItem {
        float: left;
        width: 40px;
        height: 40px;
        border: solid 1px #2f2f30;
        border-radius: 50%;
        margin: 5px 15px 5px 5px;
        color: #333;
        cursor: pointer;
    }
        .logsMenu .logsMenuItem:hover {
            background-color: #6caf45;
            color: #fff;            
        }        

        .logsMenu .logsMenuItem:active {
            background-color: #4d6c3b;
            color: #fff;
        }

        .logsMenu .logsMenuItem.selected {
            width: 50px;
            height: 50px;
            margin: 0 10px 0 0;
            background-color: #6caf45;
            border-color: #4d6c3b;
            color: #fff;
        }

        .logsMenu .logsMenuItem p {
            font-size: 16pt;
            text-align: center;
            line-height: 40px;
        }
        .logsMenu .logsMenuItem.selected p {
            font-size: 20pt;
            line-height: 50px;
        }

.logsMenuTitle {
    height: 30px;
	font-size: 12pt;
	color: #333;
	text-align: right;
	padding: 0 10px;
}
.logsContainer {
    min-height: calc(100vh - 85px);
}

/* map legend*/
.mapLegend {
    height: 28px;
}
.mapLegend .state,
.mapLegend .state img,
.mapLegend .state div {
    float: left;
}

    .mapLegend .state img {
        margin-right: 5px;
    }

    .mapLegend .state span {        
        padding: 2px 5px;
        margin-right: 20px;
        border-radius: 5px;
        color: #fefefe;        
    }

    .mapLegend .state .stateTodo {
        background-color: #888;
    }

    .mapLegend .state .stateInProgress {
        background-color: #C17819;
    }

    .mapLegend .state .stateDone {
        background-color: #06740b;
    }


/* Zoom image */
#pageZoomImage {
    position: absolute;
    width: 100%;
    height: calc(100% - 135px);     /* header = 95px, footer = 40px */    
}

    #pageZoomImage .zoomBackground {
        height: 100%;
        background-color: rgba(0,0,0,0.5);        
    }

    #pageZoomImage .zoomForeground {
        position: relative;
        height: 100%;
        background-position: center center;
        background-repeat: no-repeat;        
    }

    #pageZoomImage .zoomClose {
        position: absolute;
        top : 10px;
        right: 10px;
        width: 64px;
        height: 64px;
        background: url("images/close_64.png") center center no-repeat;
        cursor: pointer;
    }