﻿/* Reset du style par défaut des éléments HTML */

img
{
    border-style: none;
}


/* Validation helpers */

.field-validation-error
{
    color: #ff0000;
}

.field-validation-valid
{
    display: none;
}

.input-validation-error
{
    border: 1px solid #ff0000;
    background-color: #ffeeee;
}

.validation-summary-errors
{
    font-weight: bold;
    color: #ff0000;
}

.validation-summary-valid
{
    display: none;
}


/* Contrôles communs */

/* searchControl */

.searchControl
{
    background-color: White;
    display: inline-block;
}

    .searchControl input
    {
        border: none;
        margin: 0px;
        margin-left: 0.2em;
        vertical-align: middle;
    }

div.searchControl button
{
    background-image: url("../images/magnifier_white_16.png");
    background-color: #7E7E7E;
    background-position: center;
    border: 1px solid White;
    cursor: pointer;
    height: 20px;
    margin: 0px;
    padding: 0px;
    vertical-align: middle;
    width: 20px;
}


/* datepickerControl */

.datepickerControl
{
    background-color: White;
    display: inline-block;
}

    .datepickerControl input
    {
        border: none;
    }

    .datepickerControl img
    {
        vertical-align: text-top;
    }


/* Indicateur d'erreur de chargement Ajax */

.loadIndicators
{
    display: inline-block;
}

.loadError
{
    display: inline-block;
}

    .loadError > div
    {
        background-image: url("../images/error16.png");
        cursor: pointer;
        display: none;
        height: 16px;
        margin-left: 0.2em;
        width: 16px;
    }


/* Indicateur de chargement Ajax en cours */

.loading
{
    display: inline-block;
}

    .loading > div
    {
        background-image: url("../images/loading16.gif");
        display: none;
        height: 16px;
        margin-left: 0.2em;
        width: 16px;
    }


/* Page entière */

html
{
    height: 100%;
}

body
{
    font-family: Calibri, Helvetica, Sans-Serif;
    font-size: 0.85em;
    height: 100%;
    margin: 0px;
}

.mainPage
{
    background-color: #B9B9B9;
    background-image: -webkit-linear-gradient(left top, #B9B9B9 0%, #F0F0F0 100%);
    background-image: -moz-linear-gradient(left top, #B9B9B9 0%, #F0F0F0 100%);
    background-image: -ms-linear-gradient(left top, #B9B9B9 0%, #F0F0F0 100%);
    background-image: -o-linear-gradient(left top, #B9B9B9 0%, #F0F0F0 100%);
    background-image: linear-gradient(to right bottom, #B9B9B9 0%, #F0F0F0 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#B9B9B9', endColorstr='#F0F0F0');
    min-height: 100%;
    min-width: 1044px;
}

    .mainPage .mainPageWidth
    {
        margin-left: auto;
        margin-right: auto;
        padding-left: 10px;
        padding-right: 10px;
        width: 1024px;
    }


    /* En-tête de page */

    .mainPage > .header
    {
        background-color: #434343;
        background-image: -webkit-linear-gradient(left top, #434343 0%, #A4A4A4 100%);
        background-image: -moz-linear-gradient(left top, #434343 0%, #A4A4A4 100%);
        background-image: -ms-linear-gradient(left top, #434343 0%, #A4A4A4 100%);
        background-image: -o-linear-gradient(left top, #434343 0%, #A4A4A4 100%);
        background-image: linear-gradient(to right bottom, #434343 0%, #A4A4A4 100%);
        border-bottom: 0.4em solid #76797E;
        filter: progid:DXImageTransform.Microsoft.gradient(gradientType=1, startColorstr='#434343', endColorstr='#A4A4A4');
        height: 6.25em;
    }

        .mainPage > .header > .topBar
        {
            color: White;
            height: 6.65em;
            overflow: hidden;
        }


/* Menu principal */

.header .mainMenu
{
    float: left;
    width: 80%;
}

    .header .mainMenu > .menuItem
    {
        float: left;
        width: 20%;
    }

        .header .mainMenu > .menuItem > .top
        {
            height: 2.5em;
        }

            .header .mainMenu > .menuItem > .top > .colored
            {
                display: none;
                height: 50%;
            }

        .header .mainMenu > .menuItem.current > .top > .colored
        {
            display: block;
        }

        .header .mainMenu > .menuItem > a
        {
            border-right: 1px solid #8A8A8A;
            color: inherit;
            display: block;
            text-decoration: none;
        }

        .header .mainMenu > .menuItem:first-child > a
        {
            border-right-style: none;
        }

        .header .mainMenu > .menuItem:first-child + .menuItem > a
        {
            border-left: 1px solid #8A8A8A;
        }

        .header .mainMenu > .menuItem .caption
        {
            filter: alpha(opacity=75);
            font-family: Segoe UI light;
            height: 3.25em;
            opacity: 0.75;
            padding-left: 1em;
            padding-right: 1em;
            padding-top: 0.5em;
        }

        .header .mainMenu > .menuItem > a:hover .caption, .header .mainMenu > .menuItem.current .caption
        {
            filter: alpha(opacity=100);
            opacity: 1;
        }

        .header .mainMenu > .menuItem .logo
        {
            display: inline-block;
        }

        .header .mainMenu > .menuItem .text
        {
            display: inline;
            font-size: 1.4em;
        }

        .header .mainMenu > .menuItem .legend
        {
            color: Silver;
            font-size: 0.85em;
        }

        .header .mainMenu > .menuItem .bottom
        {
            filter: alpha(opacity=75);
            height: 0.4em;
            opacity: 0.75;
        }

        .header .mainMenu > .menuItem > a:hover .bottom, .header .mainMenu > .menuItem.current .bottom
        {
            filter: alpha(opacity=100);
            opacity: 1;
        }

        .header .mainMenu > .menuItem.disabled > a
        {
            pointer-events: none;
        }


        /* Menu home */

        .header .mainMenu > .menuItem.home > a
        {
            height: 5.75em;
            line-height: 5.75em;
            padding-right: 0.25em;
            padding-top: 0.25em;
            padding-bottom: 0.25em;
        }

        .header .mainMenu > .menuItem.home img
        {
            line-height: normal;
            max-height: 100%;
            max-width: 100%;
            vertical-align: middle;
        }


        /* Menus d'exploitation */

        /* Menu alarms */

        .header .mainMenu > .menuItem.alarms > a
        {
            position: relative;
        }

        .header .mainMenu > .menuItem.alarms .alarmEventCountWidget
        {
            font-family: Segoe UI light;
            left: 0.2em;
            position: absolute;
            top: -1em;
        }

        .header .mainMenu > .menuItem.alarms .colored
        {
            background-color: #E54D1C;
        }

        .header .mainMenu > .menuItem.alarms .logo
        {
            background-image: url("../images/picto_alerte.png");
            height: 17px;
            width: 21px;
        }

        .header .mainMenu > .menuItem.alarms > a:hover .logo, .header .mainMenu > .menuItem.alarms.current .logo
        {
            background-image: url("../images/picto_alerte_hover.png");
        }


        /* Menu sites */

        .header .mainMenu > .menuItem.sites .colored
        {
            background-color: #0189B9;
        }

        .header .mainMenu > .menuItem.sites .logo
        {
            background-image: url("../images/picto_home.png");
            height: 18px;
            width: 17px;
        }

        .header .mainMenu > .menuItem.sites > a:hover .logo, .header .mainMenu > .menuItem.sites.current .logo
        {
            background-image: url("../images/picto_home_hover.png");
        }


        /* Menu statistic */

        .header .mainMenu > .menuItem.statistic .colored
        {
            background-color: #C21BCA;
        }

        .header .mainMenu > .menuItem.statistic .logo
        {
            background-image: url("../images/picto_stats.png");
            height: 18px;
            width: 19px;
        }

        .header .mainMenu > .menuItem.statistic > a:hover .logo, .header .mainMenu > .menuItem.statistic.current .logo
        {
            background-image: url("../images/picto_stats_hover.png");
        }


        /* Menu support */

        .header .mainMenu > .menuItem.support .colored
        {
            background-color: #FDA510;
        }

        .header .mainMenu > .menuItem.support .logo
        {
            background-image: url("../images/picto_support.png");
            height: 16px;
            width: 15px;
        }

        .header .mainMenu > .menuItem.support > a:hover .logo, .header .mainMenu > .menuItem.support.current .logo
        {
            background-image: url("../images/picto_support_hover.png");
        }


        /* Menus d'administration */

        /* Menu users */

        .header .mainMenu > .menuItem.users .colored
        {
            background-color: #C21BCA;
        }

        .header .mainMenu > .menuItem.users .logo
        {
            background-image: url("../images/picto_users.png");
            height: 23px;
            width: 25px;
        }

        .header .mainMenu > .menuItem.users > a:hover .logo, .header .mainMenu > .menuItem.users.current .logo
        {
            background-image: url("../images/picto_users.png");
        }

        /* Menu misc */

        .header .mainMenu > .menuItem.misc .colored
        {
            background-color: #FDA510;
        }

        .header .mainMenu > .menuItem.misc .logo
        {
            background-image: url("../images/picto_misc.png");
            height: 22px;
            width: 23px;
        }

        .header .mainMenu > .menuItem.misc > a:hover .logo, .header .mainMenu > .menuItem.misc.current .logo
        {
            background-image: url("../images/picto_misc.png");
        }


/* Infos en haut à droite */

.mainInfos
{
    float: right;
    text-align: right;
    width: 20%;
}

/* Login */

.userLogin
{
    height: 3.8em;
    padding-top: 0.3em;
}

    .userLogin > .welcome
    {
        font-weight: bold;
    }

        .userLogin > .welcome .userName
        {
            display: inline;
        }

        .userLogin > .welcome a
        {
            color: inherit;
        }

    .userLogin > .action a
    {
        color: Silver;
    }

/* Webio Login */

.mainPage.backgroundImage
{
    background-image: url('/Content/images/webio_login_background.png');
    background-size: 20%;
    min-width: 100%;
}

    .mainPage.backgroundImage > .body
    {
        position: fixed;
        right: 0;
        left: 0;
        top: 0;
        bottom: 50px;
        min-height: 300px;
        z-index: 100;
        padding: 0;
        width: 100%;
    }

    .mainPage.backgroundImage form
    {
        position: relative;
        top: 30%;
        transform: translateY(-30%);
    }

@media only screen and (max-width: 485px)
{
    .mainPage.backgroundImage
    {
        background-image: none;
        background-color: white;
    }

        .mainPage.backgroundImage form
        {
            top: 0%;
            transform: translateY(0%);
        }

        .mainPage.backgroundImage > .footer .logo
        {
            display: none;
        }
}

.mainPage > .footer.webioFooter
{
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 0 10px 10px 10px;
    margin-top: 0;
    z-index: 1;
    overflow: hidden;
}

    .mainPage > .footer.webioFooter > .logo
    {
        float: right;
    }

    .mainPage > .footer.webioFooter > .copyright.webioCopyright
    {
        float: left;
        padding-top: 20px;
    }

        .mainPage > .footer.webioFooter > .copyright.webioCopyright a
        {
            text-decoration: none;
        }

.userLoginFlexbox
{
    height: 100%;
    padding: 0;
    margin: 0;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .userLoginFlexbox .row
    {
        background-color: white;
        padding: 2em;
        border-radius: 15px;
        width: auto;
    }

        .userLoginFlexbox .row .title
        {
            margin-bottom: .5em;
            text-transform: uppercase;
            font-size: 25px;
            font-weight: bold;
            color: #7B7979;
            text-align: center;
        }

        .userLoginFlexbox .row .editor-label
        {
            text-transform: uppercase;
            color: gray;
        }

        .userLoginFlexbox .row input[type=text], .row input[type=password]
        {
            margin-top: .5em;
            margin-bottom: .5em;
            width: 100%;
        }

        .userLoginFlexbox .row p
        {
            text-align: center;
        }

        .userLoginFlexbox .row input:-webkit-autofill
        {
            box-shadow: 0 0 0 30px white inset;
            border-radius: 0;
            border: 1px solid gray;
        }

        .userLoginFlexbox .row p input[type=submit]
        {
            padding: 10px 20px;
            background: #00837A;
            border: 0 none;
            cursor: pointer;
            text-transform: uppercase;
            color: white;
            font-size: 10px;
        }

/* Recherche globale */

.mainInfos .searchControl input
{
    width: 170px;
}


/* Sous en-tête de page */

.mainPage > .subHeader
{
    margin-top: 1em;
    margin-bottom: 1em;
}


/* Fil d'ariane */

.ariane
{
    display: inline-block;
    font-size: 0.85em;
    line-height: 2em;
}

.arianeItem
{
    display: inline-block;
}

    .arianeItem:before
    {
        content: ">";
        font-weight: normal;
        margin-left: 0.5em;
        margin-right: 0.5em;
    }

    .arianeItem:first-child:before
    {
        content: normal;
    }

    .arianeItem:last-child
    {
        font-weight: bold;
    }

    .arianeItem a
    {
        color: inherit;
        text-decoration: none;
    }


/* Body */

.mainPage > .body
{
    overflow: hidden;
}

    .mainPage > .body > .mainWidgets
    {
        float: left;
        width: 69%;
    }

    .mainPage > .body > .additionalWidgets
    {
        float: right;
        width: 29%;
    }

    .mainPage > .body .pageDescription > .text
    {
        font-size: 1.2em;
        font-weight: bold;
    }


/* Widgets */

.widget
{
    margin-top: 1em;
}

    .widget:first-child
    {
        margin-top: 0em;
    }

    .widget > .header
    {
        background-color: #018BBC;
        color: White;
        overflow: hidden;
        padding: 0.5em;
    }

        .widget > .header > .caption
        {
            float: left;
        }

            .widget > .header > .caption > .logo
            {
                display: inline-block;
                margin-right: 0.5em;
            }

            .widget > .header > .caption > .text
            {
                display: inline;
                font-family: Segoe UI light;
                font-size: 1.8em;
            }

        .widget > .header > .misc
        {
            float: right;
            padding-top: 0.4em;
            margin-left: 1em;
        }

            .widget > .header > .misc a.action
            {
                background-color: #05AAE4;
                border: 1px solid white;
                color: inherit;
                font-size: 0.85em;
                padding: 0.5em 1em;
                text-decoration: none;
            }

    .widget button
    {
        background-color: transparent;
        border: 1px solid white;
        color: inherit;
        cursor: pointer;
        font-size: 0.85em;
        margin: 0em;
        padding: 0.5em 1em;
    }

    .widget > .header > .misc button, .widget > .footer > .misc button
    {
        background-color: #05AAE4;
    }

    .widget > .subHeader
    {
        background-color: #00668C;
        color: White;
    }

        .widget > .subHeader button
        {
            background-color: #018BBC;
        }

        .widget > .subHeader > .initialContent
        {
            line-height: 5em;
            text-align: center;
        }

        .widget > .subHeader .initialContent .loading
        {
            vertical-align: middle;
        }

            .widget > .subHeader .initialContent .loading > div
            {
                background-image: url("../images/loading32.gif");
                height: 32px;
                margin: 0em;
                width: 32px;
            }

        .widget > .subHeader .searchControl button
        {
            background-color: #05AAE4;
        }

    .widget > .body
    {
        background-color: White;
        border: 1px solid #018BBC;
        border-top-width: 0px;
        color: Black;
    }

        .widget > .body > .initialContent
        {
            line-height: 7em;
            text-align: center;
        }

        .widget > .body .initialContent .loadError
        {
            vertical-align: middle;
        }

            .widget > .body .initialContent .loadError > div
            {
                background-image: url("../images/error32.png");
                height: 32px;
                width: 32px;
            }

        .widget > .body .initialContent .loading
        {
            vertical-align: middle;
        }

            .widget > .body .initialContent .loading > div
            {
                background-image: url("../images/loading32.gif");
                height: 32px;
                width: 32px;
            }

        .widget > .body .widgetBodyTable
        {
            border-collapse: collapse;
            width: 100%;
        }

            .widget > .body .widgetBodyTable > thead th
            {
                padding: 0.25em;
                text-align: left;
            }

                .widget > .body .widgetBodyTable > thead th:first-child
                {
                    padding-left: 0.5em;
                }

                .widget > .body .widgetBodyTable > thead th:last-child
                {
                    padding-right: 0.5em;
                }

            .widget > .body .widgetBodyTable > thead .sortableColumnHeader
            {
                vertical-align: middle;
            }

            .widget > .body .widgetBodyTable > thead a
            {
                color: inherit;
                text-decoration: none;
            }

            .widget > .body .widgetBodyTable > tbody > tr.summary:nth-child(odd)
            {
                background-color: #ECECEC;
            }

            .widget > .body .widgetBodyTable > tbody > tr.summary > td
            {
                padding: 0.4em 0.25em;
            }

                .widget > .body .widgetBodyTable > tbody > tr.summary > td:first-child
                {
                    padding-left: 0.5em;
                }

                .widget > .body .widgetBodyTable > tbody > tr.summary > td:last-child
                {
                    padding-right: 0.5em;
                }

                .widget > .body .widgetBodyTable > tbody > tr.summary > td a
                {
                    color: inherit;
                    text-decoration: none;
                }

    .widget > .footer
    {
        background-color: #018BBC;
        color: White;
        padding: 0.5em;
    }


    /* Widgets d'alarme */

    .widget.alarm > .header, .widget.alarm > .footer
    {
        background-color: #E74C1C;
    }

        .widget.alarm > .header > .misc a.action
        {
            background-color: #F65E2F;
        }

        .widget.alarm > .header > .misc button, .widget.alarm > .footer > .misc button
        {
            background-color: #F65E2F;
        }

    .widget.alarm > .subHeader
    {
        background-color: #EA6B42;
    }

        .widget.alarm > .subHeader button
        {
            background-color: #E74C1C;
        }

    .widget.alarm > .body
    {
        border-color: #E74C1C;
    }

    /* Widgets d'erreur */

    .widget.error > .header
    {
        background-color: Red;
    }

    .widget.error > .body
    {
        border-color: Red;
        padding: 1em;
    }

        .widget.error > .body > #errorContent
        {
            font-size: 1.2em;
            font-weight: bold;
        }

    /* Widgets d'admin good */

    .widget.admin.good > .header, .widget.admin.good > .footer
    {
        background-color: #6bb81e;
    }

    .widget.admin.good > .body
    {
        border-color: #6bb81e;
    }

    /* Widgets d'admin warning */

    .widget.admin.warning > .header, .widget.admin.warning > .footer
    {
        background-color: #f6700d;
    }

    .widget.admin.warning > .body
    {
        border-color: #f6700d;
    }

#errorContent .exceptionMessage
{
    font-family: Monospace;
    white-space: pre-wrap;
}


/* Pied de page */

.mainPage > .footer
{
    font-size: 0.85em;
    margin-top: 2em;
    overflow: hidden;
    padding-bottom: 2em;
}

    .mainPage > .footer > .logo
    {
        float: left;
        height: 3em;
        margin-right: 1em;
    }

.footer .mainMenu a
{
    color: Black;
    text-decoration: none;
    margin-right: 1em;
}

    .footer .mainMenu a.current
    {
        font-weight: bold;
    }

    .footer .mainMenu a.disabled
    {
        pointer-events: none;
    }

.mainPage > .footer .copyright
{
    margin-top: 0.5em;
}

    .mainPage > .footer .copyright a
    {
        text-decoration: none;
    }
