﻿/* Style GestFit */

.gf-label 
{
    color: Gray;
    font-weight: bold;
}

.gf-value
{
}

.gf-form-label 
{
    color: Gray;
    font-weight: bold;
    min-width: 115px;
}

.gf-form-value 
{
    min-width: 115px;
}

a:hover
{
    color: #007bff;
}

.table > tbody > tr.selected
{
    background-color: #D4E4F7;
}

/* Banniere d'expiration GestFitV2 (DateBlocage) */
#blocageBanner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    height: 36px;
    line-height: 36px;
    padding: 0 16px;
    background-color: #dc3545;
    color: #fff;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

    #blocageBanner i {
        margin-right: 8px;
    }

body.with-blocage-banner {
    padding-top: 136px;
}

    body.with-blocage-banner > header {
        top: 36px;
    }

    /* La sidebar est en position:fixed top:0 (cf. 03_hack.css). Sans cette regle, la banniere
       recouvrirait le premier item du menu (Tableau de bord). */
    body.with-blocage-banner .sidebar-menu {
        top: 36px;
    }

/* ## Formulaires : champs obligatoires, erreurs, effacement des dates ############
   Ajouté 30.07.2026 avec la validation de dirForm. */

/* Astérisque des champs obligatoires (dirForm, field.required = true) */
.gf-required {
    color: #dc3545;
    font-weight: 700;
    margin-left: 3px;
}

/* Bandeau d'erreur d'un formulaire : champ obligatoire manquant ou échec
   d'enregistrement. Avant, un échec ne produisait aucun message. */
.gf-form-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 8px 0;
    padding: 8px 12px;
    border: 1px solid #f5c2c7;
    border-radius: 6px;
    background: #f8d7da;
    color: #842029;
    font-size: 13px;
    font-weight: 600;
}

.gf-form-error-close {
    border: 0;
    background: transparent;
    color: #842029;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    flex: 0 0 auto;
    overflow: visible;
    text-overflow: clip;
}

/* Effacement d'un champ date : <input type="date"> n'offre pas de bouton
   d'effacement dans tous les navigateurs. */
.gf-clear-date {
    border: 1px solid #ced4da;
    background: #fff;
    color: #6c757d;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 3px 8px;
    margin-left: 4px;
    flex: 0 0 auto;
    overflow: visible;
    text-overflow: clip;
}

    .gf-clear-date:hover {
        background: #f1f3f5;
        color: #212529;
    }
