﻿.i-title {
    display: block;
    padding: 10px;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.records-wrapper {
    display: flex;
    flex-flow: column;
    padding: 10px;
    border-left: 1px solid;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.single-record {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid;
}
/*
.single-record:last-of-type {
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
}*/

.audit-left span {
    height: 100%;
    color: white;
    display: flex;
    align-items: center;
    width: 110px;
    justify-content: center;
}
.istoriko-wrapper {
    font-size: 14px;
    font-family: Manrope, sans-serif;
}
.audit-header {
    display: flex;
    flex-flow: row nowrap;
    position: relative;
    align-items: center;
    height: 40px;
}
.k-tabstrip-items .k-link {
    font-size: 16px;
    padding: 10px 30px;
}
.audit-right {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 10px;
}
.ad-value {
    width: calc(100% - 315px); 
}

    .audit-right > span {
        height: 100%;
        display: flex;
        color: #ffffff;
        align-items: center;
        width: 120px; justify-content: center;
    }

.audit-left {
    display: flex;
    align-items: center;
/*    width: 257px;*/
    height: 100%;
    gap: 10px;
    border-right: 1px solid #d9d9d9;
    margin-right: 15px;
}

.more-button {
    background: #e2e3e5;
    padding: 10px;
    height: 100%;
    width: 40px;
    box-sizing: border-box;
}

.more-button img{
    height: 100%;
    width: 100%;
    transition: transform 0.3s ease;
}

.more-button:hover {
    cursor: pointer;
}

.audit-desc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-weight: bold;
    margin-right: 5px;
    border-radius: 50%;
}

.audit-collapse {
    display: none;
}

.groupChangeByEntityName:not(:last-of-type) {
    padding-bottom: 6px;
    border-bottom: 3px solid black;
}

.single-record.open .audit-collapse {
    display: flex;
    padding-top: 10px;
}

.audit-data {
    display: flex;
    flex-flow: column;
    width: 100%;
    margin-left: 55px;
    margin-right: 55px;
}
.single-audit-data {
    margin-bottom: 4px;
    border-bottom: 1px solid #e0e0e0;
}

.key-icon img {
    width: 15px;
}

.key-icon {
    background-color: #ABD8F2;
    padding: 3px;
    margin-right: 8px;
    border-right: 4px solid white;
}

.ad-key {
    display: inline-flex;
    align-items: center;
    background-color: #e2e3e5;
    padding-right: 8px;
    padding: 10px 10px;
    width: 300px;
    margin-right: 15px;
    height: 100%;
    color: white;
}

.auditList .k-item .k-link {
    min-height: 40px;
    padding: 0px 21.25px !important;
    font-size: 14px;
    font-weight: 500;
}
.auditList .k-item,
.auditList .k-item.k-active {
    background: #0d0e12 !important;
    border-radius: 6px 6px 0 0!important;
    color:white!important;
}

.auditList .k-tabstrip-items-wrapper.k-hstack .k-item {
    border-top: 5px solid #0d0e12 !important;
}
.auditList .k-tabstrip-items-wrapper.k-hstack .k-item.k-active
{
    border-top: 5px solid #0dcaf0 !important;
}

.auditList .k-tabstrip-items-wrapper.k-hstack .k-item:not(.k-active):hover {
    border-top: 5px solid #08677f !important;
}

.audit-title {
    font-size: 15px;
}

.audit-right > span {
    display: none;
}

.auditList .k-tabstrip-content.k-active {
    display: block;
    border: 3px solid #000000 !important;
    border-radius: 0px 7px 7px 7px;
    padding: 0;
 }

.groupChangeByEntityName {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px;
    padding-bottom: 5px;
}

.single-audit-data {
    width: 49%;
    display: flex;
    align-items: center;
    font-size: 13px;
}

/* ===== Timeline view (with side-by-side diff) ===== */
.audit-timeline-container {
    display: flex;
    gap: 16px;
    max-height: 70vh;
    font-family: Manrope, sans-serif;
    padding: 10px 0;
}

.audit-timeline-list {
    flex: 0 0 40%;
    max-height: 70vh;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 4px 8px 4px 28px;
    position: relative;
}

.audit-timeline-list::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    /* Center the line on the marker dots: marker is 14px wide at item.left+(-19)=9px from list-left,
       so its center is at 16px. The 2px-wide line needs left=15px to share that center. */
    left: 15px;
    width: 2px;
    background: #d9d9d9;
}

.audit-timeline-item {
    position: relative;
    padding: 8px 8px 16px 18px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

.audit-timeline-item:hover {
    background: rgba(0, 174, 239, 0.06);
}

.audit-timeline-item.is-selected {
    background: rgba(0, 174, 239, 0.12);
}

.audit-timeline-item:last-child {
    padding-bottom: 8px;
}

.audit-timeline-marker {
    position: absolute;
    left: -19px;
    top: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--marker-color, #be2526);
    box-sizing: border-box;
}

.audit-timeline-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.audit-timeline-date {
    font-size: 12px;
    color: #8a8a8a;
    letter-spacing: 0.2px;
}

.audit-timeline-desc {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.audit-timeline-user {
    font-size: 11px;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
}

/* Diff panel (right side) — git-like dark style */
.audit-diff-panel {
    flex: 1 1 60%;
    background: #1a1d21;
    color: #e4e6eb;
    padding: 16px;
    border-radius: 8px;
    overflow-y: auto;
    max-height: 70vh;
    font-size: 13px;
}

.audit-diff-empty {
    color: #8a8a8a;
    font-style: italic;
    text-align: center;
    padding: 32px 16px;
}

.audit-diff-entity {
    margin-bottom: 18px;
}

.audit-diff-entity-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid #3a3f47;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.audit-diff-entity-action {
    font-size: 12px;
    font-weight: 500;
    margin-left: 4px;
    text-transform: lowercase;
}

.audit-diff-action-U { color: #ffb766; }
.audit-diff-action-D { color: #ff8a8a; }
.audit-diff-action-I { color: #8ed98e; }

.audit-diff-table {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) 1fr 1fr;
    gap: 0;
    margin-bottom: 8px;
}

.audit-diff-table-head {
    display: contents;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8a8a8a;
}

.audit-diff-table-head > div {
    padding: 6px 8px;
    border-bottom: 1px solid #3a3f47;
    font-weight: 600;
}

.audit-diff-row {
    display: contents;
}

.audit-diff-row > div {
    padding: 6px 8px;
    border-bottom: 1px dashed #2a2d31;
    word-break: break-word;
    font-size: 13px;
    align-self: stretch;
}

.audit-diff-field {
    color: #c5c8cc;
    font-weight: 600;
}

.audit-diff-old {
    color: #ff8a8a;
    background: rgba(190, 37, 38, 0.12);
}

.audit-diff-old.is-empty {
    background: transparent;
}

.audit-diff-new {
    color: #8ed98e;
    background: rgba(56, 131, 62, 0.12);
}

.audit-diff-new.is-empty {
    background: transparent;
}

.audit-diff-dash {
    color: #555;
}