/*
 * The customers list's full-width view (App\Filament\Resources\CustomerResource\Actions\FullWidthAction).
 * The list page adds .cust-full-width to the body while the user has switched it on. The panel has no Tailwind build,
 * so the rules are written out here. Both menus go: the panel sidebar and the Customers cluster's menu beside the table.
 * They apply from Filament's desktop breakpoint (64rem) up: below it the sidebar is
 * an overlay opened from the topbar, and that stays as it is. The topbar stays, so the account menu is reachable.
 */

@media (min-width: 64rem) {
    /* Hidden, not collapsed: the rail's width goes too. */
    .cust-full-width .fi-sidebar {
        display: none;
    }

    /* The Customers cluster's menu, which sits in the page beside the table. */
    .cust-full-width .fi-page-sub-navigation-sidebar-ctn {
        display: none;
    }

    /* The buttons that open or collapse a sidebar that is not there. */
    .cust-full-width .fi-topbar-open-sidebar-btn,
    .cust-full-width .fi-topbar-close-sidebar-btn,
    .cust-full-width .fi-topbar-open-collapse-sidebar-btn,
    .cust-full-width .fi-topbar-close-collapse-sidebar-btn,
    .cust-full-width .fi-layout-sidebar-toggle-btn-ctn {
        display: none;
    }

    /* The content takes the whole width: the panel's content width is already Full, so only the sidebar's offset goes. */
    .cust-full-width .fi-main-ctn {
        width: 100%;
        max-width: none;
        margin-inline-start: 0;
        padding-inline-start: 0;
    }
}
