/** Changes to bootstrap**/
.navbar-brand.logo_ynov {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand > img {
    display: inline-block;
    width: auto;
    height: 50px;
}

ol.breadcrumb {
    display: inline-block;
}

ul.pagination {
    margin: 5px 0;
}

.checkbox, .radio {
    margin-top: 7px;
    margin-bottom: 6px;
}

.table > tbody > tr > td {
    vertical-align: middle;
}

footer.footer {
    color: #CCCCCC;
    width: 100%;
    font-size: 0.8em;
}

table tr.bg-primary th a {
    color: #ffffff;
}

select option:disabled {
    color: #CCCCCC;
}

.navbar-default {
    background-color: #DDDDDD;
}


/** New classes **/
.delete-on-click:hover, .delete-on-click:active {
    text-decoration: line-through !important;
}

.flags .delete-on-click:hover, .flags .delete-on-click:active, .flags .delete-on-click:hover span, .flags .delete-on-click:active span {
    color: #CCCCCC !important;
}

.label.delete-on-click:hover, .label.delete-on-click:active {
    background-color: #CCCCCC !important;
}

.authz-list .label {
    font-weight: normal;
    margin-left: 5px;
}

.add_authz {
    margin-top: 15px;
}

.add_authz .form-group {
    margin-bottom: 5px;
}

.topbutton_form {
    max-width: 300px;
}

.topbuttons > div, .topbuttons > form {
    display: inline-block;
    vertical-align: top;
    margin-left: 10px;
}

.table > tbody > tr.active td {
    background-color: #E9E9E9;
}

.action_icons {
    text-align: right;
}

@media (pointer: coarse) {
    .action_icons {
        font-width: 1.5em;
    }
}

.inline-tags {
    margin: 0px 5px;
    display: inline-block;
}

/** Change awesome-bootstrap-checkbox to work with glyphicons **/
.checkbox input[type=checkbox]:checked + label:after {
    font-family: 'Glyphicons Halflings';
    content: "\e013";
}

.checkbox label:after {
    padding-left: 4px;
    padding-top: 2px;
    font-size: 9px;
}

/** overlay & anim **/
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
}

.overlay_anim {
    display: none;
    overflow: hidden;
    position: absolute;
    top: 30%;
    width: 100%;
    text-align: center;
    z-index: 2001;
}

.overlay_anim p {
    margin-top: -90px;
    color: #FFFFFF;
}

.overlay_anim_div {
    height: 32px;
    width: 32px;
    margin: 100px auto;
    -webkit-animation: rotateplane 2.4s infinite ease-in-out;
    animation: rotateplane 2.4s infinite ease-in-out;
}

@-webkit-keyframes rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    25% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
    75% {
        -webkit-transform: perspective(120px) rotateX(180deg)
    }
    100% {
        -webkit-transform: perspective(120px)
    }
}

@keyframes rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    25% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
    75% {
        transform: perspective(120px) rotateX(0.1deg) rotateY(-180deg);
        -webkit-transform: perspective(120px) rotateX(0.1deg) rotateY(-180deg)
    }
    100% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg);
    }
}

/** Dashboard elements **/
.panel.dashboard-counter {

}

.panel.dashboard-counter .panel-heading .glyphicon {
    font-size: 4em;
    padding: 5px 0px 0px 1px;
}

.panel.dashboard-counter .panel-heading p.dashboard-counter-value {
    float: right;
    font-size: 3em;
    margin: 0px;
}

.panel.dashboard-counter .panel-heading p.dashboard-counter-text {
    text-align: right;
    clear: both;
    line-height: 0px;
}

.navbar-collapse.collapse ul.nav li p.navbar-text, .navbar-collapse.collapsing ul.nav li p.navbar-text, .navbar-collapse.collapse ul.nav li p.navbar-btn, .navbar-collapse.collapsing ul.nav li p.navbar-btn {
    text-align: center;
}

/** Highlight search results **/
mark {
    background-color: yellow;
    padding: initial;
}


label.btn.btn-info {
    position: relative;
    padding-left: 30px;
}

label.btn.btn-info:before {
    content: '';
    display: block;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 2px solid white;
    position: absolute;
    left: 10px;
    top: 50%;
    margin-top: -7px;
    transition: all 0.2s ease-in-out;
}

label.btn.btn-info.active:before {
    content: '';
    width: 14px;
    height: 8px;
    position: absolute;
    border: 2px solid white;
    border-top: none;
    border-right: none;
    background: transparent;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

body.piste-index .label.label-process,
body.campagne-index .label.label-process {
    padding: 4px 4px 5px 4px;
    font-size: 12px;
    line-height: 1.2;
}

body.piste-index .label.label-process.standBy,
body.campagne-index .label.label-process.standBy {
    background-color: #f0ad4e;
}

body.piste-index .label.label-process.standByWithErro,
body.campagne-index .label.label-process.standByWithError,
body.piste-index .label.label-process.processingStandBy,
body.campagne-index .label.label-process.processingStandBy {
    background-color: #a94442;
}

body.piste-index .label.label-process.processing,
body.campagne-index .label.label-process.processing {
    background-color: #aaa;
}

body.piste-index .label.label-process.processed,
body.campagne-index .label.label-process.processed {
    background-color: #5cb85c;
}

body.piste-index .label.label-process > .label,
body.campagne-index .label.label-process > .label {
    font-size: 10px;
    padding: 3px 2px 3px 4px;
    background-color: #fff;
    color: #d9534f;
    margin-right: 5px;
}

body.piste-index .label.label-process .glyphicon-ok,
body.campagne-index .label.label-process .glyphicon-ok {
    color: #5cb85c;
}

#pistes_actions_forms,
#campagne_action_form {
    display: inline-block;
    vertical-align: middle;
}

#pistes_actions_forms + .small,
#campagne_action_form + .small {
    display: inline-block;
}

#pistes_actions_forms + .small::after,
#campagne_action_form + .small::after {
    content: '';
    display: block;
    clear: both;
}

body.piste-edit-campaign .item-group.valide .hiddenWhenValide {
    display: none;
}

body.piste-edit-campaign .item-group:not(.valide) .showWhenValide {
    display: none;
}

.hoverable {
    cursor: pointer;
}

body.ce-show #tableDocuments tr.active strong .glyphicon-chevron-right {
    display: none;
}

body.ce-show #tableDocuments tr:not(.active) strong .glyphicon-chevron-down {
    display: none;
}

body.ce-show #tableDocuments tr.active,
body.ce-show #tableDocuments tr.active td {
    background: #f9f7f7;
}


.table-ce th.name,
.table-ce td.name,
.table-ce th.firstname,
.table-ce td.firstname {
    width: auto;
    text-align: left;
}

.table-ce th.id,
.table-ce td.id,
.table-ce th.documents,
.table-ce td.documents,
.table-ce th.iban,
.table-ce td.iban {
    width: 1%;
    white-space: nowrap;
    text-align: center;
}

.table-ce th a {
    color: white !important;
}

/*** UI AUTOCOMPLETE JQUERY ***/
.ui-autocomplete {
    position: absolute;
    z-index: 1000;
    cursor: default;
    padding: 0;
    margin-top: 2px;
    list-style: none;
    background-color: #ffffff;
    border: 1px solid #ccc;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    max-height: 200px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
    /* add padding to account for vertical scrollbar */
    padding-right: 20px;
}

.ui-autocomplete > li {
    padding: 3px 0 3px 20px;
    border-bottom: 1px solid #dedede;
}

.ui-autocomplete > li:last-child {
    border-bottom: none;
}

.ui-autocomplete-loading {
    background-color: #69b170
}

.ui-autocomplete > li.ui-state-focus {
    background-color: #DDD;
}

.ui-helper-hidden-accessible {
    display: none;
}

.ui-autocomplete-highlight {
    font-weight: bold;
}

.custom-attributes {
    font-weight: bold;
    color: #e75656;
}


.line-edit-buttons {
    display: flex;
    justify-content: end;
    gap: 10px;
}


.autocomplete-ol-child,
.autocomplete-ol {
    padding-inline-start: 0;
    list-style-type: none;
}

.autocomplete-ol-child li:before,
.autocomplete-ol li:before {
    content: '';
    margin-right: 5px;
}

.from-control-year {
    display: flex;
    align-items: center;
}

.year-disabled-informations {
    margin-left: 15px
}

.year-disabled-informations span {
    color: #337ab7;
    font-size: 18px;
}

#table-modules-matieres,
#table-programmepeda-modules {
    width: 100%;
}

#table-modules-matieres .matiere_title,
#table-programmepeda-modules .matiere_title {
    width: 5%;
    padding: 5px 10px;
    border: 1px solid grey;
}

#table-modules-matieres .matiere_value,
#table-programmepeda-modules .matiere_value {
    padding: 5px 10px;
    border: 1px solid grey;
}

#table-modules-matieres .header,
#table-programmepeda-modules .header {
    background: #337ab7;
    color: white;
}

#table-modules-matieres .header .header-name a,
#table-programmepeda-modules .header .header-name a {
    color: white;
    text-decoration: none;
}

#table-modules-matieres .border,
#table-programmepeda-modules .border {
    border: 1px solid grey;
}

#table-modules-matieres .header .header-name,
#table-programmepeda-modules .header .header-name {
    padding: 5px 10px;
    text-transform: uppercase;
}

#table-modules-matieres .header .header-time,
#table-programmepeda-modules .header .header-time {
    padding: 5px 0;
    text-align: center;
}

#table-modules-matieres .offset,
#table-programmepeda-modules .offset {
    width: 5%;
    background: darkgray;
}
