:root {
    --app-border: #e9ebec;
    --app-muted: #878a99;
    --app-shadow: 0 1px 2px rgba(56, 65, 74, .15);
    --app-shadow-lg: 0 5px 10px rgba(30, 32, 37, .12);
    --app-radius: .25rem;
    --app-gap: 1rem;
}
.mud-typography-body1, .mud-typography-body2 { font-size: .8125rem; }
.brand-tile { width: 46px; height: 46px; border-radius: var(--app-radius); background: #353d4b; color: #fff; display: grid; place-items: center; flex: none; }
.brand-tile.lg { width: 60px; height: 60px; }
.brand-word { font-size: .62rem; letter-spacing: .08em; opacity: .85; }
.brand-name { font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; line-height: 1.1; }
.product-menu { display: block; margin: 0 16px; width: calc(100% - 32px); }
.product-switch { padding: 16px 0; color: var(--mud-palette-drawer-text); cursor: pointer; }
.product-switch img { width: 38px; height: 38px; }
.product-switch .mud-typography { color: inherit; }
.product-title { min-width: 0; flex: 1; }
.product-title { justify-content: center; gap: 5px; }
.product-word { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; line-height: 1; }
.product-name { font-size: 20px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1; margin-bottom: -.15em; }
.mud-popover .product-title { gap: 3px; }
.mud-popover .product-word { font-size: 10px; }
.mud-popover .product-name { font-size: 15px; }
.sidebar .mud-nav-link .mud-nav-link-text, .sidebar .mud-nav-group > .mud-nav-link .mud-nav-link-text { font-size: 15px; font-weight: 400; }
.sidebar .mud-nav-group .mud-nav-group-nested .mud-nav-link-text, .sidebar .mud-collapse-container .mud-nav-link-text { font-size: 13px; }
/* Aktiv und Mouseover weiss und fett, ohne Balken, wie Legacy (Eugen, 11.10.2026) */
.sidebar .mud-nav-link, .sidebar .mud-nav-link:hover, .sidebar .mud-nav-link.active { background: transparent !important; }
.sidebar .mud-nav-link.active, .sidebar .mud-nav-link:hover, .sidebar .mud-nav-link.active .mud-nav-link-icon, .sidebar .mud-nav-link:hover .mud-nav-link-icon { color: #fff !important; }
.sidebar .mud-nav-link.active .mud-nav-link-text, .sidebar .mud-nav-link:hover .mud-nav-link-text { font-weight: 700; }
.sidebar.sidebar-slate { --mud-palette-drawer-background: #353d4b; --mud-palette-drawer-text: #c7ccd4; --mud-palette-drawer-icon: #c7ccd4; }
.content { padding: calc(var(--app-gap) * 1.5); padding-top: calc(var(--mud-appbar-height) + var(--app-gap) * 1.5); }
.mud-appbar .mud-toolbar { gap: .25rem; }
.header-field { display: flex; align-items: center; gap: .5rem; height: 38px; padding: 0 .75rem; border-radius: var(--app-radius); background: var(--mud-palette-background); color: var(--app-muted); white-space: nowrap; }
.header-field-text { min-width: 4rem; }
.header-field kbd { margin-left: auto; padding: 1px 6px; border: 1px solid var(--app-border); border-radius: var(--app-radius); font: inherit; font-size: .68rem; }
.header-search { min-width: 18rem; margin-left: .5rem; }
.header-search .header-field-text { flex: 1; }
.header-customers, .header-workload { margin-left: .5rem; }
.notifications-popover { min-width: 18rem; }
.page-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--app-gap); }
.page-title { text-transform: uppercase; font-weight: 700; letter-spacing: .02em; }
.page-crumbs { padding: 0; }
.confirm-changes td, .confirm-changes th { overflow-wrap: anywhere; white-space: pre-wrap; vertical-align: top; }
.meeting-minutes { width: 100%; height: 70vh; border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; background: #fff; }
html[data-privacy] .pii,
html[data-privacy] .mud-drawer,
html[data-privacy] .mud-main-content,
html[data-privacy] .mud-popover-provider,
html[data-privacy] .mud-dialog-container,
html[data-privacy] .mud-appbar .mud-toolbar > :not(.header-actions),
html[data-privacy] .header-actions > :not(:has(.privacy-toggle)) { filter: blur(8px); user-select: none; pointer-events: none; }
.dark { --app-border: #2a2f34; --app-muted: #878a99; --app-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.dark .mark.warn { background: #4a2a1a; color: #f0a07a; } .dark .mark.info { background: #1c2d4d; color: #8db4f0; } .dark .mark.ok { background: #14382f; color: #5fd1ae; }
.dark .must-know { background: #3a3220; }
.tile { border: 0; border-radius: var(--app-radius); box-shadow: var(--app-shadow); height: 100%; }
.mark { white-space: nowrap; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: var(--app-radius); }
.mark.warn { background: #fde6d8; color: #c0531c; } .mark.info { background: #dde8fb; color: #1f4fa3; } .mark.ok { background: #d9f3ea; color: #0a7d57; }
.mud-dialog { box-shadow: var(--app-shadow-lg); }
.logout-form { margin: 0; }
.logout-button { justify-content: flex-start; padding: 6px 16px; text-transform: none; font-weight: 400; color: inherit; border-radius: 0; }
.notice { max-width: 28rem; margin: 4rem auto; text-align: center; }
body:has(.bare) { background: #f3f3f9; font-family: Gotham, system-ui, sans-serif; font-size: .8125rem; color: #212529; margin: 0; }
.bare { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
body:has(.login-page) { background: #e2e5ef; }
.login-page { width: 100%; display: flex; justify-content: center; }
.login-card { width: 100%; max-width: 1044px; overflow: hidden; border-radius: var(--app-radius); box-shadow: var(--app-shadow-lg); }
.login-hero { background: #353d4b; color: #fff; padding: 3rem !important; display: flex; flex-direction: column; justify-content: space-between; gap: 6rem; }
.login-hero-logo { border-radius: .5rem; margin-left: -12px; }
.login-wordmark { margin-top: -7px; }
.login-hero-name { color: #fff; font-size: 25px; font-weight: 600; }
.login-hero-title { color: #fff; font-size: 16.25px; font-weight: 500; line-height: 1.6; }
.login-accent { text-decoration: underline; text-decoration-color: #FF0035; text-decoration-thickness: 4px; text-underline-offset: 5px; }
.login-main { background: #fff; padding: 3rem !important; }
@media (min-width: 960px) { .login-hero { flex: 0 0 604px !important; max-width: 604px !important; } .login-main { flex: 1 1 440px !important; max-width: 440px !important; } }
.login-title { margin-bottom: 1.5rem; }
.login-form { display: flex; flex-direction: column; gap: .35rem; }
.login-form label { color: var(--app-muted); margin-top: .5rem; }
.login-form input { font: inherit; padding: .6rem .75rem; border: 1px solid #ced4da; border-radius: var(--app-radius); background: #fff; }
.login-form input:focus { outline: 2px solid var(--mud-palette-primary); outline-offset: -1px; border-color: transparent; }
.customer-search { max-width: 22rem; }
.broker-detail-cell { max-width: 0; padding: 12px 16px !important; }
.broker-detail { overflow-wrap: anywhere; }
.broker-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.clickable-rows tbody tr { cursor: pointer; }
.must-know { background: #fff8e1; }
.prewrap { white-space: pre-wrap; }
.facts { display: grid; grid-template-columns: 1fr 1.6fr; row-gap: .5rem; margin: 0; }
.facts dt { color: var(--app-muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.header-field-action { cursor: pointer; }
.header-field-action:hover, .header-field-action:focus-visible { outline: 1px solid var(--app-border); }
.header-customers .header-field-text, .header-workload .header-field-text { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
.search-dialog { align-self: flex-start; margin-top: 8vh; }
.search-input { padding: .25rem 1rem; }
.search-results { max-height: 24rem; overflow-y: auto; padding: .25rem 0; }
.search-group { padding: .5rem 1rem .25rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--app-muted); }
.search-item { display: flex; align-items: center; gap: .75rem; padding: .5rem 1rem; cursor: pointer; }
.search-item.active { background: var(--mud-palette-action-default-hover, rgba(0, 0, 0, .06)); }
.search-item-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item-detail { color: var(--app-muted); font-size: .75rem; }
.search-keys { padding: .5rem 1rem; border-top: 1px solid var(--app-border); color: var(--app-muted); font-size: .72rem; }
.search-keys kbd { margin: 0 .25rem 0 .75rem; padding: 1px 6px; border: 1px solid var(--app-border); border-radius: var(--app-radius); font: inherit; }
.mud-appbar .mud-toolbar { min-width: 0; }
.header-field { min-width: 0; flex-shrink: 1; }
.header-search { min-width: 10rem; flex-shrink: 2; }
@media (max-width: 1600px) { .header-field kbd { display: none; } }
.user-menu-text { white-space: nowrap; }
html[data-privacy] .mud-appbar { background-color: transparent; box-shadow: none; }

.profile-hero { height: auto; }
.profile-hero .mud-avatar { width: 96px; height: 96px; font-size: 2.25rem; }
.about-tabs .mud-tabs-panels { min-height: 420px; }
.about-tabs .mud-tabs-panels { padding-top: 24px; }
.about-claims { height: 280px; }

/* Compact grid headers: sort, filter and column menu sit over the title and show on hover or focus, an active sort stays visible. */
.grid-compact .mud-table-head th.mud-table-cell { position: relative; }
.grid-compact .mud-table-head .column-header .column-options { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); opacity: 0; background: var(--mud-palette-surface); border-radius: var(--app-radius); transition: opacity .15s; }
.grid-compact .mud-table-head th:hover .column-options, .grid-compact .mud-table-head th:focus-within .column-options,
.grid-compact .mud-table-head .column-options:has(.mud-direction-asc, .mud-direction-desc) { opacity: 1; }
.escalation-open { border-left: 4px solid var(--mud-palette-error); }
.escalation-steps { margin-left: -12px; }

/* Cockpit: Aufgaben */
.task-tile { cursor: pointer; transition: box-shadow .15s; }
.task-tile-active { box-shadow: inset 0 0 0 2px var(--mud-palette-primary), var(--app-shadow); }
.task-board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; }
.task-column { display: flex; flex-direction: column; height: auto; }
.task-zone { min-height: 140px; flex-grow: 1; border-radius: var(--app-radius); }
.task-zone-can { background: var(--mud-palette-action-default-hover); }
.task-zone-no { opacity: .6; }
.task-card { cursor: grab; }
.task-card-title { cursor: pointer; overflow-wrap: anywhere; }
.task-done { text-decoration: line-through; color: var(--mud-palette-text-secondary); }
.task-row-done { opacity: .7; }
.task-inline-icon { vertical-align: text-bottom; }
.block-cell { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
