/* Nimble: Use the exact osTicket backdrop on all customer pages */
body.customer-background-page {
    background-image: url("/images/customer-support-background.png") !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-color: #d9e8f5 !important;
    min-height: 100vh !important;
}

/* Disable old background overlays */
body.customer-background-page::before,
body.customer-background-page::after {
    display: none !important;
    content: none !important;
}

/* Preserve original white content container */
body.customer-background-page #container {
    background: #ffffff !important;
}

/* Keep ticket form white */
body.customer-background-page:has(#ticketForm) #content,
body.customer-background-page:has(#ticketForm) #ticketForm {
    background: #ffffff !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
}

/* Keep ticket details and conversation white */
body.customer-background-page:has(#ticketInfo) #content,
body.customer-background-page:has(#ticketInfo) #ticketInfo,
body.customer-background-page:has(#ticketThread) #content,
body.customer-background-page:has(#ticketThread) #ticketThread {
    background: #ffffff !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
}

/* Nimble: Final customer background override */
html body.customer-background-page {
    background: #d9e8f5 url("/images/customer-support-background.png") center center / cover no-repeat fixed !important;
    min-height: 100vh !important;
}

html body.customer-background-page::before,
html body.customer-background-page::after {
    display: none !important;
    content: none !important;
}

/* Nimble: Force custom background on customer landing page */
html body.customer-background-page:has(#landing_page) {
    background-image: url("/images/customer-support-background.png") !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-color: #d9e8f5 !important;
}

/* Nimble: Apply custom background to all customer pages */
html body.customer-background-page:has(#ticketForm),
html body.customer-background-page:has(#ticketInfo),
html body.customer-background-page:has(#ticketThread),
html body.customer-background-page:has(#clientLogin) {
    background-image: url("/images/customer-support-background.png") !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-color: #d9e8f5 !important;
}
