/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

body{
	background:#fff!important;
}
html {
  scroll-behavior: smooth;
}
.bouton-action{
    background-color: #E82E89 !important;
    color: white !important;
    padding: 15px 25px !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}
.bouton-action:hover{
    background-color: #000 !important;
    transition: background-color 0.3s ease;
}

.bouton-paiement{
    background-color: #2DAAE2 !important;
    color: white !important;
    padding: 15px 25px !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}
.bouton-paiement:hover{
    background-color: #000 !important;
    transition: background-color 0.3s ease;
}
.menu-top-title {
  text-align: center;
  font-size: 2em;
  font-weight: 600;
  padding: 10px 30px;
  background: #fff;
  color:#000;
  text-transform:uppercase;
}
.main-navigation {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-top-title {
  width: 100%;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  padding: 8px 0;
}
/* TABLEAU DES FACTURES */
.afpacp-recu-ref {
    width: 80px;
    max-width: 80px;
    white-space: nowrap;
}
.afpacp-recu-table {
    table-layout: fixed;
    width: 100%;
}

.afpacp-recu-table th:nth-child(1) { width: 130px; }   /* Réf */
.afpacp-recu-table th:nth-child(2) { width: 80px }    /* Membre (admin) ou Désignation */
.afpacp-recu-table th:nth-child(3) { width: 180px; }   /* Montant */
.afpacp-recu-table th:nth-child(4) { width: 180px; }    /* Statut */
.afpacp-recu-table th:nth-child(5) { width: 140px; }   /* Actions */

/* Tronquer les textes longs */
.afpacp-recu-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* ========================================
   AFP-ACP Reçus — Tableau responsive
   ======================================== */

/* Fixe les largeurs des colonnes */
.afpacp-recu-table {
    table-layout: fixed;
    width: 100%;
}

.afpacp-recu-table th:nth-child(1) { width: 130px; }   /* Réf */
.afpacp-recu-table th:nth-child(2) { width: 100px }    /* Membre (admin) ou Désignation */
.afpacp-recu-table th:nth-child(3) { width: 180px; }   /* Montant */
.afpacp-recu-table th:nth-child(4) { width: 180px; }    /* Statut */
.afpacp-recu-table th:nth-child(5) { width: 140px; }   /* Actions */
.afpacp-recu-table th:nth-child(6) { width: 130px; }   /* Actions */

/* Tronque les textes longs */
.afpacp-recu-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Désignation : autorise le retour à la ligne */
.afpacp-recu-table td:nth-child(3) {
    white-space: normal;
    word-break: break-word;
}
.page-id-34 .menu-top-title {
    text-align: center;
    font-size: 2em;
    font-weight: 600;
    padding: 10px 30px;
    background: #fff!important;
    color: #000!important;
    text-transform: uppercase;
}
/* ---- Mobile < 768px : carte par ligne ---- */
@media (max-width: 768px) {

    .afpacp-recu-table-wrap {
        overflow-x: visible;
        border: none;
        box-shadow: none;
    }

    .afpacp-recu-table,
    .afpacp-recu-table thead,
    .afpacp-recu-table tbody,
    .afpacp-recu-table tr,
    .afpacp-recu-table th,
    .afpacp-recu-table td {
        display: block;
        width: 100% !important;
    }

    /* Masque l'en-tête */
    .afpacp-recu-table thead {
        display: none;
    }

    /* Chaque ligne = une carte */
    .afpacp-recu-table tr {
        background: #fff;
        border: 1px solid #d4e3eb;
        border-radius: 10px;
        margin-bottom: 12px;
        padding: 12px 16px;
        box-shadow: 0 2px 8px rgba(26,95,122,.07);
    }

    /* Cellule avec label auto via data-label */
    .afpacp-recu-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border: none;
        border-bottom: 1px solid #f0f4f7;
        font-size: .88rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .afpacp-recu-table td:last-child {
        border-bottom: none;
        padding-top: 10px;
        justify-content: flex-end;
        gap: 8px;
    }

    /* Label automatique avant chaque valeur */
    .afpacp-recu-table td::before {
        content: attr(data-label);
        font-size: .75rem;
        font-weight: 700;
        color: #6b8394;
        text-transform: uppercase;
        letter-spacing: .05em;
        flex-shrink: 0;
        margin-right: 8px;
    }

    .afpacp-recu-montant {
        font-size: 1rem;
    }

    .afpacp-recu-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}