/* v131 — multi-budgets : sélecteur plat, personnel + partagés. */

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

#profile-household-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-household-details .budget-space-row:disabled {
  opacity: 1;
  cursor: default;
}

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

#profile-household-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-household-details .budget-space-copy small {
  color: var(--muted, #737b89);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 560;
}

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

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

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

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

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

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

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