/* =========================================================
   Calendar weather icon-only fit fix
   Keeps the weather inside each day tile as image/icon only.
   Scoped to the Plans / Schedule tab.
   ========================================================= */

#scheduleTab .big-calendar-day-header {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: inline-grid !important;
  grid-template-columns: auto auto !important;
  align-items: start !important;
  justify-content: start !important;
  column-gap: 2px !important;
  overflow: hidden !important;
}

#scheduleTab .big-calendar-date-number {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

#scheduleTab .calendar-weather-chip {
  width: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  display: inline-grid !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  align-self: start !important;
  justify-self: start !important;
  padding: 0 !important;
  margin: 1px 0 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  line-height: 1 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  pointer-events: auto !important;
}

#scheduleTab .calendar-weather-icon {
  width: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  display: grid !important;
  place-items: center !important;
  font-size: 11px !important;
  line-height: 1 !important;
  overflow: hidden !important;
  transform: none !important;
}

#scheduleTab .calendar-weather-temp {
  display: none !important;
}

#scheduleTab .big-calendar-day-header .big-calendar-add-dot {
  display: none !important;
}

@media (max-width: 820px) {
  #scheduleTab .big-calendar-day {
    padding: clamp(3px, 1.1vw, 5px) !important;
  }

  #scheduleTab .big-calendar-day-header {
    min-height: 14px !important;
    height: auto !important;
    column-gap: 1px !important;
  }

  #scheduleTab .big-calendar-date-number {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 0 3px 0 !important;
    font-size: clamp(9px, 3vw, 12px) !important;
    line-height: 1 !important;
  }

  #scheduleTab .big-calendar-day.today .big-calendar-date-number,
  #scheduleTab .big-calendar-day.selected .big-calendar-date-number {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 0 0 3px 0 !important;
  }

  #scheduleTab .big-calendar-day.today .big-calendar-date-number::after,
  #scheduleTab .big-calendar-day.selected .big-calendar-date-number::after {
    bottom: 0 !important;
    width: 100% !important;
    min-width: 9px !important;
    max-width: 13px !important;
    height: 2px !important;
  }

  #scheduleTab .calendar-weather-chip,
  #scheduleTab .calendar-weather-icon {
    width: clamp(9px, 2.8vw, 12px) !important;
    min-width: clamp(9px, 2.8vw, 12px) !important;
    max-width: clamp(9px, 2.8vw, 12px) !important;
    height: clamp(9px, 2.8vw, 12px) !important;
    min-height: clamp(9px, 2.8vw, 12px) !important;
    max-height: clamp(9px, 2.8vw, 12px) !important;
    font-size: clamp(8px, 2.45vw, 10px) !important;
  }

  #scheduleTab .calendar-weather-chip {
    margin-top: 0 !important;
  }

  #scheduleTab .big-calendar-events {
    margin-top: 2px !important;
  }
}

@media (max-width: 380px) {
  #scheduleTab .big-calendar-day {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }

  #scheduleTab .big-calendar-day-header {
    column-gap: 0 !important;
  }

  #scheduleTab .calendar-weather-chip,
  #scheduleTab .calendar-weather-icon {
    width: 9px !important;
    min-width: 9px !important;
    max-width: 9px !important;
    height: 9px !important;
    min-height: 9px !important;
    max-height: 9px !important;
    font-size: 8px !important;
  }
}

/* =========================================================
   Calendar weather icon alignment polish
   - keeps icon-only weather inside the date header
   - aligns the emoji with the date number
   - makes the icon slightly larger without adding padding
   ========================================================= */

#scheduleTab .big-calendar-day-header {
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  display: inline-flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  overflow: visible !important;
}

#scheduleTab .big-calendar-date-number {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  display: inline-grid !important;
  place-items: start center !important;
  padding: 0 0 4px 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
}

#scheduleTab .big-calendar-day.today .big-calendar-date-number,
#scheduleTab .big-calendar-day.selected .big-calendar-date-number {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 0 4px 0 !important;
  line-height: 1 !important;
}

#scheduleTab .big-calendar-day.today .big-calendar-date-number::after,
#scheduleTab .big-calendar-day.selected .big-calendar-date-number::after {
  bottom: 0 !important;
  width: 100% !important;
  min-width: 11px !important;
  max-width: 15px !important;
  height: 2px !important;
}

#scheduleTab .calendar-weather-chip {
  flex: 0 0 auto !important;
  width: 15px !important;
  min-width: 15px !important;
  max-width: 15px !important;
  height: 15px !important;
  min-height: 15px !important;
  max-height: 15px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: -1px 0 0 1px !important;
  line-height: 1 !important;
  overflow: visible !important;
}

#scheduleTab .calendar-weather-icon {
  width: 15px !important;
  min-width: 15px !important;
  max-width: 15px !important;
  height: 15px !important;
  min-height: 15px !important;
  max-height: 15px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  line-height: 15px !important;
  transform: translateY(-1px) !important;
  overflow: visible !important;
}

@media (max-width: 820px) {
  #scheduleTab .big-calendar-day {
    padding: clamp(4px, 1.3vw, 6px) !important;
  }

  #scheduleTab .big-calendar-day-header {
    display: inline-flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    column-gap: 0 !important;
    gap: 2px !important;
    min-height: 16px !important;
  }

  #scheduleTab .big-calendar-date-number,
  #scheduleTab .big-calendar-day.today .big-calendar-date-number,
  #scheduleTab .big-calendar-day.selected .big-calendar-date-number {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 0 4px 0 !important;
    font-size: clamp(10px, 3.15vw, 13px) !important;
    line-height: 1 !important;
  }

  #scheduleTab .calendar-weather-chip,
  #scheduleTab .calendar-weather-icon {
    width: clamp(13px, 3.4vw, 15px) !important;
    min-width: clamp(13px, 3.4vw, 15px) !important;
    max-width: clamp(13px, 3.4vw, 15px) !important;
    height: clamp(13px, 3.4vw, 15px) !important;
    min-height: clamp(13px, 3.4vw, 15px) !important;
    max-height: clamp(13px, 3.4vw, 15px) !important;
  }

  #scheduleTab .calendar-weather-chip {
    margin: -1px 0 0 1px !important;
  }

  #scheduleTab .calendar-weather-icon {
    font-size: clamp(11.5px, 3vw, 13px) !important;
    line-height: clamp(13px, 3.4vw, 15px) !important;
    transform: translateY(-1px) !important;
  }
}

@media (max-width: 380px) {
  #scheduleTab .big-calendar-day-header {
    gap: 1px !important;
  }

  #scheduleTab .calendar-weather-chip,
  #scheduleTab .calendar-weather-icon {
    width: 12px !important;
    min-width: 12px !important;
    max-width: 12px !important;
    height: 12px !important;
    min-height: 12px !important;
    max-height: 12px !important;
  }

  #scheduleTab .calendar-weather-icon {
    font-size: 11px !important;
    line-height: 12px !important;
  }
}
