/* Layout bas de page */
.erpcf-bottom {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 32px;
}

/* Ancienne liste simple de tâches (si encore utilisée) */
.erpcf-bottom-tasks ul {
    padding: 0;
    margin: -8px;
    list-style-position: inside;
}
.erpcf-bottom-tasks ul li {
    margin-bottom: 4px;
}

.erpcf-kpi-card__value a,
.erpcf-kpi-card__value a:visited,
.erpcf-kpi-card__value a:hover,
.erpcf-kpi-card__value a:active,
.erpcf-kpi-card__value a:focus {
  color: inherit;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.erpcf-kpi-card__value-link:hover {
  opacity: 1;
}

.erpcf-kpi-card__value-link:focus {
  outline: none;
}

.erpcf-kpi-card__value-link:focus-visible {
  outline: 1px solid rgba(17, 24, 39, 0.2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Ancienne liste simple de tâches (si encore utilisée) */
.erpcf-bottom-agenda ul {
    padding: 0;
    margin: 0;
    list-style-position: inside;
}
.erpcf-bottom-agenda ul li {
    margin-bottom: 4px;
}

/* Cartes bas de page : agenda + tâches */
.erpcf-bottom-agenda,
.erpcf-bottom-tasks {
    background: #fff;
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid #d1d5db;
    flex: 1;
}

/* Card Qualiopi bas : barre couleur alerte */
.erpcf-module-card--qualiopi .erpcf-module-card__bar {
    background-color: #f59e0b;
}

/* Colonnes */
.erpcf-bottom__col {
    min-width: 0;
}

/* Carte générique */
.erpcf-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px 18px;
    text-decoration: none;
    color: #1d2327;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform .15s ease, box-shadow .15s ease;
}

/* Effet hover optionnel sur les cartes */
.erpcf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Bloc "Aujourd’hui & à venir" */
.erpcf-bottom-card--agenda {
    display: flex;
    flex-direction: column;
}

.erpcf-bottom__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
}

.erpcf-bottom__subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 12px;
}

/* ========================================================= */
/* =============== BASE COMMUNE LISTES ===================== */
/* ========================================================= */

.erpcf-list {
    list-style: none;
    margin: 0;
    padding: 4px 0 0; /* aligne sous le titre */
    font-size: 14px;
}

.erpcf-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
}

.erpcf-list-item:first-child {
    border-top: none;
}

/* Bouton d’action commun (tâches + agenda) */
.erpcf-action-btn {
    border: none;
    background: #e5e7eb;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    text-decoration: none !important;
    line-height: 1;
}

.erpcf-action-btn:hover {
    background: #d1d5db;
}

/* ========================================================= */
/* ======================= AGENDA ========================== */
/* ========================================================= */

/* Texte principal dans agenda : même rendu que les tâches */
.agenda-item-main,
.agenda-item-title,
.agenda-item-dates {
    font-family: inherit!important;
    font-size: 14px!important;
    font-weight: 400!important; /* même poids que le texte des tâches */
}

/* Si tu veux garder les dates un peu plus marquées */
.agenda-item-dates {
    font-weight: 600!important; /* ou 500 si tu veux moins fort */
}

.erpcf-agenda-list {
    list-style: none;
    margin: 0;
    padding: 4px 0 0; /* aligné sous le titre */
    font-size: 14px;
}



.erpcf-agenda-list .agenda-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
}



.erpcf-agenda-list .agenda-item:first-child {
    border-top: none;
}

.agenda-item-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

/* Bloc dates */
.agenda-item-dates {
    display: inline-flex;
    align-items: baseline;
    font-weight: 600;
    color: #4b5563;
    min-width: 110px;
}

.agenda-date-start,
.agenda-date-end {
    font-variant-numeric: tabular-nums;
}

.agenda-date-separator {
    margin: 0 4px;
    font-size: 0.9em;
    color: #6b7280;
}

/* Titre session */
.agenda-item-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pastille ⋯ */
.agenda-item-more {
    border: none;
    background: #e5e7eb;
    border-radius: 999px;
    width: 65px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    text-decoration: none !important;
    line-height: 1;
}

.agenda-item-more:hover {
    background: #d1d5db;
}

/* ========================================================= */
/* ======================= TÂCHES ========================== */
/* ========================================================= */

.erpcf-widget-tasks {
    display: flex;
    flex-direction: column;
}

.erpcf-widget-header {
    margin-bottom: 12px;
}

.erpcf-widget-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
}

.erpcf-widget-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Liste de tâches */
.erpcf-task-list {
    list-style: none;
    margin: 0;
    padding: 4px 0 0;
}

.erpcf-task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
}

.erpcf-task-item:first-child {
    border-top: none;
}

.erpcf-task-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.erpcf-task-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erpcf-task-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

/* Badges types */
.erpcf-task-badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.erpcf-badge--formateur         { background-color: #f97316; } /* orange */
.erpcf-badge--facture_impayee   { background-color: #2563eb; } /* bleu  */
.erpcf-badge--devis_signe       { background-color: #2563eb; } /* bleu  */
.erpcf-badge--docs              { background-color: #16a34a; } /* vert  */
.erpcf-badge--cloture           { background-color: #dc2626; } /* rouge */
.erpcf-badge--cockpit           { background-color: #7c3aed; } /* violet */
.erpcf-badge--resultat_formateur,
.erpcf-badge--rapport_formateur { background-color: #7c3aed; }

/* Date de tâche */
.erpcf-task-date {
    font-size: 13px;
    color: #4b5563;
}

.erpcf-task--overdue .erpcf-task-date {
    color: #dc2626;
    font-weight: 500;
}

/* Boutons d'action des tâches */
.erpcf-task-done,
.erpcf-task-more {
    border: none;
    background: #e5e7eb;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    text-decoration: none !important;
    line-height: 1;
}

.erpcf-task-done:hover,
.erpcf-task-more:hover {
    background: #d1d5db;
}

/* Lien "Voir toutes les tâches" */
.erpcf-task-all {
    margin-top: 12px;
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
}

.erpcf-task-all:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .erpcf-bottom {
        grid-template-columns: 1fr;
    }
}



/* Forcer même typo pour les deux colonnes */
.erpcf-bottom-agenda .agenda-item-main,
.erpcf-bottom-agenda .agenda-item-title,
.erpcf-bottom-tasks .erpcf-task-main,
.erpcf-bottom-tasks .erpcf-task-label {
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}
