/* RC23.27: gedeelde correcties voor ALLE leden, na beide dashboards geladen.
   Zowel dashboard.css (pilot) als dashboard-live.css (overige leden) gebruiken
   voortaan exact dezelfde responsive regels. */
@media (max-width: 767px) {
  .den-wrap .den-portal-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .den-wrap .den-dashboard-summary,
  .den-wrap .den-agenda-lanes {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .den-wrap .den-modal[open] {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  .den-wrap .den-modal[open] > .den-modal-shell {
    height: 100dvh !important;
    max-height: 100dvh !important;
  }
}

/* D! CONNECT is op ELKE schermbreedte een schermvullende omgeving.
   Andere modules blijven op desktop naar wens compacte pop-ups. */
.den-wrap .den-modal.den-modal-community[open] {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.den-wrap .den-modal.den-modal-community[open] > .den-modal-shell {
  height: 100dvh !important;
  max-height: 100dvh !important;
}
.den-wrap .den-modal.den-modal-community .den-modal-scroll {
  min-height: 0;
  overflow-y: auto;
}
