/* RC127.46 — installed PWA / TWA bottom dock. Hidden on ordinary web pages. */
#lp-mobile-dock{display:none!important}
@media (max-width:850px){
 html.lp-mobile-dock-enabled #lp-mobile-dock{
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));
  position:fixed;inset:auto 0 0;z-index:900;
  height:calc(65px + env(safe-area-inset-bottom,0px));box-sizing:border-box;
  padding:5px 3px calc(5px + env(safe-area-inset-bottom,0px));
  border-top:1px solid #e6e7eb;border-radius:14px 14px 0 0;
  background:rgba(255,255,255,.98);box-shadow:0 -4px 18px rgba(22,32,46,.12);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 }
 html.lp-mobile-dock-enabled body:not(.lp-mobile-dock-keyboard){
  padding-bottom:calc(65px + env(safe-area-inset-bottom,0px))!important;
 }
 #lp-mobile-dock .lp-mobile-dock-link{
  display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;
  min-width:0;min-height:46px;padding:3px 0;border:0;border-radius:9px;
  background:transparent;color:#596575;text-decoration:none!important;
  font-size:10px;font-weight:550;line-height:1.15;letter-spacing:0;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
 }
 #lp-mobile-dock .lp-mobile-dock-link svg{
  width:22px;height:22px;display:block;flex:none;
 }
 #lp-mobile-dock .lp-mobile-dock-link span{text-align:center;white-space:nowrap}
 #lp-mobile-dock .lp-mobile-dock-link:is(.is-active,:focus-visible){
  color:var(--lp-mobile-dock-accent,#D7262E);background:#fff3f3;
 }
 #lp-mobile-dock .lp-mobile-dock-link:focus-visible{
  outline:2px solid var(--lp-mobile-dock-accent,#D7262E);outline-offset:-2px;
 }
 /* Core-owned professional action button must remain above the dock. */
 html.lp-mobile-dock-enabled body:not(.lp-mobile-dock-keyboard) #lp-pro-quick{
  bottom:calc(65px + env(safe-area-inset-bottom,0px) + 14px)!important;
 }
 html.lp-mobile-dock-enabled body.lp-mobile-dock-keyboard #lp-mobile-dock{display:none!important}
 html.lp-mobile-dock-enabled body.lp-mobile-dock-keyboard{padding-bottom:0!important}
}
@media (max-width:340px){
 #lp-mobile-dock .lp-mobile-dock-link{font-size:9px;letter-spacing:-.15px}
 #lp-mobile-dock .lp-mobile-dock-link svg{width:20px;height:20px}
}

/* RC127.49 — Le menu Dashboard Pro/Institution est un panneau fixe
   defilant (100dvh). Quand le dock de 65px est visible, il recouvre
   la derniere entree (Mon compte ou Mon offre Collectivite).
   La reserve appartient a la zone defilante du menu, et non seulement au body.
   Ne rien modifier pour le site navigateur classique ni pendant la saisie. */
@media (max-width:760px){
 html.lp-mobile-dock-enabled body:not(.lp-mobile-dock-keyboard) .lp-app .lp-sidebar{
  padding-bottom:calc(24px + 65px + env(safe-area-inset-bottom,0px) + 18px)!important;
  scroll-padding-bottom:calc(65px + env(safe-area-inset-bottom,0px) + 18px);
 }
 /* Les dernieres commandes du panneau Mon compte Particulier restent
    accessibles sous le dock dans les ecrans les plus courts. */
 html.lp-mobile-dock-enabled body:not(.lp-mobile-dock-keyboard) .lp-consumer-layout .lp-consumer-main{
  padding-bottom:calc(90px + env(safe-area-inset-bottom,0px));
 }
}
