/* Font stack with Roboto and system fallbacks for fast initial render */
html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Native lazy loading for images */
img[loading="lazy"] {
    content-visibility: auto;
}

/* Link/button colours and focus ring defined in css/site-theme-fluent.css (bootstrap-external variants removed with that theme) */
/* .content, h1:focus, .valid.modified, .invalid, .validation-message defined in site.css */

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Critical login form styles - loaded synchronously to prevent layout shift */
.login-header {
    flex: 0 0 50px;
    background: linear-gradient(180deg, #1e3a5f 0%, #15293f 100%);
}

.login-content {
    height: 100%;
    flex: 1 1 auto;
}

.loginform-layout {
    margin: auto;
    margin-top: 40px;
    width: 400px;
    max-width: 100%;
    min-height: 280px;
    box-sizing: border-box;
}

.loginform-layout2 {
    margin: auto;
    margin-top: 80px;
    width: 800px;
    max-width: 100%;
    min-height: 400px;
    box-sizing: border-box;
}

/* EntitiesGes (CRM GES screen) layout. LW+CL:25.08.26 — moved out of an inline <style> block in
   Components/Pages/Entities/EntitiesGes.razor, which broke the "no inline <style>" convention.

   Why here and not EntitiesGes.razor.css: all three are applied through CssClass= onto DevExpress
   components, so the class lands on markup rendered by a CHILD component. Blazor CSS isolation only
   rewrites selectors to match a component's OWN elements, so a scoped .ges-fillscreen[b-xxxxx]
   would match nothing at all.

   Why the ges- prefix: the originals were named .image / .fillscreen / .scrollable-form. Because a
   <style> block in markup leaks globally, they were effectively global — but only while EntitiesGes
   was mounted, so a page reached directly never saw them. .fillscreen is applied via CssClass in 10
   razor files; 2 declare it in their own scoped CSS, and the other 7 (InvoiceEmailLog,
   BankSignatoryEditor, EntityDocuments, QueryViewer, ChartOfAccounts, ChartTemplates,
   AssetMappingEditor) were applying a class with NO definition — a no-op. Publishing the bare names
   globally here would have started applying height: calc(100% - 26px) to all 7, a layout change to
   pages nobody asked to touch. Prefixing keeps behaviour byte-identical and stops three very
   generic names (.image especially) sitting in the global namespace.

   Those 7 pages still carry a dead "fillscreen" class in their markup. Pre-existing and harmless,
   but if the intent was for them to fill the screen, that is a real bug worth its own look. */
.ges-image {
    background: #e8eaed;
}

.ges-fillscreen {
    height: calc(100% - 26px);
}

.ges-scrollable-form {
    overflow-x: auto;
}

/* Login background base styles - images load lazily but layout is immediate */
.login-background,
.login-background1,
.login-background2,
.login-background3,
.login-background4,
.login-background5,
.login-background6,
.login-background7,
.login-background8,
.login-background9,
.login-background-echelon {
    width: 100%;
    height: 100%;
    margin-top: 5px;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    border: 1px white solid;
}

/* AM+CL 30.09.26: evidence status chips for relationship evidence - ONE global copy. They render in the
   relationship editor, the grid paperclip popup (portal-rendered, so scoped CSS cannot reach it) and the
   UBO report drawer/panel; the three scoped copies had drifted (the panel lacked rejected/expired).
   Class names come from RelationshipEvidenceRules.ChipCss/StatusCss. */
.ubo-ev-chip { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.ubo-ev-chip-verified { background: #e3f4ea; color: #1f6b3d; }
.ubo-ev-chip-received { background: #fdf2dc; color: #7a5200; }
.ubo-ev-chip-none { background: #f1f3f6; color: #6b7788; }
.ubo-ev-chip-rejected { background: #fbe5e5; color: #a12a2a; }
.ubo-ev-chip-expired { background: #f1e6f7; color: #6a3d85; }
