/**
 * theming styles
 *
 */

html {
    background: #585858;
    height: 100%;
}

body {
   /* min-height: 100%;*/
    font-size: 9pt;
    font-family: "trebuchet ms", helvetica, sans-serif;
}

body {
    background: #585858;
/*    background-color: #585858;
    background-image: -webkit-linear-gradient(top, #585858, #464646);
    background-image: -moz-linear-gradient(top, #585858, #464646);
    background-image: -ms-linear-gradient(top, #585858, #464646);
    background-image: -o-linear-gradient(top, #585858, #464646);
    background-image: linear-gradient(to bottom, #585858, #464646);*/
    color: #fff;
}

.has-text-green {
    color: lime;
}

.has-text-red {
    color: red;
}

.has-text-darkgrey {
    color: #333;
}

.has-text-bold {
    font-weight: bold;
}

.has-margin-top-1em {
    margin-top: 1em;
}

.refresh-btn {
    cursor: pointer;
}

table.table.has-extra-padding td,
table.table.has-extra-padding th {
    padding: 14px 0;
}
/* STYLES GENERAUX */


/* PAGE LOADER */

div.pageloader {
    background: red linear-gradient(to bottom, #ffb4b4, red, #ba0b07);
    /*background: linear-gradient(to bottom, rgba(255, 180, 180, 0.5), rgba(255, 0, 0, 0.5), rgba(186, 11, 7, 0.5)),*/
                /*url('../img/mere_noel.jpg');*/
}


/* MODAL */

.modal-card {
    margin-top: 2rem;
}

.modal-card button.button.is-success {
    color: #333;
}

footer.modal-card-foot.is-right {
    justify-content: flex-end;
}


/* NOTIFICATION MAINTENANCE (HAUT DE PAGE) */

.notification.is-absolute {
    position: absolute;
    z-index: 1000;
}

.notification.is-fixed-top {
    position: fixed;
    top: 0;
    z-index: 1000;
}

#notification-maintenance {
    font-size: 1.4em;
}

#notification-maintenance ul li {
    list-style: none;
    font-size: 1.2em;
}


/* FOOTER & HEADER */

#footer {
    z-index: 200; /* Sit on top */
/*    position: fixed;*/
    width: 100%;
    left: 0;
/*    min-width: 824px;*/
}

#footer {
    clear: both;
    padding: 0.2%;
    text-align: center;
    bottom: 0;
    background-color: #585858;
}

#footer a {
    color: #ff6666;
}

#header {
    background-color: #d9d9d9;
    background-image: -webkit-linear-gradient(top, #d9d9d9, #c8c8c8);
    background-image: -moz-linear-gradient(top, #d9d9d9, #c8c8c8);
    background-image: -ms-linear-gradient(top, #d9d9d9, #c8c8c8);
    background-image: -o-linear-gradient(top, #d9d9d9, #c8c8c8);
    background-image: linear-gradient(to bottom, #d9d9d9, #c8c8c8);
    color: #585858;
}

#header {
    padding: 5px 0 0 5px;
    border-bottom: 5px solid red;
    top: 0;
    width: auto;
    height: auto;
    min-height: 55px;
    line-height: inherit;
}

#header a:link, #header a:visited {
    color: #585858;
}

#branding {
    margin: 0 0 2px 0;
}

#branding a {
    float: left;
}

#branding h1 {
    padding: 0;
    margin: 0 10px 0 10px;
    font-weight: 300;
    font-size: 34px;
    color: #585858;
    width: auto;
    text-align: center;
}
#branding h2 {
    padding: 0;
    font-size: 24px;
    margin:  0 10px 0 10px;
    font-weight: normal;
    color: #585858;
    width: auto;
    text-align: center;
}

#branding h1 {
    font-weight:bolder;
    display: inline;
}

#branding h2 {
    display: inline;
}

#user-tools {
    /* Old Django: 1.2em, flat theme: 40px; */
    padding-right: 1.2em;
    display: inline;
    float: right
}

#user-tools a {
    border-bottom: 1px solid #585858;
}


#user-tools a:focus, #user-tools a:hover {
    text-decoration: none;
    border-bottom-color: red;
    color: red;
}

#header #site-name {
    font-size: 2.75em;
    font-weight: bold;
}

#header .level {
    margin-bottom: 0px;
}

#header .utilisateur {
    margin-right: 20px;
    font-size: 1.2em;
    font-weight: bold;
}


h1.msg_erreur, p.msg_erreur {
/*     background-color: #585858;*/
    color: #d9d9d9;
    text-align: center;
}

/* CONTENT */

#content {
    clear: both;
    padding: 0;
    margin: 15px;
}

#content h1 {
    color: #ffffff;
}

/* BREADCRUMBS */

div.breadcrumbs {
    clear: both;
    display: block;
    padding: 10px 15px;
    border: 0;
    border-bottom: 1px solid red;
    margin-top: -1.5rem;
}

div.breadcrumbs {
    background-color: #585858;
/*    background-image: -webkit-linear-gradient(top, #585858, #555555);
    background-image: -moz-linear-gradient(top, #585858, #555555);
    background-image: -ms-linear-gradient(top, #585858, #555555);
    background-image: -o-linear-gradient(top, #585858, #555555);
    background-image: linear-gradient(to bottom, #585858, #555555);*/
    color: #ffc9c9;
}

div.breadcrumbs a {
    display: inline;
    color: #fff;
}

div.breadcrumbs a:focus, div.breadcrumbs a:hover {
    color: #ffb4b4;
}

.breadcrumbs .left-bread {
    display:inline-block;
    float: left;
}

.breadcrumbs .right-bread {
    display:inline-block;
    float: right;
    color: #ffdd57;
}

/* LINKS */

a:link, a:visited {
    color: #d9d9d9;
    text-decoration: none;
}

a:focus, a:hover {
    color: #fff;
}

a.section:link, a.section:visited {
    color: #d9d9d9;
    text-decoration: none;
}

/* MESSAGELIST */

.messagelist a {
    color: #a10000;
}


/* TABLE */

.results thead th, .results tfoot td {
    color: #ffffff;
    background: red;
    background-image: -webkit-linear-gradient(top, red, #ba0b07);
    background-image: -moz-linear-gradient(top, red, #ba0b07);
    background-image: -ms-linear-gradient(top, red, #ba0b07);
    background-image: -o-linear-gradient(top, red, #ba0b07);
    background-image: linear-gradient(to bottom, red, #ba0b07);
}

.row1 {
    background: #6e6e6e;
}

.row2 {
    background: #585858;
}

thead th a:link, thead th a:visited {
    color: #ffffff;
}

/*body.app-core th i.fa-eye{*/
/*    font-size: 15px;*/
/*}*/

/* SORTED TABLE */

table thead th .text a:focus, table thead th .text a:hover {
    background: #ffb4b4;
    background-image: -webkit-linear-gradient(top, #ffb4b4, red, #ba0b07);
    background-image: -moz-linear-gradient(top, #ffb4b4, red, #ba0b07);
    background-image: -ms-linear-gradient(top, #ffb4b4, red, #ba0b07);
    background-image: -o-linear-gradient(top, #ffb4b4, red, #ba0b07);
    background-image: linear-gradient(to bottom, #ffb4b4, red, #ba0b07);
}

thead th.sorted {
    background: red;
    background-image: -webkit-linear-gradient(top, #ffb4b4, red, #ba0b07);
    background-image: -moz-linear-gradient(top, #ffb4b4, red, #ba0b07);
    background-image: -ms-linear-gradient(top, #ffb4b4, red, #ba0b07);
    background-image: -o-linear-gradient(top, #ffb4b4, red, #ba0b07);
    background-image: linear-gradient(to bottom, #ffb4b4, red, #ba0b07);
}

table thead th.sorted .sortoptions a.sortremove:focus:after,
table thead th.sorted .sortoptions a.sortremove:hover:after {
    color: #ffffff;
}


/* CHANGELIST */

#changelist .actions {
    background: #585858;
}

#changelist .actions select {
    background: #fff;
}

#changelist .actions.selected {
    background: #babdb6;
}

#changelist table tbody tr.selected {
    background-color: #babdb6;
}

#changelist table tbody tr td.selected {
    background-color: #B0BED9;
    /*box-shadow: inset 0 0 1px 2px #3366FF;*/
}

#changelist table tbody tr td.focus {
    /*background-color: #B0BED9;*/
    box-shadow: inset 0 0 1px 2px #3366FF;
}

#changelist .paginator {
    color: #fff;
    border-bottom: 1px solid #eee;
    background: #585858;
    overflow: hidden;
}

#changelist .actions .button {
    border-radius: 0;
}

#changelist .actions select {
    border-radius: 0;
}

#changelist #toolbar {
    background: #585858;
    color: #fff;
}

#changelist img {
    -webkit-filter: invert(100%);
    filter: invert(100%);
}

#changelist .results img {
    -webkit-filter: invert(0%);
    filter: invert(0%);
}

#changelist #toolbar form input {
    border-radius: 0;
}

body.change-list div#container div#content h1 {
    font-weight: 300;
    font-size: 20px;
    margin: 0 0 20px;
}

#changelist #toolbar form #searchbar {
    box-sizing: content-box;
}

div#changelist form#changelist-form div.results table#result_list tbody tr th,
div#changelist form#changelist-form div.results table#result_list tbody tr td {
    padding: 8px;
}

/* DASHBOARD */
#dashboard-analysis {
 overflow: auto;
}

h1.dashboard-title {
    color: #ffffff;
}

.dashboard-module {
    border: 1px solid #d9d9d9;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
}

.dashboard-module h2 {
    background: red;
    background-image: -webkit-linear-gradient(top, red, #ba0b07);
    background-image: -moz-linear-gradient(top, red, #ba0b07);
    background-image: -ms-linear-gradient(top, red, #ba0b07);
    background-image: -o-linear-gradient(top, red, #ba0b07);
    background-image: linear-gradient(to bottom, red, #ba0b07);
    color: #ffffff;
    box-sizing: content-box;
    font-size: 16px;

}

.dashboard-module h3 {
    background: #bfbfbf;
    color: #585858;
    box-sizing: content-box;
    font-size: 16px;
}

.dashboard-module h3.is-success {
    background-color: #23d160;
    color: #fff;
}

.dashboard-module h3.is-error {
    background-color: #ba0b07;
    color: #fff;
}

.dashboard-module ul li.odd {
    background: #6e6e6e;
}

.dashboard-module ul li.even {
    background: #585858;
}

.dashboard-module ul li:hover {
    background: #8e8e8e;
}

#dashboard-panel ul li {
    border: 1px solid #e5e5e5;
    background-color: red;
    background-image: -webkit-linear-gradient(top, red, #ba0b07);
    background-image: -moz-linear-gradient(top, red, #ba0b07);
    background-image: -ms-linear-gradient(top, red, #ba0b07);
    background-image: -o-linear-gradient(top, red, #ba0b07);
    background-image: linear-gradient(to bottom, red, #ba0b07);
}

#dashboard-panel h3 a {
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
    background-color: red;
    background-image: -webkit-linear-gradient(top, red, #ba0b07);
    background-image: -moz-linear-gradient(top, red, #ba0b07);
    background-image: -ms-linear-gradient(top, red, #ba0b07);
    background-image: -o-linear-gradient(top, red, #ba0b07);
    background-image: linear-gradient(to bottom, red, #ba0b07);
}

.dashboard-module-content a.addlink span.icon {
    display: inline;
}

.dashboard-module-content a.changelink span.icon {
    display: inline;
}

.recent-connections .dashboard-module-content {
    overflow-y:auto;
    height: 600px;
}

body.dashboard #plotsModal .modal-content {
    width: 60%;
    height: 80%;
    margin: 2% auto;
    padding: 1em;
    background-color: white;
}

body.dashboard #menu-accueil .menu-list {
    margin-top: 10px;
    font-size: 0.8em;
}

body.dashboard #menu-accueil .menu-list li {
    background-color: #3c3c3c;
}

body.dashboard #menu-accueil .menu-list li a {
    height: 100%;
    width: 100%;
    padding: 0;
}

body.dashboard #menu-accueil .menu-list .icon i.fas {
    color: #ce0704;
}

@media screen and (min-width: 1280px) {
    body.dashboard #menu-accueil .menu-list li {
        height: 160px;
        max-height: 160px;
        font-size: 1.2em;
        font-weight: bold;
    }

    body.dashboard #menu-accueil .menu-list li a {
        padding: 4em 2em 2em 2em;
    }

    body.dashboard #menu-accueil .menu-list .icon {
        margin-right: 0.3em;
    }
}

@media screen and (min-width: 1472px) {
    body.dashboard #menu-accueil .menu-list li {
        font-size: 2em;
    }

    body.dashboard #menu-accueil .menu-list li a {
        padding: 2.5em 2em 2em 2em;
    }

    body.dashboard #menu-accueil .menu-list .icon {
        margin-right: 1em;
    }
}

body.dashboard #menu-accueil .menu-list li:not(:last-of-type) {
    border-bottom: 1px solid white;
}

body.dashboard #dashboard-histo .dashboard-module {
    margin: 10px 0 0 0;
}

body.dashboard div.tech-users .switch[type="checkbox"] + label {
    vertical-align: sub;
}

body.dashboard div.admin-bdd button:first-child {
    margin-top: 5px;
}

body.dashboard div.admin-bdd button {
    margin: 0 5px 5px 5px;
    width: -moz-available;
}

/* LOGIN */

body.login {
    background-color: #585858;
    color: #fff;
}

.login #container {
    background-color: #585858;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 0;
    overflow: hidden;
    width: 28em;
    min-width: 300px;
    margin: 100px auto;
}

.login #branding {
    display: block;
}
.login #branding h1 {
    font-size: 26px;
    display: block;
}

.login #branding h2 {
    font-size: 16px;
    display: block;
}

.login .form-row label {
    color: #fff;
}

.login .form-row {
    background: #585858;
}

/* FORM DEFAULTS */

input[type=text], input[type=password], input[type=email], input[type=url],
input[type=number], input[type=tel], textarea, select, .vTextField {
    border: 1px solid #ccc;
    border-radius: 0;
    background-color: #d9d9d9;
}

/* FORM BUTTONS */

.button, input[type=submit], input[type=button], .submit-row input, a.button, body.app-analysis form .button {
    background-color: #d9d9d9;
    background-image: -webkit-linear-gradient(top, #d9d9d9, #c8c8c8);
    background-image: -moz-linear-gradient(top, #d9d9d9, #c8c8c8);
    background-image: -ms-linear-gradient(top, #d9d9d9, #c8c8c8);
    background-image: -o-linear-gradient(top, #d9d9d9, #c8c8c8);
    background-image: linear-gradient(to bottom, #d9d9d9, #c8c8c8);
    color: #585858;
    border-radius: 0;
    /* border: 1px solid #d9d9d9; */
    border: 1px solid #d9d9d9; /* à garder au moins pour les analyses */
}

body.app-analysis .submit-row .button {
    height: 35px;
    line-height: 15px;
    margin: 0 0 0 5px;
    padding: 10px 15px;
}

@media screen and (min-width: 1400px) {

    body.app-analysis .submit-row .buttons .button {
        margin: 0 0 0 5px;
    }

    body.app-analysis .submit-row .buttons {
        display: inline-flex;
    }

    body.app-analysis .submit-row .buttons:last-child {
        margin-left: 5rem;
    }

    body.app-analysis .submit-row .buttons:not(:last-child) {
        margin-bottom: 0;
    }
}

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

    body.app-analysis .submit-row .buttons{
        display: contents;
    }

    body.app-analysis .submit-row .button {
        margin: 0 0 5px 0;
    }
}


body.app-analysis .submit-row i,
body.app-analysis .object-tools i {
    padding-right: 5px;
}

.button:active, input[type=submit]:active, input[type=button]:active,
.button:focus, input[type=submit]:focus, input[type=button]:focus,
.button:hover, input[type=submit]:hover, input[type=button]:hover {
    background: #babdb6;
}

.button.default, input[type=submit].default, .submit-row input.default {
    /* background: #585858; */
    background: #ba2121; /* à garder au moins pour les analyses */
    color: #d9d9d9;
    border-radius: 0;
    border: 1px solid #d9d9d9;
}

/* input[name=_back] bouton retour du changelist en prog recursive */
/* aligner à droite avec le bouton enregistrer */
.paginator input[name=_back].default {
    float: right;
    margin-left: 10px;
}

.paginator input[name=_back].default:active,
.paginator input[name=_back].default:focus,
.paginator input[name=_back].default:hover {
    background: #444444;
    color: #d9d9d9;
}


.button.default:active, input[type=submit].default:active,
.button.default:focus, input[type=submit].default:focus,
.button.default:hover, input[type=submit].default:hover {
    background: #444444;
    color: #d9d9d9;
}
.button.savlist, input[type=submit].savlist, .submit-row input.savlist {
    background: #ba2121;
    color: #d9d9d9;
    border-radius: 0;
    border: 1px solid #d9d9d9;
    width: 20px;
    height: 20px;
    padding:0px;
    margin-right:10px;
    float:left;
}
.button.savlist:active, input[type=submit].savlist:active {
    background: #444444;
}


/* FORM ROWS */

.form-row {
    background: #585858;
    color: #d9d9d9;
}


/* FORM LABELS */

label {
    color: #d9d9d9;
}

.required label, label.required {
    color: #fff;
}

/* SUBMIT ROW */

.submit-row {
    background: #585858;
    border: 1px solid #585858;
    border-radius: 0;
}

.submit-row a.deletelink {
    border-radius: 0;
}

.submit-row a.closelink{
    height: inherit;
    border-radius: inherit;
}

/* FORM COLLAPSED */

fieldset.collapsed h2 {
    background: #585858;
    color: #d9d9d9;
}

fieldset .collapse-toggle {
    color: #fff;
}

fieldset.collapsed .collapse-toggle {
    background: transparent;
    color: #8e8e8e;
}

/* FORM INLINES */

.inline-related h3 {
    color: #d9d9d9;
    background: #7e7e7e;
}

.inline-related h3.djn-drag-handler {
    cursor: move;
}

.inline-related fieldset {
    background: #585858;
}

.inline-related fieldset.module h3 {
    background: #d9d9d9;
    color: #585858;
}

.inline-group .tabular td.original p {
    color: #d9d9d9;
}

.inline-group div.add-row,
.inline-group .tabular tr.add-row td {
    color: #d9d9d9;
    background: #585858;
}

/* MODULE */

.module {
    background: #585858;
}

.module h2, .module caption, .inline-group h2 {
    background: #8e8e8e;
    color: #fff;
}

/* OBJECT TOOLS */

.object-tools a:focus, .object-tools a:hover {
    background-color: #8e8e8e;
}

.object-tools a {
    border-radius: 0;
}

/* WIDGET DATE TIME */

p.datetime {
    color: #d9d9d9;
}

.timezonewarning {
    color: #fff;
}

.calendarbox, .clockbox {
    background: #d9d9d9;
    border: 1px solid #d9d9d9;
    border-radius: 0;
}

.calendar caption, .calendarbox h2 {
    background: #f5dd5d;
    color: #333;
}

.calendar table {
    background: #babdb6;
}

.calendar th {
    background: #585858;
    color: #d9d9d9;
}

.calendar td.selected a {
    background: #8e8e8e;
    color: #fff;
}

.calendar td.nonday {
    background: #f8f8f8;
}

.calendar td a, .timelist a {
    color: #585858;
}

.calendar td a:focus, .timelist a:focus,
.calendar td a:hover, .timelist a:hover {
    background: #babdb6;
    color: white;
}

.calendar td a:active, .timelist a:active {
    background: #babdb6;
    color: white;
}

.calendarnav {
    color: #babdb6;
}

.calendarnav a:link, #calendarnav a:visited,
#calendarnav a:focus, #calendarnav a:hover {
    color: #999;
}

/* WIDGET */

p.url {
    color: #d9d9d9;
}

p.file-upload {
    color: #d9d9d9;
}

span.clearable-file-input label {
    color: #d9d9d9;
}

.selector-available h2, .selector-chosen h2 {
    border: 1px solid #ccc;
    border-radius: 0 0 0 0;
}

.selector-chosen h2 {
    background: #999;
    color: #d9d9d9;
}

.selector .selector-available h2 {
    background: #585858;
    color: #d9d9d9;
}

.selector .selector-filter {
    background: #d9d9d9; /* #e6e6e6; */
}

.selector ul.selector-chooser {
    background-color: #585858;
    border-radius: 0;
}

.selector select {
    border-radius: 0 0 0 0;
}

a.selector-chooseall, a.selector-clearall {
    color: #585858;
    -webkit-filter: invert(100%);
    filter: invert(100%);
}

a.active.selector-chooseall:focus, a.active.selector-clearall:focus,
a.active.selector-chooseall:hover, a.active.selector-clearall:hover {
    color: #d9d9d9;
}

.selector .help-icon {
    -webkit-filter: invert(80%);
    filter: invert(80%);
}

.selector-add, .selector-remove {
     -webkit-filter: invert(100%);
     filter: invert(100%);
 }

.stacked ul.selector-chooser {
    background-color: #585858;
    border-radius: 0;
}

/* ADMIN-TOOLS */

.contact h4 {
    background-color: #585858;
    color: #d9d9d9;
    text-align: center;
}

.contact h5 {
    background-color: #585858;
    color: #d9d9d9;
    text-align: center;
}

/* ONGLET CORE */

ul.menu-onglet {
    margin: 0 280px 6px 0;
    padding: 0;
    border-style: none none solid none;
    border-width: thin thin thin thin;
}

li.onglet {
    padding: 4px 6px 4px 6px;
    margin: 0 4px 0 0;
    display: inline;
    cursor: pointer;
    border-style: solid solid solid solid;
    border-width: thin thin thin thin;
/*    border-radius: 11px 11px 0 0;*/
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    background-color: #444444;
}

li.onglet.active {
    border-style: solid solid solid solid;
    border-color: #fff #fff #585858 #fff;
    border-width: thin thin medium thin;
    background-color: #585858;
    background-image: -webkit-linear-gradient(top, #7b7b7b, #585858);
    background-image: -moz-linear-gradient(top, #7b7b7b, #585858);
    background-image: -ms-linear-gradient(top, #7b7b7b, #585858);
    background-image: -o-linear-gradient(top, #7b7b7b, #585858);
    background-image: linear-gradient(to bottom, #7b7b7b, #585858);
}

li.onglet:hover, li.onglet.active:hover {
    background-color: #6e6e6e;
}

div#div_onglet {
    margin-bottom: 3px;
}

.filtered #div_onglet {
    margin-right: 280px;
    width: auto;
}

ul#ul_onglet {
    margin-left: 0px;
}

/* TABS */

.tabs li {
    font-size: inherit;
}

.tabs li.is-active a {
    color: #df0503;
}

.tabs a {
    color: white;
}

.button.testapp {
    background: repeating-linear-gradient(
            45deg,
            #d9d9d9,
            #d9d9d9 10px,
            #e9a377 10px,
            #e9a377 20px
    );
}


/* NESTED INLINES */

div.djn-item.djn-module {
    margin-top: 5px;
}

.djn-group .djn-group-nested {
    width: 600px;
    margin: 0 160px;
}

div.djn-group-nested fieldset.djn-fieldset div.djn-items div.djn-item fieldset.djn-module div.field-position.form-row,
div.djn-inline-form fieldset.djn-module div.field-position.form-row {
    display:none;
}

div.djn-group-nested fieldset.djn-fieldset div.djn-items div.djn-item fieldset.djn-module div.field-numero.form-row,
div.djn-inline-form fieldset.djn-module div.field-numero.form-row {
    display:none;
}

div.djn-group-nested fieldset.djn-fieldset div.djn-items div.djn-item h3 span.djn-delete-handler label {
    color: #585858;
}

/* coche supprimer inline DEBUT*/
.submit-row a.deletelink,
.inline-group .tabular td.original p {
    height: inherit;
}

fieldset.module .delete {
    text-align: right;
    display: inherit;
    background-color: inherit;
    height: 0;
    width: 0;
    cursor: inherit;
}

fieldset.module .delete::before,
fieldset.module .delete::after {
    content: none;
}

fieldset.module .inline-related h3 span.delete label {
    position: absolute;
    margin-left: -75px;
}

fieldset.module table .inline-deletelink {
    margin-left: 2rem;
    margin-top: 0.5rem;
}

fieldset.module table td.delete input[type="checkbox"] {
    margin-left: 2rem;
    margin-top: 0.5rem;

}

.delete-confirmation form .cancel-link {
    padding-bottom: 25px;
}
/* coche supprimer inline FIN*/

/* AUTOCOMPLETE */
.select2-container--admin-autocomplete .select2-results__option--highlighted[aria-selected] {
    background-color: #6e6e6e;
    color: white;
}


.select2-container--admin-autocomplete .select2-selection--single {
    background-color: #d9d9d9;
    border-radius: 0;
}

.select2-container--admin-autocomplete .select2-selection--multiple {
    background-color: #d9d9d9;
    border-radius: 0;
}

.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__choice {
    color: #585858;
    border-radius: 0;
}

/* SELECT2 */
.select2-dropdown {
    background-color: #585858;
    border-radius: 0;
}

.select2-container--default .select2-selection--single {
    background-color: #d9d9d9;
    border-radius: 0;
}

.select2-container--default .select2-selection--multiple {
    background-color: #d9d9d9;
    border-radius: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #d9d9d9;
    border-radius: 0;
}

div[class^='form-row field-inverse_tri_analyse'] {
    border-bottom: 2px solid #eee;
}

/* CHANGELIST TRANCHE HORAIRE PERSONNALISEE */
.app-analysis.model-tranchehorairepersonnalisee.change-list #result_list thead th.column-id {
    text-align: center;
    width: 32px;
    font-size: 13px;
}
.app-analysis.model-tranchehorairepersonnalisee.change-list #result_list tbody th.field-id {
    text-align: center;
    line-height: 1.5rem;
}

/* CHANGELIST ANALYSE PERSONNALISEE */
.app-analysis.model-analysepersonnalisee.change-list #changelist-form div.results div.analyseperso-tuile {
    display: flex;
    flex-direction: column;
}
.app-analysis.model-analysepersonnalisee.change-list #changelist-form div.results p.analyseperso-titre {
    flex-grow: 1;
}

#changelist-filter {
    width: 220px;
}

/* CHANGEFORM ANALYSIS */

div.djn-group-root > fieldset.djn-fieldset.module > h2 {
    background: #bc0000;
}

body.app-analysis.change-form .help {
    font-size: 13px;
    color: #e4e4e4;
}

/* #analysepersonnalisee_form > div > fieldset {
    border-top: 5px double #bc0000;
}
 */

/* body.app-analysis.change-form #content > h1 {
    border: 2px outset #bc0000;
    padding: 14px;
} */

div.submit-row {
    border: 2px outset #bc0000;
}

body.app-analysis .timezonewarning {
  display: none;
}

body.app-analysis #histos-src .modal-content,
body.app-analysis #histos-src-entete .modal-card{
    top: 50%;
    transform: translateY(-50%);
    width: 80%;
}

body.app-analysis #histos-src .modal-content .box table tbody tr:hover{
    cursor:pointer;
}

body.app-analysis #histos-src .modal-content .box table,
body.app-analysis #histos-src-entete .modal-card table {
    margin: 0 auto;
}

body.app-analysis #histos-src .table,
body.app-analysis #histos-src-entete .table {
    position: relative;
}

body.app-analysis #histos-src .modal-content .box .field {
    text-align: right;
}

body.app-analysis #histos-src .modal-content .box .field #switchTransfert:checked + label{
    color:black;
}

body.app-analysis #histos-src-entete .modal-card-head {
    padding:10px;
}

body.app-analysis #histos-src-entete.modal {
    padding-bottom: 3rem;
}

body.app-analysis #histos-src-entete .button {
    border-radius:5px;
}

body.app-analysis #histos-src,
body.app-analysis #histos-src-entete {
    z-index: 1000;
}

body.app-analysis .dataTables_wrapper {
    margin-top: 50px;
}

body.app-analysis table.dataTable td {
    cursor: pointer;
}

body.app-analysis table.dataTable td.nomodal {
    cursor: not-allowed;
}

body.app-analysis .field-filtre select {
    width: 400px;
}

/* CHANGELIST MENU FLOTTANT */

/*body.app-core #changelist-filter {*/
    /*!*position: fixed;*!*/
    /*top: 250px;*/
    /*right: 0;*/
    /*bottom: 0;*/
    /*z-index: 1000;*/
    /*width: 240px;*/
    /*height: 100%;*/
    /*background: #f8f8f8;*/
    /*border-left: none;*/
    /*margin: 15px;*/
/*}*/

/*.btnfloat {*/
    /*position: fixed;*/
    /*top: 200px;*/
    /*right: 0;*/
    /*z-index: 1000;*/
     /*background: #f8f8f8;*/
    /*border-left: none;*/
    /*margin: 15px;*/
    /**/
/*}*/

.analysis-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.analysis-modal-content {
    background-color: #d9d9d9;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 60%; /* Could be more or less, depending on screen size */
    text-align: center;
}
#content div.analysis-modal-content h1 {
    color: #585858;
}

body.app-analysis .inline-group fieldset.module h2.has-showhide-btn {
    cursor: pointer;
}

body.app-analysis #analysis-aucun-resultat {
    display: none;
}
body.app-analysis .notification {
    margin-bottom: 5px;
}

#div_select_analysis_change_owner,
#div_input_analysis_change_numero {
    display: inline-block;
}

/* ANALYSIS RACCOURCIS DATE & HEURE */
.calendar-cancel, .calendar caption, .calendar-shortcuts {
    background: #8e8e8e;
    color: darkred;
}
.calendar-cancel:hover {
    background: #8e8e8e;
    color: white;
    font-weight: bold;
}

/* CHANGE FORM */
body.change-form div#container div#content h1 {
    margin: 0 0 20px;
    font-weight: 300;
    font-size: 20px;
}

body.change-form div#container div#content a.deletelink {
    box-sizing: content-box;
}

body.change-form div#container div#content fieldset label {
    box-sizing: content-box;
}

/* CHANGE FORM ARTICLE */
body.change-form.model-article #multisites-wrapper {
    margin-top: 1rem;
}

/* CHANGE FORM POINT DE VENTE */
body.app-core.change-form.model-pointvente #btn-export-fec,
body.app-core.change-form.model-pointvente #btn-init-pointvente,
body.app-core.change-form.model-pointvente #btn-accept,
body.app-core.change-form.model-pointvente #btn-annuler,
body.app-core.change-form.model-pointvente #btn-annuler-relancer,
body.app-core.change-form.model-pointvente #btn-reset-mac {
    display: none;
}

body.app-core.change-form.model-pointvente button.button {
    height: 35px;
    line-height: 15px;
    margin: 0 0 0 5px;
    padding: 10px 15px;
}

body.app-core.change-form.model-pointvente #statut-msg {
    display: none;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 10px;
    font-family: monospace;
    font-size: 1.2em;
}

body.app-core.change-form.model-pointvente #statut-msg.warn {
    background-color: moccasin;
}

body.app-core.change-form.model-pointvente #statut-msg.err {
    background-color: darkred;
    color: white;
}

body.app-core.change-form.model-pointvente .form-row.field-utilisateur .readonly,
body.app-core.change-form.model-pointvente .form-row.field-mot_de_passe .readonly {
    font-family: monospace;
    font-size: 1.2em;
}

body.app-core.change-form.model-pointvente #pointvente-init-err-success {
    font-size: 1.5em;
}


body.app-core.change-form.model-pointvente .submit-row .button {
    height: 35px;
    line-height: 15px;
    margin: 0 0 0 5px;
    padding: 10px 15px;
}

@media screen and (min-width: 1400px) {

    body.app-core.change-form.model-pointvente .submit-row .buttons .button {
        margin: 0 0 0 5px;
    }

    body.app-core.change-form.model-pointvente .submit-row .buttons {
        display: inline-flex;
    }

    body.app-core.change-form.model-pointvente .submit-row .buttons:last-child {
        margin-left: 5rem;
    }

    body.app-core.change-form.model-pointvente .submit-row .buttons:not(:last-child) {
        margin-bottom: 0;
    }
}

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

    body.app-core.change-form.model-pointvente .submit-row .buttons{
        display: contents;
    }

    body.app-core.change-form.model-pointvente .submit-row .button {
        margin: 0 0 5px 0;
    }
}

body.app-core.change-form.model-pointvente .submit-row i {
    padding-right: 5px;
    font-size: 1rem;
}

/*  MODAL EXPORT FEC */
#modal-export-fec select {
    /* ne fonctionne pas, ne sais pas pourquoi */
    width: 45%;
}
#modal-export-fec #arrow-between-select {
    margin: 1em;
}

#modal-export-fec label {
    color: #363636;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/********************/
/*    Data tables   */
/********************/

body.app-analysis table.dataTable .as_background {
    text-align: center;
    background: #585858 !important;
    border: none !important;
}

body.app-analysis table.dataTable thead th {
    /*border-top: 0;*/
    color: #ddd;
    background-color: #666;
    /*border-color: #ddd;*/
    text-align: center;
}
body.app-analysis table.dataTable tbody tr.analysis_grouping_header td {
    color: #ddd;
    background-color: #666;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 11px;
}

body.app-analysis table.dataTable thead th {
    border-right: 1px solid #ddd;
}

body.app-analysis table.dataTable.DTFC_Cloned thead th {
    border: 1px solid #ddd;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    max-width: 100%;
    /*width: 755px;*/
}

body.app-analysis table.dataTable {
    margin: 0 !important;
    color: #666;
    text-align: right;
}

body.app-analysis table.dataTable.DTFC_Cloned tbody td {
    text-align: left;
}

body.app-analysis table.dataTable th.analysis_title,
body.app-analysis table.dataTable tr.analysis_title.odd td,
body.app-analysis table.dataTable tr.analysis_title.even td {
    background-color: #000;
    color: #ddd;
    text-transform: uppercase;
}

body.app-analysis table.dataTable .analysis_grouping_header {
    background-color: #3f3f3f;
}

body.app-analysis table.dataTable th.master_periode {
    background-color: #3f3f3f;
    border-left: 5px solid #ddd;
}

body.app-analysis table.dataTable th.master_calcul,
body.app-analysis table.dataTable td.master_calcul {
    border-left: 5px solid #ddd;
}

body.app-analysis table.dataTable th.periode,
body.app-analysis table.dataTable td.periode {
    border-left: 3px solid #ddd;
}

body.app-analysis .DTFC_LeftHeadWrapper th {
    border-right: 1px solid #ddd;
}

body.app-analysis .DTFC_RightWrapper {
    visibility: hidden;
}

body.app-analysis div.dt-button-info {
  color: #222;
}
body.app-analysis div.dt-button-info h2 {
}

body.app-analysis .dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: none;
}

.analysis_grouping_1 td {
    background-color: #a28585 !important;
    cursor: not-allowed !important;
}

.analysis_grouping_2 td {
    background-color: #9F7777 !important;
    cursor: not-allowed !important;
}

.analysis_grouping_3 td {
    background-color: #9b6060 !important;
    cursor: not-allowed !important;
}

.analysis_grouping_4 td {
    background-color: #984949 !important;
    color: #ddd;
    cursor: not-allowed !important;
}

.analysis_grouping_5 td {
    background-color: #aa2b2b !important;
    color: #ddd;
    cursor: not-allowed !important;
}

.analysis_grouping_6 td {
    background-color: #a10000 !important;
    color: #ddd;
    cursor: not-allowed !important;
}

.analysis_grouping_7 td {
    background-color: #850000 !important;
    color: #ddd;
    cursor: not-allowed !important;
}


/****************************/
/*    CHANGE FORM ANALYSE   */
/****************************/

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: #333;
}

.btn-showhide-inline {
    float: right;
    cursor: pointer;
}

.rot90deg {
    transform: rotate(90deg);
    transition: ease 0.5s;
}

.rot0deg {
    transform: rotate(0deg);
    transition: ease 0.5s;
}

select.born-to-be-a-select2 {
    width: 20em;
}


/****************************/
/* CHANGE FORM/LIST ANALYSE */
/****************************/

body.app-analysis.model-analysepersonnalisee.change-form #histos-src-legende-toggle,
body.app-analysis.model-analysepersonnalisee.change-form #histos-src-entete-legende-toggle,
body.app-analysis.model-analysepersonnalisee.change-list #histos-src-legende-toggle,
body.app-analysis.model-analysepersonnalisee.change-list #histos-src-entete-legende-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    padding: 0 1.5rem;
    transform: translateY(-50%);
    border-radius: 5px 0 0 5px;
    color: #a10000;
}

body.app-analysis.model-analysepersonnalisee.change-form #histos-src-legende-panel,
body.app-analysis.model-analysepersonnalisee.change-form #histos-src-entete-legende-panel,
body.app-analysis.model-analysepersonnalisee.change-list #histos-src-legende-panel,
body.app-analysis.model-analysepersonnalisee.change-list #histos-src-entete-legende-panel {
    width: inherit !important;
}

body.app-analysis.model-analysepersonnalisee.change-form #histos-src-legende-panel .quickview-body,
body.app-analysis.model-analysepersonnalisee.change-form #histos-src-entete-legende-panel .quickview-body,
body.app-analysis.model-analysepersonnalisee.change-list #histos-src-legende-panel .quickview-body,
body.app-analysis.model-analysepersonnalisee.change-list #histos-src-entete-legende-panel .quickview-body {
    margin: 0 1rem;
}

.quickview-header p.title {
    color: #a10000;
}

body.change-list #changelist-form .results.tiled {
    overflow-x: inherit;
    margin-bottom: 20px;
}

.tile.box, .title.box {
    background-color: #d9d9d9;
}

.title {
    color: #a10000 !important;
}

a.title:hover {
    background-color: #babdb6;
}

@media screen and (max-width: 768px) {
    body.change-list .tile-cbox {
        float: right;
        margin-top: -50px;
        margin-right: 30px;
    }
}

@media screen and (min-width: 769px) {
    body.change-list .tile-cbox {
        transform: translateX(-40px) translateY(30px);
        margin-right: -15px;
    }
}

body.dashboard .dashboard-module.list-tiled .dashboard-module-content {
    border-top: unset;
}
body.dashboard .dashboard-module.list-tiled {
    border: unset;
}

a.tile.is-parent {
    padding: 0;
    margin: .5rem .3rem;
}

.notification.msg {
    position: absolute;
    z-index: 11;
    margin-top: 3px;
}

#no-point-of-sale {
    display: none;
}

.kbd-key {
    margin:2px 3px;
    padding:1px 5px;
    border:1px solid gray;
    border-radius:3px;
    box-shadow:1px 0 1px 0 #eee, 0 2px 0 2px #ccc, 0 2px 0 3px #444;
    font-family: monospace;
}

.tile.is-ancestor {
   margin-top: 0.75rem !important;
}

.tile-cbox {
    z-index: 99999 !important;
}

/* CHANGEFORM ERRORS */

body.change-form .module h2.has-errors,
body.change-form .module caption.has-errors,
body.change-form .inline-group h2.has-errors,
body.change-form .inline-group fieldset h2.has-errors {
    background: #bc3c00;
}

body.change-form div.inline-related h3.has-errors {
    background-color: #b17048;
}

body.change-form .inline-related fieldset h2.has-errors {
    background-color: #e5905a;
}

body.change-form .inline-related fieldset.module h3.has-errors {
    background: #f1a87a;
}

body.change-form .errors input,
body.change-form .errors select,
body.change-form .errors textarea {
    border-color: #cc561f;
}

body.change-form .errornote {
    color: #cc561f;
    border-color: #cc561f;
}

body.change-form ul.errorlist {
    color: #cc561f;
}

.is-voyant-ok {
    color: #23d160;
}

#telemaintenance-statut-text {
     color:whitesmoke !important;
}
#btn-telemaintenance-statut.etat-inconnu { background-color: #ffa726; }
#btn-telemaintenance-statut.etat-on { background-color: #00c853; }
#btn-telemaintenance-statut.etat-off { background-color: #dc3545; }

#telemaintenance-statut-text { white-space: pre-line;}

div.DTE_Field input[type="text"]:disabled {
    background-color: #eee;
}
