/* 6.34.10 — final width guard for every AJCM Social content surface.
 * Loaded after legacy/theme-facing styles. Layout only: no business fields or actions are moved. */
body.ajcm-social-shell.ajcm-social-unified .ajcm-member-shell{
  width:100%!important;
  max-width:1600px!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body.ajcm-social-shell.ajcm-social-unified :is(
  .ajcm-social-context-head,
  .ajcm-feed-shell,
  .ajcm-dojo-space,
  .ajcm-discussions,
  .ajcm-social-media-library,
  .ajcm-publish-simple,
  .ajcm-social-welcome,
  .ajcm-social-role-panel,
  .ajcm-social-placeholder,
  .ajcm-reservations-hub,
  .ajcm-private-messages,
  .ajcm-message-directory,
  .ajcm-notifications-panel,
  .ajcm-profile-hub,
  .ajcm-profile-subpage,
  .ajcm-front-pilotage,
  .ajcm-competition-list,
  .ajcm-competition-tools,
  .ajcm-social-publish,
  #ajcm-pdj-isolated-shell
){
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
  margin-left:0!important;
  margin-right:0!important;
}
body.ajcm-social-shell.ajcm-social-unified :is(
  .ajcm-feed-shell,
  .ajcm-dojo-space,
  .ajcm-discussions,
  .ajcm-social-media-library,
  .ajcm-publish-simple,
  .ajcm-social-welcome,
  .ajcm-reservations-hub,
  .ajcm-private-messages,
  .ajcm-message-directory,
  .ajcm-notifications-panel,
  .ajcm-profile-hub,
  .ajcm-profile-subpage
) > *{
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
body.ajcm-social-shell.ajcm-social-unified :is(img,video,iframe,canvas,svg){max-width:100%;}
body.ajcm-social-shell.ajcm-social-unified :is(input,select,textarea,button){max-width:100%;box-sizing:border-box;}
@media(max-width:900px){
  body.ajcm-social-shell.ajcm-social-unified .ajcm-member-shell{max-width:none!important;}
}

/* Ressources pedagogiques AJCM Social : elles utilisent leur propre mise en page,
 * mais ne doivent jamais heriter d'un max-width etroit du theme. */
body.ajcm-social-shell.ajcm-social-unified .ajcm-techniques-isolated,
body.ajcm-social-shell.ajcm-social-unified .ajcm-techniques-isolated .ajcm-tech{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
  margin-left:0!important;
  margin-right:0!important;
}
body.ajcm-social-shell.ajcm-social-unified .ajcm-black-belt-exam{
  width:100%!important;
  max-width:1180px!important;
  min-width:0!important;
  box-sizing:border-box!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
@media(max-width:1220px){
  body.ajcm-social-shell.ajcm-social-unified .ajcm-black-belt-exam{max-width:100%!important;}
}


/* 6.34.34 — Dossier adhérent : largeur utile + verrou anti-Mesmerize.
 * Le thème peut injecter des pseudo-elements de clearfix dans des conteneurs
 * grid/flex. Dans une ligne de document, ce faux enfant prend une cellule et
 * décale le libellé puis les boutons. Aucun pseudo-element n'est fonctionnel
 * dans ces lignes AJCM : on les neutralise explicitement. */
body.ajcm-social-shell.ajcm-social-unified .ajcm-profile-hub.ajcm-profile-hub--dossier{
  width:100%!important;
  max-width:none!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body.ajcm-social-shell.ajcm-social-unified .ajcm-profile-subpage.ajcm-profile-subpage--dossier{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  padding-left:12px!important;
  padding-right:12px!important;
  box-sizing:border-box!important;
}
body.ajcm-social-shell.ajcm-social-unified .ajcm-profile-subpage--dossier :is(
  .ajcm-registration-profile-documents,
  .ajcm-member-documents,
  .ajcm-profile-summary-card--dossier,
  #ajcm-documents
){
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body.ajcm-social-shell.ajcm-social-unified .ajcm-profile-subpage--dossier [data-ajcm-document-row]::before,
body.ajcm-social-shell.ajcm-social-unified .ajcm-profile-subpage--dossier [data-ajcm-document-row]::after,
body.ajcm-social-shell.ajcm-social-unified .ajcm-profile-subpage--dossier .ajcm-registration-profile-documents article::before,
body.ajcm-social-shell.ajcm-social-unified .ajcm-profile-subpage--dossier .ajcm-registration-profile-documents article::after,
body.ajcm-social-shell.ajcm-social-unified .ajcm-profile-subpage--dossier .ajcm-registration-profile-documents form::before,
body.ajcm-social-shell.ajcm-social-unified .ajcm-profile-subpage--dossier .ajcm-registration-profile-documents form::after{
  content:none!important;
  display:none!important;
}
body.ajcm-social-shell.ajcm-social-unified .ajcm-profile-subpage--dossier [data-ajcm-document-row]{
  grid-template-columns:minmax(0,1fr) minmax(150px,max-content)!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
body.ajcm-social-shell.ajcm-social-unified .ajcm-profile-subpage--dossier [data-ajcm-document-row] > *{
  min-width:0!important;
  max-width:100%!important;
}
@media(max-width:760px){
  body.ajcm-social-shell.ajcm-social-unified .ajcm-profile-hub.ajcm-profile-hub--dossier,
  body.ajcm-social-shell.ajcm-social-unified .ajcm-profile-subpage.ajcm-profile-subpage--dossier{max-width:100%!important;padding-left:0!important;padding-right:0!important;}
  body.ajcm-social-shell.ajcm-social-unified .ajcm-profile-subpage--dossier [data-ajcm-document-row]{grid-template-columns:minmax(0,1fr)!important;}
  body.ajcm-social-shell.ajcm-social-unified .ajcm-profile-subpage--dossier [data-ajcm-document-row] > div:last-child{justify-content:flex-start!important;}
}
