/* v138 - My Profile composition only. No effect on delegate Overview, Admin or public screens. */
body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-columns {
  display:grid;
  grid-template-columns:minmax(300px, .88fr) minmax(0, 1.62fr);
  gap:18px;
  align-items:start;
  min-width:0;
  margin-bottom:20px;
}
body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-side,
body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-detail {
  display:flex;flex-direction:column;gap:18px;min-width:0;
}
body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-columns .card {
  width:100%;min-width:0;margin:0!important;
  padding:clamp(18px,1.6vw,27px)!important;
  border:1px solid #dce5f0!important;border-radius:11px!important;
  background:#fff!important;box-shadow:0 5px 18px rgba(19,45,82,.045)!important;
  box-sizing:border-box;overflow-wrap:anywhere;
}
body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-columns .card h2,
body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-columns .card h3 {
  font-size:clamp(18px,1.45vw,22px);line-height:1.3;margin:0 0 16px;
  font-weight:800;color:#14315a;
}
/* Compact summary: one readable label/value per row in the left column. */
body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-side .details {
  display:grid!important;grid-template-columns:1fr!important;gap:0!important;margin:0!important;
}
body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-side .details>div {padding:12px 0!important;}
/* Registration details use two columns on desktop, one on narrow screens. */
body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-detail .details {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:0 18px!important;
}
/* Center invoice controls with distinct, repeatable spacing. */
body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-side :is(.toolbar,.actions) {
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;gap:13px!important;margin:18px 0 0!important;
}
body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-side :is(.toolbar,.actions) :is(a.button,button.button,a.primary,button.primary) {
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:min(100%,280px)!important;max-width:100%!important;min-width:0!important;
  min-height:43px!important;flex:0 0 auto!important;margin:0!important;
  text-align:center!important;white-space:normal!important;box-sizing:border-box;
}
@media(max-width:1020px) {
 body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-columns {
   grid-template-columns:minmax(265px,.9fr) minmax(0,1.1fr);gap:14px;
 }
 body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-detail .details {
   grid-template-columns:1fr!important;
 }
}
@media(max-width:760px) {
 body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-columns {
   grid-template-columns:minmax(0,1fr);gap:14px;
 }
 body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-side,
 body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-detail {gap:14px;}
 body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-detail .details {
   grid-template-columns:1fr!important;
 }
 body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-columns .card {padding:19px!important;}
}


/* v139 - Ensure Payment Document buttons on My Profile are centred with generous spacing,
   even when the invoice links are rendered directly in the card rather than inside a toolbar. */
body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-side > .card:nth-child(2) a.button,
body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-side > .card:nth-child(2) a.primary,
body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-side > .card:nth-child(2) button.button,
body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-side > .card:nth-child(2) button.primary {
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:min(100%,300px)!important;max-width:100%!important;min-height:44px!important;
  margin-left:auto!important;margin-right:auto!important;
  box-sizing:border-box;text-align:center!important;white-space:normal!important;
}
body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-side > .card:nth-child(2) :is(a.button,a.primary,button.button,button.primary) + :is(a.button,a.primary,button.button,button.primary) {
  margin-top:14px!important;
}
body.nx-delegate-workspace #main.nx135-delegate-profile .nx138-profile-side > .card:nth-child(2) :is(a.button,a.primary,button.button,button.primary):first-of-type {
  margin-top:18px!important;
}
