/* Barre de navigation du bas (mobile d'abord). */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    display: flex;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 0 4px;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
    text-decoration: none;
}

    .bottom-nav-tab.active {
        color: var(--mud-palette-primary);
    }

/* Ligne de statistique : libelle | nombre | part. */
.stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    color: inherit;
    text-decoration: none;
}

.stat-row-value {
    min-width: 3.5em;
    text-align: right;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.stat-row-share {
    min-width: 3em;
    text-align: right;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

.stat-row-icon-placeholder {
    width: 20px;
}

.flex-1 {
    flex: 1;
}

.field + .field {
    margin-top: 10px;
}

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

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

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

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

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

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

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