/* PALUX 515: schedule calendar pans across days; week navigation stays explicit. */
.calendar-board{touch-action:pan-x pan-y pinch-zoom;overscroll-behavior-x:contain}
.palux-schedule-swipe-hint{display:none}
@media(max-width:760px){
  .palux-schedule-summary-hero.module-hero{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    width:100%!important;min-width:0!important;box-sizing:border-box!important;
    gap:14px!important;padding:16px!important;
  }
  .palux-schedule-summary-copy{width:100%!important;min-width:0!important}
  .palux-schedule-summary-copy h2{font-size:clamp(23px,6vw,29px)!important;line-height:1.14!important}
  .palux-schedule-summary-copy p{font-size:13px!important;line-height:1.38!important;margin:0!important}
  /* Override the shared module stat rule that squeezes its last child to 78px. */
  .module-hero.palux-schedule-summary-hero > div.palux-schedule-summary-grid:last-child{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;min-width:0!important;max-width:none!important;
    flex:0 0 auto!important;text-align:left!important;overflow-wrap:normal!important;
    gap:9px!important;
  }
  .palux-schedule-summary-grid .palux-schedule-summary-card{
    display:flex!important;flex-direction:column!important;align-items:flex-start!important;
    width:100%!important;min-width:0!important;min-height:78px!important;
    box-sizing:border-box!important;padding:9px 11px!important;text-align:left!important;
  }
  .palux-schedule-summary-card strong{font-size:25px!important;line-height:1!important}
  .palux-schedule-summary-card span,.palux-schedule-summary-card small{
    max-width:100%!important;white-space:normal!important;
    overflow-wrap:normal!important;word-break:normal!important;line-height:1.18!important;
  }
  .palux-schedule-summary-card span{font-size:12px!important}
  .palux-schedule-summary-card small{font-size:10px!important}
  .schedule-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .schedule-tab{min-width:0!important;padding:10px 7px!important;line-height:1.2!important}
  .palux-schedule-nav{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  .palux-schedule-nav-title small{display:block!important;font-size:12px!important;line-height:1.3!important;margin-top:4px!important}
  .palux-schedule-nav-tools{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important;gap:8px!important}
  .palux-schedule-search,.palux-schedule-date,.palux-schedule-week-buttons{grid-column:1!important;width:100%!important;min-width:0!important;margin:0!important}
  .palux-schedule-week-buttons{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
  .palux-schedule-week-buttons .secondary-btn{font-size:11px!important;white-space:normal!important;line-height:1.15!important;min-height:44px!important;height:auto!important}
  .schedule-legend{gap:9px 13px!important;font-size:11px!important;padding:10px 0!important}
  .palux-schedule-swipe-hint{display:block;font-size:12px;color:var(--muted);margin:4px 0 9px;line-height:1.3}
  .calendar-board{
    display:grid!important;grid-template-columns:132px repeat(7,165px)!important;
    width:100%!important;max-width:100%!important;box-sizing:border-box!important;
    overflow-x:auto!important;overflow-y:auto!important;
    touch-action:pan-x pan-y pinch-zoom!important;-webkit-overflow-scrolling:touch;
    scrollbar-gutter:auto!important;
  }
  .calendar-board>.calendar-cell{min-width:0!important;box-sizing:border-box!important;padding:9px!important}
  .calendar-board>.employee-cell{left:0!important;z-index:5!important}
  .calendar-board>.calendar-head{top:0!important;z-index:10!important}
  .calendar-board>.calendar-head.employee-cell{z-index:14!important}
  .calendar-board .shift-chip{touch-action:pan-x pan-y pinch-zoom!important}
  .calendar-board .employee-cell{overflow-wrap:anywhere;font-size:13px;line-height:1.3}
  .calendar-board .calendar-head{font-size:13px;white-space:nowrap}
}
