﻿.logo-lg img {
    height: inherit !important;
}
    /* =========================================================
   TABLEAUX ENFANTS
   ========================================================= */

    .table-child {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

    .table-child thead th {
        vertical-align: middle;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .table-child tbody tr {
        height: 1px;
        background-color: transparent;
    }

        .table-child tbody tr:nth-child(even) {
            background-color: rgba(108, 117, 125, 0.025);
        }

    .table-child tbody td {
        min-width: 0;
        padding: 0.55rem 0.5rem;
        vertical-align: middle;
        border-bottom-color: rgba(222, 226, 230, 0.7);
        overflow: visible;
        height: 100%;
    }

        .table-child tbody td > .child-cell-content {
            width: 100%;
            height: 100%;
            min-height: 54px;
            display: flex;
            align-items: stretch;
        }


    /* =========================================================
   COLONNE ACTION FIXE À DROITE
   ========================================================= */

    .table-child th.table-action,
    .table-child td.table-action {
        position: sticky;
        right: 0;
        width: 48px;
        min-width: 48px;
        max-width: 48px;
        padding: 0.35rem;
        text-align: center;
        vertical-align: middle;
        white-space: nowrap;
    }


    /*
 * En-tête de la colonne action.
 *
 * On laisse volontairement le fond de l'en-tête hérité
 * du tableau afin qu'il reste parfaitement intégré
 * à la barre bleue.
 */
    .table-child thead th.table-action {
        z-index: 5;
        background-color: inherit;
        /*
     * Suppression de l'effet "colonne séparée"
     * trop marqué.
     */
        box-shadow: none;
    }


    /*
 * Cellule action du tbody.
 */
    .table-child tbody td.table-action {
        z-index: 3;
        background-color: #fff;
        /*
     * Séparation beaucoup plus légère avec
     * le contenu du tableau.
     */
        box-shadow: -2px 0 4px rgba(0, 0, 0, 0.025);
    }


    /*
 * Conserve l’alternance de couleur des lignes.
 */
    .table-child tbody tr:nth-child(even) td.table-action {
        background-color: #fbfbfc;
    }


    /* =========================================================
   BOUTON AJOUT "+"
   ========================================================= */

    /*
 * Compatible aussi bien avec :
 *
 * <button data-child-add>+</button>
 *
 * qu'avec :
 *
 * <button data-child-add>
 *     <i class="..."></i>
 * </button>
 */
    .table-child thead th.table-action [data-child-add] {
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.55);
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.14);
        color: #fff;
        font-size: 18px;
        font-weight: 400;
        line-height: 1;
        cursor: pointer;
        opacity: 0.9;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
        transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }


        .table-child thead th.table-action [data-child-add]:hover {
            background-color: #fff;
            color: #63b6e6;
            border-color: #fff;
            opacity: 1;
            transform: scale(1.08);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.10);
        }


        .table-child thead th.table-action [data-child-add]:active {
            transform: scale(0.96);
        }


        .table-child thead th.table-action [data-child-add]:focus {
            outline: none;
        }


        .table-child thead th.table-action [data-child-add]:focus-visible {
            outline: 2px solid rgba(255, 255, 255, 0.9);
            outline-offset: 2px;
        }


        /*
 * Si le bouton contient une icône FontAwesome /
 * Bootstrap Icons.
 */
        .table-child thead th.table-action [data-child-add] i {
            font-size: 12px;
            line-height: 1;
            pointer-events: none;
        }


    /* =========================================================
   BOUTON SUPPRESSION
   ========================================================= */

    .table-child td.table-action .action-icon,
    .table-child td.table-action [data-child-delete] {
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background-color: transparent;
        text-decoration: none;
        opacity: 0.55;
        cursor: pointer;
        transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
    }


        .table-child td.table-action .action-icon:hover,
        .table-child td.table-action [data-child-delete]:hover {
            background-color: rgba(220, 53, 69, 0.08);
            opacity: 1;
            transform: scale(1.08);
        }


        .table-child td.table-action .action-icon:active,
        .table-child td.table-action [data-child-delete]:active {
            transform: scale(0.96);
        }


        /*
 * Empêche l'icône interne d'intercepter
 * inutilement le clic.
 */
        .table-child td.table-action .action-icon i,
        .table-child td.table-action [data-child-delete] i {
            pointer-events: none;
        }


    /* =========================================================
   LIBELLÉ FIXE EN MODE ALLOPTIONS
   ========================================================= */

    .table-child .child-fixed-value {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        padding: 0.55rem 0.75rem;
        display: flex;
        align-items: center;
        color: #56616c;
        font-weight: 500;
        line-height: 1.45;
        background-color: rgba(108, 117, 125, 0.035);
        border: 0;
        border-left: 3px solid rgba(108, 117, 125, 0.3);
        border-radius: 0 0.25rem 0.25rem 0;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }


    /* =========================================================
   CONTRÔLES GÉNÉRAUX
   ========================================================= */

    .table-child .form-control,
    .table-child .form-select,
    .table-child textarea,
    .table-child select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .table-child .form-control,
    .table-child .form-select {
        box-sizing: border-box;
    }


    /* =========================================================
   TEXTAREA
   ========================================================= */

    .table-child textarea.child-textarea {
        width: 100%;
        min-width: 0;
        min-height: 54px;
        height: 54px;
        padding: 0.45rem 0.65rem;
        line-height: 1.4;
        resize: vertical;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        word-break: normal;
        overflow-y: auto;
    }


    /* =========================================================
   SELECT2
   ========================================================= */

    .table-child .select2-container {
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
    }

        .table-child .select2-container .select2-selection--single {
            width: 100%;
            min-height: 38px;
            height: auto !important;
            display: flex;
            align-items: center;
        }

            .table-child
            .select2-container
            .select2-selection--single
            .select2-selection__rendered {
                width: 100%;
                padding-top: 0.45rem;
                padding-bottom: 0.45rem;
                padding-left: 0.65rem;
                padding-right: 2rem;
                line-height: 1.4;
                white-space: normal !important;
                overflow: visible !important;
                text-overflow: unset !important;
                overflow-wrap: anywhere;
                word-break: normal;
            }

            .table-child
            .select2-container
            .select2-selection--single
            .select2-selection__arrow {
                top: 50% !important;
                right: 0.35rem;
                transform: translateY(-50%);
            }


/* =========================================================
   OPTIONS DU DROPDOWN SELECT2
   ========================================================= */

.select2-results__option {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.4;
}


/* =========================================================
   INPUT NUMBER
   ========================================================= */

.table-child input[type="number"] {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   CHECKBOX / SWITCH
   ========================================================= */

.table-child .form-check,
.table-child .form-switch,
.table-child td > .d-flex {
    min-height: 38px;
    align-items: center;
}


/* =========================================================
   CONTENU DE LA COLONNE ACTION
   ========================================================= */

.table-child td.table-action {
    vertical-align: middle;
    text-align: center;
}

    .table-child td.table-action .child-cell-content {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 54px;
    }

    .table-child td.table-action .btn,
    .table-child td.table-action .btn-icon,
    .table-child td.table-action button {
        margin: 0;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

    .table-child {
        min-width: 950px;
    }

        .table-child .child-fixed-value {
            min-height: 38px;
        }

        .table-child textarea.child-textarea {
            min-height: 48px;
            height: 48px;
        }
}


/* =========================================================
   UNIFORMISATION DES CONTRÔLES
   ========================================================= */

.table-child .child-cell-content > .child-fixed-value,
.table-child .child-cell-content > .form-control,
.table-child .child-cell-content > .form-select,
.table-child .child-cell-content > textarea,
.table-child .child-cell-content > .select2-container {
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 54px;
}


    /*
 * Textarea étiré sur toute la hauteur disponible.
 */
    .table-child .child-cell-content > textarea.child-textarea {
        height: 100%;
        min-height: 54px;
        resize: vertical;
    }


/*
 * Inputs standards.
 */
.table-child .child-cell-content > input.form-control {
    height: 100%;
    min-height: 54px;
}


/*
 * Select natif.
 */
.table-child .child-cell-content > select.form-control,
.table-child .child-cell-content > select.form-select {
    height: 100%;
    min-height: 54px;
}


/*
 * Select2.
 */
.table-child .child-cell-content > .select2-container {
    width: 100%;
}

    .table-child
    .child-cell-content > .select2-container
    .select2-selection--single {
        width: 100%;
        height: 100% !important;
        min-height: 54px;
        display: flex;
        align-items: center;
    }

    .table-child
    .child-cell-content > .select2-container
    .select2-selection__rendered {
        width: 100%;
    }


/*
 * Champ fixe de la première colonne.
 */
.table-child .child-cell-content > .child-fixed-value {
    display: flex;
    align-items: center;
}


/*
 * Switch ou checkbox.
 */
.table-child .child-cell-content > .d-flex,
.table-child .child-cell-content > .form-check,
.table-child .child-cell-content > .form-switch {
    width: 100%;
    height: 100%;
    min-height: 54px;
    align-items: center;
}


/* =========================================================
   CONTENEUR CELLULE
   ========================================================= */

.child-cell-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

    .child-cell-content > .form-control {
        width: 100%;
    }

    .child-cell-content > .invalid-feedback {
        display: block;
        width: 100%;
        margin-top: 0.25rem;
    }


/* =========================================================
   CHAMPS NUMÉRIQUES
   ========================================================= */

.numeric-input {
    text-align: right;
    font-variant-numeric: tabular-nums;
    border-left: 3px solid rgba(108, 117, 125, 0.3) !important;
}


/* =========================================================
   IMPRESSION MODAL
   ========================================================= */

.btn-print-modal {
    margin-right: 10px;
}

/* =========================================================
   FOOTER MODAL DYNAMIQUE
   Apparition sobre et fluide
   ========================================================= */

.modal .modal-footer {
    /*visibility: hidden;*/
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.28s ease-out, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

    .modal .modal-footer.dynamic-footer-ready {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

.rapport-wip {
    /*display: none !important;*/
}