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

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

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

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

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

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

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

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

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

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

.shell-main-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding-right: 0.25rem;
}

.shell-main-nav__help,
.shell-main-nav__drawer {
    flex: 0 0 auto;
}

.mainmenu_class .shell-main-nav__drawer.shell-drawer-toggle {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    z-index: auto;
    margin-top: 0;
}

.shell-main-nav .nav-link {
    color: inherit;
    border-bottom-color: transparent;
}

.shell-main-nav .nav-link.active,
.shell-main-nav .nav-link[aria-current="page"] {
    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);
    color: inherit;
}

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

.workspace_class {
    margin-top: 0.2rem;
}

.shell-app__main.workspace_class:has(> .main-tabs-shell) {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.main-tabs-shell {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    position: relative;
}

.main-tabs-lazyload-host {
    flex: 0 0 auto;
}

.main-tabs-shell > .shell-main-nav__actions {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.main-tabs-shell > .shell-main-nav__actions .shell-main-nav__drawer,
.main-tabs-shell > .shell-main-nav__actions .shell-drawer-toggle {
    position: static;
    margin: 0;
    transform: none;
}

.main-tabs-lazyload-host > .nav-tabs {
    padding-right: 5.5rem;
}

.main-tabs-shell > .tab-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.main-tabs-shell > .tab-content > .tab-pane {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}

.main-tabs-shell > .tab-content > .tab-pane.active {
    display: flex;
    flex-direction: column;
}

.main-tabs-shell > .tab-content > .tab-pane > * {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}

.workspace-tabs-shell {
    height: 100%;
    min-height: 0;
}

.workspace-tabs-shell__panel {
    height: 100%;
    min-height: 0;
}

.workspace-tabs-shell__panel--hidden {
    display: none;
}

.workspace-tabs-shell__panel--active {
    display: block;
}

.workspace-tabs {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.workspace-tabs__tab-host {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.shell-tabs__host > .nav,
.shell-tabs__host .nav-tabs,
.shell-tabs__host.nav,
.shell-tabs__host.nav-tabs,
.admin-lazy-tabs__host > .nav,
.admin-lazy-tabs__host .nav-tabs {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-left: 0;
    margin-bottom: 0;
    border-bottom: var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color);
    white-space: nowrap;
    scrollbar-gutter: stable;
}

.shell-tabs__host > .nav .nav-link,
.shell-tabs__host .nav-tabs .nav-link,
.shell-tabs__host.nav .nav-link,
.shell-tabs__host.nav-tabs .nav-link,
.admin-lazy-tabs__host > .nav .nav-link,
.admin-lazy-tabs__host .nav-tabs .nav-link {
    flex: 0 0 auto;
    margin-bottom: calc(-1 * var(--bs-nav-tabs-border-width));
    border: var(--bs-nav-tabs-border-width) solid transparent;
    border-top-left-radius: var(--bs-nav-tabs-border-radius);
    border-top-right-radius: var(--bs-nav-tabs-border-radius);
    color: var(--bs-nav-link-color);
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    font-size: var(--bs-nav-link-font-size);
    background: none;
}

.shell-page-tabs__host--compact > .nav .nav-link,
.shell-page-tabs__host--compact .nav-tabs .nav-link,
.shell-page-tabs__host--compact.nav .nav-link,
.shell-page-tabs__host--compact.nav-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.2;
}

.shell-tabs__host > .nav .nav-link.active,
.shell-tabs__host .nav-tabs .nav-link.active,
.shell-tabs__host > .nav .nav-link.show,
.shell-tabs__host .nav-tabs .nav-link.show,
.shell-tabs__host > .nav .nav-link.active.show,
.shell-tabs__host .nav-tabs .nav-link.active.show,
.shell-tabs__host.nav .nav-link.active,
.shell-tabs__host.nav .nav-link.show,
.shell-tabs__host.nav .nav-link.active.show,
.shell-tabs__host.nav-tabs .nav-link.active,
.shell-tabs__host.nav-tabs .nav-link.show,
.shell-tabs__host.nav-tabs .nav-link.active.show,
.admin-lazy-tabs__host > .nav .nav-link.active,
.admin-lazy-tabs__host .nav-tabs .nav-link.active {
    color: var(--bs-nav-tabs-link-active-color);
    background-color: var(--bs-nav-tabs-link-active-bg);
    border-color: var(--bs-nav-tabs-link-active-border-color);
}

.shell-tabs--rounded.nav-tabs .nav-link,
.shell-tabs--rounded.nav .nav-link {
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    background: transparent;
}

.shell-tabs--rounded.nav-tabs .nav-link.active,
.shell-tabs--rounded.nav-tabs .nav-link.show,
.shell-tabs--rounded.nav-tabs .nav-link.active.show,
.shell-tabs--rounded.nav .nav-link.active,
.shell-tabs--rounded.nav .nav-link.show,
.shell-tabs--rounded.nav .nav-link.active.show {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.shell-tabs--primary-active.nav-tabs .nav-link.active,
.shell-tabs--primary-active.nav-tabs .nav-link.show,
.shell-tabs--primary-active.nav-tabs .nav-link.active.show,
.shell-tabs--primary-active.nav .nav-link.active,
.shell-tabs--primary-active.nav .nav-link.show,
.shell-tabs--primary-active.nav .nav-link.active.show {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.shell-tabs--accent.nav-tabs .nav-link,
.shell-tabs--accent.nav .nav-link {
    color: var(--bs-primary);
}

.shell-tabs--accent.nav-tabs .nav-link.active,
.shell-tabs--accent.nav-tabs .nav-link.show,
.shell-tabs--accent.nav-tabs .nav-link.active.show,
.shell-tabs--accent.nav .nav-link.active,
.shell-tabs--accent.nav .nav-link.show,
.shell-tabs--accent.nav .nav-link.active.show {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.shell-page-tabs {
    min-width: 0;
}

.shell-page-tabs .tab-content {
    display: none;
}

.admin-panel__grid.admin-panel__grid--detail.admin-panel__grid--localized-detail,
.admin-panel__grid.admin-panel__grid--detail.admin-panel__grid--help-detail {
    overflow: hidden;
}

.admin-localized-detail-shell,
.admin-help-detail-shell {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.admin-localized-detail-shell > .shell-tabs__host,
.admin-help-detail-shell > .shell-tabs__host {
    flex: 0 0 auto;
    min-height: 0;
}

.admin-localized-detail-shell > .tab-content,
.admin-help-detail-shell > .tab-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.admin-localized-detail-shell > .tab-content > .tab-pane,
.admin-help-detail-shell > .tab-content > .tab-pane {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}

.admin-localized-detail-shell > .tab-content > .tab-pane.active,
.admin-help-detail-shell > .tab-content > .tab-pane.active {
    display: flex;
    flex-direction: column;
}

.admin-localized-detail-shell .localized-description-editor-shell,
.admin-help-detail-shell .localized-description-editor-shell {
    flex: 1 1 auto;
    min-height: 0;
}

.admin-panel__grid--localized-detail > .tab-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.admin-panel__grid--localized-detail > .tab-content > .tab-pane {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}

.admin-panel__grid--localized-detail > .tab-content > .tab-pane.active {
    display: flex;
    flex-direction: column;
}

.admin-panel__grid--localized-detail > .tab-content > .tab-pane.active > .admin-localized-detail-shell {
    flex: 1 1 auto;
    min-height: 0;
}

.admin-panel__grid--localized-detail > .shell-tabs__host,
.admin-panel__grid--localized-detail > .admin-lazy-tabs__host {
    flex: 0 0 auto;
    min-height: 0;
}

.workspace-tabs > .workspace-tabs__tab-host > .tab-content > .tab-pane,
.workspace-tabs > .workspace-tabs__tab-host .tab-content > .tab-pane {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}

.workspace-tabs > .workspace-tabs__tab-host > .tab-content,
.workspace-tabs > .workspace-tabs__tab-host .tab-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.workspace-tabs > .workspace-tabs__tab-host > .tab-content > .tab-pane.active,
.workspace-tabs > .workspace-tabs__tab-host .tab-content > .tab-pane.active {
    display: flex;
    flex-direction: column;
}

.workspace-tabs > .workspace-tabs__tab-host > .tab-content > .tab-pane > *,
.workspace-tabs > .workspace-tabs__tab-host .tab-content > .tab-pane > * {
    flex: 1 1 auto;
    min-height: 0;
}

.workspace-tabs--with-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: start;
}

.workspace-tabs--with-actions .workspace-tabs__tab-host {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    min-width: 0;
}

.workspace-tabs--with-actions .workspace-tabs__actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    z-index: 1;
    margin: 0.35rem 0.5rem 0 0;
}

.app-snackbar {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: min(32rem, calc(100vw - 2rem));
    max-width: min(40rem, calc(100vw - 2rem));
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: #fff;
    box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.2);
}

.app-snackbar--info {
    background: #0d6efd;
}

.app-snackbar--success {
    background: #198754;
}

.app-snackbar--warning {
    background: #b77900;
}

.app-snackbar--error {
    background: #b42318;
}

.grid-command-bar__confirmation {
    margin-bottom: 0.35rem;
    color: #b42318;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Oddělené panely A/B/C na velké obrazovce; na mobilu jeden aktivní sloupec (řízeno třídami). */

.shell-desktop-panels {
    display: none;
}

@media (min-width: 992px) {
    .shell-desktop-panels {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        height: 100%;
        min-height: 0;
    }

    .shell-panel {
        min-width: 12rem;
        overflow: auto;
        border-right: 1px solid var(--bs-border-color);
        transition: flex-grow 0.15s ease, opacity 0.15s ease;
    }

    .shell-panel:last-child {
        border-right: none;
    }

    .shell-panel--dimmed {
        opacity: 0.55;
    }

    .shell-panel--fullscreen {
        position: fixed;
        inset: 0;
        z-index: 1040;
        background: var(--bs-body-bg);
        flex: none !important;
        width: 100% !important;
    }
}

.shell-mobile-panels {
    display: block;
    height: 100%;
    overflow: auto;
}

.shell-mobile-header {
    display: none;
}

.workspace-with-mobile-header {
    height: 100%;
    min-height: 0;
}

@media (min-width: 992px) {
    .shell-mobile-panels {
        display: none;
    }

    .workspace-with-mobile-header .shell-drawer-toggle,
    .workspace-with-mobile-header .shell-workspace-help {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .chat-workspace__mobile-tabs {
        padding: 0 0.5rem 0.5rem;
    }

    .chat-workspace__mobile-tabs .tab-content {
        display: none;
    }

    .chat-workspace__tabs .shell-tabs__host.nav,
    .chat-workspace__tabs .shell-tabs__host.nav-tabs {
        display: none;
    }

    .main-tabs-lazyload-host {
        display: none;
    }

    .main-tabs-lazyload-host > .nav-tabs {
        padding-right: 0;
    }

    .workspace-with-mobile-header {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .workspace-with-mobile-header .shell-mobile-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.35rem 0.5rem 0.5rem;
    }

    .shell-mobile-header__drawer {
        flex: 0 0 auto;
    }

    .shell-mobile-header__back {
        flex: 0 0 auto;
        min-width: 0;
        max-width: 11rem;
        display: inline-flex;
        align-items: center;
    }

    .shell-mobile-header__back-prefix {
        flex: 0 0 auto;
        margin-right: 0.3rem;
    }

    .shell-mobile-header__back-label {
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .shell-mobile-header__help {
        flex: 0 0 auto;
    }

    .shell-mobile-header__actions {
        display: flex;
        flex: 0 0 auto;
        flex-direction: row;
        align-items: flex-end;
        gap: 0.35rem;
        margin-left: auto;
    }

    .shell-mobile-header__body {
        min-width: 0;
        flex: 1 1 auto;
    }

    .shell-mobile-header__title {
        flex: 0 0 auto;
        max-width: 45%;
        font-size: 0.95rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .shell-mobile-header__switcher {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        width: 100%;
        min-width: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .shell-mobile-header__switcher .btn {
        white-space: nowrap;
    }

    .workspace-with-mobile-header .admin-panel__title {
        display: none;
    }

    .workspace-with-mobile-header .shell-desktop-panels.shell-desktop-panels--mobile-switchable {
        display: block;
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
        overflow: auto;
    }

    .workspace-with-mobile-header .shell-desktop-panels.shell-desktop-panels--mobile-switchable > .shell-panel {
        display: none;
        min-width: 0;
        height: 100%;
        min-height: 0;
        border-right: none;
        overflow: auto;
    }

    .workspace-with-mobile-header .shell-desktop-panels.shell-desktop-panels--mobile-switchable > .shell-panel.shell-mobile-panel--active {
        display: block;
        width: 100%;
        max-width: none !important;
        flex: 1 1 auto !important;
    }

    .workspace-with-mobile-header > .shell-drawer-toggle,
    .workspace-with-mobile-header > .shell-workspace-help {
        display: none;
    }

    .workspace-with-mobile-header .shell-mobile-panels {
        display: none;
    }

    .chat-toolbar__thread {
        min-width: 0;
        max-width: none;
        flex: 1 1 auto;
    }
}

.shell-drawer-toggle {
    position: fixed;
    right: 0.5rem;
    top: calc(38% - 1.5rem);
    transform: translateY(-50%);
    z-index: 1030;
}

.shell-workspace-help {
    position: fixed;
    right: 3.25rem;
    right: 0.5rem;
    top: calc(38% + 1.5rem);
    transform: translateY(-50%);
    z-index: 1030;
    display: inline-flex;
}

.shell-settings-flyout {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(28rem, 100vw);
    background: var(--bs-body-bg);
    z-index: 1055;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
    padding: 1rem 1.25rem 2rem;
}

.shell-settings-mobile-nav {
    display: none;
}

.shell-settings-flyout.open {
    transform: translateX(0);
}

.shell-settings-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: 0.75rem;
    overflow-x: auto;
}

.shell-settings-tab {
    border: 1px solid var(--bs-border-color);
    background: transparent;
    color: inherit;
    border-radius: 999px;
    padding: 0.375rem 0.875rem;
    font-size: 0.95rem;
}

.shell-settings-tab--active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.shell-settings-backdrop.modal-backdrop {
    z-index: 1050;
}

.shell-settings-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.shell-settings-inline-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.shell-settings-inline-field--single-line {
    flex-wrap: nowrap;
}

.shell-settings-inline-field__label--compact {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.85rem;
}

.shell-settings-inline-field__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.shell-settings-inline-field__controls .form-control,
.shell-settings-inline-field__controls .form-select {
    width: auto;
    min-width: 4.25rem;
}

.shell-settings-inline-field__controls--single .form-select {
    min-width: 6rem;
}

.acting-context-card__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
}

@media (max-width: 991.98px) {
    .shell-settings-flyout {
        width: min(24rem, 100vw);
        padding: 0.9rem 1rem 1.5rem;
    }

    .shell-settings-mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--bs-border-color);
    }

    .shell-settings-mobile-nav__menu,
    .shell-settings-mobile-nav__account {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .shell-settings-tab {
        white-space: nowrap;
        padding: 0.35rem 0.75rem;
        font-size: 0.9rem;
    }

    .shell-settings-inline-field {
        align-items: flex-start;
    }

    .shell-settings-inline-field--single-line {
        flex-wrap: wrap;
    }

    .shell-settings-inline-field__label--compact {
        white-space: normal;
    }

    .shell-settings-inline-field__controls {
        width: 100%;
        justify-content: flex-start;
    }
}

.admin-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 0.75rem 0.875rem 0.875rem;
    gap: 0.75rem;
}

.admin-panel__grid {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    background: var(--bs-body-bg);
}

.admin-panel__grid--detail {
    overflow: auto;
}

.admin-panel__title {
    margin-bottom: 0;
}

.admin-panel__grid > .table-fixed-header,
.admin-panel__grid > .datagrid-fixed-header,
.admin-panel__grid > .b-datagrid-fixed-header {
    flex: 1 1 auto;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    width: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable;
}

.table-fixed-header:focus,
.datagrid-fixed-header:focus,
.b-datagrid-fixed-header:focus {
    outline: 2px solid color-mix(in srgb, var(--bs-primary) 55%, transparent);
    outline-offset: -2px;
}

.admin-grid-table {
    margin-bottom: 0;
    width: 100% !important;
    table-layout: auto;
}

.admin-grid-table--citations {
    table-layout: fixed;
}

.admin-grid-table--citations td:nth-child(2),
.admin-grid-table--citations th:nth-child(2) {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-grid-table th {
    white-space: nowrap;
}

.admin-grid-table input,
.admin-grid-table .form-control,
.admin-grid-table .form-select {
    width: 100%;
    min-height: 2rem;
    font-size: 0.92rem;
}

.admin-grid-table td,
.admin-grid-table th {
    box-sizing: border-box;
}

.admin-grid__empty {
    padding: 1rem;
    color: var(--bs-secondary-color);
}

.admin-grid__detail-toggle {
    padding: 0.05rem 0.25rem;
    line-height: 1;
    text-decoration: none;
}

.gt-i-blue {
    color: var(--bs-primary);
}

.admin-panel__grid .validations,
.admin-panel__grid .validation-summary {
    margin: 0;
}

.admin-panel__grid .validation-summary {
    margin: 0.5rem 0.75rem 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid color-mix(in srgb, var(--bs-danger) 30%, var(--bs-border-color));
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--bs-danger-bg-subtle, #f8d7da) 55%, #fff);
}

.admin-panel__grid .table > tbody > tr > td[colspan] {
    padding: 0.15rem 0.5rem 0.35rem;
}

.formedit_class {
    --formedit-gap: 0.2rem;
}

.admin-panel__grid .table > tbody > tr > td[colspan] > .row {
    margin: 0;
    padding: 0.35rem 0.4rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.9rem;
    background: color-mix(in srgb, var(--bs-body-bg) 97%, var(--bs-primary) 3%);
}

.admin-panel__grid .table > tbody > tr > td[colspan] .form-group {
    margin-bottom: 0;
    padding: var(--formedit-gap) 0.28rem !important;
}

.admin-state-form__field {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.admin-state-form__field .form-control,
.admin-state-form__field .form-check-input {
    margin: 0;
}

.admin-panel__grid .form-check-input {
    width: 1rem !important;
    min-width: 1rem;
    max-width: 1rem;
    height: 1rem !important;
    min-height: 1rem;
}

.admin-state-form__field--checkbox .form-check {
    min-height: auto;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    padding-top: 0.35rem;
}

.admin-state-form__field--checkbox .form-check-input {
    width: 1rem !important;
    min-width: 1rem;
    max-width: 1rem;
    height: 1rem !important;
    min-height: 1rem;
}

.admin-state-form__field--wide .form-control {
    min-height: 7.5rem;
}

.admin-grid-table--states .form-group {
    --states-inline-label-width: 4.75rem;
    --states-inline-gap: 0.5rem;
    --states-column-gap: 0.75rem;
    flex: 0 0 calc(50% - (var(--states-column-gap) / 2));
    max-width: calc(50% - (var(--states-column-gap) / 2));
}

.admin-grid-table--states .form-group > .form-label {
    margin-bottom: 0.2rem;
    font-size: 0.84rem;
    font-weight: 500;
}

.admin-grid-table--states .form-group:nth-child(2),
.admin-grid-table--states .form-group:nth-child(3),
.admin-grid-table--states .form-group:nth-child(4),
.admin-grid-table--states .form-group:nth-child(5),
.admin-grid-table--states .form-group:nth-child(6) {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.admin-grid-table--states .form-group:nth-child(2) > .form-label,
.admin-grid-table--states .form-group:nth-child(3) > .form-label,
.admin-grid-table--states .form-group:nth-child(4) > .form-label,
.admin-grid-table--states .form-group:nth-child(5) > .form-label,
.admin-grid-table--states .form-group:nth-child(6) > .form-label {
    display: flex;
    align-items: center;
    flex: 0 0 4.75rem;
    width: 4.75rem;
    min-height: 2rem;
    margin-bottom: 0;
    text-align: right;
    font-size: 0.84rem;
}

.admin-grid-table--states .form-group:nth-child(2) > .admin-state-form__field,
.admin-grid-table--states .form-group:nth-child(3) > .admin-state-form__field,
.admin-grid-table--states .form-group:nth-child(4) > .admin-state-form__field,
.admin-grid-table--states .form-group:nth-child(5) > .admin-state-form__field,
.admin-grid-table--states .form-group:nth-child(6) > .admin-state-form__field {
    flex: 1 1 auto;
}

.admin-grid-table--states .form-group:nth-child(6) {
    flex: 0 0 calc(25% - (var(--states-column-gap) / 2));
    max-width: calc(25% - (var(--states-column-gap) / 2));
    margin-left: auto;
}

.admin-grid-table--states .form-group:last-child {
    flex: 0 0 100%;
    max-width: 100%;
}

.admin-grid-table--states .admin-state-form__field--checkbox {
    display: flex;
    align-items: center;
    min-height: 2rem;
}

.admin-grid-table--states .admin-state-form__field--checkbox .form-check {
    padding-top: 0;
}

.admin-grid-table--states .form-group:nth-child(2n):not(:last-child) {
    margin-left: var(--states-column-gap);
}

.admin-grid-table--survey-items .form-group,
.admin-grid-table--stacked-form .form-group {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.1rem;
    margin-left: 0;
    min-width: 0;
}

.admin-grid-table--survey-items > tbody > tr > td.admin-grid__nested.nomarpad,
.admin-grid-table--survey-items > tbody > tr > td[colspan],
.admin-grid-table--stacked-form > tbody > tr > td.admin-grid__nested.nomarpad,
.admin-grid-table--stacked-form > tbody > tr > td[colspan] {
    padding: 0 !important;
    margin: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-radius: 0 !important;
    background: var(--bs-body-bg) !important;
}

.admin-grid-table--survey-items > tbody > tr > td.admin-grid__nested.nomarpad > .row,
.admin-grid-table--survey-items > tbody > tr > td[colspan] > .row,
.admin-grid-table--stacked-form > tbody > tr > td.admin-grid__nested.nomarpad > .row,
.admin-grid-table--stacked-form > tbody > tr > td[colspan] > .row {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--bs-body-bg) !important;
    overflow-x: hidden !important;
    box-shadow: none !important;
}

.admin-grid-table--survey-items > tbody > tr > td.admin-grid__nested.nomarpad .row.g-3,
.admin-grid-table--survey-items > tbody > tr > td[colspan] .row.g-3,
.admin-grid-table--stacked-form > tbody > tr > td.admin-grid__nested.nomarpad .row.g-3,
.admin-grid-table--stacked-form > tbody > tr > td[colspan] .row.g-3 {
    --bs-gutter-x: 0 !important;
    --bs-gutter-y: 0.02rem !important;
    margin: 0 !important;
}

.admin-grid-table--survey-items > tbody > tr > td.admin-grid__nested.nomarpad .form-group,
.admin-grid-table--survey-items > tbody > tr > td[colspan] .form-group,
.admin-grid-table--stacked-form > tbody > tr > td.admin-grid__nested.nomarpad .form-group,
.admin-grid-table--stacked-form > tbody > tr > td[colspan] .form-group {
    padding: 0 !important;
    margin: 0 !important;
}

.admin-grid-table--survey-items > tbody > tr > td[colspan] > .row > .col,
.admin-grid-table--survey-items > tbody > tr > td[colspan] > .row > [class*="col-"],
.admin-grid-table--stacked-form > tbody > tr > td[colspan] > .row > .col,
.admin-grid-table--stacked-form > tbody > tr > td[colspan] > .row > [class*="col-"] {
    padding: 0 !important;
    margin: 0 !important;
}

.admin-grid-table--survey-items > tbody > tr > td[colspan] > .row:nth-child(2),
.admin-grid-table--stacked-form > tbody > tr > td[colspan] > .row:nth-child(2) {
    border-top: 4px solid color-mix(in srgb, var(--bs-primary) 68%, white) !important;
}

.admin-grid-table--survey-items > tbody > tr > td[colspan] > .row:last-child,
.admin-grid-table--stacked-form > tbody > tr > td[colspan] > .row:last-child {
    border-bottom: 4px solid color-mix(in srgb, var(--bs-primary) 68%, white) !important;
}

.admin-grid-table--survey-items .form-group > .form-label,
.admin-grid-table--stacked-form .form-group > .form-label {
    flex: 0 0 2.7rem;
    width: 2.7rem;
    min-height: 2rem;
    margin-bottom: 0;
    padding-right: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    font-size: 0.84rem;
    font-weight: 500;
}

.users-entities-shell {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.users-entities-shell__grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.users-entities-shell__grid > .table-fixed-header,
.users-entities-shell__grid > .datagrid-fixed-header,
.users-entities-shell__grid > .b-datagrid-fixed-header {
    flex: 1 1 auto;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    width: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable;
}

.users-entities-shell__toolbar {
    flex: 0 0 auto;
    background: var(--bs-body-bg);
    border-top: 1px solid var(--bs-border-color);
    padding-top: 0.25rem;
}

.users-entities-shell .admin-grid-table--nested {
    width: 100%;
    table-layout: fixed;
}

.users-entities-shell .admin-grid-table {
    width: 100%;
    table-layout: fixed;
}

.users-entities-shell .admin-grid-table td,
.users-entities-shell .admin-grid-table th {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-grid-table--survey-items .form-group > .admin-state-form__field,
.admin-grid-table--stacked-form .form-group > .admin-state-form__field {
    flex: 1 1 calc(100% - 3.3rem);
    min-width: 0;
    max-width: none;
    padding-left: 0.1rem;
}

.admin-grid-table--survey-invites .form-group > .form-label {
    flex: 0 0 20%;
    width: 20%;
    max-width: 20%;
    min-height: 2rem;
    margin-bottom: 0;
    padding-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.admin-grid-table--survey-invites .form-group > .admin-state-form__field {
    flex: 1 1 80%;
    max-width: 80%;
    width: 80%;
    min-width: 0;
}

.admin-grid-table--survey-items .autocomplete-picker .input-group,
.admin-grid-table--stacked-form .autocomplete-picker .input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.admin-grid-table--survey-items .autocomplete-picker,
.admin-grid-table--stacked-form .autocomplete-picker {
    width: 100%;
}

.admin-grid-table--survey-items .autocomplete-picker .form-control,
.admin-grid-table--stacked-form .autocomplete-picker .form-control {
    min-width: 0;
}

.admin-grid-table--survey-items .autocomplete-picker .btn,
.admin-grid-table--stacked-form .autocomplete-picker .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.admin-grid-table--survey-items .form-control,
.admin-grid-table--survey-items .form-select,
.admin-grid-table--survey-items .autocomplete-picker,
.admin-grid-table--stacked-form .form-control,
.admin-grid-table--stacked-form .form-select,
.admin-grid-table--stacked-form .autocomplete-picker {
    max-width: 100%;
}

.admin-grid-table--survey-items .admin-state-form__field--checkbox,
.admin-grid-table--stacked-form .admin-state-form__field--checkbox {
    display: flex;
    align-items: center;
    min-height: 2rem;
}

.admin-grid-table--survey-items .admin-state-form__field--checkbox .form-check,
.admin-grid-table--stacked-form .admin-state-form__field--checkbox .form-check {
    padding-top: 0;
}

.admin-grid-table--survey-forms thead th:last-child,
.admin-grid-table--localized-codelist thead th:last-child,
.admin-grid-table--enabled-icon thead th:last-child {
    width: 3.25rem;
    min-width: 3.25rem;
    text-align: center;
}

.admin-grid-table--survey-forms thead th:last-child .d-inline-flex,
.admin-grid-table--localized-codelist thead th:last-child .d-inline-flex,
.admin-grid-table--enabled-icon thead th:last-child .d-inline-flex {
    font-size: 0;
    justify-content: center;
    width: 100%;
}

.admin-grid-table--survey-forms thead th:last-child .d-inline-flex::before,
.admin-grid-table--localized-codelist thead th:last-child .d-inline-flex::before,
.admin-grid-table--enabled-icon thead th:last-child .d-inline-flex::before {
    font: var(--fa-font-solid);
    content: "\f06e";
    font-size: 0.95rem;
    line-height: 1;
}

.admin-grid-table--survey-forms tbody td:last-child,
.admin-grid-table--localized-codelist tbody td:last-child,
.admin-grid-table--enabled-icon tbody td:last-child {
    width: 3.25rem;
    min-width: 3.25rem;
    text-align: left;
}

@media (max-width: 991.98px) {
    .admin-grid-table--states .form-group,
    .admin-grid-table--states .form-group:nth-child(6),
    .admin-grid-table--states .form-group:last-child {
        flex: 0 0 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .admin-grid-table--states .form-group:nth-child(even):not(:last-child) {
        margin-left: 0;
    }

    .admin-grid-table--survey-items .form-group,
    .admin-grid-table--stacked-form .form-group {
        display: block;
    }

    .admin-grid-table--survey-items .form-group > .form-label,
    .admin-grid-table--stacked-form .form-group > .form-label {
        width: auto;
        min-height: auto;
        justify-content: flex-start;
        text-align: left;
        margin-bottom: 0.2rem;
    }

    .admin-grid-table--survey-items .form-group > .admin-state-form__field,
    .admin-grid-table--stacked-form .form-group > .admin-state-form__field {
        max-width: 100%;
    }

    .admin-grid-table--states .form-group:nth-child(2),
    .admin-grid-table--states .form-group:nth-child(3),
    .admin-grid-table--states .form-group:nth-child(4),
    .admin-grid-table--states .form-group:nth-child(5),
    .admin-grid-table--states .form-group:nth-child(6) {
        display: block;
    }

    .admin-grid-table--states .form-group:nth-child(2) > .form-label,
    .admin-grid-table--states .form-group:nth-child(3) > .form-label,
    .admin-grid-table--states .form-group:nth-child(4) > .form-label,
    .admin-grid-table--states .form-group:nth-child(5) > .form-label,
    .admin-grid-table--states .form-group:nth-child(6) > .form-label {
        width: auto;
        margin-bottom: 0.25rem;
        text-align: left;
    }

}

.admin-detail-table {
    width: 100%;
    table-layout: fixed;
}

.admin-detail-table th,
.admin-detail-table td {
    vertical-align: top;
    word-break: break-word;
}

.admin-locale-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0.75rem 0 0.75rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.admin-locale-tab {
    border: 1px solid var(--bs-border-color);
    background: transparent;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.9rem;
}

.admin-locale-tab--active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.admin-html-preview {
    padding: 1rem;
    overflow: auto;
}

.help-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    background: var(--bs-body-bg);
}

.help-page__inner {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.help-page__desktop-toolbar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0;
}

.help-page__pages {
    flex: 1 1 auto;
    min-width: 0;
}

.help-page__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.help-topic-viewer {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.help-topic-viewer__toolbar {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-right: 0.75rem;
}

.help-page__mobile-pages {
    display: none;
}

.help-page__actions--mobile {
    margin-left: 0;
}

.help-topic-viewer__content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.help-topic-viewer__editor {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.75rem;
    overflow: hidden;
}

.help-topic-viewer__editor-host,
.html-editor-host {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 22rem;
}

.localized-description-editor-shell {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.localized-description-editor-shell__header {
    flex: 0 0 auto;
    min-height: 0;
}

.localized-description-editor-shell__editor {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.localized-description-editor-shell__editor-host {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.localized-description-editor-shell__editor-host > .html-editor-host__toolbar {
    flex: 0 0 auto;
}

.localized-description-editor-shell__editor-host > .html-editor-host,
.localized-description-editor-shell__editor-host > .html-editor-host__source {
    flex: 1 1 auto;
    min-height: 0;
}

.html-editor-host__quill,
.html-editor-host__quill .ql-container {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
}

.html-editor-host__quill .ql-editor {
    flex: 1 1 auto;
    min-height: 20rem;
    overflow: auto;
}

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

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

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

.html-editor-host__source {
    height: 100%;
    min-height: 22rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    white-space: pre-wrap;
}

.html-editor-host__view {
    flex: 1 1 auto;
    min-height: 22rem;
}

.help-actions-menu {
    position: relative;
    margin-top: 0.75rem;
}

.help-actions-menu > summary {
    list-style: none;
}

.help-actions-menu > summary::-webkit-details-marker {
    display: none;
}

.help-actions-menu[open] > summary {
    margin-bottom: 0.25rem;
}

@media (max-width: 991.98px) {
    .shell-workspace-help {
        display: none;
    }

    .help-page__desktop-toolbar {
        display: none;
    }

    .help-page__mobile-pages {
        display: inline-flex;
        flex-wrap: nowrap;
        min-width: 0;
    }

    .help-page__mobile-pages .admin-locale-tab {
        min-width: 2rem;
    }

    .help-topic-viewer__toolbar {
        display: none;
    }
}

.help-actions-menu__body {
    position: absolute;
    right: 0;
    min-width: 12rem;
    z-index: 20;
    padding: 0.375rem 0;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.help-actions-menu__body .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.375rem 0.875rem;
    text-align: left;
    border: 0;
    background: transparent;
}

.help-actions-menu__body .dropdown-item:hover {
    background: rgba(13, 110, 253, 0.08);
}

.users-profile-links__toolbar {
    align-items: flex-start;
}

.users-profile-links__icon-button {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.users-role-trust__menu-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.users-role-trust__cell {
    width: 1%;
    white-space: nowrap;
    padding-inline: 0.25rem 0.5rem;
}

.users-profile-links__actions-header,
.users-profile-links__actions-cell {
    width: 1%;
    white-space: nowrap;
}

.users-role-trust__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    min-height: 1.25rem;
}

.users-role-trust__icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.users-role-trust__placeholder {
    width: 18px;
    height: 18px;
    font-size: 0.9rem;
    line-height: 1;
}

.users-role-trust__trigger {
    min-width: 2.5rem;
    padding-inline: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.users-role-trust__menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    left: auto;
    z-index: 45;
    min-width: 10.5rem;
    padding: 0.35rem 0;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    background: var(--bs-body-bg);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.users-role-trust__menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border: 0;
    background: transparent;
    text-align: left;
}

.users-role-trust__menu-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.users-role-trust__menu-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 auto;
}

.users-role-trust__menu-icon--empty {
    display: inline-block;
}

.users-profile-links__add {
    display: block;
}

.admin-panel__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 0.625rem;
}

.admin-panel__page {
    margin-right: auto;
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    white-space: nowrap;
}

.shell-panel--admin {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .admin-panel {
        padding: 0.5rem 0 0;
    }

    .admin-panel__grid {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .admin-panel__actions {
        padding-bottom: 0.5rem;
    }
}

.users-grid {
    width: 100%;
    margin-bottom: 0;
}

.users-grid th,
.users-grid td {
    vertical-align: middle;
}

.users-grid th:first-child,
.users-grid td:first-child {
    width: 2.75rem;
    min-width: 2.75rem;
    max-width: 2.75rem;
    padding: 0px;
}

.users-grid__avatar-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    --users-grid-avatar-size: 38px;
    padding: 1px;
    box-sizing: border-box;
    overflow: hidden;
    line-height: 0;
}

.users-grid__avatar {
    width: var(--users-grid-avatar-size);
    height: var(--users-grid-avatar-size);
    display: block;
    object-fit: cover;
    border: 0;
    border-radius: 50%;
}

.users-grid__row--behalf td {
    background: #fff3cd;
}

.users-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-gutter: stable;
}

.users-workspace__tabs-row {
    position: sticky;
    background: var(--bs-body-bg);
    z-index: 4;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

.users-workspace__tabs-row--top {
    top: 0;
    z-index: 5;
}

.users-workspace__tabs-row--sub {
    top: 2.35rem;
    z-index: 4;
}

.users-tabs__tab {
    flex: 0 0 auto;
    border: 1px solid var(--bs-border-color);
    background: transparent;
    border-radius: 999px;
    color: inherit;
}

.users-tabs--compact .users-tabs__tab {
    padding: 0.15rem 0.45rem;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.2;
}

.users-tabs__tab--active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.users-lazy-tabs__host > .nav,
.users-lazy-tabs__host .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-gutter: stable;
    margin-bottom: 0;
}

.users-lazy-tabs__host > .nav .nav-link,
.users-lazy-tabs__host .nav-tabs .nav-link {
    flex: 0 0 auto;
    border: 1px solid var(--bs-border-color);
    background: transparent;
    border-radius: 999px;
    color: inherit;
    padding: 0.15rem 0.45rem;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.2;
}

.users-lazy-tabs__host > .nav .nav-link.active,
.users-lazy-tabs__host .nav-tabs .nav-link.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.users-grid__avatar-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    --users-grid-avatar-size: 38px;
    padding: 1px;
    box-sizing: border-box;
    overflow: hidden;
    line-height: 0;
}

.users-grid__avatar {
    display: block;
    width: var(--users-grid-avatar-size);
    height: var(--users-grid-avatar-size);
    object-fit: cover;
    border: 0;
    border-radius: 50%;
}

.users-grid__avatar--interactive {
    cursor: zoom-in;
}

.users-workspace__panel-a-grid {
    position: relative;
}

.users-avatar-preview {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    cursor: zoom-out;
}

.users-avatar-preview:focus {
    outline: none;
}

.users-avatar-preview__backdrop {
    position: absolute;
    inset: 0;
}

.users-avatar-preview__surface {
    position: relative;
    width: 80%;
    max-width: 80%;
    max-height: calc(100% - 1rem);
    padding: 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.9rem;
    background: var(--bs-body-bg);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.users-avatar-preview__image {
    display: block;
    width: 100%;
    max-height: min(32rem, calc(100% - 0.5rem));
    object-fit: contain;
    border-radius: 0.75rem;
}

.users-workspace__mail-shell {
    min-width: 0;
}

.users-workspace__mail-tabs {
    margin-bottom: 0.5rem;
}

.mail-workspace {
    height: 100%;
    min-height: 0;
}

.mail-workspace-host {
    height: 100%;
    min-height: 0;
}

.mail-workspace-host--sidebar-safe {
    min-width: 0;
    height: 100%;
}

.mail-workspace-host--compose-wide {
    height: 100%;
}

.mail-workspace--compose-wide {
    height: 100%;
    min-height: 0;
}

.mail-workspace__split {
    height: 100%;
    min-height: 0;
}

.mail-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mail-tabs__spacer {
    flex: 1 1 auto;
}

.mail-panel-shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.mail-panel-shell__header {
    flex: 0 0 auto;
}

.mail-panel-shell__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.mail-panel-shell__body--compose {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mail-panel-shell__body--compose > .mail-compose {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.mail-panel-shell--detail {
    overflow: hidden;
}

.mail-recipient-picker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mail-recipient-picker .autocomplete-picker,
.mail-recipient-picker .input-group {
    flex: 1 1 auto;
    min-width: 0;
}

.mail-compose {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    gap: 0.5rem;
}

.mail-compose__subject-row {
    display: flex;
    align-items: end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mail-compose__subject-field {
    flex: 1 1 20rem;
    min-width: 0;
}

.mail-compose__recipient-row {
    display: flex;
    min-width: 0;
}

.mail-compose__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.mail-grid-view,
.mail-grid-view__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
    flex: 1 1 auto;
}

.mail-read-toggle {
    color: inherit;
    text-decoration: none;
}

.mail-read-toggle:hover,
.mail-read-toggle:focus {
    color: inherit;
    text-decoration: none;
}

.mail-read-toggle__icon {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
    border: 1px solid currentColor;
}

.mail-read-toggle__icon--unread {
    background: var(--bs-primary);
    color: var(--bs-primary);
}

.mail-read-toggle__icon--read {
    background: transparent;
    color: var(--bs-secondary);
}

.users-workspace__mail-compose-wide {
    min-width: 0;
}

.users-workspace__mail-detail-hidden {
    display: none;
}

.mail-compose__peer {
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    background: var(--bs-body-bg);
}

.mail-compose__editor-host {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
}

.mail-compose__editor-host .html-editor-host__actions {
    display: none;
}

.mail-compose__editor-host > .html-editor-host__toolbar {
    flex: 0 0 auto;
}

.mail-compose__editor-host > .html-editor-host,
.mail-compose__editor-host > .html-editor-host__source {
    flex: 1 1 auto;
    min-height: 0;
}

.mail-compose__editor {
    min-height: 0;
    height: 100%;
}

.mail-compose__editor .html-editor-host__quill,
.mail-compose__editor.ql-container {
    min-height: 18rem;
}

.shell-header-mail-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.375rem;
    border-radius: 999px;
    background: var(--bs-danger);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.users-workspace__detail-shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.users-workspace__detail-header {
    flex: 0 0 auto;
}

.users-account-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.users-account-header__selector {
    min-width: min(18rem, 100%);
    flex: 1 1 16rem;
}

.users-account-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.users-workspace__detail-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.users-workspace__detail-content--entities {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.users-workspace__detail-content--description {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.users-workspace__detail-content--entities > .p-2 {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.users-workspace__detail-content--description > .users-description__panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.users-workspace__detail-entities-body {
    display: flex;
}

.users-workspace__entity-detail-shell {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.users-workspace__entity-editor-shell {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.users-workspace__entity-editor-host {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.users-workspace__entity-editor-host > .html-editor-host__toolbar {
    flex: 0 0 auto;
}

.users-workspace__entity-editor-host > .html-editor-host,
.users-workspace__entity-editor-host > .html-editor-host__source {
    flex: 1 1 auto;
    min-height: 0;
}

.users-workspace__entity-files-shell {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.users-description {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.users-description__panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.users-description__editor-shell {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.users-description__editor-host {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.users-description__editor-host > .html-editor-host__toolbar {
    flex: 0 0 auto;
}

.users-description__editor-host > .html-editor-host,
.users-description__editor-host > .html-editor-host__source {
    flex: 1 1 auto;
    min-height: 0;
}

.users-description__toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.users-description__pages {
    flex: 1 1 auto;
    min-width: 0;
}

.users-description__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.users-description__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.users-description__content {
    min-height: 0;
}

.users-trust-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
}

.users-trust-grid thead th:last-child {
    width: 1%;
    white-space: nowrap;
    color: transparent;
    font-size: 0;
    line-height: 0;
    position: relative;
}

.users-trust-grid thead th:last-child::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    margin: 0 auto;
    background: url('/images/trust.png') center / contain no-repeat;
}

.users-trust-grid__state-trigger {
    width: 100%;
    min-height: 100%;
    padding-block: 0.25rem;
    padding-inline: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.users-trust-grid__pager {
    flex: 0 0 auto;
}

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

.grid-command-bar--compact {
    gap: 0.375rem;
}

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

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

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

.grid-command-bar .btn.btn-sm {
    min-width: 2rem;
}

.chat-workspace__tab-panel-shell,
.chat-workspace__tab-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.chat-workspace-host .shell-desktop-panels.shell-desktop-panels--mobile-switchable > .chat-workspace__primary-panel {
    overflow: hidden;
}

.chat-workspace-host .chat-workspace__primary-panel {
    overflow: hidden;
}

.chat-workspace-host .chat-workspace__primary-panel > .admin-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.chat-workspace-host .chat-workspace__primary-panel > .admin-panel > .chat-workspace__tabs {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    height: auto;
    min-height: 0;
    overflow: hidden;
}

.chat-workspace__tabs {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.chat-workspace__tabs > .workspace-tabs__tab-host {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.chat-workspace__tabs > .workspace-tabs__tab-host > .shell-tabs__host {
    flex: 0 0 auto;
}

.chat-workspace__tabs > .workspace-tabs__tab-host > .tab-content {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: hidden;
}

.chat-workspace__tabs > .workspace-tabs__tab-host > .tab-content > .tab-pane {
    flex: 1 1 auto;
    min-height: 0;
}

.chat-workspace__tabs > .workspace-tabs__tab-host > .tab-content > .tab-pane.active.show {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    height: auto;
    min-height: 0;
    overflow: hidden;
}

.chat-workspace__tabs > .workspace-tabs__tab-host > .tab-content > .tab-pane.active.show > * {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.chat-workspace__threads,
.chat-workspace__discussion {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.chat-workspace__threads-toolbar {
    flex: 0 0 auto;
    min-width: 0;
}

.chat-workspace__threads-grid {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.chat-workspace__threads-grid > .table-fixed-header,
.chat-workspace__threads-grid > .datagrid-fixed-header,
.chat-workspace__threads-grid > .b-datagrid-fixed-header {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.chat-workspace__discussion-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.chat-compose__editor-shell {
    display: flex;
    flex: 0 1 auto;
    min-height: 15rem;
    max-height: 50%;
    overflow: hidden;
}

.chat-compose__editor-host {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.chat-compose__editor-host > .html-editor-host__toolbar {
    flex: 0 0 auto;
}

.chat-compose__editor-host > .html-editor-host,
.chat-compose__editor-host > .html-editor-host__source {
    flex: 1 1 auto;
    min-height: 0;
}

.chat-workspace__stream-host {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    background: var(--bs-body-bg);
    padding: 0.55rem;
}

.chat-workspace__stream-host > .chat-stream {
    width: 100%;
    min-width: 0;
}

.chat-watch {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    background: var(--bs-body-bg);
    padding: 0.55rem;
}

.chat-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.chat-toolbar__thread {
    min-width: 16rem;
    max-width: none;
    width: 100%;
    flex: 1 1 auto;
}

.chat-toolbar__thread-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    flex-wrap: nowrap;
}

.chat-toolbar__thread-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: nowrap;
    flex: 0 0 auto;
}

.chat-toolbar__page-size {
    width: auto;
    min-width: 4.5rem;
}

.chat-toolbar__thread .autocomplete-picker,
.chat-toolbar__thread .input-group {
    width: 100%;
}

.chat-toolbar__actions,
.chat-compose__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chat-toolbar__icon-button,
.chat-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    padding-inline: 0.5rem;
}

.chat-toolbar__icon-button i,
.chat-action-button i {
    font-size: 0.95rem;
}

.chat-toolbar__clear-button {
    position: relative;
}

.chat-toolbar__clear-mark {
    position: absolute;
    right: 0.18rem;
    bottom: 0.05rem;
    font-size: 0.65rem;
    line-height: 1;
    font-weight: 700;
}

.survey-grid-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.chat-compose {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.6rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.6rem;
    background: color-mix(in srgb, var(--bs-body-bg) 95%, var(--bs-primary) 5%);
}

.chat-compose__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.chat-compose__editor {
    min-height: 15rem;
}

.chat-thread-node {
    position: relative;
    overflow: visible;
    isolation: isolate;
    --chat-indent-step: 0.9rem;
    --chat-connector-line-width: 2px;
    --chat-connector-rail-offset: 0.45rem;
    --chat-connector-base-x: calc(var(--chat-indent-step) - var(--chat-connector-rail-offset));
    --chat-connector-parent-anchor-y: 1rem;
    --chat-connector-join-y: 1.15rem;
    --chat-connector-elbow-overlap: 2px;
    --chat-rail-x: calc(var(--chat-connector-base-x) + var(--chat-connector-depth) * var(--chat-indent-step));
    --chat-hook-width: calc((var(--chat-current-depth) - var(--chat-connector-depth)) * var(--chat-indent-step) + var(--chat-connector-elbow-overlap));
    --chat-hook-height: 1.55rem;
}

.chat-thread-node--reply {
    position: relative;
}

.chat-thread-node__segment {
    position: absolute;
    left: calc(var(--chat-connector-base-x) + var(--chat-connector-depth) * var(--chat-indent-step));
    width: var(--chat-connector-line-width);
    background: color-mix(in srgb, var(--bs-secondary-color) 45%, var(--bs-border-color));
    pointer-events: none;
    z-index: 2;
}

.chat-thread-node__segment--start {
    top: var(--chat-connector-parent-anchor-y);
    bottom: 0;
}

.chat-thread-node__segment--middle {
    top: 0;
    bottom: 0;
}

.chat-thread-node__segment--end {
    top: 0;
    bottom: calc(100% - var(--chat-connector-join-y));
}

.chat-thread-node__hook {
    position: absolute;
    top: var(--chat-connector-join-y);
    left: calc(var(--chat-connector-base-x) + var(--chat-connector-depth) * var(--chat-indent-step));
    width: var(--chat-hook-width);
    height: var(--chat-hook-height);
    color: color-mix(in srgb, var(--bs-secondary-color) 45%, var(--bs-border-color));
    pointer-events: none;
    overflow: visible;
    z-index: 4;
}

.chat-thread-node__hook path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chat-thread-node__expand {
    margin-top: -0.2rem;
    margin-bottom: 0.55rem;
    margin-left: calc(min(var(--chat-depth), 6) * 0.9rem + 0.9rem);
}

.chat-thread-node__expand-button {
    padding: 0;
    font-size: 0.85rem;
    text-decoration: none;
}

.chat-thread-node__expand-button:hover,
.chat-thread-node__expand-button:focus {
    text-decoration: underline;
}

.chat-message {
    position: relative;
    z-index: 3;
    margin-left: calc(min(var(--chat-depth), 6) * var(--chat-indent-step));
    margin-bottom: 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.65rem;
    background: color-mix(in srgb, var(--bs-body-bg) 94%, var(--bs-primary) 6%);
}

.chat-message--active {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--bs-primary) 40%, transparent);
}

.chat-message__meta,
.chat-notification__head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.chat-message__meta-left,
.chat-message__meta-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chat-message__author,
.chat-notification__author {
    font-weight: 600;
}

.chat-message__time,
.chat-notification__time {
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
}

.chat-message__subject,
.chat-notification__subject {
    margin-top: 0.45rem;
    font-weight: 600;
}

.chat-message__body {
    margin-top: 0.65rem;
}

.chat-message__body :last-child {
    margin-bottom: 0;
}

.chat-message__body--clamped {
    display: -webkit-box;
    -webkit-line-clamp: var(--chat-line-limit, 5);
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: var(--chat-line-limit, 5);
}

.chat-message__body--expanded {
    display: block;
}

.chat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.8rem;
    background: color-mix(in srgb, var(--bs-body-bg) 92%, var(--bs-primary) 8%);
}

.chat-badge__icon {
    width: 0.95rem;
    height: 0.95rem;
    display: block;
    object-fit: contain;
}

.chat-trust-button {
    gap: 0.35rem;
}

.chat-trust-button--active {
    background: color-mix(in srgb, var(--bs-primary) 12%, var(--bs-body-bg));
}

.chat-trust-button__icon {
    width: 0.95rem;
    height: 0.95rem;
    display: block;
    object-fit: contain;
}

.chat-trust-button__count {
    min-width: 1ch;
    font-size: 0.8rem;
    line-height: 1;
}

.chat-badge--watch {
    background: color-mix(in srgb, var(--bs-success) 14%, var(--bs-body-bg));
    border-color: color-mix(in srgb, var(--bs-success) 35%, var(--bs-border-color));
}

.chat-notification {
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 0.75rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--bs-body-bg) 96%, var(--bs-primary) 4%);
}

button.chat-notification {
    cursor: pointer;
}

button.chat-notification:hover {
    border-color: color-mix(in srgb, var(--bs-primary) 40%, var(--bs-border-color));
}

.chat-notification--active {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--bs-primary) 40%, transparent);
}

.chat-notification__preview {
    margin-top: 0.45rem;
    font-size: 0.92rem;
    color: var(--bs-secondary-color);
}
