/* ORDO v2.74 · fixed calendar cells + duration-scaled event bars */
#agendaModule .calendar-grid{align-items:stretch!important}
#agendaModule .calendar-grid .day{
  min-height:138px!important;
  height:138px!important;
  max-height:138px!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  position:relative!important;
}
#agendaModule .calendar-grid .day .day-num{flex:0 0 auto!important}
#agendaModule .calendar-grid .day .event-chip{
  flex:0 0 auto!important;
  min-height:18px!important;
  height:var(--ordo-event-bar-height,24px)!important;
  max-height:34px!important;
  line-height:1.1!important;
  padding:3px 7px!important;
  margin-top:3px!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
  display:flex!important;
  align-items:center!important;
  box-sizing:border-box!important;
}
#agendaModule .calendar-grid .day .event-chip[data-ordo-duration-label]::after{
  content:attr(data-ordo-duration-label);
  margin-left:auto;
  padding-left:6px;
  font-size:10px;
  opacity:.72;
  flex:0 0 auto;
}
#agendaModule .calendar-grid .day .more-events{
  flex:0 0 auto!important;
  margin-top:3px!important;
  font-size:11px!important;
  line-height:1.1!important;
}
#agendaModule .calendar-grid .day.ordo-event-drop-target{overflow:hidden!important}
@media(max-width:900px){
  #agendaModule .calendar-grid .day{min-height:126px!important;height:126px!important;max-height:126px!important}
  #agendaModule .calendar-grid .day .event-chip{max-height:30px!important;padding:2px 5px!important}
  #agendaModule .calendar-grid .day .event-chip[data-ordo-duration-label]::after{display:none}
}
@media(max-width:640px){
  #agendaModule .calendar-grid .day{min-height:112px!important;height:112px!important;max-height:112px!important}
  #agendaModule .calendar-grid .day .event-chip{min-height:17px!important;max-height:26px!important;font-size:10px!important}
}
