/*** Styles génériques : ne devraient jamais être édités hormis pour le projet de référence ***/
/*** IMPORTANT !!
     Vérifier si une classe bootstrap ne répond pas déjà au besoin avant de rajouter un style
     (principalement typographie et alignement : http://getbootstrap.com/css/)
***/

/* ----------------------------- */
/* = Index */
/* ---------------------------- */
/* 1- Styles généraux */
/* 2- Menus */
/* 3- Pages */
/* 4- Composants */
/** 4.1- Tables **/
/** 4.2- Formulaires **/
/** 4.3- Sections **/
/** 4.4- Flèches de navigation **/
/** 4.5- Changement utilisateur **/
/* 5- Surcharge Bootstrap (v5.3.x) */


/* Pense-bete couleurs */
/* --- si nécessaire --- */

/* Pense-bete polices */
/* --- si nécessaire --- */



/* ----------------------------- */
/* 1- Styles généraux */

.version-application {
    font-size: 10px;
}

footer {
    height: 50px;
}

/* Texte concomitant au badge */

.texte-badge {
    font-weight: 700;
}

.texte-badge + .badge {
    margin-left: 15px;
}

/* Message d'alerte résolution minimale */

#alerte-resolution {
    display: none;
}

@media (max-width: 991px) {
    #alerte-resolution {
        display: block;
        z-index: 99;
        position: relative;
    }
}

/* Défilement doux */

html {
    scroll-behavior: smooth;
}


/* ----------------------------- */
/* 2- Menus */

#infos-utilisateur,
#changement-utilisateur {
  display: none;
}

.navbar-afficher #infos-utilisateur,
.navbar-afficher #changement-utilisateur {
  display: block;
}

/* Classe pour un séparateur de menu avec un titre.

 La classe pour un séparateur de menu sans titre est dropdown-divider issue de bootstrap.
 Si on veut ajouter un titre on aura:
 <div class="separateur_avec_titre">
   <span>{{_('Titre du séparateur')}}</span>
 </div>
 */
.separateur_avec_titre {
    display: block;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
}

.separateur_avec_titre > span {
    position: relative;
    display: inline-block;
    color: #959595;
}

.separateur_avec_titre > span:before,
.separateur_avec_titre > span:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 9999px;
    height: 1px;
    background: #959595;
}

.separateur_avec_titre > span:before {
    right: 100%;
    margin-right: 2px;
}

.separateur_avec_titre > span:after {
    left: 100%;
    margin-left: 2px;
}

/* ----------------------------- */
/* 3- Pages */

/* Page de login */

#drapeaux {
    margin-top: 1em;
    margin-right: 0.5em;
}

#drapeaux li {
    display: inline-block;
}

#drapeaux li > a {
    padding: 0;
}

/* Page d'accueil */

.infos-accueil {
    text-align: center;
    margin-top: 1.5em;
    height: 100%;
    font-size: 6em;
    color: #ccc;
}

.infos-accueil .version-application {
    font-size: 0.4em;
}

/* Page d'erreur */

.bloc-erreur {
    margin-top: 10px !important;
}

.bloc-erreur h3 {
    margin-bottom: 22px !important;
}


/* ----------------------------- */
/* 4- Composants */


/** 4.1- Tables **/

tr.cliquable {
    cursor: pointer;
}

td.ajustee {
    /* Ajustement de la largeur de la colonne à son contenu
       Mettre une largeur inférieure à un bouton de large ...
       ... le contenu est insécable, donc la colonne ajuste la largeur au contenu */
    width: 1px;
    white-space: nowrap;
}

td.actions {
    padding: 4px !important;
    text-align: center;
}

.row + table {
    margin-top: 1em;
}

ul.pagination {
    float: right;
}

.bloc-pagination {
    width: 100%;
    display: inline-block;
}

/* Classes pour le remplissages de colonnes au maximum
   On utilise ces classes pour que les colonnes s'ajustent à leur contenu et prennent le maximum de la place disponible */

.cellule-remplie {
    max-width:1px; width:100%;
}

.cellule-ellipsis {
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
} /* à utiliser avec le .cellule-remplie ou le no-wrap : si ça déborde, voilà ce que je fais */

.cellule-noWrap {
    white-space:nowrap;
}

/* Div d'attente lors de la pagination */

.attente {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.6;
    background-color:white;
    z-index:10;
    transition-delay: 2s;
}

.attente > i.bi-arrow-repeat{
    position: absolute;
    left: 50%;
    top: 50%;
    opacity: 0.8;
    z-index:11
}

/* Si on affiche l'attente avec un texte, on opacifie plus pour que le texte ressorte */
.texte_attente {
    opacity: 0.9;
}

.texte_attente > div {
    width: 400px;
    height: 100px;
    position: absolute;
    top:0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.3em;
    font-style: italic;
}

/** 4.2- Formulaires **/

/* Cadre formulaire de Recherche */

.cadre-formulaire {
    border: 1px rgb(229, 229, 229) solid;
    margin-bottom: 2.5em;
    padding-bottom: 1em;
}

.titre-cadre-formulaire {
    position: relative;
    top: -0.8em;
    margin-left: 1em;
    display: inline;
    background-color: white;
    font-weight: 700;
    font-size: 15px;
    color: rgb(149, 149, 149);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin-right: 60%;
}

.cadre-formulaire button {
    float: right;
}

/* Checkboxes remplacées par une icone (cas administration : est_actif) */

.actif-checkbox{
    margin-top: 3px;
}

.actif-checkbox > input[type=checkbox] {
    position: relative;
    cursor: pointer;
}

.actif-checkbox > input[type=checkbox]:before {
    font-size: 1.3em;
    background-color: #fff;
    content:"\f204";
    color: #a94442;
}

.actif-checkbox > input[type=checkbox]:checked:before {
    content:"\f205";
    color: #3c763d;
}


/* Champs de type "plage de dates" */

.plage-de-dates {
    margin-right: 0;
    margin-left: 0;
    width: 100%;
}

.plage-de-dates > .plage-de-dates-label {
    float: left;
}

.plage-de-dates-label .d-flex + .d-flex {
    margin-top: 15px
}


/* Séparateur des boutons d'action.

 A utiliser lorsque les boutons d'actions ont des sections juste au-dessus, pour indiquer que les boutons
 sont pour la page entière, et pas la section précédente.
*/

hr.separateur_actions {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    height: 2px;
    color: #fff;
    background-color: #337ab7;
    border: 1px solid #2e6da4;
    border-radius: 4px;
}


/* Classes pour popovers sur boutons désactivés */

.disabled-button-wrapper {
  display: inline-block;
}

.disabled-button-wrapper .btn[disabled] {
  pointer-events: none;
}

.disabled-button-wrapper:hover {
  cursor: not-allowed;
}



/** 4.3- Sections **/

section h4 {
    padding-bottom: 0.6em;
    border-bottom: 1px #000 solid;
}


/** 4.4- Flèches de navigation **/


/* Boutons retour en haut et bas de page */

.navigation-haut {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    position: fixed;
    z-index: 99;
    right: 0;
    bottom: 140px;
    text-decoration: none;
    padding: 1em;
    display: none;
    border-top-left-radius: 10px;
}

.navigation-bas {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    position: fixed;
    z-index: 99;
    right: 0;
    bottom: 92px;   /* height = 48px*/
    text-decoration: none;
    padding: 1em;
    display: none;
    border-bottom-left-radius: 10px;
}

.navigation-haut:focus, .navigation-haut:hover, .navigation-bas:focus, .navigation-bas:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}


/** 4.5 Changement utilisateur **/

#infos-utilisateur button {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: -1px;
    border-right-color: transparent;
}

#changement-utilisateur {
    min-width: 350px
}

#changement-utilisateur .ts-input,
#changement-utilisateur .ts-wrapper {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#changement-utilisateur .optgroup-header {
    color: #000;
    background-color: #d9edf7;
    font-size: 14px;
    white-space: normal;
    font-weight: 700
}

/* ----------------------------- */
/* 5- Surcharge Bootstrap (v5.3.x) */

html {
   font-size: 14px;
   line-height: 1.428;
}

.badge {
    padding: .3em .6em;
    font-size: .95em;
}

a {
	text-decoration: none;
}

tr {
    vertical-align: middle;
}

/* Bootstrap Icons : attente */

.rotation {
  display: inline-block;
  animation: rotate 2.5s linear infinite;
}
@keyframes rotate{
  to{ transform: rotate(360deg); }
}

/* Marges champs dans un form-row alignées sur form-group */

.row.mb-3 {
    display: flex!important;
    margin-right: -10px;
    margin-left: -10px;
}

.form-row {
    margin-right: -10px;
    margin-left: -10px;
    margin-bottom: 1rem;
}

form .cadre-formulaire .row.mb-3 {
    margin-right: 0;
}

#rechercheForm .cadre-formulaire .row.mb-3 {
    margin-right: 0;
    margin-left: 0;
}

.form-row>.col, .form-row>[class*=col-] {
    padding-right: 15px;
    padding-left: 15px;
}

.cadre-formulaire .form-row {
    margin: 0 0 1rem;
}

/* Affichage du sous-menu au survol (au lieu du clic) */

.nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
 }

.nav>li:hover {
    background-color: #e7e7e7;
}

.nav>li:hover>a {
    color: #555;
}

.dropdown-menu {
    border: 0 solid rgba(0,0,0,.15);
    border-left: 1px solid rgba(0,0,0,.15);
    border-right: 1px solid rgba(0,0,0,.15);
    border-bottom: 1px solid rgba(0,0,0,.15);
}

/* Affichage checkbox pour IE */

input[type=checkbox].form-control {
    height: auto;
    width: auto;
    margin-top: 10px;
}

.checkbox input[type=checkbox].form-control {
    margin-top: 4px;
}

/* Labels champs obligatoires */

.row.mb-3.required .col-form-label:after {
   content:"*";
}

.col-form-label.required:after {
   content:"*";
}

/* Survol ligne tableau */

.table-hover tbody tr:hover td, .table-hover tbody tr:hover th {
    background-color: #EDF6FD;
}

/* Alignement labels formulaires */

label.checkbox {
    text-align: left;
    font-weight: 400;
    padding-left: 1.4em;
}

label.checkbox:first-child {
    margin-top: 0;
}

.checkbox.checkbox-ligne {
    padding-top: 0;
    padding-right: 15px;
    display: inline-block
}

/* Taille élément label (utlisé pour les statuts) */

.label {
    font-size: 90%;
}

/* Checkboxes */

.checkbox-inline {
    padding-left: 0;
}

/* Onglets */

.tab-pane {
    display: inline-block;
    width: 100%;
    border-width: 1px;
    border-style: solid;
    border-color: transparent #DDD #DDD;
    padding: 2em 1em;
}

.tab-pane label {
    padding-right: 0 !important;
    text-align: right;
}

.nav-tabs > li > a {
    margin-right: 0;
}

/* Labels champs en ligne avec message d'erreur */

.form-horizontal .control-label {
    clear: left
}

.form-horizontal .en-ligne .control-label {
    clear: none
}

.form-check {
    padding-top: calc(.375rem + 1px);
}

label.col-form-label {
    text-align: right;
    font-weight: 700;
    padding-top: 0;
}

form label.col-form-label {
    padding-top: calc(.375rem + 1px);
}

.alert-danger.fade, .alert-success.fade, .alert-warning.fade, .alert-info.fade, .tab-pane.fade {
   opacity: 1
}

.btn-outline-secondary:not(.disabled):hover > i[class^="bi-"],
.btn-outline-secondary:hover > i.text-danger,
.btn-outline-secondary:hover > i.text-success {
    color: #fff !important
}

.badge:not(.rounded-pill) {
    font-size: 90%;
}

label.checkbox-inline {
  font-weight: 500;
  margin-top: 0.4em;
}

ul.help-block {
  margin-bottom: 0;
}


/* Macro input_fichier */

.input-group-btn .btn-outline-secondary {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.input-group-btn + input[readonly] {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}


/* Alertes escamotables */

.btn-close:hover {
    cursor: pointer
}