/* Additional design tokens beyond pgTheme's MudBlazor palette (Components/Layout/MainLayout.razor).
   --mud-palette-steel is the app's one shared "Steel Blue" accent — used for focus rings/underlines
   (so focus doesn't read as "primary", i.e. the same signal as the brand-red action color) and, since
   the "Slot-Raster" design briefing (2026-08-24, DeliveryBaySlotGrid.razor), as the sole selection/
   primary-action accent within that grid. Consolidated to ONE value (2026-08-24) instead of two
   near-identical hexes living in separate component-scoped CSS files (app.css's own prior value was
   #1565C0; the Slot-Raster briefing separately specified #0F62C4 with a documented 5.9:1 contrast
   ratio on white) — per dev-team feedback, shared accent colors belong here, not re-declared per
   component. Not part of MudBlazor's own Color enum, so components can't select it via a Color
   parameter; applied through scoped CSS overrides of MudBlazor's own focus-state selectors instead
   (see e.g. CreateDeliveryDialog.razor.css), or via the .btn-steel/.btn-outline-steel utility classes
   below. The three extra shades are the Slot-Raster briefing's own derived values (pressed/tint/
   on-dark-background), promoted here alongside the base color rather than re-derived locally. */
:root {
    --mud-palette-steel: #0F62C4;
    --mud-palette-steel-deep: #0A4A9B;
    --mud-palette-steel-tint: #E8F0FC;
    --mud-palette-steel-on-ink: #7FB0EE;

    /* Warnfarben (Hinweis, keine Sperre). Kamen aus dem Slot-Raster-Briefing und standen bis
       2026-08-24 lokal in DeliveryBaySlotGrid.razor.css — mit dem ausdrücklichen Vermerk, sie erst
       zu verallgemeinern, wenn sie irgendwo sonst gebraucht werden. Genau das ist jetzt der Fall
       (Einfahrt-Hinweis in Schritt 4 von CreateDeliveryDialog), also hierher — nach derselben
       Regel, die oben schon zur Zusammenlegung der zwei Steel-Blautöne geführt hat. */
    --mud-palette-warn: #B45309;
    --mud-palette-warn-tint: #FFF7ED;

    /* Status-Chips nach Lot rc.3 (status-active / status-pending / status-draft), bis Lot app-weit
       eingeführt ist. Werte aus 1885UXDS dist/css/lot.css, nicht verändern — beim Wechsel ersetzt
       var(--lot-status-*) sie eins zu eins. */
    --app-status-active: rgb(231, 244, 234);
    --app-status-active-foreground: rgb(14, 46, 25);
    --app-status-pending: rgb(251, 238, 223);
    --app-status-pending-foreground: rgb(56, 32, 0);
    --app-status-draft: rgb(238, 236, 231);
    --app-status-draft-foreground: rgb(92, 91, 88);

    /* Schrift auf gefüllter Erfolgsfläche (die Plakette „Slot gebucht"). MudBlazor kennt zu
       Success einen Kontrastwert, gibt ihn aber nicht verlässlich als CSS-Variable heraus —
       deshalb hier von Hand, passend zum pgTheme der öffentlichen Seite
       (Components/Layout/PublicLayout.razor): Success ist dort #198754 hell und #4CAF50 dunkel.
       Weiß auf #198754 sind 4,5:1 — AA für normalen Text, und die Plakette ist fett. */
    --ok-on-fill: #FFFFFF;

    /* Farbwerte des Stunden-Rasters aus dem Slot-Raster-Briefing (2026-08-24). Hierher verschoben, als
       das Raster ein zweites Mal gebraucht wurde: der Koordinator zieht einen Bereich auf
       (DeliveryBaySlotGrid), der Lieferant wählt genau eine Stunde (DeliverySlotPicker). Zwei
       Komponenten, weil die Bedienung sich unterscheidet — aber nur EIN Satz Farben, sonst driften sie
       auseinander (bei --mud-palette-steel ist genau das schon einmal passiert).
       Was NICHT hierher gehört: Zellmaße und Bedienungs-Optik. Die dürfen sich unterscheiden. */
    --slot-paper: #FFFFFF;
    --slot-past: #E9E9EC;
    --slot-on-ink: #FAFAFA;
    --slot-line: #E4E4E7;
    --slot-anchor: #D4D4D8;
    --slot-bay: #A1A1AA;
    --slot-hatch: #D4D4D8;
    /* Zu kurzfristig (Vorlaufzeit des Lieferplatzes): eigene Schraffurfarbe statt der grauen, weil
       die Stunde nicht geschlossen ist — sie öffnet sich mit der Uhr, und für den Ausnahmeberechtigten
       ist sie buchbar. Sacht gelb, damit sie neben Geschlossen und Belegt unterscheidbar ist, ohne wie
       eine Warnung zu schreien. */
    --slot-too-soon: #E3B341;
    /* Gesperrt (Lieferplatz-Sperre): Rot schraffiert — nicht geschlossen und nicht belegt, sondern
       bewusst aus der Hand genommen; auch das Ausnahmerecht öffnet die Stunde nicht. */
    --slot-blocked: #E30613;
    --slot-ink: #18181B;
    --slot-ink-soft: #3F3F46;
    /* Belegt durch eine andere Firma: dieselbe Blockform wie eine eigene Buchung, aber in dunklem
       Grau statt Anthrazit — erkennbar belegt, erkennbar nicht meins. */
    --slot-foreign: #52525B;
    --slot-on-foreign: #FAFAFA;
    --slot-muted: #71717A;
    --slot-faint: #A1A1AA;
}

/* Spacing tokens, same 4px-per-step scale MudBlazor's own margin utility classes already use (ma-N for
   all sides, mx-N horizontal, my-N vertical: my-1=4px, my-2=8px, my-3=12px, my-4=16px, my-5=20px,
   my-6=24px, my-7=28px) — kept in that scale so custom spacing (e.g. a single-side margin, which
   MudBlazor has no utility class for at all — it only ships all-horizontal-vertical, not
   top-only-bottom-only) still reads as part of the same rhythm instead of introducing arbitrary new
   pixel values. Reach for these before writing a raw px number in a Style attribute. */
:root {
    --mud-spacing-1: 4px;
    --mud-spacing-2: 8px;
    --mud-spacing-3: 12px;
    --mud-spacing-4: 16px;
    --mud-spacing-5: 20px;
    --mud-spacing-6: 24px;
    --mud-spacing-7: 28px;
}

/* Roboto is served locally from wwwroot/lib/roboto and is what every MudBlazor component renders in.
   This used to say 'Segoe UI', so raw HTML (the navbar, the footer, tables) and Mud components used two
   different typefaces on the same page. Keep this list in step with pgTheme.Typography.Default. */
html, body {
    font-family: 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #fff;
}

a, .btn-link {
    color: #E30613;
}

a:hover, .btn-link:hover {
    color: #B00510;
}

.desktop-nav-menu.mud-popover-open {
    opacity: 0;
    animation: reveal-positioned-nav-menu 0s linear 75ms forwards;
}

@keyframes reveal-positioned-nav-menu {
    to {
        opacity: 1;
    }
}

.btn-primary {
    color: #fff;
    background-color: #E30613;
    border-color: #E30613;
}

.btn-primary:hover {
    background-color: #B00510;
    border-color: #B00510;
}

/* Steel-accented button variants, same pattern as .btn-primary above but for surfaces where red is
   deliberately not the accent color (currently: DeliveryBaySlotGrid.razor's Slot-Raster grid — "Rot
   existiert in dieser Maske nicht", Steel Blue is the only accent). Shared here instead of redeclared
   per component so any future steel-accented surface reuses the same two classes rather than
   reinventing them. Plain classes (not Bootstrap's own .btn, which this app also loads) so they carry
   no unwanted Bootstrap button sizing/spacing baggage — components apply their own padding/font-size. */
.btn-steel {
    background-color: var(--mud-palette-steel);
    color: #fff;
    border: 1px solid transparent;
}

.btn-steel:hover {
    background-color: var(--mud-palette-steel-deep);
}

.btn-steel:disabled {
    background-color: #E4E4E7;
    color: #A1A1AA;
    cursor: not-allowed;
}

.btn-outline-steel {
    background: #fff;
    color: #18181B;
    border: 1px solid #D4D4D8;
}

.btn-outline-steel:hover {
    background-color: #FAFAFA;
}

.btn-outline-steel:disabled {
    background-color: #FAFAFA;
    color: #A1A1AA;
    cursor: not-allowed;
}

/* Hauptaktion mit „…“-Knopf für weitere Aktionen (ActionWithMoreButton): zwei getrennte Knöpfe gleicher Höhe, der
   „…“-Knopf als Nebenaktion in Stahl umrandet (Lot: Aktionen, Icon-Aktion). */
.action-with-more { display: inline-flex; align-items: stretch; gap: 8px; }
/* MudMenu zentriert sich selbst (align-self: center); gestreckt wird der „…“-Knopf so hoch wie die Hauptaktion.
   Doppelte Klasse, weil MudBlazors Stylesheet nach app.css lädt. */
.action-with-more > .mud-menu.mud-menu { align-self: stretch; }
.action-with-more .action-more.mud-icon-button {
    align-self: stretch;
    height: auto;
    min-width: 40px;
    color: var(--mud-palette-steel);
    border-color: var(--mud-palette-steel);
    border-radius: var(--mud-default-borderradius);
    padding: 0 8px;
}
.action-with-more .action-more.mud-icon-button:hover { background-color: var(--mud-palette-steel-tint); }

/* Meldung mit eigener Aktion: Text links, Knopf rechtsbündig daneben; auf schmalen Bildschirmen rutscht der Knopf
   rechtsbündig unter den Text. Doppelte Klasse, weil MudBlazors Stylesheet nach app.css lädt. */
.alert-with-action.alert-with-action .mud-alert-message {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 16px;
}
.alert-with-action .alert-with-action-text { flex: 1 1 280px; }

.btn-steel:focus-visible, .btn-outline-steel:focus-visible {
    outline: 2px solid var(--mud-palette-steel);
    outline-offset: 2px;
}

/* Legend row: a horizontal list of "swatch + label" pairs explaining what a color/pattern means
   elsewhere on the page. Shared structural classes only (flex row, gap, swatch box sizing) — the
   swatch's own fill/border/icon per meaning is still defined by the component that uses it (e.g.
   DeliveryBaySlotGrid.razor.css's .legend-chip-free/.legend-chip-closed/... modifier classes),
   since those colors are specific to that component's own state vocabulary. Consolidates what used
   to be two independent, differently-named implementations (DeliveryBaySlotGrid vs. Roles.razor). */
.legend-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 11.5px;
    color: #71717A;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.legend-swatch {
    width: 22px;
    height: 16px;
    border: 1px solid #E4E4E7;
    flex: none;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(227, 6, 19, 0.5);
}

/* One-off override for a single MudTooltip instance (DeliveryBaySlotGrid's legend tooltip) — lives
   here, not in that component's scoped .razor.css, because MudBlazor renders TooltipContent into a
   portal appended at <body> level, outside the authoring component's DOM subtree; Blazor's CSS
   isolation only stamps its scope attribute on elements written in that component's own markup, so
   a scoped rule could never match MudBlazor's own bubble div. The unique class name (passed via
   MudTooltip's Class parameter) keeps this from affecting any other tooltip in the app, same as a
   scoped rule would — it's not a shared/reusable pattern, just forced into global scope by where
   the DOM actually ends up. MudBlazor's default tooltip theme (--mud-palette-gray-darker background,
   white text) had too little contrast between legend swatch states; switched to the app's light
   surface/text tokens instead. --mud-palette-gray-darker is overridden locally (not globally) so the
   tooltip's own arrow — which reads that same variable directly — recolors along with the bubble.
   Selector needs all three classes (not just .bay-legend-tooltip-bubble.mud-tooltip): MudBlazor's
   own competing rule is ".mud-tooltip.mud-tooltip-default" — also two classes, so at equal
   specificity its later position in the stylesheet load order was winning the `color` tie (only
   `color` — `background-color` happened to still look right because it reads a var this rule
   already overrides, masking the tie for that one property). */
.bay-legend-tooltip-bubble.mud-tooltip.mud-tooltip-default {
    --mud-palette-gray-darker: var(--mud-palette-surface);
    background-color: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    border: 1px solid #E4E4E7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.delivery-schedule-legend-tooltip-bubble.mud-tooltip.mud-tooltip-default {
    --mud-palette-gray-darker: #FFFFFF;
    background-color: #FFFFFF;
    color: var(--mud-palette-text-primary);
    border: 1px solid #E4E4E7;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
}

/* Same reasoning as .bay-legend-tooltip-bubble above (MudBlazor-authored element, unreachable via
   scoped CSS) — DeliveryBaySlotGrid wraps every grid cell button in a MudTooltip (native `title`
   has a fixed ~1-1.5s OS delay; MudTooltip shows immediately). MudTooltip's own root wrapper
   (.mud-tooltip-root.mud-tooltip-inline) defaults to display:inline-block with no explicit width,
   which shrinks to content — since the wrapped .cell button is itself width:100% of that wrapper,
   the two collapsed each other down to ~1px instead of filling the <td>'s column width. RootClass
   (unlike Class, which only reaches the popover bubble) targets specifically this wrapper. */
.cell-tooltip-root {
    display: block;
    width: 100%;
    height: 100%;
}

/* Cell tooltips have no wrap width at all by default: MudBlazor's popover-positioning JS sets an
   inline `max-width: none` on every tooltip bubble (own inline style, so only `!important` in a
   stylesheet can beat it) and .mud-tooltip-root itself is width:auto — the bubble just grows to fit
   the whole aria-label ("LP_207-Sven, 07:00 bis 08:00, gebucht von Dennis Kleine AG") on one long
   line instead of wrapping. Capped and left-aligned (MudBlazor's own .mud-tooltip default is
   text-align:center, fine for a short label but reads oddly once text wraps to 2-3 lines) — kept
   off .bay-legend-tooltip-bubble's shared rule via this second, cell-only class so the (already
   short, single-line) legend tooltip isn't affected. */
.cell-info-tooltip.mud-tooltip {
    max-width: 200px !important;
    white-space: normal;
    text-align: left;
}

/* Der Vorlauf-Hinweis (Tagesplan: Symbol in der Platz-Spalte und schraffierte Stunden) steht in
   Zeilen statt in einem Satz und trägt in der letzten eine Schaltfläche. Er braucht deshalb etwas
   mehr Breite als die 200 px der übrigen Zellen-Hinweise — ein ausgeschriebenes Datum bricht sonst
   mitten im Wochentag um — und keine Innenabstände, die die Schaltfläche vom Rand wegdrücken.
   Global aus demselben Grund wie die Regeln darüber: MudBlazor zeichnet die Blase außerhalb der
   Komponente. */
/* Die Blase der Stunden- und Vorlauf-Hinweise im Tagesplan. Deutlich mehr Innenabstand als
   MudBlazors 4px/8px: der Hinweis ist kein Wortschnipsel mehr, sondern mehrere Zeilen mit einer
   hervorgehobenen Angabe darin, und die klebten am Rand (Vorgabe Dennis, 2026-09-21). Löst dort
   .cell-info-tooltip ab, dessen 200 px für die Zeilen zu eng waren; der Abruf-Wizard nebenan
   benutzt jenes weiter. */
.slot-tip-bubble.mud-tooltip {
    max-width: 280px !important;
    text-align: left;
    padding: 14px 16px;
}

/* Nur der Hinweis an einer STUNDE, nicht der am Vorlauf-Symbol daneben — der hängt an einem kleinen
   Zeichen und soll nichts verdecken.
   Zwei Zutaten, beide für dasselbe: zu sehen, wohin die Blase gehört. Sie überlappt ihre Stunde um
   12 px, damit Spitze und Feld sich berühren statt über eine Lücke aufeinander zu zeigen (Vorgabe
   Dennis, 2026-09-22). Und ein Rahmen, der kräftiger ist als der gemeinsame #E4E4E7: Die Blase liegt
   über einem Raster aus Linien und hellen Feldern, in dem eine fast weiße Kante verschwindet. Aus der
   Textfarbe gemischt, damit sie dem hellen wie dem dunklen Thema folgt. */
/* Das Feld „Für" in der Sofortbuchung, wenn es nichts zu wählen gibt — beim Nachunternehmer, der
   für die eigene Firma bucht. Leicht hinterlegt, damit ohne Ausprobieren zu sehen ist, dass hier
   nichts zu ändern ist (Vorgabe Dennis, 2026-09-22). Derselbe Ton, mit dem auch ein abgeschalteter
   Lieferplatz hinterlegt wird: Es ist da, es nimmt nur nichts an.

   Nicht Disabled — das Feld ist nicht abgeschaltet, es hat nur keine zweite Möglichkeit, und
   ausgegraut sähe es aus, als fehlte etwas.

   Global und nicht komponentengebunden: Eine Klasse, die an einer MudBlazor-Komponente steht, trägt
   das Scope-Merkmal NICHT, mit dem ::deep arbeitet — der Selektor wird zu `.klasse[b-xxx] …`, und
   dieses Attribut sitzt nur an Elementen aus dem eigenen Markup.

   Am 22.09.2026 stand hier kurzzeitig das Gegenteil. Der Beleg dagegen: Eine Regel für die
   Trennlinien der Lieferungstabelle, über ::deep an deren Klasse gehängt, blieb wirkungslos, während
   derselbe Wert als Stil an der Zeile sofort ankam. Was an einer MudBlazor-Komponente hängt, gehört
   deshalb hierher — oder an ein Element aus dem eigenen Markup. */
.owner-fixed .mud-input.mud-input-outlined {
    background: var(--mud-palette-action-default-hover);
}

.owner-fixed .mud-input-slot {
    cursor: default;
}

/* Die Spalten der Lieferungstabelle: feste Breiten statt automatischer Verteilung, damit die Termine
   und die Historie dieselben Kanten haben.

   Die Breiten hängen an der POSITION der Spalte, nicht an ihrem Namen — wer eine einfügt oder
   entfernt, muss diese Liste mitzählen.

   Standen bis zum 22.09.2026 komponentengebunden mit ::deep an der Klasse der Tabelle und waren damit
   wirkungslos: Die Klasse sitzt an einer MudBlazor-Komponente, und die bekommt das Scope-Merkmal
   nicht — im erzeugten Code steht es ausschließlich hinter `class` von echten HTML-Elementen. Seit
   dem Umzug hierher greifen sie zum ersten Mal, und das Raster sitzt entsprechend anders als zuvor. */
.aligned-delivery-grid .mud-table-root{table-layout:fixed;min-width:1040px;width:100%}.aligned-delivery-grid th:nth-child(1),.aligned-delivery-grid td:nth-child(1){width:20%}.aligned-delivery-grid th:nth-child(2),.aligned-delivery-grid td:nth-child(2),.aligned-delivery-grid th:nth-child(3),.aligned-delivery-grid td:nth-child(3){width:16%}.aligned-delivery-grid th:nth-child(4),.aligned-delivery-grid td:nth-child(4){width:11%}.aligned-delivery-grid th:nth-child(5),.aligned-delivery-grid td:nth-child(5){width:10%}.aligned-delivery-grid th:nth-child(6),.aligned-delivery-grid td:nth-child(6){width:14%}.aligned-delivery-grid th:nth-child(7),.aligned-delivery-grid td:nth-child(7){width:13%}

/* Die Trennlinien der Lieferungstabelle. Innerhalb einer Anlieferung gestrichelt, zwischen zwei
   Anlieferungen durchgezogen: Zwischen zwei Anlieferungen endet etwas, zwischen zwei Stunden
   derselben nicht.

   Die Linienart kommt als Variable von der Zeile (RowStyleFunc), weil der Rahmen an den ZELLEN sitzt
   und ein Stil an der Zeile sie nicht erreicht — eine Variable vererbt sich dorthin. Und die Regel
   steht global, weil sie an der Klasse der Tabelle hängt; siehe oben. */
.chain-grid tbody tr td {
    border-bottom-style: var(--row-line, solid) !important;
}

.slot-cell-tip.mud-tooltip {
    margin-top: -12px;
    border-color: color-mix(in srgb, var(--mud-palette-text-primary) 18%, transparent);
}

.content {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

h1, h2, h3, h4, h5, h6 {
    color: #222;
    font-weight: 600;
}

h1 {
    border-bottom: 3px solid #E30613;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h1:focus {
    outline: none;
}

.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #E30613;
    color: #222;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

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

.invalid {
    outline: 1px solid #E30613;
}

.validation-message {
    color: #E30613;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #E30613;
    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;
}

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

/* Hide Blazor reconnection UI on QR code page */
.qr-code-container ~ #components-reconnect-modal,
body:has(.qr-code-container) #components-reconnect-modal {
    display: none !important;
}

/* Responsive typography for MudBlazor components */
.mud-typography-h4.responsive-title {
    font-size: 2rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

/* Mobile responsive styles */
@media (max-width: 599px) {
    .mud-typography-h4.responsive-title {
        font-size: 1.25rem !important;
    }

    .header-stack {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .header-stack .mud-button-root {
        width: 100%;
        padding: 8px 16px;
    }

    .header-left {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .header-right {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100%;
    }

    .header-right .mud-button-root {
        width: 100%;
        padding: 8px 16px;
    }
}

/* Navigation responsive adjustments - extend burger menu to 960px */
@media (min-width: 768px) and (max-width: 959px) {
    /* Show burger menu between 768px and 960px */
    .navbar-toggler.d-md-none {
        display: block !important;
    }

    /* Hide desktop navigation between 768px and 960px */
    .navbar-nav.d-none.d-md-flex {
        display: none !important;
    }

    /* Show mobile menu when expanded between 768px and 960px */
    .d-md-none:not(.collapse) {
        display: block !important;
    }
}

/* The .hero-* block that used to live here belonged to a previous Home dashboard design whose class
   names no longer appear in any component. Removed with that design's Home.razor.css. */

/* ── Dunkelmodus ───────────────────────────────────────────────────────────────────────────────
   Der Haken .app-dark wird von Components/Layout/PublicLayout.razor gesetzt (s. Kommentar dort):
   MudBlazor tauscht beim Umschalten nur seine eigenen Palettenvariablen aus und setzt keine Klasse,
   also braucht alles, was eigene Farbwerte mitbringt, eine ausdrückliche Gegenfassung.

   Bewusst als Überschreibung und NICHT durch Ableitung der --slot-*-Werte aus der MudBlazor-Palette:
   die hellen Werte kommen aus dem Slot-Raster-Briefing, teils mit dokumentierten Kontrastverhältnissen.
   Sie über var(--mud-palette-…) zu ersetzen hätte auch den hellen Modus verändert, und der ist
   abgenommen. So bleibt Hell Zeichen für Zeichen wie es war.

   Gilt nur für den öffentlichen Bereich, in dem der Dunkelmodus tatsächlich angeboten wird. Der
   Koordinator-Bereich (MainLayout) hat seinen eigenen Umschalter; dass die Raster dort im
   Dunkelmodus hell bleiben, ist ein bestehender Zustand und hier nicht angefasst. */
.app-dark {
    /* Rasterebene: Fläche und Linien folgen der dunklen Palette (Surface #2A2A2A, Lines #3D3D3D). */
    --slot-paper: #2A2A2A;
    --slot-past: #202020;
    --slot-line: #3D3D3D;
    --slot-anchor: #4A4A4A;
    --slot-bay: #4A4A4A;
    --slot-hatch: #4A4A4A;
    /* Im Dunklen gedämpfter, sonst leuchtet die Schraffur über der dunklen Fläche. */
    --slot-too-soon: #8A6D1F;
    --slot-blocked: #B0303A;

    /* Objektebene: „Belegt" muss sich von der Fläche abheben. Im Hellen ist es dunkler als der Grund,
       im Dunklen heller — sonst verschwindet der Block. */
    --slot-ink: #F0F0F0;
    --slot-ink-soft: #8A8A8A;
    --slot-on-ink: #1C1C1C;
    /* Im Dunklen bleibt die fremde Belegung ebenfalls heller als der Grund, nur gedämpfter als die
       eigene — sonst wäre sie das Auffälligste im Raster. */
    --slot-foreign: #9A9A9A;
    --slot-on-foreign: #1C1C1C;

    --slot-muted: #BDBDBD;
    --slot-faint: #9A9A9A;

    /* Steel: #0F62C4 ist auf #2A2A2A zu dunkel, und der Tint #E8F0FC wäre eine weiße Fläche mit
       hellem Text darauf — genau die unlesbaren Kästen auf der Buchungsseite. Aufgehellt bzw.
       abgedunkelt, Rollen bleiben gleich. */
    --mud-palette-steel: #5B9BF3;
    --mud-palette-steel-deep: #8FBBF8;
    --mud-palette-steel-tint: #16283D;

    /* Warnfarben analog. */
    --mud-palette-warn: #E8A25C;
    --mud-palette-warn-tint: #2B2013;

    --app-status-active: rgb(22, 33, 25);
    --app-status-active-foreground: rgb(171, 220, 183);
    --app-status-pending: rgb(38, 28, 16);
    --app-status-pending-foreground: rgb(244, 196, 141);
    --app-status-draft: rgb(47, 46, 41);
    --app-status-draft-foreground: rgb(166, 164, 160);

    /* Success ist im Dunkelmodus aufgehellt (#4CAF50). Weiß darauf wären nur 2,8:1 und damit
       unlesbar; dieses Fast-Schwarz kommt auf 5,9:1. */
    --ok-on-fill: #10231A;
}

/* Die globale Regel h1..h6 { color: #222 } weiter oben ist auf dunklem Grund unlesbar. */
.app-dark h1,
.app-dark h2,
.app-dark h3,
.app-dark h4,
.app-dark h5,
.app-dark h6 {
    color: var(--mud-palette-text-primary);
}

/* ── Geteilte Anzeige-Bauteile ────────────────────────────────────────────────────────────────
   Kennzeichen-Schild (LicensePlateTag/LicensePlateField), Lieferplatz-Marke (DeliveryBayTag) und
   die Ziffern-Laufweite. Standen bis 2026-08-25 mitten im Block der Buchungsseite, gehören aber
   nicht dorthin: sie werden vom Koordinatorbereich genauso benutzt wie vom Lieferantenbereich
   (DeliveryBayManagement, CreateDeliveryDialog, AdHocBookingDialog, BookDeliverySlot*). Beim
   Auslagern der Seitensprache nach booking.css sind sie deshalb hier geblieben — siehe den
   Kopfkommentar dort. */
.tnum {
    font-variant-numeric: tabular-nums;
}
/* ── Kennzeichen und Lieferplatz als wiedererkennbare Marken ───────────────────────────────────
   Zwei Darstellungen, die im Abruf-Wizard, in der Lieferungen-Liste und in der Lieferantenmaske
   gleich aussehen sollen (Vorgabe 2026-08-24). Deshalb hier und nicht in Scoped CSS: das wären drei
   Kopien, und drei Kopien einer Darstellung sind nach der zweiten Änderung keine Darstellung mehr.

   Komponenten: Components/Shared/LicensePlateTag.razor und DeliveryBayTag.razor. */

/* Kennzeichen. Die Anleihen beim echten Schild sind bewusst sparsam: Schmalseite mit Rahmen, helle
   Fläche, Monospace in Versalien mit etwas Sperrung. Kein EU-Streifen und kein Nietenpunkt — beides
   wird bei 12px zum Fleck und wäre bei ausländischen Kennzeichen ohnehin falsch. Was das Schild
   ausmacht, ist die Kombination aus Rahmen, ruhiger Fläche und gleichbreiten Ziffern.

   IBM Plex Mono ist im Projekt schon geladen (Components/App.razor), das Raster nutzt sie ebenfalls. */
.plate-tag {
    display: inline-block;
    padding: 2px 7px;
    border: 1.5px solid var(--mud-palette-text-primary);
    border-radius: 3px;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.35;
    white-space: nowrap;
    vertical-align: middle;
}
/* Fehlendes Kennzeichen ist erlaubt, kein Fehler — deshalb kein leeres Schild, nur ein ruhiger
   Hinweis. */
.plate-empty {
    color: var(--mud-palette-text-secondary);
    font-size: 13px;
}
/* Lieferplatz. Das „P" greift das Zeichen der Lieferplätze-Registerkarte auf; die Marke sitzt links
   am Namen, damit die Zeile beim Überfliegen einer Liste an derselben Stelle beginnt. */
.bay-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
    min-width: 0;
}
.bay-tag-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: var(--mud-palette-steel);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.bay-tag-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Im Dunkelmodus ist die Schildfläche die Kartenfläche und der Rahmen der helle Text — dieselbe
   Logik wie im Hellen, nur umgekehrt. Beides kommt aus der Palette, also stimmt es von allein; hier
   wird nur die Steel-Marke etwas gedämpft, weil reines Weiß auf dem aufgehellten Steel überstrahlt. */
.app-dark .bay-tag-mark {
    color: #0F1B2A;
}
/* Nur die Schrift des Kennzeichen-Schilds, ohne dessen Rahmen und Fläche. Für Stellen, an denen ein
   Kennzeichen eine SCHALTFLÄCHE ist (Vorschlags-Chips in Wizard-Schritt 3): die Schrift stellt die
   Wiedererkennung her, der Rahmen des Schilds würde die Klickbarkeit verdecken. */
.plate-type {
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.08em;
    font-weight: 600;
}


/* Phone input: dial code picker + number field rendered as one control, like a Bootstrap .btn-group.
   Used by Components/Shared/PhoneField.razor - global because more than one page renders it. */
.phone-group {
    display: flex;
    align-items: flex-start;
}

/* MudBlazor gives a dense input with a floating label 8px top margin and one without a label
   only 4px, which is what pushed the dial code picker out of line. Equalise both. */
.phone-group .mud-input-control.mud-input-control-margin-dense {
    margin-top: 8px;
    margin-bottom: 4px;
}

.phone-group-code {
    flex: 0 0 7rem;
    /* Pull the number field over the picker's border so only one line is drawn between them. */
    margin-right: -1px;
}

.phone-group-number {
    flex: 1 1 auto;
    min-width: 0;
}

.phone-group-code .mud-input.mud-input-outlined > .mud-input-outlined-border {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.phone-group-number .mud-input.mud-input-outlined > .mud-input-outlined-border {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Focused/hovered field on top, otherwise the neighbour's border hides its highlight. */
.phone-group .mud-input.mud-input-outlined:focus-within,
.phone-group .mud-input.mud-input-outlined:hover {
    position: relative;
    z-index: 1;
}

.phone-flag {
    font-size: 1.5rem;
}

/* Tagesplan, „Tag wählen": Tage mit mindestens einer Buchung bekommen einen Punkt unter der Zahl.
   Die Regel steht global und nicht in DeliveryDaySchedule.razor.css, weil der Kalender in einem
   Popover außerhalb der Komponente gerendert wird — komponentengebundenes CSS erreicht ihn nicht. */
.day-has-bookings {
    position: relative;
    font-weight: 600;
}

.day-has-bookings::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

/* Meldungen stehen unten rechts — dort, wo die Detailleisten ihre Aktionsleiste haben. Eine Meldung
   legte sich damit genau auf „Speichern", also auf den Knopf, den man als Nächstes braucht (gemeldet
   Dennis, 2026-09-21). Statt die Ecke zu wechseln, was jede Meldung in der ganzen Anwendung beträfe,
   rücken sie um eine Stufe der Abstandsskala nach oben (--mud-spacing-6 = 24 px), auf MudBlazors
   eigene 24 px aufgeschlagen. Der Aufschlag steht als Token und nicht als lose Zahl, damit er auf
   derselben Skala liegt wie alle anderen Abstände.
   Das vorangestellte body ist kein Zierrat: MudBlazors Stylesheet wird NACH app.css geladen, und bei
   gleicher Spezifität gewönne seine Regel. Ein Elementname davor genügt, um das umzudrehen — ohne
   !important, das später niemand mehr überstimmen könnte. */
body .mud-snackbar-location-bottom-right { bottom: calc(24px + var(--mud-spacing-6)); }

/* Allgemeine Dialog-Regel (Vorgabe Dennis, 2026-09-28; zuerst „Lieferplatz anlegen", 2026-09-21):
   Kopf mit Titel und Schließen steht oben fest, die Aktionsleiste unten, nur die Mitte rollt — und
   der Dialog wächst mit, solange das Fenster Platz hat.
   MudBlazor lässt von Haus aus den GANZEN Dialog rollen (overflow-y auf .mud-dialog); damit wandern
   Titel und Schaltflächen mit nach oben und unten aus dem Bild. Umgedreht wird das in zwei Schritten:
   der Dialog rollt nicht mehr, und der Inhaltsbereich wird zum dehnbaren Teil der Spalte, der bei
   Bedarf für sich rollt. min-height:0 ist dabei nicht schmückend — ohne das darf ein Flex-Element
   nicht unter seine Inhaltshöhe schrumpfen und würde gar nicht erst rollen.
   Eine Höhe deckeln wir nicht: MudBlazors eigene Grenze ist die Fensterhöhe.
   Global, weil der Dialog außerhalb der Komponente gezeichnet wird; die Klasse app-dialog am
   MudDialog schaltet die Regel ein. Den Titel zeichnet AppDialogTitle. Doppelte Klasse, weil
   MudBlazors Stylesheet nach app.css lädt und bei gleicher Spezifität sein overflow-y gewönne. */
.mud-dialog.app-dialog { overflow: hidden; }
.app-dialog .mud-dialog-content { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; }
/* Kopf nur so hoch, wie das Schließen-Kreuz braucht. Doppelte Klasse aus demselben Grund wie oben —
   sonst gewinnt MudBlazors 16px/24px-Innenabstand. */
.mud-dialog.app-dialog .mud-dialog-title {
    padding: 4px 8px 4px 24px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}
/* Anlass des Dialogs, nicht sein Inhalt: klein, fett, Mono, sekundär. */
.app-dialog-title {
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
    overflow-wrap: anywhere;
}
/* Aktionsleiste: links Stand in Mono, rechts die Knöpfe, die Hauptaktion ganz rechts. Ohne
   Standtext bleiben die Knöpfe rechts, weil nur der Stand nach links drückt. */
.mud-dialog.app-dialog .mud-dialog-actions {
    padding: 12px 24px;
    border-top: 1px solid var(--mud-palette-lines-default);
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.app-dialog-status {
    /* D-3: der Stand bricht in sich um, nicht die Knöpfe in eine zweite Zeile. */
    flex: 1 1 0;
    min-width: 0;
    margin-right: auto;
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--mud-palette-text-secondary);
}
/* Status-Kasten nach Lot: eine Fläche über die ganze Breite in der Status-Farbe, ein Titel (Symbol + Wort)
   und darunter die Sätze in Mono — dreifach kodiert (Farbe, Symbol, Text), ohne weitere Kästen darin.
   Lebenszyklus mit Lot-Rollen: gültig/genehmigt = active, wartet = pending, neutral = draft.
   DS-GAP-001 (1885UXDS docs/DS-GAPS.md, 28.09.2026): Lot hat keine Status-Rolle für „abgelehnt/abgelaufen —
   es ist etwas zu tun“ und keine für „gesperrt“. Übergangsweise aus den App-Warn- und Fehlerfarben;
   Text bleibt in Vordergrundfarbe, das Symbol trägt die Farbe. */
.status-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border-radius: 2px;
}
.status-box-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}
/* Doppelte Klasse gegen MudBlazors Typo-Klasse, die nach app.css lädt. */
.status-box .status-box-text {
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}
.status-box-text.is-quiet { opacity: 0.8; }
.status-box-text.is-emphasis { font-weight: 600; }
.status-box--active { background-color: var(--app-status-active); color: var(--app-status-active-foreground); }
.status-box--pending { background-color: var(--app-status-pending); color: var(--app-status-pending-foreground); }
.status-box--draft { background-color: var(--app-status-draft); color: var(--app-status-draft-foreground); }
/* Info: gut zu wissen, kein Status — Stahl wie Lot-info, als Tönung statt Vollfläche. */
.status-box--info { background-color: var(--mud-palette-steel-tint); color: var(--mud-palette-text-primary); }
.status-box--info .status-box-title .mud-icon-root { color: var(--mud-palette-steel); }
.status-box--attention { background-color: var(--mud-palette-warn-tint); color: var(--mud-palette-text-primary); }
.status-box--attention .status-box-title .mud-icon-root { color: var(--mud-palette-warn); }
/* Ergebnis eines Anlage-Vorgangs (Schrittprotokoll, Zugangsdaten): neutrale Flächen mit Haarlinie, gleiche Innenkante
   16px, Zeilen im 8er-Raster. Kopf wie der Dialogtitel klein in Mono. Farbe nur an Zeichen, die Aufmerksamkeit brauchen. */
/* Die Bestätigung ist der Fokus des Dialogs: viel Luft oben und unten. */
.result-headline { display: flex; gap: 12px; align-items: flex-start; padding: 24px 0 20px; }
/* Doppelte Klasse gegen MudBlazors Icon-Größe; 30px = Zeilenhöhe der Headline, so steht der Haken oben bündig. */
.result-headline .result-headline-mark { flex: none; width: 30px; height: 30px; font-size: 30px; }
.result-headline[data-tone="success"] .result-headline-mark { color: var(--mud-palette-success); }
.result-headline[data-tone="attention"] .result-headline-mark { color: var(--mud-palette-warn); }
.result-headline-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.result-headline-title { margin: 0; font-size: 22px; line-height: 30px; font-weight: 700; color: var(--mud-palette-text-primary); }
.result-headline-sub { margin: 0; font-size: 14px; line-height: 20px; color: var(--mud-palette-text-secondary); }
.result-headline-note { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--mud-palette-text-primary); }
.result-panel {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 2px;
    background: var(--mud-palette-surface);
}
.result-panel-head {
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
}
/* Kopf eines Blocks mit Aktion rechts (Auftrag öffnen); die Linie trägt die Zeile, nicht die Überschrift. */
.result-panel-head-row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding-right: 16px; border-bottom: 1px solid var(--mud-palette-lines-default);
}
.result-panel-head-row .result-panel-head { border-bottom: 0; }
/* Hinweis am Fuß eines Blocks (etwa „Kein Fachbauleiter eingetragen“): neutral, Stahl wie Lot-info, über eine Linie
   von den Angaben getrennt. */
.result-panel-note {
    display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 12px 16px;
    border-top: 1px solid var(--mud-palette-lines-default);
    background-color: var(--mud-palette-steel-tint);
    font-size: 14px; color: var(--mud-palette-text-primary);
}
.result-panel-note .mud-icon-root { flex: none; margin-top: 1px; color: var(--mud-palette-steel); }
.result-steps { list-style: none; margin: 0; padding: 0; }
/* Feste Spalte für die Aktion: Texte jeder Zeile enden an derselben Kante und laufen nie unter den Link. */
.result-step {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 168px;
    column-gap: 12px;
    align-items: start;
    padding: 12px 16px;
}
.result-step + .result-step { border-top: 1px solid var(--mud-palette-lines-default); }
.result-step-mark { margin-top: 1px; color: var(--mud-palette-success); }
.result-step[data-state="waiting"] .result-step-mark { color: var(--mud-palette-steel); }
.result-step[data-state="unknown"] .result-step-mark { color: var(--mud-palette-warn); }
.result-step[data-state="failed"] .result-step-mark { color: var(--mud-palette-error); }
.result-step-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.result-step-label { color: var(--mud-palette-text-primary); }
.result-step-state { font-weight: 600; color: var(--mud-palette-text-primary); }
.result-step-hint { color: var(--mud-palette-text-secondary); }
.result-step-action { justify-self: end; text-align: right; }
@media (max-width: 599.98px) {
    .result-step { grid-template-columns: 20px minmax(0, 1fr); }
    .result-step-action { grid-column: 2 / -1; justify-self: start; text-align: left; margin-top: 4px; }
}
/* Zugangsdaten leicht hinterlegt: der eine Block, mit dem die Person noch etwas tun muss. */
.result-panel.credentials { background: var(--app-status-draft); }
/* Ausweis: weiße Karte auf der hinterlegten Fläche, Bild links, Name groß, Angaben darunter. */
.credentials-id {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    margin: 16px 16px 0;
    padding: 16px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
    background: var(--mud-palette-surface);
    box-shadow: var(--mud-elevation-1);
}
.credentials-avatar {
    display: flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; border-radius: 4px;
    background: var(--mud-palette-steel-tint);
}
.credentials-avatar .mud-icon-root { width: 44px; height: 44px; font-size: 44px; color: var(--mud-palette-steel); }
.credentials-id-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.credentials-person-name { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--mud-palette-text-primary); overflow-wrap: anywhere; }
.credentials-person-role { font-size: 14px; color: var(--mud-palette-text-secondary); }
.credentials-id .credentials-grid { margin: 8px 0 0; }
/* Telefon: Bild und Name in einer Zeile, die Angaben darunter über die ganze Kartenbreite. */
@media (max-width: 599.98px) {
    .credentials-id { grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; align-items: center; margin: 12px 12px 0; padding: 12px; }
    .credentials-id-body { display: contents; }
    .credentials-person-name,
    .credentials-person-role { grid-column: 2; }
    .credentials-id .credentials-grid { grid-column: 1 / -1; column-gap: 8px; }
    .credentials-value { font-size: 13px; }
    .credentials-avatar { width: 48px; height: 48px; }
    .credentials-avatar .mud-icon-root { width: 30px; height: 30px; font-size: 30px; }
}
/* Angaben einer Person im Ergebnis (Mitarbeiterdetails): dieselbe Beschriftungsspalte wie die Zugangsdaten, damit die
   Werte beider Blöcke an einer Kante stehen. */
.result-facts {
    display: grid;
    grid-template-columns: minmax(136px, max-content) minmax(0, 1fr);
    gap: 12px 16px;
    align-items: baseline;
    margin: 0;
    padding: 16px;
}
.result-facts dt,
.result-facts dd { margin: 0; }
/* Schlüssel in Mono fett, Wert in der Textschrift; getrennt nur über Abstand, ohne Linien. */
.result-facts dt {
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--mud-palette-text-secondary);
}
.result-facts dd { font-size: 14px; color: var(--mud-palette-text-primary); overflow-wrap: anywhere; }
@media (max-width: 599.98px) {
    .result-facts { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
    .result-facts dd + dt { margin-top: 8px; }
}
.credentials-grid {
    display: grid;
    grid-template-columns: minmax(120px, max-content) minmax(0, 1fr) 32px;
    gap: 4px 16px;
    align-items: center;
    margin: 8px 16px 0;
}
.credentials-grid dt,
.credentials-grid dd { margin: 0; min-height: 32px; display: flex; align-items: center; }
/* Schlüssel wie in den Mitarbeiterdetails: Mono fett, getrennt nur über Abstand. */
.credentials-grid dt {
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--mud-palette-text-secondary);
}
.credentials-value {
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    color: var(--mud-palette-text-primary);
    overflow-wrap: anywhere;
}
.credentials-secret { font-size: 16px; font-weight: 600; letter-spacing: 0.04em; }
/* Telefon: Beschriftung über dem Wert, damit Adresse und Passwort nicht zeichenweise umbrechen. */
@media (max-width: 599.98px) {
    .credentials-grid { grid-template-columns: minmax(0, 1fr) 32px; row-gap: 0; }
    .credentials-grid dt { grid-column: 1 / -1; min-height: 0; padding-top: 8px; }
}
.credentials-notes { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
/* Mail-Stand als kleiner Status-Kasten: verschickt positiv (active), nicht verschickt Handlung nötig (attention). */
.credentials-note {
    display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 8px 12px; border-radius: 2px;
    font-size: 14px; font-weight: 600;
}
.credentials-note .mud-icon-root { flex: none; margin-top: 1px; }
.credentials-note[data-tone="positive"] {
    background-color: var(--app-status-active);
    color: var(--app-status-active-foreground);
    border: 1px solid var(--mud-palette-success);
    border-left-width: 4px;
}
.credentials-note[data-tone="positive"] .mud-icon-root { color: var(--mud-palette-success); }
.credentials-note[data-tone="attention"] {
    background-color: var(--mud-palette-warn-tint);
    color: var(--mud-palette-text-primary);
    border: 1px solid var(--mud-palette-warn);
    border-left-width: 4px;
}
.credentials-note[data-tone="attention"] .mud-icon-root { color: var(--mud-palette-warn); }
/* Hinweis zum Einmalpasswort: Status-Kasten „info“ mit Titel, abgesetzt vom Mail-Stand darüber. */
.credentials-info { margin-top: 4px; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Auf dem Telefon fast Vollbild mit kleinem Rand — die Knöpfe bleiben unten, auch über der Tastatur
   (dvh folgt der sichtbaren Höhe). */
@media (max-width: 599.98px) {
    .mud-dialog-container .mud-dialog.app-dialog {
        width: calc(100vw - 16px);
        max-width: none;
        height: calc(100dvh - 16px);
        max-height: calc(100dvh - 16px);
        margin: 8px;
    }
    .mud-dialog.app-dialog .mud-dialog-title { padding-left: 16px; }
    .mud-dialog.app-dialog .mud-dialog-actions { padding: 12px 16px; }
}

/* Freiwilliges als Zeilen mit Trennlinien (UX.md, Regel: Dialoge) — aufklappen und wieder zuklappen; eingeklappt
   steht rechts, was eingetragen ist, sonst „freiwillig“. Upload-Dialog und Prüfseite. */
.fold-rows {
    border-top: 1px solid var(--mud-palette-lines-default);
    margin-bottom: 24px;
}
.fold-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 0 4px;
    border: 0;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    background: none;
    color: var(--mud-palette-text-primary);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
/* Aufgeklappt trennt die Linie unter dem Inhalt — die unter der Zeile selbst wäre doppelt. */
.fold-row.is-open {
    border-bottom: 0;
}
.fold-row:focus-visible {
    outline: 2px solid var(--mud-palette-steel);
    outline-offset: -2px;
}
.fold-row-label {
    flex: 1 1 auto;
}
.fold-row-value {
    color: var(--mud-palette-text-secondary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
}
.fold-row-body {
    padding: 4px 4px 12px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}
/* Formular im Dialog: einspaltig, ein Abstand für alle Felder statt eigener Ränder je Feld. Die Felder behalten
   MudBlazors schwebende Beschriftung mit Sternchen (PO 26.10.2026) und deren Rand (8px oben für die Beschriftung,
   4px unten); mit 12px dazwischen liegen sichtbar 24px zwischen zwei Feldrahmen. Erster Nutzer: Person anlegen. */
.app-form { display: flex; flex-direction: column; gap: 12px; }
/* Im Dialog Luft zu Kopf und Aktionsleiste (MudBlazor gibt oben nur 8px). */
.app-dialog form.app-form { padding: 16px 0 24px; }
.app-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* Kurze zusammengehörige Felder nebeneinander in gleich breiten Spalten (Lot: Vor- und Nachname, PLZ und Ort); schmal untereinander. */
.app-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: start; }
@media (max-width: 480px) { .app-field-row { grid-template-columns: minmax(0, 1fr); } }
/* Felder 48px hoch: Ziel mindestens 44px (WCAG 2.5.5, Lot field-height), im Achterraster (Fundstellen 2026-10-26 Mitarbeiter anlegen, Nr. 9).
   Gilt für Text-, Such-, Auswahl- und Telefonfelder im Formular; die ruhende Beschriftung sitzt wieder mittig,
   die hochgerutschte bleibt auf dem Rahmen. */
.app-form .mud-input.mud-input-outlined .mud-input-slot.mud-input-root-margin-dense { padding-top: 14.5px; padding-bottom: 14.5px; }
.app-form .mud-input:not(.mud-shrink):not(:focus-within) ~ label.mud-input-label-outlined.mud-input-label-margin-dense {
    transform: translate(14px, 16px) scale(1);
}
.app-field-hint { margin: -8px 0 0; font-size: 13px; line-height: 1.3; color: var(--mud-palette-text-secondary); }
/* Leere Fehlerzeile unter einem Feld nimmt keinen Abstand ein. */
.app-field > .mud-error-text:empty { display: none; }
.app-form-section { display: flex; flex-direction: column; gap: 8px; }
/* Formular mit Bereichen: Bereiche stehen weiter auseinander als die Felder darin (Lot dialog-section-gap, dialog-heading-gap). */
.app-form.app-form--sections { gap: 40px; }
.app-dialog .app-form.app-form--sections { padding: 16px 0 24px; }
.app-form--sections > .wizard-form-errors { margin-bottom: 0; }
.app-form-group { display: flex; flex-direction: column; gap: 12px; }
.app-form-group > .wizard-block__title { margin: 0 0 4px; }
/* Bereichstitel im Dialogformular (Firma, Verantwortliche Person): deutlich größer als die Feldbeschriftungen (PO 27.10.2026). */
.app-form-group-title { margin: 0 0 4px; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--mud-palette-text-primary); }
.app-form-group > .fold-rows { margin: 20px 0 0; }
/* Klappzeile als Beschriftung eines Bereichs: fett, damit sie neben den Feldern auffällt (PO 27.10.2026). */
.fold-rows--strong .fold-row-label { font-weight: 600; }
.fold-rows--strong .fold-row { min-height: 56px; padding-inline: 8px; }
.app-form-section-title { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--mud-palette-text-primary); }
/* Technische Kennungen beim Bearbeiten: klein und am Ende, nicht als Hinweisfläche. */
.app-form-meta { margin: 0; font-size: 12px; line-height: 1.5; color: var(--mud-palette-text-secondary); overflow-wrap: anywhere; }
/* Aufgeklappt stehen die Felder im Raster; die Zeile selbst bleibt wie oben. */
.fold-row-body.app-form { padding: 16px 4px 24px; }

/* Raster nach Lot (1885UXDS research/C-design.md, Dennis 29.09.2026): Inhalt bis 1280 px (Formulare, Detailseiten),
   breit bis 1440 px (Listen, geteilte Ansichten wie die Prüfseite), zentriert. Seiten ziehen nach, wenn sie ohnehin
   angefasst werden. */
:root {
    --app-width-content: 1280px;
    --app-width-wide: 1440px;
}
.app-width-content { max-width: var(--app-width-content); margin-inline: auto; }
.app-width-wide { max-width: var(--app-width-wide); margin-inline: auto; }

/* Rechte-Kacheln: Rolleneditor und Rollendetail zeigen jedes Recht im selben Raster (Briefing C-7). */
.perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 4px 0 8px; }
@media (max-width: 760px) { .perm-grid { grid-template-columns: minmax(0, 1fr); } }
.perm-tile { display: flex; align-items: flex-start; gap: 4px; padding: 12px 16px; border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; background: var(--mud-palette-surface); }
.perm-tile--selectable { cursor: pointer; transition: border-color .15s, background-color .15s; }
.perm-tile--selectable:hover { border-color: var(--mud-palette-text-secondary); }
.perm-tile--on, .perm-tile--on:hover { border-color: var(--mud-palette-primary); box-shadow: inset 4px 0 0 var(--mud-palette-primary); background: color-mix(in srgb, var(--mud-palette-primary) 7%, var(--mud-palette-surface)); }
.perm-tile__check { flex: none; margin: -7px 0 -7px -8px; }
.perm-tile__check .mud-checkbox { margin: 0; }
.perm-tile__body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.perm-tile__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.perm-tile__label { font-weight: 500; line-height: 24px; }
.perm-tile--on .perm-tile__label { font-weight: 600; }
.perm-tile__key { max-width: 100%; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 18px; padding: 1px 8px; border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; color: var(--mud-palette-text-secondary); background: var(--mud-palette-surface); }
.perm-tile__desc { font-size: 13px; line-height: 1.5; color: var(--mud-palette-text-secondary); }
.perm-group__count { margin-left: 8px; font-weight: 400; color: var(--mud-palette-text-secondary); }
.perm-tile--on .perm-tile__key { background: var(--mud-palette-primary); border-color: var(--mud-palette-primary); color: var(--mud-palette-primary-text); }

/* Vollbild-Assistent im Lot-Raster (WizardShell, Rohkonzept Anlage-Services): links Schrittliste, Mitte Formular,
   rechts Kontextfenster. Farben aus dem heutigen Theme; der Wechsel auf Lot-Rollen folgt app-weit. */
.wizard-dialog .mud-dialog-content { padding: 0 !important; margin: 0 !important; }
/* Der Assistent liegt als Ebene über der abgedunkelten Anwendung, als zentriertes Blatt, das von unten in die Seite ragt
   (PO 26.10.2026). Oben derselbe Abstand wie seitlich (--wizard-gap, mit dem Fenster 16–40 px); breiter als
   --app-width-wide wachsen nur die Seiten, oben bleibt es bei --wizard-gap (PO 26.10.2026). */
.mud-dialog.wizard-dialog { --wizard-gap: clamp(16px, 2.5vw, 40px); position: fixed; inset: var(--wizard-gap) 0 0 0; width: calc(100% - 2 * var(--wizard-gap)); max-width: var(--app-width-wide); max-height: none; margin: 0 auto; border-radius: 8px 8px 0 0; overflow: hidden; box-shadow: var(--mud-elevation-12); }
/* Öffnen: das Blatt schiebt sich von unten herein (PO 27.10.2026) statt des kurzen Aufzoomens von MudBlazor. */
.mud-dialog.wizard-dialog { animation: wizard-slide-in .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes wizard-slide-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .mud-dialog.wizard-dialog { animation: none; } }
.wizard-shell { --wizard-view-height: 72px; position: relative; display: grid; grid-template-columns: 18% minmax(0, 1fr) 24%; height: calc(100dvh - var(--wizard-gap, 0px)); background: var(--mud-palette-background); }
.wizard-shell[data-panel="closed"] { grid-template-columns: 18% minmax(0, 1fr) 0; }
.wizard-shell__side { display: grid; grid-template-rows: auto 1fr auto; border-right: 1px solid var(--mud-palette-lines-default); background: var(--mud-palette-background-grey); min-height: 0; }
/* Kopf links so hoch wie View Bar und Fortschrittsbalken in der Mitte (Lot 0033: gleiche Höhen wie die Shell). */
.wizard-shell__head { box-sizing: border-box; height: calc(var(--wizard-view-height) + 3px); display: flex; flex-direction: column; justify-content: center; padding: 0 20px; border-bottom: 1px solid var(--mud-palette-lines-default); }
.wizard-shell__context { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
/* Ohne den roten Strich der globalen h1-Regel (PO 16.10.2026). */
.wizard-shell__title { margin: 4px 0 0; padding: 0; border-bottom: 0; font-size: 16px; font-weight: 600; }
.wizard-shell__steps { list-style: none; margin: 0; padding: 12px 8px; overflow-y: auto; }
.wizard-shell__step { display: flex; gap: 12px; align-items: flex-start; justify-content: flex-start; margin: 0; width: 100%; padding: 8px 12px; min-height: 44px; border: 0; background: none; text-align: left; font: inherit; color: var(--mud-palette-text-secondary); border-radius: 4px; }
button.wizard-shell__step { cursor: pointer; }
button.wizard-shell__step:hover { background: var(--mud-palette-action-default-hover); }
.wizard-shell__mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; font-size: 13px; font-variant-numeric: tabular-nums; background: var(--mud-palette-surface); }
.wizard-shell__step-label { display: grid; padding-top: 4px; }
.wizard-shell__step-label small { font-size: 12px; color: var(--mud-palette-text-secondary); }
li[data-state="current"] .wizard-shell__step { color: var(--mud-palette-text-primary); font-weight: 600; }
li[data-state="current"] .wizard-shell__mark { border: 2px solid var(--mud-palette-primary); }
li[data-state="done"] .wizard-shell__step { color: var(--mud-palette-text-primary); }
li[data-state="done"] .wizard-shell__mark { background: var(--mud-palette-text-primary); color: var(--mud-palette-surface); border-color: var(--mud-palette-text-primary); }
li[data-state="locked"] .wizard-shell__step { opacity: .6; }
li[data-state="error"] .wizard-shell__step { color: var(--mud-palette-text-primary); }
li[data-state="error"] .wizard-shell__mark { border-color: var(--mud-palette-error); color: var(--mud-palette-error); }
li[data-state="error"] .wizard-shell__step-label small { color: var(--mud-palette-error); }
li[data-current="true"] .wizard-shell__step { font-weight: 600; }
li[data-current="true"][data-state="error"] .wizard-shell__mark { border-width: 2px; }
.wizard-shell__side-foot { padding: 12px 20px; border-top: 1px solid var(--mud-palette-lines-default); }
.wizard-shell__main { display: grid; grid-template-rows: auto 3px auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; background: var(--mud-palette-surface); }
.wizard-shell__view { grid-row: 1; box-sizing: border-box; height: var(--wizard-view-height); display: flex; align-items: center; gap: 12px; padding: 0 32px; }
.wizard-shell__num { font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 24px; color: var(--mud-palette-text-secondary); }
.wizard-shell__step-title { flex: 1; margin: 0; font-size: 24px; font-weight: 600; outline: none; }
.wizard-shell__progress { grid-row: 2; background: var(--mud-palette-lines-default); }
.wizard-shell__progress i { display: block; height: 100%; background: var(--mud-palette-primary); transition: width .2s ease; }
.wizard-shell__mobile-step { grid-row: 3; display: none; padding: 8px 16px; font-size: 13px; color: var(--mud-palette-text-secondary); }
.wizard-shell__body { grid-row: 4; overflow-y: auto; padding: 24px 32px 32px; }
.wizard-shell__form { max-width: 720px; }
.wizard-shell__foot { grid-row: 5; display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 12px 32px; border-top: 1px solid var(--mud-palette-lines-default); }
/* Große Bildschirme: mehr Luft um die Knöpfe, vor allem nach unten, wo das Blatt am Fensterrand endet (PO 27.10.2026). */
@media (min-width: 901px) { .wizard-shell__foot { padding: 16px 32px 28px; } }
.wizard-shell__panel { overflow: hidden auto; border-left: 1px solid var(--mud-palette-lines-default); background: var(--mud-palette-background-grey); padding: 16px 20px; }
.wizard-shell[data-panel="closed"] .wizard-shell__panel { display: none; }
.wizard-shell__panel-head { font-weight: 600; margin-bottom: 12px; }
/* Stichpunkte in der Seitenleiste und im Hinweis zur Weitervergabe (PO 30.10.2026). */
.wizard-panel-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; }
.chain-duty__title { font-weight: 600; margin-bottom: 4px; }
.chain-duty__list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
/* Fokus beim Anlegen und im Ergebnis (PO 27.10.2026): Schrittliste und Kopf blenden animiert aus, die Mitte wird breit. */
.wizard-shell { transition: grid-template-columns .4s ease; }
.wizard-shell__side { min-width: 0; overflow: hidden; transition: opacity .3s ease; }
.wizard-shell__view { overflow: hidden; transition: height .3s ease, opacity .3s ease; }
.wizard-shell[data-focus] { grid-template-columns: 0 minmax(0, 1fr) 0; }
.wizard-shell[data-focus] .wizard-shell__side { opacity: 0; border-right-width: 0; }
.wizard-shell[data-focus] .wizard-shell__view { height: 0; opacity: 0; }
.wizard-shell[data-focus] .wizard-shell__mobile-step { display: none; }
.wizard-shell[data-focus] .wizard-shell__body { outline: none; padding-top: clamp(32px, 8vh, 80px); }
/* Ergebnis im Assistenten dicht, damit die Zugangskarte im sichtbaren Bereich liegt (PO 27.10.2026); nur hier, die
   Ergebnis-Dialoge für Mitarbeitende behalten ihre Abstände. */
.wizard-result .result-headline { padding: 4px 0 4px; }
.wizard-result .result-panel-head { padding: 8px 16px; }
.wizard-result .result-facts { gap: 6px 16px; padding: 12px 16px; }
.wizard-result .result-step { padding: 8px 16px; }
.wizard-result .result-panel-note { padding: 8px 16px; }
.wizard-result .credentials-id { margin-top: 12px; padding: 12px 16px; }
.wizard-shell[data-focus] .wizard-shell__form { margin-inline: auto; }
/* Während des Anlegens läuft oben ein Band statt der Schrittanzeige. */
.wizard-shell[data-focus="working"] .wizard-shell__progress { position: relative; overflow: hidden; }
.wizard-shell[data-focus="working"] .wizard-shell__progress i { width: 30% !important; animation: wizard-working 1.2s ease-in-out infinite; }
.wizard-shell[data-focus="result"] .wizard-shell__progress { visibility: hidden; }
@keyframes wizard-working { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) {
    .wizard-shell, .wizard-shell__side, .wizard-shell__view { transition: none; }
    .wizard-shell[data-focus="working"] .wizard-shell__progress i { animation: none; width: 100% !important; }
}
.wizard-working { display: grid; gap: 24px; }
/* Lot-Krananimation im Anlegezustand (Vorlage lot-kran-kopf.html, 27.10.2026), unverändert übernommen. */
.lot-build { --ink:var(--lot-foreground,var(--mud-palette-text-primary)); --paper:var(--lot-card,var(--mud-palette-surface)); --steel:var(--lot-link,var(--mud-palette-text-secondary)); display:block;width:100%;max-width:390px;height:auto;margin:auto;fill:none;stroke:var(--ink);stroke-width:2.6;stroke-linejoin:miter;stroke-linecap:square; }
.lot-build .face { fill:var(--paper); }
.lot-build .side { fill:color-mix(in srgb,var(--steel) 13%,var(--paper)); }
.lot-build .hatching { stroke:none; }
.lot-build .hatch-line { stroke:var(--steel);stroke-width:1;opacity:.55; }
.lot-build .detail { stroke-width:1.2; }
.lot-build .brace { stroke-width:1.6; }
.lot-build .edge { stroke-width:3.2; }
.lot-build .rear { stroke:var(--steel);stroke-width:1;opacity:.28; }
.lot-build .ground { stroke:var(--steel);stroke-width:1;opacity:.18; }
.lot-build .window { fill:color-mix(in srgb,var(--steel) 23%,var(--paper));stroke-width:1.2; }
.lot-build .stay,.lot-build .sling { stroke-width:1.3; }
.lot-build .rear-sling { stroke:var(--steel); }
.lot-build .hook,.lot-build .cable { stroke-width:2; }
.lot-build .accent { stroke:var(--lot-brand,var(--mud-palette-primary));stroke-width:3; }
.lot-build .travel { animation:lot-crane-travel 7.2s ease-in-out infinite; }
.lot-build .hoist { animation:lot-crane-hoist 7.2s ease-in-out infinite; }
.lot-build .cable { transform-origin:267.5833px 141px;animation:lot-crane-cable 7.2s ease-in-out infinite; }
.lot-build .cargo { animation:lot-crane-cargo 7.2s linear infinite; }
.lot-build .placed { animation:lot-crane-placed 7.2s linear infinite; }
@keyframes lot-crane-travel { 0%,12%,100% { transform:translate(-86.60254px,-50px); } 40%,78% { transform:translate(0,0); } }
@keyframes lot-crane-hoist { 0%,40%,78%,100% { transform:translateY(-32px); } 59%,65% { transform:translateY(0); } }
@keyframes lot-crane-cable { 0%,40%,78%,100% { transform:scaleY(1); } 59%,65% { transform:scaleY(1.8); } }
@keyframes lot-crane-cargo { 0%,62% { opacity:1; } 62.01%,96% { opacity:0; } 100% { opacity:1; } }
@keyframes lot-crane-placed { 0%,62% { opacity:0; } 62.01%,88% { opacity:1; } 96%,100% { opacity:0; } }
@media(prefers-reduced-motion:reduce) {
 .lot-build .travel,.lot-build .hoist,.lot-build .cable,.lot-build .cargo,.lot-build .placed { animation:none; }
 .lot-build .travel { transform:translate(-86.60254px,-50px); }
 .lot-build .hoist { transform:translateY(-32px); }
 .lot-build .cargo { opacity:0; }
}
.lot-build .rear-brace { stroke:var(--steel);stroke-width:1;opacity:.6; }
.lot-build .stay-back { stroke:var(--steel);stroke-width:1.1; }
.lot-build .stay { stroke-width:1.6; }
.lot-build .head-edge { stroke-width:2.4; }
.wizard-shell__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wizard-review { display: grid; gap: 24px; }
/* Auftraggeber-Suche: gleich hohe Zeilen, Name links, Kennzeichen rechts; die gewählte Zeile nur grau getönt (Rot hieße Fehler). */
.client-popover .mud-list-item { min-height: 56px; padding-block: 8px; }
.client-popover .mud-list-item + .mud-list-item { border-top: 1px solid var(--mud-palette-lines-default); }
.client-popover .mud-selected-item { color: var(--mud-palette-text-primary) !important; background-color: var(--mud-palette-action-default-hover) !important; }
.client-option { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; }
.client-option__name { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-option__tags { display: inline-flex; align-items: center; gap: 6px; flex: none; }
/* Sekundäres Kennzeichen in der Form von „Meine Firma“, aber ohne Fläche. */
.secondary-tag { display: inline-flex; align-items: center; padding: 0 7px; border: 1px solid var(--mud-palette-lines-inputs); border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; line-height: 18px; text-transform: uppercase; color: var(--mud-palette-text-secondary); white-space: nowrap; }
/* Die eigene Firma als dunkles Kennzeichen, nicht in der Markenfarbe (Rot hieße Fehler). */
.own-company-tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; line-height: 18px; text-transform: uppercase; background: var(--mud-palette-text-primary); color: var(--mud-palette-surface); }
.wizard-review .wizard-block { margin-bottom: 0; }
/* Prüfansicht als kleine Tabellen (PO 27.10.2026): Kopf mit dezenter Fläche, darunter die Angaben dicht und ohne Linien. */
.wizard-review .wizard-block { padding: 0; overflow: clip; background: var(--mud-palette-surface); }
.wizard-review .wizard-block__head { margin: 0; padding: 4px 8px 4px 16px; min-height: 40px; background: var(--mud-palette-background-gray); border-bottom: 1px solid var(--mud-palette-lines-default); }
.wizard-review .result-facts { grid-template-columns: minmax(140px, 32%) minmax(0, 1fr); gap: 0; padding: 8px 0; }
.wizard-review .result-facts dt, .wizard-review .result-facts dd { padding: 3px 16px; }
.wizard-review .result-facts dt { font-family: inherit; font-size: 13px; font-weight: 600; }
/* Bereichstitel der Prüfansicht als Überschrift (PO 27.10.2026): fett, in Textfarbe, ohne Versalien. */
.wizard-review .wizard-block__head .wizard-block__title { font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--mud-palette-text-primary); }
.wizard-review .wizard-block__hint { margin: 0; padding: 10px 16px; }
.wizard-review .result-facts dd + dt { margin-top: 0; }
@media (max-width: 900px) {
    .wizard-shell, .wizard-shell[data-panel="closed"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .wizard-shell__steps, .wizard-shell__side-foot { display: none; }
    .wizard-shell__side { grid-template-rows: auto; border-right: 0; }
    .wizard-shell__mobile-step { display: block; }
    .wizard-shell__view, .wizard-shell__body, .wizard-shell__foot { padding-left: 16px; padding-right: 16px; }
    .wizard-shell__panel { grid-column: 1; border-left: 0; border-top: 1px solid var(--mud-palette-lines-default); }
    .wizard-shell__foot { flex-wrap: wrap; }
    .wizard-shell[data-focus], .wizard-shell[data-focus][data-panel="closed"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
    .wizard-shell[data-focus] .wizard-shell__side { display: none; }
}
.wizard-shell__confirm-backdrop { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .32); }
.wizard-shell__confirm { width: min(440px, calc(100% - 32px)); background: var(--mud-palette-surface); border-radius: 8px; padding: 24px; display: grid; gap: 12px; }
/* Laden: Skeleton in der Form des Schritts, der Indikator groß und mittig darüber. */
/* Laden: kleiner Indikator links über dem Skeleton, das Skeleton läuft als Welle (Lot list.structure.zustaende: Laden zeigen, Form halten). */
.wizard-loading { display: grid; gap: 24px; }
.wizard-loading__indicator { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--mud-palette-text-primary); }
/* Fehlerliste oben im Schritt und Fehler an Feldern ohne MudBlazor-Fehlertext (Lot field.structure.fehlerliste, fehler-feld). */
/* Aussehen wie .lot-form-errors (lot.css): Kante links in der Fehlerfarbe, leicht getönter Grund, Überschrift in der
   Fehlerfarbe, Links in der Textfarbe (PO 27.10.2026). */
.wizard-form-errors { display: grid; gap: 8px; margin-bottom: 24px; padding: 12px 16px; border-left: 3px solid var(--mud-palette-error); border-radius: 8px; background: color-mix(in oklab, var(--mud-palette-error) 8%, var(--mud-palette-surface)); font-size: 14px; outline: none; }
.wizard-form-errors:focus-visible { outline: 2px solid var(--mud-palette-steel); outline-offset: 2px; }
.wizard-form-errors h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--mud-palette-error); }
.wizard-form-errors ul { margin: 0; padding-left: 16px; display: grid; gap: 4px; }
.wizard-form-errors a { color: var(--mud-palette-text-primary); text-decoration: underline; text-underline-offset: 2px; }
/* Fehler am Feld wie .lot-field-error: Warndreieck vor dem Text. Die Linie links neben dem Feld lässt die App weg (PO 27.10.2026). */
:is(.app-form, .wizard-shell__main) .mud-input-control.mud-input-error .mud-input-helper-text, .wizard-field-error { display: flex; gap: 4px; align-items: flex-start; font-size: 13px; font-weight: 500; }
:is(.app-form, .wizard-shell__main) .mud-input-control.mud-input-error .mud-input-helper-text::before, .wizard-field-error::before {
    content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wizard-field-error { margin: 4px 0 0; color: var(--mud-palette-error); }
.wizard-field--error { border-left: 2px solid var(--mud-palette-error); padding-left: 8px; }
.wizard-shell__confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
/* Angabe zum Lesen in einer Karte wie die übrigen Blöcke (Lot field.structure.zustaende: nur lesen mit Herkunft). */
.wizard-block__value { font-size: 16px; font-weight: 600; color: var(--mud-palette-text-primary); }
.wizard-block__hint { margin-top: 4px; font-size: 12px; color: var(--mud-palette-text-secondary); }
/* Kurzer Hinweis direkt unter dem Bereichstitel, vor den Feldern. */
h3.wizard-block__title { margin-top: 0; }
.wizard-block__intro { margin: -4px 0 16px; font-size: 14px; color: var(--mud-palette-text-secondary); }
.person-pick__row { display: flex; align-items: center; min-height: 48px; padding: 0 8px; }
.person-pick__row .mud-checkbox { width: 100%; margin: 0; }
.wizard-block__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.wizard-block__head .wizard-block__title { margin: 0; }
.wizard-block .result-facts { margin: 8px 0 0; }
.result-facts .own-company-tag { margin-left: 8px; vertical-align: 1px; }
.wizard-block__value { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* Wahl des Vertrags bei mehreren derselben Firma: Karten als Optionsfelder, ganze Karte klickbar (Lot field.structure.auswahl). */
.contract-choice-group { display: grid; gap: 8px; outline: none; }
.contract-choice-group__title { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.contract-choice { display: flex; justify-content: flex-start; align-items: flex-start; gap: 12px; width: 100%; min-height: 44px; padding: 12px 16px; border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; background: var(--mud-palette-surface); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.contract-choice:hover, .contract-choice:focus-visible { background: var(--mud-palette-action-default-hover); }
.contract-choice[aria-checked="true"] { border: 2px solid var(--mud-palette-text-primary); padding: 11px 15px; }
.contract-choice__mark { flex: none; margin-top: 2px; }
.contract-choice__body { display: grid; gap: 2px; }
.contract-choice__name { font-weight: 600; }
/* Firmenwahl im Assistenten: ruhige Liste, gleich hohe Zeilen, Name und darunter Ort · Land; gewählt = getönt mit Strich links (Lot list). */
.company-pick { border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; overflow: clip; }
.company-pick__head { padding: 8px 16px; border-bottom: 1px solid var(--mud-palette-lines-default); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
.company-pick__list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.company-pick__list li + li { border-top: 1px solid var(--mud-palette-lines-default); }
.company-pick__row { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; min-height: 56px; padding: 8px 16px; border: 0; border-left: 3px solid transparent; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.company-pick__row:hover, .company-pick__row:focus-visible { background: var(--mud-palette-action-default-hover); }
.company-pick li[aria-selected="true"] .company-pick__row { border-left-color: var(--mud-palette-primary); background: var(--mud-palette-action-default-hover); }
.company-pick__text { display: grid; gap: 2px; min-width: 0; }
.company-pick__name { font-size: 15px; font-weight: 600; color: var(--mud-palette-text-primary); overflow-wrap: anywhere; }
.company-pick__place { font-size: 13px; color: var(--mud-palette-text-secondary); }
.company-pick__check { margin-left: auto; flex: none; }
.company-pick__empty { margin: 0; padding: 16px; font-size: 14px; color: var(--mud-palette-text-secondary); }
/* Treffer ohne Auswahl, mit einer Aktion rechts (Suche in „Firma ohne Vertrag anlegen“). */
.company-pick__item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 8px 8px 16px; }
.company-pick__item > .company-pick__text { flex: 1 1 auto; }
.company-pick__item > .company-pick__action { margin-left: auto; flex: none; }
/* Begonnene neue Firma: Datensatz mit gestricheltem Rand in der Farbe für „neu“ (wie der Platzhalter in der Kette), nicht als Hinweis. */
.company-draft { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: 16px; border: 1px dashed var(--mud-palette-info); border-radius: 4px; background: var(--mud-palette-background-gray); }
.company-draft__body { display: grid; gap: 2px; flex: 1 1 240px; min-width: 0; }
.company-draft__tag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mud-palette-info); }
.company-draft__name { font-size: 16px; font-weight: 600; color: var(--mud-palette-text-primary); overflow-wrap: anywhere; }
.company-draft__hint { font-size: 13px; color: var(--mud-palette-text-secondary); }
.company-draft__actions { display: flex; align-items: center; gap: 4px; }
/* Breadcrumb an der Vertragskarte: Baustelle › Firmen darüber. */
.contract-choice__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: 13px; color: var(--mud-palette-text-secondary); }
.contract-choice__crumbs .mud-icon-root { font-size: 16px; }
/* Gewählte Einordnung im ersten Schritt: deutlich abgesetzt, mit Titel und luftigeren Stufen. */
.wizard-placement { margin-top: 20px; }
.wizard-placement .mud-paper { padding: 20px !important; margin-bottom: 0 !important; }
.wizard-placement .mud-paper > div { padding-top: 8px !important; padding-bottom: 8px !important; }
/* Bereiche dicht untereinander (PO 27.10.2026): 12 px Abstand; in einem MudStack trägt der Stack den Abstand allein. */
.wizard-block { border: 1px solid var(--mud-palette-lines-default); border-radius: 4px; padding: 20px; margin-bottom: 12px; }
.mud-stack > .wizard-block { margin-bottom: 0; }
.wizard-block__title { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mud-palette-text-secondary); margin-bottom: 12px; }
@media (max-width: 900px) { .mud-dialog.wizard-dialog { inset: 0; width: 100%; border-radius: 0; } .wizard-shell { height: 100dvh; } }

/* Objektseite nach Lot (Muster page, evidence, list, status; Firmenprofil v1). Alles auf einem Blatt: Arbeitsfläche ohne Ton,
   darauf eine Karte mit Kopf (getönt, Linie darunter), Reitern (Linie darunter) und Inhalt. Abstände aus der 8er-Reihe:
   8 innerhalb, 16 zwischen Elementen, 32 zwischen Bereichen. Breite über .app-width-wide. */
/* Das Blatt rückt nah an die Navigation: der Seitenrahmen (article.content) bringt 32 px, das Profil zieht 16 davon zurück. */
.object-workspace { margin-top: -16px; padding: 0 16px 48px; min-height: 100%; }
.object-sheet { border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; background: var(--mud-palette-surface); box-shadow: 0 1px 2px rgba(15, 23, 42, .05); overflow: clip; }
/* Kopf und Reiter in einem Ton (--object-head-bg); der Inhalt darunter leicht getönt (--object-page-bg), damit Karten und
   Zeilen in Weiß hervortreten. */
.object-sheet { --object-head-bg: color-mix(in srgb, var(--mud-palette-text-primary) 5%, var(--mud-palette-surface)); --object-page-bg: color-mix(in srgb, var(--mud-palette-text-primary) 3%, var(--mud-palette-surface)); --object-box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 6px rgba(15, 23, 42, .04); }
/* Karten und Listen auf der getönten Fläche mit einem leichten Schatten; verschachtelte Listen in einer Zeile ohne. */
.object-page .object-rows:not(.object-rows--nested), .object-page .result-panel, .object-page .object-empty { box-shadow: var(--object-box-shadow); }
/* Seite ohne Reiter (Entscheidung „Freigaben“): dieselbe getönte Fläche wie unter den Reitern, mit Linie zum Kopf. */
.object-sheet > .object-page { background: var(--object-page-bg); border-top: 1px solid var(--mud-palette-lines-default); }
/* Sonstige Dokumente: je Art eine kleine Überschrift mit Anzahl über ihrer Liste. */
/* Sonstige Dokumente nach Art: Abstand zur Überschrift, je Art ein eigener Block mit Linie über dem Kopf. */
.object-doc-groups { display: grid; gap: 28px; margin-top: 8px; }
.object-doc-group { display: grid; gap: 10px; }
.object-doc-group + .object-doc-group { padding-top: 24px; border-top: 1px solid var(--mud-palette-lines-default); }
.object-doc-group-head { display: flex; align-items: center; gap: 8px; margin: 0; font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
.object-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; padding: 20px 32px 24px; background: var(--object-head-bg); }
.object-head > .object-crumbs, .object-head > .object-title-row { grid-column: 1; }
/* Aktionen oben rechts in der Ecke, über Pfad und Titel hinweg; schmal unter dem Titel. */
.object-head > .object-actions { grid-column: 2; grid-row: 1 / span 2; align-self: start; justify-self: end; }
.object-head .object-primary { min-height: 36px; padding: 0 14px; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.object-crumbs { display: inline-flex; align-items: center; gap: 4px; width: fit-content; font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mud-palette-text-secondary); text-decoration: none; }
.object-crumbs:hover { color: var(--mud-palette-text-primary); }
.object-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.object-title { display: flex; align-items: center; gap: 16px; flex: 1 1 320px; min-width: 0; }
.object-title-text { display: grid; gap: 4px; min-width: 0; }
/* Zeichen statt Bild, wo das Objekt kein Logo hat (Vertrag): so groß wie der Avatar der Profilseiten. */
.object-title-mark { display: inline-grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 8px; background: var(--mud-palette-steel-tint); color: var(--mud-palette-steel); }
.object-title-mark .mud-icon-root { font-size: 28px; }
/* Ohne den roten Strich der globalen h1-Regel, wie im Assistenten (PO 16.10.2026). */
.object-title-text h1 { margin: 0; padding: 0; border-bottom: 0; font-size: 28px; line-height: 34px; font-weight: 700; color: var(--mud-palette-text-primary); overflow-wrap: anywhere; }
.object-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
/* Hinweise im Kopf als Tag neben dem Namen: in der Höhe der Überschrift (28/34 px), damit Name und Tags eine Zeile bilden.
   Doppelte Klasse, weil .app-status weiter unten steht. */
/* Urteil als Karte (Lot verdict): sachter Verlauf in der Farbe der Lage, großes Zeichen, Satz als Überschrift, Erklärung darunter. */
.object-verdict { --verdict-tone: var(--mud-palette-steel); display: grid; justify-items: start; gap: 0; padding: 24px; border: 1px solid color-mix(in srgb, var(--verdict-tone) 30%, transparent); border-radius: 8px; background: linear-gradient(155deg, color-mix(in srgb, var(--verdict-tone) 20%, var(--mud-palette-surface)) 0%, color-mix(in srgb, var(--verdict-tone) 6%, var(--mud-palette-surface)) 55%, var(--mud-palette-surface) 100%); box-shadow: var(--object-box-shadow); }
.object-verdict[data-tone="active"] { --verdict-tone: var(--mud-palette-success); }
.object-verdict[data-tone="attention"] { --verdict-tone: var(--mud-palette-warn); }
.object-verdict[data-tone="blocked"] { --verdict-tone: var(--mud-palette-error); }
.object-verdict-kicker, .object-card-kicker { margin: 0; font-weight: 400; font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
/* Kennzahl-Karte (Lot lot-kpi): große Zahl, darunter die Rubrik in Mono; mit data-tone ein sachter Verlauf wie beim Urteil. */
.object-kpi-card { --verdict-tone: var(--mud-palette-steel); display: grid; gap: 16px; padding: 24px; border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; background: var(--mud-palette-surface); box-shadow: var(--object-box-shadow); }
.object-kpi-card[data-tone] { border-color: color-mix(in srgb, var(--verdict-tone) 28%, transparent); background: linear-gradient(155deg, color-mix(in srgb, var(--verdict-tone) 16%, var(--mud-palette-surface)) 0%, color-mix(in srgb, var(--verdict-tone) 5%, var(--mud-palette-surface)) 60%, var(--mud-palette-surface) 100%); }
.object-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.object-kpi { display: grid; align-content: start; gap: 6px; min-width: 0; }
.object-kpi dd { margin: 0; font-size: 44px; line-height: 48px; font-weight: 700; color: var(--mud-palette-text-primary); font-variant-numeric: tabular-nums; }
.object-kpi dt { margin: 0; font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
.object-kpi .object-kpi-bar { height: 6px; margin: 2px 0 0; border-radius: 3px; background: color-mix(in srgb, var(--verdict-tone) 18%, var(--mud-palette-surface)); overflow: hidden; }
.object-kpi .object-kpi-bar > span { display: block; height: 100%; border-radius: 3px; background: var(--verdict-tone); }
/* Leerzustand in der Karte (Lot lot-empty): Zeichen, eine fette Zeile, ein Satz. */
.object-kpi-empty { display: grid; justify-items: start; gap: 6px; }
.object-kpis:has(> .object-kpi:only-child) { grid-template-columns: minmax(0, 1fr); }
.object-kpi dd.object-kpi-text { font-size: 24px; line-height: 30px; font-variant-numeric: normal; overflow-wrap: anywhere; }
.object-today-first-aid { display: flex; align-items: center; gap: 8px; margin: 0; padding-top: 16px; border-top: 1px solid var(--mud-palette-lines-default); font-size: 14px; color: var(--mud-palette-text-secondary); }
.object-today-first-aid[data-first-aider] { font-weight: 600; color: var(--mud-palette-text-primary); }
.object-today-first-aid[data-first-aider] .mud-icon-root { color: var(--mud-palette-success); }
.object-kpi-empty-art { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 50%; background: var(--app-status-draft); color: var(--mud-palette-text-secondary); }
.object-kpi-empty-art .mud-icon-root { width: 26px; height: 26px; font-size: 26px; }
.object-kpi-empty b { font-size: 17px; line-height: 24px; color: var(--mud-palette-text-primary); }
.object-kpi-empty span:not(.object-kpi-empty-art) { font-size: 14px; line-height: 21px; color: var(--mud-palette-text-secondary); }
.object-card-more { justify-self: start; font-weight: 600; }
.object-verdict-art { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: 16px 0 20px; border-radius: 50%; background: var(--mud-palette-surface); box-shadow: 0 0 0 6px color-mix(in srgb, var(--verdict-tone) 14%, transparent); color: var(--verdict-tone); }
.object-verdict-art .mud-icon-root { width: 40px; height: 40px; font-size: 40px; }
.object-verdict-title { margin: 0; font-size: 22px; line-height: 28px; font-weight: 700; color: var(--mud-palette-text-primary); overflow-wrap: anywhere; }
.object-verdict-text { margin: 12px 0 0; font-size: 14px; line-height: 21px; color: var(--mud-palette-text-secondary); }
/* Personenseite: je Baustelle Name und Stand im Urteil, bei Sperre Grund und Abhilfe darunter. */
.object-verdict-sites { display: grid; gap: 12px; width: 100%; margin: 20px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid color-mix(in srgb, var(--verdict-tone) 22%, transparent); }
/* Baustelle und Stand in einer Zeile; reicht die Breite nicht, rutscht der Stand unter den Namen, statt den Namen zu zerteilen. */
.object-verdict-sites > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.object-verdict-site { flex: 1 1 9rem; min-width: 0; font-size: 14px; font-weight: 600; color: var(--mud-palette-text-primary); overflow-wrap: break-word; }
a.object-verdict-site--link { text-decoration: none; }
a.object-verdict-site--link:hover, a.object-verdict-site--link:focus-visible { color: var(--mud-palette-primary); text-decoration: underline; }
.object-verdict-reason { flex: 1 1 100%; display: grid; gap: 2px; font-size: 13px; line-height: 19px; color: var(--mud-palette-text-secondary); }
.object-verdict .object-card-more { margin-top: 16px; }
/* Weg zum Zutritt (Vertragsseite, Vault vertragsseite-v1-umfang §11): Urteil als Kopf mit Symbol links, darunter je Hürde eine
   Zeile mit Zustand, wer handelt und Aktion. Gesperrt in Gelb, Einrichtung neutral, nie rot. */
.readiness { --verdict-tone: var(--mud-palette-steel); border: 1px solid color-mix(in srgb, var(--verdict-tone) 30%, transparent); border-radius: 8px; background: var(--mud-palette-surface); box-shadow: var(--object-box-shadow); overflow: hidden; }
.readiness[data-tone="active"] { --verdict-tone: var(--mud-palette-success); }
.readiness[data-tone="attention"] { --verdict-tone: var(--mud-palette-warn); }
.readiness-head { display: flex; align-items: center; gap: 28px; padding: 24px 28px; background: color-mix(in srgb, var(--verdict-tone) 9%, var(--mud-palette-surface)); border-bottom: 1px solid color-mix(in srgb, var(--verdict-tone) 22%, transparent); }
.readiness-art { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--mud-palette-surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--verdict-tone) 14%, transparent); color: var(--verdict-tone); }
.readiness-art .mud-icon-root { width: 30px; height: 30px; font-size: 30px; }
.readiness-heading { display: grid; gap: 4px; min-width: 0; }
.readiness-title { margin: 0; font-size: 20px; line-height: 26px; font-weight: 700; color: var(--mud-palette-text-primary); overflow-wrap: break-word; hyphens: auto; }
.readiness > .object-rows { border: 0; border-radius: 0; }
/* Aufgeklappte offene Nachweise im Weg zum Zutritt: Status und Iconbutton stehen unter denen des Schritts, im breiten wie im
   schmalen Raster. Die Liste ist um Innenabstand und Rand eingerückt; um so viel ist ihre Aktionsspalte schmaler. Rechts im
   Schritt steht noch der Aufklapp-Pfeil, deshalb hält die Aktion Abstand in seiner Breite minus der Einrückung. */
.readiness .object-row-body .object-rows--preview {
    --nested-inset: calc(var(--row-body-pad) + var(--row-list-border));
    --nested-status: var(--row-status);
    --nested-actions: calc(var(--row-actions) - var(--nested-inset));
}
.readiness .object-row-body .object-rows--preview .object-row-main { grid-template-columns: minmax(0, 1fr) var(--nested-status) var(--nested-actions); column-gap: var(--row-column-gap); padding-right: 12px; }
.readiness .object-row-body .object-rows--preview .object-row-actions { padding-right: calc(var(--row-toggle-size) + var(--row-actions-gap) - var(--nested-inset)); }
/* Schmales Raster des Schritts: Status und Aktion sind dort so breit wie ihr Inhalt. Die Abfrage sitzt auf der Liste, damit
   die Breite der äußeren Liste entscheidet, nicht die der eingerückten. */
@container object-rows (max-width: 760px) {
    .readiness .object-row-body .object-rows--preview { --nested-status: auto; --nested-actions: auto; }
}
/* Schalter der Positionsspalte: dezent, in der Knopfzeile mit etwas Abstand zu den übrigen Knöpfen. */
.section-head-actions .positions-toggle { margin-left: 12px; color: var(--mud-palette-text-secondary); }
.section-head-actions .positions-toggle[aria-expanded="true"] { color: var(--mud-palette-steel); border-color: var(--mud-palette-steel); background-color: var(--mud-palette-steel-tint); }
/* Reiter Personen, oben: links die Meldungen, rechts die Positionen, je die Hälfte; darunter die Liste in voller Breite. Ohne Meldung
   bleibt links frei. Schmal untereinander, dort fällt eine leere Hälfte weg. */
.contract-people-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.contract-people-messages, .contract-people-positions { display: grid; gap: 12px; min-width: 0; }
/* Oben links: Überschrift, zwei Sätze und die Hauptfunktion als Kombi-Knopf; darunter Meldungen und Fortschritt. */
.contract-people-intro { display: grid; gap: 8px; justify-items: start; }
.contract-people-intro > .people-assign-combo { margin-top: 8px; }
/* Kombi-Knopf: zwei umrandete Knöpfe gleicher Höhe (36px wie Aktionen in Leisten), die sich eine Trennlinie teilen. */
.split-button { display: inline-flex; align-items: stretch; }
.split-button > .mud-menu, .split-button .mud-menu-activator { display: flex; }
.split-button .mud-button-root { height: 36px; }
.split-button > .split-button-main.mud-button-root { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.split-button .split-button-toggle.mud-button-root { min-width: 36px; width: 36px; padding: 0; margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.split-button .split-button-toggle.mud-button-root:hover, .split-button .split-button-toggle.mud-button-root:focus-visible { position: relative; z-index: 1; }
/* Fortschritt beim Zuordnen: drehendes Zeichen, Satz, Balken über die volle Breite. */
.assign-progress { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 14px; padding: 14px 18px; border: 1px solid color-mix(in srgb, var(--mud-palette-steel) 28%, transparent); border-radius: 6px; background: var(--mud-palette-steel-tint); }
/* Farben gegen die Standardfarbe von MudBlazor (.mud-progress-*-color-default) durchsetzen. */
.assign-progress .assign-progress-spinner.mud-progress-circular { color: var(--mud-palette-steel); }
.assign-progress-text { display: grid; gap: 2px; font-size: 14px; line-height: 20px; }
.assign-progress-bar { grid-column: 1 / -1; margin: 0 !important; }
.assign-progress .assign-progress-bar.mud-progress-linear { background-color: color-mix(in srgb, var(--mud-palette-steel) 18%, transparent); }
.assign-progress .assign-progress-bar.mud-progress-linear.mud-progress-linear-color-default .mud-progress-linear-bar { background-color: var(--mud-palette-steel); }
/* Eingeklappt steht rechts oben nur der Knopf „Positionen einblenden“. */
.contract-people-positions > .positions-reveal { justify-self: end; }
/* In der halben Breite füllt eine einzelne Karte ihre Hälfte, statt eine leere Spalte neben sich zu lassen. */
.contract-people-positions .position-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
@media (max-width: 899px) {
    .contract-people-top { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .contract-people-top > :empty { display: none; }
}
/* Kopfzeile der Personenliste: Titel, Filter, Suche; rechts die Aktionen und ganz rechts die Menge. Erst wenn die Breite
   nicht reicht, bricht die Zeile um. */
.section-head--people { justify-content: flex-start; }
/* Suche (ListSearchBox): ein Kasten wie der Filterknopf (weiß, Rand, 8px Ecken, 36px), darin die Lupe fest an ihrer Stelle und ein
   schlichtes Eingabefeld über die ganze Fläche; Schrift 16px, sonst zoomt Safari auf dem iPhone beim Antippen die Seite heran. Zu ist der Kasten 36px breit und zeigt nur die Lupe; der Fokus öffnet ihn auf 300px. Animiert wird
   nur seine Breite, in beide Richtungen; die Lupe bewegt sich nie. */
.people-search { position: relative; flex: none; box-sizing: border-box; width: 36px; height: 36px; overflow: hidden; border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; background: var(--mud-palette-surface); transition: width .32s cubic-bezier(.2, 0, 0, 1), border-color .15s; }
.people-search[data-open] { width: 300px; }
.people-search:hover { border-color: var(--mud-palette-steel); }
.people-search:focus-within { border-color: var(--mud-palette-steel); box-shadow: 0 0 0 1px var(--mud-palette-steel); }
@media (prefers-reduced-motion: reduce) { .people-search { transition: none; } }
.people-search-icon.mud-icon-root { position: absolute; top: 7px; left: 7px; width: 20px; height: 20px; font-size: 20px; color: var(--mud-palette-text-secondary); pointer-events: none; }
.people-search-input { box-sizing: border-box; width: 100%; height: 100%; margin: 0; padding: 0 34px 0 34px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--mud-palette-text-primary); cursor: pointer; }
.people-search[data-open] .people-search-input { cursor: text; }
.people-search-input::placeholder { color: var(--mud-palette-text-secondary); opacity: 1; }
.people-search:not([data-open]) .people-search-input::placeholder { color: transparent; }
.people-search-clear { position: absolute; top: 4px; right: 4px; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--mud-palette-text-secondary); cursor: pointer; }
.people-search-clear:hover { background: var(--app-status-draft); color: var(--mud-palette-text-primary); }
.people-search-clear:focus-visible { outline: 2px solid var(--mud-palette-steel); outline-offset: 0; }
/* Filter als Auswahl (Knopf wie die Baustellenwahl im Firmenprofil); ein gewählter Filter außer „Alle“ ist sichtbar hervorgehoben. */
.object-filter-switch { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 8px 0 12px; border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; background: var(--mud-palette-surface); font: inherit; font-size: 14px; font-weight: 500; color: var(--mud-palette-text-primary); white-space: nowrap; cursor: pointer; }
.object-filter-switch b, .object-filter-option b { font-variant-numeric: tabular-nums; }
.object-filter-switch:hover { border-color: var(--mud-palette-steel); }
.object-filter-switch:focus-visible { outline: 2px solid var(--mud-palette-steel); outline-offset: 2px; }
.object-filter-switch[data-active] { border-color: var(--mud-palette-steel); background: var(--mud-palette-steel-tint); }
.object-filter-option { display: inline-flex; gap: 8px; }
.section-head--people > .section-head-end { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.section-head--people > .section-head-end > .section-head-actions { margin-left: 0; }
/* Alle Werkzeuge der Zeile gleich hoch wie Filter und Suche (Lot actions.structure.groesse-ort: 36px in Leisten). */
.section-head--people .section-head-actions .mud-icon-button { width: 36px; height: 36px; }
@media (min-width: 1200px) { .section-head--people { flex-wrap: nowrap; } }
.readiness-who { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; letter-spacing: .04em; color: var(--mud-palette-text-secondary); }
/* Karten mit Symbol: Innenabstand und Abstand Symbol–Text gleich (--status-card-space); Symbol links, Überschrift und Unterzeile rechts daneben; Rubrik darüber und alles
   Weitere (Baustellen, Merkmale, Link) über die volle Breite darunter. Gilt für Urteil, Gewerk, Zutritt und den Leerzustand „Heute“. */
.object-verdict, .object-kpi-card { --status-card-space: 28px; min-width: 0; }
.object-verdict > .object-verdict-title, .object-verdict > .object-verdict-text { min-width: 0; overflow-wrap: anywhere; }
.object-verdict { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--status-card-space); padding: var(--status-card-space); }
.object-kpi-card { padding: var(--status-card-space); }
.object-verdict > * { grid-column: 1 / -1; }
.object-verdict > .object-verdict-kicker { margin-bottom: 26px; }
.object-verdict > .object-verdict-art { grid-column: 1; grid-row: span 2; align-self: start; width: 56px; height: 56px; margin: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--verdict-tone) 14%, transparent); }
.object-verdict > .object-verdict-art .mud-icon-root { width: 30px; height: 30px; font-size: 30px; }
.object-verdict > .object-verdict-title { grid-column: 2; align-self: end; font-size: 20px; line-height: 26px; overflow-wrap: break-word; hyphens: auto; }
.object-verdict > .object-verdict-title:not(:has(+ .object-verdict-text)) { grid-row: span 2; align-self: center; }
.object-verdict > .object-verdict-title ~ .object-verdict-text { grid-column: 2; margin-top: 4px; }
.object-kpi-empty { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--status-card-space, 28px); row-gap: 2px; align-items: center; margin-top: 10px; }
.object-kpi-empty > .object-kpi-empty-art { grid-row: span 2; align-self: start; margin: 0; }
.object-kpi-empty > :not(.object-kpi-empty-art) { grid-column: 2; }
/* Gewerk-Kachel: Aufbau der Urteilskarte, aber ohne Verlauf, damit nicht zwei Verlaufskarten untereinander stehen (Lot card.never.mehr-haelfte-karten-ansicht). */
.object-verdict--trade { border-color: var(--mud-palette-lines-default); background: var(--mud-palette-surface); }
/* Overline über dem Titel (Gewerk-Nummer): Mono, klein, sekundär; Overline unten, Titel oben in den zwei Zeilen neben dem Bild. */
.object-verdict > .object-verdict-overline { grid-column: 2; align-self: end; font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 18px; letter-spacing: .04em; color: var(--mud-palette-text-secondary); }
.object-verdict > .object-verdict-overline + .object-verdict-title { grid-row: auto; align-self: start; }
.object-verdict-facts { display: grid; width: 100%; margin: 20px 0 0; border-top: 1px dashed var(--mud-palette-lines-default); }
.object-verdict-facts > div { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--mud-palette-lines-default); }
.object-verdict-facts dt { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; line-height: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--mud-palette-text-secondary); white-space: nowrap; }
.object-verdict-facts dd { min-width: 0; margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; text-align: right; color: var(--mud-palette-text-primary); overflow-wrap: break-word; }
/* Kette rechts (Vertragsseite): Auftraggeber, Auftrag, Auftragnehmer als Karten, verbunden mit einer Linie. */
.party-chain { display: grid; }
.party-card { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 16px 20px; border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; background: var(--mud-palette-surface); box-shadow: var(--object-box-shadow); }
.party-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mud-palette-surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mud-palette-steel) 12%, transparent); color: var(--mud-palette-steel); }
.party-mark .mud-icon-root { width: 22px; height: 22px; font-size: 22px; }
.party-text { display: grid; gap: 2px; min-width: 0; }
.party-name { font-size: 15px; line-height: 20px; font-weight: 700; color: var(--mud-palette-text-primary); overflow-wrap: break-word; }
.party-sub { font-size: 13px; line-height: 18px; color: var(--mud-palette-text-secondary); overflow-wrap: break-word; }
.party-link { justify-self: center; width: 2px; height: 22px; background: color-mix(in srgb, var(--mud-palette-steel) 35%, var(--mud-palette-lines-default)); }
/* Wer beauftragt wen als Paar nebeneinander (Entscheidung auf der Seite „Freigaben“); schmal untereinander. */
.party-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 12px; width: 100%; margin-top: 20px; }
.party-pair > .party-card { box-shadow: none; }
.party-arrow { display: grid; align-content: center; justify-items: center; gap: 2px; font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
.party-arrow .mud-icon-root { color: var(--mud-palette-steel); }
@media (max-width: 599.98px) { .party-pair { grid-template-columns: minmax(0, 1fr); } .party-arrow .mud-icon-root { transform: rotate(90deg); } }
/* Entscheidung in der Zustandskarte: Knöpfe über die volle Breite, Hauptaktion oben. */
.object-state-actions { display: grid; gap: 8px; width: 100%; }
/* Am Telefon steht die Entscheidung direkt unter dem Kopf, vor Stand und Auftrag; die Kette bleibt am Ende (PO 03.11.2026). */
@media (max-width: 899px) { .object-layout--decision { display: flex; flex-direction: column; align-items: stretch; gap: 32px; } .object-layout--decision > .object-aside { display: contents; } .object-layout--decision .object-state-card { order: -1; } }
/* Positionskarten (PositionEditorSection): gleich hoch je Reihe; Kopf mit Symbol links, Position als Überschrift und Unterzeile
   rechts, darunter eine gestrichelte Linie; Inhaber zeilenweise mit Trennlinie, als letzte Zeile der Stift. Ein leerer Platz
   ist gestrichelt, neutral (nie rot) und hat den Knopf „Besetzen“. Zwei Spalten, wo Platz ist (Mindestbreite 20rem). */
.position-board, .position-board-body { display: grid; gap: 12px; align-content: start; }
/* Kopfzeile so hoch wie die der Personenliste mit Filter (40px), damit Liste und Karten auf einer Höhe beginnen. */
.position-board > .section-head { min-height: 40px; }
.position-board-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 20px; color: var(--mud-palette-text-secondary); }
.position-board-note .mud-icon-root { flex: none; margin-top: 1px; }
.position-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); align-items: stretch; gap: 16px; margin: 0; padding: 0; list-style: none; }
.position-card { --position-space: var(--status-card-space, 28px); display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; background: var(--mud-palette-surface); box-shadow: var(--object-box-shadow, 0 1px 2px rgba(15, 23, 42, .06), 0 2px 6px rgba(15, 23, 42, .04)); }
.position-card[data-open="true"] { border-style: dashed; border-color: color-mix(in srgb, var(--mud-palette-steel) 45%, transparent); background: color-mix(in srgb, var(--mud-palette-steel) 4%, var(--mud-palette-surface)); box-shadow: none; }
.position-card-head { box-sizing: border-box; display: flex; align-items: center; gap: var(--position-space); min-width: 0; min-height: 100px; padding: 22px var(--position-space); border-bottom: 1px solid var(--mud-palette-lines-default); background: color-mix(in srgb, var(--mud-palette-steel) 6%, var(--mud-palette-surface)); }
.position-card[data-open="true"] .position-card-head { border-bottom-style: dashed; border-bottom-color: color-mix(in srgb, var(--mud-palette-steel) 35%, transparent); background: color-mix(in srgb, var(--mud-palette-steel) 9%, var(--mud-palette-surface)); }
.position-card-body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 4px var(--position-space) 20px; }
.position-card-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mud-palette-surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mud-palette-steel) 12%, transparent); color: var(--mud-palette-steel); }
.position-card-mark .mud-icon-root { width: 24px; height: 24px; font-size: 24px; }
.position-card[data-open="true"] .position-card-mark { color: var(--mud-palette-text-secondary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mud-palette-text-secondary) 10%, transparent); }
/* Pflichtposition (Variante A): Symbol gefüllt in Stahl, das Wort „Pflicht“ darunter; die Karte bleibt sonst ruhig. */
.position-card[data-required="true"] .position-card-mark { background: var(--mud-palette-steel); color: var(--mud-palette-surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mud-palette-steel) 22%, transparent); }
.position-card-heading { flex: 1 1 auto; display: grid; justify-items: start; gap: 4px; min-width: 0; }
.position-card-required { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mud-palette-error); }
/* Kopf in zwei Zeilen mit gemeinsamer rechter Kante: Titel | Hilfe-Zeichen, darunter Pflicht | „1 zugeordnet“. */
.position-card-titleline, .position-card-subline { display: flex; align-items: center; justify-content: space-between; gap: 12px; justify-self: stretch; min-width: 0; }
/* Zahl der Inhaber in der Schrift von „Pflicht“ (Mono, 12px, Versalien), grau statt rot. */
.position-card-count { flex: none; margin-left: auto; font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mud-palette-text-secondary); font-variant-numeric: tabular-nums; }
.position-card-title { margin: 0; font-size: 20px; line-height: 26px; font-weight: 700; color: var(--mud-palette-text-primary); overflow-wrap: break-word; }
.position-card-sub { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
/* Positionskarte beim Speichern: ein laufender Balken am oberen Rand (Stahl), der Inhalt bleibt stehen. */
.position-card, .position-relaxed-row { position: relative; }
.position-card-progress.mud-progress-linear { position: absolute; top: 0; left: 0; right: 0; z-index: 1; height: 4px; margin: 0; background-color: color-mix(in srgb, var(--mud-palette-steel) 18%, transparent); }
:is(.position-card, .position-relaxed-row) > .position-card-progress.mud-progress-linear.mud-progress-linear-color-default .mud-progress-linear-bar { background-color: var(--mud-palette-steel); }
/* Positionskarte beim Laden (Lot skeleton): ohne Tönung, erscheint nach 300 ms, pulsiert zwei Zyklen und steht dann still. */
.position-card--loading { opacity: 0; animation: position-skeleton-in 0s linear .3s forwards; }
.position-card--loading .position-card-head { background: var(--mud-palette-surface); }
.position-card--loading .mud-skeleton-pulse { animation-iteration-count: 2; }
.position-card-skeleton-holder { display: flex; align-items: center; gap: var(--position-space); padding: 14px 0; }
.position-card-skeleton-foot { min-height: 45px; box-sizing: border-box; }
@keyframes position-skeleton-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .position-card--loading .mud-skeleton { animation: none; } }
/* Höchstens drei Inhaber sichtbar (je 73px), mehr scrollen in der Karte. */
.position-card-holders { max-height: 219px; margin: 0; padding: 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; }
.position-card-holders:focus-visible { outline: 2px solid var(--mud-palette-steel); outline-offset: 2px; }
.position-card-holders > li { display: flex; align-items: center; gap: var(--position-space); min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--mud-palette-lines-default); }
.position-card-initials { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--mud-palette-steel) 12%, var(--mud-palette-surface)); color: var(--mud-palette-steel); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.position-card-name { min-width: 0; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--mud-palette-text-primary); overflow-wrap: break-word; }
.position-card-name small { display: block; font-size: 13px; font-weight: 400; color: var(--mud-palette-text-secondary); }
.position-card-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: auto; padding-top: 14px; }
/* Reichweite für Nachunternehmer an der Positionskarte: links im Fuß, neutral mit Rand, ohne Zustand. */
.position-reach { display: inline-flex; }
.position-card-foot > .position-reach { margin-right: auto; }
.mud-icon-button.position-reach-button { color: var(--mud-palette-text-secondary); border-color: var(--mud-palette-lines-default); }
/* Dialog der Reichweite: Kopf mit Position, darunter je Baustelle eine Zeile mit Personen und Schalter. */
.reach-dialog-head { display: grid; gap: 6px; margin-bottom: 16px; }
.reach-dialog-head p { margin: 0; }
.reach-dialog-name { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; }
.reach-sites { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--mud-palette-lines-default); }
.reach-site { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--mud-palette-lines-default); }
.reach-site-text { display: grid; gap: 2px; min-width: 0; }
.reach-site-name { font-weight: 600; }
.reach-holders { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 14px; }
.reach-holder-state { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: 13px; color: var(--mud-palette-text-secondary); }
.reach-site-note { font-size: 13px; line-height: 18px; color: var(--mud-palette-text-secondary); }
.position-card-info { flex: none; align-self: flex-start; display: inline-flex; margin-left: auto; color: var(--mud-palette-text-secondary); cursor: help; }
.position-card-info:focus-visible { outline: 2px solid var(--mud-palette-steel); outline-offset: 2px; border-radius: 50%; }
.position-card-empty { display: grid; justify-items: start; gap: 14px; padding-top: 18px; }
.position-card-empty p { margin: 0; font-size: 14px; line-height: 20px; color: var(--mud-palette-text-secondary); }
/* Position, die der Katalog für diesen Vertrag nicht verlangt (PO 30.10.2026): eine leise Zeile unter den Karten statt einer Kachel. */
.position-relaxed { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.position-relaxed-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-width: 0; padding: 10px 16px; border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; background: var(--mud-palette-surface); }
.position-relaxed-row > .mud-button-root { flex: none; margin-left: auto; }
.position-relaxed-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--mud-palette-text-secondary) 8%, var(--mud-palette-surface)); color: var(--mud-palette-text-secondary); }
.position-relaxed-text { flex: 1 1 8rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.position-relaxed-name { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--mud-palette-text-primary); }
.position-relaxed-note { font-size: 14px; line-height: 20px; color: var(--mud-palette-text-secondary); }
.app-status.app-status--head { min-height: 34px; padding: 0 14px; gap: 8px; border-radius: 17px; font-size: 15px; }
.app-status.app-status--head .mud-icon-root { font-size: 20px; width: 20px; height: 20px; }
@media (max-width: 599px) { .app-status.app-status--head { min-height: 28px; padding: 0 10px; font-size: 13px; } }
/* Baustellenwahl als kompakter Knopf mit Ort-Zeichen statt Formularfeld. */
.object-site-switch { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; max-width: 280px; padding: 0 10px; border: 1px solid var(--mud-palette-lines-default); border-radius: 18px; background: var(--mud-palette-surface); font: inherit; font-size: 14px; font-weight: 500; color: var(--mud-palette-text-primary); cursor: pointer; }
.object-site-switch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.object-site-switch:hover { border-color: var(--mud-palette-steel); }
.object-site-switch:focus-visible { outline: 2px solid var(--mud-palette-steel); outline-offset: 2px; }
.object-title-meta { margin: 0; font-size: 14px; color: var(--mud-palette-text-secondary); }
.object-title-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 2px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; color: var(--mud-palette-text-secondary); }
.object-title-facts > li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.object-title-facts .mud-icon-root { flex: none; color: var(--mud-palette-text-secondary); opacity: .8; }
/* Link, der wie Text aussieht und sich erst beim Überfahren unterstreicht. */
.quiet-link { color: inherit; font-weight: inherit; text-decoration: none; }
.quiet-link:hover, .quiet-link:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.object-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.object-head .status-box { border-radius: 6px; border: 1px solid transparent; }
.object-head .status-box--attention { border-color: color-mix(in srgb, var(--mud-palette-warn) 35%, transparent); }
.object-head .status-box--blocked { border-color: color-mix(in srgb, var(--mud-palette-error) 35%, transparent); }
.object-head .status-box--active { border-color: color-mix(in srgb, var(--mud-palette-success) 35%, transparent); }
.object-head .status-box .status-box-title { font-size: 15px; }
.object-tabs .mud-tabs-tabbar { padding: 0 16px; border-bottom: 1px solid var(--mud-palette-lines-default); background: var(--object-head-bg); }
.object-tabs .mud-tabs-panels { background: var(--object-page-bg); }
.object-tabs .mud-tab { min-height: 52px; font-weight: 600; letter-spacing: .02em; }
/* Mehr Luft zwischen Reitern und Inhalt als an den Seiten, damit Kopf und Inhalt klar getrennt sind. */
.object-page { display: grid; gap: 40px; padding: 48px 32px 32px; min-width: 0; }
.object-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 32px; align-items: start; }
.object-main, .object-aside { display: grid; gap: 32px; min-width: 0; align-content: start; }
.object-section { display: grid; gap: 12px; min-width: 0; }
/* Unterüberschrift in einem Bereich, etwa wer eine Pflicht trägt. */
.object-section > .fold-rows { margin-bottom: 0; }
/* Schmal: das Urteil vor den Aufgaben (Lot verdict: ganz oben), die übrige Seitenspalte danach. */
/* Gestapelt nehmen Hauptspalte und Karten die volle Breite ein; „align-items: start“ aus dem Raster ließe sie auf ihre
   Inhaltsbreite schrumpfen (Listen sind Container ohne eigene Breite und fielen dann fast ganz zusammen). */
@media (max-width: 899px) { .object-layout:has(> .object-aside > .object-verdict) { display: flex; flex-direction: column; align-items: stretch; } .object-layout > .object-aside:has(> .object-verdict) { display: contents; } .object-layout .object-verdict:not(.object-verdict--trade) { order: -1; } }
@media (max-width: 899px) { .object-layout { grid-template-columns: minmax(0, 1fr); } .object-page { padding: 32px 16px 24px; } .object-head { padding: 16px; grid-template-columns: minmax(0, 1fr); } .object-head > .object-actions { grid-column: 1; grid-row: auto; justify-self: start; order: 3; } .object-head > .object-title-row { order: 2; } }
@media (max-width: 599px) { .object-workspace { margin-top: 0; padding: 0; background: none; } .object-sheet { border: 0; border-radius: 0; box-shadow: none; } .object-title-text h1 { font-size: 22px; line-height: 28px; } }

/* Überschrift eines Bereichs: deutlich, mit Zahl als ruhiger Zähler; darunter optional ein erklärender Satz. */
/* Reicht die Breite nicht, rutschen die Aktionen als Ganzes unter den Titel (rechtsbündig); Titel und Knopftexte brechen
   nicht in sich um. */
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 32px; }
.section-head > .section-title { white-space: nowrap; }
.section-head-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.section-head-actions .mud-button-root, .section-head-actions .mud-switch { white-space: nowrap; }
/* Eigene Aktion vor „Ein-/Ausklappen“: abgesetzt, damit beide nicht als ein Knopf gelesen werden. */
.section-head-actions .section-head-add { margin-right: 16px; }
/* Personenseite, Reiter Einsätze: je Baustelle ein Panel mit Zutritt, Sperre oder Ausnahme, Verträgen und Zugangsmitteln. */
.object-site-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
@media (max-width: 1099px) { .object-site-cards { grid-template-columns: minmax(0, 1fr); } }
.object-site-card-status { display: inline-flex; align-items: center; gap: 4px; }
/* In der halben Breite tragen Vertragszeilen nur Name und Stand; Frist und Aktionen bleiben leer und nehmen keinen Platz. */
.object-site-card .object-row-main { grid-template-columns: minmax(0, 1fr) auto; }
.object-site-card .object-row-deadline:empty, .object-site-card .object-row-actions:empty { display: none; }
.object-site-card { border-radius: 8px; box-shadow: var(--object-box-shadow); overflow: clip; }
/* Gesperrt: kein Rand links, sondern ein sachter roter Verlauf über die Karte (wie die Zustandskarten). */
.object-site-card[data-critical] { background: linear-gradient(155deg, color-mix(in srgb, var(--mud-palette-error) 12%, var(--mud-palette-surface)) 0%, color-mix(in srgb, var(--mud-palette-error) 4%, var(--mud-palette-surface)) 60%, var(--mud-palette-surface) 100%); border-color: color-mix(in srgb, var(--mud-palette-error) 28%, transparent); }
.object-site-card .object-panel-body { display: grid; gap: 8px; padding: 16px 20px; }
.object-site-card-part { border-top: 1px solid var(--mud-palette-lines-default); }
.object-site-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.object-site-card-title { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.object-site-card-title a.object-panel-title { font-size: 16px; color: var(--mud-palette-text-primary); text-decoration: none; }
.object-site-card-title a.object-panel-title:hover, .object-site-card-title a.object-panel-title:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.object-site-override { --tone: var(--mud-palette-warning); display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: 6px; background: color-mix(in srgb, var(--tone) 8%, var(--mud-palette-surface)); font-size: 13px; line-height: 19px; color: var(--mud-palette-text-primary); }
.object-site-override[data-tone="blocked"] { --tone: var(--mud-palette-error); }
.object-site-override > .mud-icon-root { color: var(--tone); flex: none; }
.object-site-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.object-site-access { border: 1px solid var(--mud-palette-lines-default); border-radius: 6px; overflow: hidden; }
/* Verwaltung der Person: die Schalter brechen in der schmalen Spalte um. */
.object-person-status .d-flex.flex-row { flex-wrap: wrap; }
/* Verwaltungsaktionen: je Zeile links Titel und Stand, rechts genau eine Aktion; Zeilen durch Linien getrennt. */
.object-action-rows { display: grid; margin: 0; padding: 0; list-style: none; }
.object-action-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; }
.object-action-row + .object-action-row { border-top: 1px solid var(--mud-palette-lines-default); }
.object-action-row-text { display: grid; justify-items: start; gap: 6px; min-width: 0; font-size: 14px; }
.object-action-row-note { font-size: 13px; line-height: 19px; color: var(--mud-palette-text-secondary); }
.object-action-row-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
/* Mehrere Aktionen passen in der schmalen Spalte nicht neben den Stand: sie stehen darunter, rechtsbündig. */
.object-action-row--stacked { grid-template-columns: minmax(0, 1fr); }
/* Verwaltungsaktionen: Zeilen ohne Gruppentitel, auch zwischen den Blöcken eine Linie. */
.object-person-status { display: grid; gap: 0; padding-top: 4px; padding-bottom: 4px; }
.object-person-status > .object-action-rows + *, .object-person-status > * + .object-action-rows { border-top: 1px solid var(--mud-palette-lines-default); }
/* Zustandskarten (Person: Ersthelfer, QR-Code, Sperren und Ausnahmen; Firma: Einkaufsprüfung, Sperren und Ausnahmen): Verlauf nach Lage wie das Urteil, großer Stand,
   Knöpfe mit Abstand darunter. */
.object-state-card { --verdict-tone: var(--mud-palette-steel); display: grid; gap: 12px; margin: 0; padding: 20px; border: 1px solid color-mix(in srgb, var(--verdict-tone) 28%, transparent); border-radius: 8px; background: linear-gradient(155deg, color-mix(in srgb, var(--verdict-tone) 16%, var(--mud-palette-surface)) 0%, color-mix(in srgb, var(--verdict-tone) 5%, var(--mud-palette-surface)) 60%, var(--mud-palette-surface) 100%); }
.object-state-card[data-tone="active"] { --verdict-tone: var(--mud-palette-success); }
.object-state-card[data-tone="attention"] { --verdict-tone: var(--mud-palette-warn); }
.object-state-card[data-tone="blocked"] { --verdict-tone: var(--mud-palette-error); }
.object-state-card { box-shadow: var(--object-box-shadow); }
.object-state-kicker { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
.object-state-value { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 24px; font-weight: 700; color: var(--mud-palette-text-primary); }
.object-state-value .mud-icon-root { color: var(--verdict-tone); }
.object-state-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }
/* Abgesetzter Teil einer Zustandskarte unter dem Stand (Erklärung, Schalter): Linie darüber, eigener Abstand. */
.object-state-section { display: grid; gap: 12px; justify-items: start; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--mud-palette-lines-default); }
.object-state-section .mud-switch { margin: 0; }
.object-state-buttons:empty { display: none; }
.object-layout > .object-aside--states { gap: 16px; align-content: start; }
/* Wer und wann (geprüft von, gesetzt von, bis): eigene Zeile in Mono unter dem Stand, gut lesbar statt als Fußnote. */
.object-state-meta { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 18px; color: var(--mud-palette-text-primary); overflow-wrap: anywhere; }
.object-state-accordion .mud-expand-panel-content { padding: 0 20px 8px; }
/* Kontaktkanäle als eigene Zeile unter den Angaben der Person: Kanäle nebeneinander, „Ändern“ rechts im Kopf. */
.object-person-channels { display: grid; gap: 12px; padding: 16px 20px 20px; border-top: 1px solid var(--mud-palette-lines-default); }
.object-person-channels h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mud-palette-text-primary); }
.object-channel-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.object-channel-list > div { display: grid; gap: 6px; justify-items: start; }
.object-channel-list dt { margin: 0; font-size: 14px; font-weight: 600; color: var(--mud-palette-text-primary); }
.object-channel-list dd { margin: 0; }
@media (max-width: 599px) { .object-channel-list { grid-template-columns: minmax(0, 1fr); } }
.object-action-row--stacked .object-action-row-buttons:empty { display: none; }
/* Rückfrage vor einer Aktion: die Folgen als kurze Liste. */
.app-consequences { display: grid; gap: 6px; margin: 0 0 8px; padding-left: 20px; }
/* Hinweis in einer Liste: gut zu wissen, kein Status (Lot info, Stahl getönt). */
/* Trennlinie zwischen Gruppen einer Arten-Auswahl, ohne Titel: nur Abstand und Linie, kein Platz für eine Zeile Text. */
.mud-list-item.select-group-divider { min-height: 0; padding-top: 4px; padding-bottom: 4px; }
.object-hint { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px 20px; border-radius: 6px; background: var(--mud-palette-steel-tint); font-size: 13px; line-height: 19px; color: var(--mud-palette-text-primary); }
.object-hint > .mud-icon-root { flex: none; color: var(--mud-palette-steel); }
.object-hint[data-tone="attention"] { background: var(--mud-palette-warn-tint); }
.object-hint[data-tone="attention"] > .mud-icon-root { color: var(--mud-palette-warn); }
/* Verwaltung der Person: Admin-Themen im Akkordeon, je Thema ruhig gegliedert. */
.object-accordion { border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; overflow: hidden; background: var(--mud-palette-surface); box-shadow: var(--object-box-shadow); }
.object-accordion .mud-expand-panel + .mud-expand-panel { border-top: 1px solid var(--mud-palette-lines-default); }
.object-accordion .mud-expand-panel-header { font-weight: 700; }
.object-admin-block { display: grid; gap: 16px; }
.object-data-groups.object-data-groups--flush { display: grid; padding: 0; }
.object-data-groups.object-data-groups--flush .side-preview-facts { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); }
.object-data-groups--flush .side-preview-facts dd { display: grid; gap: 4px; justify-items: start; }
.object-tech-facts code { padding: 0; background: none; font-size: 12px; color: var(--mud-palette-text-primary); overflow-wrap: anywhere; }
/* Aktionsspalte: eine Hauptaktion mit Text, eine zweite (Unterschreiben) als Symbol mit Tooltip, der Rest unter „…“. */
/* Spalte „wer und wann“ nach dem Status (DocumentInfo), nur wenn die Seite sie zeigt; alle Zeilen einer Liste tragen sie. */
.object-rows { --row-info: 36px; }
.object-row-main.has-info { grid-template-columns: minmax(0, 1fr) var(--row-deadline) var(--row-status) var(--row-info) var(--row-actions); }
.object-row-info { display: flex; justify-content: center; }
.object-row-body .object-rows--nested { --row-info: inherit; }
/* Aufgeklappte Zeiträume: dieselben Spaltenbreiten wie die Zeile darüber, rechts mit dem Abstand des Rumpfs (16px). */
.object-row-body .object-rows--nested { --row-deadline: inherit; --row-status: inherit; --row-actions: inherit; }
.object-row-body .object-rows--nested .object-row-main { padding-right: 12px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; line-height: 26px; font-weight: 700; color: var(--mud-palette-text-primary); }
.section-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--app-status-draft); font-size: 13px; font-weight: 600; color: var(--mud-palette-text-primary); font-variant-numeric: tabular-nums; }
.section-note { margin: 0; font-size: 14px; line-height: 22px; color: var(--mud-palette-text-secondary); max-width: 70ch; }
/* Kopf einer Begleitkarte: wie .result-panel-head, aber in Textschrift. */
.object-panel-title, .object-aside .result-panel-head { font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--mud-palette-text-primary); }

/* Listeneintrag (Shared/ObjectRow) in festen Spalten: Name und Zeile | Status | Aktionen. Alle Zeilen einer Liste teilen die
   Breiten (--row-status, --row-actions), damit Status und Aktionen untereinander stehen. Hover tönt die Zeile in Stahl und
   blendet die Nebenaktionen ein (Lot list.structure.hover, Variante detail). */
/* Maße, aus denen aufgeklappte Listen ihre Spalten ableiten (Rand der Liste, Innenabstand des aufgeklappten Bereichs,
   Aufklapp-Pfeil, Abstände); nur hier als Zahl, sonst immer als Variable. */
:root { --row-list-border: 1px; --row-body-pad: 16px; --row-toggle-size: 26px; --row-actions-gap: 4px; --row-column-gap: 16px; }
.object-rows { --row-deadline: 150px; --row-status: 200px; --row-actions: 200px; list-style: none; margin: 0; padding: 0; border: var(--row-list-border) solid var(--mud-palette-lines-default); border-radius: 6px; background: var(--mud-palette-surface); overflow: clip; }
.object-row + .object-row { border-top: 1px solid var(--mud-palette-lines-default); }
.object-row-main { display: grid; grid-template-columns: minmax(0, 1fr) var(--row-deadline) var(--row-status) var(--row-actions); align-items: center; gap: 4px 16px; min-height: 64px; padding: 10px 12px 10px calc(16px + var(--row-depth, 0) * 24px); transition: background-color .12s; }
.object-row-main.is-openable { cursor: pointer; }
.object-row-main:hover { background-color: color-mix(in srgb, var(--mud-palette-steel) 5%, var(--mud-palette-surface)); }
.object-row-text { display: grid; gap: 2px; min-width: 0; }
/* Erste Spalte: Name und Zeile darunter, dahinter ein Zeichen in deren Höhe (ObjectRow.TitleAside). */
.object-row-lead { display: flex; align-items: center; gap: 16px; min-width: 0; }
.object-row-lead--plain { display: contents; }
.object-row-aside { display: flex; align-self: stretch; align-items: center; flex: none; }
.object-row-aside:empty { display: none; }
.object-row-badge { display: inline-flex; color: var(--mud-palette-success); }
.object-row-badge .mud-icon-root { width: 44px; height: 44px; font-size: 44px; }
.object-row-title { justify-self: start; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; line-height: 22px; font-weight: 600; text-align: left; color: var(--mud-palette-text-primary); text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
span.object-row-title { cursor: inherit; }
/* Name einer Person: Nachname im Schnitt des Titels, Vorname dünner. */
.object-row-title .person-name-first { font-weight: 400; }
a.object-row-title:hover, a.object-row-title:focus-visible, button.object-row-title:hover, button.object-row-title:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.object-row-title:focus-visible { outline: 2px solid var(--mud-palette-steel); outline-offset: 2px; }
.object-row-note { font-size: 13px; line-height: 20px; color: var(--mud-palette-text-secondary); overflow-wrap: anywhere; }
/* Status rechtsbündig an der Aktion, damit links mehr Platz für Name und Vertrag bleibt. */
.object-row-status { display: flex; justify-content: flex-end; min-width: 0; }
/* Frist als eigene Spalte: Datum fett, darüber klein, worum es geht; verstrichen rot, bald orange. */
.object-row-deadline { display: grid; gap: 0; min-width: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--mud-palette-text-primary); font-variant-numeric: tabular-nums; }
.object-row-deadline small { font-size: 12px; font-weight: 400; color: var(--mud-palette-text-secondary); }
/* Arbeitslisten der Seite „Freigaben“: Beginn mit vollem Datum („läuft seit 01.10.2026“) braucht mehr als die übliche Frist. */
.object-rows--worklist { --row-deadline: 200px; }
/* Personen am Vertrag: Kennzeichen (Position, Baustellenposition, Ersthelfer) hinter dem Namen, mit deutlichem Abstand. */
.object-row-roles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 400; }
.object-row-aside > .object-row-roles { margin-left: 16px; }
/* Chip nur mit Zeichen: rund, Name im Tooltip. */
.app-status.app-status--icon { width: 28px; padding: 0; justify-content: center; }
.object-row-deadline[data-tone="overdue"] { color: var(--mud-palette-error); }
.object-row-deadline[data-tone="soon"] { color: var(--mud-palette-warn); }
.object-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--row-actions-gap); min-width: 0; }
.object-row-toggle { inline-size: var(--row-toggle-size); block-size: var(--row-toggle-size); }
.object-row-reveal { display: inline-flex; align-items: center; gap: 4px; opacity: 0; transition: opacity .12s; }
.object-row-main:hover .object-row-reveal, .object-row-main:focus-within .object-row-reveal, .object-row[data-selected] .object-row-reveal { opacity: 1; }
@media (hover: none) { .object-row-reveal { opacity: 1; } }
.object-row-body { display: grid; gap: 12px; padding: var(--row-body-pad) var(--row-body-pad) var(--row-body-pad) calc(var(--row-body-pad) + var(--row-depth, 0) * 24px); background: color-mix(in srgb, var(--mud-palette-text-primary) 3%, var(--mud-palette-surface)); border-top: 1px dashed var(--mud-palette-lines-default); }
.object-row-body .object-rows--nested { margin-top: 12px; }
.object-row-body .fold-rows--periods { margin: 0; border-top: 0; }
.object-rows--nested { --row-deadline: 150px; --row-status: 190px; --row-actions: 200px; border-radius: 4px; }
.object-rows--nested .object-row-main { min-height: 52px; }
.object-rows--nested .object-row-title { font-size: 14px; }
.object-row[data-critical] > .object-row-main { background-color: color-mix(in srgb, var(--mud-palette-error) 6%, var(--mud-palette-surface)); box-shadow: inset 3px 0 0 var(--mud-palette-error); }
.object-row[data-focus] > .object-row-main { background-color: var(--mud-palette-steel-tint); box-shadow: inset 3px 0 0 var(--mud-palette-steel); }
.object-row[data-tone="attention"] > .object-row-main { background-color: color-mix(in srgb, var(--mud-palette-warn) 7%, var(--mud-palette-surface)); }
.object-row[data-selected] > .object-row-main { background-color: color-mix(in srgb, var(--mud-palette-steel) 9%, var(--mud-palette-surface)); box-shadow: inset 3px 0 0 var(--mud-palette-steel); }
@media (max-width: 1099px) { .object-rows { --row-deadline: 120px; --row-status: 170px; --row-actions: 176px; } }
/* Hauptspalte der Übersicht (neben der Seitenspalte): schmalere Frist und Aktion, damit der Vertrag lesbar bleibt. */
.object-main .object-rows { --row-deadline: 96px; --row-status: 172px; --row-actions: 184px; }
.object-main { --row-column-gap: 12px; }
.object-main .object-row-main { column-gap: var(--row-column-gap); }
/* Schmale Liste: Feste Spalten lassen dem Namen dort keinen Platz. Entscheidend ist die Breite der Liste, nicht des
   Fensters, denn dieselbe Liste steht mal ganzbreit, mal neben der Seitenspalte. Kompakte Listen und die Vorschau haben ein
   eigenes Raster. */
.object-rows { container: object-rows / inline-size; }
@container object-rows (max-width: 760px) {
    .object-rows:not(.object-rows--compact, .object-rows--preview) > .object-row > .object-row-main { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 12px; }
    .object-rows:not(.object-rows--compact, .object-rows--preview) > .object-row > .object-row-main.has-info { grid-template-columns: minmax(0, 1fr) auto auto auto; }
    .object-rows:not(.object-rows--compact, .object-rows--preview) > .object-row > .object-row-main > .object-row-lead,
    .object-rows:not(.object-rows--compact, .object-rows--preview) > .object-row > .object-row-main > .object-row-lead--plain > .object-row-text { grid-column: 1 / -1; }
    .object-rows:not(.object-rows--compact, .object-rows--preview) > .object-row > .object-row-main > .object-row-deadline { grid-column: 1; }
    .object-rows:not(.object-rows--compact, .object-rows--preview) > .object-row > .object-row-main > .object-row-actions:empty { display: none; }
    /* Arbeitslisten „Freigaben“: Beginn und Wartezeit als eine Zeile über die volle Breite, Status und Aktion darunter. */
    .object-rows.object-rows--worklist > .object-row > .object-row-main > .object-row-deadline { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
    .object-rows.object-rows--worklist > .object-row > .object-row-main > .object-row-deadline > br { display: none; }
    .object-rows.object-rows--worklist > .object-row > .object-row-main > .object-row-status { grid-column: 1 / span 2; justify-self: start; min-width: 0; }
    .object-rows.object-rows--worklist > .object-row > .object-row-main > .object-row-status .app-status { max-width: 100%; white-space: normal; padding-block: 4px; }
}

/* Kompakte Liste (Organisation, Reichweite): niedrigere Zeilen, Name und Zusatz in einer Zeile, keine Frist-Spalte. */
.object-rows--compact .object-row-main { min-height: 44px; padding-block: 6px; grid-template-columns: minmax(0, 1fr) auto auto; }
.object-rows--compact .object-row-deadline:empty { display: none; }
.object-rows--compact .object-row-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.object-rows--compact .object-row-title { font-size: 14px; }
.object-rows--chain .app-status { min-height: 24px; font-weight: 500; }
/* Vertragskette im Firmenprofil: Einordnung in fester Spalte, links bündig, damit die Etiketten untereinander beginnen;
   die Pfeil-Spalte ist auch in Zeilen ohne Link gleich breit. Auf schmalen Bildschirmen wie die übrigen kompakten Listen. */
.object-rows--aligned-status .object-row-main { grid-template-columns: minmax(0, 1fr) 11rem 26px; }
.object-rows--aligned-status .object-row-status { justify-content: flex-start; }
@media (max-width: 599px) { .object-rows--aligned-status .object-row-main { grid-template-columns: minmax(0, 1fr) auto auto; } }
/* Liste in der Vorschau (offene Nachweise einer Person): Name und Stand in der ersten Zeile, Baustelle und Vertrag darunter,
   die Frist unter dem Stand, Hochladen rechts über beide Zeilen. Ohne Frist (die Seite lässt sie dann weg) steht der Stand mittig. */
.object-rows--preview .object-row-main { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "text status actions" "text deadline actions"; gap: 4px 12px; min-height: 72px; padding: 14px 16px; }
.object-rows--preview .object-row-text { grid-area: text; gap: 4px; }
.object-rows--preview .object-row-title { font-size: 15px; }
.object-rows--preview .object-row-status { grid-area: status; align-self: end; }
.object-rows--preview .object-row-deadline { grid-area: deadline; align-self: start; justify-items: end; font-size: 13px; }
.object-rows--preview .object-row-deadline small { font-weight: 400; color: var(--mud-palette-text-secondary); }
.object-rows--preview .object-row-main:not(:has(.object-row-deadline)) .object-row-status { grid-row: 1 / span 2; align-self: center; }
.object-rows--preview .object-row-actions { grid-area: actions; align-self: center; }

/* Leerzustand einer Liste (Lot lot-empty): Zeichen, eine fette Zeile, ein Satz zum nächsten Schritt, optional eine Aktion. */
.object-empty { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; margin: 0; padding: 20px; border: 1px dashed var(--mud-palette-lines-default); border-radius: 6px; background: var(--mud-palette-surface); }
.object-empty > .mud-icon-root { grid-row: 1 / span 3; margin-top: 2px; color: var(--mud-palette-text-secondary); }
/* Statusmeldung in Zeilenform (StatusLine) statt einer leeren Liste: sachter Verlauf in der Farbe des Stands, Zeichen, kurzer Satz. */
.object-status-line { --line-tone: var(--mud-palette-success); display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px 20px; border: 1px solid color-mix(in srgb, var(--line-tone) 28%, transparent); border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--line-tone) 12%, var(--mud-palette-surface)) 0%, var(--mud-palette-surface) 70%); font-size: 14px; line-height: 20px; color: var(--mud-palette-text-primary); box-shadow: var(--object-box-shadow); }
.object-status-line[data-tone="neutral"] { --line-tone: var(--mud-palette-steel); }
.object-status-line[data-tone="attention"] { --line-tone: var(--mud-palette-warn); }
.object-status-line > .mud-icon-root { flex: none; color: var(--line-tone); }
.object-status-line b { font-weight: 600; }
.object-status-line-text { display: block; font-size: 13px; line-height: 19px; color: var(--mud-palette-text-secondary); }
/* Hinweis-Zeile in einer Liste, die eine Einrichtung meldet (etwa „Noch keinem Vertrag zugeordnet“): blauer Verlauf, neutral, nie rot. */
.object-row[data-tone="info"] > .object-row-main { background: linear-gradient(90deg, color-mix(in srgb, var(--mud-palette-info) 12%, var(--mud-palette-surface)) 0%, var(--mud-palette-surface) 70%); }
.object-empty b { font-size: 15px; color: var(--mud-palette-text-primary); }
.object-empty span { font-size: 14px; color: var(--mud-palette-text-secondary); }
.object-empty > :last-child:not(span):not(b) { justify-self: start; margin-top: 4px; }
/* Lot list.structure.weitere-laden: eine Zeile unter der Liste mit Menge und Knopf. */
.object-more { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 4px 16px; color: var(--mud-palette-text-secondary); font-size: 14px; }
.object-more p { margin: 0; }

/* Filter einer Liste als Segmentspur (Lot lot-filters): höchstens drei, aktiv als helle Karte; rechts die Gesamtzahl. */
.object-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.object-toolbar-start { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
/* Schnellsuche nach Lot (lot-table-search): getönte Fläche ohne Rahmen, Rahmen erst beim Fokus. */
.object-search { flex: 0 1 280px; min-width: 200px; margin: 0 !important; }
.object-search .mud-input-outlined-border { border-color: transparent; }
.object-search .mud-input.mud-input-outlined { background: var(--app-status-draft); border-radius: 8px; }
.object-search .mud-input.mud-input-outlined:focus-within .mud-input-outlined-border { border-color: var(--mud-palette-steel); }
.object-filters { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--app-status-draft); }
.object-filter { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--mud-palette-text-secondary); cursor: pointer; }
.object-filter[aria-pressed="true"] { background: var(--mud-palette-surface); color: var(--mud-palette-text-primary); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.object-filter:focus-visible { outline: 2px solid var(--mud-palette-steel); outline-offset: -2px; }
.object-filter b { font-variant-numeric: tabular-nums; }
.object-total { font-size: 15px; font-weight: 600; color: var(--mud-palette-text-primary); }

/* Zahlen zu einem Thema (Lot lot-facts) und Begleitkarten der Seitenspalte. */
.object-facts { display: flex; flex-wrap: wrap; gap: 16px 24px; margin: 0; padding: 16px; }
.object-facts > div { display: grid; gap: 2px; min-width: 96px; padding-left: 12px; border-left: 1px solid var(--mud-palette-lines-default); }
.object-facts dt { order: 2; margin: 0; font-size: 13px; color: var(--mud-palette-text-secondary); }
.object-facts dd { order: 1; margin: 0; font-size: 28px; line-height: 34px; font-weight: 600; color: var(--mud-palette-text-primary); font-variant-numeric: tabular-nums; }
.object-panel-body { display: grid; gap: 4px; margin: 0; padding: 16px; font-size: 14px; }
.object-panel-foot { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 10px 16px 12px; border-top: 1px solid var(--mud-palette-lines-default); }

/* Status (Shared/StatusTag) nach Lot, sichtbarer: jede Stufe als Kennzeichen mit Rand; Stufe 1 hell getönt mit farbigem
   Zeichen, Stufe 2 getönt, Stufe 3 kräftig. Der Grund steht im Flyout (MudTooltip). Gesperrt fehlt als Rolle (DS-GAP-001). */
.app-status { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border: 1px solid var(--mud-palette-lines-default); border-radius: 14px; font-size: 13px; font-weight: 600; line-height: 1; color: var(--mud-palette-text-primary); white-space: nowrap; background: var(--mud-palette-surface); }
.app-status[data-tone="success"] { background: color-mix(in srgb, var(--mud-palette-success) 8%, var(--mud-palette-surface)); border-color: color-mix(in srgb, var(--mud-palette-success) 35%, transparent); }
.app-status[data-tone="success"] .mud-icon-root { color: var(--mud-palette-success); }
.app-status[data-tone="info"] { background: var(--mud-palette-steel-tint); border-color: color-mix(in srgb, var(--mud-palette-steel) 30%, transparent); }
.app-status[data-tone="info"] .mud-icon-root { color: var(--mud-palette-steel); }
.app-status[data-tone="muted"] { background: var(--app-status-draft); }
.app-status[data-tone="muted"] .mud-icon-root { color: var(--mud-palette-text-secondary); }
.app-status[data-level="2"] { background: var(--mud-palette-warn-tint); border-color: color-mix(in srgb, var(--mud-palette-warn) 40%, transparent); }
.app-status[data-level="2"] .mud-icon-root { color: var(--mud-palette-warn); }
.app-status[data-level="3"] { background: var(--mud-palette-error); border-color: var(--mud-palette-error); color: var(--mud-palette-error-text); }
.app-status[data-level="3"] .mud-icon-root { color: var(--mud-palette-error-text); }
.app-status[data-reason] > span { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.app-status:focus-visible { outline: 2px solid var(--mud-palette-steel); outline-offset: 2px; }
/* Nur Zeichen (StatusTag IconOnly): runder Knopf, Ton nur bei Handlungsbedarf, das Wort steht im Flyout. */
.app-status.app-status--icon { justify-content: center; width: 28px; padding: 0; cursor: help; }
.status-flyout { display: grid; gap: 4px; max-width: 320px; padding: 4px 2px; text-align: left; white-space: normal; }
.status-flyout b { font-size: 13px; }
.status-flyout span { font-size: 13px; line-height: 1.45; }
/* Flyout zu einer Aktion: immer gleich breit, Titel und Wirkung brechen um. */
.status-flyout--action { width: 280px; max-width: 280px; }

/* Vorschau rechts (Shared/SidePreview), Maße wie die Detailleiste der Lieferungen: 40 % des Fensters, mindestens 440 px. */
.side-preview-backdrop { position: fixed; inset: 0; z-index: 1299; background: rgba(15, 23, 42, .24); }
.side-preview { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1300; display: flex; flex-direction: column; width: min(94vw, max(440px, 40vw)); background: var(--mud-palette-surface); box-shadow: -10px 0 30px rgba(15, 23, 42, .2); outline: none; }
.side-preview--wide { width: min(94vw, max(720px, 60vw)); }
.side-preview-head { display: grid; gap: 6px; padding: 16px 24px 20px; background: color-mix(in srgb, var(--mud-palette-text-primary) 6%, var(--mud-palette-surface)); border-bottom: 1px solid var(--mud-palette-lines-default); }
.side-preview-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.side-preview-kicker { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
.side-preview-title { margin: 0; font-size: 22px; line-height: 28px; font-weight: 700; overflow-wrap: anywhere; }
.side-preview-sub { margin: 0; font-size: 14px; color: var(--mud-palette-text-secondary); }
.side-preview-lead { display: flex; align-items: center; gap: 16px; min-width: 0; }
.side-preview-name { display: grid; gap: 6px; min-width: 0; }
.side-preview-aside { display: flex; align-self: stretch; align-items: center; flex: none; }
.side-preview-aside:empty { display: none; }
.object-row-badge--head .mud-icon-root { width: 54px; height: 54px; font-size: 54px; }
.side-preview-status { margin-top: 6px; }
.side-preview-body { display: grid; gap: 24px; align-content: start; flex: 1 1 auto; overflow-y: auto; padding: 24px; }
.side-preview-section { display: grid; gap: 12px; }
.side-preview-section + .side-preview-section { padding-top: 24px; border-top: 1px solid var(--mud-palette-lines-default); }
.side-preview-section h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mud-palette-text-primary); }
.side-preview-facts { display: grid; grid-template-columns: minmax(120px, 35%) minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 14px; }
/* Gruppen in einem Vorschau-Abschnitt, etwa je Baustelle unter Einsatz: Kopf mit Name und rechts einer Angabe, darunter die Zeilen;
   zwischen den Gruppen deutlich mehr Abstand als innerhalb. */
.side-preview-groups { display: grid; gap: 24px; }
.side-preview-group { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--mud-palette-text-primary); }
.side-preview-group-note { font-size: 13px; font-weight: 400; color: var(--mud-palette-text-secondary); white-space: nowrap; }
.side-preview-facts dt { margin: 0; color: var(--mud-palette-text-secondary); }
.side-preview-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--mud-palette-text-primary); }
/* Genannte Verträge, Firmen und Personen in Vorschauen: Lot-Rolle link, unterstrichen, damit nicht Farbe allein trägt. */
.side-preview-link { color: var(--lot-link, var(--mud-palette-steel)); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.side-preview-link:hover, .side-preview-link:focus-visible { color: var(--lot-link, var(--mud-palette-steel)); text-decoration-thickness: 2px; }
/* Firmendaten in der Verwaltung: zwei Gruppen nebeneinander, schmal untereinander; ohne Trennlinie zwischen den Spalten. */
.object-data-groups { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; gap: 24px 32px; padding: 20px; }
/* Karten nebeneinander gleich hoch (Verwaltung der Person). */
.object-layout--even { align-items: stretch; }
.object-layout--even > .result-panel, .object-layout--even > .object-aside > .result-panel { height: 100%; }
.object-layout--even > .object-aside { align-content: stretch; }
.object-data-groups > .side-preview-section + .side-preview-section { padding-top: 0; border-top: 0; }
.object-data-groups .side-preview-facts { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); }
.object-data-groups .side-preview-facts dt { overflow-wrap: anywhere; }
.side-preview-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--mud-palette-lines-default); }

/* Gesperrt fehlt als Status-Rolle in Lot (DS-GAP-001): übergangsweise die Fehlerfarbe als Tönung, Text in Vordergrundfarbe. */
.status-box--blocked { background-color: color-mix(in srgb, var(--mud-palette-error) 10%, var(--mud-palette-surface)); color: var(--mud-palette-text-primary); }
.status-box--blocked .status-box-title .mud-icon-root { color: var(--mud-palette-error); }

/* ---------------------------------------------------------------------------------------------------------------
   Upload-Dialog (DocumentEditModal, ProvideCaseDocumentDialog): aus DocumentEditModal.razor.css hierher, seit zwei
   Dialoge denselben Aufbau nutzen (AGENTS.md §5).
   --------------------------------------------------------------------------------------------------------------- */
/* Upload-Dialog (Vault szenario-01-dokumente-upload-dialog-entwurf.md). Farben nur aus app.css-Tokens.
   Stahlblau statt Rot für Ablagefeld und Symbol: Rot ist Hauptknopf und Fehler, ein rot gerahmter
   Kasten läse sich vor jeder Handlung schon als Fehler (Dennis, 28.09.2026). */

/* Links Überschrift und Unterzeile, rechts die Grafik in Tinte — im Raster des Inhalts, nicht angeschnitten. */
.app-dialog .upload-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.app-dialog .upload-hero-text {
    flex: 1 1 auto;
    min-width: 0;
}
.app-dialog .upload-hero-art {
    flex: 0 0 auto;
    width: 144px;
    height: 144px;
    object-fit: contain;
    /* Heller Papierton der Illustration geht in die Dialogfläche über. */
    mix-blend-mode: multiply;
}

/* Lange Arten („Ausweisdokument“) nach Silben trennen statt mitten im Wort; Sprache kommt vom Elternelement. */
.app-dialog .upload-hero-headline {
    font-weight: 600;
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
}
/* Fester Zeitraum (Personalliste u. a.): groß unter der Art, damit klar ist, wofür hochgeladen wird. */
.app-dialog .upload-hero-period { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 22px; line-height: 28px; font-weight: 600; color: var(--mud-palette-steel); }
.app-dialog .upload-hero-period .mud-icon-root { font-size: 24px; width: 24px; height: 24px; }
/* Angaben zum Zeitraum: mit Abstand darunter, zwei Spalten (Bezeichnung gedämpft, Wert kräftig), je Angabe eine Zeile. */
.app-dialog .upload-hero-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; align-items: center; margin: 16px 0 12px; padding: 10px 0 0; border-top: 1px solid var(--mud-palette-lines-default); font-size: 14px; }
.app-dialog .upload-hero-facts dt { margin: 0; color: var(--mud-palette-text-secondary); }
.app-dialog .upload-hero-facts dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; min-width: 0; font-weight: 600; color: var(--mud-palette-text-primary); overflow-wrap: anywhere; }
.app-dialog .upload-hero-facts dd.is-overdue > span { color: var(--mud-palette-error); }
.app-dialog .upload-hero-for {
    margin: 2px 0 0;
    color: var(--mud-palette-text-secondary);
}

.app-dialog .upload-hero-purpose {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 4px;
    color: var(--mud-palette-text-secondary);
}
.app-dialog .upload-hero-purpose-warn {
    color: var(--mud-palette-warn);
    margin-top: 1px;
}
.app-dialog .upload-hints-toggle {
    margin: 4px 0 0 -8px;
    min-height: 44px;
    color: var(--mud-palette-text-secondary);
    text-transform: none;
}

/* Stand und Folge: Kasten und Farben kommen aus app.css (.status-box); hier nur der Abstand im Dialog. */
.app-dialog .upload-stand, .app-dialog .upload-purpose-box {
    margin-bottom: 16px;
}
/* Der Infokasten trägt nur einen Satz — normale Stärke statt Titelgewicht. */
.app-dialog .upload-purpose-box .status-box-title {
    font-weight: 400;
    align-items: flex-start;
}
.app-dialog .upload-mono {
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

/* Ablagefeld: das Eingabefeld liegt unsichtbar über allem — Klicken, Tippen und Ablegen treffen es. */
.app-dialog .upload-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 168px;
    padding: 24px 16px;
    margin-bottom: 16px;
    border: 2px dashed var(--mud-palette-steel);
    border-radius: 12px;
    background: var(--mud-palette-steel-tint);
}
.app-dialog .upload-drop.is-dragging {
    border-style: solid;
    box-shadow: inset 0 0 0 2px var(--mud-palette-steel);
}
.app-dialog .upload-drop.is-rejected {
    border-color: var(--mud-palette-error);
    background: var(--mud-palette-surface);
}
.app-dialog .upload-drop:focus-within {
    outline: 2px solid var(--mud-palette-steel);
    outline-offset: 2px;
}
.app-dialog .upload-drop input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Sieht aus wie ein Knopf (Farbe aus .btn-steel), ist aber nur Beschriftung — geklickt wird das Eingabefeld darüber. */
.app-dialog .upload-drop-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 600;
    pointer-events: none;
}
.app-dialog .upload-drop-or, .app-dialog .upload-drop-formats {
    color: var(--mud-palette-text-secondary);
}
/* Auf Geräten ohne Maus gibt es nichts zu ziehen. */
@media (hover: none) {
    .app-dialog .upload-drop-or { display: none; }
}

/* Datei-Kachel: Dokument mit angeheftetem Format und grünem Haken, daneben Name, Größe und nur, was
   wirklich geprüft ist. Kräftiger Rahmen auf grauer Fläche, damit der Block nicht untergeht. */
.app-dialog .upload-file {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 16px;
    border: 2px solid var(--mud-palette-lines-inputs);
    border-radius: 12px;
    background: var(--mud-palette-background-gray);
}
/* Bearbeiten: die Kachel trägt die Farbe des Stands dieses Dokuments (Lot status-*), darunter der Stand in Mono. */
.app-dialog .upload-file--active { background-color: var(--app-status-active); border-color: transparent; color: var(--app-status-active-foreground); }
.app-dialog .upload-file--pending { background-color: var(--app-status-pending); border-color: transparent; color: var(--app-status-pending-foreground); }
.app-dialog .upload-file--attention { background-color: var(--mud-palette-warn-tint); border-color: var(--mud-palette-warn); }
.app-dialog .upload-file-status {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}
.app-dialog .upload-file--attention .upload-file-status .mud-icon-root { color: var(--mud-palette-warn); }
.app-dialog .upload-file-size {
    opacity: 0.8;
}
.app-dialog .upload-file-body {
    flex: 1 1 auto;
    min-width: 0;
}
.app-dialog .upload-file-name {
    font-weight: 600;
    overflow-wrap: anywhere;
}
.app-dialog .upload-checks {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 14px;
}
.app-dialog .upload-checks li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.app-dialog .upload-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 0 -8px;
}
.app-dialog .upload-file-actions .mud-button-root {
    min-height: 44px;
    text-transform: none;
}

.app-dialog .upload-busy {
    padding: 48px 8px;
    text-align: center;
}

@media (max-width: 599.98px) {
    .app-dialog .upload-hero-art {
        width: 104px;
        height: 104px;
    }
    .app-dialog .upload-drop {
        min-height: 144px;
    }
}

/* Ablage unter den Nachweisen (RequirementEvidence, 2026-11-04): abgesetzt von den Pflichten, Werkzeugleiste wie der Personen-Reiter. */
.object-section--vault { margin-top: 8px; padding-top: 32px; border-top: 2px solid var(--mud-palette-lines-default); }
.object-vault-toolbar { gap: 8px 12px; }
.object-doc-group-head.fold-row { width: 100%; }
.object-doc-group-head.fold-row .fold-row-value { font-family: 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; }
/* Nachweiszeile mit Verlauf: zwei Symbole in der Info-Spalte. */
.object-rows--history { --row-info: 76px; }
.object-rows--history .object-row-info { gap: 4px; }
/* Fassungen in der Kontextleiste: rechts nur kleine Symbole, der Name bekommt den Platz. */
.object-rows--versions { --row-deadline: 120px; --row-status: 150px; --row-actions: 88px; }

/* Listen in Lot-Form (Personen, Firmen, Verträge): Muster page und list aus lot.css rc.31 (.lot-table, .lot-filters, .lot-filter, .lot-meter)
   mit Schrift und Farben des MudBlazor-Themes wie die Detailseiten (object-*); Vorprüfung Listen Stufe 1, Regel 6. */
/* Ohne Rahmen außen, über die ganze Breite mit großem Abstand zum Rand (Fundstellen 2026-11-16-fundstellen-listen-lot Nr. 4). */
/* Listen gehen bis an den Rand: Der Seitenrahmen (article.content, oben und unten 32 px, seitlich 16 px) entfällt nur auf Listenseiten.
   Der Randabstand wächst ab 1600 px Breite mit, höchstens bis 96 px. */
/* Die getönte Fläche reicht bis zur Fußzeile, auch bei kurzer Liste: main, Rahmen, Blatt und Inhalt füllen die Höhe. */
main:has(> article.content > .list-workspace) { display: flex; flex-direction: column; }
article.content:has(> .list-workspace) { flex: 1 0 auto; display: flex; flex-direction: column; padding: 0 !important; }
.list-workspace { --list-gutter: clamp(48px, calc(48px + (100vw - 1600px) * .1), 96px); flex: 1 0 auto; display: flex; flex-direction: column; }
/* overflow: visible statt clip aus object-sheet: Sonst schneidet das Blatt das Flyout „Weitere Filter“ an der Fußzeile ab. */
.list-sheet { flex: 1 0 auto; display: flex; flex-direction: column; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.list-sheet .list-head { padding: 28px var(--list-gutter) 16px; }
.list-band { padding: 0 var(--list-gutter) 16px; background: var(--object-head-bg); border-bottom: 1px solid var(--mud-palette-lines-default); }
.list-body { display: grid; align-content: start; gap: 16px; padding: 32px var(--list-gutter) 48px; background: var(--object-page-bg); min-width: 0; flex: 1 0 auto; }

/* Werkzeugleiste: Spur der Schnellfilter (lot-filters), gewählt ist die helle Karte; Suche rechts */
.list-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.list-filters { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 8px; background: color-mix(in srgb, var(--mud-palette-text-primary) 7%, var(--mud-palette-surface)); max-width: 100%; overflow-x: auto; }
.list-filter { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: none; color: var(--mud-palette-text-secondary); font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.list-filter:hover { color: var(--mud-palette-text-primary); }
.list-filter:is([aria-pressed="true"], [data-active="true"], [aria-expanded="true"]) { background: var(--mud-palette-surface); color: var(--mud-palette-text-primary); box-shadow: 0 1px 2px rgba(15, 23, 42, .12), 0 0 0 1px rgba(15, 23, 42, .04); }
.list-filter:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: -2px; }
.list-filter .mud-icon-root { font-size: 16px; }
/* „Weitere Filter“ steht als eigener Knopf neben der Spur, gleich hoch wie sie und mit eigener Fläche. */
.list-more-filters { min-height: 36px; padding: 0 14px; border-radius: 8px; background: color-mix(in srgb, var(--mud-palette-text-primary) 7%, var(--mud-palette-surface)); }
.list-more-filters:is([data-active="true"], [aria-expanded="true"]) { box-shadow: 0 1px 2px rgba(15, 23, 42, .12), 0 0 0 1px var(--mud-palette-lines-default); }
/* Offen: dunkler Rand und Pfeil nach oben, damit der Zustand „offen“ sich vom Zustand „weitere Filter gesetzt“ unterscheidet. */
.list-more-filters[aria-expanded="true"] { box-shadow: 0 0 0 1.5px var(--mud-palette-text-primary); }
.list-more-filters .list-more-chevron { margin-right: -4px; color: var(--mud-palette-text-secondary); }
.list-more-filters[aria-expanded="true"] .list-more-chevron { color: var(--mud-palette-text-primary); }
.list-filter-count { font-variant-numeric: tabular-nums; font-weight: 400; color: var(--mud-palette-text-secondary); }
.list-filter-reset { color: var(--mud-palette-primary-text) !important; background: var(--mud-palette-primary) !important; }
.list-toolbar-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.list-toolbar-search { min-width: 260px; max-width: 340px; margin: 0 !important; }
.list-toolbar-search .mud-input-outlined { background: var(--mud-palette-surface); }
/* Flyout „Weitere Filter“ (Lot-Prototyp bz-filterpanel, GAP-FILTER-MORE-1): direkt unter der Werkzeugleiste und so breit wie sie, auf der Fläche
   der Menüs; Gruppen in Spalten, die Gruppen scrollen innen, der Fuß bleibt stehen. Ein unsichtbarer Hintergrund fängt den Klick daneben. */
.list-toolbar-anchor { position: relative; }
.list-flyout-backdrop { position: fixed; inset: 0; z-index: 1290; }
.list-flyout { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1295; display: grid; grid-template-rows: minmax(0, 1fr) auto; max-height: 70vh; border: 1px solid var(--mud-palette-lines-default); border-radius: 10px; background: var(--mud-palette-surface); box-shadow: 0 12px 32px -8px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .08); outline: none; overflow: hidden; }
.list-flyout-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); align-items: start; gap: 32px 48px; padding: 24px 28px 28px; }
.list-flyout-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
/* Schatten oben und unten, solange im Inhalt noch etwas zu sehen ist (reines CSS, background-attachment local/scroll) */
.list-flyout-body { background: linear-gradient(var(--mud-palette-surface) 30%, transparent) center top / 100% 40px no-repeat local, linear-gradient(transparent, var(--mud-palette-surface) 70%) center bottom / 100% 40px no-repeat local, radial-gradient(farthest-side at 50% 0, rgba(15, 23, 42, .14), transparent) center top / 100% 14px no-repeat scroll, radial-gradient(farthest-side at 50% 100%, rgba(15, 23, 42, .14), transparent) center bottom / 100% 14px no-repeat scroll; }
.list-flyout-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 28px; border-top: 1px solid var(--mud-palette-lines-default); background: color-mix(in srgb, var(--mud-palette-text-primary) 2%, var(--mud-palette-surface)); }
.list-flyout-foot .mud-button-root { text-transform: none; }
.list-filter-group { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: 12px; align-content: start; }
.list-filter-group-label { float: left; width: 100%; padding: 0 0 4px; font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
.list-filter-group-search { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border: 1px solid var(--mud-palette-lines-inputs); border-radius: 6px; background: var(--mud-palette-surface); color: var(--mud-palette-text-secondary); }
.list-filter-group-search:focus-within { border-color: var(--mud-palette-primary); box-shadow: 0 0 0 1px var(--mud-palette-primary); }
.list-filter-group-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: inherit; font-size: 14px; color: var(--mud-palette-text-primary); }
.list-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.list-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: color-mix(in srgb, var(--mud-palette-text-primary) 6%, transparent); color: var(--mud-palette-text-primary); font: inherit; font-size: 13px; line-height: 1.3; text-align: start; cursor: pointer; }
.list-chip > span:first-of-type { min-width: 0; overflow-wrap: anywhere; }
.list-chip .list-filter-count { flex: none; }
.list-chip .mud-icon-root { flex: none; font-size: 16px; }
.list-chip:hover { background: color-mix(in srgb, var(--mud-palette-text-primary) 11%, transparent); }
.list-chip:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; }
.list-chip[data-empty="true"] { color: var(--mud-palette-text-disabled); }
.list-chip[aria-pressed="true"] { background: var(--mud-palette-text-primary); color: var(--mud-palette-surface); font-weight: 500; }
.list-chip[aria-pressed="true"]:hover { background: color-mix(in srgb, var(--mud-palette-text-primary) 88%, var(--mud-palette-surface)); }
.list-chip[aria-pressed="true"] .list-filter-count { color: inherit; font-weight: 400; }
.list-chip mark { background: none; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.list-filter-group-note { margin: 0; font-size: 13px; color: var(--mud-palette-text-secondary); }
.list-filter-group-all { justify-self: start; min-height: 32px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--mud-palette-primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.list-filter-group-all:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; }
@media (max-width: 599px) {
    .list-flyout-groups, .list-flyout-foot { padding-inline: 16px; }
}

/* Tabelle in einer Karte (lot-table): Kopf ruhig und klein in Mono-Versalien, gleich hohe Zeilen, feine Trennlinien */
.list-card { border: 1px solid var(--mud-palette-lines-default); border-radius: 6px; background: var(--mud-palette-surface); box-shadow: var(--object-box-shadow); overflow: clip; }
.list-scroll { overflow-x: auto; }
.list-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.list-table th { height: 40px; padding: 0 16px; text-align: left; vertical-align: middle; white-space: nowrap; font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--mud-palette-text-secondary); background: color-mix(in srgb, var(--mud-palette-text-primary) 4%, var(--mud-palette-surface)); border-bottom: 1px solid var(--mud-palette-lines-default); }
.list-table td { height: 56px; padding: 8px 16px; vertical-align: middle; border-bottom: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 65%, transparent); }
.list-table :is(th, td):first-child { padding-left: 20px; }
.list-table tbody tr:last-child > td { border-bottom: 0; }
.list-table .list-num { text-align: right; }
.list-th-actions, .list-table td.list-actions { width: 1%; white-space: nowrap; text-align: right; }
.list-sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.list-sort:hover, .list-th[aria-sort="ascending"] .list-sort, .list-th[aria-sort="descending"] .list-sort { color: var(--mud-palette-text-primary); }
.list-sort-icon { font-size: 14px !important; opacity: 0; transition: opacity .1s; }
.list-sort:hover .list-sort-icon, .list-sort:focus-visible .list-sort-icon, .list-sort-icon.is-active { opacity: 1; }
.list-row { cursor: pointer; transition: background-color .12s ease; }
.list-row:hover { background: color-mix(in srgb, var(--mud-palette-steel, var(--mud-palette-primary)) 6%, var(--mud-palette-surface)); }
.list-row:is(.is-open, [aria-selected="true"]) { background: color-mix(in srgb, var(--mud-palette-text-primary) 6%, var(--mud-palette-surface)); box-shadow: inset 3px 0 0 var(--mud-palette-primary); }
.list-row:has(.list-row-title a:focus-visible) { outline: 2px solid var(--mud-palette-primary); outline-offset: -2px; }
.list-row-title { min-width: 12em; }
/* Status in Listen und in den Vorschauen der Listen (list-quiet-status) nur bei Handlungsbedarf als Kennzeichen (Stufe 2 Warnung,
   Stufe 3 Sperre; Fundstellen 2026-11-16-fundstellen-listen-lot Nr. 1). Sonst bleibt nur die Struktur: Zeichen und Wort an derselben Stelle, Fläche und Rand unsichtbar. */
:is(.list-table, .list-quiet-status) .app-status:not([data-level="2"]):not([data-level="3"]) { background: transparent; border-color: transparent; }
/* Nebenspalten einzeilig mit „…“ (volle Angabe im Hinweis), der Name höchstens zwei Zeilen: alle Zeilen gleich hoch. Keine festen
   Breiten (Fundstellen 2026-11-16-fundstellen-listen-lot Nr. 3): die Höchstbreite begrenzt auch den Platz, den eine Nebenspalte mindestens verlangt, so passt die Tabelle
   in die Karte und die führende Spalte wächst nach ihrem Inhalt. */
.list-table td.list-clip > span { display: block; max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row-title a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 26rem; }
/* Führende Angabe der Zeile (etwa Nachname, Firmen- oder Vertragsname) größer als die übrigen Spalten (Fundstellen 2026-11-16-fundstellen-listen-lot Nr. 2) */
.list-row-title a { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--mud-palette-text-primary); text-decoration: none; }
.list-row-title a:hover { text-decoration: underline; }
.list-row-title a:focus-visible { outline: none; text-decoration: underline; }
/* Aktionen rechts: „…“ und der Pfeil zur Seite (lot-row-open), beim Überfahren kräftiger; ohne Maus immer sichtbar */
.list-row-actions { display: inline-flex; align-items: center; gap: 2px; }
.list-row-open { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--mud-palette-text-secondary); opacity: 0; transition: opacity .12s ease; }
.list-row:hover .list-row-open, .list-row-open:focus-visible, .list-row.is-open .list-row-open { opacity: 1; }
.list-row-open:hover { color: var(--mud-palette-text-primary); background: color-mix(in srgb, var(--mud-palette-text-primary) 6%, transparent); }
@media (hover: none) { .list-row-open { opacity: 1; } }
.list-skeleton-row td { height: 56px; }
.list-state td { padding: 40px 16px !important; }
.list-state-body { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--mud-palette-text-secondary); text-align: center; }
.list-state-body .mud-icon-root { font-size: 28px; opacity: .7; }
.list-state-body b { color: var(--mud-palette-text-primary); font-weight: 600; }

/* Laufzeit eines Vertrags: Kennzeichen, darunter bei laufenden Verträgen Balken (lot-meter) und „bis …“ oder „unbefristet“ */
.list-term { display: inline-grid; gap: 2px; justify-items: start; white-space: nowrap; }
.list-term-line { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mud-palette-text-secondary); white-space: nowrap; }
.list-meter { --list-progress: 0%; display: block; width: 64px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--mud-palette-text-primary) 10%, var(--mud-palette-surface)); overflow: hidden; }
.list-meter::before { content: ""; display: block; width: var(--list-progress); height: 100%; border-radius: inherit; background: var(--mud-palette-steel, var(--mud-palette-primary)); }

/* Fuß der Karte: Menge und „Weitere laden“ (lot list.structure.weitere-laden) */
.list-foot { display: grid; gap: 8px; border-top: 1px solid var(--mud-palette-lines-default); padding: 8px 4px; }
.list-foot:has(.list-foot-status:empty):not(:has(.list-more)):not(:has(.list-foot-alert)) { display: none; }
.list-foot-status:empty { display: none; }
.list-foot-status { margin: 0 16px; font-size: 14px; color: var(--mud-palette-text-secondary); }
/* Wie Lot lot-table-more: Menge links, Knopf rechts */
.list-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 16px; font-size: 14px; color: var(--mud-palette-text-secondary); }
.list-more p { margin: 0; font-variant-numeric: tabular-nums; }
.list-more .mud-button-root { text-transform: none; }

.side-preview-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.side-preview-details summary { cursor: pointer; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.side-preview-details[open] summary { margin-bottom: 12px; }
@media (max-width: 720px) {
    .list-sheet .list-head { padding: 20px 16px 12px; }
    .list-band { padding: 0 16px 12px; }
    .list-body { padding: 16px; }
    .list-toolbar-end { width: 100%; margin-left: 0; }
    .list-toolbar-search { min-width: 0; max-width: none; flex: 1 1 auto; }
}
.list-preview-note { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }

/* Personen als Quadrate (Lot lot-waffle, Entscheidung 0098): je Person ein Quadrat ohne Rundung, Gruppen als Blöcke,
   Legende mit Zahlen als zugängliche Fassung. Lot-Maße: Quadrat space-3, Abstand space-1. Farben aus dem heutigen Theme
   (Lot chart-1 → Stahl, chart-2 → Grau), bis SAC auf Lot umstellt. Gebraucht von PersonnelSquares. */
.personnel-squares { --square: 12px; display: grid; justify-items: start; gap: 12px; align-content: start; min-width: 0; }
/* Wenige Personen zeigen größere Quadrate (wie Lot kpi-cloud data-lot-size="lg"); Lot-Waffel kennt nur eine Größe, Abweichung bewusst. */
.personnel-squares[data-size="lg"] { --square: 20px; }
.personnel-squares-grid { display: grid; grid-template-columns: repeat(auto-fill, var(--square)); gap: 4px; width: 100%; margin: 0; padding: 0; list-style: none; }
.personnel-squares-grid > li { position: relative; display: block; width: var(--square); height: var(--square); background-color: var(--mud-palette-steel); }
/* Name sofort beim Überfahren (wie Lot lot-instant), über dem Quadrat; die Liste daneben bleibt die zugängliche Fassung. */
.personnel-squares-grid > li[data-name]:hover { outline: 2px solid var(--mud-palette-text-primary); outline-offset: 1px; }
.personnel-squares-grid > li[data-name]:hover::after { content: attr(data-name); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 10; transform: translateX(-50%); padding: 4px 8px; border-radius: 4px; background: var(--mud-palette-gray-darker); color: var(--mud-palette-white); font-size: 13px; line-height: 18px; white-space: nowrap; pointer-events: none; }
.deployment-people > li > i { display: block; width: 12px; height: 12px; background-color: var(--mud-palette-steel); }
:is(.personnel-squares-grid, .deployment-people) [data-key="manual"] { background-color: var(--mud-palette-text-secondary); }
@media (forced-colors: active) { .personnel-squares-grid > li, .deployment-people > li > i { forced-color-adjust: none; background-color: CanvasText; } }

/* Einsatzmeldung am Vertrag: Kennzahl-Karte mit Quadraten und Stand, darunter die Personen mit derselben Markierung,
   eine Hauptaktion rechts unten. */
.deployment-report { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
/* Monatsleiste: je Monat mit Pflicht eine Kachel mit Stand (Farbe, Zeichen, Text), waagrecht rollbar, der gewählte mit Stahlrand. */
.month-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px; }
.month-strip ol { position: relative; display: flex; gap: 8px; margin: 0; padding: 2px 2px 10px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; }
.month-strip li { flex: 0 0 auto; scroll-snap-align: center; }
.month-strip-item { display: grid; gap: 4px; min-width: 9.5rem; min-height: 56px; padding: 8px 12px; border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; background: var(--mud-palette-surface); color: var(--mud-palette-text-primary); text-align: left; font: inherit; cursor: pointer; }
.month-strip-item:hover { border-color: var(--mud-palette-steel); }
.month-strip-item:focus-visible { outline: 2px solid var(--mud-palette-steel); outline-offset: 2px; }
.month-strip-item[aria-pressed="true"] { border: 2px solid var(--mud-palette-steel); padding: 7px 11px; background: var(--mud-palette-steel-tint); }
.month-strip-name { font-weight: 600; white-space: nowrap; }
.month-strip-mark { display: inline-flex; align-items: center; gap: 4px; justify-self: start; padding: 1px 8px 1px 4px; border-radius: 999px; font-size: 13px; line-height: 20px; white-space: nowrap; background: var(--app-status-draft); color: var(--app-status-draft-foreground); }
.month-strip-mark .mud-icon-root { font-size: 16px; width: 16px; height: 16px; }
.month-strip-item[data-mark="Fulfilled"] .month-strip-mark { background: var(--app-status-active); color: var(--app-status-active-foreground); }
.month-strip-item[data-mark="InReview"] .month-strip-mark { background: var(--app-status-pending); color: var(--app-status-pending-foreground); }
.month-strip-item:is([data-mark="Open"], [data-mark="Clarification"], [data-mark="Rejected"], [data-mark="Expired"]) .month-strip-mark { background: var(--mud-palette-warn-tint); color: var(--mud-palette-text-primary); }
.month-strip-item:is([data-mark="Open"], [data-mark="Clarification"], [data-mark="Rejected"], [data-mark="Expired"]) .month-strip-mark .mud-icon-root { color: var(--mud-palette-warn); }
.deployment-note-quiet { margin: 0; font-size: 13px; color: var(--mud-palette-text-secondary); }
/* Zwei Karten nebeneinander: Zahl des Monats und Stand. Jede mindestens 18rem breit, sonst untereinander. */
.deployment-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: 16px; align-items: stretch; }
/* Stand des Monats: großes Zeichen rechts oben, darunter Kopfzeile und Satz in Lesegröße. */
.deployment-state-card.status-box { display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: 8px; border: 1px solid var(--mud-palette-lines-default); }
.deployment-state-icon.mud-icon-root { justify-self: end; width: 40px; height: 40px; font-size: 40px; }
.deployment-state-headline { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; }
.deployment-state-headline::first-letter { text-transform: uppercase; }
.deployment-state-text { margin: 0; font-size: 16px; line-height: 24px; }
.deployment-kpi-body { display: grid; grid-template-columns: minmax(8rem, auto) minmax(0, 1fr); gap: 16px 32px; align-items: start; }
.deployment-kpi-body > .object-kpis { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 599.98px) { .deployment-kpi-body { grid-template-columns: minmax(0, 1fr); } }
.deployment-card { display: grid; border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; background: var(--mud-palette-surface); }
.deployment-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--mud-palette-lines-default); }
.deployment-card-head h3 { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; }
.deployment-card-head b { font-size: 17px; font-variant-numeric: tabular-nums; }
.deployment-empty { margin: 0; padding: 16px 24px; color: var(--mud-palette-text-secondary); }
.deployment-people { margin: 0; padding: 0; list-style: none; }
.deployment-people > li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 56px; padding: 8px 16px 8px 24px; border-bottom: 1px solid var(--mud-palette-lines-default); }
.deployment-people > li:last-child { border-bottom: 0; }
.deployment-person { display: grid; gap: 2px; min-width: 0; }
.deployment-people--compact { border-top: 1px solid var(--mud-palette-lines-default); }
.deployment-people--compact > li { min-height: 40px; padding: 6px 0; }
.deployment-person-origin { font-size: 13px; color: var(--mud-palette-text-secondary); }
.deployment-person b { font-weight: 600; overflow-wrap: anywhere; }
.deployment-person a { justify-self: start; color: var(--mud-palette-text-primary); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.deployment-person a:hover { color: var(--mud-palette-steel); text-decoration-color: currentColor; }
.deployment-person span { font-size: 13px; color: var(--mud-palette-text-secondary); }
.deployment-card-foot { display: flex; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--mud-palette-lines-default); }
.deployment-add { display: grid; gap: 4px; padding: 16px 24px; border-top: 1px solid var(--mud-palette-lines-default); }
/* Suchfeld und Schaltfläche gleich hoch: Das Feld verliert seinen eigenen Außenabstand, die Schaltfläche übernimmt Höhe
   und Ecken des Feldes. */
.deployment-add-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 12px; }
.deployment-add-row > *, .deployment-add-row .mud-input-control { margin: 0 !important; }
.deployment-add-row .mud-input-control > .mud-input-control-input-container { height: 100%; }
.deployment-add-cta { height: 40px; padding-inline: 16px; border-radius: var(--mud-default-borderradius); }
.deployment-add-hint { margin: 0; font-size: 12px; color: var(--mud-palette-text-secondary); }
.deployment-versions { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.deployment-versions li { display: grid; gap: 2px; }
.deployment-versions small { font-size: 13px; color: var(--mud-palette-text-secondary); }
.deployment-versions .deployment-version-review { color: var(--mud-palette-warning-darken, var(--mud-palette-text-primary)); }

/* Dialog „Einsatz bestätigen“ (Lot lot-dialog-intro): Zeichen im Kasten über Titel und Kontext, dann die Quadrate,
   die Erklärung als eigener Block, am Ende durch eine Haarlinie der Hinweis, was danach passiert (lot-dialog-note). */
.deployment-dialog { display: grid; gap: 24px; padding: 8px 0 16px; }
.deployment-intro { display: grid; justify-items: start; gap: 16px; }
.deployment-intro-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 4px; background: var(--mud-palette-steel-tint); color: var(--mud-palette-steel); }
.deployment-intro-mark .mud-icon-root { width: 28px; height: 28px; font-size: 28px; }
.deployment-intro h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; color: var(--mud-palette-text-primary); }
.deployment-intro p { margin: 4px 0 0; color: var(--mud-palette-text-secondary); }
.deployment-label { margin: 0 0 8px; font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
.deployment-declaration-binding { margin: 16px 0 8px; }
.deployment-declaration-text { display: grid; gap: 6px; padding: 12px 16px; border-left: 3px solid var(--mud-palette-steel); background: var(--mud-palette-background-gray); line-height: 1.5; }
.deployment-declaration-text p { margin: 0; }
/* Ein Satz links neben dem Knopf; schmal bricht er über den Knopf. */
.deployment-card-foot:has(.deployment-declaration-hint) { flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.deployment-declaration-hint { flex: 1 1 20rem; margin: 0; font-size: 14px; color: var(--mud-palette-text-secondary); }
.deployment-note { margin: 0; padding-top: 12px; border-top: 1px solid var(--mud-palette-lines-default); font-size: 14px; color: var(--mud-palette-text-secondary); }
/* Reiter mit Zähler: so breit wie Text plus Zähler, sonst schneidet die feste Mindestbreite den Zähler ab. */
.object-tabs .mud-tab:has(.mud-badge) { min-width: max-content; padding-inline-end: 32px; }
/* Zollprüfung (Prüfpakete): Angaben als zweispaltige Liste (Detailseite, Umfang), Hinweisliste und Legende der Vorschau. */
.audit-facts { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: var(--mud-spacing-2) var(--mud-spacing-4); margin: 0; font-size: var(--mud-typography-body2-size, 0.875rem); }
.audit-facts dt { color: var(--mud-palette-text-secondary); }
.audit-facts dd { margin: 0; min-width: 0; }
/* Hairline fading out at both ends between the areas of a card (Lot divider.structure.haarlinie). */
.audit-divider { height: 1px; margin: var(--mud-spacing-4) 0; border: 0; background: linear-gradient(to right, transparent, var(--mud-palette-divider) 6%, var(--mud-palette-divider) 94%, transparent); }
/* Folded sections of the audit package: the same hairline between sections, also while one is open (MudBlazor drops
   the line and adds a margin on an open panel). */
.audit-accordion .mud-expand-panel, .audit-accordion .mud-expand-panel.mud-expand-panel-border { border-bottom: 0; }
.audit-accordion .mud-expand-panel.mud-panel-expanded { margin: 0; }
/* Dense setzt das Polster unten mit drei Klassen auf 0; erst vier Klassen geben dem Inhalt Abstand zur nächsten Linie. */
.audit-accordion .mud-expand-panel .mud-expand-panel-content.mud-expand-panel-dense { padding-bottom: var(--mud-spacing-4); }
.audit-accordion .mud-expand-panel + .mud-expand-panel::before { content: ""; position: absolute; top: 0; left: var(--mud-spacing-4); right: var(--mud-spacing-4); height: 1px; background: linear-gradient(to right, transparent, var(--mud-palette-divider) 6%, var(--mud-palette-divider) 94%, transparent); }
.audit-review-head { display: flex; align-items: center; gap: var(--mud-spacing-3); width: 100%; padding-right: var(--mud-spacing-4); }
.audit-review-head > div { flex: 1; min-width: 0; }
.audit-summary-rows { display: grid; grid-template-columns: 1fr auto; gap: var(--mud-spacing-2) var(--mud-spacing-4); margin: var(--mud-spacing-1) 0 0; }
.audit-summary-rows dt { display: flex; align-items: center; gap: var(--mud-spacing-2); font-weight: 400; }
.audit-summary-rows dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.audit-open-owner { padding: var(--mud-spacing-2) 0; }
.audit-mono { font-family: monospace; font-size: var(--mud-typography-caption-size, 0.75rem); word-break: break-all; }
.audit-open-owner + .audit-open-owner { border-top: 1px solid var(--mud-palette-lines-default); }
.audit-type-reset { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--mud-spacing-2); margin-top: var(--mud-spacing-3); }
.audit-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: var(--mud-spacing-6); }
.audit-type-grid .audit-type-row { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; min-height: 0; padding: var(--mud-spacing-1) 0; }
.audit-type-grid .audit-type-note { margin: 0; padding-left: calc(var(--mud-spacing-7) + var(--mud-spacing-1)); }
.audit-type-grid .audit-type-note:empty { display: none; }
.audit-type-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--mud-spacing-3); min-height: 44px; }
.audit-type-note { margin-left: auto; }
.audit-shortlist-row { min-height: 44px; border-bottom: 1px solid var(--mud-palette-lines-default); }
/* Proof grid of the audit package (DS-GAP: no Lot pattern). Every month is a field of fixed size, so the month head
   lines up with the fields and long periods stay narrow; the person column stays when the table scrolls sideways. */
.audit-proof-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--mud-spacing-2) var(--mud-spacing-6); }
.audit-legend { margin-top: var(--mud-spacing-2); gap: var(--mud-spacing-1) var(--mud-spacing-4); font-size: var(--mud-typography-caption-size, 0.75rem); color: var(--mud-palette-text-secondary); }
.audit-grid-cards { margin-top: var(--mud-spacing-6); }
/* Each company a card of its own: apart, not one stacked accordion. Folded, the card shows name and verdict. */
.audit-grid-cards .mud-expand-panel, .audit-grid-cards .mud-expand-panel.mud-expand-panel-border { border: 1px solid var(--mud-palette-lines-default); border-radius: var(--mud-default-borderradius); }
.audit-grid-cards .mud-expand-panel + .mud-expand-panel, .audit-grid-cards .mud-expand-panel.mud-panel-expanded { margin: var(--mud-spacing-4) 0 0; }
.audit-grid-cards .mud-expand-panel:first-child { margin-top: 0; }
.audit-grid-card-head { display: flex; flex-direction: column; gap: var(--mud-spacing-1); width: 100%; }
.audit-grid-card-head .audit-verdict { margin-top: var(--mud-spacing-2); }
.audit-grid-subline { display: block; font-size: var(--mud-typography-caption-size, 0.75rem); color: var(--mud-palette-text-secondary); }
.audit-card-documents { margin-top: var(--mud-spacing-6); padding-top: var(--mud-spacing-4); border-top: 1px solid var(--mud-palette-lines-default); }
.audit-group-actions { display: inline-flex; align-items: center; gap: var(--mud-spacing-3); }
/* Documents dialog: one card per proof type, 24px apart; the removal is a framed action of its own on every document. */
.audit-docs { display: flex; flex-direction: column; gap: var(--mud-spacing-6); padding-bottom: var(--mud-spacing-2); }
.audit-docs-head { display: flex; flex-direction: column; gap: var(--mud-spacing-3); }
/* Headlines as elsewhere in the app: the object like .object-title-text h1, each proof type like .position-card-title. */
.audit-docs .audit-docs-name { margin: 0; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: 0; overflow-wrap: anywhere; }
/* The scale docks at the top of the scrolling dialog; its inset matches the cards (16px padding + 1px border). */
.audit-docs-axis { position: sticky; top: calc(-1 * var(--mud-spacing-2)); z-index: 3; margin: calc(-1 * var(--mud-spacing-2)) 0 calc(-1 * var(--mud-spacing-3)); padding: var(--mud-spacing-3) calc(var(--mud-spacing-4) + 1px) var(--mud-spacing-2); background: var(--mud-palette-surface); border-bottom: 1px solid var(--mud-palette-lines-default); }
/* Axis and track as one block, clearly apart from sentence above and documents below. */
.audit-docs-timeline { display: flex; flex-direction: column; gap: var(--mud-spacing-1); padding: var(--mud-spacing-4) 0 var(--mud-spacing-5); }
.audit-docs-remove { display: flex; align-items: flex-start; gap: var(--mud-spacing-3); padding: var(--mud-spacing-4); border: 1px solid var(--mud-palette-lines-default); border-left: 3px solid var(--mud-palette-text-primary); border-radius: var(--mud-default-borderradius); background: var(--mud-palette-background-gray); }
.audit-docs-remove .mud-icon-root { margin-top: 2px; flex: none; }
.audit-docs-type { display: flex; flex-direction: column; gap: var(--mud-spacing-3); padding: var(--mud-spacing-4); border: 1px solid var(--mud-palette-lines-default); border-radius: var(--mud-default-borderradius); }
.audit-docs-type-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--mud-spacing-3); }
.audit-docs .audit-docs-type-name { margin: 0; font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: 0; overflow-wrap: break-word; }
.audit-docs-list { display: flex; flex-direction: column; gap: var(--mud-spacing-2); margin-top: var(--mud-spacing-1); }
.audit-doc { display: flex; align-items: center; gap: var(--mud-spacing-3); padding: var(--mud-spacing-2) var(--mud-spacing-2) var(--mud-spacing-2) var(--mud-spacing-3); border: 1px solid var(--mud-palette-lines-default); border-radius: var(--mud-default-borderradius); }
.audit-doc-info { flex: 1; min-width: 0; }
.audit-doc-action { flex: none; padding-left: var(--mud-spacing-2); border-left: 1px solid var(--mud-palette-lines-default); }
.audit-doc-action .mud-checkbox { margin: 0; min-height: 44px; }
.audit-doc--out { border-style: dashed; background: var(--mud-palette-background-gray); }
.audit-doc--out .audit-doc-info { color: var(--mud-palette-text-secondary); text-decoration: line-through; text-decoration-color: var(--mud-palette-text-secondary); }
.audit-docs-without-row { display: flex; flex-direction: column; gap: var(--mud-spacing-2); }
.audit-docs-without-row + .audit-docs-without-row { padding-top: var(--mud-spacing-3); border-top: 1px solid var(--mud-palette-lines-default); }

/* Proof timeline (pattern in the Vault, muster-2026-11-24-zeitachse-nachweise.md): states as in the audit grid fields. */
.proof-axis { position: relative; height: 16px; font-size: 0.75rem; color: var(--mud-palette-text-secondary); container-type: inline-size; }
/* Narrow axis (phone): "davor" and "danach" would run into the first month; the strips stay, their words go. */
@container (max-width: 380px) { .proof-axis-label--edge { display: none; } }
.proof-axis-label { position: absolute; top: 0; white-space: nowrap; padding-left: 3px; }
.proof-track { position: relative; height: 12px; }
.proof-track > span { position: absolute; top: 0; bottom: 0; box-sizing: border-box; }
.proof-track > .proof-off { background: var(--mud-palette-background-gray); }
.proof-gap { border-top: 1.5px dashed var(--mud-palette-text-secondary); border-bottom: 1.5px dashed var(--mud-palette-text-secondary); background: repeating-linear-gradient(135deg, var(--mud-palette-lines-inputs) 0 2px, transparent 2px 7px); }
.proof-track > .proof-bar { top: 2px; bottom: 2px; }
.proof-track > .proof-bar, .proof-track > .proof-cut, .proof-track > .proof-period, .proof-track > .proof-outside, .proof-track > .proof-off { pointer-events: none; }
/* A gap is a wider target than it looks, for its flyout: 6px above and below the 12px line. */
.proof-track > .proof-gap-root { position: absolute; top: -6px; bottom: -6px; display: block; }
.proof-gap-root > .proof-gap { position: absolute; left: 0; right: 0; top: 6px; bottom: 6px; box-sizing: border-box; }
.proof-track .proof-box-root { display: block; flex: 1; height: 100%; }
.proof-box-root > .proof-box { display: block; height: 100%; }
.proof-track > .proof-outside--before { background: linear-gradient(90deg, color-mix(in srgb, var(--mud-palette-background-gray) 45%, transparent), var(--mud-palette-background-gray)); }
.proof-track > .proof-outside--after { background: linear-gradient(270deg, color-mix(in srgb, var(--mud-palette-background-gray) 45%, transparent), var(--mud-palette-background-gray)); }
.proof-bar--ok { background: var(--mud-palette-success); }
.proof-bar--un { background: var(--mud-palette-info); }
.proof-bar--held { border: 1.5px solid var(--mud-palette-text-secondary); background: var(--mud-palette-surface); }
.proof-track > .proof-bar--outside { opacity: 0.35; }
.proof-bar--open-end { mask-image: linear-gradient(90deg, #000 55%, transparent); }
.proof-bar--open-start { mask-image: linear-gradient(270deg, #000 65%, transparent); }
.proof-track > .proof-cut { width: 6px; top: -2px; bottom: -2px; background: var(--mud-palette-surface); transform: skewX(-18deg); }
.proof-track > .proof-period { z-index: 1; top: -2px; bottom: -2px; border-left: 2px solid var(--mud-palette-text-primary); border-right: 2px solid var(--mud-palette-text-primary); pointer-events: none; }
.proof-track > .proof-boxes { display: flex; gap: 2px; padding: 0 3px; }
.proof-box { flex: 1; box-sizing: border-box; border-radius: 2px; }
.proof-box-root .proof-box--gap, .proof-box-root .proof-box--held, .proof-gap-root { cursor: help; }
.proof-box--ok { background: var(--mud-palette-success); }
.proof-box--un { background: var(--mud-palette-info); }
.proof-box--held { border: 1.5px solid var(--mud-palette-text-secondary); }
.proof-box--gap { border: 1.5px dashed var(--mud-palette-text-secondary); background: repeating-linear-gradient(135deg, var(--mud-palette-lines-inputs) 0 2px, transparent 2px 7px); }
.proof-box--off { background: radial-gradient(circle, var(--mud-palette-lines-inputs) 2px, transparent 2.5px); }
.audit-proof-head .mud-switch { margin: 0; }
.audit-verdict { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: var(--mud-spacing-2) var(--mud-spacing-4); margin-top: var(--mud-spacing-3); padding: var(--mud-spacing-3) var(--mud-spacing-4); border: 1px solid var(--mud-palette-lines-default); border-radius: var(--mud-default-borderradius); }
.audit-verdict-number { font-size: 1.5rem; line-height: 1.2; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; color: var(--mud-palette-text-primary); }
.audit-verdict-text { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mud-spacing-1) var(--mud-spacing-3); font-size: var(--mud-typography-body2-size, 0.875rem); color: var(--mud-palette-text-primary); }
.audit-verdict-sub { color: var(--mud-palette-text-secondary); }
.audit-verdict-text .audit-verdict-meter.mud-progress-linear { flex: none; width: 10rem; }
.audit-verdict-all { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: var(--mud-spacing-2); font-size: var(--mud-typography-body2-size, 0.875rem); }
.audit-grid-more td { padding-top: 0; padding-bottom: 0; border-bottom: 0; }
.audit-grid-block { margin-top: var(--mud-spacing-6); }
.audit-grid-scroll { overflow-x: auto; }
.audit-grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--mud-typography-body2-size, 0.875rem); }
.audit-grid th { font-weight: 400; text-align: left; vertical-align: bottom; color: var(--mud-palette-text-secondary); font-size: var(--mud-typography-caption-size, 0.75rem); padding: var(--mud-spacing-2) var(--mud-spacing-3); border-bottom: 1px solid var(--mud-palette-divider); }
.audit-grid td { padding: var(--mud-spacing-2) var(--mud-spacing-3); border-bottom: 1px solid var(--mud-palette-lines-default); vertical-align: middle; }
.audit-grid tbody tr:hover td { background-image: linear-gradient(var(--mud-palette-action-default-hover), var(--mud-palette-action-default-hover)); }
.audit-grid .audit-grid-subhead th { padding-top: var(--mud-spacing-6); }
/* Full width with few columns: the person column stays as narrow as its names, the proof columns share the rest. */
.audit-grid-persons { width: 100%; min-width: max-content; }
.audit-grid-persons th:first-child, .audit-grid-persons td:first-child { width: 0; }
.audit-grid:not(.audit-grid-persons) th:first-child, .audit-grid:not(.audit-grid-persons) td:first-child { width: 55%; }
.audit-grid-persons th:first-child, .audit-grid-persons td:first-child { position: sticky; left: 0; z-index: 1; white-space: nowrap; background-color: var(--mud-palette-surface); box-shadow: inset -1px 0 0 var(--mud-palette-lines-default); }
.audit-grid .audit-grid-type { min-width: 8rem; text-align: center; }
.audit-grid-persons .audit-grid-monthly { text-align: center; }
.audit-grid-persons .audit-grid-monthly .audit-strip--head { margin-inline: auto; }
.audit-grid .audit-grid-type .audit-grid-typename { white-space: normal; overflow-wrap: break-word; hyphens: auto; }
.audit-grid .audit-grid-monthly, .audit-grid-nowrap { white-space: nowrap; }
.audit-grid-typename { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-grid-state { display: inline-flex; align-items: center; gap: var(--mud-spacing-2); }
.audit-grid-sub { display: block; margin-top: 2px; padding-left: calc(16px + var(--mud-spacing-2)); font-size: var(--mud-typography-caption-size, 0.75rem); color: var(--mud-palette-text-secondary); }
.audit-grid-count { margin-left: var(--mud-spacing-3); font-size: var(--mud-typography-caption-size, 0.75rem); color: var(--mud-palette-text-secondary); }
.audit-grid-oneoff { display: inline-flex; padding: 4px; border-radius: 4px; }
.audit-strip:hover, .audit-grid-oneoff:hover { background: var(--mud-palette-action-default-hover); }
.audit-strip:focus-visible, .audit-grid-oneoff:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; border-radius: 2px; }
.audit-field { display: inline-block; flex: none; width: 16px; height: 16px; box-sizing: border-box; border-radius: 2px; vertical-align: middle; }
.audit-field--ok { background: var(--mud-palette-success); }
.audit-field--un { background: var(--mud-palette-info); }
.audit-field--held { border: 2px solid var(--mud-palette-text-secondary); }
.audit-field--no { border: 1.5px dashed var(--mud-palette-text-secondary); }
.audit-field--na { background: radial-gradient(circle, var(--mud-palette-lines-inputs) 2px, transparent 2.5px); }
/* Gap rule 2: whether the proof was required cannot be told — dotted frame, no fill, so it reads apart from a gap. */
.audit-field--unclear { border: 2px dotted var(--mud-palette-warning); }
.audit-field--part { border: 2px solid var(--mud-palette-success); background: linear-gradient(135deg, var(--mud-palette-success) 50%, transparent 50%); }
.audit-field--part-un { border: 2px solid var(--mud-palette-info); background: linear-gradient(135deg, var(--mud-palette-info) 50%, transparent 50%); }
.audit-strip { display: inline-grid; grid-template-columns: repeat(var(--months), 16px); column-gap: 4px; padding: 4px 0; vertical-align: middle; }
.audit-strip--head { display: grid; width: max-content; row-gap: 2px; margin-top: var(--mud-spacing-1); font-size: 11px; line-height: 1.2; text-align: center; color: var(--mud-palette-text-secondary); }
.audit-strip-year { overflow: hidden; padding-left: 2px; text-align: left; white-space: nowrap; border-left: 1px solid var(--mud-palette-lines-default); }
/* The review step with the grid may use the whole dialog; the shared wizard keeps 720px elsewhere. */
.wizard-shell__form:has(.audit-proof) { max-width: none; }
/* MudBlazor centres the box on the whole label; with two lines it sits between them. Here it stands at the first line:
   the text moves down by half the difference between the box (dense: 32px, small: 28px) and its own line. */
.audit-check .mud-checkbox { align-items: flex-start; }
.audit-check .mud-checkbox > .mud-button-root + * { padding-top: max(0px, calc((32px - 1lh) / 2)); }
.audit-check .mud-checkbox:has(.mud-icon-size-small) > .mud-button-root + * { padding-top: max(0px, calc((28px - 1lh) / 2)); }
