﻿body, html {
    height: 100%;
}

.navbar {
    background-color: #0f1941;
    border-color: #0f1941;
}

    .navbar .sidebar {
        background-color: #0f1941;
    }

.sidebar ul li a {
    background-color: #0f1941;
    color: white;
}

    .sidebar ul li a.active {
        background-color: #2175D9;
        color: white;
    }

.nav > li > a:hover, .nav > li > a:focus {
    background-color: #2175D9;
    color: white;
}

/* Bas du menu vertical */
#wrapper {
    background-color: #0f1941;
}

.btn-primary {
    background-color: #2175D9;
}

.btn-warning {
    background-color: #FFB511;
    border-color: #FFB511;
}

.cadre-entant-que {
    color: white;
    background-color: #6BA5B4;
    border-color: #6BA5B4;
    border-radius: 5px;
    margin: 0px 10px 0px 10px;
    padding: 5px 15px 5px 15px;
}

.titre-entant-que {
    border-top: 1px solid white;
}

/*Alignement vers le bas du contenu*/
.pull-bottom {
    display: inline-block;
    vertical-align: bottom;
    float: none;
}

/*Définit le fond de page à afficher avec le ajax-loader*/
#loading-wrapper,
.loading-wrapper-class {
    display: block;
    position: fixed;
    z-index: 1000000;
    background-color: #666;
    background-image: url('../Content/images/ajax-loader.gif');
    opacity: 0.4;
    background-repeat: no-repeat;
    background-position: center;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

body.loading {
    overflow: hidden;
}

    body.loading .loading-wrapper-class {
        display: block;
    }
/*Définit les marges englobant le fil d'ariane*/
.page-header {
    margin-top: 5px;
    margin-bottom: 5px;
}

    .page-header ol {
        margin-bottom: 0px;
    }

#page-wrapper {
    padding-left: 0px;
}

/*Formattage des messages d'erreur lors de la validation des formulaires*/
.field-validation-error {
    color: #e80c4d;
}

.field-validation-valid {
    display: none;
}

input.input-validation-error {
    border: 1px solid #e80c4d;
}

select.input-validation-error {
    border: 1px solid #e80c4d;
}

.validation-summary-errors {
    color: #e80c4d;
    font-size: 1.1em;
}

.validation-summary-valid {
    display: none;
}

/*Mise en forme du bouton "détail" dans une datatable*/
td.details-control {
    background: url('../Content/DataTables/images/details_open.png') no-repeat center center;
    cursor: pointer;
    vertical-align: top;
}

tr.shown td.details-control {
    background: url('../Content/DataTables/images/details_close.png') no-repeat center center;
    vertical-align: top;
}



/* suppression de label marge autour de label pagination des datatables */
.pagination {
    margin: 0px;
}

/* Permet de supprimer la case de fermeture des popup modales (dialog) */
.ui-dialog-titlebar-close {
    display: none;
}

/*Affiche le date picker au-dessus des autres éléments de la page*/
.ui-datepicker {
    z-index: 10000 !important;
}

/* Mise en forme du fil d'ariane*/
.FilAriane {
    padding: 0px 0px 0px 0px;
    list-style: none;
}

    .FilAriane > li {
        display: inline-block;
    }

        .FilAriane > li + li:before {
            padding: 0 5px;
            color: #ccc;
            content: "/\00a0";
        }

/*Ecran client et établissements : affiche le nom de l'établissement en vert quand celui-ci est actif*/
.text-green {
    color: #04b976;
}

/*Formattage d'un panel inclut dans un autre panel*/
.panel-nested {
    margin: 0 15px 15px 15px;
}

/*Couleur de l'icone de la colonne Motif dans les tableaux EDM*/
.Motif_Accroissement {
    color: green;
}

.Motif_Remplacement {
    color: blue;
}

.Motif_Autre {
    color: #ffa500;
}

.STATUT_EDM_BROUILLON {
    color: gray;
}

.STATUT_EDM_PRET_VALIDATION_CLIENT {
    color: blue;
}

.STATUT_EDM_PRET_SIGNATURE_CLIENT {
    color: orange;
}

.STATUT_EDM_PRET_SIGNATURE_AGENCE {
    color: red;
}

.STATUT_EDM_CONTRAT_SIGNE_PL2P {
    color: green;
}

.STATUT_VALIDEUR_INTERMEDIAIRE {
    color: orange;
}
.STATUT_VALIDEUR_FINAL {
    color: green;
}



/*Affiche le curseur sous forme de pointeur lorsqu'on survole une ligne de tableau*/
table tbody tr {
    cursor: pointer;
}

/*Gère la petite croix dans les zones de saisie qui permettent d'effacer la zone (ne fonctionne pas sous Firefox)*/
input[type="search"] {
    -webkit-appearance: searchfield;
}

    input[type="search"]::-webkit-search-cancel-button {
        -webkit-appearance: searchfield-cancel-button;
    }

/*Couleur du badge actif dans les écrans EDM*/
.panel-default > .panel-heading .badge_Actif {
    background-color: #5cb85c;
}

.panel-danger > .panel-heading .badge_Actif {
    background-color: #5cb85c;
}

.panel-warning > .panel-heading .badge_Actif {
    background-color: #5cb85c;
}

::-webkit-input-placeholder {
    text-transform: none;
}

::placeholder {
    text-transform: none;
}

:ms-input-placeholder {
    text-transform: none;
}

.panelServiceDesactive {
    background-color: #f2dede;
}

.modal-header {
    cursor: move;
}

.ddlNouvelleGrille,
.ddlNouvelleGrille:focus {
    border-color: red;
}

.dataTables_processing {
    z-index: 1000;
    color: white;
    background-color: #2175D9;
}

.texte-italique {
    font-style: italic;
}

input:focus {
    outline-width: 0;
}

.texte-vert {
    color: #19a419;
}

.texte-bleu {
    color: #4d4dff;
}

.texte-rouge {
    color: #f00;
}

.texte-normal {
    font-weight: 100;
}

input:disabled + label {
    color: #ccc;
    cursor: not-allowed;
}

input:disabled + input[type=hidden] + label {
    color: #ccc;
    cursor: not-allowed;
}

input[type=text] + label {
    float: left;
}

input[type=checkbox] + input[type=hidden] + label,
input[type=checkbox] + label,
input[type=radio] + input[type=hidden] + label,
input[type=radio] + label {
    font-weight: 100;
}


/*.dt-button {
    display: none !important;
}*/

.modal {
    text-align: center;
}

@media screen and (min-width: 768px) {
    .modal:before {
        display: inline-block;
        vertical-align: middle;
        content: " ";
        height: 100%;
    }
}

.modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

.label-horaire {
    background-color: rgba(235, 245, 58, 0.25);
}

.label-horaire-legende {
    background-color: rgba(235, 245, 58, 0.5);
    color: #000;
    font-weight: 300;
}

.label-prime {
    background-color: rgba(62, 180, 219, 0.25);
}

.label-prime-legende {
    background-color: rgba(62, 180, 219, 0.5);
    color: #000;
    font-weight: 300;
}

.popover {
    width: 100%;
}

.popover-title {
    font-weight: bold;
}

.input-group-btn span {
    height: 34px;
    vertical-align: middle;
    display: inherit;
}

/*.modal-backdrop:nth-child(2n-1) {
    opacity: 0;
}*/

.modal-backdrop{
    background:none;
}

/* Pour les jstree */
.jstree-searched {
    font-style: italic;
    color: #F39C12;
    font-weight: bold;
}

.jstree-default .jstree-search {
    font-style: italic;
    color: #F39C12 !important;
    font-weight: bold;
}

.jstree-default .jstree-anchor.NoeudWF.jstree-search {
    font-style: italic;
    color: #F39C12 !important;
    font-weight: bold;
}

.jstree-default .jstree-anchor.NoeudWF {
    font-weight: bold;
    color: #31708f;
}

.jstree-default .jstree-anchor.NoeudAutreWF {
    color: #31708f;
}


/*Masque les curseurs sur les champs de type number*/
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/*Masque les curseurs sur les champs de type number (Firefox)*/
input[type='number'] {
    -moz-appearance: textfield;
}

#ModalDossierParametrage .modal-dialog {
    min-width: 50%;
}

#ModalMessage .modal-dialog {
    max-width: 500px;
}

/*Fix entêtes de colonnes fixes dans datatable*/
th.dtfc-fixed-left {
    z-index: 100 !important;
    background-color: white !important;
}

.panelBesoin {
    background-color: #f7f5f0 !important;
}

#backToTop {
    display: inline-block;
    background-color: #FF9800;
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 25px;
    position: fixed;
    bottom: 30px;
    right: 3px;
    transition: background-color .3s, opacity .5s, visibility .5s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

    #backToTop:hover {
        cursor: pointer;
        background-color: #b0aeae;
    }

    #backToTop:before {
        content: "\f077";
        font-family: FontAwesome;
        font-weight: normal;
        font-style: normal;
        font-size: 2em;
        line-height: 35px;
        color: #fff;
    }

    #backToTop:active {
        background-color: #555;
    }

    #backToTop.show {
        opacity: 1;
        visibility: visible;
    }

.itemObsolete,
.itemObsolete:focus {
    border-color: orange;
    /*color:orange;*/
}

.textObsolete{
    color:orange;
}

.textNonObsolete{
    color:rgb(85,85,85);
}

.btnSelectionDeselection {
    width: 30px;
    height: 30px;
    padding: 0;
    line-height: 30px;
}

.width40 {
    width: 40%;
}

.texte-disabled{
    color:#878484;
    cursor:not-allowed;
}

/*la fenetre des CGU/CGP, Données personnelles et Mentions légales*/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.custom-modal-content {
    background: white;
    width: 80%;
    max-height: 80%;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#modalContent {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    max-height: 60vh;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #444;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Bouton Fermer toujours visible en bas*/
.close-btn {
    display: block;
    margin: 20px auto 0 auto; /* auto horizontal => centré */
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}

.modal-header {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    text-align: center;
}
