.aboro-ec { display: flex; gap: 0; border: 1px solid var(--aboro-border); border-radius: 10px; overflow: hidden; min-height: 460px; }
.aboro-ec-aside { width: 220px; flex: 0 0 220px; background: var(--aboro-bg-alt); padding: 18px 0; display: flex; flex-direction: column; }
.aboro-ec-id { display: flex; align-items: center; gap: 10px; padding: 0 16px 14px; border-bottom: 1px solid var(--aboro-border); margin-bottom: 10px; }
.aboro-ec-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--aboro-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.aboro-ec-name { font-weight: 600; font-size: 14px; color: var(--aboro-text); }
.aboro-ec-nav { display: flex; flex-direction: column; gap: 2px; }
.aboro-ec-navitem { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-left: 3px solid transparent; color: var(--aboro-muted); font: inherit; font-size: 14px; padding: 10px 16px; cursor: pointer; }
.aboro-ec-navitem:hover { background: rgba(0,0,0,.04); }
.aboro-ec-navitem.is-active { background: #fff; color: var(--aboro-primary); border-left-color: var(--aboro-primary); font-weight: 600; }
.aboro-ec-content { flex: 1; min-width: 0; padding: 22px; background: var(--aboro-bg); }
.aboro-ec-h2 { margin: 0 0 16px; color: var(--aboro-text); }
.aboro-ec-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.aboro-ec-card { background: var(--aboro-bg-alt); border-radius: 8px; padding: 14px 18px; min-width: 130px; }
.aboro-ec-card-label { display: block; font-size: 13px; color: var(--aboro-muted); }
.aboro-ec-card-num { display: block; font-size: 24px; font-weight: 700; color: var(--aboro-text); }
.aboro-ec-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.aboro-ec-fil { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--aboro-border); background: transparent; color: var(--aboro-muted); cursor: pointer; }
.aboro-ec-fil.is-active { border-color: var(--aboro-primary); color: var(--aboro-primary); background: rgba(226,20,17,.06); }
.aboro-ec-apps { display: flex; flex-direction: column; gap: 8px; }
.aboro-ec-app { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--aboro-border); border-radius: 8px; background: var(--aboro-bg); }
.aboro-ec-app-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aboro-ec-app-title { font-weight: 600; color: var(--aboro-text); }
.aboro-ec-app-ref { font-weight: 400; color: var(--aboro-muted); }
.aboro-ec-app-sub, .aboro-ec-app-hint { font-size: 12px; color: var(--aboro-muted); }
.aboro-ec-app-end { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.aboro-ec-app-title { overflow-wrap: anywhere; }
.aboro-ec-del { cursor: pointer; font-family: inherit; }
.aboro-ec-del:disabled { opacity: .5; cursor: wait; }
/* Pièce : « Télécharger » + « Supprimer » passent sous le nom sur téléphone. */
@media (max-width: 520px) {
  .aboro-ec-app:has(.aboro-ec-del) { flex-wrap: wrap; }
  .aboro-ec-app:has(.aboro-ec-del) .aboro-ec-app-end { width: 100%; }
}
.aboro-ec-new { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--aboro-primary); color: #fff; }
.aboro-ec-app-link { text-decoration: none; color: var(--aboro-muted); font-size: 16px; }
.aboro-ec-app-link:hover { color: var(--aboro-primary); }
.aboro-ec-subhead { font-size: 12px; font-weight: 600; color: var(--aboro-muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; }
.aboro-ec-dl { display: inline-block; font-size: 13px; padding: 6px 14px; border-radius: 6px; border: 1px solid var(--aboro-primary); color: var(--aboro-primary); text-decoration: none; white-space: nowrap; }
.aboro-ec-dl:hover { background: var(--aboro-primary); color: #fff; }
.aboro-ec-ged { padding: 14px 16px; border: 1px dashed var(--aboro-border); border-radius: 8px; font-size: 13px; color: var(--aboro-muted); }
@media (max-width: 600px) {
  .aboro-ec { flex-direction: column; }
  .aboro-ec-aside { width: 100%; flex-basis: auto; }
  .aboro-ec-nav { flex-direction: row; flex-wrap: wrap; }
}

/* ── Page hôte (slug libre, ex. /account/, page Divi Builder) : plein largeur.
   On force TOUS les niveaux Divi (container/section/row/column/module/text) à
   100% + overflow visible pour lever la contrainte de largeur, puis .aboro-ec
   se cape à 1420px centré. Robuste, indépendant de la structure exacte. ── */
.aboro-ec-page #main-content .container,
.aboro-ec-page #main-content .et_builder_inner_content,
.aboro-ec-page #main-content .et_pb_section,
.aboro-ec-page #main-content .et_pb_row,
.aboro-ec-page #main-content .et_pb_row_inner,
.aboro-ec-page #main-content .et_pb_column,
.aboro-ec-page #main-content .et_pb_column_inner,
.aboro-ec-page #main-content .et_pb_module,
.aboro-ec-page #main-content .et_pb_text,
.aboro-ec-page #main-content .et_pb_text_inner {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}
.aboro-ec-page #main-content #left-area { width: 100% !important; }
.aboro-ec-page #main-content #sidebar { display: none !important; }
.aboro-ec-page .aboro-ec {
  width: 100% !important;
  max-width: 1420px !important;
  margin: 0 auto !important;
  transform: none !important;
  min-height: 560px;
}
.aboro-ec-content { padding: 28px 32px; }
.aboro-ec-aside { width: 240px; flex: 0 0 240px; }
@media (max-width: 700px) {
  .aboro-ec-content { padding: 20px; }
  .aboro-ec { min-height: 0; }
}
/* Upload d'une pièce (Mes documents). */
.aboro-ec-upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 22px; padding: 14px 16px; border: 1px solid var(--aboro-border); border-radius: 8px; background: var(--aboro-bg-alt); }
.aboro-ec-upload select, .aboro-ec-upload input[type="file"] { font-size: 13px; }
.aboro-ec-upload .aboro-ec-dl { cursor: pointer; border: 0; background: var(--aboro-primary); color: #fff; }
.aboro-ec-upload .aboro-ec-dl:hover { background: var(--aboro-primary-dark); }
.aboro-ec-upload-msg { width: 100%; font-size: 13px; }
.aboro-ec-upload-msg.err { color: var(--aboro-error); }
.aboro-ec-upload-msg.ok { color: var(--aboro-success); }
/* Mon profil. */
.aboro-ec-profile-intro { font-size: 13px; color: var(--aboro-muted); margin: 0 0 16px; }
.aboro-ec-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; max-width: 760px; }
.aboro-ec-field { display: flex; flex-direction: column; gap: 5px; }
.aboro-ec-field-full { grid-column: 1 / -1; }
.aboro-ec-field span { font-size: 12px; font-weight: 600; color: var(--aboro-muted); }
.aboro-ec-field input { font-size: 14px; padding: 9px 12px; border: 1px solid var(--aboro-border); border-radius: 6px; background: var(--aboro-bg); color: var(--aboro-text); }
.aboro-ec-field input:focus { outline: 2px solid var(--aboro-primary); border-color: var(--aboro-primary); }
/* Groupe de cases à cocher dans « Mon profil » (type de contrat) : la règle
   `.aboro-ec-field input` ci-dessus est pensée pour du texte — sans ces
   surcharges les cases héritaient d'un padding et d'une bordure de champ. */
.aboro-ec-checkgroup { display: flex; flex-wrap: wrap; gap: 14px; padding: 6px 0 2px; }
/* Domaines métier (21 cases) : boîte bordée déroulante, même facture que la
   .aboro-domains-box du formulaire de création (CR 22/09/2026). */
.aboro-ec-checkgroup.aboro-ec-domains {
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 0;
	max-height: 230px;
	overflow-y: auto;
	border: 1px solid var(--aboro-border);
	border-radius: 6px;
	padding: 6px 4px;
	background: #fff;
}
.aboro-ec-domains .aboro-ec-check { padding: 7px 10px; border-radius: 4px; align-items: flex-start; gap: 10px; }
.aboro-ec-domains .aboro-ec-check:hover { background: #f5f5f5; }
.aboro-ec-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--aboro-text); cursor: pointer; }
.aboro-ec-check input[type="checkbox"] { width: auto; padding: 0; border: 0; background: none; margin: 0; }
.aboro-ec-form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.aboro-ec-pending { border: 1px solid var(--aboro-border); border-left: 4px solid var(--aboro-primary); border-radius: 8px; background: var(--aboro-bg-alt); padding: 16px 18px; max-width: 760px; }
.aboro-ec-pending > strong { display: block; color: var(--aboro-primary); font-size: 15px; margin-bottom: 4px; }
.aboro-ec-pending > p { font-size: 13px; color: var(--aboro-muted); margin: 0 0 12px; }
.aboro-ec-diff { margin: 0 0 14px; }
.aboro-ec-diff-row { display: grid; grid-template-columns: 200px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--aboro-border); font-size: 14px; }
.aboro-ec-diff-row dt { color: var(--aboro-muted); font-weight: 600; }
.aboro-ec-diff-row dd { margin: 0; }
.aboro-ec-diff-row .old { color: var(--aboro-muted); text-decoration: line-through; }
.aboro-ec-diff-row .arr { color: var(--aboro-muted); }
.aboro-ec-diff-row .new { color: var(--aboro-text); font-weight: 600; }
.aboro-ec-dl.ghost { background: transparent; border: 1px solid var(--aboro-border); color: var(--aboro-muted); }
.aboro-ec-dl.ghost:hover { border-color: var(--aboro-primary); color: var(--aboro-primary); background: transparent; }
@media (max-width: 700px) { .aboro-ec-form { grid-template-columns: 1fr; } .aboro-ec-diff-row { grid-template-columns: 1fr; gap: 2px; } }

/* Indication sous le formulaire de dépôt : pièces cumulatives (30/09/2026). */
.aboro-ec-upload-hint {
  margin: 8px 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #6b6b6b;
}
