ui-entity-history {
    margin: 0;
    padding: 0;
    p {
        margin: 0;
        //max-width: 70%;
        font-size: 12px;
    }
    ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .ui-tag {
        &__close {
            .digi-cross {
                font-size: 10px;
            }
        }
    }
    .body__historique {
        margin: 5px;
        .date {
            margin: 5px;
            font-size: 12px;
        }
        &--timeline {
            position: relative;
            width: 100%;
            margin-bottom: 10px;
            &:before {
                position: absolute;
                content: " ";
                display: block;
                width: 2px;
                height: 100%;
                left: 8px;
            }
            .body__historique--timeline-round {
                position: relative;
                left: 40px;
                font-size: 12px;
                width: fit-content;
                &:before {
                    position: absolute;
                    left: -40px;
                    content: " ";
                    display: block;
                    width: 18px;
                    height: 18px;
                    border-radius: 10px;
                    z-index: 10;
                }
            }
            .body__historique--timeline2 {
                position: relative;
                width: calc(100% - 40px);
                left: 40px;
                margin: 5px 0;
                > li {
                    margin: 10px 0;
                    overflow-x: hidden;
                    .body__historique--title {
                        position: relative;
                        left: 40px;
                        font-size: 12px;
                        padding: 0;
                        display: flex;
                        justify-content: flex-start;
                        align-items: center;
                        &-svg {
                            width: fit-content;
                        }
                        &-icon {
                            font-size: 18px;
                            position: absolute;
                            left: -40px;
                            content: " ";
                            height: 100%;
                            z-index: 10;
                            &:before {
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                height: 100%;
                            }
                        }
                        .title {
                            margin-right: 5px;
                        }
                        a {
                            .ui-dropdown__icon {
                                font-size: 12px;
                            }
                        }
                    }
                    .panel {
                        margin: 10px 0;
                        .body__historique--box {
                            position: relative;
                            left: 40px;
                            max-width: 70%;
                            > p {
                                font-size: 10px;
                                width: fit-content;
                            }
                            > span {
                                display: flex;
                                flex-direction: column;
                                gap: 5px;
                                margin-bottom: 5px;
                                .body__historique--box-el {
                                    //width: 70%;
                                    border: solid 1px #d8d8d8;
                                    border-radius: 5px;
                                    padding: 10px;
                                    .box__el--name {
                                        font-size: 12px !important;
                                        font-weight: bold;
                                    }
                                    .history_container {
                                        padding: 5px 0;

                                        display: grid;
                                        grid-template-columns: 40% 10% 40%;
                                        grid-template-areas: "old icon new";
                                        align-content: center;
                                        align-items: center;
                                        justify-content: space-between;
                                        &__old {
                                            grid-area: old;
                                            overflow: hidden;
                                            text-overflow: ellipsis;
                                            width: 100%;
                                            max-width: 100%;
                                        }
                                        &__icon {
                                            grid-area: icon;
                                            width: 100%;
                                            justify-content: center;
                                        }
                                        &__new {
                                            grid-area: new;
                                            overflow: hidden;
                                            text-overflow: ellipsis;
                                            max-width: 100%;
                                        }

                                        .overflow_old {
                                            grid-column-start: 1;
                                        }
                                        .overflow_new {
                                            grid-column-start: 3;
                                        }

                                        .overflow_old,
                                        .overflow_new {
                                            max-width: 100%;
                                        }

                                        &_file {
                                            display: grid;
                                            grid-template-columns: 15% 85%;
                                            grid-template-areas: "icon name";
                                            align-content: center;
                                            align-items: center;
                                            > p {
                                                font-size: 12px;
                                            }
                                            $base: unquote(".history_container_file");
                                            #{$base}__icon {
                                                grid-area: icon;
                                            }
                                            #{$base}__name {
                                                grid-area: name;
                                                overflow: hidden;
                                                text-overflow: ellipsis;
                                                width: 100%;
                                                max-width: 100%;
                                                a {
                                                    text-decoration: underline;
                                                    word-break: break-all;
                                                }
                                            }
                                            > p {
                                                width: 100%;
                                            }
                                        }

                                        &_picture {
                                            display: grid;
                                            grid-template-columns: repeat(5, minmax(35px, 35px));
                                            gap: 5px 5px;
                                            overflow: hidden;
                                            max-height: 60px;
                                            &.value_overflow_hidden {
                                                max-height: 60px;
                                            }
                                            img {
                                                width: 100%;
                                                height: 100%;
                                                max-width: 35px;
                                                max-height: 35px;
                                            }
                                        }
                                    }
                                    .comment_header {
                                        p:last-child {
                                            font-size: 10px;
                                            display: flex;
                                            align-items: center;
                                            padding: 5px 0;
                                            ui-icon {
                                                font-size: 15px !important;
                                                margin-right: 3px;
                                            }
                                        }
                                    }

                                    .comment_detail {
                                        max-height: 100px;
                                        max-width: none;
                                    }
                                }
                            }
                            &:before {
                                position: absolute;
                                content: " ";
                                display: block;
                                width: 2px;
                                height: 100%;
                                left: -32px;
                            }
                        }
                    }
                }
            }
        }
    }

    /* TIMELINE 2 */

    .comment_detail + p,
    .comment_detail + p + p,
    .history_container__old + p,
    .history_container__old + p + p,
    .history_container__new + p,
    .history_container__new + p + p,
    .history_container_picture + p,
    .history_container_picture + p + p {
        display: none;
        text-decoration: underline;
        font-size: 10px;
    }

    .value_overflow_hidden {
        overflow-x: hidden;
        overflow-y: hidden;
        & + p {
            display: block;
        }
        & + p + p {
            display: none;
        }
    }
    .value_overflow_visible {
        overflow-x: visible;
        overflow-y: visible;
        max-height: none !important;
        & + p {
            display: none;
        }
        & + p + p {
            display: block;
        }
    }

    .history_save_filter {
        left: 50%;
        transform: translateX(-50%);
    }

    .history_filter {
        padding-left: 0.5rem;
        &--title {
            display: flex;
            align-items: center;
            flex-direction: row;
            ui-button {
                .ui-btn__icon {
                    padding: 0;
                    padding-right: 10px;
                }
            }
        }
        .history_filter_by__header {
            padding: 10px 0;
            font-size: 16px;
        }
        .history_filter_user_tag_not_selected {
            filter: opacity(0.5) grayscale(1);
        }
        ui-tag-list-check {
            .ui-tag {
                padding: 2px 5px;
                font-size: 12px;
                .ui-tag__icon {
                    font-size: 9px;
                }
            }
        }
    }
    .history_no_data {
        text-align: center;
    }

    .history_filter > .history_filter_user_tag,
    .history_filter_user_tag_selected {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
    }
}
