.structured-viewer {
    border: 1px solid var(--bs-gray-400);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    height: 100%;
}

.viewer-toolbar {
    align-items: center;
    background: #f4f4f4;
    border-bottom: 1px solid var(--bs-gray-400);
    color: #00152a;
    display: flex;
    font-size: 0.9rem;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
}

.viewer-filter-toolbar {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--workbench-border);
    color: #00152a;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
}


.viewer-download-button {
    margin-left: auto;
}

.viewer-type {
    background: var(--ebs-bluecolor);
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
}

.viewer-indent-combo {
    width: 12rem;
}

.viewer-search-box {
    width: 10rem;
}

.viewer-search-mode-combo {
    width: 8rem;
}

.viewer-operator-combo {
    width: 7rem;
}

.viewer-list {
    border: none;
    box-sizing: border-box;
    height: 65vh;
    min-height: 24rem;
    max-width: 100%;
    overflow: auto;
    scrollbar-gutter: stable;
    width: 100%;
}

.viewer-row {
    align-items: center;
    border-bottom: 1px solid #eeeeee;
    box-sizing: border-box;
    display: flex;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.8rem;
    gap: 0.5rem;
    height: 22px;
    min-width: max-content;
    overflow: hidden;
    white-space: nowrap;
}

.viewer-row-match {
    background-color: rgba(161, 161, 0, 0.18);
}

.viewer-row-compare-changed {
    background-color: orange;
}

.viewer-row-compare-added {
    background-color: #b7f4c2;
}

.viewer-row-compare-missing {
    background-color: pink;
}

.viewer-indent {
    flex: 0 0 auto;
    white-space: pre;
}

.structured-viewer .viewer-toggle {
    align-items: center;
    background: transparent;
    border: 1px solid var(--bs-primary);
    border-radius: 4px;
    color: var(--ebs-bluecolor) !important;
    display: inline-flex;
    font-size: 0.75rem;
    height: 1.25rem;
    flex: 0 0 1.25rem;
    justify-content: center;
    line-height: 1;
    min-height: 1.25rem;
    min-width: 1.25rem;
    padding: 0;
    width: 1.25rem;
}

.structured-viewer .viewer-toggle.dxbl-btn .dxbl-btn-caption {
    line-height: 1;
}

.viewer-toggle-spacer {
    display: inline-block;
    flex: 0 0 1.25rem;
    height: 1.25rem;
    width: 1.25rem;
}

.viewer-selection-checkbox,
.viewer-selection-spacer {
    flex: 0 0 1.25rem;
    height: 1.25rem;
    width: 1.25rem;
}

.viewer-selection-checkbox {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    margin: 0 !important;
    min-height: 1.25rem;
    min-width: 1.25rem;
    padding: 0 !important;
}

.structured-viewer .viewer-selection-checkbox.dxbl-checkbox,
.structured-viewer .viewer-selection-checkbox .dxbl-checkbox,
.structured-viewer .viewer-selection-checkbox .dxbl-checkbox-container {
    margin: 0 !important;
    padding: 0 !important;
}

.structured-viewer .viewer-selection-checkbox .dxbl-checkbox-check-element {
    margin: 0 !important;
}

.viewer-selection-spacer {
    display: inline-block;
}

.viewer-node-name {
    color: var(--ebs-bluecolor);
    flex: 0 0 auto;
    font-weight: 600;
    width: 270px;
}

.viewer-node-value {
    color: #3a3f44;
    flex: 0 0 auto;
    min-width: 1rem;
    overflow: visible;
}

.viewer-inline-edit-button {
    opacity: 0;
    padding: 0;
    min-width: 1.25rem;
    width: 1.25rem;
}

.viewer-row:hover .viewer-inline-edit-button {
    opacity: 1;
}

.viewer-inline-edit-box {
    width: 14rem;
}

.viewer-inline-edit-commit-button,
.viewer-inline-edit-cancel-button {
    padding: 0;
    min-width: 1.25rem;
    width: 1.25rem;
}

.viewer-row-inline-edit-invalid .viewer-node-value {
    animation: viewer-inline-edit-invalid-flash 0.45s ease-in-out;
}

@keyframes viewer-inline-edit-invalid-flash {
    0% {
        background-color: transparent;
    }

    35% {
        background-color: #ffd6d6;
    }

    100% {
        background-color: transparent;
    }
}

.viewer-node-list-display {
    color: #3a3f44;
    flex: 0 0 auto;
    overflow: visible;
}

.viewer-message {
    margin-top: 1rem;
}

.viewer-message-error {
    color: #b32121;
}

.structured-viewer .dxbl-btn {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff;
}

.structured-compare-viewer .viewer-compare-header,
.structured-compare-viewer .viewer-compare-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.structured-compare-viewer .viewer-compare-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.structured-compare-viewer .viewer-compare-header {
    background: #f4f4f4;
    border-bottom: 1px solid var(--bs-gray-400);
    color: #00152a;
    font-weight: 600;
}

.structured-compare-viewer .viewer-compare-header > div {
    padding: 0.45rem 0.75rem;
}

.structured-compare-viewer .viewer-compare-header > div:first-child,
.structured-compare-viewer .viewer-compare-list:first-child {
    border-right: 1px solid var(--bs-gray-400);
}

.structured-compare-viewer .viewer-compare-list {
    flex: 1 1 auto;
    height: 65vh;
    min-height: 24rem;
    overflow: auto;
}
