.default-history-dialog {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 2rem);
    padding: 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 65%);
    border: 1px solid #e5e7eb;
    overflow: auto;
}

.default-history-dialog .dialog-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.default-history-dialog .dialog-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.default-history-dialog .dialog-copy {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

.default-history-dialog__table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.9rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    overflow: auto;
}

.default-history-dialog .dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.default-history-dialog .jans-table-empty {
    padding: 1rem;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.history-entry-detail-dialog {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 2rem);
    padding: 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 65%);
    border: 1px solid #e5e7eb;
    overflow: auto;
}

.history-entry-detail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.history-entry-detail-card {
    display: flex;
    flex: 1 1 100%;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.95rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.history-entry-detail-card-wide {
    flex-basis: 100%;
}

.history-entry-detail-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.history-entry-detail-value {
    color: #0f172a;
    line-height: 1.55;
}

.history-entry-detail-value-multiline {
    white-space: pre-wrap;
    word-break: break-word;
}

.history-entry-detail-changes {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.history-entry-detail-change {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.85rem;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

.history-entry-detail-change-field {
    font-weight: 800;
    color: #0f172a;
}

.history-entry-detail-change-values {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.history-entry-detail-change-value {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.history-entry-detail-change-caption {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

@media (min-width: 768px) {
    .default-history-dialog {
        padding: 1.25rem;
    }

    .default-history-dialog__table {
        padding: 1rem;
    }

    .history-entry-detail-dialog {
        padding: 1.25rem;
    }

    .history-entry-detail-card {
        flex-basis: calc(50% - 0.425rem);
    }

    .history-entry-detail-change-values {
        flex-direction: row;
        gap: 1rem;
    }

    .history-entry-detail-change-value {
        flex: 1 1 0;
        min-width: 0;
    }
}
