.vo-interaction-timeline {
    overflow: hidden;
}

.vo-interaction-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid #e8eef5;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.vo-interaction-eyebrow {
    margin: 0;
    color: #d8890b;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.vo-interaction-section-head h2,
.vo-interaction-dialog-head h2 {
    margin: 5px 0 0;
    color: #17233a;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
}

.vo-interaction-section-head p:not(.vo-interaction-eyebrow),
.vo-interaction-dialog-head p:not(.vo-interaction-eyebrow) {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 18px;
}

.vo-interaction-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.vo-interaction-status,
.vo-interaction-due {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: #eef4fb;
    color: #1d3c6a;
    font-size: 10px;
    font-weight: 900;
}

.vo-interaction-due {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.vo-interaction-due.is-due {
    border-color: #f6d894;
    background: #fffbeb;
    color: #b45309;
}

.vo-interaction-due.is-overdue {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.vo-interaction-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid #e8eef5;
    background: #f8fafc;
}

.vo-interaction-summary > div {
    padding: 14px 20px;
    border-right: 1px solid #e8eef5;
}

.vo-interaction-summary > div:last-child {
    border-right: 0;
}

.vo-interaction-summary span {
    display: block;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.vo-interaction-summary strong {
    display: block;
    margin-top: 5px;
    color: #1d3c6a;
    font-size: 15px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.vo-interaction-list {
    position: relative;
    padding: 10px 22px 18px 40px;
}

.vo-interaction-list::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 20px;
    bottom: 28px;
    width: 1px;
    background: #dbe5f1;
}

.vo-interaction-entry {
    position: relative;
    padding: 11px 0 11px 18px;
}

.vo-interaction-dot {
    position: absolute;
    left: -17px;
    top: 18px;
    width: 11px;
    height: 11px;
    border: 3px solid #fff;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 1px #cbd5e1;
}

.vo-interaction-entry.is-submitted .vo-interaction-dot { background: #f59e0b; box-shadow: 0 0 0 1px #f6d894; }
.vo-interaction-entry.is-response .vo-interaction-dot { background: #2563eb; box-shadow: 0 0 0 1px #93c5fd; }
.vo-interaction-entry.is-negotiation .vo-interaction-dot { background: #7c3aed; box-shadow: 0 0 0 1px #c4b5fd; }
.vo-interaction-entry.is-decision .vo-interaction-dot { background: #059669; box-shadow: 0 0 0 1px #86efac; }

.vo-interaction-entry-body {
    border: 1px solid #e7edf5;
    border-radius: 14px;
    background: #fff;
    padding: 12px 14px;
}

.vo-interaction-entry.is-response .vo-interaction-entry-body { border-left: 3px solid #3b82f6; }
.vo-interaction-entry.is-negotiation .vo-interaction-entry-body { border-left: 3px solid #8b5cf6; }
.vo-interaction-entry.is-decision .vo-interaction-entry-body { border-left: 3px solid #10b981; }

.vo-interaction-entry-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.vo-interaction-entry-head > div:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.vo-interaction-type {
    color: #1d3c6a;
    font-size: 11px;
    font-weight: 900;
}

.vo-interaction-entry time,
.vo-interaction-entry small {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
}

.vo-interaction-value-stack {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    text-align: right;
}

.vo-interaction-value-stack strong {
    color: #1d3c6a;
    font-size: 12px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.vo-interaction-variance {
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.vo-interaction-variance.is-down { color: #b91c1c; }
.vo-interaction-variance.is-up { color: #047857; }
.vo-interaction-variance.is-equal { color: #64748b; }

.vo-interaction-entry-body > p {
    margin: 7px 0 0;
    color: #475569;
    font-size: 12px;
    line-height: 19px;
    white-space: pre-line;
}

.vo-interaction-entry-body > small {
    display: block;
    margin-top: 7px;
}

.vo-interaction-empty {
    padding: 30px 10px;
    text-align: center;
    color: #94a3b8;
    font-size: 11px;
}

.vo-interaction-dialog {
    width: min(640px, calc(100vw - 28px));
    max-width: 640px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
}

.vo-interaction-dialog::backdrop {
    background: rgba(15, 23, 42, .56);
    backdrop-filter: blur(3px);
}

.vo-interaction-form {
    display: flex;
    max-height: min(720px, calc(100dvh - 32px));
    flex-direction: column;
}

.vo-interaction-dialog-head {
    position: relative;
    flex: none;
    padding: 18px 20px 15px;
    border-bottom: 1px solid #e8eef5;
}

.vo-dialog-close {
    position: absolute;
    right: 14px;
    top: 12px;
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.vo-interaction-dialog-body {
    min-height: 0;
    overflow-y: auto;
    padding: 18px 20px 20px;
}

.vo-interaction-dialog-snapshot {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #e2e8f0;
}

.vo-interaction-dialog-snapshot > div {
    min-width: 0;
    background: #f8fafc;
    padding: 11px 13px;
}

.vo-interaction-dialog-snapshot span {
    display: block;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.vo-interaction-dialog-snapshot strong {
    display: block;
    margin-top: 4px;
    color: #1d3c6a;
    font-size: 12px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.vo-interaction-dialog-snapshot strong.is-down { color: #b91c1c; }
.vo-interaction-dialog-snapshot strong.is-up { color: #047857; }
.vo-interaction-dialog-snapshot strong.is-equal { color: #64748b; }

.vo-interaction-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.vo-interaction-grid label,
.vo-interaction-field {
    display: block;
}

.vo-interaction-grid label > span,
.vo-interaction-field > span {
    display: block;
    margin-bottom: 7px;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.vo-interaction-field {
    margin-top: 16px;
}

.vo-interaction-field small {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    font-size: 9px;
    line-height: 14px;
}

.vo-interaction-money {
    position: relative;
}

.vo-interaction-money input {
    padding-right: 64px !important;
    font-weight: 800;
}

.vo-interaction-money b {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 8px;
    background: #f1f5f9;
    padding: 5px 7px;
    color: #64748b;
    font-size: 9px;
    letter-spacing: .08em;
}

.vo-interaction-dialog textarea {
    min-height: 112px;
    resize: vertical;
}

.vo-interaction-dialog-foot {
    display: flex;
    flex: none;
    justify-content: flex-end;
    gap: 8px;
    padding: 11px 16px;
    border-top: 1px solid #e8eef5;
    background: #f8fafc;
}

.vo-interaction-open {
    background: #1d3c6a !important;
}

@media (max-width: 900px) {
    .vo-interaction-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vo-interaction-summary > div:nth-child(2) {
        border-right: 0;
    }

    .vo-interaction-summary > div:nth-child(-n+2) {
        border-bottom: 1px solid #e8eef5;
    }
}

@media (max-width: 767px) {
    .vo-interaction-section-head {
        flex-direction: column;
        padding: 16px;
    }

    .vo-interaction-head-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .vo-interaction-summary {
        grid-template-columns: 1fr;
    }

    .vo-interaction-summary > div,
    .vo-interaction-summary > div:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid #e8eef5;
    }

    .vo-interaction-summary > div:last-child {
        border-bottom: 0;
    }

    .vo-interaction-list {
        padding-right: 14px;
        padding-left: 32px;
    }

    .vo-interaction-list::before {
        left: 21px;
    }

    .vo-interaction-entry {
        padding-left: 15px;
    }

    .vo-interaction-dot {
        left: -16px;
    }

    .vo-interaction-entry-head {
        flex-direction: column;
    }

    .vo-interaction-value-stack {
        align-items: flex-start;
        text-align: left;
    }

    .vo-interaction-grid,
    .vo-interaction-dialog-snapshot {
        grid-template-columns: 1fr;
    }
}
