/**
 * Budget — mise en page boutons lf-btn (pilote handoff)
 * Marqueur : LF-BTN-BUDGET-20260722
 */

.liofo-budget-page .liofo-budget-card-head-actions,
.liofo-budget-page .liofo-budget-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* 2026-07-22 — barres d’action compactes (Mes banques, Transactions, Objectifs) */
.liofo-budget-page .liofo-budget-card-head-actions .lf-btn,
.liofo-budget-page .liofo-budget-panel-actions .lf-btn {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
}

.liofo-budget-page .liofo-budget-panel-actions {
  flex: 0 1 auto;
  justify-content: flex-end;
}

.liofo-budget-page .liofo-budget-panel-actions .lf-btn--full {
  width: auto;
}

.liofo-budget-page .liofo-budget-actions-row--duo .lf-btn {
  flex: 1 1 calc(50% - 8px);
  min-width: 0;
}

.liofo-budget-page .liofo-budget-actions-row .lf-btn--full,
.liofo-budget-page .liofo-budget-quick-action.lf-btn--full {
  width: 100%;
}

.liofo-budget-page .liofo-budget-month-nav .lf-btn {
  flex-shrink: 0;
}

.liofo-budget-modal__footer,
.liofo-budget-modals-root .liofo-mh-modal__footer,
#popup-formulaires.liofo-budget-modal .liofo-budget-modal__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.liofo-budget-modal__footer .lf-btn,
.liofo-budget-modals-root .liofo-mh-modal__footer .lf-btn {
  flex: 0 1 auto;
}

@media (max-width: 520px) {
  .liofo-budget-page .liofo-budget-actions-row--duo {
    flex-direction: column;
  }

  .liofo-budget-page .liofo-budget-actions-row--duo .lf-btn {
    width: 100%;
    flex: 1 1 100%;
  }

  .liofo-budget-modal__footer .lf-btn {
    flex: 1 1 calc(50% - 6px);
    min-width: calc(50% - 6px);
  }

  .liofo-budget-modal__footer .lf-btn--full {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* Neutralise anciens styles chart-period / wallet CTA quand lf-btn est présent */
.liofo-budget-page .lf-btn,
.liofo-budget-modals-root .lf-btn,
#popup-formulaires.liofo-budget-modal .lf-btn {
  background-image: none !important;
  border-width: 0;
}

.liofo-budget-page .lf-btn::before,
.liofo-budget-modals-root .lf-btn::before,
#popup-formulaires.liofo-budget-modal .lf-btn::before {
  content: none !important;
  display: none !important;
}

.liofo-budget-page .chart-period-btn.lf-btn,
.liofo-budget-page .wallet-page-primary-cta.lf-btn {
  min-height: 48px;
}
