/* MaPrimaire Plus V2.5 - corrections affichage menu + banque d'étiquettes */
html, body { max-width: 100% !important; overflow-x: hidden !important; }
.mp-card, .mp-board, .mp-match-grid, .mp-layout, main.container { min-width: 0 !important; }
.mp-match-grid { max-width: 100% !important; }
.mp-drop-zone, .mp-label, .mp-match-card { max-width: 100% !important; overflow-wrap: anywhere !important; }
@media (min-width: 768px) {
  .mp-label-bank-follow-context { position: relative !important; }
  .mp-label-bank-follow-context.mp-label-bank-is-following {
    padding-right: calc(var(--mp-label-bank-follow-width, 260px) + 24px) !important;
  }
  .mp-label-bank-follow-context.mp-label-bank-is-following .mp-board,
  .mp-label-bank-follow-context.mp-label-bank-is-following .mp-match-grid {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .mp-label-bank-follow-context.mp-label-bank-is-following .mp-match-grid {
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)) !important;
  }
  .mp-label-bank.mp-label-bank-follow-scroll {
    max-width: min(280px, calc(100vw - 30px)) !important;
  }
}
@media (max-width: 767px) {
  .mp-label-bank-follow-context.mp-label-bank-is-following { padding-right: 0 !important; }
  .mp-match-grid { grid-template-columns: 1fr !important; }
}