/* ============================================
   New North Digital — Lightdash White-Label CSS
   ============================================ */

/* --- Header logo: replace bolt with NND icon ---
   Match on the stable part of CSS-module class names: the hash suffix changes
   every Lightdash release (_logoButton_2leuf_9 became _logoButton_ij053_11). */
[class*="_logoButton_"] svg {
    display: none !important;
}
[class*="_logoButton_"] {
    background-image: url('/nnd-icon-header.svg') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    width: 34px !important;
    height: 34px !important;
}

/* --- Replace login page Lightdash logo with NND logo (pure CSS, no jump) --- */
main div:has(> svg[viewBox="0 0 433 91"]) {
    background-image: url('/nnd-logo-login.svg') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    min-height: 40px !important;
    width: 160px !important;
}
main div > svg[viewBox="0 0 433 91"] {
    display: none !important;
}

/* --- Hide ALL Lightdash bolt/logo SVGs elsewhere --- */
svg[viewBox="0 0 43 91"] {
    display: none !important;
}

/* --- Hide page transition bolt spinner (shimmer animation) --- */
[data-testid="page-spinner"],
[class*="_shimmer_"] {
    display: none !important;
}

/* --- Hide Headway "Latest changes" widget --- */
#headway-trigger,
#headway-badge,
[id^="headway"],
#HW_badge,
#HW_badge_cont,
#HW_frame_cont {
    display: none !important;
}

/* --- Hide help/support button --- */
button[aria-label="Help"] {
    display: none !important;
}

/* --- Hide version footer bar --- */
footer[class*="Group-root"],
footer.m_4081bf90,
div[class*="Group-root"]:has(> a[href*="github.com/lightdash"]),
a[href*="github.com/lightdash/lightdash/releases"] {
    display: none !important;
}

/* --- Hide loading bolt animation --- */
img[src*="lightdash-bolt-pixelating"],
img[src*="bolt-pixelating"] {
    display: none !important;
}
