/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Nur Topbar-Feinheiten. Die Shell selbst (.app-shell, .app-sidebar, .app-topbar,
   .app-content) und #blazor-error-ui leben global in wwwroot/app.css.

   Der Rest dieser Datei war das ungenutzte Blazor-Template-CSS (.sidebar mit Verlauf,
   .top-row, ein zweites #blazor-error-ui in lightyellow). Es musste weg: scoped CSS trägt
   ein [b-…]-Attribut und hätte die globalen Regeln überstimmt — ausgerechnet beim
   Fehlerbanner, das dann in beiden Themes hellgelb geblieben wäre. */

.topbar-user[b-bkd3a7la7h] {
    font-size: 12.5px;
    color: var(--color-text-muted);
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Das Logout-Formular ist reines Transportmittel und darf keinen Platz beanspruchen. */
.app-topbar form[b-bkd3a7la7h] {
    display: inline;
    margin: 0;
}

@media (max-width: 720px) {
    .topbar-theme-label[b-bkd3a7la7h],
    .topbar-user[b-bkd3a7la7h] {
        display: none;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Sidebar-Feinheiten, die nur diese Komponente betreffen. Alles Wiederverwendbare
   (.app-sidebar, .ds-nav-*, .sidebar-brand, .avatar) lebt in wwwroot/app.css. */

.sidebar-brand-svg[b-ad6uh8u7y3] {
    flex: 0 0 auto;
    color: var(--color-primary);
}

.sidebar-brand-accent[b-ad6uh8u7y3] {
    color: var(--color-accent);
}

.sidebar-brand-name[b-ad6uh8u7y3] {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
    white-space: nowrap;
}

/* Haus- und Produktname trennen über die Farbe, nicht über die Fettung — eine zweite
   Fettungsstufe wäre bei 13.5px nicht mehr sauber unterscheidbar. */
.sidebar-brand-suffix[b-ad6uh8u7y3] {
    color: var(--color-primary);
}

.sidebar-brand-sub[b-ad6uh8u7y3] {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.sidebar-user[b-ad6uh8u7y3] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sidebar-user-name[b-ad6uh8u7y3] {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--color-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-role[b-ad6uh8u7y3] {
    font-size: 10.5px;
    color: var(--color-text-muted);
}
/* /Components/Pages/Customer/CustomerMappings.razor.rz.scp.css */
/* Mapping-Übersicht des Kunden: Karten statt Tabelle. Die Zielgruppe sieht diese Seite
   ein- oder zweimal pro Projekt — hier ist Lesbarkeit wichtiger als Dichte. */

.mapping-list[b-w6fs2rdoib] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mapping-card[b-w6fs2rdoib] {
    display: block;
    transition: border-color 0.12s, box-shadow 0.12s;
}

.mapping-card:hover[b-w6fs2rdoib] {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-sm);
}

.mapping-card-head[b-w6fs2rdoib] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.mapping-card-title[b-w6fs2rdoib] {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.mapping-card-desc[b-w6fs2rdoib] {
    margin: 3px 0 0;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.mapping-card-badges[b-w6fs2rdoib] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* Begrüßungsseite — einzige Stelle im Portal mit zentrierter Marketing-Anmutung.
   Überall sonst gilt Dichte statt Luft. */

.home[b-2upd2irddb] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.home-mark[b-2upd2irddb] {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 22px;
    border-radius: 16px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    box-shadow: var(--shadow-xs);
}

.home-mark-accent[b-2upd2irddb] {
    color: var(--color-accent);
}

.home-title[b-2upd2irddb] {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
}

/* FocusOnNavigate setzt den Fokus programmatisch auf die h1; der Rahmen soll dabei nur bei
   echter Tastaturnavigation sichtbar sein. */
.home-title:focus:not(:focus-visible)[b-2upd2irddb] {
    outline: none;
}

.home-sub[b-2upd2irddb] {
    margin: 0 0 28px;
    font-size: 14px;
    color: var(--color-text-secondary);
}
/* /Components/Pages/Internal/MappingDetail.razor.rz.scp.css */
/* Aufklappbare Tool-Metadaten am Fuß der Tabellenkarte. Bewusst zugeklappt: der JSON-Block
   ist Diagnosematerial und interessiert in 99 % der Fälle niemanden. */
.meta-block[b-7mv38ldd9h] {
    padding: 14px 20px;
    border-top: 1px solid var(--color-border);
}

.meta-block details > summary[b-7mv38ldd9h] {
    list-style: none;
}

.meta-block details > summary[b-7mv38ldd9h]::-webkit-details-marker {
    display: none;
}

.meta-block details > summary[b-7mv38ldd9h]::before {
    content: "▸ ";
    color: var(--color-text-faint);
}

.meta-block details[open] > summary[b-7mv38ldd9h]::before {
    content: "▾ ";
}
/* /Components/Pages/Internal/Users.razor.rz.scp.css */
/* Einmalpasswort im Dialog. Bewusst groß und mittig gesetzt: es wird abgelesen und
   abgetippt, nicht überflogen. */
.password-reveal[b-f50yd8g19o] {
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-input);
    background: var(--color-bg-subtle);
    color: var(--color-text-primary);
    font-size: 17px;
    letter-spacing: 0.04em;
    text-align: center;
    user-select: all;   /* ein Klick markiert alles — spart das fehleranfällige Ziehen */
    word-break: break-all;
}
/* /Components/Shared/DynamicForm.razor.rz.scp.css */
/* Overlay wie beim TargetPicker: bewusst kein natives <dialog>, weil das showModal() ueber
   JS-Interop braeuchte und diese Komponente parameter-only bleiben soll. */
.df-scrim[b-qdvjjhtw4e] {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--color-backdrop);
    backdrop-filter: blur(2px);
}

.df-panel[b-qdvjjhtw4e] {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 560px;
    max-height: min(85vh, 720px);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Gruppe als abgesetzter Block, damit "Person" und "Vertrag" auseinandergehalten werden,
   ohne dass jedes Feld doppelt beschriftet werden muss. */
.df-group[b-qdvjjhtw4e] {
    margin: 0 0 20px;
    padding: 14px 16px 2px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
}

.df-group-title[b-qdvjjhtw4e] {
    padding: 0 6px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
/* /Components/Shared/EntityInfoCard.razor.rz.scp.css */
.entity-info[b-4ucwqdl0jp] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.entity-info-label[b-4ucwqdl0jp] {
    font-size: 13px;
    color: var(--color-text-primary);
}

.entity-info-extra[b-4ucwqdl0jp] {
    font-size: 11.5px;
    color: var(--color-text-muted);
}
/* /Components/Shared/FieldBlock.razor.rz.scp.css */
/* Der Stern am Pflichtfeld traegt keine Bedeutung fuer sich - er wiederholt nur, was die Pruefung
   ohnehin sagt. Deshalb gedaempft und aria-hidden im Markup. */
.df-required[b-8q638n2rw2] {
    color: var(--color-danger-text, var(--color-text-muted));
}

.df-error[b-8q638n2rw2] {
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--color-danger-text, var(--color-text-muted));
}
/* /Components/Shared/TargetPicker.razor.rz.scp.css */
/* Auslöser in der Tabellenzelle: sieht aus wie ein Select, ist aber ein Knopf. Breite
   begrenzt, damit die Spalte über alle Zeilen gleich bleibt. */
.tp-trigger[b-18w9d5f13z] {
    justify-content: flex-start;
    gap: 8px;
    height: 30px;
    min-width: 200px;
    max-width: 280px;
    overflow: hidden;
    font-weight: 400;
}

/* Ohne Zuordnung: Warnfarbe im Text, nicht als Fläche — die Zeile ist bereits getönt. */
.tp-trigger.is-empty[b-18w9d5f13z] {
    color: var(--color-warning-text);
}

.tp-trigger-label[b-18w9d5f13z] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Overlay --- */

.tp-scrim[b-18w9d5f13z] {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--color-backdrop);
    backdrop-filter: blur(2px);
}

.tp-panel[b-18w9d5f13z] {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 560px;
    max-height: min(80vh, 640px);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.tp-head[b-18w9d5f13z] {
    flex: 0 0 auto;
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border);
}

.tp-head-row[b-18w9d5f13z] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.tp-title[b-18w9d5f13z] {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.tp-subtitle[b-18w9d5f13z] {
    margin: 2px 0 0;
    font-size: 11.5px;
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-list[b-18w9d5f13z] {
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
}

/* Ein Eintrag der Zielliste. Bewusst kein .ds-btn: die Einträge sind mehrzeilig und
   linksbündig, und ein Button-Raster über 200 Ziele wäre unruhig. */
.tp-option[b-18w9d5f13z] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-input);
    background: var(--color-surface);
    color: var(--color-text-primary);
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background 0.1s, border-color 0.1s;
}

.tp-option:hover[b-18w9d5f13z] {
    background: var(--color-surface-hover);
    border-color: var(--color-border-strong);
}

.tp-option:focus-visible[b-18w9d5f13z] {
    outline: 2px solid var(--color-primary-ring);
    outline-offset: 2px;
}

.tp-option.is-selected[b-18w9d5f13z] {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
}

/* „Keine Zuordnung" ist kein Ziel, sondern das Entfernen eines Ziels — gestrichelt, damit
   der Unterschied ohne Lesen erkennbar ist. */
.tp-option.is-none[b-18w9d5f13z] {
    border-style: dashed;
    border-color: var(--color-border-strong);
    background: var(--color-bg-subtle);
    color: var(--color-text-muted);
}

.tp-option-head[b-18w9d5f13z] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Der Name fuehrt: der Schluessel ist im Zielsystem haeufig eine Guid und sagt dem,
   der zuordnet, nichts. Fehlt der Name, steht der Schluessel selbst hier. */
.tp-option-name[b-18w9d5f13z] {
    font-weight: 500;
    color: var(--color-text-primary);
}

/* Der Schluessel bleibt sichtbar, aber als Beleg unter dem Namen, nicht als Ueberschrift. */
.tp-option-key[b-18w9d5f13z] {
    font-size: 11.5px;
    color: var(--color-text-muted);
}

.tp-selected-mark[b-18w9d5f13z] {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-primary);
}

.tp-option-extra[b-18w9d5f13z] {
    font-size: 11.5px;
    color: var(--color-text-muted);
}

.tp-empty[b-18w9d5f13z] {
    margin: 0;
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
}

.tp-foot[b-18w9d5f13z] {
    flex: 0 0 auto;
    justify-content: space-between;
}

.tp-count[b-18w9d5f13z] {
    font-size: 11.5px;
    color: var(--color-text-muted);
}
