﻿/* ================================
   APC Participation — Shimmer CSS
   ================================ */

.apc-shimmer-scope {
    --apc-skel-base: #e9ebf3;
    --apc-skel-spot: #f4f6fb;
    --apc-skel-shadow: rgba(0,0,0,.06);
}

.apc-shimmer-table {
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 6px var(--apc-skel-shadow);
}

    /* Tête du tableau (on garde tes libellés visibles) */
    .apc-shimmer-table thead th {
        background: #fff;
        font-weight: 800;
        font-size: .9rem;
    }

    /* Lignes */
    .apc-shimmer-table tbody tr {
        height: 44px;
    }

.apc-shimmer {
    position: relative;
    border-radius: 8px;
    background: linear-gradient(0deg, var(--apc-skel-base), var(--apc-skel-spot));
    overflow: hidden;
}

    .apc-shimmer::after {
        content: "";
        position: absolute;
        inset: 0;
        transform: translateX(-100%);
        background: linear-gradient( 90deg, transparent 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,.75) 55%, transparent 100% );
        animation: apc-shimmer-move 1.1s ease-in-out infinite;
    }

@keyframes apc-shimmer-move {
    100% {
        transform: translateX(100%);
    }
}

/* Cellules placeholder */
.apc-shimmer-select {
    height: 32px;
    width: 260px;
}

.apc-shimmer-time {
    height: 32px;
    width: 140px;
}

.apc-shimmer-check {
    height: 28px;
    width: 30px;
    border-radius: 6px;
}

.apc-shimmer-name {
    height: 14px;
    width: 42%;
    margin-bottom: 6px;
}

.apc-shimmer-sub {
    height: 12px;
    width: 28%;
}

.apc-shimmer-slot {
    height: 18px;
    width: 130px;
}

.apc-shimmer-trash {
    height: 28px;
    width: 32px;
    border-radius: 8px;
}

/* Ajuste un peu les largeurs pour casser l’uniformité */
.apc-shimmer-row:nth-child(3n) .apc-shimmer-name {
    width: 55%;
}

.apc-shimmer-row:nth-child(4n) .apc-shimmer-name {
    width: 36%;
}

.apc-shimmer-row:nth-child(5n) .apc-shimmer-sub {
    width: 38%;
}

/* Col spacing */
.apc-shimmer-td {
    vertical-align: middle;
    padding: .5rem .75rem;
}
