.tb-menu,
.tb-menu * {
    box-sizing: border-box;
}

.tb-menu [hidden],
.tb-tree-drawer[hidden] {
    display: none !important;
}

.borderLayoutPageStart.menu-bar-sticky-container {
    overflow: visible;
    position: static;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    z-index: auto;
}

.tb-menu-bar {
    --tb-menu-accent: #0b74b7;
    --tb-menu-background: #ffffff;
    --tb-menu-border: #dfe4ea;
    --tb-menu-focus: color-mix(in srgb, var(--tb-menu-accent) 45%, transparent);
    --tb-menu-hover: color-mix(in srgb, var(--tb-menu-accent) 12%, white);
    --tb-menu-text: #17202a;
    --tb-menu-muted: #667085;
    --tb-menu-submenu-background: #005f9c;
    --tb-menu-submenu-border: #0b74b7;
    --tb-menu-submenu-hover: #0b74b7;
    --tb-menu-submenu-text: #ffffff;
    --tb-menu-mobile-accent: #ff8a00;
    --tb-menu-mobile-background: #0f6483;
    --tb-menu-mobile-border: rgba(255, 255, 255, 0.22);
    --tb-menu-mobile-submenu: #0d5797;
    --tb-menu-mobile-submenu-hover: #137bb9;
    --tb-menu-mobile-text: #ffffff;
    align-items: center;
    background: var(--tb-menu-background);
    border-block: 1px solid var(--tb-menu-border);
    display: grid;
    gap: 0.5rem;
    grid-template-areas:
        "toggle brand navigation user actions"
        "mobile mobile mobile mobile mobile";
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    min-height: 3.5rem;
    padding: 0.35rem 0.6rem;
    position: static;
    width: 100%;
    z-index: auto;
}

.tb-menu__brand {
    align-items: center;
    display: flex;
    grid-area: brand;
    min-width: 0;
}

.tb-menu__brand img {
    display: block;
    max-height: 2.6rem;
    max-width: 11rem;
    object-fit: contain;
}

.tb-menu__desktop {
    grid-area: navigation;
    min-width: 0;
    overflow: visible;
    width: 100%;
}

.tb-menu__list,
.tb-menu__tree,
.tb-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tb-menu__list--bar {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.15rem;
    min-width: 0;
    overflow: visible;
    white-space: nowrap;
    width: 100%;
}

.tb-menu__overflow > .tb-menu__control {
    justify-content: center;
    min-width: 3rem;
}

.tb-menu__entry {
    margin: 0;
    padding: 0;
    position: relative;
}

.tb-menu__control {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0.45rem;
    color: var(--tb-menu-text, #17202a);
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 0.5rem;
    min-height: 2.35rem;
    padding: 0.5rem 0.7rem;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.tb-menu__control:hover,
.tb-menu__control:focus-visible,
.tb-menu__control[aria-current="page"] {
    background: var(--tb-menu-hover);
    color: var(--tb-menu-accent, #0b74b7);
    outline: none;
}

.tb-menu__control:focus-visible {
    box-shadow: 0 0 0 2px var(--tb-menu-focus);
}

.tb-menu__control:disabled,
.tb-menu__control[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.48;
}

.tb-menu__icon,
.tb-tree__icon {
    flex: 0 0 auto;
    height: 1rem;
    object-fit: contain;
    width: 1rem;
}

.tb-menu__label,
.tb-tree__label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tb-menu__chevron,
.tb-tree__chevron {
    border-bottom: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    flex: 0 0 auto;
    height: 0.45rem;
    margin-left: auto;
    transform: rotate(45deg);
    transition: transform 140ms ease;
    width: 0.45rem;
}

.tb-menu__group[aria-expanded="true"] > .tb-menu__chevron,
.tb-tree__node[aria-expanded="true"] > .tb-tree__item > .tb-tree__chevron {
    transform: rotate(225deg);
}

.tb-menu__list--nested {
    background: var(--tb-menu-submenu-background);
    border: 1px solid var(--tb-menu-submenu-border);
    border-radius: 0.55rem;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.18);
    left: 0;
    max-height: none;
    min-width: 15rem;
    overflow: visible;
    position: absolute;
    top: calc(100% + 0.25rem);
    transform: translate(var(--tb-menu-shift-x, 0), var(--tb-menu-shift-y, 0));
    z-index: 20000;
}

.tb-menu__list--nested > .tb-menu__entry + .tb-menu__entry {
    border-top: 1px solid var(--tb-menu-submenu-border);
}

.tb-menu__list--nested .tb-menu__control {
    border-radius: 0;
    color: var(--tb-menu-submenu-text);
}

.tb-menu__list--nested .tb-menu__control:hover,
.tb-menu__list--nested .tb-menu__control:focus-visible,
.tb-menu__list--nested .tb-menu__control[aria-current="page"] {
    background: var(--tb-menu-submenu-hover);
    color: var(--tb-menu-submenu-text);
}

.tb-menu__list--nested > .tb-menu__entry--group > .tb-menu__group .tb-menu__chevron,
.tb-menu__list--nested > .tb-menu__entry--group > .tb-menu__group[aria-expanded="true"] .tb-menu__chevron {
    transform: rotate(-45deg);
}

.tb-menu__list--nested > .tb-menu__entry--opens-left > .tb-menu__group .tb-menu__chevron,
.tb-menu__list--nested > .tb-menu__entry--opens-left > .tb-menu__group[aria-expanded="true"] .tb-menu__chevron {
    transform: rotate(135deg);
}

.tb-menu__list--nested .tb-menu__list--nested {
    left: calc(100% + 0.2rem);
    top: -0.25rem;
}

.tb-menu__separator {
    border-top: 1px solid #e4e7ec;
    display: block;
    margin: 0.3rem 0.5rem;
}

.tb-menu__toggle,
.tb-menu__desktop-tree-toggle,
.tb-menu__drawer-close,
.tb-tree-drawer__close {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 1px solid var(--tb-menu-border, #d0d5dd);
    border-radius: 0.5rem;
    color: var(--tb-menu-text, #344054);
    cursor: pointer;
    display: none;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.tb-menu__toggle,
.tb-menu__desktop-tree-toggle {
    grid-area: toggle;
}

.tb-menu__desktop-tree-toggle {
    display: inline-flex;
}

.tb-menu-bar.is-compact .tb-menu__toggle--overflow {
    display: inline-flex;
}

.tb-menu__hamburger,
.tb-menu__hamburger::before,
.tb-menu__hamburger::after {
    background: currentColor;
    border-radius: 2px;
    content: "";
    display: block;
    height: 2px;
    position: relative;
    width: 1.15rem;
}

.tb-menu__hamburger::before {
    position: absolute;
    top: -0.36rem;
}

.tb-menu__hamburger::after {
    position: absolute;
    top: 0.36rem;
}

.tb-menu__user {
    color: var(--tb-menu-muted);
    display: flex;
    flex-direction: column;
    font-size: max(12px, 0.78rem);
    grid-area: user;
    justify-self: end;
    line-height: 1.25;
    max-width: 208px;
    min-width: 140px;
    text-align: right;
    width: max-content;
}

.tb-menu__user span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tb-menu__actions {
    align-items: center;
    display: flex;
    gap: 0.2rem;
    grid-area: actions;
    min-width: 0;
}

.tb-menu__application-actions-slot:empty {
    display: none;
}

.tb-menu__mobile-panel {
    grid-area: mobile;
    min-width: 0;
    width: 100%;
}

.tb-menu-bar.is-compact .tb-menu__mobile-panel {
    background: var(--tb-menu-mobile-background);
    border-top: 3px solid var(--tb-menu-mobile-accent);
    color: var(--tb-menu-mobile-text);
    margin: 0 -0.6rem -0.35rem;
    width: calc(100% + 1.2rem);
}

.tb-menu-bar.is-compact .tb-menu__mobile-list > .tb-menu__entry + .tb-menu__entry,
.tb-menu-bar.is-compact .tb-menu__mobile-list .tb-menu__list--nested > .tb-menu__entry + .tb-menu__entry {
    border-top: 1px solid var(--tb-menu-mobile-border);
}

.tb-menu-bar.is-compact .tb-menu__mobile-list .tb-menu__control {
    border-radius: 0;
    color: var(--tb-menu-mobile-text);
    min-height: 44px;
    padding: 0.65rem 0.75rem;
}

.tb-menu-bar.is-compact .tb-menu__mobile-list .tb-menu__control:hover,
.tb-menu-bar.is-compact .tb-menu__mobile-list .tb-menu__control:focus-visible,
.tb-menu-bar.is-compact .tb-menu__mobile-list .tb-menu__control[aria-current="page"],
.tb-menu-bar.is-compact .tb-menu__mobile-list > .tb-menu__entry.is-open > .tb-menu__group {
    background: var(--tb-menu-mobile-submenu-hover);
    color: var(--tb-menu-mobile-text);
}

.tb-menu-bar.is-compact .tb-menu__mobile-list .tb-menu__list--nested {
    background: var(--tb-menu-mobile-submenu);
    border: 0;
    border-left: 3px solid var(--tb-menu-mobile-accent);
    border-radius: 0;
    box-shadow: none;
    margin: 0 0 0 0.45rem;
    max-height: none;
    min-width: 0;
    overflow: visible;
    position: static;
    transform: none;
}

.tb-menu-bar.is-compact .tb-menu__mobile-list .tb-menu__list--nested .tb-menu__list--nested {
    margin-left: 0.75rem;
}

.tb-menu-bar.is-compact .tb-menu__mobile-list .tb-menu__list--nested .tb-menu__chevron,
.tb-menu-bar.is-compact .tb-menu__mobile-list .tb-menu__list--nested .tb-menu__group[aria-expanded="true"] .tb-menu__chevron {
    transform: rotate(45deg);
}

.tb-menu-bar.is-compact .tb-menu__mobile-list .tb-menu__list--nested .tb-menu__group[aria-expanded="true"] > .tb-menu__chevron {
    transform: rotate(225deg);
}

.tb-menu__module-actions,
.tb-menu__module-actions table,
.tb-menu__module-actions tbody,
.tb-menu__module-actions tr {
    align-items: center;
    display: flex;
    height: auto !important;
    width: auto !important;
}

.tb-menu__module-actions td {
    display: flex;
    padding: 0;
}

.tb-menu__interface-actions .tbComponentButton span {
    display: none;
}

.tb-menu__actions > a,
.tb-menu__actions > button,
.tb-menu__module-actions .tbComponentButton {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    margin: 0.15rem;
}

.tb-menu__drawer {
    bottom: 0;
    left: var(--tb-menu-drawer-left, 0);
    position: fixed;
    right: var(--tb-menu-drawer-right, 0);
    top: var(--tb-menu-drawer-top, 0);
    z-index: 5000;
}

.tb-menu__overlay {
    appearance: none;
    background: rgba(15, 23, 42, 0.48);
    border: 0;
    cursor: default;
    inset: 0;
    position: absolute;
    width: 100%;
}

.tb-menu__drawer-panel {
    background: var(--tb-menu-background, #ffffff);
    box-shadow: 12px 0 32px rgba(15, 23, 42, 0.22);
    height: 100%;
    max-width: calc(100vw - 2.5rem);
    overflow: auto;
    padding: 0.75rem;
    position: relative;
    width: min(25rem, 88vw);
    z-index: 1;
}

.tb-menu__loading-overlay {
    align-items: center;
    background: rgb(0 0 0 / 10%);
    display: flex;
    height: 100%;
    inset: 0;
    justify-content: center;
    position: absolute;
    width: 100%;
    z-index: 10000;
}

.tb-menu__drawer-header {
    align-items: center;
    border-bottom: 1px solid #e4e7ec;
    display: flex;
    font-size: 1.05rem;
    font-weight: 600;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.25rem 0.65rem;
}

.tb-menu__drawer-close {
    display: inline-flex;
    font-size: 1.5rem;
}

.tb-menu__tree .tb-menu__list--nested {
    border: 0;
    border-left: 1px solid #e4e7ec;
    border-radius: 0;
    box-shadow: none;
    margin-left: 0.85rem;
    max-height: none;
    min-width: 0;
    overflow: visible;
    padding-left: 0.4rem;
    position: static;
    transform: none;
}

.tb-menu--popup,
.tpwpp {
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
    max-width: calc(100vw - 1rem);
    overflow: visible;
}

.tb-menu--popup {
    --tb-menu-submenu-background: #ffffff;
    --tb-menu-submenu-border: #d0d5dd;
    --tb-menu-submenu-hover: #f2f4f7;
    --tb-menu-submenu-text: #344054;
}

.tpwpp {
    position: fixed;
    z-index: 21000;
}

.tb-menu__list--popup {
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 0.55rem;
    box-shadow: 0 14px 36px rgba(16, 24, 40, 0.2);
    max-height: none;
    min-width: 13rem;
    overflow: visible;
    padding: 0.35rem;
}

.tb-menu__list--popup > .tb-menu__entry > .tb-menu__control {
    min-width: 12rem;
}

.tb-menu__list--popup > .tb-menu__entry--group > .tb-menu__list--nested {
    left: calc(100% + 0.2rem);
    top: -0.25rem;
}

.tb-menu__list--popup > .tb-menu__entry--group > .tb-menu__group .tb-menu__chevron,
.tb-menu__list--popup > .tb-menu__entry--group > .tb-menu__group[aria-expanded="true"] .tb-menu__chevron {
    transform: rotate(-45deg);
    transition: none;
}

.tb-menu__list--popup > .tb-menu__entry--opens-left > .tb-menu__group .tb-menu__chevron,
.tb-menu__list--popup > .tb-menu__entry--opens-left > .tb-menu__group[aria-expanded="true"] .tb-menu__chevron {
    transform: rotate(135deg);
}

.tb-tree {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Module-confined positioning contexts */
.topbuilder-tabs__panel,
.borderLayout {
    position: relative;
}

.borderLayoutPageStart,
.tb-menu-bar,
#tb-main:not(.mainFullWidth) .borderLayoutPageStart,
#tb-main:not(.mainFullWidth) .tb-menu-bar {
    position: static;
}

.tb-tree-drawer {
    position: absolute;
    top: var(--tb-tree-drawer-top, 0);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% - var(--tb-tree-drawer-top, 0));
    overflow: hidden;
    z-index: 5300;
}

#tb-main:not(.mainFullWidth) .tb-tree-drawer {
    position: absolute;
    top: var(--tb-tree-drawer-top, 0);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% - var(--tb-tree-drawer-top, 0));
    overflow: hidden;
    z-index: 5300;
}

#tb-main:not(.mainFullWidth) .tb-tree-drawer__overlay,
.tb-tree-drawer__overlay {
    appearance: none;
    background: rgba(15, 23, 42, 0.48);
    border: 0;
    inset: 0;
    position: absolute;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .tb-tree-drawer {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        z-index: 9999 !important;
    }
}

.tb-tree-drawer__panel {
    background: #ffffff;
    box-shadow: 12px 0 32px rgba(15, 23, 42, 0.22);
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: calc(100vw - 2.5rem);
    padding: 0.5rem;
    position: relative;
    width: min(25rem, 88vw);
    z-index: 1;
}

.tb-tree__identity {
    display: none;
}

.tb-tree__footer {
    align-items: center;
    border-top: 1px solid #d0d5dd;
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
    max-height: 32vh;
    overflow-y: auto;
    padding: 0.45rem;
}

.tb-tree__footer .tb-menu__module-actions,
.tb-tree__footer .tb-menu__module-actions table,
.tb-tree__footer .tb-menu__module-actions tbody,
.tb-tree__footer .tb-menu__module-actions tr {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.tb-tree-drawer__header {
    align-items: center;
    border-bottom: 1px solid #d0d5dd;
    display: flex;
    font-weight: 600;
    justify-content: space-between;
    padding: 0.2rem 0.15rem 0.5rem;
}

.tb-tree-drawer__close {
    display: inline-flex;
    font-size: 1.4rem;
}

.tb-menu-module-tree {
    flex: 1 1 auto;
    min-height: 0;
}

.tb-tree__toolbar {
    align-items: center;
    display: flex;
    gap: 0.35rem;
    padding: 0.5rem 0;
}

.tb-tree__filter {
    border: 1px solid #d0d5dd;
    border-radius: 0.45rem;
    flex: 1 1 auto;
    min-width: 8rem;
    padding: 0.5rem 0.65rem;
}

.tb-tree__action {
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 0.4rem;
    cursor: pointer;
    min-height: 2.1rem;
    min-width: 2.1rem;
    padding: 0;
}

.tb-tree__action--pin {
    color: #475467;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tb-tree__action--pin:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.tb-tree__action--pin.is-pinned,
.tb-tree__action--pin[aria-pressed='true'] {
    background-color: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.tb-tree__action--close {
    color: #475467;
    font-size: 1.25rem;
    line-height: 1;
}

.tb-tree__action--close:hover {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.tb-tree-split-pane {
    grid-area: center;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}


.tb-tree-split-pane > .borderLayoutCenter {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    overflow: auto;
}

.tb-tree-pinned-host {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    min-width: 220px;
    min-height: 0;
    max-width: 450px;
    flex: 0 0 280px;
    overflow: hidden;
    background: #ffffff;
    border-right: 1px solid #d0d5dd;
    box-sizing: border-box;
}

.tb-tree-pinned-host .tb-tree-drawer__panel {
    box-shadow: none;
    flex: 1 1 0;
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 0.5rem;
    box-sizing: border-box;
}

.tb-tree-pinned-host .tb-menu-module-tree {
    flex: 1 1 0;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}

.tb-tree-pinned-host .tb-tree__root {
    flex: 1 1 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.tb-tree-split-divider {
    flex: 0 0 5px;
    width: 5px;
    cursor: col-resize;
    background: #e2e8f0;
    transition: background 0.15s ease-in-out;
    touch-action: none;
    position: relative;
    user-select: none;
    z-index: 5;
    box-sizing: border-box;
}

.tb-tree-split-divider:hover,
.tb-tree-split-divider.is-dragging {
    background: #0284c7;
}

.tb-tree-split-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 24px;
    background: #94a3b8;
    border-radius: 1px;
}

.tb-tree-split-divider:hover::after,
.tb-tree-split-divider.is-dragging::after {
    background: #ffffff;
}

.tb-tree__root {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 0.2rem;
}

.tb-tree__node > [role="group"] {
    border-left: 1px dotted #98a2b3;
    margin-left: 0.85rem;
    padding-left: 0.45rem;
}

.tb-tree__node--group > .tb-tree__item {
    font-weight: 600;
}

.tb-tree__separator {
    border-top: 1px solid #d0d5dd;
    margin: 0.3rem 0.4rem;
}

.tb-tree__item {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0.4rem;
    cursor: pointer;
    display: flex;
    gap: 0.45rem;
    min-height: 2.15rem;
    padding: 0.4rem 0.55rem;
    text-align: left;
    width: 100%;
}

.tb-tree__item:hover,
.tb-tree__item:focus-visible,
.tb-tree__node[aria-selected="true"] > .tb-tree__item {
    background: #eef6fb;
    color: #075985;
    outline: none;
}

.tb-tree__count {
    color: #667085;
    margin-left: auto;
}

body.tb-menu-drawer-open {
    overflow: hidden;
}

body.tb-tree-drawer-open {
    overflow: hidden;
}

.tb-menu__drawer-toolbar {
    align-items: center;
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.tb-menu__filter {
    border: 1px solid #d0d5dd;
    border-radius: 0.45rem;
    flex: 1 1 auto;
    min-height: 2.5rem;
    min-width: 0;
    padding: 0.5rem 0.65rem;
}

.tb-menu__filter-clear {
    align-items: center;
    appearance: none;
    background: var(--tb-menu-background, #ffffff);
    border: 1px solid #d0d5dd;
    border-radius: 0.45rem;
    color: var(--tb-menu-text, #344054);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.25rem;
    justify-content: center;
    min-height: 2.5rem;
    min-width: 2.5rem;
}

.tb-menu-bar.is-compact {
    grid-template-areas:
        "toggle brand actions"
        "mobile mobile mobile";
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.tb-menu-bar.is-compact .tb-menu__toggle {
    display: inline-flex;
}

.tb-menu-bar.is-compact .tb-menu__desktop-tree-toggle {
    display: none;
}

.tb-menu-bar.is-compact .tb-menu__desktop,
.tb-menu-bar.is-compact .tb-menu__user {
    display: none;
}

.tb-menu-bar.is-compact .tb-menu__actions {
    border-top: 0;
    grid-column: auto;
    justify-self: end;
    max-width: 100%;
    overflow: visible;
    padding-top: 0;
}

.tb-menu-bar.is-compact [data-cid^='visualizationMode-'] {
    display: none !important;
}

.tb-menu-bar.is-compact .tb-menu__control,
.tb-menu-bar.is-compact .tb-menu__toggle,
.tb-menu-bar.is-compact .tb-menu__drawer-close,
.tb-menu-bar.is-compact .tb-menu__actions > a,
.tb-menu-bar.is-compact .tb-menu__actions > button,
.tb-menu-bar.is-compact .tb-menu__module-actions .tbComponentButton {
    min-height: 44px;
    min-width: 44px;
}

.tb-menu-bar.is-compact .tb-menu__drawer-panel {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-top: max(0.75rem, env(safe-area-inset-top));
}

.tb-menu-bar.is-compact .tb-menu__brand img {
    max-width: min(10rem, 45vw);
}

@media (max-width: 768px) {
    .tb-menu-bar {
        grid-template-areas:
            "toggle brand actions"
            "mobile mobile mobile";
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .tb-menu__toggle {
        display: inline-flex;
    }

    .tb-menu__desktop-tree-toggle {
        display: none;
    }

    .tb-menu__desktop,
    .tb-menu__user {
        display: none;
    }

    .tb-menu__actions {
        border-top: 0;
        grid-column: auto;
        justify-self: end;
        max-width: 100%;
        overflow: visible;
        padding-top: 0;
    }

    .tb-menu-bar [data-cid^='visualizationMode-'],
    .tb-menu-bar [data-visualization-mode],
    .tb-tree__footer [data-visualization-mode] {
        display: none !important;
    }

    .tb-menu__control,
    .tb-menu__toggle,
    .tb-menu__drawer-close,
    .tb-menu__actions > a,
    .tb-menu__actions > button,
    .tb-menu__module-actions .tbComponentButton {
        min-height: 44px;
        min-width: 44px;
    }

    .tb-menu__drawer-panel {
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-top: max(0.75rem, env(safe-area-inset-top));
    }

    .tb-menu__brand img {
        max-width: min(10rem, 45vw);
    }

    .tb-tree-drawer__panel {
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
    }

    .tb-tree__identity {
        align-items: center;
        border-bottom: 1px solid #e4e7ec;
        display: flex;
        flex: 0 0 auto;
        gap: 0.75rem;
        padding: max(0.5rem, env(safe-area-inset-top)) 0.5rem 0.75rem;
    }

    .tb-tree__identity img {
        display: block;
        max-height: 3.25rem;
        max-width: min(9rem, 42vw);
        object-fit: contain;
    }

    .tb-tree__identity > div {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-width: 0;
    }

    .tb-tree__identity strong,
    .tb-tree__identity span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tb-tree__identity span {
        color: #667085;
        font-size: 0.82rem;
    }

    .tb-tree__footer {
        align-items: center;
        border-top: 1px solid #d0d5dd;
        display: flex;
        flex: 0 0 auto;
        justify-content: center;
        max-height: 32vh;
        overflow-y: auto;
        padding: 0.45rem max(0.35rem, env(safe-area-inset-right))
                max(0.45rem, env(safe-area-inset-bottom))
                max(0.35rem, env(safe-area-inset-left));
    }

    .tb-tree__footer .tb-menu__module-actions,
    .tb-tree__footer .tb-menu__module-actions table,
    .tb-tree__footer .tb-menu__module-actions tbody,
    .tb-tree__footer .tb-menu__module-actions tr {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }

    .tb-tree__footer .tbComponentButton {
        min-height: 44px;
        min-width: 44px;
    }

    .tb-tree__item {
        min-height: 44px;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }

    .tb-tree__action--pin {
        display: none !important;
    }

    .tb-menu__list--popup > .tb-menu__entry--group > .tb-menu__list--nested {
        left: auto;
        margin-left: 0.75rem;
        position: static;
        top: auto;
        transform: none;
    }
}

.tb-account-dialog {
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.32);
    max-height: min(92vh, 620px);
    max-height: min(92dvh, 620px);
    max-width: min(92vw, 430px);
    padding: 0;
    width: 100%;
}

.tb-account-dialog::backdrop {
    background: rgba(15, 23, 42, 0.48);
}

.tb-account-dialog__form {
    display: flex;
    flex-direction: column;
    max-height: inherit;
}

.tb-account-dialog__header,
.tb-account-dialog__footer {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
}

.tb-account-dialog__header {
    border-bottom: 1px solid #e4e7ec;
    justify-content: space-between;
}

.tb-account-dialog__header button {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 1.5rem;
    min-height: 2.25rem;
    min-width: 2.25rem;
}

.tb-account-dialog__body {
    display: grid;
    gap: 0.75rem;
    overflow-y: auto;
    padding: 1rem;
}

.tb-account-dialog__identity {
    display: flex;
    flex-direction: column;
}

.tb-account-dialog__identity span {
    color: #667085;
}

.tb-account-dialog__body label {
    display: grid;
    gap: 0.3rem;
}

.tb-account-dialog__body input {
    border: 1px solid #d0d5dd;
    border-radius: 0.45rem;
    font: inherit;
    min-height: 2.6rem;
    padding: 0.45rem 0.6rem;
}

.tb-account-dialog__error {
    color: #b42318;
    margin: 0;
    min-height: 1.25rem;
}

.tb-account-dialog__footer {
    border-top: 1px solid #e4e7ec;
    justify-content: flex-end;
}

.tb-account-dialog__footer button {
    border: 1px solid #d0d5dd;
    border-radius: 0.45rem;
    cursor: pointer;
    min-height: 2.5rem;
    padding: 0.45rem 0.85rem;
}

.tb-account-dialog__confirm {
    background: #0b74b7;
    border-color: #0b74b7 !important;
    color: #ffffff;
}

@media (max-width: 480px) {
    .tb-account-dialog {
        border-radius: 0;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        max-width: 100vw;
        width: 100vw;
    }

    .tb-account-dialog__form {
        height: 100%;
    }

    .tb-account-dialog__body {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tb-menu__chevron,
    .tb-tree__chevron {
        transition: none;
    }
}
