/* calendar.css — calendario mensual del profesor */

.cal-wrap { background: #fff; border: 0.5px solid rgba(0,0,0,.12); border-radius: 12px; overflow: hidden; }

/* ─── Cabecera ───────────────────────────────────────────────────────────── */
.cal-header {
  padding: 1rem 1.25rem; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 0.5px solid rgba(0,0,0,.08);
}
.cal-title { font-size: 15px; font-weight: 500; }
.cal-nav   { display: flex; gap: 8px; align-items: center; }
.cal-nav button {
  background: none; border: 0.5px solid rgba(0,0,0,.15);
  border-radius: 6px; width: 28px; height: 28px; cursor: pointer; font-size: 14px;
}
.cal-nav button:hover { border-color: rgba(0,0,0,.3); }

/* ─── Cuadrícula ─────────────────────────────────────────────────────────── */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }

.cal-day-name {
  text-align: center; font-size: 11px; color: #888;
  padding: 8px 0; border-bottom: 0.5px solid rgba(0,0,0,.06);
}
.cal-cell {
  min-height: 72px; border-right: 0.5px solid rgba(0,0,0,.06);
  border-bottom: 0.5px solid rgba(0,0,0,.06); padding: 4px; cursor: pointer;
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell:hover         { background: rgba(0,0,0,.025); }
.cal-cell.other-month .cal-num { color: #ccc; }
.cal-cell.today .cal-num {
  background: #185FA5; color: #fff; border-radius: 50%;
}

.cal-num {
  font-size: 12px; font-weight: 500; margin-bottom: 3px;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
}

/* ─── Eventos ────────────────────────────────────────────────────────────── */
.cal-event {
  font-size: 10px; padding: 1px 5px; border-radius: 3px;
  margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.cal-event.ev-student { background: #E6F1FB; color: #0C447C; }
.cal-event.ev-group   { background: #EAF3DE; color: #27500A; }

/* ─── Leyenda ────────────────────────────────────────────────────────────── */
.cal-legend { display: flex; gap: 12px; padding: 8px 1.25rem; border-top: 0.5px solid rgba(0,0,0,.06); }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #666; }
.legend-dot  { width: 10px; height: 10px; border-radius: 2px; }