/* ----------------------------------------------------------------------------
   APP SHELL — the panel's frame (desktop).
   The sidebar and the top bar sit on one soft grey "chrome"; every page's
   content lives in a single surface with large rounded top corners that runs
   to the bottom of the window. Cards inside stay grey, so they read as
   panels on that surface.

   Backpack/Tabler markup:  .page > aside.navbar-vertical
                                  > .page-wrapper > (top bar) + .page-body
   Below 992px the sidebar becomes a top bar, so the frame is not applied.
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  /* Chrome: one grey behind sidebar + top bar (no hairline between them). */
  body:has(.page-wrapper),
  .page {
    background-color: var(--axis-shell-chrome);
  }
  .page {
    min-height: 100vh;
  }
  /* [data-bs-theme] matches sidebar.css's per-theme rule; loading later wins. */
  [data-bs-theme] .navbar-vertical {
    background-color: var(--axis-shell-chrome) !important;
    box-shadow: none !important;
  }

  /* The content surface. */
  .page-wrapper > .page-body {
    margin: 0.25rem 1.5rem 0 0.5rem;
    padding: 1.75rem 1rem 2.5rem;
    background-color: var(--axis-shell-surface);
    border-radius: 2rem 2rem 0 0;
  }
}

[data-bs-theme="light"],
:root {
  --axis-shell-chrome: var(--neutral-100);
  --axis-shell-surface: var(--neutral-0);
}
/* Dark: the surface is lifted one step above the chrome (lighter), so it
   still reads as "in front", and the cards (neutral-950) sit in it like the
   grey cards do on white. */
[data-bs-theme="dark"] {
  --axis-shell-chrome: var(--neutral-1000);
  --axis-shell-surface: var(--neutral-900);
}
