html,
body {
    height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
}

.shell-app {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.shell-app__header {
    flex: 0 0 auto;
}

.header_class {
    min-height: 45px;
    margin-bottom: 0;
    padding: 0;
    background-color: var(--bs-secondary-bg);
}

.shell-app__header-row {
    min-height: 45px;
    padding: 0 0.5rem;
}

.shell-app__brand {
    min-height: 45px;
}

.shell-app__logo {
    display: block;
    flex: 0 0 auto;
}

.shell-app__version {
    color: var(--bs-secondary-color);
    font-size: 0.78rem;
    line-height: 1.1;
}

.mainmenu_class {
    flex: 0 0 auto;
    margin: 0;
}

.shell-main-nav__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.shell-main-nav {
    padding: 0.1rem 0.2rem 0;
    background: var(--bs-body-bg);
    border-radius: 0;
}

.shell-main-nav .nav-link {
    color: var(--bs-link-color);
    border-bottom-color: transparent;
}

.shell-main-nav .nav-link.active,
.shell-main-nav .nav-link[aria-current="page"] {
    color: inherit;
    background: var(--bs-nav-tabs-link-active-bg);
    border-color: var(--bs-border-color) var(--bs-border-color) var(--bs-nav-tabs-link-active-bg);
}

.shell-app__main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 0;
}

.workspace_class {
    margin-top: 0.2rem;
}

.agentmediator-page {
    min-height: 100%;
    padding: 1rem;
}

.shell-app__main--viewport-host {
    overflow: hidden;
}

.agentmediator-page--viewport-host {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-page-viewport {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-sticky-top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bs-body-bg);
}

.agentmediator-page-tabs {
    flex: 0 0 auto;
}

.agentmediator-runs-card {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-runs-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-runs-provider-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-runs-step-tabs {
    flex: 0 0 auto;
}

.agentmediator-runs-step-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.agentmediator-runs-step-option {
    min-width: min(22rem, 100%);
}

.agentmediator-runs-step-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-runs-step-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: auto;
}

.agentmediator-runs-step-body > div,
.agentmediator-runs-field-stack {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.agentmediator-runs-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.agentmediator-runs-text__textarea {
    flex: 1 1 auto;
    min-height: 0;
    resize: none;
}

.agentmediator-runs-status {
    flex: 0 0 auto;
}

.agentmediator-tab-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-tab-panel--split {
    gap: 1rem;
}

.agentmediator-list-toolbar {
    flex: 0 0 auto;
}

.agentmediator-catalog-toolbar {
    flex: 0 0 auto;
}

.agentmediator-catalog-scroll-region {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.agentmediator-catalog-grid {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-catalog-grid .agentmediator-sticky-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bs-body-bg);
}

.agentmediator-catalog-grid .agentmediator-grid-command-bar {
    flex: 0 0 auto;
}

.agentmediator-scroll-region {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.agentmediator-tab-panel--split .agentmediator-scroll-region {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.agentmediator-tab-panel--workflow .agentmediator-scroll-region,
.agentmediator-tab-panel--result .agentmediator-scroll-region,
.agentmediator-tab-panel--comments .agentmediator-scroll-region {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.agentmediator-workflow-shell {
    display: flex;
    flex: 1 1 auto;
    gap: 1rem;
    min-height: 0;
    overflow-x: hidden;
}

.agentmediator-workflow-nav {
    flex: 0 0 24rem;
    min-height: 0;
    overflow: auto;
}

.agentmediator-workflow-detail {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-workflow-step-detail,
.agentmediator-result-shell,
.agentmediator-comments-shell,
.agentmediator-review-composition {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.agentmediator-workflow-step-detail > .form-label {
    flex: 0 0 auto;
}

.agentmediator-workflow-text {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.agentmediator-workflow-text__textarea {
    flex: 1 1 auto;
    min-height: 0;
    resize: none;
}

.agentmediator-review-composition fieldset {
    flex: 0 0 auto;
}

.agentmediator-review-composition__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-review-composition__table {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.agentmediator-review-composition__table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--bs-body-bg);
}

.agentmediator-result-shell {
    overflow: hidden;
}

.agentmediator-comments-shell {
    overflow: auto;
}

.agentmediator-comments-layout {
    display: flex;
    flex: 1 1 auto;
    gap: 1rem;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-comments-grid {
    display: flex;
    flex: 0 0 32rem;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-comments-detail {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-comments-detail__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-comments-editor {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-comments-editor .html-editor-host__summernote[data-editor-adapter="summernote"] + .note-editor {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-comments-editor .html-editor-host__summernote[data-editor-adapter="summernote"] + .note-editor .note-editing-area {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-comments-editor .html-editor-host__summernote[data-editor-adapter="summernote"] + .note-editor .note-editable {
    flex: 1 1 auto;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: auto;
}

.agentmediator-comment-preview {
    flex: 1 1 auto;
    min-height: 0;
}

.agentmediator-comment-raw-view {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-comment-raw-view > .nav-tabs {
    flex: 0 0 auto;
}

.agentmediator-comment-raw-pane {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-comment-raw-pane > .agentmediator-comment-preview {
    height: 100%;
}

.agentmediator-comment-raw-text {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    resize: none;
}

.agentmediator-comments-actions {
    flex: 0 0 auto;
}

.agentmediator-table-scroll {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-table-scroll > form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.agentmediator-table-scroll > form > .table-fixed-header,
.agentmediator-table-scroll > form > .datagrid-fixed-header,
.agentmediator-table-scroll > form > .b-datagrid-fixed-header {
    flex: 1 1 auto;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: auto !important;
    scrollbar-gutter: stable;
    width: 100%;
}

.agentmediator-sticky-table {
    margin-bottom: 0;
    width: 100% !important;
}

.agentmediator-sticky-table thead th {
    background: var(--bs-body-bg);
}

.agentmediator-grid-command-bar {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.625rem;
}

.agentmediator-grid-command-bar__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.agentmediator-grid-command-bar__page {
    min-width: 3.75rem;
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    white-space: nowrap;
}

.agentmediator-grid-command-bar__select {
    width: auto;
    min-width: 4.5rem;
}

.agentmediator-result-frame {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
}

@media (max-width: 991.98px) {
    .agentmediator-workflow-shell {
        flex-direction: column;
    }

    .agentmediator-workflow-nav {
        flex: 0 0 auto;
        max-height: 16rem;
    }

    .agentmediator-comments-layout {
        flex-direction: column;
    }

    .agentmediator-comments-grid {
        flex: 0 0 auto;
        max-height: 24rem;
    }
}

.agentmediator-comments-editor {
    flex: 1 1 auto;
    min-height: 0;
}

@media (max-width: 991.98px) {
    .mainmenu_class {
        display: block !important;
    }

    .shell-main-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
    }
}
