/**
 * All rules scoped under .sgs-schedule to avoid clashing with themes
 * (e.g. Bootstrap .row, .day, .class).
 */
.sgs-schedule {
  box-sizing: border-box;
  max-width: 100%;
  isolation: isolate;
}

.sgs-schedule *,
.sgs-schedule *::before,
.sgs-schedule *::after {
  box-sizing: border-box;
}

.sgs-schedule__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.sgs-schedule__day {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #fff;
  margin: 0;
}

.sgs-schedule__day-header {
  background: #FEB82B;
  color: #fff;
  padding: 14px;
  font-weight: bold;
  font-size: 18px;
  margin: 0;
}

.sgs-schedule__row {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
  margin: 0;
}

.sgs-schedule__row:last-child {
  border-bottom: none;
}

.sgs-schedule__time {
  font-weight: bold;
  color: #666;
  min-width: 60px;
  flex-shrink: 0;
  margin: 0;
}

.sgs-schedule__class {
  flex: 1;
  text-align: right;
  font-weight: 500;
  margin: 0;
  min-width: 0;
}

.sgs-schedule__class--grupal {
  color: #6d6d6d;
}

.sgs-schedule__class--masters {
  color: #15887a;
  font-weight: 600;
}

@media (min-width: 768px) {
  .sgs-schedule__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }

  .sgs-schedule__row {
    justify-content: flex-start;
    gap: 10px;
  }

  .sgs-schedule__class {
    text-align: left;
  }
}
