/* Utilisateurs en tableau, design 2 (ustable.js, owner 2026-11-30) */
/* Filtre « Rôle ▾ » à côté du titre et menu « Vues ▾ » de la barre (owner, 2026-11-30) : plus de pastilles ni de tuiles. */
.us-role, .ut-vbtn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; flex: none;
  transition: background-color .3s, color .3s, border-color .3s; }
.us-role svg, .ut-vbtn svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.us-role svg { color: var(--muted); }
.us-role[aria-expanded="true"] svg:last-child, .ut-vbtn[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.ut-vbtn.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.ut-vn { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: #fff; font-size: 11.5px; line-height: 20px; text-align: center; box-sizing: border-box; }
.users-ph .ph h1 { flex: none; }
.users-ph .ph .ph-acts { margin-inline-start: auto; }
/* menu à plusieurs choix (tMultiMenu, app.js) */
.tf-multi .tf-opt { justify-content: flex-start; gap: 10px; }
.tf-multi .tf-opt > span { flex: 1 1 auto; }
.tf-multi .tf-box { width: 18px; height: 18px; border: 1.5px solid var(--line); border-radius: 5px; display: grid; place-items: center; flex: none; transition: background-color .3s, border-color .3s; }
.tf-multi .tf-box svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 3; }
.tf-multi .tf-opt.on { color: var(--text); }
.tf-multi .tf-opt.on .tf-box { background: var(--gold); border-color: var(--gold); }
.tf-multi .tf-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.tf-multi .tf-dot.gold { background: var(--gold); } .tf-multi .tf-dot.bad { background: var(--red); } .tf-multi .tf-dot.late { background: #d9822b; }
.tf-multi .tf-n { color: var(--muted); font-weight: 700; font-size: 12px; }
.tf-multi .tf-clear { justify-content: center; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--muted); font-size: 13.5px; }
@media (hover: hover) {
  .us-role:hover, .ut-vbtn:not(.on):hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .us-role:hover svg { color: var(--bg); }
  .ut-vbtn.on:hover { background: var(--bg); color: var(--text); border-color: var(--line); }
  .tf-multi .tf-opt:hover { color: var(--bg); }
  .tf-multi .tf-opt:hover .tf-box { border-color: var(--bg); }
  .tf-multi .tf-opt:hover .tf-n { color: var(--bg); }
}
@media (max-width: 640px) { .users-ph .ph { flex-wrap: nowrap; } .users-ph .ph h1 { flex: 0 1 auto; } .us-role { padding: 0 8px 0 10px; } }
.ut-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
/* Ordinateur : la barre « Vues + recherche » dans la ligne du titre, 10 px après « Tous ▾ » (owner, 2026-12-02) */
.ut-hbar { display: flex; flex: 0 1 auto; min-width: 0; margin-inline-start: -10px; }
.ut-hbar:empty { display: none; }
.ut-hbar .ut-bar { margin: 0; flex-wrap: nowrap; }
.ut-hbar .ut-q { flex: 0 1 280px; min-width: 160px; }
.ut-views { display: flex; gap: 6px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.ut-view { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 12px; transition: background .3s, color .3s, border-color .3s; }
.ut-view small { color: var(--muted); font-weight: 700; font-size: 11.5px; }
.ut-view.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.ut-view.on small { color: var(--bg); opacity: .75; }
.ut-vd { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.ut-vd.gold { background: var(--gold); } .ut-vd.bad { background: var(--red); } .ut-vd.late { background: #d9822b; }
.ut-q { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 14px; flex: 0 1 280px; min-width: 180px; color: var(--muted); }
.ut-q svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ut-q input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; color: var(--text); font-size: 14px; }
.ut-q:focus-within { border-color: var(--gold); }

/* barre des actions groupées */
.ut-bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--text); color: var(--bg); border-radius: 16px; padding: 8px 10px 8px 16px; margin-bottom: 12px; }
.ut-bulk[hidden] { display: none; }
.ut-bulk-n { font-size: 14px; }
.ut-bulk-x { width: 30px; height: 30px; border: 0; background: none; color: var(--bg); border-radius: 9px; display: grid; place-items: center; opacity: .7; }
.ut-bulk-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ut-bulk-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-inline-start: auto; }
.ut-bulk .btn { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); display: inline-flex; align-items: center; gap: 6px; }
.ut-bulk .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* tableau + volet */
.ut-wrap { display: flex; gap: 20px; align-items: flex-start; }
.ut-tbl-box { flex: 1 1 auto; min-width: 0; }
.ut-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.ut-tbl th { text-align: start; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ut-tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ut-row { cursor: pointer; transition: background .2s; }
.ut-row.sel td { background: color-mix(in srgb, var(--gold-soft) 55%, transparent); }
.ut-row.cur td { background: var(--gold-soft); }
.ut-row.off .ut-nm b { opacity: .6; }
.ut-sort { border: 0; background: none; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; display: inline-flex; align-items: center; gap: 3px; }
.ut-sort svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .45; }
.ut-sort.on { color: var(--text); } .ut-sort.on svg { opacity: 1; stroke: var(--gold); }
.ut-cb { width: 34px; padding-inline-end: 0 !important; }
.ut-check { width: 18px; height: 18px; border: 1.6px solid var(--muted); border-radius: 5px; background: none; padding: 0; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.ut-check.on { background: var(--text); border-color: var(--text); }
.ut-check.on::after { content: ""; width: 8px; height: 4px; border: 2px solid var(--bg); border-top: 0; border-inline-end: 0; transform: rotate(-45deg) translate(1px, -1px); }
.ut-who-in { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ut-nm { min-width: 0; display: flex; flex-direction: column; }
.ut-nm b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ut-nm > small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.ut-pin { font-style: normal; font-size: 11px; }
.ut-msub { display: none; }
.ut-pills { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.ut-dots { display: inline-flex; gap: 3px; } .ut-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); } .ut-dots i.no { background: var(--red); opacity: .55; }
.ut-dash { color: var(--muted); }
.ut-exp { display: flex; flex-direction: column; line-height: 1.25; } .ut-exp b { font-weight: 600; font-size: 12.5px; } .ut-exp small { color: var(--muted); }
.ut-tbl .pill.late { animation: none; color: #c56a1c; border-color: #e3a768; background: rgba(217, 130, 43, .12); }
.ut-seen { color: var(--muted); white-space: nowrap; } .ut-seen.never { opacity: .7; }
.ut-c-rides, .ut-c-bookings { font-weight: 700; }
.ut-mst { display: none; }
.ut-act { width: 40px; text-align: end; }
.ut-more { width: 32px; height: 32px; border-radius: 10px; border: 0; background: none; color: var(--muted); display: inline-grid; place-items: center; transition: background .3s, color .3s; }
.ut-more svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }

.ut-pane { flex: 0 0 380px; position: sticky; top: 12px; max-height: calc(100dvh - 24px); overflow-y: auto; scrollbar-width: thin; border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
.ut-pane[hidden] { display: none; }
.ut-tbl-box { container: uttbl / inline-size; }   /* les colonnes suivent la largeur de la liste (@container uttbl) */

/* Séparation glissable liste | volet (utSplitBind, owner 2026-12-01) : le trait remplace le bord du volet, même écart de 20 px
   de chaque côté ; survol et glissement : trait doré. Liste à la largeur choisie (--ut-list-w), le volet prend le reste. */
.ut-wrap:has(> .ut-split) { gap: 0; }
.ut-split { flex: 0 0 41px; align-self: stretch; position: relative; cursor: col-resize; touch-action: none; user-select: none; }
.ut-split::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 20px; width: 1px; background: var(--line); transition: background .3s, width .3s, inset-inline-start .3s; }
.ut-wrap:not(.has-pane) > .ut-split { display: none; }
.ut-wrap:has(> .ut-split) > .ut-pane { border-inline-start: 0; padding-inline-start: 0; }
/* 1re ouverture (aucune largeur choisie) et double-clic : séparation au milieu, liste et fiche à parts égales (owner, 2026-12-01 :
   « when opening for the first time, keep the separation in the middle ») */
.ut-wrap:has(> .ut-split):not(.ut-sized) > .ut-tbl-box { flex: 1 1 0; }
.ut-wrap:has(> .ut-split):not(.ut-sized) > .ut-pane { flex: 1 1 0; min-width: 340px; }
.ut-wrap.ut-sized > .ut-tbl-box { flex: 0 1 var(--ut-list-w); min-width: 360px; }
.ut-wrap.ut-sized > .ut-pane { flex: 1 1 340px; min-width: 340px; }
.ut-wrap.ut-dragging, .ut-wrap.ut-dragging * { cursor: col-resize !important; user-select: none; }
.ut-wrap.ut-dragging > .ut-split::before, .ut-split:focus-visible::before { background: var(--gold); width: 3px; inset-inline-start: 19px; }
.ut-split:focus-visible { outline: none; }
@media (hover: hover) { .ut-split:hover::before { background: var(--gold); width: 3px; inset-inline-start: 19px; } }

/* Liste + volet jusqu'au bord de la fenêtre (owner, 2026-12-01 : « make the edge follow the edge of the browser on this kind of
   layout screen found in sociétés, users and vehicle ») : 2e exception à la règle « écrans de 1500 px au plus », après la carte
   du Planning. La page commence toujours à 20 px de la colonne de gauche et garde 20 px de marge au bord droit (gauche en arabe) ;
   la bulle des messages va au bord de la fenêtre. Toutes les pages qui ont le tableau .ut-wrap (Utilisateurs et ses onglets,
   Sociétés, Véhicules, rapport compte unique). */
@media (min-width: 1000px) {
  #app:has(> .tabs.mode-tabs):has(> .wrap > .users-page .ut-wrap) { max-width: none; }
  #app:has(> .tabs.mode-tabs) > .wrap.wide:not(.fp-page):has(> .users-page .ut-wrap) { max-width: none; }
  body:has(.users-page .ut-wrap) { --edge-r: 28px; }
  html.dt body:has(.users-page .ut-wrap):not(.ut-x) :is(.push-bar, .install-bar) { max-width: none; margin-inline-end: 20px; }   /* bandeaux du haut : même bord droit que la page */
}
.ut-pane-in { display: flex; flex-direction: column; gap: 14px; padding-bottom: 20px; }
.ut-p-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 600; }
.ut-p-x { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: none; display: grid; place-items: center; color: var(--text); transition: background .3s, color .3s; }
.ut-p-x svg, .ut-ib svg, .ut-p-acts .btn:not(.uc-wa) svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ut-p-acts .uc-wa svg { width: 18px; height: 18px; }
.ut-p-acts .uc-wa svg, .ut-p-acts .uc-wa path { fill: #25D366; stroke: none; }
@media (hover: hover) { .ut-p-acts .uc-wa:hover { background: #000; border-color: #000; } .ut-p-acts .uc-wa:hover path { fill: #fff; } }
.ut-p-who { display: flex; align-items: center; gap: 12px; }
.ut-p-who h2 { margin: 0; font-size: 20px; line-height: 1.15; }
.ut-p-who small { color: var(--muted); }
.ut-p-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.ut-p-pills:empty { display: none; }
.ut-p-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.ut-p-acts .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; }
.ut-p-msg { flex: none; }   /* icône seule, comme les autres boutons de la ligne (owner, 2026-12-01) */
.ut-p-wide { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ut-p-wide svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ut-blk { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 18px 14px 12px; margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.ut-blk > h3 { position: absolute; top: -9px; inset-inline-start: 12px; margin: 0; padding: 0 6px; background: var(--bg); font-size: 12px; font-weight: 800; line-height: 18px; }
.ut-doc { display: flex; align-items: center; gap: 10px; }
.ut-doc .grow { min-width: 0; display: flex; flex-direction: column; } .ut-doc .grow b { font-size: 13.5px; } .ut-doc .grow small { color: var(--muted); font-size: 12px; }
.ut-doc-th { width: 52px; height: 40px; flex: none; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; padding: 0; display: grid; place-items: center; color: var(--muted); }
.ut-doc-th img { width: 100%; height: 100%; object-fit: cover; }
.ut-doc-th svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ut-ib { width: 34px; padding: 0 !important; display: inline-grid !important; place-items: center; flex: none; }
.ut-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
/* volet élargi par la séparation (2026-12-01) : plus de colonnes au lieu de deux colonnes très espacées */
.ut-pane { container: utpane / inline-size; }
@container utpane (min-width: 620px) { .ut-dl { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
.ut-dl dt { color: var(--muted); font-size: 11.5px; } .ut-dl dd { margin: 0; font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.ut-veh { display: flex; align-items: center; gap: 10px; }
.ut-veh .grow { min-width: 0; display: flex; flex-direction: column; } .ut-veh small { color: var(--muted); font-size: 12px; }
.ut-veh-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--panel); display: grid; place-items: center; flex: none; color: var(--muted); }
.ut-veh-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ut-veh-list { display: flex; flex-direction: column; gap: 8px; } .ut-veh-list .hint { margin: 0; }
.ut-pane-in .rd-chips, .ut-pane-in .uc-photo { margin: 0; }

/* tiroir (téléphone) */
.ut-sheet { padding-top: 6px; } .ut-sheet .ut-pane-in { padding-bottom: 8px; }

@media (hover: hover) {
  .ut-view:not(.on):hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .ut-view:not(.on):hover small { color: var(--bg); }
  .ut-row:not(.cur):hover td { background: var(--panel); }
  .ut-more:hover, .ut-p-x:hover { background: var(--text); color: var(--bg); }
  .ut-bulk .btn:hover { background: var(--bg); color: var(--text); border-color: var(--bg); }
  .ut-bulk-x:hover { opacity: 1; }
  .ut-check:not(.on):hover { border-color: var(--text); }
}

/* volet ouvert : rôle, points « prêt » et expiration passent dans le volet ; le tableau défile de côté s'il reste trop large */
/* (2026-12-01) selon la largeur réelle de la liste, plus selon le volet : la séparation se glisse (utSplitBind) */
@container uttbl (max-width: 1000px) { .ut-c-ready, .ut-c-role, .ut-c-exp { display: none; } }
.ut-tbl-box { overflow-x: auto; }
.ut-pane { background: var(--bg); }
@media (max-width: 1199px) { .ut-c-exp { display: none; } }
@container uttbl (max-width: 640px) { .ut-c-rides { display: none; } }

/* téléphone : liste compacte (case, personne, état) ; le volet devient un tiroir */
@media (max-width: 999px) {
  .ut-q { flex: 1 1 100%; }
  .ut-views { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .ut-views::-webkit-scrollbar { display: none; }
  .ut-pane { display: none !important; }
  .ut-tbl thead { display: none; }
  .ut-tbl, .ut-tbl tbody { display: block; }
  .ut-tbl tr { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .ut-tbl td { display: none; padding: 0; border: 0; }
  .ut-tbl td.ut-cb, .ut-tbl td.ut-who, .ut-tbl td.ut-mst { display: block; }
  .ut-tbl td[colspan] { display: block; width: 100%; }
  .ut-tbl td.ut-who { flex: 1 1 auto; min-width: 0; }
  .ut-tbl td.ut-cb { width: auto; }
  .ut-nm > small { max-width: none; }
  .ut-msub { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
  .ut-msub small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ut-row.sel td, .ut-row.cur td { background: none; }
  .ut-row.sel { background: color-mix(in srgb, var(--gold-soft) 55%, transparent); border-radius: 12px; }
  .ut-bulk { position: sticky; top: 8px; z-index: 5; padding: 8px 8px 8px 14px; }
  .ut-bulk-acts { margin-inline-start: 0; width: 100%; }
  .ut-bulk-acts .btn { flex: 1 1 auto; }
}

/* « Voir toutes les sociétés » : comptes des autres sociétés (lecture seule), nom de la société devant la ligne du dessous */
.ut-co { display: inline-block; margin-inline-end: 6px; padding: 0 7px; border-radius: 99px; background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: 11px; line-height: 17px; }
.ut-ext-note { margin: 0; }
.ut-ext-more { margin-top: 10px; }
/* TEST : bouton « Se connecter en tant que » dans la ligne et dans la fiche */
.ut-go, .ut-p-wide[data-tsopen], .ut-p-wide[data-ulogin] { display: inline-flex; align-items: center; gap: 6px; }
.ut-go svg, .ut-p-wide[data-tsopen] svg, .ut-p-wide[data-ulogin] svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ut-simple .ut-c-go { text-align: end; }
/* Tri d'un tableau simple (Sociétés, owner 2026-12-01) : menu « Trier » sur téléphone seulement (titres cachés), valeur triée en bout de ligne */
.ut-sbtn > svg:first-child { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ut-mval { font-weight: 700; font-size: 13px; white-space: nowrap; }
@media (min-width: 1000px) { .ut-sbtn { display: none; } }
/* Sociétés (tenants.js) : volet ouvert = Société, Formule, Stockage, Unités de vols, Chauffeurs ; le reste est dans le volet,
   et toutes les colonnes reviennent quand on ferme le volet (✕) */
@container uttbl (max-width: 1139px) { .tn-page2 .ut-c-seen, .tn-page2 .ut-c-bw { display: none; } }
@container uttbl (max-width: 959px) { .tn-page2 .ut-c-st, .tn-page2 .ut-c-cli { display: none; } }
@container uttbl (max-width: 779px) { .tn-page2 .ut-c-g, .tn-page2 .ut-c-rides { display: none; } }
@container uttbl (max-width: 599px) { .tn-page2 .ut-c-drv { display: none; } }
@container uttbl (max-width: 519px) { .tn-page2 .ut-c-fl { display: none; } }
/* liste étroite (séparation au milieu sur un petit écran d'ordinateur) : nom coupé par « … », colonnes secondaires dans la fiche */
@container uttbl (max-width: 700px) { .ut-who-in { max-width: 230px; } .ut-nm > small { max-width: 100%; } }
@container uttbl (max-width: 599px) { .ut-c-seen { display: none; } }
@container uttbl (max-width: 579px) { .vr-page .ut-c-seats { display: none; } }
@container uttbl (max-width: 519px) { .vr-page .ut-c-where { display: none; } }
@container uttbl (max-width: 420px) { .ut-who-in { max-width: 150px; } .tn-page2 .ut-c-plan, .vr-page .ut-c-state, .ut-act { display: none; } }   /* écran de 1000 px : les actions « ··· » sont dans la fiche */
.ut-simple td.ut-c-disk, .ut-simple td.ut-c-bw, .ut-simple td.ut-c-fl, .ut-simple td.ut-c-g { white-space: nowrap; }
/* 10 colonnes sans défilement de côté : titres sur deux lignes, statut long (« En attente de mise en route ») replié */
.tn-page2 .ut-simple thead th, .tn-page2 .ut-simple .ut-sort { white-space: normal; text-align: start; }
.tn-page2 .ut-simple td.ut-c-st .pill { white-space: normal; display: inline-block; max-width: 110px; line-height: 1.3; }
.tn-page2 .ut-simple td.ut-c-seen .ut-seen { white-space: normal; }
/* téléphone : « Rapport compte unique » sur deux lignes, pour que le titre « Sociétés » reste lisible */
@media (max-width: 640px) { .tn-page2 .ai-hb { white-space: normal; line-height: 1.15; max-width: 104px; padding-inline: 10px; font-size: 12px; text-align: center; } }
@media (min-width: 1000px) { .tn-page2 .ut-simple th, .tn-page2 .ut-simple td { padding-inline: 8px; } }
.tn-u-s { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.tn-u-h { margin: 6px 0 0; font-size: 12px; }
@container uttbl (max-width: 1000px) { .ut-simple .ut-c-addr, .ut-simple .ut-c-info { display: none; } }

/* Boutons du haut avec leur nom (design 1, owner 2026-11-30) : « À vérifier 12 » doré tant qu'il y a des pièces, « Inviter »,
   « + Ajouter ». Téléphone : icône seule, le nombre reste dans le bouton doré. */
.ph-acts > .ph-ib.ut-hb { width: auto; padding: 0 14px; gap: 7px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.ph-acts > .ph-ib.ut-hb::after { display: none; }   /* le nom est écrit : plus d'info-bulle */
.ph-ib.ut-hb .ph-bdg { position: static; min-width: 20px; height: 20px; line-height: 20px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 800; text-align: center; }
html .ph-acts > .ph-ib.ut-hdocs:has(.ph-bdg:not([hidden])) { background: var(--gold-soft); border-color: var(--gold); color: color-mix(in srgb, var(--gold) 55%, var(--text)); }
.ph-ib.ut-hb.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.ph-ib.ut-hb.on .ph-bdg { background: #fff; color: var(--gold); }
@media (hover: hover) {
  html .ph-acts > .ph-ib.ut-hb:not(.pri):hover, html .ph-acts > .ph-ib.ut-hdocs:has(.ph-bdg:not([hidden])):hover { background: var(--text); border-color: var(--text); color: var(--bg); }
  .ph-acts > .ph-ib.ut-hb:not(.pri):hover .ph-bdg { background: var(--bg); color: var(--text); }
  html .ph-acts > .ph-ib.ut-hb.pri:hover { background: var(--bg); border-color: var(--text); color: var(--text); }
}
@media (max-width: 999px) {
  .ph-acts > .ph-ib.ut-hb { padding: 0; width: 40px; }
  .ph-acts > .ph-ib.ut-hdocs:has(.ph-bdg:not([hidden])) { width: auto; padding: 0 10px; }
  .ph-ib.ut-hb .ut-hl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Activité de la personne, volet Utilisateurs (uaBlock, owner 2026-11-30) */
.ua-f { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.ua-list { list-style: none; margin: 0; padding: 0; }
.ua-ev { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); }
.ua-ev:first-child { border-top: 0; }
.ua-ev > i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--gold); }
.ua-ev.ua-docs > i { background: #4a6fd1; } .ua-ev.ua-account > i { background: var(--muted); }
.ua-ev.ok > i { background: #12703f; } .ua-ev.bad > i { background: var(--red); }
.ua-ev .grow { min-width: 0; flex: 1; }
.ua-ev b { display: block; font-size: 13px; font-weight: 700; }
.ua-ev small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ua-ev time { flex: none; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ua-list .hint { padding: 6px 0; }
.ua-dlg .ua-list { height: min(60vh, 560px); overflow-y: auto; margin-top: 6px; }   /* hauteur fixe : la fenêtre ne bouge pas quand on change de filtre (owner, 2026-11-30) */
/* Véhicules en tableau : la fiche du véhicule tient dans le volet de droite (une colonne) */
.vr-pane .vr-veh { border: 0; padding: 0; box-shadow: none; background: none; margin-top: 12px; }
.vr-pane .vr-g { display: grid; grid-template-columns: 1fr !important; gap: 14px; }
.vr-pane .vr-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.vr-pane .vr-kv dd { word-break: normal; overflow-wrap: anywhere; }
.vr-pane .vr-phs { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.vr-pane .dr-act { flex-wrap: wrap; }

/* Compte unique : rapport d'inventaire (viewAcctInv, tenants.js ; owner 2026-12-01) */
.ai-lead { margin: -4px 0 4px; max-width: 760px; }
.ai-sum { font-weight: 700; font-size: 13px; margin: 0 0 12px; }
.ai-sp { color: var(--muted); font-size: 12.5px; }
.ai-iss { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; font-size: 13px; }
.ai-acc { padding: 8px 0; border-top: 1px solid var(--line); } .ai-acc:first-of-type { border-top: 0; }
.ai-acc b { display: block; font-size: 13px; } .ai-acc small { color: var(--muted); font-size: 12px; }
.ai-doc { padding: 8px 0; border-top: 1px solid var(--line); } .ai-doc:first-of-type { border-top: 0; } .ai-doc b { display: block; font-size: 13px; margin-bottom: 4px; }
.ai-doc-r { display: inline-flex; align-items: center; gap: 6px; margin: 2px 12px 2px 0; } .ai-doc-r small { color: var(--muted); font-size: 12px; }
.ai-hb { align-self: center; margin-inline-end: 8px; }

/* Compte commun du chauffeur au back-office (acBlock, owner 2026-12-01) */
.ac-ln { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); } .ac-ln:first-of-type { border-top: 0; }
.ac-ln b { display: block; font-size: 13px; } .ac-ln small { color: var(--muted); font-size: 12px; }
.ac-dlg .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 640px) { .ac-dlg .two { grid-template-columns: 1fr; } }
.ac-ln .grow { flex: 1; min-width: 0; } .ac-sw { flex: none; }
/* Pièces du compte commun (acDocsHtml, owner 2026-12-01) */
.acd { margin-top: 14px; } .acd-t { display: block; font-size: 12.5px; margin-bottom: 4px; }
.acd-r { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.acd-r .grow { flex: 1; min-width: 140px; } .acd-r b { display: block; font-size: 13px; } .acd-r small { color: var(--muted); font-size: 12px; }
.acd-a { display: flex; gap: 6px; flex-basis: 100%; justify-content: flex-end; }
.ut-co.off { opacity: .45; text-decoration: line-through; }   /* société où son compte est désactivé (une ligne par personne, owner 2026-12-01) */
/* « Mes sociétés » (Réglages du chauffeur, myCoLoad, owner 2026-12-01) */
.mc-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); } .mc-row:first-of-type { border-top: 0; }
.mc-row .grow { flex: 1; min-width: 0; } .mc-row b { display: block; font-size: 14px; } .mc-row small { color: var(--muted); font-size: 12.5px; } .mc-row.off b { color: var(--muted); }
/* Courses et factures passées avec une société quittée (myCoHistory, owner 2026-12-01) */
.mch-seg { margin: 4px 0 10px; } .mch-list { max-height: min(55vh, 520px); overflow-y: auto; min-height: 120px; }
.mch-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); } .mch-row:first-child { border-top: 0; }
.mch-row .grow { flex: 1; min-width: 0; } .mch-row b { display: block; font-size: 13.5px; } .mch-row small { color: var(--muted); font-size: 12px; } .mch-v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Registre des véhicules : où un véhicule est rangé (vgPane, owner 2026-12-01) */
.vg-ln { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); } .vg-ln:first-of-type { border-top: 0; }
.vg-ln .grow { flex: 1; min-width: 0; } .vg-ln b { display: block; font-size: 13px; } .vg-ln small { color: var(--muted); font-size: 12px; }
.ut-tbl .fvb-plate, .ut-dl .fvb-plate { white-space: nowrap; }   /* plaque sur une seule ligne (registre des véhicules, owner 2026-12-01) */
/* « Créer son compte ChauffApp » sous « Modifier le profil » : même écart que les pièces en dessous (14 px, owner 2026-12-01) */
.ac-in [data-acown] { margin-top: 14px; }
