/* Variables */
:root {
    --ds-bg:            #fafaf9; /*stone-50*/
    --ds-surface:       #ffffff;
    --ds-border:        #e5e7eb;
    --ds-shadow:        0 1px 2px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.05);
    --ds-shadow-lg:     0 4px 6px rgba(0,0,0,0.05), 0 8px 16px rgba(0,0,0,0.07);
    --ds-radius:        8px;
    --ds-radius-lg:     12px;
    --ds-text:          #111827;
    --ds-text-muted:    #6b7280;
    --ds-text-subtle:   #9ca3af;
    --ds-accent:        #35529e;
    --ds-accent-bg:     #eef2ff;
    --ds-accent-hover:  #f1f3fa;
    --ds-success:       #16a34a;
    --ds-error:         #dc2626;
    --ds-warning:       #d97706;
    --ds-info:          #2563eb;
    --ds-nav-width:     270px;
}

/* Load Fonts internally dsgvo (ip protection) */
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* main elements style */
html, body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
    font-size: 14px;
    color: var(--ds-text);
    background-color: var(--ds-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1:focus {
    outline: none;
}

code {
    color: #c02d76;
}

/* navbar */

/* Page shell background */
.mud-layout {
    background-color: var(--ds-bg) !important;
}

/* Main content area — always white, stretch to fill remaining viewport height */
.mud-main-content {
    --mud-palette-background: #ffffff;
    background-color: #ffffff !important;
    min-height: 100vh;
}

/* Nav logo link — block display, no color/underline bleed onto SVG */
.mud-drawer .mud-link {
    display: block;
    line-height: 0;
    text-decoration: none !important;
    color: unset !important;
    opacity: 1 !important;
}

/* AppBar — white, thin border, no drop shadow */
.mud-appbar {
    background-color: var(--ds-surface) !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--ds-border) !important;
    color: var(--ds-text) !important;
}

/* Drawer — stone-50 panel, thin right border, no shadow */
.mud-drawer {
    background-color: var(--ds-bg) !important;
    border-right: 1px solid var(--ds-border) !important;
    box-shadow: none !important;
}

.mud-drawer-content {
    background-color: var(--ds-bg) !important;
}

/* ─────────────────────────────────────────────────────────────
   5. CARDS & PAPER
   ───────────────────────────────────────────────────────────── */

/* Tone down all elevation shadows to match the design */
.mud-paper {
    background-color: var(--ds-surface) !important;
    border: 1px solid var(--ds-border);
    box-shadow: var(--ds-shadow) !important;
    border-radius: var(--ds-radius) !important;
}

/* Elevation 0 — flat, border only */
.mud-elevation-0.mud-paper {
    box-shadow: none !important;
    border: 1px solid var(--ds-border);
}

/* Dialogs and popovers — softer, larger shadow */
.mud-dialog .mud-paper,
.mud-popover-paper {
    box-shadow: var(--ds-shadow-lg) !important;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg) !important;
}

/* Snackbar sits outside the paper override below */
.mud-snackbar .mud-paper {
    border: none !important;
    box-shadow: none !important;
}

/* ─────────────────────────────────────────────────────────────
   6. NAVIGATION
   ───────────────────────────────────────────────────────────── */

/* Base nav link */
.mud-nav-link {
    border-radius: 6px !important;
    margin-bottom: 2px !important;
    font-size: 14px;
    color: var(--ds-text-muted) !important;
    font-weight: 400;
    transition: background 0.15s ease, color 0.15s ease !important;
    padding: 9px 12px !important;
    line-height: 1.4 !important;
}

/* Active state — white card with border + subtle shadow */
.mud-navmenu.mud-navmenu-primary .mud-nav-link.active:not(.mud-nav-link-disabled) {
    background-color: #ffffff !important;
    box-shadow: inset 0 0 0 1px var(--ds-border), 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04) !important;
    color: var(--ds-text) !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    padding: 9px 12px !important;
}

/* Hover state — barely-there gray */
.mud-navmenu.mud-navmenu-primary .mud-nav-link:hover:not(.mud-nav-link-disabled):not(.active) {
    background-color: #f9fafb !important;
    color: var(--ds-text) !important;
    border-radius: 6px !important;
    padding: 9px 12px !important;
}

/* Nav grid — zero gutters, tight icon column, no wrapping */
.mud-nav-link .mud-grid {
    align-items: center !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    gap: 0 !important;
}

.mud-nav-link .mud-grid .mud-grid-item {
    padding: 0 !important;
}

.mud-nav-link .mud-grid .mud-grid-item-xs-2 {
    flex: 0 0 34px !important;
    max-width: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.mud-nav-link .mud-grid .mud-grid-item-xs-10 {
    flex: 1 1 0 !important;
    max-width: 100% !important;
}

/* SVG — 20px, smooth rendering, GPU compositing */
.mud-nav-link svg {
    width: 20px !important;
    height: 20px !important;
    display: block;
    flex-shrink: 0;
    shape-rendering: geometricPrecision;
    transform: translateZ(0);
}

/* Override only hardcoded primary-color strokes on custom SVGs — MudBlazor icons unaffected */
.mud-nav-link svg [stroke="#35529e"],
.mud-nav-link svg [stroke="#35529E"] {
    stroke: currentColor !important;
}

/* Override only hardcoded primary-color fills on custom SVGs — MudBlazor icons unaffected */
.mud-nav-link svg [fill="#35529e"],
.mud-nav-link svg [fill="#35529E"] {
    fill: currentColor !important;
}

/* All icons inside nav links — follow text color, not primary */
.mud-nav-link .mud-icon-root {
    color: currentColor !important;
}

/* MudNavGroup expand arrow — neutral, not primary color */
.mud-nav-group-header .mud-icon-root {
    color: var(--ds-text-subtle) !important;
}

/* MudNavGroup — inherit drawer background */
.mud-nav-group-header,
.mud-nav-group-content,
.mud-nav-group {
    background-color: transparent !important;
}

/* MudNavGroup header — same weight/size as nav items, not a label */
.mud-nav-group .mud-nav-link {
    font-weight: 400;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ds-text-muted) !important;
}

/* MudNavGroup submenu — pull children back to align with parent */
.mud-nav-group-content {
    padding-left: 0 !important;
}

.mud-nav-group-content .mud-nav-link {
    padding-left: 12px !important;
}

/* Badge positioning */
.mud-badge.mud-badge-top.right.mud-badge-overlap {
    top: 2px !important;
    left: auto !important;
}

/* ─────────────────────────────────────────────────────────────
   7. BUTTONS
   ───────────────────────────────────────────────────────────── */

/* All MudButton — slightly tighter, clean radius */
.mud-button-root {
    border-radius: var(--ds-radius) !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Filled primary — darker base, shadow lift on hover */
.mud-button-filled-primary {
    background-color: var(--mud-palette-primary-darken) !important;
    transition: box-shadow 0.2s ease !important;
}

.mud-button-filled-primary:hover {
    background-color: var(--mud-palette-primary-darken) !important;
    box-shadow: 0 3px 10px rgba(43, 65, 130, 0.18) !important;
}

/* Outlined buttons — thinner border */
.mud-button-outlined {
    border-width: 1px !important;
}

/* Icon buttons */
.mud-icon-button {
    border-radius: var(--ds-radius) !important;
    transition: background-color 0.15s ease !important;
}

/* Appbar toggle — flat hover matching nav-link hover (#f9fafb, no overlay) */
.appbar-toggle-btn:hover {
    background-color: #f9fafb !important;
    color: var(--ds-text) !important;
}

/* Kill MudBlazor's circular ripple state-layers on icon buttons entirely */
.mud-icon-button::before,
.mud-icon-button::after {
    display: none !important;
}

/* Restore our own hover — MudBlazor would normally set this via ::before */
.mud-icon-button:hover {
    background-color: transparent !important;
}

.appbar-toggle-btn:hover {
    background-color: #f9fafb !important;
}

/* ─────────────────────────────────────────────────────────────
   BREADCRUMB
   ───────────────────────────────────────────────────────────── */

/* Vertical pipe separator between toggle and breadcrumb */
.appbar-pipe {
    display: inline-block;
    width: 1px;
    height: 18px;
    background-color: var(--ds-border);
    margin: 0 10px;
    flex-shrink: 0;
    align-self: center;
}

.ds-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius);
    background: var(--ds-surface);
    padding: 3px 6px;
    font-size: 14px;
    line-height: 1;
}

.ds-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 5px;
    color: var(--ds-text-muted);
    text-decoration: none;
    font-weight: 400;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.ds-breadcrumb-item:hover {
    background-color: #f9fafb;
    color: var(--ds-text);
    text-decoration: none;
}

.ds-breadcrumb-item.active {
    color: var(--ds-text);
    font-weight: 500;
    cursor: default;
    pointer-events: none;
}

.ds-breadcrumb-icon {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    color: var(--ds-text-subtle);
    margin-right: 4px;
    flex-shrink: 0;
}

.ds-breadcrumb-sep {
    color: var(--ds-text-subtle);
    font-size: 14px;
    padding: 0 1px;
    user-select: none;
    line-height: 1;
}

/* ─────────────────────────────────────────────────────────────
   8. TABS  —  shadcn segment-control style with sliding pill
   ───────────────────────────────────────────────────────────── */

/* Outer header row: no border, just spacing below.
   overflow:visible so the active tab shadow is not clipped. */
.mud-tabs-header {
    border-bottom: none !important;
    padding-bottom: 12px !important;
    overflow: visible !important;
}

.mud-tabs-tabbar-inner {
    overflow: visible !important;
}

/* Hide MudBlazor's left/right scroll buttons — they render as a pipe when unused */
.mud-tabs-scroll-button {
    display: none !important;
}

/* Inner tab bar: gray oval container — position:relative lets the slider sit inside */
.mud-tabs-tabbar-inner {
    position: relative !important;
    background-color: var(--ds-bg) !important;
    border-radius: 999px !important;
    padding: 5px 6px !important;
    gap: 0 !important;
    display: inline-flex !important;
}

/* Sliding white pill — repurpose MudBlazor's built-in slider as the active background */
.mud-tab-slider {
    height: calc(100% - 6px) !important;
    top: 3px !important;
    border-radius: 999px !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    transition: left 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Inactive tab */
.mud-tabs .mud-tab {
    position: relative !important;
    z-index: 1 !important;
    border-radius: 999px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    color: var(--ds-text-muted) !important;
    padding: 6px 20px !important;
    min-width: 0 !important;
    min-height: 36px !important;
    height: 36px !important;
    background: transparent !important;
    transition: color 0.2s ease !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
}

.mud-tabs .mud-tab:hover:not(.mud-tab-active) {
    color: var(--ds-text) !important;
}

/* Kill the gray press/active flash on tab clicks */
.mud-tabs .mud-tab:active,
.mud-tabs .mud-tab:focus {
    background-color: transparent !important;
}

.mud-tabs .mud-tab .mud-ripple {
    display: none !important;
}

/* Active tab — thin border only */
.mud-tab.mud-tab-active {
    background-color: transparent !important;
    color: var(--ds-text) !important;
    font-weight: 500 !important;
    border: 1px solid var(--ds-border) !important;
    box-shadow: none !important;
}

/* ─────────────────────────────────────────────────────────────
   9. SNACKBAR
   ───────────────────────────────────────────────────────────── */

.mud-snackbar {
    border-radius: var(--ds-radius) !important;
    box-shadow: var(--ds-shadow-lg) !important;
    font-family: inherit !important;
    font-size: 14px !important;
    min-width: 300px;
}

/* White surface with colored left border */
.mud-snackbar.mud-alert-filled-success,
.mud-snackbar.mud-alert-filled-error,
.mud-snackbar.mud-alert-filled-warning,
.mud-snackbar.mud-alert-filled-info,
.mud-snackbar.mud-alert-filled-normal {
    background-color: var(--ds-surface) !important;
    color: var(--ds-text) !important;
    border: 1px solid var(--ds-border) !important;
    border-left-width: 4px !important;
}

.mud-snackbar.mud-alert-filled-success {
    border-left-color: var(--ds-success) !important;
}

.mud-snackbar.mud-alert-filled-error {
    border-left-color: var(--ds-error) !important;
}

.mud-snackbar.mud-alert-filled-warning {
    border-left-color: var(--ds-warning) !important;
}

.mud-snackbar.mud-alert-filled-info {
    border-left-color: var(--ds-info) !important;
}

.mud-snackbar.mud-alert-filled-normal {
    border-left-color: var(--ds-accent) !important;
}

/* Icon color per severity */
.mud-snackbar.mud-alert-filled-success .mud-snackbar-content .mud-icon-root { color: var(--ds-success) !important; }
.mud-snackbar.mud-alert-filled-error   .mud-snackbar-content .mud-icon-root { color: var(--ds-error)   !important; }
.mud-snackbar.mud-alert-filled-warning .mud-snackbar-content .mud-icon-root { color: var(--ds-warning) !important; }
.mud-snackbar.mud-alert-filled-info    .mud-snackbar-content .mud-icon-root { color: var(--ds-info)    !important; }

/* ─────────────────────────────────────────────────────────────
   10. DIALOGS
   ───────────────────────────────────────────────────────────── */

.mud-dialog {
    border-radius: var(--ds-radius-lg) !important;
    box-shadow: var(--ds-shadow-lg) !important;
}

.mud-dialog-title {
    font-weight: 600 !important;
    font-size: 16px !important;
    color: var(--ds-text) !important;
    border-bottom: 1px solid var(--ds-border);
    padding-bottom: 12px !important;
}

/* ─────────────────────────────────────────────────────────────
   11. DATE / TIME PICKER
   ───────────────────────────────────────────────────────────── */

/* Our global .mud-paper rule adds border:1px solid var(--ds-border) to every
   MudPaper, which shows as a white hairline at the boundary between the
   primary-coloured picker header and the white calendar grid.
   Strip all borders/shadows from the header itself and clip the popup. */
.mud-picker-inline .mud-paper {
    overflow: hidden !important;
}

.mud-picker .mud-picker-header,
.mud-picker .mud-picker-header.mud-paper {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* ─────────────────────────────────────────────────────────────
   12. FORMS  —  Bootstrap floating labels + validation
   ───────────────────────────────────────────────────────────── */

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* ─────────────────────────────────────────────────────────────
   12. UTILITIES
   ───────────────────────────────────────────────────────────── */

.disabled-card {
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(40%);
    cursor: not-allowed;
}

.qm-dropzone {
    border: 2px dashed var(--ds-border) !important;
    border-radius: var(--ds-radius-lg) !important;
    padding: 20px;
    transition: border-color .2s ease, background .2s ease;
}

    .qm-dropzone:hover {
        border: 2px dashed #6f7175 !important;
        background-color: var(--ds-accent-bg);
        transition: border-color .2s ease, background .4s ease;
    }

.qm-hover {
    background: var(--ds-accent-hover);
    border-color: var(--ds-accent);
}

.qm-icon {
    opacity: .7;
}

.qm-title {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--ds-text);
}

.qm-sub {
    color: var(--ds-text-muted);
    font-size: 13px;
}

@media (max-width: 960px) {
    .order-xs-1 { order: 1; }
    .order-xs-2 { order: 2; }
    .order-xs-3 { order: 3; }
}

/* ─────────────────────────────────────────────────────────────
   13. BLAZOR FRAMEWORK
   ───────────────────────────────────────────────────────────── */

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.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."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: var(--ds-accent);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

/* ─────────────────────────────────────────────────────────────
   14. FUNERAL PAGE
   ───────────────────────────────────────────────────────────── */

/* Page wrapper */
.funeral-page {
    padding: 24px 28px;
}

/* Header row: title left, toolbar right */
.funeral-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.funeral-page-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--ds-text) !important;
    letter-spacing: -0.02em !important;
}

/* Tabs row wrapper — positions toolbar flush-right alongside the tab pill bar */
.funeral-tabs-wrapper {
    position: relative;
}

/* Toolbar floats to the right of the tab pill bar */
.funeral-toolbar-inline {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 46px; /* 5px top padding + 36px tab height + 5px bottom padding */
}

.funeral-search-inline {
    min-width: 220px !important;
}

/* Force Dense outlined field height to match Size.Medium buttons */
.funeral-toolbar-inline .mud-input-outlined-input-with-label,
.funeral-toolbar-inline .mud-input-outlined {
    height: 36px !important;
}

.funeral-toolbar-inline .mud-input-control {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ── Card shell ── */
.funeral-card {
    position: relative;
    background: var(--ds-surface);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    overflow: visible;
    box-shadow: var(--ds-shadow);
    transition: box-shadow 0.2s ease, transform 0.18s ease;
}

.funeral-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* ── Photo area ── */
.funeral-card-photo {
    position: relative;
    height: 150px;
    border-radius: var(--ds-radius-lg) var(--ds-radius-lg) 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(160deg, #f3f4f6 0%, #ffffff 100%);
    border-bottom: 1px solid var(--ds-border);
}

/* White circle avatar */
.funeral-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(0,0,0,0.05);
}

.funeral-card-initials {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -1px;
    user-select: none;
    line-height: 1;
    color: #9ca3af;
}

.funeral-card-case {
    position: absolute;
    top: 10px;
    left: 12px;
    background: #ffffff;
    color: var(--ds-text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 999px;
    letter-spacing: 0.3px;
    border: 1px solid var(--ds-border);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.funeral-card-contagious {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 999px;
}

/* ── Action buttons at the photo/details junction ── */
.funeral-card-actions {
    position: absolute;
    margin-left: 30%;
    top: 150px; /* must match .funeral-card-photo height */
    transform: translateX(-50%) translateY(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.funeral-action-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    border: 2px solid var(--ds-surface) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.funeral-action-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.26) !important;
}

.funeral-action-view              { background-color: #dbeafe !important; color: #1e40af !important; }
.funeral-action-view:hover        { background-color: #bfdbfe !important; }
.funeral-action-tasks             { background-color: #fef3c7 !important; color: #92400e !important; }
.funeral-action-tasks:hover       { background-color: #fde68a !important; }
.funeral-action-docs              { background-color: #dcfce7 !important; color: #065f46 !important; }
.funeral-action-docs:hover        { background-color: #bbf7d0 !important; }

/* ── Details area ── */
.funeral-card-details {
    padding: 26px 16px 16px;
    text-align: center;
}

.funeral-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ds-text);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.funeral-card-dates {
    font-size: 12px;
    color: var(--ds-text-muted);
    line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────
   GENERIC PAGE SHELL  —  reusable across all pages
   ───────────────────────────────────────────────────────────── */

.ds-page {
    padding: 24px 28px;
}

.ds-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.ds-page-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--ds-text) !important;
    letter-spacing: -0.02em !important;
}

/* ─────────────────────────────────────────────────────────────
   FORM CARDS  —  shared section card for create/edit forms
   ───────────────────────────────────────────────────────────── */

.ds-form-card {
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    padding: 20px 24px 24px;
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow);
}

.ds-form-card-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ds-text-muted);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ds-border);
    margin-bottom: 4px;
}

/* Action bar above form grid */
.ds-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* Account profile avatar */
.account-avatar-preview {
    margin-top: 14px;
    border: 1px solid var(--ds-border);
    border-radius: 50%;
    background: var(--ds-bg);
    width: 120px;
    height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.account-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.account-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Logo preview box */
.company-logo-preview {
    margin-top: 14px;
    border: 1px dashed var(--ds-border);
    border-radius: var(--ds-radius);
    background: var(--ds-bg);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.company-logo-preview-img {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    display: block;
    padding: 8px;
}

.company-logo-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* ─────────────────────────────────────────────────────────────
   COMPANY CARDS  —  CompanyListComponent
   ───────────────────────────────────────────────────────────── */

.company-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.company-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 0;
}

/* Card shell — matches funeral-card pattern */
.company-card {
    position: relative;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    box-shadow: var(--ds-shadow);
    background: var(--ds-surface);
    overflow: visible;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.company-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

/* Top brand strip */
.company-card-brand {
    height: 100px;
    background: linear-gradient(160deg, #f3f4f6 0%, #ffffff 100%);
    border-bottom: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg) var(--ds-radius-lg) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Brand logo — fills the entire brand strip when present */
.company-card-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--ds-radius-lg) var(--ds-radius-lg) 0 0;
}

/* Large company initial */
.company-card-initial {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #9ca3af;
}

/* Action buttons centred on the brand/details boundary */
.company-card-actions {
    position: absolute;
    left: 50%;
    top: 100px;
    transform: translateX(-50%) translateY(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

/* Details section */
.company-card-details {
    padding: 22px 16px 16px;
}

.company-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ds-text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-card-address {
    font-size: 12px;
    color: var(--ds-text-muted);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-card-contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.company-card-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ds-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-contact-icon {
    font-size: 14px !important;
    color: var(--ds-text-subtle);
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   STAT CARDS  —  StammdatenComponent
   ───────────────────────────────────────────────────────────── */

.stat-card {
    position: relative;
    border-radius: var(--ds-radius-lg);
    padding: 28px 24px 20px;
    min-height: 156px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    /*border: none;*/
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Card body: label on top, number below */
.stat-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.stat-card-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    opacity: 0.65;
}

.stat-card-number {
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -3px;
}

/* Decorative icon — large, semi-transparent, bottom-right */
.stat-card-icon {
    position: absolute !important;
    bottom: -5px !important;
    right: 5px !important;
    font-size: 108px !important;
    width: 108px !important;
    height: 108px !important;
    opacity: 0.68 !important;
    color: #ffffff !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

/* ── Colour themes ── */

/* Blue — Kunden */
.stat-card-blue {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e3a8a;
}

/* Slate — Verstorbene */
.stat-card-slate {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
}

/* Amber — Lieferanten */
.stat-card-amber {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #78350f;
}

/* Emerald — Mitarbeiter */
.stat-card-emerald {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #14532d;
}

/* Purple — Ressourcen */
.stat-card-purple {
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
    color: #4c1d95;
}

/* Cyan — Leistungen */
.stat-card-cyan {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    color: #164e63;
}

/* ─────────────────────────────────────────────────────────────
   15. FUNERAL DETAILS PAGE  —  FuneralDetailsComponent
   ───────────────────────────────────────────────────────────── */

/* Title row: name + contagious badge inline */
.funeral-details-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Field labels above dense inputs */
.funeral-field-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--ds-text-muted);
    display: block;
    margin-bottom: 2px;
}

/* Mid-section divider title (e.g. Familiensituation inside a card) */
.ds-subsection-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--ds-text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-top: 14px;
    padding-bottom: 10px;
    margin-top: 8px;
    border-top: 1px solid var(--ds-border);
}

/* Info panel — right sidebar contact/entity block */
.ds-info-panel {
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    padding: 14px 16px;
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow);
    margin-top: 12px;
}

.ds-info-panel-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ds-border);
}

.ds-info-panel-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ds-info-panel-row:first-child {
    padding-top: 0;
}

.ds-info-panel-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ds-text);
    margin-bottom: 4px;
}

.ds-info-panel-value {
    font-size: 13px;
    color: var(--ds-text-muted);
    line-height: 1.5;
}

/* ── Dialog standard ──────────────────────────────────────── */

.mud-dialog {
    border-radius: var(--ds-radius-lg) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06) !important;
}

.mud-dialog .mud-dialog-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--ds-text) !important;
    padding: 18px 20px 14px !important;
    border-bottom: 1px solid var(--ds-border);
}

.mud-dialog .mud-dialog-content {
    padding: 20px !important;
}

/* Stack dialog fields with spacing */
.mud-dialog .mud-dialog-content .mud-input-control {
    margin-top: 12px;
}

.mud-dialog .mud-dialog-content .mud-input-control:first-child {
    margin-top: 0;
}

.mud-dialog .mud-dialog-actions {
    padding: 12px 20px !important;
    border-top: 1px solid var(--ds-border);
    gap: 8px;
}

/* ─────────────────────────────────────────────────────────────
   16. DS TABLE  —  shared modern table style
   ───────────────────────────────────────────────────────────── */

/* Wrapper card */
.ds-table-wrap {
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    box-shadow: var(--ds-shadow);
    overflow: hidden;
    background: var(--ds-surface);
    margin-top: 16px;
}

/* Kill MudBlazor elevation / borders */
.ds-table-wrap .mud-table-container,
.ds-table-wrap .mud-paper {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

/* ── Toolbar ── */
.ds-table-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--ds-border);
    background: var(--ds-surface);
}

.ds-table-toolbar .mud-input-outlined .mud-input-outlined-border {
    border-color: var(--ds-border) !important;
}

/* ── Header row ── */
.ds-table-wrap .mud-table-head .mud-table-cell {
    background: var(--ds-bg) !important;
    color: var(--ds-text-muted) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    padding: 10px 16px !important;
    border-bottom: 1px solid var(--ds-border) !important;
    white-space: nowrap;
}

/* ── Body rows ── */
.ds-table-wrap .mud-table-body .mud-table-row {
    transition: background 0.12s ease;
}

.ds-table-wrap .mud-table-body .mud-table-row:hover {
    background: #f9fafb !important;
}

.ds-table-wrap .mud-table-body .mud-table-cell {
    font-size: 14px !important;
    color: var(--ds-text) !important;
    padding: 11px 16px !important;
    border-bottom: 1px solid var(--ds-border) !important;
}

/* Last row — no divider */
.ds-table-wrap .mud-table-body .mud-table-row:last-child .mud-table-cell {
    border-bottom: none !important;
}

/* ── Row action button ── */
.ds-table-row-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--ds-radius);
    background: var(--ds-bg);
    border: 1px solid var(--ds-border);
    color: var(--ds-text-muted);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.ds-table-row-btn:hover {
    background: #f9fafb;
    color: var(--ds-accent);
    border-color: var(--ds-accent);
}

.ds-table-row-btn .mud-icon-root {
    font-size: 16px !important;
}

/* Kill MudIconButton states inside ds-table-row-btn */
.ds-table-row-btn.mud-icon-button::before,
.ds-table-row-btn.mud-icon-button::after { display: none !important; }
.ds-table-row-btn.mud-icon-button:hover  { background: #f9fafb !important; }

/* ── Pager ── */
.ds-table-wrap .mud-table-pagination {
    border-top: 1px solid var(--ds-border) !important;
    background: var(--ds-bg) !important;
    font-size: 13px !important;
    color: var(--ds-text-muted) !important;
    padding: 2px 8px !important;
}

/* ─────────────────────────────────────────────────────────────
   16. NOTIFICATION LIST
   ───────────────────────────────────────────────────────────── */

.notification-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ds-border);
    cursor: pointer;
    transition: background 0.12s ease;
    background: var(--ds-surface);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: #f9fafb;
}

.notification-item.unread {
    background: var(--ds-accent-bg);
}

.notification-item.unread:hover {
    background: #e0e7ff;
}

.notification-item-avatar {
    flex-shrink: 0;
    align-self: center;
}

.notification-item-body {
    flex: 1;
    min-width: 0;
}

.notification-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--ds-text);
    margin-bottom: 2px;
}

.notification-item-message {
    font-size: 13px;
    color: var(--ds-text-muted);
    margin-bottom: 2px;
}

.notification-item-time {
    font-size: 12px;
    color: var(--ds-text-subtle);
}

.notification-item-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ds-accent);
}

/* ─────────────────────────────────────────────────────────────
   17. PROTOCOL — appointment type nav links
   ───────────────────────────────────────────────────────────── */

.appt-link {
    border-radius: var(--ds-radius);
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: background-color 180ms ease, color 180ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.appt-link:hover {
    transform: translateX(2px);
}

.appt-link:hover,
.appt-link.appt-link-active {
    color: white !important;
    background-color: var(--ds-accent) !important;
    box-shadow: 0 6px 16px rgba(53, 82, 158, 0.35);
}

.appt-link:active {
    transform: scale(0.97);
}

/* ─────────────────────────────────────────────────────────────
   18. MONACO EDITOR
   ───────────────────────────────────────────────────────────── */

#my-editor-id,
.my-editor-class,
.monaco-editor-container {
    width: 100%;
    height: 100%;
}

/* ─────────────────────────────────────────────────────────────
   17. LOGIN PAGE  —  LoginLayout + LoginComponent
   ───────────────────────────────────────────────────────────── */

@keyframes lb-float {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50%       { transform: translateY(-12px) rotate(-1deg); }
}
@keyframes lb-float-b {
    0%, 100% { transform: translateY(0px) rotate(1.5deg); }
    50%       { transform: translateY(-10px) rotate(1.5deg); }
}
@keyframes lb-float-c {
    0%, 100% { transform: translateY(0px) rotate(-0.5deg); }
    50%       { transform: translateY(-8px) rotate(-0.5deg); }
}
@keyframes lb-float-d {
    0%, 100% { transform: translateY(0px) rotate(1deg); }
    50%       { transform: translateY(-9px) rotate(1deg); }
}
@keyframes lb-fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes lb-pulse-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.08); }
}

/* Shell */
.login-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Brand panel */
.login-brand {
    width: 56%;
    flex-shrink: 0;
    background-color: #111827;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 28px 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 12px 0 48px rgba(0, 0, 0, 0.22), 4px 0 16px rgba(0, 0, 0, 0.12);
    z-index: 1;
}

.login-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 0% 0%,    rgba(86, 120, 210, 0.65) 0%, transparent 35%),
        radial-gradient(circle at 100% 100%, rgba(65, 129, 191, 0.55) 0%, transparent 38%),
        radial-gradient(circle at 55% 45%,  rgba(54, 80, 160, 0.40)  0%, transparent 55%),
        radial-gradient(ellipse 120% 100% at 20% 80%, rgba(110, 86, 207, 0.48) 0%, transparent 42%);
    filter: blur(72px);
    pointer-events: none;
}

.login-brand::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.16;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch' seed='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' fill='white'/%3E%3C/svg%3E");
    pointer-events: none;
}

.lb-glass-bar, .lb-body, .lb-trusted {
    position: relative;
    z-index: 2;
}

/* Glass bar */
.lb-glass-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 14px 24px;
    animation: lb-fadeInUp 0.6s ease-out forwards;
}

.lb-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.lb-company-name {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lb-bar-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 16px;
    margin: 0 2px;
}

.lb-bar-tagline {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    text-transform: capitalize;
    font-weight: 700;
    margin-left: auto;
}

/* Body */
.lb-body {
    flex: 1;
    display: flex;
    gap: 20px;
    min-height: 0;
    overflow: hidden;
}

.lb-left {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: lb-fadeInUp 0.7s ease-out 0.1s both;
    overflow-y: auto;
    scrollbar-width: none;
}

.lb-left::-webkit-scrollbar { display: none; }

.lb-headline {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}

.lb-desc {
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Feature list */
.lb-features {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 2px;
}

.lb-feat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    cursor: default;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lb-feat:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.20);
    transform: translateX(3px);
}

.lb-feat-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1px;
}

.lb-feat-title {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
}

.lb-feat-desc {
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    line-height: 1.4;
    margin-top: 1px;
}

/* Screenshots */
.lb-right {
    flex: 1;
    position: relative;
    min-height: 0;
}

.lb-screen {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.lb-screen-img {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    /*object-position: 0 1px;
    object-position:0px -70px;*/
}

.lb-screen-label {
    position: absolute;
    bottom: 9px;
    left: 9px;
    background: rgba(10, 12, 24, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    z-index: 5;
    opacity: 0.75;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.lb-screen:hover .lb-screen-label { opacity: 1; }

.lb-screen-1 { top: 0%;  left: 0;   width: 82%; animation: lb-float   7s   ease-in-out infinite;       z-index: 1; }
.lb-screen-2 { top: 22%; right: 0;  width: 80%; animation: lb-float-b 8s   ease-in-out infinite 1.2s;  z-index: 2; }
.lb-screen-3 { top: 47%; left: 4%;  width: 78%; animation: lb-float-c 6.5s ease-in-out infinite 0.6s;  z-index: 3; }
.lb-screen-4 { top: 68%; right: 0;  width: 76%; animation: lb-float-d 9s   ease-in-out infinite 1.8s;  z-index: 4; }

.lb-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    animation: lb-pulse-glow 5s ease-in-out infinite;
}

.lb-glow-1 { width: 140px; height: 140px; background: rgba(99, 102, 241, 0.32); top: 8%;    right: -10px; z-index: 0; }
.lb-glow-2 { width: 120px; height: 120px; background: rgba(59, 130, 246, 0.28); bottom: 10%; left: -5px;   z-index: 0; animation-delay: 2.5s; }

/* Trusted by */
.lb-trusted {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: lb-fadeInUp 0.7s ease-out 0.3s both;
}

.lb-trusted-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lb-trusted-line::before,
.lb-trusted-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.lb-trusted-label {
    color: rgba(255, 255, 255, 0.38);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.lb-trusted-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.lb-trust-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    transition: background 0.2s ease;
}

.lb-trust-logo-wrap:hover { background: rgba(255, 255, 255, 0.11); }

.lb-trust-logo {
    height: 48px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.lb-trust-logo-wrap:hover .lb-trust-logo { opacity: 0.82; }

/* Shared login form styles — used by LoginComponent + ForgotPasswordComponent */
.login-form-inner {
    width: 100%;
    max-width: 400px;
    padding: 40px 32px;
}

.login-form-header {
    margin-bottom: 32px;
}

.login-form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ds-text);
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
    text-transform: capitalize !important;
    line-height: 1.2;
}

.login-form-subtitle {
    font-size: 14px;
    color: var(--ds-text-muted);
    margin: 0;
}

.login-fields {
    display: flex;
    flex-direction: column;
    /*gap: 16px;*/
    margin-bottom: 24px;
}

.login-forgot {
    text-align: right;
    margin-top: -4px;
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ds-text-subtle);
    font-size: 12px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ds-border);
}

/* Back-to-login row (ForgotPassword) */
.fp-back {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    color: var(--ds-text-muted);
    font-size: 13px;
}

.fp-back .mud-icon-root {
    font-size: 16px !important;
    color: var(--ds-accent);
}
/* loading design blaue schmertterling*/
.loading-progress,
.loading-progress-text {
    display: none;
}

.brand-loader {
    width: min(260px, 70vw);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.brand-loader__logo {
    width: min(150px, 38vw);
    display: block;
    opacity: 1;
}

.brand-loader__progress {
    width: 100%;
}

.brand-loader__bar {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(43, 65, 130, 0.08);
    border: 1px solid rgba(43, 65, 130, 0.14);
}

.brand-loader__bar-fill {
    height: 100%;
    width: 100%;
    transform: scaleX(var(--blazor-load-percentage, 0));
    transform-origin: left center;
    border-radius: inherit;
    background: rgb(43, 65, 130);
    transition: transform 0.06s linear;
}


/* Form panel */
.login-form-panel {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    border-left: 1px solid var(--ds-border);
}

/* Responsive */
@media (max-width: 900px) {
    .lb-right { display: none; }
    .lb-left  { flex: 1; }
}

@media (max-width: 768px) {
    .login-brand      { display: none; }
    .login-form-panel { width: 100%; border-left: none; }
}

/* ── Section 18: Funeral Termin Schedule ─────────────────────────── */
#funeral-wrapper {
    border: 1px solid var(--ds-border);
    margin: 20px 0 20px 12px;
}

.toolbar-container {
    border-bottom: 1px solid var(--ds-border);
}

.component-wrapper {
    display: flex;
    align-items: flex-start;
}

.main-content {
    height: 580px;
    flex: 1;
}

.sidebar-content {
    display: flex;
    height: 580px;
}

.schedule-container {
    flex: 1;
    overflow: hidden;
}

.calendar-left-sidebar .table-content {
    padding: 12px;
}

.calendar-container {
    margin: 10px;
}

.listview-container {
    margin: 10px;
}

/* Hide Today button on mini calendar */
.selected-date-calendar.e-calendar .e-btn.e-today.e-flat.e-primary,
.selected-date-calendar.e-calendar .e-css.e-btn.e-today.e-flat.e-primary {
    display: none;
}

/* Mini calendar fills sidebar width */
.calendar-listview-container .calendar-container .e-calendar {
    max-width: none;
    min-width: inherit;
}

/* Drop shadow on mini calendar */
.calendar-container .e-calendar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    border-radius: var(--ds-radius);
}

.kalender-filter-box {
    background: #ffffff;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

.kalender-filter-box .kalender-filter-header {
    padding: 10px 14px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ds-text);
    border-bottom: 1px solid #f0f0f0;
}

.kalender-filter-box .kalender-filter-items {
    padding: 6px 0;
}

.kalender-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    cursor: pointer;
    user-select: none;
    transition: background 0.12s;
}

.kalender-filter-item:hover {
    background: #f9fafb;
}

.kalender-filter-item .kf-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.kalender-filter-item .kf-label {
    font-size: 13px;
    color: var(--ds-text);
    flex: 1;
}

.kalender-filter-item .mud-checkbox {
    margin: 0;
    padding: 0;
}

.right-sidebar-container {
    min-width: 300px;
    border-left: 1px solid var(--ds-border);
    overflow-y: auto;
    height: 580px;
}

.expand-close-icon-headertext-container {
    display: flex;
    padding: 4px 0;
    align-items: center;
}

.expand-close-icon-headertext-container .expand-icon {
    padding: 0 8px;
    cursor: pointer;
    margin: 10px 8px;
    font-size: large;
}

.right-sidebar-container .mud-table-head th {
    padding-left: 14px !important;
}

.right-sidebar-container .mud-table-cell {
    padding-left: 14px !important;
}

.unplanned-events-expander {
    text-align: center;
    width: 50px;
    padding: 12px 0;
}

.unplanned-events-expander .sidebar-open-icon {
    font-size: large;
    font-weight: bold;
    padding: 6px 0;
    cursor: pointer;
}

.unplanned-events-text {
    writing-mode: vertical-rl;
    margin: auto;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 0;
}

.hidden { display: none; }

.termin-card {
    height: 100%;
    width: 100%;
    padding: 4px 6px;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
}

.termin-subject {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.termin-location {
    margin-top: 2px;
    font-size: 11px;
    opacity: 0.9;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.e-schedule .e-month-view .e-appointment {
    height: 55px;
    color: white;
}

.event-quick-view .qv-header {
    padding: 14px 16px 10px;
    border-radius: 4px 4px 0 0;
    color: var(--ds-text);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.event-quick-view .qv-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
    padding-right: 8px;
}

.event-quick-view .qv-close {
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    opacity: 0.85;
    padding: 2px 4px;
}

.event-quick-view .qv-close:hover { opacity: 1; }

.event-quick-view .qv-body {
    padding: 12px 16px;
}

.event-quick-view .qv-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--ds-text);
}

.event-quick-view .qv-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--ds-text-muted);
}

.event-quick-view .qv-text {
    flex: 1;
    line-height: 1.4;
}

.event-quick-view .qv-divider {
    height: 1px;
    background: #eee;
    margin: 10px 0;
}

.event-quick-view .qv-footer {
    padding: 10px 16px 14px;
    display: flex;
    justify-content: flex-end;
}

.event-quick-view .qv-type-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    letter-spacing: 0.02em;
}

.qv-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ds-accent);
    color: #fff;
    border: none;
    border-radius: var(--ds-radius);
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.qv-open-btn:hover { background: var(--ds-accent-hover); }
.qv-open-btn.secondary { background: #757575; }
.qv-open-btn.secondary:hover { background: #555; }
