/* Refonte D2 : l'ensemble foncier (src/d2-ensemble.js) : sa fiche dans la fiche de droite, la barre « Ajouter à l'ensemble »,
 * la liste de l'onglet Sélection, le menu Rapport, et les parties du rapport d'ensemble. Jetons : src/jetons.css (.jt).
 */
.d2-fiche.d2-ens-on > [data-corps] { display: none; }
.d2-fiche:not(.d2-ens-on) > [data-ens-corps] { display: none; }
.d2-fiche.d2-ens-on .d2-ens-barre { display: none; }
.d2-ens-titre { grid-template-columns: 1fr; }
.d2-ens-titre .idu { line-height: 1.4; }
/* la barre de la fiche d'une parcelle */
.d2-ens-barre { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--filet); font-size: var(--t-12); }
.d2-ens-barre[hidden] { display: none; }
.d2-ens-aj { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 9px !important; border-radius: var(--r-bouton); background: var(--champ) !important; color: var(--encre) !important; font-size: var(--t-12) !important; font-weight: 500; white-space: nowrap; }
.d2-ens-aj:hover { background: var(--actif) !important; }
.d2-ens-aj[aria-pressed="true"] { background: transparent !important; color: var(--attenue) !important; font-weight: 400; padding-left: 0 !important; }
.d2-ens-n { color: var(--attenue); font-variant-numeric: tabular-nums; white-space: nowrap; }
.d2-ens-barre .d2-lien { margin-left: auto; font-size: var(--t-12) !important; color: var(--encre) !important; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.d2-ens-t { border-bottom: 0; padding: 8px 0 0; }
html.d2-tel .d2-ens-b, html.d2-tel .d2-bureau-seul, html.d2-tel .d2-fiche [data-ens-bureau] { display: none !important; }
/* la liste des parcelles de l'ensemble (onglet Parcelles) */
.d2-ens-liste { list-style: none; margin: 0; padding: 0; font-size: var(--t-12); font-variant-numeric: tabular-nums; }
.d2-ens-liste li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 26px; align-items: center; column-gap: 10px; min-height: 44px; border-bottom: 1px solid var(--filet); }
.d2-ens-p { text-align: left; min-width: 0; padding: 6px 0 !important; cursor: pointer; }
.d2-ens-p b { display: block; font-size: var(--t-13); font-weight: 500; color: var(--encre); }
.d2-ens-p span { display: block; color: var(--attenue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d2-ens-p:hover b { text-decoration: underline; text-underline-offset: 2px; }
.d2-ens-liste .m2 { color: var(--texte); text-align: right; white-space: nowrap; }
.d2-ens-liste .est { color: var(--attenue); text-align: right; white-space: nowrap; }
.d2-ens-liste .d2-btn-ic { width: 26px; height: 26px; }
.d2-ens-liste li.tot { min-height: 38px; border-bottom: 0; color: var(--encre); }
.d2-ens-liste li.tot b, .d2-ens-liste li.tot .m2 { font-weight: 500; color: var(--encre); }
/* l'onglet Sélection du panneau */
.d2-sel-liste { list-style: none; margin: 0; padding: 0; }
.d2-sel-liste li { display: grid; grid-template-columns: minmax(0, 1fr) auto 26px; align-items: center; column-gap: 8px; min-height: 38px; padding: 0 0 0 6px; font-size: var(--t-13); }
.d2-sel-liste li + li { border-top: 1px solid var(--filet); }
.d2-sel-p { display: flex; align-items: baseline; gap: 8px; min-width: 0; text-align: left; cursor: pointer; color: var(--encre) !important; }
.d2-sel-p b { font-weight: 500; white-space: nowrap; }
.d2-sel-p span { font-size: var(--t-12); color: var(--attenue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d2-sel-liste .m2 { font-size: var(--t-12); color: var(--texte); font-variant-numeric: tabular-nums; white-space: nowrap; }
.d2-sel-liste .d2-btn-ic { width: 26px; height: 26px; }
.d2-sel-act { display: flex; gap: 6px; margin: 8px 6px 0; }
/* le menu Rapport de l'ensemble */
.d2-ens-menu { max-width: 290px; }
.d2-menu-t { font-size: var(--t-11); font-weight: 500; color: var(--attenue); padding: 4px 8px 4px; }
.d2-ens-menu .d2-mi2 { min-height: 44px; align-items: center; }
.d2-ens-menu .d2-mi2 > span { display: flex; flex-direction: column; gap: 1px; }
.d2-ens-menu .d2-mi2 small { font-size: var(--t-11); color: var(--attenue); }
.d2-menu-note { font-size: var(--t-11); color: var(--attenue); padding: 2px 8px 6px; line-height: 1.4; }
/* le rapport d'ensemble : une partie par parcelle */
.rs-partie { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--encre, #1d1d1f); }
.rs-partie-titre { margin: 4px 0 14px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.rs-partie-titre small { display: block; margin-top: 3px; font-size: var(--t-12); font-weight: 400; letter-spacing: 0; color: var(--encre-3, #6e6e73); }
