/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Layout-Styles liegen global in wwwroot/app.css (.app-shell, .sidebar, .app-main, #blazor-error-ui). */
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Navigations-Styles liegen global in wwwroot/app.css (.nav-brand, .nav-list, .nav-link …). */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-7zmx63xnqq],
.components-reconnect-repeated-attempt-visible[b-7zmx63xnqq],
.components-reconnect-failed-visible[b-7zmx63xnqq],
.components-pause-visible[b-7zmx63xnqq],
.components-resume-failed-visible[b-7zmx63xnqq],
.components-rejoining-animation[b-7zmx63xnqq] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-7zmx63xnqq],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-7zmx63xnqq],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-7zmx63xnqq],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-7zmx63xnqq],
#components-reconnect-modal.components-reconnect-retrying[b-7zmx63xnqq],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-7zmx63xnqq],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-7zmx63xnqq],
#components-reconnect-modal.components-reconnect-failed[b-7zmx63xnqq],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-7zmx63xnqq] {
    display: block;
}


#components-reconnect-modal[b-7zmx63xnqq] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-7zmx63xnqq 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-7zmx63xnqq 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-7zmx63xnqq 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-7zmx63xnqq]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-7zmx63xnqq 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-7zmx63xnqq {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-7zmx63xnqq {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-7zmx63xnqq {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-7zmx63xnqq] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-7zmx63xnqq] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-7zmx63xnqq] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-7zmx63xnqq] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-7zmx63xnqq] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-7zmx63xnqq] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-7zmx63xnqq] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-7zmx63xnqq 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-7zmx63xnqq] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-7zmx63xnqq {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Dashboards/FinanceDashboard.razor.rz.scp.css */
/* Finance-Dashboard – Diagramme/Balken. Farben/Rahmen aus den globalen CSS-Variablen (app.css),
   damit Light/Dark automatisch mitlaufen. „realisiert" = grün, „offen" = slate. */

.fin-kpis[b-ccxwszerb4] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

/* Legende (Kartenkopf + Split) */
.fin-legend[b-ccxwszerb4] {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--muted);
}

.fin-legend-item[b-ccxwszerb4] {
    display: inline-flex;
    align-items: center;
}

.fin-swatch[b-ccxwszerb4] {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: middle;
}

.sw-realized[b-ccxwszerb4] { background: var(--green); }
.sw-open[b-ccxwszerb4] { background: var(--slate); }

/* 12-Monats-Balkendiagramm */
.fin-chart[b-ccxwszerb4] {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 200px;
}

.fin-col[b-ccxwszerb4] {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fin-col-value[b-ccxwszerb4] {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 4px;
    height: 14px;
    white-space: nowrap;
}

.fin-bar-track[b-ccxwszerb4] {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.fin-bar[b-ccxwszerb4] {
    width: 62%;
    max-width: 34px;
    min-height: 2px;
    display: flex;
    flex-direction: column;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.fin-seg[b-ccxwszerb4] { width: 100%; }

.fin-col-label[b-ccxwszerb4] {
    font-size: 11px;
    color: var(--muted);
    margin-top: 6px;
    text-transform: capitalize;
}

/* Realisierungs-Balken (Anteil realisiert vs. offen) */
.fin-split[b-ccxwszerb4] {
    height: 14px;
    border-radius: var(--radius-pill);
    background: var(--slate);
    overflow: hidden;
}

.fin-split-fill[b-ccxwszerb4] {
    height: 100%;
    border-radius: var(--radius-pill);
}

.fin-split-legend[b-ccxwszerb4] {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 18px;
    margin-top: 12px;
    font-size: 13px;
}

.fin-row-total td[b-ccxwszerb4] { border-top: 1px solid var(--border-strong); }

/* Umsatz nach Auftragstyp (horizontale Balken) */
.fin-typelist[b-ccxwszerb4] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fin-typehead[b-ccxwszerb4] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    margin-bottom: 4px;
}

.fin-typebar-track[b-ccxwszerb4] {
    height: 8px;
    background: var(--accent-soft);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.fin-typebar[b-ccxwszerb4] {
    height: 100%;
    background: var(--accent);
    border-radius: var(--radius-pill);
}
