/* Scoped styles for your gym calendar table */
.gym-calendar-table .calendar-cell {
  position: relative;
  min-height: 140px;
  max-height: 140px;
  min-width: 140px;
  max-width: 140px;
  vertical-align: top;
  padding: 0.5rem;
  border: 1px solid #dee2e6;
  background-color: #fff;
  overflow: hidden;
}

.gym-calendar-table .calendar-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  position: relative;
  padding-top: 1.5rem;
}

.gym-calendar-table .calendar-date {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #6c757d;
  z-index: 1;
}

.gym-calendar-table .badge {
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: normal;
  word-wrap: break-word;
}

.gym-calendar-table .session-label {
  font-size: 0.75rem;
  text-overflow: ellipsis;
  overflow: hidden;
  display: block;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;

}

.gym-calendar-table th,
.gym-calendar-table td {
  width: 14.28%; /* 100% / 7 days */
  table-layout: fixed;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
}


/* Ensure responsiveness for smaller devices */
@media (max-width: 768px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .gym-calendar-table .calendar-cell {
    min-width: 120px;
  }

  .gym-calendar-table .badge {
    font-size: 0.7rem;
  }

  .gym-calendar-table .calendar-date {
    font-size: 0.6rem;
  }
}