/* ADESK — refonte « carte de cotisation » (impeccable, voir PRODUCT.md et .impeccable/surfaces/).
   Feuille statique, mise en cache par le navigateur : tableau de bord, barre du bas, coque du menu.
   Les jetons --adesk-* sont posés par resources/views/filament/theme-styles.blade.php. */
/* ───────────── Refonte « carte de cotisation » : tableau de bord et barre du bas ─────────────
   Fond crème, cartes en carton blanc cassé, bandeau imprimé par type de caisse, dix cases tamponnées
   à l'encre bleu nuit (un dixième de l'attendu versé par case). Police du système (NF-03). */
.adk-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.adk-dash { display: grid; gap: 24px; align-items: start; }
.adk-dash-main, .adk-dash-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
@media (min-width: 1024px) {
    .adk-dash { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; }
}
.adk-section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.adk-h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 700; color: var(--adesk-primary); display: flex; align-items: center; gap: 8px; text-wrap: balance; }
.adk-h3 { margin: 0; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--adesk-primary); }
.adk-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--adesk-primary); color: #FFFFFF; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.adk-empty { margin: 0; font-size: 15px; color: var(--adesk-text-muted); }
.adk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.adk-chev { width: 20px; height: 20px; flex-shrink: 0; color: #8C8576; }

/* Le carton : partagé par la carte « Réunion » et les cartes de caisse */
.adk-meeting, .adk-carte {
    background: #FFFDF8;
    border: 1px solid #E2DACA;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(22, 35, 61, .06), 0 10px 24px -14px rgba(22, 35, 61, .28);
}
.adk-band {
    margin: 0;
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 12px 18px;
    background: var(--adesk-primary); color: #FFFFFF;
    font-size: 15px; line-height: 20px; font-weight: 700;
    border-bottom: 3px solid var(--adesk-accent);
}
.adk-band-note { font-size: 13px; font-weight: 600; color: #E9C877; }

/* Carte « Réunion » : ce qu'il faut faire de la réunion maintenant */
.adk-meeting-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.adk-meeting-date { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.adk-meeting-day { font-size: 14px; font-weight: 600; color: var(--adesk-text-muted); }
.adk-meeting-date .adk-num { font-size: 32px; line-height: 38px; font-weight: 800; letter-spacing: -.02em; color: var(--adesk-primary); }
.adk-meeting-meta { margin: 0; font-size: 15px; color: var(--adesk-text); }
.adk-meeting-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.adk-btn {
    min-height: 48px; padding: 0 20px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; text-decoration: none;
    transition: background-color .15s ease-out, box-shadow .15s ease-out;
}
.adk-btn-gold { flex: 1 1 200px; background: var(--adesk-accent); color: var(--adesk-primary); box-shadow: 0 1px 0 rgba(22, 35, 61, .25), 0 6px 14px -8px rgba(138, 100, 20, .7); }
.adk-btn-gold:hover { background: #CF9F36; }
.adk-btn-quiet { background: transparent; color: var(--adesk-primary); border: 1px solid #CFC6B0; }
.adk-btn-quiet:hover { background: #F3EEE2; }
.adk-meeting-last {
    margin-top: 12px; padding-top: 12px; border-top: 1px dashed #D8CFBB;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
    font-size: 14px; color: var(--adesk-text-muted); text-decoration: none; min-height: 44px; align-items: center;
}
.adk-meeting-last > span:first-child { font-weight: 600; color: var(--adesk-text); }
.adk-meeting-last:hover > span:first-child { color: var(--adesk-primary); text-decoration: underline; text-underline-offset: 3px; }

/* Lignes d'alerte : ligne entière teintée et encadrée, étiquette écrite (le sens ne passe pas que par la couleur) */
.adk-alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.adk-alert {
    display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px;
    border-radius: 12px; border: 1px solid #EBD7AE; background: #FBF3E2;
    color: var(--adesk-text); text-decoration: none;
    transition: background-color .15s ease-out;
}
.adk-alert[data-level="red"] { border-color: #F0C9C4; background: #FBEDEB; }
.adk-alert:hover { background: #F7E9CB; }
.adk-alert[data-level="red"]:hover { background: #F8DEDA; }
.adk-alert-level {
    flex-shrink: 0; align-self: flex-start; margin-top: 1px;
    padding: 2px 8px; border-radius: 6px; font-size: 12px; line-height: 18px; font-weight: 700;
    background: #F3DDAE; color: #6B3F00;
}
.adk-alert[data-level="red"] .adk-alert-level { background: #B3261E; color: #FFFFFF; }
.adk-alert-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #4A4F5A; }
.adk-alert-text strong { font-size: 15px; line-height: 20px; color: var(--adesk-text); }

/* Cartes de caisse : le geste signature */
.adk-cartes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@media (min-width: 1200px) {
    .adk-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .adk-cartes .adk-carte-amount { font-size: 24px; line-height: 30px; }
    .adk-cartes .adk-carte-body { padding: 12px 14px 14px; }
}
.adk-carte { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: box-shadow .2s ease-out, transform .2s ease-out; }
.adk-carte:hover { box-shadow: 0 1px 2px rgba(22, 35, 61, .08), 0 16px 30px -16px rgba(22, 35, 61, .4); transform: translateY(-1px); }
.adk-carte-band { display: flex; flex-direction: column; gap: 1px; padding: 11px 16px 10px; background: var(--adesk-primary); color: #FFFFFF; }
.adk-carte[data-type="mutual"] .adk-carte-band { border-bottom: 6px double var(--adesk-accent); }
.adk-carte[data-type="mutual"] .adk-carte-band .adk-carte-name { color: #F2D78F; }
.adk-carte[data-type="activity"] .adk-carte-band { background: var(--adesk-accent); color: var(--adesk-primary); border-bottom: 3px solid var(--adesk-primary); }
/* Caisse sous son seuil : l'alerte gagne la carte entière, pas seulement l'étiquette */
.adk-carte[data-low] { border-color: #E8B7B1; }
.adk-carte[data-low] .adk-carte-amount { color: #B3261E; }
.adk-carte-name { font-size: 16px; line-height: 21px; font-weight: 800; }
.adk-carte-kind { font-size: 12px; line-height: 16px; font-weight: 600; opacity: .85; }
.adk-carte-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.adk-carte-label { font-size: 13px; font-weight: 600; color: var(--adesk-text-muted); display: flex; align-items: center; gap: 8px; }
.adk-flag { padding: 1px 7px; border-radius: 6px; background: #B3261E; color: #FFFFFF; font-size: 12px; line-height: 18px; font-weight: 700; }
.adk-carte-amount { font-size: 28px; line-height: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--adesk-primary); }
.adk-carte-foot { font-size: 13px; color: var(--adesk-text-muted); }
.adk-carte-foot strong { color: #1F6B3A; }
.adk-low { color: #B3261E; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .adk-carte, .adk-carte:hover { transform: none; } }
/* Progression des cotisations : la barre d'avant la refonte (.adesk-bar), posée dans la carte */
.adk-carte-bar { margin: 10px 0 4px; }
.adk-carte[data-low] .adk-carte-bar { background: #F8E9E6; }

.adk-registre {
    display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px;
    border-radius: 14px; border: 1px solid #E2DACA; background: #FFFDF8; color: inherit; text-decoration: none;
}
.adk-registre:hover { background: #FBF6EA; }
.adk-registre-n { font-size: 28px; line-height: 32px; font-weight: 800; color: var(--adesk-primary); min-width: 44px; }
.adk-registre-t { flex: 1 1 auto; display: flex; flex-direction: column; font-size: 13px; color: var(--adesk-text-muted); }
.adk-registre-t strong { font-size: 15px; color: var(--adesk-text); }

/* Palmarès : listes légères, sans en-tête plein */
.adk-ranks { margin-top: 8px; }
.adk-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.adk-rank { background: #FFFDF8; border: 1px solid #E2DACA; border-radius: 14px; padding: 16px 16px 8px; min-width: 0; }
.adk-rank-sub { margin: 2px 0 8px; font-size: 13px; color: var(--adesk-text-muted); }
.adk-rank-list { list-style: none; margin: 0; padding: 0; }
.adk-rank-list li { display: flex; align-items: center; gap: 12px; min-height: 44px; border-top: 1px solid #EEE7D8; font-size: 15px; }
.adk-rank-n { width: 24px; color: #6B6457; font-weight: 700; text-align: right; }
.adk-rank-list li:nth-child(-n+3) .adk-rank-n { color: var(--adesk-accent-text); }
.adk-rank-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adk-rank-name a { color: var(--adesk-primary); font-weight: 600; text-decoration: none; }
.adk-rank-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.adk-rank-v { font-weight: 700; color: var(--adesk-text); }
.adk-rank-v span { font-weight: 500; color: var(--adesk-text-muted); }
.adk-rank-empty { color: var(--adesk-text-muted); }

/* Barre de navigation du bas (téléphone et tablette) */
.adk-bottom {
    position: fixed; inset: auto 0 0 0; z-index: 30;
    display: flex; justify-content: space-around;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: var(--adesk-primary); border-top: 2px solid var(--adesk-accent);
}
.adk-bottom-item {
    flex: 1 1 0; min-width: 0; min-height: 52px; border: 0; background: none; font: inherit;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: #C9D1E0; font-size: 12px; line-height: 14px; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: 10px;
}
.adk-bottom-icon { width: 24px; height: 24px; padding: 2px 14px; box-sizing: content-box; border-radius: 999px; }
.adk-bottom-item[aria-current="page"] { color: #F6E7C4; }
.adk-bottom-item[aria-current="page"] .adk-bottom-icon { background: rgba(193, 145, 43, .3); color: #F2D78F; }
.adk-bottom-item:active .adk-bottom-icon { background: rgba(255, 255, 255, .12); }
.fi-main { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
/* Sur téléphone, la barre du haut ne portait que le bouton du menu, que la barre du bas offre déjà */
@media (max-width: 1023px) {
    .fi-topbar-ctn, .fi-topbar, .fi-layout-sidebar-toggle-btn-ctn { display: none; }
    .fi-main { padding-top: 16px; }
}
/* Menu latéral : le bas se fond quand la liste défile sous le bloc du compte */
.fi-sidebar-nav { mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
/* Salutation du tableau de bord plus lisible */
.adk-greet { color: var(--adesk-text); font-weight: 600; }
@media (max-width: 1023px) {
    .adk-greet { display: block; }
    .adk-sep { display: none; }
}
@media (min-width: 1024px) {
    .adk-bottom { display: none; }
    .fi-main { padding-bottom: 32px; }
}
/* Choix de la période des classements : cible tactile de 44 px */
.adk-head .adesk-seg button { min-height: 44px; }

/* ───────────── Couche commune : les éléments partagés de tous les écrans passent dans le monde « carte » ─────────────
   Chargée après le CSS en ligne de theme-styles, elle remplace l'ancien habillage (liserés de couleur, en-têtes
   de tableau bleu nuit pleins, cibles de 36 px) sans toucher aux vues. Voir DESIGN.md. */

/* Cartons : sections Filament, tableaux, cartes maison */
.fi-section, .fi-ta-ctn, .adesk-card {
    background: #FFFDF8 !important;
    border: 1px solid #E2DACA;
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(22, 35, 61, .06), 0 10px 24px -14px rgba(22, 35, 61, .28) !important;
}
.fi-ta-ctn { overflow: hidden; }
.fi-section-header-heading, .fi-ta-header-heading, .adesk-h2 { font-weight: 700; color: var(--adesk-primary); }
.fi-header-heading { color: var(--adesk-primary); font-weight: 700; }

/* Tableaux : en-tête papier clair, texte bleu nuit, lignes de 44 px */
.fi-ta-table > thead > tr, .adesk-tbl th { background: #F4EFE3 !important; }
.fi-ta-header-cell, .fi-ta-header-cell *, .adesk-tbl th { color: #2B3550 !important; }
.fi-ta-header-cell, .adesk-tbl th { font-size: 13px; font-weight: 700; border-bottom: 1px solid #DAD3C2; }
.fi-ta-table > tbody > tr > td, .adesk-tbl td { border-bottom: 1px solid #EEE7D8; }
.fi-ta-table > tbody > tr:hover > td { background: #FBF6EA; }
.adesk-tbl td { padding-block: 11px; }
.fi-ta-text, .fi-in-text, .adesk-tbl { font-variant-numeric: tabular-nums; }
.adesk-alert-row td:first-child { box-shadow: none; }
.adesk-alert-row td { background: #FBEDEB; }

/* Chiffres : la règle du chiffre aligné, en très gras bleu nuit */
.adesk-big { font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--adesk-primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.adesk-fund-label { font-weight: 600; }

/* Indicateurs et cartes de jour, d'activité : plus de liseré de couleur en haut, l'état est écrit */
.adesk-kpi, .adesk-kpi[data-type], .adesk-fund-card, .adesk-day, .adesk-act { border-top: 1px solid #E2DACA !important; }
.adesk-kpi { gap: 2px; }
.adesk-kpi[data-type="mutual"] .adesk-big { color: var(--adesk-primary); }
.adesk-day[data-state="no_meeting"] { background: #F7F3EA !important; box-shadow: none !important; }
.adesk-act[data-reminder="orange"] { border-color: #EBD7AE !important; border-top-color: #EBD7AE !important; }
.adesk-act[data-reminder="red"] { border-color: #F0C9C4 !important; border-top-color: #F0C9C4 !important; }
.adesk-bar { height: 10px; background: #EFE8D8; }
.adesk-bar > span { background: var(--adesk-primary); }
.adesk-bar > span.orange { background: #8A6414; }
.adesk-bar > span.red { background: #B3261E; }

/* Boutons : 44 px, 10 px de rayon ; le bouton secondaire devient discret (filet beige) */
.fi-btn { border-radius: 10px; min-height: 44px; }
.fi-btn.fi-outlined:not(.fi-color-danger):not(.fi-color-warning):not(.fi-color-success) { background: transparent; border-color: #CFC6B0; }
.fi-btn.fi-outlined:not(.fi-color-danger):not(.fi-color-warning):not(.fi-color-success):hover { background: #F3EEE2; }
.fi-fo-table-repeater-add .fi-btn, .fi-fo-repeater-add .fi-btn { background: transparent; border-color: #CFC6B0; }

/* Étiquettes : coins de 6 px, 12 px gras */
.fi-badge { border-radius: 6px; font-weight: 700; }

/* Cibles tactiles de 44 px : segments, onglets, liens d'action des lignes, liens maison */
.adesk-seg button, .fi-resource-list-records-page .fi-tabs-item, .fi-fo-toggle-buttons.fi-btn-group .fi-btn { min-height: 44px; }
.adesk-tab { min-height: 44px; }
.adesk-link, .adesk-back { min-height: 44px; display: inline-flex; align-items: center; }
.fi-ta-actions .fi-link, .fi-ta-actions .fi-ac-link-action { min-height: 44px; padding-inline: 6px; }
.adesk-row-actions { gap: 6px; }
.adesk-row-actions > * { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 6px; }

/* Onglets : actif souligné d'or, texte bleu nuit gras */
.adesk-tab.on, .fi-page-sub-navigation-tabs .fi-tabs-item.fi-active { border-bottom-width: 3px; }

/* Champs : 44 px, coins de 8 px, carton blanc */
.fi-input-wrp { border-radius: 8px; border-color: #D6CDB8; }
.adesk-select { border-color: #D6CDB8; }

/* ───────────── Tableaux en liste sur téléphone (`adk-stack`) ─────────────
   Sous 640 px, chaque ligne devient une fiche : la cellule `data-sm="title"` en tête, puis chaque cellule
   avec son libellé `data-label` ; `data-sm="hide"` masque, `data-sm="strong"` met en avant, `data-sm="actions"`
   aligne les actions en bas. Au-delà, le tableau reste un tableau. */
.adk-sm-only { display: none; }
@media (max-width: 639px) {
    table.adk-stack { min-width: 0 !important; display: block; }
    .adk-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .adk-stack tbody { display: block; }
    .adk-stack tr { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-bottom: 1px solid #EEE7D8; }
    .adk-stack td { display: block; padding: 3px 0 !important; border: 0 !important; background: none !important; text-align: right; min-height: 26px; overflow-wrap: anywhere; }
    .adk-stack td[data-label]::before { content: attr(data-label); float: left; margin-right: 12px; font-size: 13px; line-height: 22px; color: var(--adesk-text-muted); text-align: left; white-space: nowrap; }
    .adk-stack td[data-sm="hide"] { display: none; }
    .adk-stack td[data-sm="title"] { text-align: left; font-size: 16px; font-weight: 700; color: var(--adesk-text); margin-bottom: 4px; }
    .adk-stack td[data-sm="strong"] { font-weight: 800; color: var(--adesk-primary); font-size: 16px; }
    .adk-stack td[data-sm="actions"] { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; justify-content: flex-start; margin-top: 4px; text-align: left; }
    .adk-stack td[data-sm="actions"]::before { content: none; }
    .adk-stack td[data-sm="actions"] > * { display: inline-flex; }
    .adk-stack td[colspan] { text-align: left; }
    .adk-stack .adk-sm-only { display: inline; }
    .adk-muted-num { font-weight: 600; color: var(--adesk-text-muted); font-variant-numeric: tabular-nums; }
}

/* Écran Cotisations : cartes de caisse avec détail, fin de caisse à l'écart */
.adk-cartes-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)) !important; }
.adk-carte-forecast { font-size: 14px; color: var(--adesk-text-muted); }
.adk-carte-split { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #D8CFBB; font-size: 12px; color: var(--adesk-text-muted); }
.adk-carte-split > span { display: flex; flex-direction: column; }
.adk-carte-split strong { font-size: 14px; color: var(--adesk-text); }
.adk-carte[data-closed] { opacity: .8; }
.adk-carte[data-closed] .adk-carte-band { background: #5B6472; color: #FFFFFF; border-bottom-color: #5B6472; }
.adk-flag-quiet { background: #E7E1D4; color: #3A4252; }
.adk-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 8px; padding: 16px 18px; border: 1px dashed #D8CFBB; border-radius: 14px; }
.adk-end-text { margin: 2px 0 0; font-size: 14px; color: var(--adesk-text-muted); max-width: 60ch; }

/* Fiche membre : carte de membre et caisses tamponnées du membre */
.adk-membre { background: #FFFDF8; border: 1px solid #E2DACA; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(22, 35, 61, .06), 0 10px 24px -14px rgba(22, 35, 61, .28); }
.adk-membre .adk-band-note { font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.adk-membre-body { display: flex; align-items: center; gap: 16px; padding: 16px 18px 18px; flex-wrap: wrap; }
.adk-membre-photo { width: 72px !important; height: 72px !important; font-size: 22px !important; box-shadow: 0 0 0 3px #FFFDF8, 0 0 0 4px #C1912B; }
.adk-membre-text { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.adk-membre-contact { font-size: 14px; color: #4A4F5A; }
.adk-mfunds { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.adk-mfund { background: #FFFDF8; border: 1px solid #E2DACA; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.adk-mfund[data-late] { border-color: #F0C9C4; }
.adk-mfund-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.adk-mfund-name { font-size: 16px; font-weight: 800; color: var(--adesk-primary); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.adk-mfund-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.adk-mfund .adk-mfund-bar { margin: 0; }
.adk-mfund-figures { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px 14px; }
.adk-mfund-figures dt { font-size: 12px; color: var(--adesk-text-muted); }
.adk-mfund-figures dd { margin: 0; font-size: 15px; font-weight: 600; }
.adk-mfund-rest dd { font-weight: 800; color: var(--adesk-primary); }
.adk-mfund[data-late] .adk-mfund-rest dd { color: #B3261E; }
/* Partage du relevé d'un membre (M5-E14) */
.adk-share-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.adk-share-head .adk-h2 { min-height: 44px; }
.adk-share { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.adk-share-btn { gap: 8px; min-height: 44px; }
.adk-share-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.adk-share-links .adk-btn { min-height: 44px; }
@media (max-width: 639px) {
    .adk-share, .adk-share-btn { width: 100%; }
    .adk-share { align-items: stretch; }
    .adk-share-links .adk-btn { flex: 1 1 140px; }
}
@media (max-width: 639px) {
    /* La première cellule d'une ligne sert de titre de fiche quand la vue n'en désigne pas d'autre */
    .adk-stack tr > td:first-child:not([data-sm]) { text-align: left; font-size: 16px; font-weight: 700; color: var(--adesk-text); margin-bottom: 4px; }
    .adk-stack tr > td:first-child:not([data-sm])::before { content: none; }
    /* Titre de fiche : le titre sur sa ligne, ses précisions dessous en une ligne discrète */
    .adk-stack td[data-sm="title"] :is(.adesk-sub, .adesk-muted, small, span:not(.adk-sm-only):not(.fi-badge)),
    .adk-stack tr > td:first-child:not([data-sm]) :is(.adesk-sub, .adesk-muted, small) { display: block; font-size: 13px; font-weight: 400; color: var(--adesk-text-muted); }
    .adk-stack td[data-sm="title"] .adk-sm-only { display: inline !important; }
}
@media (max-width: 639px) { .adk-stack tr.adesk-alert-row { background: #FBEDEB; } }

/* ───────────── Corrections de la relecture du 26/11/2026 ───────────── */

/* Ancienne carte d'activité : mise en page gardée, sans liseré */
.adesk-fund-card { display: flex; flex-direction: column; gap: 4px; text-align: left; color: inherit; text-decoration: none; min-height: 44px; font: inherit; }
.adesk-fund-card:hover { box-shadow: 0 1px 2px rgba(22, 35, 61, .08), 0 16px 30px -16px rgba(22, 35, 61, .4) !important; }

/* Indicateurs : une seule bande de carton au lieu de tuiles de même poids (la thèse refuse les tuiles de chiffres).
   Les chiffres se partagent la largeur et passent à la ligne sans laisser de case vide ; filets fins entre eux. */
.adesk-kpis { display: flex !important; flex-wrap: wrap; gap: 1px !important; background: #E2DACA; border: 1px solid #E2DACA; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(22, 35, 61, .06), 0 10px 24px -14px rgba(22, 35, 61, .28); }
.adesk-kpis > .adesk-kpi { flex: 1 1 170px; min-width: 0; background: #FFFDF8 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 14px 18px; }
.adesk-kpis > .adesk-kpi:first-child .adesk-big { font-size: 30px; line-height: 36px; }
@media (max-width: 480px) {
    .adesk-kpis > .adesk-kpi { flex-basis: 150px; padding: 12px 14px; }
    .adesk-kpis .adesk-big, .adesk-kpis > .adesk-kpi:first-child .adesk-big { font-size: 21px; line-height: 26px; }
}

/* Tableaux Filament sur ordinateur : actions centrées sur la ligne */
.fi-ta-table > tbody > tr > td { vertical-align: middle; }

/* Tableaux Filament empilés sur téléphone : une fiche compacte par ligne (numéro, nom, statut, actions),
   sans libellé par champ ; les colonnes réservées à l'ordinateur restent cachées ; le tri empilé disparaît. */
@media (max-width: 639px) {
    .fi-ta-table-stacked-on-mobile tbody tr.fi-ta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 16px; border-bottom: 1px solid #EEE7D8; }
    .fi-ta-table-stacked-on-mobile tbody tr.fi-ta-row > td { display: block; padding: 0 !important; border: 0 !important; width: auto; }
    .fi-ta-table-stacked-on-mobile .fi-ta-cell-label { display: none !important; }
    .fi-ta-table-stacked-on-mobile td[class*="md:fi-visible"], .fi-ta-table-stacked-on-mobile td[class*="lg:fi-visible"] { display: none !important; }
    .fi-ta-table-stacked-on-mobile .fi-ta-cell .fi-ta-text, .fi-ta-table-stacked-on-mobile .fi-ta-col { padding: 0 !important; }
    .fi-ta-table-stacked-on-mobile td.fi-ta-cell-number .fi-ta-text-item { color: var(--adesk-text-muted); font-weight: 700; font-variant-numeric: tabular-nums; }
    .fi-ta-table-stacked-on-mobile td.fi-ta-cell-last-name { flex: 1 1 auto; min-width: 0; }
    .fi-ta-table-stacked-on-mobile td.fi-ta-cell-last-name .fi-ta-text-item { font-size: 16px; font-weight: 700; }
    .fi-ta-table-stacked-on-mobile tbody tr.fi-ta-row > td:last-child { flex-basis: 100%; }
    .fi-ta-table-stacked-on-mobile .fi-ta-actions { justify-content: flex-start !important; }
    .fi-ta-table-stacked-header-row, .fi-ta-table-stacked-sorting { display: none !important; }
    .fi-ta-header-toolbar { padding-block: 8px !important; }
    .fi-ta-header-toolbar > .fi-ta-actions:empty { display: none; }
}
@media (max-width: 639px) {
    /* Actions d'une fiche : une seule rangée, même quand la vue les empile sur ordinateur */
    .adk-stack td[data-sm="actions"] .adesk-row-actions { flex-direction: row !important; flex-wrap: wrap; gap: 0 14px !important; }
    .adk-stack td[data-sm="actions"] { white-space: normal !important; }
}

/* Relecture, second tour */
/* Liens d'action : icône et texte sur une ligne, centrés dans leur cible de 44 px */
.fi-ta-actions .fi-ac-link-action, .fi-ta-actions .fi-link { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 4px; }
@media (max-width: 639px) {
    /* Groupe d'actions de Filament sans bouton : plus de bande vide au-dessus de la recherche */
    .fi-ta-header-toolbar > .fi-ta-actions:not(:has(button, a)) { display: none; }
    .fi-ta-table-stacked-on-mobile tbody tr.fi-ta-row > td:last-child .fi-ta-actions { min-height: 0; }
    /* Titre de fiche : la première précision sous le titre, les suivantes sur la même ligne après « · » */
    .adk-stack tr > td:first-child .adesk-muted { display: inline !important; }
    .adk-stack tr > td:first-child .adesk-muted ~ br { display: none; }
    .adk-stack tr > td:first-child .adesk-muted ~ .adesk-muted::before { content: " · "; }
    /* Valeur à deux éléments (membre et numéro, type et n°) : une seule ligne */
    .adk-stack td[data-label]:not(:first-child) br { display: none; }
    .adk-stack td[data-label]:not(:first-child) > .adesk-muted { margin-left: 6px; }
    .adk-stack td { white-space: normal !important; }
}
.fi-ta-actions .fi-link .fi-link-label, .fi-ta-actions .fi-ac-link-action .fi-link-label { align-self: center !important; }
@media (max-width: 639px) {
    /* Troisième tour : mêmes règles de titre pour une cellule désignée titre qui n'est pas la première */
    .adk-stack td[data-sm="title"] .adesk-muted { display: inline !important; }
    .adk-stack td[data-sm="title"] .adesk-muted ~ br { display: none; }
    .adk-stack td[data-sm="title"] .adesk-muted ~ .adesk-muted::before { content: " · "; }
    /* Une précision (version, date, poids) ne se coupe pas au milieu */
    .adk-stack td[data-label]:not(:first-child) > span { white-space: nowrap; }
    /* Libellé aligné sur un lien de 44 px */
    .adk-stack td[data-label]:has(> .adesk-link)::before { line-height: 44px; }
}

/* Barème 2 × 2 (Paramètres › Finances) : trois colonnes à toutes les tailles, pour que chaque montant reste
   en face de son profil (sur téléphone, la grille de Filament passait à une colonne et séparait intitulés et montants) */
.adesk-bareme > .fi-sc { display: grid !important; grid-template-columns: 76px repeat(2, minmax(0, 1fr)) !important; gap: 10px 12px !important; align-items: center; }
.adesk-bareme > .fi-sc > * { grid-column: auto !important; min-width: 0; }
@media (max-width: 480px) { .adesk-bareme > .fi-sc { font-size: 13px; } }
.adk-mfund-title { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 8px; min-width: 0; }

/* Aide et FAQ (M12-E6) : recherche en tête, thèmes en pastilles, questions dépliables en cartons */
.adk-help { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.adk-help-search { background: #FFFDF8; border: 1px solid #E2DACA; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.adk-help-label { font-size: 15px; font-weight: 700; color: var(--adesk-primary); }
.adk-help-field { position: relative; }
.adk-help-icon { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--adesk-text-muted); pointer-events: none; }
.adk-help-input { width: 100%; min-height: 48px; border: 1px solid #CFC6B0; border-radius: 10px; background: #FFFFFF; padding: 0 14px 0 44px; font: inherit; font-size: 16px; color: var(--adesk-text); }
.adk-help-input:focus { outline: 2px solid var(--adesk-accent); outline-offset: 1px; border-color: var(--adesk-accent); }
.adk-help-count { margin: 0; font-size: 13px; color: var(--adesk-text-muted); }
.adk-help-themes { display: flex; flex-wrap: wrap; gap: 8px; }
.adk-help-themes[hidden] { display: none; }
.adk-help-theme { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid #E2DACA; border-radius: 999px; background: #F6F1E6; color: var(--adesk-primary); font-size: 13px; font-weight: 600; text-decoration: none; }
.adk-help-theme:hover { background: #EFE8D8; }
.adk-help-empty { margin: 0; padding: 14px 16px; border: 1px dashed #D8CFBB; border-radius: 14px; color: #4A4F5A; }
.adk-help-clear { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--adesk-primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.adk-help-category { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.adk-help-category[hidden], .adk-help-item[hidden], .adk-help-empty[hidden] { display: none; }
.adk-help-list { display: flex; flex-direction: column; gap: 8px; }
.adk-help-item { background: #FFFDF8; border: 1px solid #E2DACA; border-radius: 12px; scroll-margin-top: 16px; }
.adk-help-item[open] { border-color: #CFC6B0; box-shadow: 0 1px 2px rgba(22, 35, 61, .06), 0 10px 24px -16px rgba(22, 35, 61, .3); }
.adk-help-q { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px; font-size: 15px; line-height: 21px; font-weight: 700; color: var(--adesk-text); }
.adk-help-q::-webkit-details-marker { display: none; }
.adk-help-q::after { content: "+"; flex: none; width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #F1EBDD; color: var(--adesk-primary); font-weight: 800; }
.adk-help-item[open] > .adk-help-q::after { content: "−"; background: var(--adesk-primary); color: #FFFFFF; }
.adk-help-q:focus-visible { outline: 2px solid var(--adesk-accent); outline-offset: 2px; border-radius: 12px; }
.adk-help-a { padding: 0 16px 14px; font-size: 15px; line-height: 23px; color: #343B48; border-top: 1px dashed #E2DACA; }
.adk-help-a p, .adk-help-a ol, .adk-help-a ul { margin: 10px 0 0; }
.adk-help-a ol, .adk-help-a ul { padding-left: 20px; }
.adk-help-a ol { list-style: decimal; }
.adk-help-a ul { list-style: disc; }
.adk-help-a li + li { margin-top: 4px; }
.adk-help-a strong { color: var(--adesk-primary); }
.adk-help-go { margin-top: 12px !important; }
.adk-help-more { margin: 0; font-size: 13px; color: var(--adesk-text-muted); }
