/* The frame around every page: content width, page background, the dark top bar with the logo, the workspace menu and the side menu. */

/* Width of the page content (AppPanelProvider::maxContentWidth). */
.fi-panel-app .fi-main.ambex-content-width {
    max-width: 105rem;
}

.fi-body.fi-panel-app {
    background-color: var(--ambex-bg);
    color: var(--ambex-text);
}

.dark .fi-body.fi-panel-app {
    background-color: #0b1626;
    color: #cdd9e8;
}

/* Top bar: dark, like the site's header. */
.fi-panel-app .fi-topbar {
    background-color: #121519;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fi-panel-app .fi-topbar .fi-icon-btn,
.fi-panel-app .fi-topbar .fi-icon-btn .fi-icon {
    color: #c8d6e8;
}

.ambex-panel-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}

.ambex-panel-brand img {
    height: 1.5rem;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(120, 180, 255, 0.45)) drop-shadow(0 0 18px rgba(31, 117, 222, 0.35));
}

.ambex-panel-brand-product {
    font: 600 1.25rem/1 var(--ambex-head);
    letter-spacing: -0.02em;
    color: var(--ambex-sky);
    margin-top: 2px;
}

@media (max-width: 1023px) {
    .fi-panel-app .fi-topbar-start {
        display: flex;
    }

    .ambex-panel-brand img {
        height: 1.2rem;
    }

    .ambex-panel-brand-product {
        font-size: 1rem;
    }
}

/* The workspace menu without the round initials of the company, in the button and in its list. */
.fi-panel-app .fi-tenant-menu-trigger .fi-avatar,
.fi-panel-app .fi-tenant-menu-item .fi-dropdown-list-item-image {
    display: none;
}

/* Folding the menu is for computers; phones have the menu button. */
@media (max-width: 1023px) {
    .fi-panel-app .fi-topbar-collapse-sidebar-btn-ctn { display: none !important; }
}

/* Menu: group labels (Studio, Account) in navy, small uppercase. */
.fi-panel-app .fi-sidebar-group-label {
    font-size: 0.71875rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ambex-navy);
}

.dark .fi-panel-app .fi-sidebar-group-label {
    color: #ffffff;
}

.fi-panel-app .fi-sidebar-item-btn {
    border-radius: 999px;
}

.fi-panel-app .fi-sidebar-item-label {
    font-size: 0.9375rem;
    color: var(--ambex-text);
}

.fi-panel-app .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background-color: var(--ambex-navy);
}

.fi-panel-app .fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label,
.fi-panel-app .fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-icon {
    color: #ffffff;
    font-weight: 600;
}

.dark .fi-panel-app .fi-sidebar-item-label {
    color: #cdd9e8;
}

.dark .fi-panel-app .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background-color: var(--ambex-blue);
}
