/* v143.6 — Profil : Budgets/Foyer et Sécurité/Confidentialité séparés. */
/* v131 — multi-budgets : sélecteur plat, personnel + partagés. */

#profile-budgets-details .budget-space-list {
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ui-border, var(--line, #e7eaee));
}

#profile-budgets-details .budget-space-row {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--ui-border, var(--line, #e7eaee));
  border-radius: 0;
  background: transparent;
  color: var(--text, #111827);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: none;
}

#profile-budgets-details .budget-space-row:disabled {
  opacity: 1;
  cursor: default;
}

#profile-budgets-details .budget-space-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

#profile-budgets-details .budget-space-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 740;
  letter-spacing: -.12px;
}

#profile-budgets-details .budget-space-copy small {
  color: var(--muted, #737b89);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 560;
}

#profile-budgets-details .budget-space-row.active .budget-space-copy strong,
#profile-budgets-details .budget-space-row.active .budget-space-end {
  color: var(--accent, #087f69);
}

#profile-budgets-details .budget-space-end {
  flex: 0 0 auto;
  color: var(--muted, #9aa1ad);
  font-size: 18px;
  font-weight: 700;
}

#profile-budgets-details .budget-create-shared {
  margin: 10px 0 4px;
  padding-left: 2px !important;
}

#profile-budgets-details .budget-active-label {
  margin-top: 24px;
}

#profile-budgets-details .household-summary {
  margin-top: 0 !important;
}

html[data-theme="dark"] #profile-budgets-details .budget-space-row {
  color: var(--text, #f4f5f7);
}

@media (hover:hover) and (pointer:fine) {
  #profile-budgets-details .budget-space-row:not(:disabled):hover {
    background: color-mix(in srgb, var(--soft, #f5f7f6) 72%, transparent);
  }
}


#profile-privacy-details .privacy-settings-list {
  margin-top: 0;
}
#profile-privacy-details .settings-row {
  min-height: 58px;
}
#profile-budgets-details .household-message {
  margin-top: 12px;
}


/* v143.7 — confidentialité : titre et description réellement empilés */
#profile-privacy-details .privacy-settings-list .settings-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  min-height: 72px !important;
}

#profile-privacy-details .privacy-settings-list .settings-row > span:first-child {
  display: flex !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 5px !important;
}

#profile-privacy-details .privacy-settings-list .settings-row strong,
#profile-privacy-details .privacy-settings-list .settings-row small {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

#profile-privacy-details .privacy-settings-list .settings-row strong {
  font-size: 15px !important;
  line-height: 1.22 !important;
  font-weight: 720 !important;
  color: var(--text) !important;
}

#profile-privacy-details .privacy-settings-list .settings-row small {
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
  color: var(--muted) !important;
  white-space: normal !important;
}

#profile-privacy-details .privacy-settings-list .ios-switch {
  flex: 0 0 auto !important;
  align-self: center !important;
}


/* v143.10 — Budgets : action "Rejoindre un budget" simplifiée et épurée */
#profile-budgets-details .budget-actions-stack {
  margin: 10px 0 2px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

#profile-budgets-details .budget-join-link,
#profile-budgets-details .budget-create-shared {
  margin: 0 !important;
  padding: 8px 2px !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 690 !important;
}

#profile-budgets-details .budget-join-link {
  color: var(--accent, #087f69) !important;
  opacity: 1 !important;
}

#profile-budgets-details .household-join-panel {
  margin: 6px 0 12px !important;
}
