---
import Base from "@/layouts/Base.astro";
import Root from "@/components/AppLayout.jsx";

// Auth is handled by middleware - user available in Astro.locals.user
// Middleware redirects to /login if not authenticated
const user = Astro.locals.user as any;
---
<Base title="TRip Requests" description="TRip Requests / Status">
  <section class="page-section trip-section" transition:animate="none">
    <Root child="qs2.RequestManagement" client:only="react" transition:persist />
  </section>
</Base>

<style is:global>
  /* Override main container width for TRip pages */
  html:has(.trip-section) main {
    max-width: 1400px !important;
    width: 100% !important;
  }
</style>
