.text-comment {
    color: #4c8504 !important;
}

/* Styles for mobile sidebar toggle */
@media (max-width: 991.98px) {
    .sidenav {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1050;
        background-color: #fff !important;
        box-shadow: 0 20px 27px 0 rgba(0, 0, 0, 0.05);
    }
    
    .sidenav.show {
        transform: translateX(0);
        background-color: #fff !important;
    }
    
    .g-sidenav-show .sidenav {
        transform: translateX(0);
        background-color: #fff !important;
    }
    
    .g-sidenav-hidden .sidenav {
        transform: translateX(-100%);
    }
    
    .g-sidenav-pinned .sidenav {
        background-color: #fff !important;
    }
    
    /* Overlay pour fermer le menu en cliquant à côté */
    .g-sidenav-show.g-sidenav-pinned::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1049;
    }
}

/* Améliorations Flatpickr pour mobile/iPhone */
@media (max-width: 767.98px) {
    .flatpickr-calendar {
        max-width: 90vw !important;
        font-size: 16px !important; /* Empêche le zoom sur iPhone */
    }
    
    .flatpickr-day {
        height: 44px !important; /* Taille recommandée Apple pour touch target */
        line-height: 44px !important;
        width: 44px !important;
    }
    
    .flatpickr-time input {
        font-size: 16px !important; /* Empêche le zoom sur iPhone */
    }
    
    .flatpickr-input {
        font-size: 16px !important; /* Empêche le zoom sur iPhone */
        cursor: pointer !important;
    }
    
    /* Améliorer la visibilité sur mobile */
    .flatpickr-calendar.open {
        z-index: 9999 !important;
    }
}

/* Fix pour les inputs datetimepicker */
.datetimepicker {
    font-size: 16px !important; /* Empêche le zoom sur iPhone */
    -webkit-user-select: none;
    user-select: none;
}

.datetimepicker:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25) !important;
}

/* Styles pour l'input alternatif de Flatpickr */
.flatpickr-input {
    font-size: 16px !important; /* Empêche le zoom sur iPhone */
    cursor: pointer !important;
    -webkit-user-select: none;
    user-select: none;
}

.flatpickr-input:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25) !important;
}

/* S'assurer que l'altInput a le bon style Bootstrap */
input.flatpickr-input.form-control {
    cursor: pointer !important;
}
