/* HARELS Admin — finitions écran par écran, lot « direction » (02.12.2026 au soir). Chargé après systeme.css. */

/* ---------- Commun : en-têtes, pastilles de date, chiffres ---------- */
.harels-app .ui-page-head>div>h2{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2)}
.harels-app .ui-page-head>div>h2 .badge{font-size:12px;letter-spacing:0}
.harels-app .ui-page-head .ergo-maj{margin-top:var(--sp-1);font-size:12px;color:var(--s-text-3)}
.harels-app .dir-when{min-height:44px;justify-content:center;flex:0 0 74px}
.harels-app .dir-when.nodate{background:var(--s-surface);color:var(--s-text-2);box-shadow:inset 0 0 0 1px var(--s-border-2)}
.harels-app .dir-when.nodate>b{font-size:12px;font-weight:600}
.harels-app .acts-case{display:flex;flex-direction:column;justify-content:flex-start;gap:2px;min-width:0;padding:var(--sp-3);border-radius:var(--r-s);background:var(--s-surface-2)}
.harels-app .acts-case>small{font-size:12px;color:var(--s-text-2);line-height:1.3}
.harels-app .acts-case>strong{font-size:16px;line-height:1.3;color:var(--s-head);font-variant-numeric:tabular-nums;overflow-wrap:normal;word-break:normal}
.harels-app .acts-case>em{font-style:normal;font-size:12px;line-height:1.35;color:var(--s-text-2)}
.harels-app .acts-chiffres{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));align-items:stretch}
.harels-app .acts-listes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-4);padding:0 var(--sp-4) var(--sp-3)}
.harels-app .acts-listes>div{min-width:0}
.harels-app .acts-listes h4,.harels-app .acts-listes .dir-sub{padding-left:0;padding-right:0}
.harels-app .acts-listes .dir-todo li>div,.harels-app .acts-listes .dir-todo li>a{padding-left:0;padding-right:0}
.harels-app .acts-chiffres:has(> :only-child){grid-template-columns:minmax(0,260px)}
.harels-app .ui-empty .btn{margin-top:var(--sp-3)}

/* ---------- Accueil (Direction et secrétariat) ---------- */
body[data-route="dashboard"] .content{display:flex;flex-direction:column}
body[data-route="dashboard"] .content>.ergo-rapide{order:1}
body[data-route="dashboard"] .content>.dir{order:1;display:contents}
body[data-route="dashboard"] .content>.dir>*{margin-bottom:18px}
body[data-route="dashboard"] .content>.dir>.dir-hello{order:0}
body[data-route="dashboard"] .content>.erp-heading{order:0}
body[data-route="dashboard"] .content>.erp-stat-strip,body[data-route="dashboard"] .content>.ui-operations-grid,body[data-route="dashboard"] .content>.erp-modules,body[data-route="dashboard"] .content>.ergo-ava-bureau,body[data-route="dashboard"] .content>.app-footer{order:2}
body[data-route="dashboard"] .dir-date{text-transform:none}
body[data-route="dashboard"] .dir-grid{align-items:start}
body[data-route="dashboard"] .dir-jobs-card .dir-jobs{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
body[data-route="dashboard"] .dir-job{height:100%}
@media (min-width:761px){body[data-route="dashboard"] .dir-job>strong{min-height:calc(2 * 1.3em)}}
body[data-route="dashboard"] .dir-job-money{margin-top:auto}
body[data-route="dashboard"] .dir-figure>small{font-weight:400}
body[data-route="dashboard"] .dir-ava-off{position:static;margin:0;border-bottom:1px solid var(--s-border)}
body[data-route="dashboard"] .ava-msg{overflow-wrap:break-word;word-break:normal}
body[data-route="dashboard"] .fo-home{margin:0 0 var(--sp-4)}
body[data-route="dashboard"] .ergo-ava-bureau .dir-ava{max-width:none}
body[data-route="dashboard"] .ergo-ava-bureau{margin-top:var(--sp-4)}

/* ---------- Vue du groupe et fiches société ---------- */
body[data-route="groupe"] .grp-carte-pied,body[data-route="groupe"] .grp-carte-pied{overflow-wrap:normal}
body[data-route="groupe"] .grp-fiche{grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);align-items:start}
body[data-route="groupe"] .grp-fiche-main,body[data-route="groupe"] .grp-fiche-side{display:flex;flex-direction:column;gap:var(--sp-4);min-width:0}
body[data-route="groupe"] .grp-fiche .dir-card>header{min-height:56px}
body[data-route="groupe"] .grp-actions li{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
body[data-route="groupe"] .grp-actions li>small,body[data-route="groupe"] .grp-actions li>a+small{font-size:12px;color:var(--s-text-2)}
body[data-route="groupe"] .grp-actions li>small.grp-retard{color:var(--s-danger);font-weight:600}
body[data-route="groupe"] .grp-ajout{display:flex;gap:var(--sp-2);flex-wrap:wrap;align-items:center}
body[data-route="groupe"] .grp-ajout input:not([type=hidden]):not([type=file]){flex:1 1 200px;min-width:0}
body[data-route="groupe"] input[type=file]{max-width:100%;font-size:13px}
body[data-route="groupe"] .grp-notes-form textarea{width:100%;min-height:96px}
body[data-route="groupe"] .grp-notes-form .form-actions{border-top:0;padding-top:0;margin-top:var(--sp-2)}

/* ---------- Boutiques ---------- */
body[data-route="boutiques"] .grp-boutiques,body[data-route="boutiques"] .ui-filter,body[data-route="boutiques"] .table-filter{width:100%;max-width:none;box-sizing:border-box}
body:is([data-route="boutiques"],[data-route^="bureau_"]) .content>.ergo-filtre{margin-left:0;margin-right:0}
body:is([data-route="boutiques"],[data-route^="bureau_"]) .content>.ergo-filtre input{flex:1 1 auto;max-width:none;width:100%}
body[data-route="boutiques"] .grp-muet{color:var(--s-text-3)}
body[data-route="boutiques"]:has(.grp-boutique) .grp-kpis{margin-top:var(--sp-4)}
body[data-route="boutiques"]:has(.grp-boutique) .grp-boutique .dir-card>header+*{margin-top:var(--sp-4)}
body[data-route="boutiques"]:has(.grp-boutique) .grp-ruptures li{display:flex;justify-content:space-between;align-items:baseline;gap:var(--sp-3);flex-wrap:nowrap}
body[data-route="boutiques"]:has(.grp-boutique) .grp-ruptures li>span{min-width:0}
body[data-route="boutiques"]:has(.grp-boutique) .grp-ruptures li>small{flex:none;white-space:nowrap}
body[data-route="boutiques"]:has(.grp-boutique) .grp-plus-lien{margin:var(--sp-2) 18px 0;font-size:13px;color:var(--s-text-2)}
body[data-route="boutiques"]:has(.grp-boutique) .grp-aide{max-width:640px;font-size:13px;color:var(--s-text-2);line-height:1.5}

/* ---------- Activités ---------- */
body[data-route="activite"] .ergo-act-tete{align-items:flex-start}
body[data-route="activite"] .ergo-act-actions{display:flex;gap:var(--sp-2);flex-wrap:wrap}
body[data-route="activite"] .ergo-act-actions .btn{min-height:40px;white-space:nowrap}
body[data-route="activite"] .ergo-chiffres{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr))!important;gap:var(--sp-3);margin:0 0 var(--sp-4)}
body[data-route="activite"] .ergo-chiffres .acts-case{background:var(--s-surface);border:1px solid var(--s-border);box-shadow:var(--sh-1)}
body[data-route="activite"] .ergo-act-grille{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-4);align-items:start;margin-top:var(--sp-4)}
body[data-route="activite"] .ergo-act-grille>.ergo-act-docs{grid-column:1 / -1}
body[data-route="activite"] .ergo-act-grille .ui-empty{margin:var(--sp-4)}
body[data-route="activite"] .ergo-li,body[data-route="activite"] .dir-todo li>a{padding-left:var(--sp-4);padding-right:var(--sp-4)}
body[data-route="activite"] .ergo-docs .badge{flex:none;width:auto}
body[data-route="activite"] .ergo-docs-liens{margin:var(--sp-2) var(--sp-4) var(--sp-3);font-size:13px}
body[data-route="activite"] .acts-body,body[data-route="activite"] .dir-card .dir-card{margin:var(--sp-3) var(--sp-4)}

/* ---------- Rôles et accès ---------- */
body[data-route="roles"] .grp-roles{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:var(--sp-4);margin:0 0 var(--sp-6)}
body[data-route="roles"] .grp-role-carte .grp-carte-tete{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--sp-2)}
body[data-route="roles"] .grp-role-carte .grp-carte-tete strong{padding-top:0;min-width:0}
body[data-route="roles"] .grp-depart{flex:none;width:auto;max-width:none;margin-top:2px;white-space:nowrap}
body[data-route="roles"] .grp-carte-pied{overflow-wrap:normal}
body[data-route="roles"] .grp-ligne{flex-wrap:nowrap;gap:var(--sp-2)}
body[data-route="roles"] .grp-ligne select{flex:1 1 auto;min-width:0;max-width:260px}
body[data-route="roles"] .grp-ligne .btn{flex:none}
body[data-route="roles"] .grp-mail{font-weight:400;font-size:13px;color:var(--s-text-2)}
body[data-route="roles"] .grp-personnes .table-wrap{border:0;box-shadow:none;margin:0}
body[data-route="roles"] .grp-personnes tbody tr:last-child td{border-bottom:0}
body[data-route="roles"]:has(.grp-role) .access-box{border:0;padding:0;margin:var(--sp-6) 0 0;min-width:0}
body[data-route="roles"]:has(.grp-role) .access-box>legend{padding:0;margin:0 0 var(--sp-3);font-size:16px;font-weight:700;color:var(--s-head)}
body[data-route="roles"]:has(.grp-role) .access-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:var(--sp-4)}
body[data-route="roles"]:has(.grp-role) .access-group{display:flex;flex-direction:column;gap:var(--sp-1);min-width:0}
body[data-route="roles"]:has(.grp-role) .access-group h3{margin:0 0 var(--sp-1);font-size:13px;font-weight:700;color:var(--s-text-2)}
body[data-route="roles"]:has(.grp-role) .access-group label{display:flex;align-items:center;gap:var(--sp-2);min-height:32px;font-weight:400}
body[data-route="roles"]:has(.grp-role) .access-group label input{flex:none;margin:0}
body[data-route="roles"]:has(.grp-role) .access-group label small{color:var(--s-text-3)}
body[data-route="roles"]:has(.grp-role) #r-desc{min-height:72px;resize:vertical}
body[data-route="roles"]:has(.grp-role) .grp-mod-groupe th{background:transparent;padding-top:var(--sp-4);font-size:13px;font-weight:700;color:var(--s-text-2);text-transform:none;letter-spacing:0}
body[data-route="roles"]:has(.grp-role) .grp-role-barre{position:sticky;bottom:0;z-index:5;display:flex;gap:var(--sp-2);justify-content:flex-start;margin:var(--sp-6) 0 0;padding:var(--sp-3) 0;background:var(--s-surface);border-top:1px solid var(--s-border)}

/* ---------- Comptabilité ---------- */
body[data-route="comptabilite"] .compta-filtres{align-items:flex-end;gap:var(--sp-3)}
body[data-route="comptabilite"] .compta-filtres .field{display:flex;flex-direction:column;gap:var(--sp-1);margin:0}
body[data-route="comptabilite"] .compta-filtres .btn{min-height:40px}
body[data-route="comptabilite"] .compta-piece{min-width:130px}
body[data-route="comptabilite"] .compta-pj{display:inline-flex;align-items:center;gap:6px;margin-top:2px}
body[data-route="comptabilite"] .compta-tva{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:nowrap}
body[data-route="comptabilite"] .compta-tva form{margin:0}
body[data-route="comptabilite"] .compta-tva .grp-mini{margin-top:0}

/* ---------- Dettes, Courrier, Quittances, Décomptes (Direction) ---------- */
body[data-route^="dir_"] .fin .dir-grid{grid-template-columns:minmax(0,1fr)}
body[data-route^="dir_"] .fin .dir-side{position:static}
body[data-route="dir_dettes"] .fin .dir-side{order:-1}
body[data-route^="dir_"] .fin-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-3) var(--sp-4);align-items:end}
body[data-route^="dir_"] .fin-form>input[type=hidden]{display:none}
body[data-route^="dir_"] .fin-form-actions{grid-column:1 / -1;display:flex;justify-content:flex-start}
body[data-route^="dir_"] .fin-form input[type=file]{max-width:100%;font-size:13px}
body[data-route^="dir_"] .fin-line-meta{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-1) var(--sp-2)}
body[data-route^="dir_"] .fin-row-actions{align-items:center}
body[data-route^="dir_"] .fin-piece{display:inline-flex;align-items:center;gap:6px}
body[data-route^="dir_"] .fin-action{display:flex;align-items:baseline;gap:var(--sp-2)}
body[data-route^="dir_"] .fin-action>i{position:relative;top:1px}
body[data-route^="dir_"] .dir-more>summary{padding-left:0}
body[data-route^="dir_"] .fin-plan-head{min-height:44px;align-items:flex-start}
body[data-route^="dir_"] .dir-old .text-link{white-space:nowrap}
body[data-route="dir_quittances"] .fin-filter{align-items:flex-end}
body[data-route="dir_quittances"] .fin-filter .btn{min-height:40px}
body[data-route="dir_quittances"] .fin-sums{align-items:start}
body[data-route="dir_quittances"] .dir-figures{grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-route="dir_quittances"] .fin-vide{color:var(--s-text-2);text-align:center;padding:var(--sp-6)}

/* ---------- Courrier et Quittances (bureau) ---------- */
body[data-route^="bureau_"] .grp-piece{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
body[data-route^="bureau_"] .grp-total{margin:0 0 var(--sp-3);color:var(--s-text-2)}
body[data-route^="bureau_"] .grp-bureau form{margin:0}
body[data-route^="bureau_"] .grp-bureau .btn{white-space:nowrap}

/* ---------- Vague 2 (02.12.2026, après recapture) ---------- */
/* Accueil : le fil d'Ava commence sous le bandeau (plus de fondu qui coupe le 1er message), et le panneau remplit la colonne. */
body[data-route="dashboard"] .ava-thread{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 16px);mask-image:linear-gradient(to bottom,transparent 0,#000 16px);padding-top:var(--sp-5)}
@media (min-width:1001px){
 body[data-route="dashboard"] .dir-grid{align-items:stretch}
 body[data-route="dashboard"] .dir-grid>.dir-side{display:flex;flex-direction:column;position:static}
 body[data-route="dashboard"] .dir-grid>.dir-side>.dir-ava{flex:1 1 auto;display:flex;flex-direction:column}
 body[data-route="dashboard"] .dir-grid>.dir-side>.dir-ava>.ava-thread{flex:1 1 auto;max-height:none;min-height:260px;height:0}
}
.harels-app .dir-figure .dir-unite{margin-left:.25em;font-size:.55em;font-weight:600;letter-spacing:0}
.harels-app .ava-msg{overflow-wrap:anywhere}
body[data-route="dashboard"] .content>.erp-modules,body[data-route="dashboard"] .content>.app-footer{order:3}
body[data-route="dashboard"] .content>.erp-modules{margin-top:var(--sp-4)}
body[data-route="dashboard"] .ergo-ava-bureau .ava-thread{min-height:120px;max-height:420px}
body[data-route="activite"] .dir-todo-body strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Petites cases de chiffres : libellé sur 2 lignes réservées, les valeurs commencent à la même hauteur. */
@media (min-width:761px){.harels-app .acts-case>small,.harels-app .offres-cases small{min-height:2.6em}}
/* Fiches société : titres de tâche coupés au mot avec « … », en-tête sur une ligne, état en haut à droite. */
.harels-app .grp-actions li>a.ui-clamp-2,.harels-app .grp-actions li>span.ui-clamp-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:normal;word-break:normal}
@media (min-width:1001px){
 body:is([data-route="groupe"],[data-route="boutiques"]) .grp-entete{flex-wrap:nowrap}
 body:is([data-route="groupe"],[data-route="boutiques"]) .grp-entete-txt{flex:1 1 auto;min-width:0}
 body:is([data-route="groupe"],[data-route="boutiques"]) .grp-entete>.ui-segment{flex:none;align-self:flex-start}
}
/* Boutique : État et Alertes empilés, Produits à côté. */
body[data-route="boutiques"] .grp-boutique{align-items:start}
body[data-route="boutiques"] .grp-boutique-col{display:flex;flex-direction:column;gap:var(--sp-4);min-width:0}
body[data-route="boutiques"] .grp-domaine{white-space:nowrap}
body[data-route="boutiques"] .grp-muet{font-size:inherit}
/* Rôles : liste de rôle à largeur fixe, « Appliquer » toujours à la même place. */
body[data-route="roles"] .grp-ligne select{flex:none;width:300px;max-width:100%;text-overflow:ellipsis}
body[data-route="roles"]:has(.grp-role) .grp-retour{margin:0 0 var(--sp-1);font-size:13px}
body[data-route="roles"]:has(.grp-role) .grp-retour a{display:inline-flex;align-items:center;gap:6px}
body[data-route="roles"]:has(.grp-role) #r-desc{min-height:96px}
/* Comptabilité : le libellé garde sa largeur, comptes et TVA compacts. */
body[data-route="comptabilite"] .grp-compta{table-layout:auto}
body[data-route="comptabilite"] .grp-compta th:nth-child(3),body[data-route="comptabilite"] .grp-compta td:nth-child(3){min-width:220px;width:34%}
body[data-route="comptabilite"] .grp-compta input{width:62px;min-width:62px;padding-left:6px;padding-right:6px}
body[data-route="comptabilite"] .grp-compta select{min-width:0;width:140px}
body[data-route="comptabilite"] .compta-piece{min-width:110px}
/* Dettes et courrier : changement d'état sur une ligne, à droite des pièces. */
body[data-route^="dir_"] .fin-row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
body[data-route^="dir_"] .fin-state{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:var(--sp-2);margin:0 0 0 auto}
body[data-route^="dir_"] .fin-state select{flex:none;width:180px}
body[data-route^="dir_"] .fin-state input{flex:1 1 200px;width:220px;min-width:0}
body[data-route^="dir_"] .fin-state .btn{flex:none}
body[data-route="dir_dettes"] .fin-plans{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:var(--sp-4)}
body[data-route="dir_dettes"] .fin-plan-head{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-1)}
body[data-route^="dir_"] .fin-form{align-items:start}
body[data-route^="dir_"] .fin-form input[type=file]{width:100%}

/* ---------- Vague 3 (02.12.2026, passage 2) ---------- */
.harels-app .dir-card.dir-ava>header h3{color:#fff;display:flex;align-items:center;gap:var(--sp-2);font-size:16px}
body[data-route="dashboard"] .dir-jobs-card>header{flex-wrap:wrap;gap:var(--sp-2) var(--sp-4)}
body[data-route="dashboard"] .dir-legende{font-size:12px;color:var(--s-text-3);margin-left:auto}
body[data-route="dashboard"] .dir-legende+.text-link{margin-left:0}
body[data-route="dashboard"] .dir-job-money{align-items:end}
body[data-route="dashboard"] .dir-job-money small{white-space:nowrap}
body[data-route="groupe"] .grp-cartes .grp-carte-tete{grid-template-columns:auto minmax(0,1fr)}
body[data-route="groupe"] .grp-cartes .grp-carte-tete:not(:has(.grp-ic)){grid-template-columns:minmax(0,1fr)}
body[data-route="groupe"] .grp-cartes .grp-carte-tete>.badge{grid-column:-2;justify-self:start;margin-top:0}
body[data-route="boutiques"] .grp-boutique{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-route="activite"] .ergo-chiffres{margin-bottom:0}
body[data-route="activite"] .ergo-act-grille{margin-top:0}
body[data-route="activite"] .ergo-act-tete{margin-bottom:0}
body[data-route="comptabilite"] .grp-compta td:last-child{min-width:150px}
body[data-route="comptabilite"] .grp-compta td:last-child .badge{white-space:normal;text-align:left;line-height:1.35;display:inline-block;max-width:100%}
body[data-route="comptabilite"] .grp-compta td:nth-child(5),body[data-route="comptabilite"] .grp-compta td:nth-child(6){width:1%}
body[data-route="dir_dettes"] .fin-plan .fin-state{flex-wrap:wrap;margin:0;width:100%}
body[data-route="dir_dettes"] .fin-plan .fin-state select{flex:1 1 auto;width:auto}
body[data-route="dir_dettes"] .fin-plan .fin-state input{order:3;flex:1 1 100%;width:100%}
body[data-route="dir_quittances"] .fin-filter select,body[data-route="dir_quittances"] .fin-filter .btn{height:40px;min-height:40px;box-sizing:border-box;margin:0}
@media (max-width:1000px){body[data-route="boutiques"] .grp-boutique{grid-template-columns:1fr}}
@media (max-width:760px){
 body[data-route="dashboard"] .content>.erp-modules{display:none}
 body[data-route="roles"]:has(.grp-role) .grp-modules td:first-child::before{display:none!important}
 body[data-route="roles"]:has(.grp-role) .grp-modules td[data-label]::before{white-space:nowrap}
 body[data-route="roles"]:has(.grp-role) .grp-role-barre>*{margin:0!important;width:100%!important;max-width:none!important}
 body[data-route="roles"]:has(.grp-role) .grp-role-barre{padding-left:0;padding-right:0}
 body[data-route="bureau_quittances"] .table-wrap .grp-table td:nth-child(3){grid-column:1 / -1}
 body[data-route="bureau_quittances"] .table-wrap .grp-table td.grp-vide{display:none!important}
 body[data-route="roles"] .grp-ligne select{width:100%}
}

/* ---------- Téléphone ---------- */
@media (max-width:760px){
 body[data-route="dashboard"] .erp-heading .erp-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-2);width:100%}
 body[data-route="dashboard"] .erp-heading .erp-actions>*{min-height:44px;justify-content:center;width:100%}
 body[data-route="dashboard"] .dir-figure>strong{overflow-wrap:normal}
 body[data-route="dashboard"] .dir-todo .dir-amount{display:block;margin-top:2px}
 body[data-route="groupe"] .grp-fiche{grid-template-columns:1fr}
 body[data-route="boutiques"]:has(.grp-boutique) .grp-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-route="boutiques"] .grp-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-2)}
 body[data-route="boutiques"] .grp-kpi{padding:var(--sp-3) var(--sp-2)}
 body[data-route="boutiques"] .grp-kpi strong{font-size:16px}
 body[data-route="activite"] .ergo-act-actions{display:grid;grid-template-columns:1fr;width:100%}
 body[data-route="activite"] .ergo-act-actions .btn{width:100%;min-height:44px;justify-content:center}
 body[data-route="activite"] .ergo-chiffres,body[data-route="activite"] .acts-chiffres{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body[data-route="activite"] .ergo-act-grille,.harels-app .acts-listes{grid-template-columns:1fr}
 body[data-route="roles"] .grp-ligne{flex-wrap:wrap}
 body[data-route="roles"] .grp-ligne select{max-width:none;flex:1 1 100%}
 body[data-route="roles"] .grp-ligne .btn{min-height:44px}
 body[data-route="roles"]:has(.grp-role) .grp-modules td[data-label]::before{content:attr(data-label);margin-right:var(--sp-2);font-size:12px;font-weight:600;color:var(--s-text-2);text-transform:uppercase}
 body[data-route="roles"]:has(.grp-role) .access-groups{grid-template-columns:1fr}
 body[data-route="roles"]:has(.grp-role) .access-group label{min-height:44px}
 body[data-route="roles"]:has(.grp-role) .grp-role-barre .btn{flex:1 1 0;min-height:44px;justify-content:center}
 body[data-route="comptabilite"] .compta-filtres{display:grid;grid-template-columns:1fr}
 body[data-route="comptabilite"] .compta-filtres .field select,body[data-route="comptabilite"] .compta-filtres .field input{width:100%!important;min-width:0;max-width:none}
 body[data-route="comptabilite"] .compta-filtres .btn{width:100%;min-height:44px}
 body[data-route="comptabilite"] .grp-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-route="comptabilite"] .grp-kpis>.grp-kpi:last-child{grid-column:1 / -1}
 body[data-route="comptabilite"] .compta-tva select{flex:1 1 auto;min-width:0}
 body[data-route="comptabilite"] .compta-tva .btn{min-height:40px}
 body[data-route^="dir_"] .fin-form{grid-template-columns:1fr}
 body[data-route^="dir_"] .fin-form-actions .btn,body[data-route^="dir_"] .ui-page-head>.btn{width:100%;min-height:44px;justify-content:center}
 body[data-route="dir_quittances"] .dir-figures{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-route="dir_quittances"] .dir-figures>:last-child{grid-column:1 / -1}
 body[data-route="dir_quittances"] .fin-filter{display:grid;grid-template-columns:1fr 1fr;width:100%}
 body[data-route="dir_quittances"] .fin-filter .btn{grid-column:1 / -1;min-height:44px}
 body[data-route^="bureau_"] .grp-bureau .btn{min-height:44px}
 /* Vague 2 */
 body[data-route="dashboard"] .ergo-ava-bureau{margin-top:var(--sp-3)}
 body[data-route="dashboard"] .ergo-ava-bureau .ava-thread{min-height:160px}
 body[data-route="groupe"] .grp-carte{min-height:0}
 body[data-route="activite"] .ergo-act-tete{margin-bottom:var(--sp-3)}
 body[data-route="activite"] .ergo-chiffres{margin-bottom:var(--sp-3)}
 body[data-route="activite"] .ergo-act-grille{margin-top:0}
 body[data-route="boutiques"] .grp-boutiques td{text-align:left}
 body[data-route="roles"] .grp-ligne select{width:auto}
 body[data-route="roles"]:has(.grp-role) .grp-modules tr{display:flex!important;flex-wrap:wrap;align-items:center;gap:0 var(--sp-6)}
 body[data-route="roles"]:has(.grp-role) .grp-modules td:first-child{flex:1 1 100%;border:0}
 body[data-route="roles"]:has(.grp-role) .grp-modules td[data-label]{display:inline-flex!important;width:auto!important;align-items:center;gap:var(--sp-2);min-height:44px;border:0;padding:0}
 body[data-route="roles"]:has(.grp-role) .grp-modules td[data-label]::before{display:inline!important;margin:0}
 body[data-route="roles"]:has(.grp-role) .grp-modules tr.grp-mod-groupe{border:0;background:transparent;padding:var(--sp-4) 0 var(--sp-1);margin:0}
 body[data-route="roles"]:has(.grp-role) .grp-modules tr.grp-mod-groupe th{display:block;width:100%;padding:0;background:transparent;border:0;font-size:13px;font-weight:700;color:var(--s-text-2)}
 body[data-route="roles"]:has(.grp-role) .grp-role-barre{display:grid;grid-template-columns:1fr;gap:var(--sp-2)}
 body[data-route="roles"]:has(.grp-role) .grp-role-barre .btn{width:100%;margin:0;box-sizing:border-box}
 body[data-route="comptabilite"] .table-wrap .grp-compta tr{display:grid!important;grid-template-columns:1fr 1fr;gap:0 var(--sp-3)}
 body[data-route="comptabilite"] .table-wrap .grp-compta td{text-align:left}
 body[data-route="comptabilite"] .table-wrap .grp-compta td:nth-child(3),body[data-route="comptabilite"] .table-wrap .grp-compta td:nth-child(7){grid-column:1 / -1}
 body[data-route="comptabilite"] .table-wrap .grp-compta td:last-child::before{display:block}
 body[data-route="comptabilite"] .grp-compta input{width:100%;min-width:0}
 body[data-route="comptabilite"] .grp-compta select{width:auto;flex:1 1 auto}
 body[data-route="bureau_quittances"] .table-wrap .grp-table tr,body[data-route="dir_quittances"] .table-wrap .fin-lines-table tr{display:grid!important;grid-template-columns:1fr 1fr;gap:0 var(--sp-3)}
 body[data-route="bureau_quittances"] .table-wrap .grp-table td{text-align:left}
 body[data-route="bureau_quittances"] .table-wrap .grp-table td:nth-child(4),body[data-route="bureau_quittances"] .table-wrap .grp-table td:nth-child(5),body[data-route="bureau_quittances"] .table-wrap .grp-table td:nth-child(8){grid-column:1 / -1}
 body[data-route="dir_quittances"] .table-wrap .fin-lines-table td{text-align:left}
 body[data-route="dir_quittances"] .table-wrap .fin-lines-table td:nth-child(3),body[data-route="dir_quittances"] .table-wrap .fin-lines-table td:nth-child(6){grid-column:1 / -1}
 body[data-route="bureau_courrier"] .table-wrap .grp-table tr{display:grid!important;grid-template-columns:1fr 1fr;gap:0 var(--sp-3)}
 body[data-route="bureau_courrier"] .table-wrap .grp-table td:nth-child(2),body[data-route="bureau_courrier"] .table-wrap .grp-table td:nth-child(3),body[data-route="bureau_courrier"] .table-wrap .grp-table td:nth-child(7){grid-column:1 / -1}
 body[data-route^="dir_"] .fin-state{flex-wrap:wrap;margin:0;width:100%}
 body[data-route^="dir_"] .fin-state select,body[data-route^="dir_"] .fin-state input{flex:1 1 100%;width:100%}
 body[data-route^="dir_"] .fin-state .btn{min-height:44px}
 body[data-route="dir_dettes"] .fin-plans{grid-template-columns:1fr}
}
