/* ==========================================================
   HEADER DE LA CARD
   ========================================================== */

.card-dashboard > .card-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    width: 100%;
    min-height: 64px;
    padding: 12px 16px;

    background: #ffffff;
    border-bottom: 1px solid #e3e8ef;
}


/*
 * Premier conteneur du header :
 * titre principal + sous-titre.
 */
.card-dashboard > .card-header > .e-con:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;

    width: auto;
    min-width: 0;
}


/*
 * Conteneur du bouton « Voir tout ».
 */
.card-dashboard > .card-header > .e-con:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    width: auto;
    flex: 0 0 auto;
}


/* Suppression des marges Elementor inutiles. */
.card-dashboard > .card-header .elementor-widget-heading,
.card-dashboard > .card-header .elementor-widget-button {
    margin: 0;
}


/* Titre principal. */
.card-dashboard > .card-header h2.elementor-heading-title {
    margin: 0;
    padding: 0;

    color: #101828;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}


/* Sous-titre. */
.card-dashboard > .card-header h3.elementor-heading-title {
    margin: 0;
    padding: 0;

    color: #667085;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}


/* Bouton Voir tout. */
.card-dashboard > .card-header .elementor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;
    padding: 7px 13px;

    color: #475467;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 7px;

    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.card-dashboard > .card-header .elementor-button:hover,
.card-dashboard > .card-header .elementor-button:focus-visible {
    color: #1d4ed8;
    background: #f8fafc;
    border-color: #98a2b3;
    box-shadow: 0 2px 4px rgba(16, 24, 40, 0.08);
}