/* Vertex Books brand overrides. Loaded after the app CSS (see app.blade.php).
   Accent navy #001020, hover #12314a. Edit in staging only.
   All app colours read the --color-primary-* variables, so overriding them here re-skins
   every button, link, badge and active state without a rebuild of the Vue bundle. */

:root {
  /* Vertex navy ramp. 50-200 are tints for hover/backgrounds, 500-700 are the actions,
     800-950 are dark text. Kept in the same hue family as #001020. */
  --color-primary-50: #eef2f6;
  --color-primary-100: #dce4ec;
  --color-primary-200: #b9c8d8;
  --color-primary-300: #8ea6bd;
  --color-primary-400: #5b7e9f;
  --color-primary-500: #23527a;
  --color-primary-600: #12314a; /* hover / secondary actions */
  --color-primary-700: #001020; /* the Vertex navy: primary actions, links */
  --color-primary-800: #000d1a;
  --color-primary-900: #000a14;
  --color-primary-950: #00060d;
}

/* The app's default theme body class stays "theme-invoiceshelf" (we do not change settings),
   so no rule here depends on the theme name. */

/* Keep white text readable on both the navy and the hover shade. */
.bg-primary-700,
.bg-primary-600 {
  color: #ffffff;
}

/* ---------------------------------------------------------------------------
   Sidebar logo: InvoiceShelf wordmark -> gold-and-white Vertex logo.
   The sidebar renders an inline <svg> wordmark inside
   <div class="flex items-center shrink-0 px-4 mb-10">. admin_portal_logo only
   controls the HEADER logo, not this one, so the svg is hidden and the Vertex
   mark is drawn in its place. No rebuild needed.

   M-J (job 65): gold-and-white logo, noticeably larger, and the sidebar's own
   background behind it - no box or contrasting backdrop.

   M-J (job 68, 20261204-133918-webchat): "side panel logo needs to update to show
   the vertex logo in gold with the white wording on the panel colour background so
   you only see the logo and words no block around the logo". The old asset was the
   mark alone, so there was no wording. The asset is now a proper horizontal lockup -
   gold mark + white "Vertex" wording - on a fully transparent canvas, generated by
   _scripts/make-lockup.php (82% transparent, nothing behind the art). `background:
   none` guarantees no card, tint or border replaces the sidebar colour.
   ------------------------------------------------------------------------ */
.flex.shrink-0.px-4.mb-10 > svg {
  display: none !important;
}
.flex.shrink-0.px-4.mb-10 {
  /* Sit the logo on the sidebar itself, not on a panel. */
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.flex.shrink-0.px-4.mb-10::after {
  content: "";
  display: block;
  width: 100%;
  /* The lockup is 595x176 (aspect 3.38). Give it the sidebar's full inner width and
     a matching height; `contain` keeps the proportions and never crops the wording. */
  height: 4.4rem;
  background-color: transparent;
  background-image: url("/vertex/logo/vertex-lockup@2x.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  border: 0;
  box-shadow: none;
}
/* The sidebar is only ~15rem wide; make sure the taller logo does not get clipped
   by the scroll area's own padding. */
.flex-1.h-0.pt-5.pb-4.overflow-y-auto {
  padding-top: 0.75rem;
}

/* Loading screen: the rocket orbits whatever is centred in .loader, which is the
   MainLogo inline SVG - the InvoiceShelf WORDMARK. M-J (job 68) asked to remove the
   "invoice shelf" wording, so that SVG is hidden and the gold Vertex mark is drawn
   in its place, same centre and same animation. The rocket, puffs and particles are
   untouched, so the flight path is unchanged. The mark is the only thing on screen -
   no wordmark, no text. */
.loader > svg,
.loader .absolute.block.h-auto.max-w-full {
  display: none !important;
}
.loader {
  position: relative;
}
.loader::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* The mark is 266x391 (portrait, aspect 0.68), so it is taller than it is wide. */
  width: 4.6rem;
  height: 6.8rem;
  background-image: url("/vertex/logo/vertex-mark-gold@2x.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

/* Header logo: the <img> is driven by the admin_portal_logo setting, which the
   deploy sets to the Vertex logo. If it is ever unset the app falls back to the
   InvoiceShelf svg, so hide that fallback only (an <img> is still shown). */
.brand-main > svg {
  display: none !important;
}
.brand-main:not(:has(img))::after {
  content: "";
  display: inline-block;
  width: 9rem;
  height: 2.7rem;
  background-image: url("/vertex/logo/vertex-lockup@2x.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}
