/*
 * Topbar global search: center it and give it real width (CAM-1275).
 *
 * Filament has no native config for the topbar search position (only Topbar vs
 * Sidebar) or width, so this is done in plain CSS against Filament's own class
 * names. This panel uses sidebar navigation, so the middle of the topbar is
 * empty — the search sits there cleanly without overlapping nav items.
 *
 * Desktop only. Below 1024px we leave Filament's default (right-aligned, in
 * normal flow) so the field never collides with the sidebar toggle in tight
 * widths. Rebuild Filament's assets after editing this file.
 */
@media (min-width: 1024px) {
    nav.fi-topbar {
        position: relative;
    }

    nav.fi-topbar .fi-global-search-ctn {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: min(40rem, 45vw);
    }
}
