﻿.entity-audit-log .entity-audit-log-menu {
    width: 22rem;
    max-width: calc(100vw - 2rem);
    padding: 0;
    overflow: hidden;
}

.entity-audit-log .entity-audit-log-timeline {
    padding: 1rem;
}

.entity-audit-log .entity-audit-log-event {
    position: relative;
    padding-inline-start: 2.4rem;
    padding-bottom: 1.15rem;
}

.entity-audit-log .entity-audit-log-event:last-child {
    padding-bottom: 0;
}

.entity-audit-log .entity-audit-log-event:not(:last-child)::before {
    position: absolute;
    top: 1.9rem;
    bottom: .1rem;
    inset-inline-start: calc(.875rem - .5px);
    width: 1px;
    background-color: #dce2e7;
    content: "";
}

.entity-audit-log .entity-audit-log-marker {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 2px solid #fff;
    border-radius: .5rem;
    box-shadow: 0 0 0 1px #dce2e7;
    font-size: .65rem;
}

.entity-audit-log .entity-audit-log-event-updated .entity-audit-log-marker {
    background-color: var(--primary);
    color: #fff;
}

.entity-audit-log .entity-audit-log-event-created .entity-audit-log-marker {
    background-color: var(--success);
    color: #fff;
}

.entity-audit-log .entity-audit-log-event-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    line-height: 2;
}

.entity-audit-log .entity-audit-log-event-heading time {
    color: #737e88;
    font-size: .78rem;
    white-space: nowrap;
}

.entity-audit-log .entity-audit-log-actor {
    display: flex;
    align-items: center;
    margin-top: .45rem;
    padding: .45rem .6rem;
    border-radius: .3rem;
    background-color: #f6f8fa;
    color: #596167;
}

.entity-audit-log .entity-audit-log-actor > i {
    margin-inline-end: .45rem;
    color: #737e88;
}

.entity-audit-log .entity-audit-log-actor-label {
    margin-inline-end: .35rem;
    color: #737e88;
}

.entity-audit-log .entity-audit-log-actor-name {
    min-width: 0;
    overflow: hidden;
    color: #343a40;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entity-audit-log .entity-audit-log-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1rem;
    border-top: 1px solid #e4e8ec;
    background-color: #fff;
    color: var(--primary);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.entity-audit-log .entity-audit-log-footer:hover,
.entity-audit-log .entity-audit-log-footer:focus {
    background-color: #f6f8fa;
    color: var(--primary-dark);
    text-decoration: none;
}

.entity-audit-log .entity-audit-log-footer > span > i {
    margin-inline-end: .45rem;
}

@media (max-width: 575.98px) {
    .entity-audit-log .entity-audit-log-menu {
        width: calc(100vw - 1rem);
        max-width: calc(100vw - 1rem);
    }

    .entity-audit-log .entity-audit-log-event-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: .15rem;
    }
}
