import type { ReactNode } from "react";

import LeisureVendorAssets from "@/components/layout/LeisureVendorAssets";

/**
 * Stylesheet scope for the 4-step flight request flow (LEIS-961).
 *
 * Steps 1–3 are leisure-ui's booking panes copied verbatim — Bootstrap 5
 * markup plus the bespoke classes in leisure-ui's vendored sheets — so this
 * route loads the same bundle /srp does. See <LeisureVendorAssets/> for the
 * cascade-layer arrangement and the Bootstrap/Tailwind collisions it brings.
 *
 * Deliberately NOT mounted here, unlike app/srp/layout.tsx:
 *
 *   <LayoverDrawerHost/>      nothing on these panes opens the layover drawer.
 *                             PaneReviewFlight only reads FlightLayoverDetail
 *                             for the self-transfer acknowledgement; the "Know
 *                             your layover" link exists solely on the SRP card.
 *   <RequestApprovalHost/>    this flow IS the request. Step 4 is a page
 *                             (LEIS-966), not the overlay, so the host would be
 *                             a second way to file the same request.
 */
export default function FlightRequestLayout({ children }: { children: ReactNode }) {
  return (
    <>
      <LeisureVendorAssets />
      {/*
        Step 4's design sheets. Steps 1–3 are leisure-ui's booking panes; step 4
        is the Request approval design, written against `.fra-*`
        (flight-approval.css) and `.bz-*` (biz-ui.css) like the admin pages and
        the E4 overlay. Both sets live on this one route, which is why the pane
        is wrapped in `[data-corp-modal]` — globals.css resets Bootstrap's
        reboot and rescues icon colour inside that scope, and without it the
        vendored sheets reach into the summary.

        eslint-disable: these are same-origin files served from /public, not the
        third-party CSS the rule is aimed at.
      */}
      {/* eslint-disable-next-line @next/next/no-css-tags */}
      <link rel="stylesheet" href="/assets/css/flight-approval.css" />
      {/* eslint-disable-next-line @next/next/no-css-tags */}
      <link rel="stylesheet" href="/assets/css/biz-ui.css" />
      {children}
    </>
  );
}
