/* Preserve Filament's native bar, colors, logo, contents and 64px in-flow reservation. */
.fi-topbar-ctn.ms-fina-motion > .fi-topbar {
    box-sizing: border-box;
    width: 100%;
    margin-inline: auto;
    position: relative;
    top: 0;
    translate: none;
    transition:
        width 1s cubic-bezier(.16, 1, .3, 1),
        margin 1s cubic-bezier(.16, 1, .3, 1),
        border-radius 1s cubic-bezier(.16, 1, .3, 1),
        padding-inline-start 1s cubic-bezier(.16, 1, .3, 1),
        padding-inline-end 1s cubic-bezier(.16, 1, .3, 1),
        top 1s cubic-bezier(.16, 1, .3, 1),
        box-shadow 700ms cubic-bezier(.16, 1, .3, 1),
        background-color 700ms cubic-bezier(.16, 1, .3, 1),
        border-color 700ms cubic-bezier(.16, 1, .3, 1),
        backdrop-filter 700ms cubic-bezier(.16, 1, .3, 1);
}


.fi-topbar-ctn.ms-fina-motion .fi-topbar-end {
    min-width: 0;
}

.fi-topbar-ctn.ms-fina-motion .fi-global-search-ctn,
.fi-topbar-ctn.ms-fina-motion .fi-global-search,
.fi-topbar-ctn.ms-fina-motion .fi-global-search-field,
.fi-topbar-ctn.ms-fina-motion .fi-global-search-field .fi-input-wrp {
    min-width: 0;
}

.fi-topbar-ctn.ms-fina-motion .fi-icon-btn,
.fi-topbar-ctn.ms-fina-motion .fi-user-menu-trigger {
    box-sizing: border-box;
    flex: 0 0 44px;
    inline-size: 44px;
    min-inline-size: 44px;
    block-size: 44px;
    min-block-size: 44px;
    margin: 0 !important;
}

.fi-topbar-ctn.ms-fina-motion .ct-theme-toggle,
.fi-topbar-ctn.ms-fina-motion .fi-btn,
.fi-topbar-ctn.ms-fina-motion .fi-topbar-item-btn {
    box-sizing: border-box;
    min-block-size: 44px;
}

.fi-topbar-ctn.ms-fina-motion .fi-global-search-field .fi-input {
    box-sizing: border-box;
    min-block-size: 44px;
}

.fi-dropdown-panel .fi-dropdown-list-item,
.fi-global-search-results-ctn .fi-global-search-result-link {
    box-sizing: border-box;
    min-block-size: 44px;
    white-space: normal;
}

.fi-dropdown-panel .fi-dropdown-list-item-label,
.fi-global-search-results-ctn .fi-global-search-result-heading,
.fi-global-search-results-ctn .fi-global-search-result-detail-value {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

.fi-dropdown-panel .fi-dropdown-list-item-label {
    line-height: 1.35;
    overflow: visible;
    text-overflow: clip;
}


@media (prefers-reduced-motion: reduce) {
    .fi-topbar-ctn.ms-fina-motion > .fi-topbar {
        transition: none !important;
    }
}

@media print {
    .fi-topbar-ctn.ms-fina-motion > .fi-topbar,
    .fi-topbar-ctn.ms-fina-motion.ms-fina-motion-compact > .fi-topbar {
        width: 100%;
        border-radius: 0;
        top: 0;
        translate: none;
    }
}

/* Shared Filament button family, including the native login and MFA pages. */
.fi-btn {
    box-sizing: border-box;
    min-block-size: 44px;
    min-inline-size: 44px;
    max-inline-size: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}



/* Keep the native 32px mark; only enlarge its existing link hit area. */
.fi-topbar-ctn.ms-fina-motion .fi-topbar-start > a{display:inline-flex;align-items:center;min-block-size:44px}

/* The native collapse-control container is36px; match its44px control to prevent overlap with the existing logo link. */
.fi-topbar-ctn.ms-fina-motion .fi-topbar-collapse-sidebar-btn-ctn{width:44px;min-width:44px;flex-shrink:0}

/* Native theme text is hidden below640px; keep its remaining icon hit area44px wide. */
.fi-topbar-ctn.ms-fina-motion .ct-theme-toggle{min-inline-size:44px}

/* Native x-float.teleport uses fixed positioning without moving the panel in the DOM.
   Keep the nav free of transform/filter containing blocks. Its original warm-paper
   92% material and10px blur paint on a non-interactive sibling pseudo-element. */
.fi-topbar-ctn.ms-fina-motion > .fi-topbar{background:transparent;backdrop-filter:none;isolation:isolate}
.fi-topbar-ctn.ms-fina-motion > .fi-topbar::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;background:color-mix(in srgb,var(--ct-bg) 92%,transparent);backdrop-filter:blur(10px);transition:background-color 700ms cubic-bezier(.16,1,.3,1),backdrop-filter 700ms cubic-bezier(.16,1,.3,1)}
@media(prefers-reduced-motion:reduce){.fi-topbar-ctn.ms-fina-motion > .fi-topbar::before{transition:none!important}}

/* Reuse the native mobile X inside the native sidebar; do not create another menu. */
.fi-main-sidebar .ms-fina-sidebar-close{width:44px;min-width:44px;height:44px;min-height:44px;flex-shrink:0;margin:0!important}
.ms-fina-sidebar-locked{overflow:hidden!important;padding-inline-end:calc(var(--ms-fina-sidebar-base-padding,0px) + var(--ms-fina-sidebar-scrollbar-gap,0px))!important}
