/**
 * Correctifs barre dashboard mobile (iOS) — chargé sans recompilation Gulp.
 */
.dash-sidebar [data-saas-dropdown],
.dash-sidebar__item--profile {
  position: relative;
}

@media (max-width: 768px) {
  .dash-sidebar {
    overflow: visible;
    z-index: 1100;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .dash-sidebar__bottom {
    overflow: visible;
  }

  .dash-sidebar__profile-trigger {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dash-sidebar__profile-dropdown {
    left: auto;
    right: 0;
    top: auto;
    bottom: calc(100% + 8px);
    z-index: 1200;
  }

  body:has(.dash-sidebar) #page {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
}
