/* ================================================================
   BELLEO — AGENDA PLEINE PAGE
   Modification uniquement visuelle, limitée à la page Agenda.
   ================================================================ */

/*
 * Bureau uniquement :
 * - retrait du bandeau supérieur global ;
 * - agenda collé au menu latéral ;
 * - suppression des marges extérieures ;
 * - utilisation de toute la hauteur et de toute la largeur disponibles.
 */

@media (min-width: 901px) {

  body.agenda-page {
    overflow: hidden;
  }

  .agenda-page .app-workspace {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  /*
   * Retire uniquement sur l’agenda le bandeau :
   * Essentiel / Agenda / Nouveau rendez-vous / Notifications.
   */
  .agenda-page .app-topbar {
    display: none !important;
  }

  /*
   * Les éventuels bandeaux importants restent visibles
   * et réduisent automatiquement la hauteur disponible.
   */
  .agenda-page .app-main {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    padding: 0 !important;
    overflow: hidden;
  }

  .agenda-page .page-container {
    width: 100% !important;
    max-width: none !important;
    height: 100%;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
  }

  .agenda-page .page-intro {
    display: none !important;
  }

  /*
   * L’agenda vient directement toucher la zone du menu latéral
   * et les bords droit, haut et bas de l’espace professionnel.
   */
  .agenda-page .agenda-shell {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    height: 100%;
    min-height: 0;
    margin: 0 !important;
    border-radius: 0 !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .agenda-page .agenda-toolbar {
    flex: 0 0 auto;
    border-radius: 0 !important;
  }

  /*
   * Vue Jour et 3 jours :
   * la grille remplit automatiquement tout l’espace restant.
   */
  .agenda-page .agenda-grid-wrap {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    max-height: none !important;
    overflow: auto;
  }

  /*
   * Vue Semaine :
   * le tableau synthétique profite lui aussi de toute la page.
   */
  .agenda-page .agenda-week-board {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }

  .agenda-page .agenda-grid-wrap.is-week-hidden {
    display: none !important;
  }

  .agenda-page .agenda-legend {
    flex: 0 0 auto;
    border-radius: 0 !important;
  }
}

/*
 * Sur téléphone, on conserve volontairement le bandeau supérieur :
 * il contient le bouton ouvrant le menu latéral.
 */
@media (max-width: 900px) {

  .agenda-page .app-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .agenda-page .page-container {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .agenda-page .agenda-shell {
    border-left: 0;
    border-right: 0;
    border-radius: 0 !important;
  }
}
