/* AZALYS — Collaborateurs & droits : affichage final en lignes horizontales
   Correctif unique chargé en dernier. Ne modifie aucune règle métier. */

/* Equipe cabinet : chaque collaborateur = une ligne pleine largeur, contenu horizontal. */
html body #view-collaborateurs #collab-cards-list.collab-pro-list,
html body #collab-tab-equipe #collab-cards-list.collab-pro-list{
  display:flex !important;
  flex-direction:column !important;
  gap:12px !important;
  width:100% !important;
  max-height:none !important;
  overflow:visible !important;
  padding:14px !important;
}

html body #view-collaborateurs #collab-cards-list .collab-pro-person,
html body #collab-tab-equipe #collab-cards-list .collab-pro-person{
  display:grid !important;
  grid-template-columns:52px minmax(260px,1fr) auto !important;
  grid-template-areas:"avatar main actions" !important;
  align-items:center !important;
  gap:14px !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:14px 16px !important;
  border-radius:18px !important;
}

html body #view-collaborateurs #collab-cards-list .collab-pro-avatar,
html body #collab-tab-equipe #collab-cards-list .collab-pro-avatar{
  grid-area:avatar !important;
}
html body #view-collaborateurs #collab-cards-list .collab-person-main,
html body #collab-tab-equipe #collab-cards-list .collab-person-main{
  grid-area:main !important;
  min-width:0 !important;
}
html body #view-collaborateurs #collab-cards-list .collab-person-actions,
html body #collab-tab-equipe #collab-cards-list .collab-person-actions{
  grid-area:actions !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-end !important;
  flex-wrap:nowrap !important;
  gap:8px !important;
  width:auto !important;
  min-width:max-content !important;
  margin:0 !important;
}
html body #view-collaborateurs #collab-cards-list .collab-person-actions .btn,
html body #collab-tab-equipe #collab-cards-list .collab-person-actions .btn{
  white-space:nowrap !important;
}

/* Cabinet / droits : chaque dossier = une ligne horizontale, modules alignés à droite. */
html body #view-collaborateurs #collab-rights-zone.collab-pro-rights,
html body #collab-tab-equipe #collab-rights-zone.collab-pro-rights{
  display:flex !important;
  flex-direction:column !important;
  gap:12px !important;
  width:100% !important;
  max-height:none !important;
  overflow:visible !important;
  padding:14px !important;
}
html body #view-collaborateurs #collab-rights-zone.collab-pro-rights.empty,
html body #collab-tab-equipe #collab-rights-zone.collab-pro-rights.empty{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:220px !important;
}
html body #view-collaborateurs #collab-rights-zone .collab-right-row,
html body #collab-tab-equipe #collab-rights-zone .collab-right-row{
  display:grid !important;
  grid-template-columns:minmax(280px,.72fr) minmax(420px,1.28fr) !important;
  align-items:stretch !important;
  gap:0 !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  overflow:hidden !important;
  border-radius:18px !important;
}
html body #view-collaborateurs #collab-rights-zone .collab-right-row-head,
html body #collab-tab-equipe #collab-rights-zone .collab-right-row-head{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:14px !important;
  min-width:0 !important;
  border-right:1px solid #e2e8f0 !important;
  border-bottom:0 !important;
}
html body #view-collaborateurs #collab-rights-zone .collab-row-body,
html body #view-collaborateurs #collab-rights-zone .collab-row-inner,
html body #collab-tab-equipe #collab-rights-zone .collab-row-body,
html body #collab-tab-equipe #collab-rights-zone .collab-row-inner{
  min-width:0 !important;
  width:100% !important;
}
html body #view-collaborateurs #collab-rights-zone .collab-row-options,
html body #collab-tab-equipe #collab-rights-zone .collab-row-options{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  flex-wrap:nowrap !important;
  gap:10px !important;
  width:100% !important;
  min-width:0 !important;
  height:100% !important;
  padding:12px 14px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  background:#f8fafc !important;
  scrollbar-width:thin !important;
}
html body #view-collaborateurs #collab-rights-zone .collab-row-options .hint,
html body #view-collaborateurs #collab-rights-zone .collab-row-options .collab-seg,
html body #view-collaborateurs #collab-rights-zone .collab-row-options .collab-module-pill,
html body #collab-tab-equipe #collab-rights-zone .collab-row-options .hint,
html body #collab-tab-equipe #collab-rights-zone .collab-row-options .collab-seg,
html body #collab-tab-equipe #collab-rights-zone .collab-row-options .collab-module-pill{
  flex:0 0 auto !important;
  white-space:nowrap !important;
}
html body #view-collaborateurs #collab-rights-zone .collab-row-options .collab-modules-inline,
html body #view-collaborateurs #collab-rights-zone .collab-row-options .collab-modules,
html body #collab-tab-equipe #collab-rights-zone .collab-row-options .collab-modules-inline,
html body #collab-tab-equipe #collab-rights-zone .collab-row-options .collab-modules{
  display:inline-flex !important;
  flex:0 0 auto !important;
  flex-direction:row !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  gap:8px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  background:transparent !important;
}

@media (max-width:980px){
  html body #view-collaborateurs #collab-cards-list .collab-pro-person,
  html body #collab-tab-equipe #collab-cards-list .collab-pro-person{
    grid-template-columns:46px minmax(0,1fr) !important;
    grid-template-areas:"avatar main" "actions actions" !important;
  }
  html body #view-collaborateurs #collab-cards-list .collab-person-actions,
  html body #collab-tab-equipe #collab-cards-list .collab-person-actions{
    justify-content:flex-start !important;
    flex-wrap:wrap !important;
    min-width:0 !important;
    width:100% !important;
  }
  html body #view-collaborateurs #collab-rights-zone .collab-right-row,
  html body #collab-tab-equipe #collab-rights-zone .collab-right-row{
    grid-template-columns:1fr !important;
  }
  html body #view-collaborateurs #collab-rights-zone .collab-right-row-head,
  html body #collab-tab-equipe #collab-rights-zone .collab-right-row-head{
    border-right:0 !important;
    border-bottom:1px solid #e2e8f0 !important;
  }
  html body #view-collaborateurs #collab-rights-zone .collab-row-options,
  html body #collab-tab-equipe #collab-rights-zone .collab-row-options,
  html body #view-collaborateurs #collab-rights-zone .collab-row-options .collab-modules-inline,
  html body #view-collaborateurs #collab-rights-zone .collab-row-options .collab-modules,
  html body #collab-tab-equipe #collab-rights-zone .collab-row-options .collab-modules-inline,
  html body #collab-tab-equipe #collab-rights-zone .collab-row-options .collab-modules{
    flex-wrap:wrap !important;
    overflow-x:visible !important;
  }
}
