html, body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Syncfusion's fluent2 RTE theme leaves list indentation to the browser's default UA stylesheet rather than
   setting it explicitly — pin it so bulleted/numbered content reliably indents relative to surrounding text. */
.e-richtexteditor .e-rte-content .e-content ul,
.e-richtexteditor .e-rte-content .e-content ol {
    padding-inline-start: 2em;
}

/* Zoom in/out toolbar buttons on HtmlContentEditor scale only the editable content, not the toolbar —
   neither .e-content nor its ancestors set their own font-size, so this cascades normally to every
   descendant (headings still scale proportionally via their existing em-based sizing). */
.html-content-editor-zoom .e-richtexteditor .e-rte-content .e-content {
    font-size: var(--html-editor-zoom-level, 100%);
}

/* Syncfusion's RTE makes <a> tags navigable on click even inside the editable region — harmless for most
   content, but the pack-send email body contains a real link wrapping the unresolved {{SigningLink}}
   placeholder (only substituted with a real URL at send time), so clicking it in the editor would navigate
   to a literal "{{SigningLink}}" path. This only disables mouse interaction with links while editing —
   the persisted HTML (and the link in the actual sent email) is completely unaffected. */
.html-content-editor-zoom .e-richtexteditor .e-rte-content .e-content a {
    pointer-events: none;
}

/* DetailLifecycleRail.razor / LifecycleStageStep.razor (issue #468) — a collapsible, drag-resizable rail
   next to a vertical stage stepper, shared by any page that needs a lifecycle-rail layout (ApplicantDetail.razor
   today, CaseDetail.razor planned). Global rather than component-scoped CSS because these classes are rendered
   by more than one component's own markup — Blazor's per-component CSS isolation wouldn't apply a single
   component's scope attribute across two independent components. */

.lifecycle-rail-handle {
    width: 10px;
    flex-shrink: 0;
    cursor: col-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    touch-action: none;
}

.lifecycle-rail-handle:hover {
    background: var(--mud-palette-lines-default);
}

.lifecycle-rail {
    transition: width 0.15s ease;
}

.lifecycle-rail--dragging {
    transition: none;
}

.lifecycle-stage-header {
    cursor: pointer;
}

.lifecycle-step-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 28px;
    flex-shrink: 0;
}

.lifecycle-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #FFFFFF;
}

.lifecycle-step-dot--done {
    background: var(--mud-palette-success);
}

.lifecycle-step-dot--current {
    background: var(--mud-palette-surface);
    border: 2.5px solid var(--mud-palette-primary);
    color: var(--mud-palette-primary);
}

.lifecycle-step-dot--current .lifecycle-step-dot-center {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.lifecycle-step-dot--locked {
    background: var(--mud-palette-lines-default);
    color: var(--mud-palette-text-disabled);
}

.lifecycle-step-line {
    width: 2px;
    flex: 1;
    min-height: 20px;
    background: var(--mud-palette-lines-default);
    margin: 2px 0;
}

.lifecycle-step-line--filled {
    background: var(--mud-palette-primary);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42N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 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }