/* Pagination Custom Admiro */
.pagination .page-link {
    color: #495057;
    border: 1px solid #e9ecef;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    background-color: #fff;
    transition: all 0.2s ease;
}

    .pagination .page-link:hover {
        background-color: #f1f3f9;
        color: #0766ad;
    }

.pagination .page-item.active .page-link {
    background-color: #0766ad;
    border-color: #0766ad;
    color: #fff;
    box-shadow: 0 2px 5px rgba(7, 102, 173, 0.2);
}

.pagination .page-item.disabled .page-link {
    color: #ced4da;
    background-color: #fff;
    border-color: #e9ecef;
    cursor: not-allowed;
}

.card-footer {
    border-top: 1px solid #f1f3f9 !important;
}


/* Cartes de statistiques */
.stat-card {
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    }

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Structure de la table */
.card-table {
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    font-weight: 600;
    border-top: none;
    border-bottom: 2px solid #f1f3f9;
}

.table td {
    vertical-align: middle !important;
    padding: 0.95rem 0.75rem;
    border-top: 1px solid #f1f3f9;
}

/* Avatars initials */
.avatar-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Badges customisés propres */
.badge-blue {
    background-color: rgba(7, 102, 173, 0.1);
    color: #0766ad;
}

.badge-pink {
    background-color: rgba(232, 62, 140, 0.1);
    color: #e83e8c;
}

.bg-light-success {
    background-color: #e8f5e9;
}

.bg-light-danger {
    background-color: #ffebee;
}

/* Boutons d'action épurés */
.btn-action {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    margin: 0 2px;
}

    .btn-action:hover {
        background: #e9ecef;
    }



/* Intégration de la couleur institutionnelle eSchool */
:root {
    --admiro-blue-inst: #0766ad;
    --admiro-blue-inst-hover: #054d82;
    --admiro-pdf-red: #e44a4a;
    --admiro-pdf-red-hover: #c83737;
}

.text-institutionnel {
    color: var(--admiro-blue-inst) !important;
}

.border-b-institutionnel {
    border-bottom: 2px solid #f4f5f8;
    position: relative;
}

    .border-b-institutionnel::after {
        position: absolute;
        content: "";
        width: 40px;
        height: 2px;
        background-color: var(--admiro-blue-inst);
        bottom: -2px;
        left: 0;
    }

/* Boutons personnalisés calqués sur le format Admiro */
.btn-admiro-primary {
    background-color: var(--admiro-blue-inst) !important;
    border-color: var(--admiro-blue-inst) !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

    .btn-admiro-primary:hover {
        background-color: var(--admiro-blue-inst-hover) !important;
        border-color: var(--admiro-blue-inst-hover) !important;
    }

.btn-admiro-pdf {
    background-color: var(--admiro-pdf-red) !important;
    border-color: var(--admiro-pdf-red) !important;
    color: #ffffff !important;
}

    .btn-admiro-pdf:hover:not([disabled]) {
        background-color: var(--admiro-pdf-red-hover) !important;
        border-color: var(--admiro-pdf-red-hover) !important;
    }

/* Inputs Admiro réactifs */
.custom-admiro-input:focus {
    border-color: var(--admiro-blue-inst) !important;
    box-shadow: 0 0 0 0.2rem rgba(7, 102, 173, 0.15) !important;
}

/* Zone d'aperçu de document */
.bg-admiro-preview {
    background-color: #f5f7fa !important;
    border-radius: 8px;
}

.min-h-400 {
    min-height: 410px;
}

.questpdf-paper-preview {
    border: 1px solid #e6edef;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
}

.text-disabled {
    color: #bbc5d5 !important;
}

.border-top-light {
    border-top: 1px solid #f4f5f8;
}

/* Animation douce de l'apparition du select */
.animate-admiro-fade {
    animation: admiroSlideDown 0.25s ease-out;
}

@keyframes admiroSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Etudiant UI Css Custom subtle colors for Admiro template look */
.bg-success-light {
    background-color: rgba(40, 199, 111, 0.12) !important;
}

.bg-warning-light {
    background-color: rgba(255, 159, 67, 0.12) !important;
}

.bg-primary-light {
    background-color: rgba(7, 102, 173, 0.12) !important;
}

.font-xs {
    font-size: 0.75rem;
}
/* Timeline styling custom shorthand */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 35px;
    height: calc(100% - 20px);
    width: 2px;
    background: #e9ecef;
    z-index: 1;
}

.timeline-item:last-child::before {
    display: none;
}












/* --- LE FILTRE ULTRA COMPACT (SLIM HEIGHT) --- */
.erp-stat-card-slim {
    height: 68px !important; /* Hauteur totale bloquée et très basse */
    background-color: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    /* Maintien de l'effet 3D "remonté" mais proportionné */
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .erp-stat-card-slim:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(7, 102, 173, 0.14) !important;
    }

    /* Forcer le card-body à occuper 100% de la hauteur sans marges */
    .erp-stat-card-slim .card-body {
        padding: 0 14px !important;
        height: 100% !important;
        display: flex;
        align-items: center; /* Aligne verticalement au centre au millimètre */
    }

/* Chiffre KPI compressé en hauteur */
.erp-stat-number {
    font-size: 19px !important;
    font-weight: 800;
    letter-spacing: -0.3px;
    display: inline-block;
    vertical-align: middle;
}

/* --- BOITE D'ICONE MINIATURE --- */
.erp-stat-icon-box-micro {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}









/* --- NOUVELLE CARTE COMPACTE ET SOULEVÉE --- */
.erp-stat-card-premium {
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    background-color: #ffffff !important;
    /* Ombre accentuée 3D (Effet surélevé net) */
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.04) !important;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}

    /* Accentuation de la remontée au passage de la souris */
    .erp-stat-card-premium:hover {
        transform: translateY(-4px); /* Remonte encore plus haut */
        box-shadow: 0 18px 32px rgba(7, 102, 173, 0.18) !important; /* Ombre bleutée intense au survol */
    }

    /* Chiffre plus compact mais percutant */
    .erp-stat-card-premium h3 {
        font-size: 24px; /* Hauteur réduite par rapport au h2 */
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: -0.5px;
    }

/* --- BOITE D'ICONE COMPACTÉE (HAUTEUR PLAT) --- */
.erp-stat-icon-box-sm {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px; /* Taille d'icône ajustée pour économiser de la place */
    flex-shrink: 0;
}

/* Rappel des couleurs de votre charte */
.text-blue-custom {
    color: #0766ad !important;
}

.bg-blue-subtle {
    background-color: rgba(7, 102, 173, 0.1) !important;
}

.text-teal-custom {
    color: #0d9488 !important;
}

.bg-teal-subtle {
    background-color: rgba(13, 148, 136, 0.1) !important;
}

.text-amber-custom {
    color: #d97706 !important;
}

.bg-amber-subtle {
    background-color: rgba(217, 119, 6, 0.1) !important;
}

.text-purple-custom {
    color: #7c3aed !important;
}

.bg-purple-subtle {
    background-color: rgba(124, 58, 237, 0.1) !important;
}






















/* --- CONFIGURATION DU HEADER DU FILTRE --- */
.erp-filter-header-gradient {
    /* Utilise votre bleu #0766ad vers une variante subtilement plus profonde */
    background: linear-gradient(135deg, #0766ad 0%, #004d8c 100%) !important;
}

/* Mini badge blanc translucide entourant l'icône de l'en-tête */
.erp-filter-icon-badge {
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #ffffff;
}

/* Ajustement de la police du sous-titre pour éviter tout flou */
.style-subtitle {
    font-weight: 400;
    text-shadow: none;
}

/* Assure la continuité des bordures de la carte globale */
.erp-filter-card {
    border: 1px solid #e2e8f0 !important;
    border-top: none !important; /* Laisse le header bleu fusionner proprement */
}



/* --- CARTE DU FILTRE --- */
.erp-filter-card {
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
}

/* --- CHAMPS DE FORMULAIRE NETS & SANS FLOU --- */
.erp-input {
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 500;
    font-size: 13.5px;
    padding: 0.6rem 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    /* Focus net et coloré sur vos inputs */
    .erp-input:focus {
        border-color: #0766ad !important;
        box-shadow: 0 0 0 3px rgba(7, 102, 173, 0.15) !important;
        outline: none;
    }

/* Champ readonly distinct */
.cursor-not-allowed {
    cursor: not-allowed;
    background-color: #f8fafc !important;
    color: #64748b !important;
}

/* --- BOUTON FILTRER (Votre Bleu #0766AD) --- */
.erp-btn-filter-primary {
    background: linear-gradient(90deg, #0766ad 0%, #1e81cc 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 13.5px;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(7, 102, 173, 0.15) !important;
    transition: all 0.2s ease !important;
}

    .erp-btn-filter-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 15px rgba(7, 102, 173, 0.25) !important;
        color: #ffffff !important;
    }

/* --- BOUTON SÉCONDAIRE (RESET) --- */
.erp-btn-filter-secondary {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    font-size: 13.5px;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    transition: all 0.2s ease !important;
}

    .erp-btn-filter-secondary:hover {
        background-color: #f1f5f9 !important;
        color: #0f172a !important;
        border-color: #94a3b8 !important;
    }



















/* --- CONFIGURATION DE LA COULEUR PERSONNALISÉE #0766AD --- */
:root {
    --erp-blue-custom: #0766ad; /* Votre bleu exact */
    --erp-blue-custom-dark: #004d8c;
    --erp-blue-custom-subtle: rgba(7, 102, 173, 0.09);
}

.erp-text-blue {
    color: var(--erp-blue-custom) !important;
}

/* --- STRUCTURE GLOBAL SIDEBAR --- */
.erp-sidebar-premium {
    box-shadow: 0 10px 30px rgba(7, 102, 173, 0.08) !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff;
}

/* 1. En-tête avec votre Bleu #0766AD */
.erp-header-gradient-blue {
    background: linear-gradient(135deg, var(--erp-blue-custom) 0%, var(--erp-blue-custom-dark) 100%) !important;
}

/* 2. Élément Actif (Overview) en Bleu #0766AD */
.erp-active-btn-blue {
    background: linear-gradient(90deg, var(--erp-blue-custom) 0%, #1e81cc 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(7, 102, 173, 0.3) !important;
    transition: transform 0.2s ease;
}

    .erp-active-btn-blue:hover {
        transform: translateY(-1px);
    }

/* 3. Boîtes d'icônes et Items de listes */
.erp-icon-box {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    flex-shrink: 0;
}

.bg-blue-subtle {
    background-color: var(--erp-blue-custom-subtle) !important;
    color: var(--erp-blue-custom) !important;
}

.erp-text-dark {
    color: #1e293b !important;
    transition: color 0.2s ease;
}

/* 4. Effet Hover sur les items principaux (Passage en bleu complet) */
.erp-item-link-blue {
    background-color: #f8fafc !important;
    margin-bottom: 2px;
    transition: all 0.2s ease-in-out !important;
}

    .erp-item-link-blue:hover {
        background-color: var(--erp-blue-custom) !important;
    }

        .erp-item-link-blue:hover .erp-text-dark {
            color: #ffffff !important;
        }

        .erp-item-link-blue:hover .erp-icon-box {
            background-color: #ffffff !important;
            color: var(--erp-blue-custom) !important;
        }

/* --- 5. BOUTONS ACTIONS DU BAS CORRIGÉS EN BLEU #0766AD --- */
.erp-action-btn-blue-footer {
    border: 1px solid rgba(7, 102, 173, 0.25) !important;
    background-color: #ffffff !important;
    color: var(--erp-blue-custom) !important;
    transition: all 0.2s ease !important;
}

    .erp-action-btn-blue-footer .btn-arrow {
        transition: transform 0.2s ease;
    }

    /* Effet Hover des boutons du bas */
    .erp-action-btn-blue-footer:hover {
        background-color: var(--erp-blue-custom) !important;
        color: #ffffff !important;
        border-color: var(--erp-blue-custom) !important;
        box-shadow: 0 4px 12px rgba(7, 102, 173, 0.15);
    }

        .erp-action-btn-blue-footer:hover .btn-arrow {
            transform: translateX(4px);
        }

/* Animations connexes */
.pulse-animation {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
    animation: pulseEffectBlue 2s infinite;
}

@keyframes pulseEffectBlue {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.cursor-pointer {
    cursor: pointer;
}








/* LINK PRINCIPAL */
/*.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white !important;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.25s ease-in-out;
}

.main-sidebar {
    background: #0766ad;
    color: white;
}

.stroke-icon {
    stroke: white !important;
    fill: white !important;
}

.sidebar-link:hover {
    background-color: white !important;*/ /* vert foncé */
    /*color: white !important;
}*/

/* aside color blue */









html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}


.validation-message {
    color: red;
    font-size: 0.875rem;
}











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

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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 #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

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

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

.validation-message {
    color: #e50000;
}

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