/* Launchpad branding overlay for the stock Bigcapital webapp.
 *
 * Injected into index.html by nginx (see the sub_filter rules in myob.conf)
 * rather than baked into the app, so it survives webapp image upgrades -
 * nothing here depends on the content-hashed JS bundle filename.
 *
 * Bigcapital draws its wordmark as an inline <svg data-icon="bigcapital">
 * (plus a single-colour "-alt" variant) from path data compiled into that
 * bundle. Hiding those paths and painting the Launchpad lockup as a background
 * leaves the element's layout box intact, so surrounding spacing is untouched.
 * This covers every screen the mark appears on at once: login, password reset,
 * invite accept, the setup wizard, drawers, the loading splash and the error
 * boundary.
 */

svg[data-icon='bigcapital'] > path,
svg[data-icon='bigcapital-alt'] > path {
  display: none;
}

svg[data-icon='bigcapital'],
svg[data-icon='bigcapital-alt'] {
  background-image: url('/branding/logo-light-bg.png?v=2');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Blueprint sets .bp4-dark on <body> for the dark theme, and the auth screens
 * force it on regardless of the user's preference - both need the reversed
 * lockup so the navy artwork isn't lost against a dark background. */
body.bp4-dark svg[data-icon='bigcapital'],
body.bp4-dark svg[data-icon='bigcapital-alt'] {
  background-image: url('/branding/logo-dark-bg.png?v=2');
}
