/* Correctif ciblé demandé : Planning général mobile
   - supprime le grand espace vide au-dessus de la grille calendrier
   - garde la vue Liste visible et lisible
   - uniquement téléphone/tablette, sans toucher à la logique métier */
@media (max-width: 768px){
  .page-calendar #calendar,
  .page-planning_vehicles #calendar,
  .page-planning_rooms #calendar{
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .page-calendar .fc .fc-header-toolbar,
  .page-planning_vehicles .fc .fc-header-toolbar,
  .page-planning_rooms .fc .fc-header-toolbar{
    margin-bottom: 6px !important;
  }

  .page-calendar .fc .fc-view-harness,
  .page-calendar .fc .fc-view-harness-active,
  .page-planning_vehicles .fc .fc-view-harness,
  .page-planning_vehicles .fc .fc-view-harness-active,
  .page-planning_rooms .fc .fc-view-harness,
  .page-planning_rooms .fc .fc-view-harness-active{
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .page-calendar .fc .fc-scroller,
  .page-planning_vehicles .fc .fc-scroller,
  .page-planning_rooms .fc .fc-scroller{
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .page-calendar .fc .fc-daygrid-body,
  .page-calendar .fc .fc-daygrid-body table,
  .page-calendar .fc .fc-scrollgrid-sync-table,
  .page-planning_vehicles .fc .fc-daygrid-body,
  .page-planning_vehicles .fc .fc-daygrid-body table,
  .page-planning_vehicles .fc .fc-scrollgrid-sync-table,
  .page-planning_rooms .fc .fc-daygrid-body,
  .page-planning_rooms .fc .fc-daygrid-body table,
  .page-planning_rooms .fc .fc-scrollgrid-sync-table{
    height: auto !important;
    min-height: 0 !important;
  }

  .page-calendar .fc .fc-daygrid-day-frame,
  .page-planning_vehicles .fc .fc-daygrid-day-frame,
  .page-planning_rooms .fc .fc-daygrid-day-frame{
    min-height: 54px !important;
    padding: 2px 3px !important;
  }

  .page-calendar .fc .fc-daygrid-day-events,
  .page-planning_vehicles .fc .fc-daygrid-day-events,
  .page-planning_rooms .fc .fc-daygrid-day-events{
    margin-top: 1px !important;
    min-height: 0 !important;
  }

  /* Vue Liste : affichage clair date / heure / personne / service / véhicule-salle */
  .page-calendar .fc .fc-footer-toolbar,
  .page-planning_vehicles .fc .fc-footer-toolbar,
  .page-planning_rooms .fc .fc-footer-toolbar{
    display: flex !important;
    gap: 6px !important;
    margin-top: 8px !important;
    margin-bottom: 10px !important;
  }

  .page-calendar .fc .fc-listWeek-button,
  .page-planning_vehicles .fc .fc-listWeek-button,
  .page-planning_rooms .fc .fc-listWeek-button{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .page-calendar .fc .fc-list,
  .page-planning_vehicles .fc .fc-list,
  .page-planning_rooms .fc .fc-list{
    border: 0 !important;
    background: #fff !important;
  }

  .page-calendar .fc .fc-list-event td,
  .page-planning_vehicles .fc .fc-list-event td,
  .page-planning_rooms .fc .fc-list-event td{
    padding: 6px 4px !important;
  }

  .page-calendar .fc .planning-list-row,
  .page-planning_vehicles .fc .planning-list-row,
  .page-planning_rooms .fc .planning-list-row{
    padding: 6px 0 !important;
  }

  .page-calendar .fc .planning-list-details,
  .page-planning_vehicles .fc .planning-list-details,
  .page-planning_rooms .fc .planning-list-details{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 3px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }
}
