﻿/* Generics */
::-moz-selection {
    color: #FFF;
    background: #bf0d3e;
}

::selection {
    color: #FFF;
    background: #bf0d3e;
}

a, [onclick] {
    cursor: pointer;
}

body {
    font-family: 'Exo', sans-serif;
}

u {
    text-decoration: none;
}

.btn,
.panel,
.alert,
.breadcrumb,
.form-control,
.modal-content,
.list-group .list-group-item:first-child,
.list-group .list-group-item:last-child {
    border-radius: 0;
}

/* Components */
.full-width {
    width: 100% !important;
}

.margin-b {
    margin-bottom: 20px;
}

.empty-h1 {
    margin-top: -25px;
    position: absolute;
    text-align: center;
    top: 50%;
    width: 100%;
}

.fieldset-control {
    display: inline-block;
    margin-bottom: 10px;
    max-width: 300px;
}

/* Colors */
a {
    color: #bf0d3e;
}

    a:hover,
    a:focus {
        color: #980a31;
    }

    a.action {
        color: #0e99cc;
    }

        a.action:hover,
        a.action:focus {
            color: #286090;
        }

.form-control:focus {
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(14, 153, 204, 0.6);
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(14, 153, 204, 0.6);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(14, 153, 204, 0.6);
    border-color: #0e99cc;
    outline: 0 none;
}

.btn-primary,
.btn-primary.disabled,
.btn-primary.disabled.active,
.btn-primary.disabled.focus,
.btn-primary.disabled:active,
.btn-primary.disabled:focus,
.btn-primary.disabled:hover,
.btn-primary[disabled],
.btn-primary.active[disabled],
.btn-primary.focus[disabled],
.btn-primary[disabled]:active,
.btn-primary[disabled]:focus,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary,
fieldset[disabled] .btn-primary.active,
fieldset[disabled] .btn-primary.focus,
fieldset[disabled] .btn-primary:active,
fieldset[disabled] .btn-primary:focus,
fieldset[disabled] .btn-primary:hover {
    background-color: #0e99cc;
    border: 2px solid #0e99cc;
    color: #FFF;
}

    .btn-primary:active,
    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary.active.focus,
    .btn-primary.active:focus,
    .btn-primary.active:hover,
    .btn-primary.focus:active,
    .btn-primary:active:focus,
    .btn-primary:active:hover,
    .open > .dropdown-toggle.btn-primary.focus,
    .open > .dropdown-toggle.btn-primary:focus,
    .open > .dropdown-toggle.btn-primary:hover {
        background-color: #FFF;
        border: 2px solid #0e99cc;
        color: #0e99cc;
    }

.btn-default {
    background-color: #FFF;
    border: 2px solid #333;
    color: #333;
}

    .btn-default:active,
    .btn-default:hover,
    .btn-default:focus,
    .btn-default.active.focus,
    .btn-default.active:focus,
    .btn-default.active:hover,
    .btn-default.focus:active,
    .btn-default:active:focus,
    .btn-default:active:hover,
    .open > .dropdown-toggle.btn-default.focus,
    .open > .dropdown-toggle.btn-default:focus,
    .open > .dropdown-toggle.btn-default:hover {
        background-color: #333;
        border: 2px solid #333;
        color: #FFF;
    }

.nav-pills > li.active > a,
.nav-pills > li.active > a:focus,
.nav-pills > li.active > a:hover {
    background-color: #bf0d3e;
}

.datepicker,
.datepicker table tr td,
.datepicker table tr th,
.nav-pills > li > a,
.img-thumbnail {
    border-radius: 0;
}

    .datepicker table tr td.active:hover,
    .datepicker table tr td.active:hover:hover,
    .datepicker table tr td.active.disabled:hover,
    .datepicker table tr td.active.disabled:hover:hover,
    .datepicker table tr td.active:focus,
    .datepicker table tr td.active:hover:focus,
    .datepicker table tr td.active.disabled:focus,
    .datepicker table tr td.active.disabled:hover:focus,
    .datepicker table tr td.active:active,
    .datepicker table tr td.active:hover:active,
    .datepicker table tr td.active.disabled:active,
    .datepicker table tr td.active.disabled:hover:active,
    .datepicker table tr td.active.active,
    .datepicker table tr td.active.active:hover,
    .datepicker table tr td.active.disabled.active,
    .datepicker table tr td.active.disabled.active:hover,
    .open .dropdown-toggle.datepicker table tr td.active,
    .open .dropdown-toggle.datepicker table tr td.active:hover,
    .open .dropdown-toggle.datepicker table tr td.active.disabled,
    .open .dropdown-toggle.datepicker table tr td.active.disabled:hover,
    .datepicker table tr td span.active:hover,
    .datepicker table tr td span.active:hover:hover,
    .datepicker table tr td span.active.disabled:hover,
    .datepicker table tr td span.active.disabled:hover:hover,
    .datepicker table tr td span.active:focus,
    .datepicker table tr td span.active:hover:focus,
    .datepicker table tr td span.active.disabled:focus,
    .datepicker table tr td span.active.disabled:hover:focus,
    .datepicker table tr td span.active:active,
    .datepicker table tr td span.active:hover:active,
    .datepicker table tr td span.active.disabled:active,
    .datepicker table tr td span.active.disabled:hover:active,
    .datepicker table tr td span.active.active,
    .datepicker table tr td span.active.active:hover,
    .datepicker table tr td span.active.disabled.active,
    .datepicker table tr td span.active.disabled.active:hover,
    .open .dropdown-toggle.datepicker table tr td span.active,
    .open .dropdown-toggle.datepicker table tr td span.active:hover,
    .open .dropdown-toggle.datepicker table tr td span.active.disabled,
    .open .dropdown-toggle.datepicker table tr td span.active.disabled:hover {
        background-color: #0e99cc;
        border-color: #0e99cc;
        border-radius: 0;
    }

    .datepicker table tr td span {
        border-radius: 0;
    }

.progress-bar-primary {
    background-color: #0e99cc;
}

/* Messages */
.radio-group label {
    margin-left: 20px;
}

    .radio-group label:first-child {
        margin-left: 0;
    }

.has-error .radio-group label {
    color: #a94442;
}

.has-warning .radio-group label {
    color: #8a6d3b;
}

.has-success .radio-group label {
    color: #3c763d;
}

/* Master */
.topbar {
    background-color: #333;
    color: #FFF;
}

    .topbar .container-fluid,
    .topbar .row,
    .topbar [class^="col-"] {
        margin: 0;
        padding: 0;
    }

    .topbar a {
        color: #FFF;
        display: inline-block;
        margin: 0 20px;
    }

        .topbar a.last {
            background-color: #0DBF8A;
            cursor: pointer;
            margin: 0;
            padding: 10px 25px;
            text-align: center;
            text-transform: uppercase;
            min-width: 225px;
            -moz-transition: background 0.3s linear;
            -o-transition: background 0.3s linear;
            -webkit-transition: background 0.3s linear;
            transition: background 0.3s linear;
        }

            .topbar a.last:hover,
            .topbar a.last:active,
            .topbar a.last:focus {
                background-color: #FFF;
                box-shadow: 0 4px 0 0 #0DBF8A inset;
                color: #0DBF8A;
                text-decoration: none;
            }

    .topbar .dropdown-menu {
        border-radius: 0;
        box-shadow: none;
        margin: -1px 0 0;
        min-width: 225px;
        padding: 0;
    }

        .topbar .dropdown-menu a {
            margin: 0;
            padding: 5px 20px;
            width: 100%;
        }

            .topbar .dropdown-menu a:hover,
            .topbar .dropdown-menu > .active > a,
            .topbar .dropdown-menu > .active > a:focus,
            .topbar .dropdown-menu > .active > a:hover {
                background-color: #0DBF8A;
                color: #FFF;
            }

nav.navbar {
    margin-top: -1px;
    margin-bottom: 0;
}

.navbar-brand {
    height: auto;
}

#nav-main .navbar-nav {
    margin-top: 0;
}

    #nav-main .navbar-nav > li {
        margin-left: 20px;
        margin-right: 20px;
    }

    #nav-main .navbar-nav a {
        color: #222;
        font-size: 18px;
        font-weight: 600;
        line-height: 40px;
        min-width: 150px;
        text-align: center;
        text-transform: uppercase;
    }

    #nav-main .navbar-nav li.active,
    #nav-main .navbar-nav li:hover {
        box-shadow: 0 4px 0 0 #bf0d3e inset;
    }

        #nav-main .navbar-nav li.active a,
        #nav-main .navbar-nav li a:hover {
            background: none;
            color: #bf0d3e;
        }

.body-section {
    border: 1px solid #ddd;
    -webkit-box-shadow: 0 0 5px 0 rgba(150, 150, 150, 0.75);
    -moz-box-shadow: 0 0 5px 0 rgba(150, 150, 150, 0.75);
    box-shadow: 0 0 5px 0 rgba(150, 150, 150, 0.75);
    min-height: 400px;
    padding-bottom: 20px;
    padding-top: 20px;
    position: relative;
}

.table thead tr th,
.table tbody tr td {
    padding: 20px 10px;
}

.table thead tr th {
    text-transform: uppercase;
}

.table-striped > tbody > tr:nth-of-type(2n+1) {
    background-color: #f1f1f1;
}

.datepicker table tr td,
.datepicker table tr th {
    border-radius: 0;
}

.footer-t, .footer-b {
    color: #CCC;
}

    .footer-t a, .footer-b a {
        color: #FFF;
    }

.footer-t {
    background-color: #333;
    font-size: 16px;
    line-height: 25px;
    margin-top: 50px;
    padding: 10px 0 30px;
}

    .footer-t img {
        margin: 30px 0;
    }

    .footer-t hr {
        border: 1px solid #1A1A1A;
        margin: 10px 0 30px 0;
    }

    .footer-t .navbar {
        list-style: outside none none;
        margin-bottom: 0;
        padding: 0;
    }

        .footer-t .navbar li {
            margin-bottom: 10px;
            margin-top: 10px;
        }

            .footer-t .navbar li a {
                border-bottom: 2px solid #333;
                text-align: center;
                text-decoration: none;
                text-transform: uppercase;
            }

                .footer-t .navbar li a:hover,
                .footer-t .navbar li a:active {
                    background: none;
                    border-bottom: 2px solid #FFF;
                }

.footer-b {
    background-color: #1A1A1A;
    padding: 10px 0;
}

    .footer-b a {
        text-transform: uppercase;
    }

/* Login */
.login-div {
    background-color: #EEE;
    padding: 25px 15px;
}

    .login-div .form-group:last-of-type {
        margin-bottom: 25px;
    }

    .login-div .btn {
        min-width: 125px;
    }

/* Account */
.img-avatar {
    height: 190px;
    margin: 22px auto;
}

/* Dashboard */
.home {
    position: relative;
}

    .home .main-map {
        position: relative;
    }

        .home .main-map .gmaps-infowindow {
            width: 260px;
            max-height: 300px;
        }

        .home .main-map .gm-style-iw div > div {
            overflow-x: hidden;
            overflow-y: auto;
        }

    .home .main-legend {
        background-color: rgba(255, 255, 255, 0.8);
		overflow: auto;
        padding: 30px 15px;
        position: absolute;
        top: 30px;
        right: 5px;
        bottom: 20px;
        width: 325px;
        z-index: 1;
    }

        .home .main-legend ul {
            padding-left: 60px;
        }

    .home .legend-text {
        font-size: 18px;
        margin: 0 0 15px;
    }

        .home .legend-text a {
            background-color: #0e99cc;
            border: 2px solid #0e99cc;
            border-radius: 30px;
            color: #fff;
            display: inline-block;
            font-weight: 600;
            height: 50px;
            line-height: 46px;
            margin-right: 5px;
            text-align: center;
            text-decoration: none;
            width: 50px;
        }

        .home .legend-text.text-success a {
            background-color: #0dbf8a;
            border: 2px solid #0dbf8a;
        }

        .home .legend-text.text-danger a {
            background-color: #bf0d3e;
            border: 2px solid #bf0d3e;
        }

        .home .legend-text a:hover,
        .home .legend-text a:active,
        .home .legend-text a:focus {
            cursor: default;
        }

        .home .legend-text a[onclick]:hover,
        .home .legend-text a[onclick]:active,
        .home .legend-text a[onclick]:focus {
            background-color: #FFF;
            border: 2px solid #333;
            cursor: pointer;
            color: #333;
        }

    .home .main-overlay {
        background-color: rgba(151, 151, 151, 0.5);
        height: 100%;
        position: absolute;
        width: 100%;
        z-index: 1;
    }

/* Impianto */
.panel-impianto {
    border-color: #333;
}

    .panel-impianto .panel-heading {
        background-color: #333;
        border-radius: 0;
        color: #FFF;
    }

        .panel-impianto .panel-heading a {
            color: #FFF;
            text-decoration: none;
        }

            .panel-impianto .panel-heading a:hover {
                text-decoration: underline;
            }

    .panel-impianto .img-thumbnail {
        padding: 0;
        margin-bottom: 20px;
    }

.cam-error {
    color: #a94442;
}

    .cam-error .img-thumbnail {
        border: 5px solid #a94442;
    }

.cam-success .img-thumbnail {
    border: 1px solid #0e99cc;
}

/* Modal TimeLapse */
.modal-timelapse .modal-content {
    border: 1px solid #333;
}

.modal-timelapse .modal-header {
    background-color: #333;
    color: #FFF;
}

    .modal-timelapse .modal-header select {
        background-color: #333;
        border: 2px solid #fff;
        color: #fff;
        font-weight: 700;
        height: 100%;
        margin-right: 10px;
        padding: 0 5px;
        width: 130px;
    }

    .modal-timelapse .modal-header .close {
        color: #FFF;
        opacity: 1;
    }

.modal-timelapse .chart-container {
    max-width: 200px;
}

.modal-timelapse .chart-text {
    left: 0;
    right: 0;
    text-align: center;
}

.modal-timelapse .disabled.day {
    color: #EEE;
}

.modal-timelapse .date-container {
    position: relative;
}

    .modal-timelapse .date-container .date-text {
        text-align: center;
        margin: 0 auto;
    }

    .modal-timelapse .date-container .btn {
        position: absolute;
        top: 0;
    }

        .modal-timelapse .date-container .btn.pull-left {
            left: 15px;
        }

        .modal-timelapse .date-container .btn.pull-right {
            right: 15px;
        }

.modal-timelapse .img-timelapse {
    position: relative;
    min-height: 400px;
    margin-bottom: 15px;
}

    .modal-timelapse .img-timelapse .div-trashed {
        background-color: rgba(255, 255, 255, 0.8);
        color: #bf0d3e;
        position: absolute;
        top: 0;
        width: 100%;
    }

    .modal-timelapse .img-timelapse img {
        border: 2px solid #333;
    }

    .modal-timelapse .img-timelapse.img-trashed img {
        border: 2px solid #bf0d3e;
    }

.modal-timelapse .slider-times {
    position: relative;
}

.modal-timelapse .sunrise, .modal-timelapse .sunset {
    position: absolute;
}

/* Wizard */
#wizard .wizard-header {
    text-align: center;
}

    #wizard .wizard-header h3 {
        margin-top: 10px;
    }

#wizard .background-ul {
    background-color: #333;
    margin: 20px 0;
}

#wizard ul.nav.nav-pills {
    display: table;
    margin: 0 auto;
}

    #wizard ul.nav.nav-pills li {
        float: left;
        height: 40px;
        margin: 0;
        text-align: center;
        text-transform: uppercase;
    }

        #wizard ul.nav.nav-pills li a {
            background-color: #333;
            color: #FFF;
            cursor: default;
            min-height: 40px;
        }

            #wizard ul.nav.nav-pills li a div {
                display: none;
            }

            #wizard ul.nav.nav-pills li a span {
                background-color: #fff;
                border-radius: 20px;
                color: #333;
                float: left;
                font-size: 14px;
                height: 20px;
                width: 20px;
            }

        #wizard ul.nav.nav-pills li.active {
            min-width: 200px;
            width: 18%;
        }

            #wizard ul.nav.nav-pills li.active a {
                background-color: #bf0d3e;
                color: #FFF;
                cursor: default;
            }

                #wizard ul.nav.nav-pills li.active a div {
                    display: inline-block;
                }

                #wizard ul.nav.nav-pills li.active a span {
                    color: #bf0d3e;
                }

        #wizard ul.nav.nav-pills li.completed {
            width: 100%;
        }

            #wizard ul.nav.nav-pills li.completed.success a {
                background-color: #5cb85c;
            }

            #wizard ul.nav.nav-pills li.completed.warning a {
                background-color: #f0ad4e;
            }

            #wizard ul.nav.nav-pills li.completed.danger a {
                background-color: #d9534f;
            }

#wizard .tab-pane {
    min-height: 350px;
}

#wizard #cliente .row-rivenditore {
    background-color: #f5f5f5;
    display: table;
    margin: 15px 0;
    width: 100%;
}

    #wizard #cliente .row-rivenditore [class*="col-"] {
        float: none;
        display: table-cell;
        vertical-align: middle;
    }

    #wizard #cliente .row-rivenditore .col-sm-3:first-child {
        background-color: #0e99cc;
        color: #FFF;
        font-size: 16px;
        padding: 25px 15px;
        text-transform: uppercase;
    }

    #wizard #cliente .row-rivenditore .col-sm-6 {
        font-weight: 700;
    }

#wizard #riepilogo .panel-body {
    min-height: 300px;
}

#wizard .pager {
    margin-bottom: 0;
}

    #wizard .pager .previous button,
    #wizard .pager .next button,
    #wizard .pager .finish button {
        min-width: 100px;
    }

    #wizard .pager .previous {
        float: left;
    }

    #wizard .pager .next,
    #wizard .pager .finish {
        float: right;
    }

        #wizard .pager .previous.disabled,
        #wizard .pager .next.disabled,
        #wizard .pager .finish.disabled {
            display: none;
        }

/* Progress Bar */
.progress-container .progress {
    border-radius: 0;
    height: 25px;
    margin: 20px 0 5px 0;
    position: relative;
    text-align: center;
}

.progress-container .progress-value {
    font-size: 14px;
    position: absolute;
    line-height: 25px;
    right: 0;
    left: 0;
}

    .progress-container .progress-value span {
        font-weight: 600;
    }

/* Chart */
.chart-container {
    position: relative;
    width: 100%;
}

.chart-text {
    font-weight: 600;
    left: 80px;
    position: absolute;
    top: 90px;
}

.google-visualization-tooltip {
    padding: 10px !important;
    white-space: nowrap;
    z-index: 10 !important;
}

    .google-visualization-tooltip ul {
        padding-left: 10px;
    }

/* Google Autocomplete */
.pac-input {
    border: 2px solid #0e99cc;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 14px;
    font-family: "Exo",​sans-serif;
    height: 35px;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    background-color: #FFF;
    margin-left: 10px;
    margin-top: 10px;
    padding: 0 10px;
    -ms-text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    width: 400px;
}

    .pac-input:focus {
        border-color: #0e99cc;
        -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(14, 153, 204, 0.6);
        -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(14, 153, 204, 0.6);
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(14, 153, 204, 0.6);
    }

.pac-container {
    font-family: "Exo",​sans-serif;
}

/* Responsive */
@media (min-width: 992px) {
    .footer-t .navbar {
        margin-bottom: 20px;
    }

        .footer-t .navbar .nav {
            margin: 0;
            display: table;
            width: 100%;
        }

            .footer-t .navbar .nav li {
                display: table-cell;
                float: none;
            }
}

/* Phone */
@media (max-width: 768px) {
    .topbar .col-xs-8.text-right .first {
        display: none;
    }

    .home .main-legend {
        position: static;
        width: 100%;
    }
}
