
body.skin-black {

    .badge-environment-beta {
        top: 7px;
        font-size: 11px;
        padding: 0px 7px;
    }

    // Labels
    .label {
        &.outline {
            background-color: white !important;
        }

        &.label-default.outline {
            color: #444 !important;
            border: solid 1px #444;
        }

        &.label-success.outline {
            color: #00a65a !important;
            border: solid 1px #00a65a;
        }

        &.label-warning.outline {
            color: #f39c12 !important;
            border: solid 1px #f39c12;
        }

        &.label-danger.outline {
            color: #dd4b39 !important;
            border: solid 1px #dd4b39;
        }
    }

    // Gestion des retours à la ligne (à cause de la difficulté à gérer du HTMl dans les tooltip)
    .ui-tooltip {
        white-space: pre-wrap;
    }

    // Utilisateurs
    .user-without-account {
        color: gray;
        font-style: italic;
    }

    // Points de vente
    .locality {
        color: gray;
    }

    .main-header {

        .dropdown-toggle::after {
            display: none;
        }

        .logo {
            background-color: white ;
            font-family: 'highvoltageregular';
            font-size: 23px;
            position: relative;

            &:hover, &:focus {
                background-color: white ;
                text-decoration: none;
            }

            img {
                position: relative;
                max-width: 300px;
                max-height: 300px;
                height: auto;
            }

            .logo-lg {
                img {
                    width: 90px ;
                    top: -2px;
                }
            }
            .logo-mini {
                img {
                    width: 50px ;
                }
            }
        }
        .navbar {
            display: block;
            background-color: white ;
            padding: 0px;

            .producer-panel {
                position: relative;
                float: left;
                padding: 15px;
                padding-left: 50px;
                margin-left: 7px;

                &.without-logo {
                    padding-left: 10px;
                }

                .logo {
                    position: absolute;
                    top: 5px;
                    left: 0px;
                    background-color: white;
                    width: 40px;
                    height: 40px;
                    @include border-radius(50px);
                    border: solid 1px #e0e0e0;
                    text-align: center;
                    overflow: hidden;

                    .img-logo {
                        position: absolute;
                        top: 50%;
                        left: 50%;
                        transform: translate(-50%, -50%);
                        max-width: 35px;
                        max-height: 35px;
                    }
                }

                .title {
                    position: relative;
                    top: 2px;
                    text-transform: uppercase;

                    a {
                        color: #333;

                        &:hover {
                            text-decoration: underline;
                        }
                    }

                    .producer-id {
                        color: gray;
                        font-size: 13px;
                    }
                }
            }

            .sidebar-toggle {
                color: #333 ;
            }

            .link-support {
                float: left;
                padding: 15px 15px;
                border-right: solid 1px #e0e0e0;
                color: #333;

                &:hover {
                    text-decoration: none;
                    color: $color1;
                }
            }

            .navbar-custom-menu .nav {
                display: block;
            }

            .navbar-custom-menu .navbar-nav > li > a,
            .navbar-right > li > a {
                border-left: solid 1px #e0e0e0 ;
                color: #333 ;
            }
            
            .nav > li > a:hover, .nav > li > a:active, .nav > li > a:focus, 
            .nav .open > a, .nav .open > a:hover, .nav .open > a:focus, 
            .nav > .active > a {
                color: $color1 ;
            }
            
            .dropdown-menu {
                @include box-shadow(0px 0px 4px gray) ;
            }
        }
        
        .logo, .navbar .sidebar-toggle {
            border-right: solid 1px #e0e0e0 ;
        }
        
        .link-control-sidebar {
            display: none ;
        }
        
        .notifications-menu {
            ul.menu {
                max-height: 300px ;
                li {
                    a {
                        padding-top: 4px ;
                        padding-bottom: 4px ;
                        
                        h5 {
                            margin-bottom: 2px ;
                            
                            small {
                                float: right ;
                            }
                        }
                        
                        p {
                            margin-left: 10px ;
                        }
                    }
                    
                }
            }
        }
        
        .navbar .nav li.producer-menu {

            .dropdown-menu {
                width: 400px;
            }

            .search-producer {
                margin: 10px;
                width: 94%;
            }

            .li-alert-no-results {
                display: none;

                .alert {
                    margin-bottom: 0px;
                    margin-left: 10px;
                    margin-right: 10px;
                    padding: 15px 15px 10px 15px;
                }
            }

            .label {
                position: relative ;
                top: -2px ;
                left: 0px ;
            }

            #link-display-producers-offline {
                color: $color1;
            }

            .offline {
                display: none;
            }

            a {
               color: #333;
            }

            .producer-id {
                position: relative;
                top: 4px;
                color: gray;
                font-size: 12px;
                float: right;
            }
        }
    }

    .sidebar {
        .sidebar-menu > li.header {
            color: #899397;
        }

        .label {
            padding-top: 5px;
            position: relative;
            top: -3px;
        }
    }

    .sidebar-menu > li.active > a {
        border-color: $color1 ;
    }

    section.sidebar {
        .user-panel {
            text-align: center;

            .image {
                margin-bottom: 3px;
            }

            .title {
                font-weight: bold;
                color: white;
            }
        }
    }

    .content-wrapper {
        background-color: #f5f5f5 ;
        
        .content-header {
            background-color: #F5F5F5 ;
            padding-bottom: 15px ;
            border-bottom: solid 1px #e0e0e0 ;
            border-top: solid 1px #e0e0e0 ; 
            
            .btn {
                padding: 3px 6px;
                font-size: 10px;
                font-family: Arial;
                text-transform: uppercase;
            }
            
            h1 {
                font-family: 'myriadpro-light';
                font-size: 20px;
            }
        }

        .col-no-padding-left {
            padding-left: 0px;
        }

        .col-no-padding-right {
            padding-right: 0px;
        }

        a {
            color: darken($color1, 5) ;

            &.disable {
                pointer-events: none;
                cursor: default;
            }
        }

        .label {
            padding-top: 4px;
            padding-bottom: 1px;
        }
        
        .btn {
            color: white ;
        }
        
        .btn-default {
            color: #333 ;
            background-color: white ;
        }
        
        .btn-primary {
            background-color: $color1 ;
            color: white ;
            border-color: $color1 ;
        }

        .nav.nav-tabs {
            .badge {
                margin-left: 4px;
                background-color: #e0e0e0;
                color: #444;
            }
        }

        .tab-content {
            border-left: solid 1px #ddd;
            border-bottom: solid 1px #ddd;
            border-right: solid 1px #ddd;
            padding: 30px 15px 15px 15px;
            background-color: white;
        }

        .alert {
            position: relative;

            a {
                color: white ;
            }
            a.btn {
                color: #333 ;
                text-decoration: none ;
            }

            .close {
                font-size: 30px;
                position: absolute;
                top: 10px;
                right: 15px;
                text-decoration: none;
                color: white;
                opacity: 0.6;

                &:hover {
                    opacity: 1;
                }
            }

            &.alert-dark {
                background-color: #ece4d8;
                color: black;
            }
        }

        .small-box {
            h3 {
                font-size: 28px;
                font-family: 'Source Sans Pro',sans-serif;
            }

            .icon {
                top: -2px;
            }

            .small-box-footer {
                color: white;
                padding-top: 6px;
                padding-bottom: 2px;

            }
        }
        
        .callout {
            h4 .fa {
                margin-right: 7px ;
            }
            a {
                color: white ;
            }   
            .btn {
                color: #333 ;
                text-decoration: none ;
            }
        }
        
        .table {
            th {
                font-size: 13px ;
            }
            th.column-actions, td.column-actions {
                width: 172px;
                text-align: right ;
            }
            td.text-small, th.text-small {
                font-size: 12px ;
            }

            &.table-bordered > thead > tr > th,
            &.table-bordered > tbody > tr > th,
            &.table-bordered > tfoot > tr > th,
            &.table-bordered > thead > tr > td,
            &.table-bordered > tbody > tr > td,
            &.table-bordered > tfoot > tr > td {
                border: 1px solid #ddd;
            }

            &.table-bordered > thead > tr > th,
            &.table-bordered > thead > tr > td {
                border-bottom-width: 2px;
            }
        }
        
        .pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus {
            background-color: $color1 ;
            border: solid 1px $color1 ;
            color: white ;
        }

        .pagination > li > a, .pagination > li > span {
            color: $color1 ;
            &:hover {
                color: darken($color1, 10) ;
            }
        }

        .submenu {
            margin-bottom: 25px ;
        }

        .form-actions {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            padding: 15px 30px 15px 30px;
            margin: 0px;
            background-color: white;
            text-align: right;
            z-index: 10;
            border-top: solid 1px #e0e0e0;

            a, button {
                margin-left: 10px;
            }

            .field-redirect-url {
                display: none;
            }
        }

        .form-buttons {
            margin-top: 25px;
            text-align: right;
        }
    }
    
    .main-footer {
        a {
            color: $color1 ;
        }
    }

    .gridview-pagesize {
        float: right;
        margin-bottom: 8px;
    }

    #yii-debug-toolbar {
        bottom: 64px;
    }
}

body.login-page {
    background: none ;
    background-color: $color2 ;
    .login-box {
        .login-logo {
            text-align: center ;
            font-family: 'worksans_bold';

            img {
                width: 150px ;
            }
        }
        .login-box-body {

            &,
            input#loginform-email,
            input#loginform-password,
            .btn-primary {
                font-size: 14px;
            }

            .btn-primary {
                background-color: $color1 ;
                border-color: $color1 ;
                padding: 5px 10px ;
                margin-bottom: 15px;

                &:active {
                    background-color: lighten($color1, 5) ;
                    border-color: $color1 ;
                }
            }

            a {
                color: $color1 ;
                &:hover {
                    color: lighten($color1, 5) ;
                }
            }

            .checkbox label input {
                position: relative;
                top: 0px;
            }
        }
    }
}
