/* =============================================================================
   AURYVO Business — pages des gains de temps, dans la DA (blanc, noir, bleu nuit en sombre,
   rouge pour l'alerte, vert pour le seul « payé / fait », contour pointillé pour l'inachevé) :
   À payer = talons à détacher + bordereau de virements · Notes de frais = enveloppes par salarié ·
   Paie = feuille de variables du mois.
   ============================================================================= */
.field[hidden], .ld-reglement[hidden] { display: none !important; }

/* ---------- Lecture d'une facture : règlement ---------- */
.ld-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ld-opt { position: relative; display: block; cursor: pointer; }
.ld-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ld-opt span { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2);
  font-weight: 600; font-size: 13.5px; transition: border-color .2s, background .2s; }
.ld-opt small { font-weight: 500; font-size: 11.5px; color: var(--ink-3); }
.ld-opt input:checked + span { border-color: var(--ink); background: var(--card-2); }
.ld-opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- À payer : talons + bordereau ---------- */
.ph-apayer { margin-bottom: 18px; }
.ap-alerte { margin-bottom: 14px; }
.ap-cadre { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.ap-talons { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ap-deposer { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--r-lg); cursor: pointer;
  border: 1.5px dashed var(--line-2); color: var(--ink-2); transition: border-color .2s, background .2s, color .2s; }
.ap-deposer:hover, .ap-deposer.survol { border-color: var(--ink-3); color: var(--ink); background: var(--card-2); }
.ap-deposer .scan-ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--black); color: var(--on-black); display: grid; place-items: center; }
.ap-deposer-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-deposer-t b { font-size: 15px; color: var(--ink); }
.ap-deposer.occupe { pointer-events: none; opacity: .8; }
.ap-groupe { display: flex; flex-direction: column; gap: 8px; }
.ap-g-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 4px 2px; font-size: 13px; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase; color: var(--ink-2); }
.ap-groupe.retard .ap-g-titre > span:first-child { color: var(--danger); }

.ap-talon { --perfo: 52px; position: relative; display: grid; grid-template-columns: 28px minmax(0, 1.4fr) minmax(0, 1fr) 130px 112px auto;
  align-items: center; gap: 14px; padding: 14px 14px 14px 12px; border-radius: var(--r-md); background: var(--card);
  border: 1px solid var(--panel-line); box-shadow: var(--sh-card); transition: transform .2s var(--spring), box-shadow .2s; }
/* la perforation du talon : pointillés et deux encoches */
.ap-talon::before { content: ""; position: absolute; left: var(--perfo); top: 10px; bottom: 10px; border-left: 1.5px dashed var(--line-2); }
.ap-talon::after { content: ""; position: absolute; left: calc(var(--perfo) - 7px); top: -7px; width: 14px; height: calc(100% + 14px); pointer-events: none;
  background: radial-gradient(circle at 7px 0, var(--bg) 6px, transparent 6.5px), radial-gradient(circle at 7px 100%, var(--bg) 6px, transparent 6.5px); }
.ap-talon:hover { transform: translateY(-1px); }
.ap-talon.choisi { box-shadow: inset 0 0 0 1.5px var(--ink), var(--sh-card); }
.ap-talon.retard { box-shadow: inset 3px 0 0 var(--danger), var(--sh-card); }
.ap-talon.retard.choisi { box-shadow: inset 3px 0 0 var(--danger), inset 0 0 0 1.5px var(--ink), var(--sh-card); }
.ap-talon.retard .ap-quand b { color: var(--danger); }
.ap-talon.programme { background: var(--card-2); box-shadow: none; }
.ap-talon.programme .ap-mt { color: var(--ink-2); }
.ap-coche { position: relative; width: 24px; height: 24px; display: grid; place-items: center; cursor: pointer; }
.ap-coche input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ap-coche span { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink-3); transition: background .2s, border-color .2s, box-shadow .2s; }
.ap-coche input:checked + span { background: var(--black); border-color: var(--black); box-shadow: inset 0 0 0 5px var(--card); }
.ap-coche input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.ap-coche input:disabled + span { border-style: dashed; opacity: .5; }
.ap-coche.fait { border-radius: 50%; background: var(--green-soft); color: var(--green); }
.ap-qui, .ap-quand { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-left: 4px; }
.ap-qui b { overflow-wrap: anywhere; font-size: 14.5px; }
.ap-quand b { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.ap-iban { min-width: 0; color: var(--ink-2); }
.ap-completer { border: 0; cursor: pointer; font: 700 12px var(--text); color: var(--ink); padding: 6px 10px; border-radius: var(--pill);
  background: var(--inacheve-motif), var(--card-2); outline: var(--inacheve-contour); outline-offset: var(--inacheve-decal); }
.ap-mt { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; text-align: right; white-space: nowrap; }
.ap-actions { display: flex; gap: 2px; }
.ap-actions .icon-btn { width: 32px; height: 32px; }
.ap-vide { display: flex; flex-direction: column; gap: 4px; padding: 26px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--panel-line); }

/* le bordereau : une fiche graphite qui se remplit */
.ap-bordereau { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r-xl);
  background: var(--black); color: var(--on-black); box-shadow: var(--sh-float); }
.ap-bordereau .faint, .ap-bordereau .xs { color: color-mix(in srgb, var(--on-black) 62%, transparent); }
.ap-b-tete { display: flex; justify-content: space-between; gap: 8px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.ap-b-lignes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow: auto; }
.ap-b-lignes li { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; }
.ap-b-lignes li span:first-child { overflow-wrap: anywhere; }
.ap-b-lignes li::after { content: ""; order: 1; flex: 1; border-bottom: 1.5px dotted color-mix(in srgb, var(--on-black) 30%, transparent); }
.ap-b-lignes li .num { order: 2; font-weight: 600; }
.ap-b-lignes li.ap-b-vide { color: color-mix(in srgb, var(--on-black) 55%, transparent); }
.ap-b-lignes li.ap-b-vide::after { display: none; }
.ap-b-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1.5px dashed color-mix(in srgb, var(--on-black) 30%, transparent); }
.ap-b-total b { font-family: var(--display); font-size: 34px; font-weight: 500; letter-spacing: -.04em; }
.ap-bordereau .field label { color: color-mix(in srgb, var(--on-black) 70%, transparent); }
.ap-bordereau .input { background: color-mix(in srgb, var(--on-black) 10%, transparent); color: var(--on-black); border-color: transparent; color-scheme: dark; }
:root:not([data-theme="light"]) .ap-bordereau .input { color-scheme: light; }
.ap-preparer { background: var(--on-black); color: var(--black); justify-content: center; }
.ap-preparer:disabled { opacity: .45; }
.ap-b-pied { margin: 0; line-height: 1.45; }
.ap-etapes { margin: 6px 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

.ap-lots { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; }
.ap-lot { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--panel-line); }
.ap-lot > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.ap-lot.annule { opacity: .55; }
.ap-lot-act { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ap-etat { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--pill); white-space: nowrap;
  background: var(--inacheve-motif), var(--card-2); outline: var(--inacheve-contour); outline-offset: var(--inacheve-decal); }
.ap-etat.paye { background: var(--green-soft); color: var(--green); }
.ap-etat.annule { background: var(--card-2); color: var(--ink-3); }

@media (max-width: 820px) {
  .ap-cadre { grid-template-columns: 1fr; }
  .ap-talon { grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-areas: "c qui mt" "c quand quand" "c iban act";
    gap: 6px 10px; padding: 14px 12px; }
  .ap-talon::before, .ap-talon::after { display: none; }
  .ap-talon > * { min-width: 0; }
  .ap-coche { grid-area: c; align-self: start; margin-top: 1px; }
  .ap-qui { grid-area: qui; padding-left: 0; }
  .ap-qui .xs { overflow-wrap: anywhere; }
  .ap-quand { grid-area: quand; flex-direction: row; align-items: baseline; gap: 8px; padding-left: 0; }
  .ap-iban { grid-area: iban; align-self: center; }
  .ap-mt { grid-area: mt; font-size: 17px; align-self: start; }
  .ap-actions { grid-area: act; justify-content: flex-end; }
  /* téléphone : le bordereau devient une barre « Total + Préparer » qui n'apparaît qu'une fois une facture cochée */
  .ap-bordereau { position: sticky; top: auto; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 5; padding: 12px 12px 12px 18px;
    border-radius: var(--pill); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
  .ap-bordereau.vide { display: none; }
  .ap-b-tete, .ap-b-lignes, .ap-b-pied, .ap-bordereau .field, .ap-bordereau > p { display: none; }
  .ap-b-total { padding-top: 0; border-top: 0; flex-direction: column; align-items: flex-start; gap: 0; }
  .ap-b-total b { font-size: 22px; white-space: nowrap; }
  .ap-b-total .xs { white-space: nowrap; }
  .ap-long { display: none; }
  .ap-preparer { border-radius: var(--pill); }
  .ap-lot { grid-template-columns: 1fr; gap: 8px; }
  .ap-lot-act { justify-content: flex-start; }
  .ld-choix { grid-template-columns: 1fr; }
}

/* ---------- Notes de frais : une enveloppe par salarié ---------- */
.ph-nf { margin-bottom: 18px; }
.nf-enveloppes { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.nf-env { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--panel-line);
  box-shadow: var(--sh-card); overflow: hidden; }
/* le rabat de l'enveloppe : noir (bleu nuit en sombre), bord bas arrondi */
.nf-rabat { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px 26px; background: var(--black); color: var(--on-black);
  border-radius: 0 0 50% 50% / 0 0 18px 18px; }   /* rabat arrondi : jamais d'angle vif */
.nf-rabat > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nf-rabat b { font-size: 15.5px; }
.nf-rabat .xs { color: color-mix(in srgb, var(--on-black) 62%, transparent); }
.nf-env-total { font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: -.03em; white-space: nowrap; }
.nf-env.a-valider { box-shadow: inset 0 3px 0 var(--ink), var(--sh-card); }
.nf-lignes { display: flex; flex-direction: column; padding: 4px 8px; }
.nf-ligne { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 8px; border-bottom: 1px dashed var(--line-2); }
.nf-ligne:last-child { border-bottom: 0; }
.nf-ticket { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--card-2); color: var(--ink-2); }
a.nf-ticket:hover { color: var(--ink); background: var(--card-3); }
.nf-ticket.manque { background: var(--inacheve-motif), var(--card); outline: var(--inacheve-contour); outline-offset: var(--inacheve-decal); }
.nf-quoi { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nf-sous { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 3px; }
.nf-sous .xs { overflow-wrap: anywhere; }
.nf-quoi > span:first-child { overflow-wrap: anywhere; font-size: 13.5px; font-weight: 600; }
.nf-mt { font-size: 14px; white-space: nowrap; text-align: right; }
.nf-act { display: flex; gap: 2px; justify-content: flex-end; }
.nf-act .icon-btn { width: 30px; height: 30px; }
/* les tampons d'état */
.nf-tampon { flex-shrink: 0; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; white-space: nowrap;
  border: 1.5px solid currentColor; color: var(--ink-2); }
.nf-tampon.soumise { color: var(--ink); background: var(--card-3); border-color: transparent; }
.nf-tampon.validee, .nf-tampon.a_rembourser { color: var(--ink); border-color: transparent;
  background: var(--inacheve-motif), var(--card-2); outline: var(--inacheve-contour); outline-offset: var(--inacheve-decal); }
.nf-tampon.remboursee { color: var(--green); background: var(--green-soft); border-color: transparent; }
.nf-tampon.refusee { color: var(--ink-3); }
.nf-ligne.refusee .nf-mt { text-decoration: line-through; color: var(--ink-3); }
.nf-env-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.nf-sans-iban { border: 0; cursor: pointer; font: 700 12px var(--text); color: var(--ink); padding: 6px 10px; border-radius: var(--pill);
  background: var(--inacheve-motif), var(--card-2); outline: var(--inacheve-contour); outline-offset: var(--inacheve-decal); }
.nf-sans-iban:disabled { cursor: default; }
.nf-rembourser { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 16px 20px; border-radius: var(--r-xl);
  background: var(--black); color: var(--on-black); }
.nf-rembourser > div { display: flex; flex-direction: column; margin-right: auto; }
.nf-rembourser b { font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -.03em; }
.nf-rembourser .faint { color: color-mix(in srgb, var(--on-black) 62%, transparent); }
.nf-rembourser .btn-primary { background: var(--on-black); color: var(--black); }
.nf-rembourser .btn-ghost { color: var(--on-black); }
.nf-histo { margin-top: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--panel-line); padding: 6px 8px; }
.nf-histo summary { cursor: pointer; padding: 10px 10px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.nf-regle { margin-top: 16px; }
.nf-vide { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--panel-line); }
.nf-vide-env { width: 64px; height: 44px; flex-shrink: 0; border-radius: 8px; border: 1.5px dashed var(--line-2);
  background: linear-gradient(to bottom right, transparent calc(50% - 1px), var(--line-2) 50%, transparent calc(50% + 1px)) left / 50% 60% no-repeat,
              linear-gradient(to bottom left, transparent calc(50% - 1px), var(--line-2) 50%, transparent calc(50% + 1px)) right / 50% 60% no-repeat; }
.nf-seg { margin-bottom: 14px; }
.nf-estim { padding: 12px 14px; border-radius: var(--r-sm); background: var(--card-2); font-size: 13.5px; }

/* espace du salarié : ni rail, ni navigation, seulement ses notes */
.espace-salarie .rail, .espace-salarie #nav, .espace-salarie #tabbar, .espace-salarie .hdr-right, .espace-salarie #demo-banner { display: none !important; }
.espace-salarie .shell { grid-template-columns: minmax(0, 1fr); }   /* pas de barre latérale : la page prend toute la largeur */
.espace-salarie .content { width: 100%; max-width: 760px; margin: 0 auto; }
.nf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.nf-photo, .nf-trajet { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r-xl); cursor: pointer; text-align: left; font: inherit; }
.nf-photo { background: var(--black); color: var(--on-black); }
.nf-trajet { background: var(--card); color: var(--ink); border: 1px solid var(--panel-line); box-shadow: var(--sh-card); }
.nf-photo .scan-ico, .nf-trajet .scan-ico { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; }
.nf-photo .scan-ico { background: var(--on-black); color: var(--black); }
.nf-trajet .scan-ico { background: var(--black); color: var(--on-black); }
.nf-photo-t { display: flex; flex-direction: column; gap: 2px; }
.nf-photo-t b { font-size: 16px; }
.nf-photo-t .xs { opacity: .65; }
.nf-photo.occupe { opacity: .8; pointer-events: none; }
.nf-iban { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-bottom: 14px; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--panel-line); }
.nf-iban .btn { flex-shrink: 0; white-space: nowrap; }
.nf-miennes { background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--panel-line); }

@media (max-width: 820px) {
  .nf-enveloppes { grid-template-columns: 1fr; }
  .nf-ligne { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "t q mt" "t q act"; gap: 2px 10px; }
  .nf-ticket { grid-area: t; align-self: start; } .nf-quoi { grid-area: q; } .nf-mt { grid-area: mt; } .nf-act { grid-area: act; }
  .nf-actions { grid-template-columns: 1fr; }
  .nf-rembourser .btn-primary { flex: 1; justify-content: center; }
  .espace-salarie .main { padding-bottom: 40px; }
}

/* ---------- Paie : la feuille de variables du mois ---------- */
.ph-paie { margin-bottom: 18px; }
.py-tete { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.py-mois { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--panel-line); }
.py-mois b { min-width: 150px; text-align: center; font-size: 15px; }
.py-suiv svg { transform: scaleX(-1); }
.py-cout { display: flex; flex-direction: column; margin-right: auto; }
.py-cout b { font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.btn.disabled { pointer-events: none; opacity: .45; }
.py-feuille { overflow-x: auto; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--panel-line); box-shadow: var(--sh-card); }
.py-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.py-table thead th { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.py-table thead th:first-child { padding-left: 18px; }
.py-table tbody tr + tr { border-top: 1px solid var(--line); }
.py-table tbody th { text-align: left; padding: 10px 8px 10px 14px; font-weight: 400; }
.py-nom { display: flex; flex-direction: column; gap: 2px; border: 0; background: none; padding: 4px; text-align: left; cursor: pointer; font: inherit; color: inherit; border-radius: 8px; }
.py-nom:hover b { text-decoration: underline; text-underline-offset: 3px; }
.py-c { padding: 6px 4px; transition: background .4s; }
.py-c.enregistre { background: var(--green-soft); }
/* chaque case est une cellule de grille : vide = trait de crayon, remplie = chiffre noir */
.py-saisie { display: flex; align-items: baseline; gap: 3px; width: 92px; padding: 7px 9px; border-radius: 10px; background: var(--field); border: 1px solid transparent; }
.py-saisie:focus-within { border-color: var(--ink); }
.py-saisie input, .py-texte { width: 100%; min-width: 0; border: 0; background: none; color: var(--ink); font: 600 14px var(--text); font-variant-numeric: tabular-nums; outline: none; }
.py-saisie input::placeholder, .py-texte::placeholder { color: var(--ink-3); font-weight: 400; }
.py-saisie span { font-size: 11px; color: var(--ink-3); }
.py-saisie input::-webkit-outer-spin-button, .py-saisie input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.py-saisie input { -moz-appearance: textfield; }
.py-com .py-texte { width: 170px; padding: 7px 9px; border-radius: 10px; background: var(--field); border: 1px solid transparent; }
.py-com .py-texte:focus { border-color: var(--ink); }
.py-est { text-align: right; padding: 10px 18px 10px 8px; white-space: nowrap; }
td.py-est { display: table-cell; }
td.py-est b, td.py-est span { display: block; }
td.py-est b { font-size: 15px; }
.py-vide { padding: 26px; border-radius: var(--r-lg); background: var(--inacheve-motif), var(--card); outline: var(--inacheve-contour); outline-offset: var(--inacheve-decal); }
.py-bas { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.py-note { margin-top: 14px; max-width: 820px; line-height: 1.5; }
.so-liste { display: flex; flex-direction: column; }
.so-ligne { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px dashed var(--line-2); }
.so-ligne:last-child { border-bottom: 0; }
.so-ligne.inactive { opacity: .5; }
.so-cat { font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); }
.so-lib { display: flex; flex-direction: column; min-width: 0; }

@media (max-width: 820px) {
  .py-tete { gap: 12px; }
  .py-tete .btn { width: 100%; justify-content: center; }
  .py-cout { margin-right: 0; }
  .py-feuille { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .py-table { min-width: 0; }
  .py-table tbody th, .py-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); min-width: 128px; box-shadow: 1px 0 0 var(--line-2); }
  .py-saisie { width: 78px; }
  .so-ligne { grid-template-columns: minmax(0, 1fr) auto auto; }
  .so-cat { display: none; }
}

/* ---------- Banque : répartir un encaissement ---------- */
.vt-liste { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; max-height: 46vh; overflow: auto; }
.vt-ligne { display: grid; grid-template-columns: 22px minmax(0, 1fr) 150px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--card-2); cursor: pointer; }
.vt-ligne:has(input[type=checkbox]:checked) { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--card); }
.vt-qui { display: flex; flex-direction: column; min-width: 0; }
.vt-mt { display: flex; align-items: center; gap: 6px; }
.vt-mt .input { text-align: right; }
.vt-bilan { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px dashed var(--line-2); font-size: 13.5px; }
.vt-bilan b { font-size: 16px; margin-left: 6px; }
.vt-bilan.depasse { border-color: var(--danger); color: var(--danger); }
@media (max-width: 820px) {
  .vt-ligne { grid-template-columns: 22px minmax(0, 1fr); }
  .vt-mt { grid-column: 2; }
}
.ap-iban-modif { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--danger); }

/* ---------- Invitations envoyées par e-mail ---------- */
.inv-attente { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.inv-qui { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.inv-attente:last-child { border-bottom: 0; }
.inv-act { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 820px) { .inv-attente { flex-direction: column; align-items: stretch; } .inv-act { justify-content: flex-start; } }
