/* =========================================================
   MODALE DE DÉTAIL D'UNE TRANSACTION
   ---------------------------------------------------------
   Les 528 lignes qui se trouvaient ici ont été retirées : la modale
   utilise désormais le composant commun /css/modal.css (variante
   is-view).

   Elles décrivaient une mise en page à deux colonnes qui n'existe plus
   dans le balisage, et surtout un sélecteur #transaction-detail-status
   qui peignait la pastille de statut en ambre quelle que soit l'issue
   de l'opération : une transaction terminée s'affichait en jaune.
   ========================================================= */

/* =========================================================
   ACTIVITÉ RÉCENTE
   ---------------------------------------------------------
   Les 250 lignes .dashboard-transaction-* ont été retirées : la liste
   utilise maintenant le composant partagé /css/transaction-row.css,
   celui de la page Transactions, avec le même balisage.

   C'était deux composants pour une seule et même ligne : ils avaient
   déjà divergé sur la taille du titre, la couleur du montant et le
   sort du statut sur mobile.
   ========================================================= */

/* =========================================================
   DASHBOARD - PROFILE COMPLETENESS
   ========================================================= */

.dashboard-profile-card {
    padding: 24px !important;
}


/* HEADER */

.dashboard-profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}


.dashboard-profile-title {
    margin: 0;

    color: #2b3034;

    font-size: 1.0625rem;
    font-weight: 600;
}


.dashboard-profile-subtitle {
    margin: 4px 0 0;

    color: #5c6670;

    font-size: 0.875rem;
}


.dashboard-profile-percent {
    flex: 0 0 auto;

    padding: 6px 11px;

    color: #7441d4;

    background: rgba(116, 65, 212, 0.08);

    border-radius: 999px;

    font-size: 0.9375rem;
    font-weight: 700;
}


/* PROGRESS */

.dashboard-profile-progress {
    width: 100%;
    height: 7px;

    margin-top: 18px;

    overflow: hidden;

    background: #edf0f2;

    border-radius: 999px;
}


.dashboard-profile-progress-bar {
    height: 100%;

    background: #7441d4;

    border-radius: inherit;

    transition: width 0.3s ease;
}


/* ITEMS */

.dashboard-profile-items {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;

    margin-top: 20px;
}


.dashboard-profile-item {
    position: relative;

    display: flex;
    align-items: center;

    min-width: 0;

    padding: 14px;

    background: #fafbfc;

    border: 1px solid #e7ebee;
    border-radius: 12px;

    gap: 11px;
}


.dashboard-profile-item.is-complete {
    background:
            rgba(116, 65, 212, 0.025);

    border-color:
            rgba(116, 65, 212, 0.16);
}


/* ICON */

.dashboard-profile-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    color: #5c6670;

    background: #eef1f3;

    border-radius: 10px;

    font-size: 0.9375rem;
}


.dashboard-profile-item.is-complete
.dashboard-profile-item-icon {
    color: #7441d4;

    background:
            rgba(116, 65, 212, 0.09);
}


/* CONTENT */

.dashboard-profile-item-content {
    min-width: 0;
}


.dashboard-profile-item-title {
    overflow: hidden;

    color: #2b3034;

    font-size: 0.9375rem;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.dashboard-profile-item-status {
    margin-top: 2px;

    color: #5c6670;

    font-size: 0.875rem;
}


/* CHECK */

.dashboard-profile-item-check {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 22px;
    height: 22px;

    margin-left: auto;

    color: #ffffff;

    background: #197a33;

    border-radius: 50%;

    font-size: 0.75rem;
}


.dashboard-profile-item-state {
    margin-left: auto;

    color: #98a2ac;

    font-size: 0.9375rem;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .dashboard-profile-items {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .dashboard-profile-card {
        padding: 18px !important;
    }


    .dashboard-profile-header {
        gap: 12px;
    }


    .dashboard-profile-title {
        font-size: 1rem;
    }


    .dashboard-profile-subtitle {
        font-size: 0.875rem;
    }


    .dashboard-profile-percent {
        padding: 5px 9px;

        font-size: 0.875rem;
    }


    .dashboard-profile-items {
        grid-template-columns: 1fr;

        gap: 8px;

        margin-top: 16px;
    }


    .dashboard-profile-item {
        padding: 10px 12px;
    }


    .dashboard-profile-item-icon {
        width: 34px;
        height: 34px;

        border-radius: 9px;
    }

}

.dashboard-profile-item {
    padding-top: 12px;
    padding-bottom: 12px;
}

.dashboard-profile-progress {
    height: 6px;
}

/* =========================================================
   DASHBOARD - ASIDE
   ========================================================= */

.dashboard-aside-card {
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(30, 40, 50, 0.05);
    overflow: hidden;
}


/* =========================================================
   PROFIL
   ========================================================= */

.dashboard-profile-card {
    text-align: center;
    padding: 32px 20px 28px;
}

.dashboard-avatar {
    width: 82px;
    height: 82px;
    margin: 0 auto 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: linear-gradient(
            135deg,
            #7441d4,
            #6737c7
    );

    color: #fff;

    font-size: 30px;
    font-weight: 400;
    letter-spacing: 1px;

    box-shadow: 0 8px 20px rgba(116, 65, 212, 0.18);
}

.dashboard-profile-name {
    color: #2b3034;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.dashboard-profile-label {
    margin-top: 5px;

    color: #5c6670;
    font-size: 15px;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.dashboard-actions-card {
    padding: 18px;
}

.dashboard-identity-button {
    width: 100%;
    min-height: 48px;

    border-radius: 24px;

    font-weight: 600;
}

.dashboard-quick-actions {
    margin: 18px -18px -18px;

    border-top: 1px solid #edf0f2;
}

.dashboard-quick-action {
    position: relative;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 15px 18px;

    color: #2b3034;
    text-decoration: none;

    border-bottom: 1px solid #f0f2f4;

    transition:
            background-color 0.2s ease,
            color 0.2s ease;
}

.dashboard-quick-action:last-child {
    border-bottom: 0;
}

.dashboard-quick-action:hover {
    background: #faf8ff;
    color: #6737c7;
}

.dashboard-quick-action-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f4effd;
    color: #7441d4;

    font-size: 16px;
}

.dashboard-quick-action strong {
    display: block;

    color: #2b3034;

    font-size: 15px;
    font-weight: 600;
}

.dashboard-quick-action small {
    display: block;

    margin-top: 2px;

    color: #5c6670;
    font-size: 15px;
}

.dashboard-quick-action:hover strong {
    color: #6737c7;
}

.dashboard-action-arrow {
    margin-left: auto;

    color: #98a2ac;
    font-size: 15px;
}


/* =========================================================
   AIDE
   ========================================================= */

.dashboard-help-card {
    padding: 28px 22px 22px;

    text-align: center;
}

.dashboard-help-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: #f4effd;
    color: #7441d4;

    font-size: 27px;
}

.dashboard-help-card h3 {
    margin-bottom: 12px;

    color: #2b3034;

    font-size: 17px;
    font-weight: 600;
}

.dashboard-help-card p {
    margin-bottom: 20px;

    color: #5c6670;

    font-size: 15px;
    line-height: 1.6;
}

.dashboard-help-button {
    width: 100%;
    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 23px;

    font-weight: 600;
}

.dashboard-profile-card {
    padding: 26px 18px 22px;
}

.dashboard-avatar {
    width: 72px;
    height: 72px;
    margin-bottom: 14px;

    font-size: 27px;
}

.dashboard-help-card {
    padding: 22px 18px 18px;
}

.dashboard-help-icon {
    width: 56px;
    height: 56px;

    margin-bottom: 14px;

    font-size: 23px;
}

.dashboard-quick-action {
    padding: 13px 16px;
}

.dashboard-quick-action-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}

/* =========================================================
   DASHBOARD LAYOUT
   ========================================================= */

.dashboard-layout {
    display: grid;

    grid-template-columns:
        minmax(250px, 300px)
        minmax(0, 1fr);

    grid-template-areas:
        "sidebar main"
        "help    main";

    align-items: start;

    column-gap: 24px;
    row-gap: 24px;
}


.dashboard-sidebar-main {
    grid-area: sidebar;

    min-width: 0;
}


.dashboard-main {
    grid-area: main;

    min-width: 0;
}


.dashboard-sidebar-help {
    grid-area: help;

    min-width: 0;
}


/* On évite les doubles marges maintenant
   que le gap de la grille s'en charge */

.dashboard-sidebar-main
.dashboard-aside-card:last-child {
    margin-bottom: 0 !important;
}


/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .dashboard-layout {
        grid-template-columns: minmax(0, 1fr);

        grid-template-areas:
            "sidebar"
            "main"
            "help";

        gap: 24px;
    }


    .dashboard-sidebar-main,
    .dashboard-main,
    .dashboard-sidebar-help {
        width: 100%;
    }

}

/*
|--------------------------------------------------------------------------
| BADGE "IDENTITÉ VÉRIFIÉE"
|--------------------------------------------------------------------------
|
| À ajouter à la feuille du dashboard.
|
| Vert et discret : c'est un état acquis, pas une action. Il ne doit pas
| entrer en concurrence visuelle avec les boutons violets, qui eux
| appellent un clic.
|
*/

.dashboard-identity-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;

    margin-top: 1rem;
    padding: .45rem .9rem;

    border: 1px solid #b7e4c7;
    border-radius: 999px;
    background: #f0fbf4;

    color: #1a7f43;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
}

.dashboard-identity-badge i {
    font-size: 1rem;
}

.dashboard-actions-card:not(:has(.dashboard-identity-button)) .dashboard-quick-actions {
    margin-top: 0;
}


/*
|--------------------------------------------------------------------------
| ÉTAT DE LA VÉRIFICATION D'IDENTITÉ
|--------------------------------------------------------------------------
|
| Dans la carte Actions, la pastille REMPLACE le bouton « Valider mon
| identité » : elle en reprend donc la forme - pleine largeur, même
| hauteur, même rayon - et pas celle du badge du profil juste au-dessus.
| Le client revient chercher son état là où il avait cliqué ; l'espace
| doit lui répondre, pas se refermer.
|
| Le vert par défaut ne vaut que pour « vérifié ». Le laisser aux trois
| autres cas ferait annoncer une réussite à un dossier refusé.
|
*/

.dashboard-actions-card .dashboard-identity-badge {
    display: flex;
    justify-content: center;

    width: 100%;
    min-height: 48px;

    /* La marge du badge de profil n'a pas lieu d'être ici : la
       pastille est le premier élément de la carte, elle prend la
       place du bouton qui n'en avait pas. */
    margin-top: 0;

    padding: 10px 16px;

    border-radius: 24px;

    text-align: center;
    text-wrap: balance;
}


/* La règle plus haut supprime l'écart quand il n'y a PLUS rien
   au-dessus des raccourcis. Ici il y a la pastille : l'écart revient. */

.dashboard-actions-card:has(.dashboard-identity-badge) .dashboard-quick-actions {
    margin-top: 18px;
}


/* Examen en cours. Ambre : ni acquis, ni échec - une attente.
   Même palette que l'avertissement du profil. */

.dashboard-identity-badge.is-pending {
    color: #7a5300;

    background: #fff8df;

    border-color: #f1dfa0;
}


/* Refus. Le seul état qui demande une action du client, d'où le
   rouge - il doit contacter le support, pas attendre. */

.dashboard-identity-badge.is-rejected {
    color: #b42318;

    background: #fef3f2;

    border-color: #fecdca;
}


/* Lecture impossible. Gris volontairement neutre : on ne sait pas où
   en est le dossier, ni s'il en existe un. Rien ne doit laisser croire
   à une réponse. */

.dashboard-identity-badge.is-unavailable {
    color: #5c6670;

    background: #f4f6f8;

    border-color: #dbe1e6;
}