/* Icon-to-label spacing for the six audited navigation and management groups. */
:is(
  .profile-menu > a,
  #ContentPlaceHolderMain_pannelloAmministratore > .list-group-item > a,
  .customer-management-actions > .btn,
  .customer-gallery-section > #ContentPlaceHolderMain_LinkButton8,
  button[data-target="#modal-servizi"],
  .management-modal[id^="modal-evento-"] .modal-footer > a.btn,
  .customer-page-content .customer-related-links p > a,
  .customer-page-content [id$="_GuidaClienteBox"] > a
) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  text-align: start;
}

:is(
  .profile-menu > a,
  #ContentPlaceHolderMain_pannelloAmministratore > .list-group-item > a,
  .customer-management-actions > .btn,
  .customer-gallery-section > #ContentPlaceHolderMain_LinkButton8,
  button[data-target="#modal-servizi"],
  .management-modal[id^="modal-evento-"] .modal-footer > a.btn,
  .customer-page-content .customer-related-links p > a,
  .customer-page-content [id$="_GuidaClienteBox"] > a
) > .fa {
  flex: 0 0 auto;
  margin: 0;
}

.portal-icon-label {
  display: block;
  min-width: 0;
  white-space: normal;
  text-align: start;
}

:is(
  .profile-menu > a,
  .customer-management-actions > .btn,
  .customer-gallery-section > #ContentPlaceHolderMain_LinkButton8,
  button[data-target="#modal-servizi"],
  .management-modal[id^="modal-evento-"] .modal-footer > a.btn
) {
  justify-content: center;
  height: auto;
}

/* The management toolbar wraps whole buttons without narrowing translated labels. */
.customer-page-content .customer-management-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 50px;
}

.customer-page-content .customer-management-actions > .btn {
  float: none;
  min-width: 0;
  margin: 0;
}

@media (max-width: 767px) {
  .customer-page-content .customer-management-actions {
    margin-right: 0;
    margin-left: 0;
  }
}
