:root {
    --workspace-pane-height: calc(100vh - 125px);
}

.workspace-host-page {
    overflow-x: hidden;
}

.workspace-tabbar {
    align-items: stretch;
    background: #eef4fa;
    border-bottom: 1px solid #b9c9d8;
    border-top: 1px solid #d8e2ec;
    display: flex;
    min-height: 39px;
    position: sticky;
    top: 0;
    z-index: 9990;
}

.workspace-tab-list {
    align-items: end;
    display: flex;
    flex: 1 1 auto;
    gap: 2px;
    min-width: 0;
    overflow-x: auto;
    padding: 4px 5px 0;
    scrollbar-width: thin;
}

.workspace-tab {
    align-items: center;
    background: #dfeaf5;
    border: 1px solid #b9c9d8;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    color: #263746;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    gap: 7px;
    height: 34px;
    max-width: 250px;
    padding: 0 10px;
    user-select: none;
}

.workspace-tab:hover {
    background: #f4f8fc;
}

.workspace-tab.active {
    background: #fff;
    color: #075985;
    position: relative;
}

.workspace-tab.active::after {
    background: #0d6efd;
    bottom: -1px;
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
}

.workspace-tab-icon {
    color: #0d6efd;
    font-size: 14px;
}

.workspace-tab-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-tab-close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #687783;
    display: inline-flex;
    font-size: 16px;
    height: 20px;
    justify-content: center;
    line-height: 1;
    margin-right: -5px;
    padding: 0;
    width: 20px;
}

.workspace-tab-close:hover {
    background: #dc3545;
    color: #fff;
}

.workspace-tab-actions {
    align-items: center;
    border-left: 1px solid #c6d3df;
    display: flex;
    flex: 0 0 auto;
    gap: 3px;
    padding: 4px 6px;
}

.workspace-action {
    align-items: center;
    background: #fff;
    border: 1px solid #b9c9d8;
    border-radius: 5px;
    color: #3e5262;
    cursor: pointer;
    display: inline-flex;
    height: 29px;
    justify-content: center;
    width: 31px;
}

.workspace-action:hover {
    background: #e8f2fc;
    color: #0d6efd;
}

.workspace-panes {
    background: #fff;
    min-height: var(--workspace-pane-height);
    position: relative;
}

.workspace-pane {
    display: none;
    min-height: var(--workspace-pane-height);
    position: relative;
}

.workspace-pane.active {
    display: block;
}

.workspace-pane-frame {
    height: var(--workspace-pane-height);
    overflow: hidden;
}

.workspace-iframe {
    background: #fff;
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.workspace-loading {
    align-items: center;
    background: rgba(255, 255, 255, .92);
    color: #526575;
    display: flex;
    inset: 0;
    justify-content: center;
    position: absolute;
    z-index: 5;
}

.workspace-loading.hidden {
    display: none;
}

.workspace-embedded {
    min-height: 100vh;
    padding-top: 12px;
}

.workspace-iframe-page .share-buttons,
.workspace-iframe-page footer,
.workspace-iframe-page #backToTop {
    display: none !important;
}

@media (max-width: 767.98px) {
    .workspace-tab {
        max-width: 185px;
    }

    .workspace-tab-actions .workspace-action-close-all {
        display: none;
    }
}
