/* Réinitialiser les styles par défaut du navigateur */

[disabled] {
    cursor: not-allowed !important;
    opacity: 0.5;
}

/* Un champ que la regle metier a fige : grise, avec sa raison en info-bulle.
   Le navigateur n'envoie aucun evenement de souris a un controle desactive, et
   n'affiche donc jamais son title ; neutraliser ses evenements laisse le survol
   atteindre le conteneur, qui porte alors l'info-bulle. */
.champ-fige {
    cursor: not-allowed;
}

.champ-fige select[disabled],
.champ-fige input[disabled],
.champ-fige textarea[disabled] {
    pointer-events: none;
}

ul {
    list-style: none;
}

/* L'ancienne grille de la page d'accueil vivait ici : .grid-container-home,
   .ss-grid-area-home, .grid-container-home-div et les elements <entete>,
   <dialogs>, <incidents>, <users>, <parameters>. La page a ete refaite sur
   webroot/css/home.css, plus rien ne les portait. */

.zoom {
    /* height:400px; */
    margin:auto;
}

.zoom p {
    text-align:center;
}

.zoom img {
    width:400px;
    height:auto;
    display: block;
}

.zoom img:hover {
    width:1400px;
    height:auto;
    display: block;
}

.transparent{
    background: transparent;
}

.imageSize15 {
    width: 15px;
    height: 15px;
}

.footer-intratool{
    display:flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin: 2rem;
    padding: 3rem;
}

/* Les liens legaux, discrets sous le pied de page. Discrets, pas illisibles :
   la racine est a 62,5 % (help.css), 0.8rem n'y faisait que 8 px. */
.footer-legal{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 2.4rem;
    margin: -1rem 2rem 2rem;
    font-size: 1.4rem;
}

.footer-legal a{
    color: #55636f;
    text-decoration: none;
}

.footer-legal a:hover{
    text-decoration: underline;
}

/* « Propulse par InTraTool », sous les liens legaux de l'espace fournisseur :
   plus petit qu'eux, ce n'est pas une information due. Meme couleur : plus
   pale, le texte passerait sous le contraste lisible a cette taille. */
.footer-propulse{
    margin: -1.2rem 2rem 2rem;
    font-size: 1.2rem;
    text-align: center;
}

.footer-propulse a{
    color: #55636f;
    text-decoration: none;
}

.footer-propulse a:hover{
    text-decoration: underline;
}


wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 1rem;
    justify-items: center;
}

.sidebar li {
    list-style: none;
    text-transform: capitalize;
    letter-spacing: 0.04em;
    /*line-height: 1.5em;*/
    margin: 5px 0;
    font-family: "Helvetica Neue",
        Helvetica,
        Roboto,
        Arial,
        sans-serif;
}

.sidebar a {
    color: var(--midnight-color);
    display: block;
}

.sidebar a:hover {
    color: var(--peter-river-color);
}

.sidebar a.current {
    color: var(--pomegranate-color);
}

#sidebar-navigation>ul {
    padding-left: 0;
    margin: 0;
}

#sidebar-navigation .caption,
#sidebar-navigation>p {
    color: var(--midnight-color);
    font-family: "Helvetica Neue",
        Helvetica,
        Roboto,
        Arial,
        sans-serif;
    ;
    display: block;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    padding-bottom: 1.3em;
    padding-top: 1.3em !important;
    padding-left: 1rem;
    margin: 0;
    background-color: var(--clouds-color);;
    border-style: double;
}

#sidebar-navigation .caption:first-child {
    padding-top: 0;
}

aside{
    display: block;
    margin-left:1rem;
    margin-top: 1rem;
    /*min-width:100px;*/
}

.bold{
    font-weight: bold;   
}

.Cancelled{
    color: var(--midnight-color);
    font-weight: 700;
}

.InProgress{
    color: var(--peter-river-color);
    font-weight: 700;
}

.Finished{
    color:var(--turquoise-color);
    font-weight: 700;
}

/* Les tuiles de la page des parametres vivaient ici (.flex-container-alltables
   et .flex-container-alltables-div). La page reprend desormais le composant
   partage de webroot/css/tuiles.css. */


.drag {
  background: var(--wisteria-color);
}

.drop {
  font-style: italic;
  background-color: var(--emerald-color);
  color:white;
}

.drop-not-allowed{
    cursor: not-allowed;
    background-color: var(--alizarin-color);
    color:white;
}

.no-users{
    color: var(--pomegranate-color);
    font-weight: 700;
    font-style: italic;
}

.buttonITT{
    color: white !important;
    font-weight: bold;
    margin: 1rem;
    padding: 0.5rem 0;
    text-align: center;
    border-radius: 1rem;
}

.button2FA{
    background-color: var(--emerald-color);
}

/* Consultation d'une fiche liee : action de navigation, teinte neutre. */
.buttonView{
    background-color: var(--cono-color);
}

.buttonToggleActivate{
    background-color: var(--pomegranate-color);
}

.buttonAdd{
    background-color: var(--turquoise-color);
}

.buttonAddDialog{
    background-color: var(--turquoise-color);
    padding-left: 5rem !important;
    padding-right: 5rem !important;
    padding-top: 0rem !important;
}

.buttonList{
    background-color: var(--amethyst-color);
}

.buttonScorecard{
    background-color: var(--sun-flower-color);
}

.buttonEdit{
    background-color: var(--orange-color);
}

.buttonDelete{
    background-color: var(--pomegranate-color);
}

.buttonClose{
    background-color: var(--wisteria-color);
}

.buttonBack{
    display: block;
    background-color: var(--peter-river-color);
}

.buttonAccept{
    display: block;
    background-color: var(--nephritis-color);
}

.buttonReject{
    display: block;
    background-color: var(--alizarin-color);
    align-self: center;
}

.buttonCancel{
    display: block;
    background-color: var(--pumpkin-color);
    align-self: center;
}

.knowledge-title{
    font-size: larger;
}

.knowledge-field{
    margin-left: 2rem;
    color:var(--midnight-color);;
}

.highlight {
    background-color: var(--sun-flower-color);;
}

.container{
  /*padding-top:50px;*/
  margin: auto;
}

.input-container {
    display: flex;
    align-items: center;
    position: relative;
}

.password {
    width: 100%;
}

.eye-icon {
    position: absolute;
    right: 10px;
    padding-top: 1rem;
    cursor: pointer;
    font-size: 10px;
    color: #333;
}

.myul{
    list-style: circle;
    margin-left:3rem;
}

.logo{
    max-width: 200px;
}

/* En-tete de section d'une fiche : le titre a gauche, les actions qui portent
   sur cette section a droite. */
.section-head{
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}
.section-head > h4{
    margin-bottom: 0;
}
.section-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
/* Section vide : on dit pourquoi plutot que de ne rien afficher. */
.empty-state{
    font-style: italic;
}

/* Etat du dialogue fournisseur : le statut et ce qu'il attend a gauche,
   l'echeance a droite. L'echeance passe sous le statut des que la place
   manque plutot que de comprimer la phrase. */
.dialog-status{
    align-items: baseline;
    border-left: 4px solid transparent;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 2rem;
    justify-content: space-between;
    margin-bottom: 1.6rem;
    padding: 1rem 1.4rem;
}
.dialog-status > p{
    margin-bottom: 0;
}
.dialog-status__state{
    flex: 1 1 32ch;
}
.dialog-status__label{
    display: block;
    font-weight: 600;
}
.dialog-status__delay{
    flex: 0 1 auto;
    font-weight: 600;
    white-space: nowrap;
}

/* Note posee en tete d'un formulaire : ce que l'enregistrement va produire,
   quand ce n'est pas evident a la lecture des champs. */
.form-note{
    border-left: 4px solid transparent;
    margin-bottom: 2rem;
    padding: 1rem 1.4rem;
}

/* Bascule des audit trails : un separateur cliquable plutot qu'un bouton.
   Structure seule ici, l'habillage fin (couleurs, survol) est dans theme.css. */
.showhide-divider{
    align-items: center;
    background: none;
    border: none;
    box-shadow: none;
    color: var(--asbe-color);
    cursor: pointer;
    display: flex;
    gap: 1.2rem;
    height: auto;
    line-height: 1.6;
    margin: 2rem 0 0;
    padding: 0.4rem 0;
    text-transform: none;
    white-space: normal;
    width: 100%;
}
/* Milligram repeint les boutons au survol et au focus : sans effet sur un trait. */
.showhide-divider:focus,
.showhide-divider:hover{
    background: none;
    border-color: transparent;
    color: var(--wet-asp-color);
    outline: none;
}
.showhide-divider::before,
.showhide-divider::after{
    background: var(--silver-color);
    content: "";
    flex: 1;
    height: 1px;
}
.showhide-divider__label{
    align-items: center;
    display: flex;
    gap: 0.8rem;
    padding: 0.2rem 0.8rem;
    white-space: nowrap;
}
/* Chevron trace en CSS : un carre dont on ne garde que deux cotes. */
.showhide-divider__arrow{
    border-bottom: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    display: inline-block;
    height: 0.5em;
    transform: translateY(-0.15em) rotate(45deg);
    transition: transform 0.15s ease;
    width: 0.5em;
}
/* Ouvert : les chevrons se retournent vers le haut. */
.showhide-divider[aria-expanded="true"] .showhide-divider__arrow{
    transform: translateY(0.15em) rotate(-135deg);
}
/* Un seul libelle visible : celui qui decrit l'action a venir. */
.showhide-divider[aria-expanded="true"] .showhide-divider__show,
.showhide-divider[aria-expanded="false"] .showhide-divider__hide{
    display: none;
}
.ASK{
    border-color: var(--orange-color);
    border-style: solid;
    box-shadow: 0 3px 7px 0 var(--orange-color), 0 3px 6px 0 var(--sun-flower-color);
}
.ACK{
    border-color: var(--sun-flower-color);
    border-style: solid;
    box-shadow: 0 3px 7px 0 var(--sun-flower-color), 0 3px 6px 0 var(--pomegranate-color);
}
.REJ{
    border-color: var(--pomegranate-color);
    border-style: solid;
    box-shadow: 0 3px 7px 0 var(--pomegranate-color), 0 3px 6px 0 var(--turquoise-color);
}
.IRJ{
    border-color: var(--pomegranate-color);
    border-style: solid;
    box-shadow: 0 3px 7px 0 var(--pomegranate-color), 0 3px 6px 0 var(--turquoise-color);
}
.ACP{
    border-color: var(--nephritis-color);
    border-style: solid;
    box-shadow: 0 3px 7px 0 var(--turquoise-color), 0 3px 6px 0 var(--orange-color);
}

.flex-container-buttons{
    display: flex;
}

.disable-tfa{
    margin-left:1rem;
    background-color: var(--orange-color);
}
/* Connexion : l'email en tete, la passkey juste dessous, puis le mot de passe
   sous un separateur (cf. templates/Users/login.php). */
.connexion .connexion-passkey{
    margin: 0 0 1.5rem;
}
.connexion .connexion-passkey .button2FA{
    width: 100%;
    margin: 0;
}
.connexion .connexion-separateur{
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.5rem;
    opacity: .75;
    font-size: .9em;
}
.connexion .connexion-separateur[hidden]{
    display: none;
}
.connexion .connexion-separateur::before,
.connexion .connexion-separateur::after{
    content: "";
    flex: 1;
    border-top: 1px solid currentColor;
}
.connexion .connexion-compte{
    margin-bottom: 1rem;
}

/* Consultation de l'editeur en lecture seule : un bandeau qu'on ne peut pas
   ne pas voir, sur chaque ecran tant qu'elle dure. */
.consultation-bandeau {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    padding: 0.6rem 1rem;
    background: #8a1c1c;
    color: #fff;
    font-size: 1.4rem;
    text-align: center;
}
.consultation-bandeau strong { color: #fff; }
.consultation-bandeau__sortie { margin: 0; }
.consultation-bandeau__sortie button {
    margin: 0;
    background: #fff;
    border-color: #fff;
    color: #8a1c1c;
}
