/* v143.4 — stabilisation finale des transitions de navigation.
   Le swipe v1432 est l'unique animation autorisée entre les 5 onglets. */

/* Les anciennes entrées de pages utilitaires ne doivent jamais redémarrer
   lorsque la classe v1432-in-* est retirée à la fin du swipe. */
#month-settings-sheet.app-main-page.open,
#notification-sheet.app-main-page.open,
#profile-sheet.app-main-page.open {
  animation: none !important;
}

/* Accueil <-> Transactions utilisait encore le moteur v139 en parallèle.
   v1432 le remplace désormais entièrement pour la navigation basse. */
body.v139-main-transition #income-section:not([hidden]),
body.v139-main-transition #income-summary:not([hidden]),
body.v139-main-transition #transactions-hub:not([hidden]),
body.v139-main-transition #fixed-section:not([hidden]),
body.v139-main-transition #variable-section:not([hidden]),
body.v139-main-transition .expense-tabs:not([hidden]) {
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
}

/* Quand Réglages ou Profil est ouvert depuis la barre basse, showMenu() émet
   encore l'événement d'animation de sous-page. Pendant le swipe principal,
   cette micro-animation doit être neutralisée pour éviter le rebond du texte. */
body.v1432-tab-transition .v139-section-enter,
body.v1432-tab-transition #settings-menu-view,
body.v1432-tab-transition #profile-menu-view {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  opacity: 1 !important;
}

/* La surface d'une page utilitaire reste parfaitement stable au frame final. */
#month-settings-sheet.app-main-page > .app-main-page-surface,
#notification-sheet.app-main-page > .app-main-page-surface,
#profile-sheet.app-main-page > .app-main-page-surface {
  transform: translate3d(0,0,0) !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Le contenu du snapshot ne doit jamais lancer une animation lors du clonage. */
.v1432-swipe-ghost *,
body.v1432-tab-transition > .v1432-in-right .v139-section-enter,
body.v1432-tab-transition > .v1432-in-left .v139-section-enter {
  animation: none !important;
}
