/********************************************************************************
 * Copyright (C) 2024-2025 EclipseSource, Arm Limited and others.
 *
 * This program and the accompanying materials are made available under the
 * terms of the MIT License as outlined in the LICENSE File
 ********************************************************************************/

.markdown {
    word-wrap: break-word;
    word-break: break-word;
}

.markdown hr {
    border: 0;
    box-sizing: border-box;
    height: 1px;
    margin: 4px -8px 0;
    border-top: 1px solid rgba(69, 69, 69, 0.5);
}

.markdown .code,
.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6,
.markdown p,
.markdown ul {
    margin: 8px 0;
}

/* AntD Table Variables */
.css-var-r0 {
    --ant-font-family: var(--vscode-font-family);
    --ant-color-text: var(--vscode-sideBar-foreground);
    --ant-color-bg-container: var(--vscode-sideBar-background);
}

.ant-table-tbody-virtual-scrollbar-thumb {
    background: var(--vscode-scrollbarSlider-background) !important;
}

.ant-table.ant-table-css-var {
    --ant-table-row-selected-bg: var(--vscode-list-inactiveSelectionBackground);
    --ant-table-row-selected-hover-bg: var(--vscode-list-inactiveSelectionBackground);
    --ant-table-row-hover-bg: var(--vscode-list-hoverBackground);
    --ant-table-border-color: var(--vscode-sideBar-background);
    --ant-table-cell-font-size: var(--vscode-font-size);
    --ant-table-cell-padding-block: 0;
    --ant-table-cell-padding-inline: 4px;
}

.ant-table:focus-within {
    --ant-table-row-selected-bg: var(--vscode-list-activeSelectionBackground);
    --ant-table-row-selected-hover-bg: var(--vscode-list-activeSelectionBackground);
}

.ant-table .ant-table-row {
    border: 1px solid transparent;
    outline: none;
    height: 22px;
    cursor: pointer;
}

.ant-table:focus-within .ant-table-row.ant-table-row-selected {
    border-color: var(--vscode-list-focusAndSelectionOutline, var(--vscode-contrastActiveBorder, var(--vscode-list-focusOutline)));
}

.ant-table .ant-table-row .ant-table-cell {
    display: flex;
    transition: none;
    border-bottom: none;
}

.ant-table .ant-table-row .ant-table-cell .cell-icon {
    margin-right: 4px;
    padding-top: 4px;
    font-size: var(--vscode-font-size);
}

.ant-table .ant-table-row .ant-table-cell .tree-cell {
    display: flex;
}

.ant-table .ant-table-row:hover .tree-actions,
.ant-table .ant-table-row:focus .tree-actions {
    display: flex;
    align-items: center;
}

.ant-table .tree-actions {
    padding-right: 8px;
}

.ant-table .tree-actions>i {
    cursor: pointer;
}

.ant-table .leaf-item-spacer {
    display: inline-block;
    width: 16px;
}

.ant-table-empty .empty-message {
    display: inline-block;
    padding-top: 4em;
    color: var(--vscode-editor-foreground);
}

.ant-table-empty .loading-message .ant-spin-dot-item {
    background-color: var(--vscode-progressBar-background, var(--vscode-editor-foreground));
}

.ant-table-empty .loading-message .loading-message-text {
    margin-left: 0.5em;
}

.ant-table-empty .ant-table-body {
    overflow: hidden !important;
}

/* The horizontal scrollbar is not necessary */
.ant-table .ant-table-tbody-virtual-scrollbar-horizontal {
    display: none;
}

.ant-table .resizable-handle {
    border-left: var(--vscode-sideBarSectionHeader-border) 2px solid;
}

.ant-table .resizable-handle:hover,
.ant-table .resizable-handle:active {
    border-color: var(--vscode-sash-hoverBorder);
}

.ant-table .ant-table-row.ant-table-row-resizing .tree-actions {
    display: none;
}