.calendar {
  margin-bottom: 25px;
}
.calendar caption {
  font-size: 16px;
  font-weight: bold;
}
.calendar table.cal {
  table-layout: fixed;
  width: 900px;
  border-collapse: collapse;
}
.calendar table.cal td.edge,
.calendar table.cal th.edge {
  border: none !important;
  width: 1.5%;
}
.calendar table.header th,
.calendar table.week-bg th {
  background-color: #333;
  color: #fff;
}
.calendar table.header th.edge,
.calendar table.week-bg th.edge {
  background-color: transparent;
}
.calendar table.header td,
.calendar table.week-bg td,
.calendar table.header th,
.calendar table.week-bg th {
  border: 1px solid #999;
}
.calendar table.header td.prev,
.calendar table.week-bg td.prev,
.calendar table.header td.next,
.calendar table.week-bg td.next {
  font-style: italic;
  background-color: #ddd;
}
.calendar table.header td.today,
.calendar table.week-bg td.today {
  background-color: #ccf;
}
.calendar .week {
  height: 100px;
}
.calendar .week table.week-bg {
  height: 100px;
  position: absolute;
}
.calendar .week table.week-bg td {
  border-top: none;
}
.calendar .week .table_overlay {
  z-index: 2;
  position: absolute;
  width: 900px;
}
.calendar .week .table_overlay table td.d {
  padding: 3px;
}
.calendar .week .table_overlay table td.next,
.calendar .week .table_overlay table td.prev {
  font-style: italic;
}
.calendar .week .table_overlay table td.curr {
  font-weight: bold;
}
.calendar .week .table_overlay table td.today {
  font-weight: bold;
}
.calendar .week .table_overlay table td.event {
  padding: 2px;
}
.calendar .week .table_overlay table td.event div {
  padding-left: 4px;
  border: 1px solid #000;
  font-size: 10px;
  background-color: #f99;
  border-radius: 3px;
  line-height: 13px;
}
.calendar .week .table_overlay table td.event div a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  line-height: 12px;
}
.calendar .week .table_overlay table td.event div a:hover {
  text-decoration: underline;
}
.calendar .week .table_overlay table td.event.ex-next {
  padding-right: 0;
}
.calendar .week .table_overlay table td.event.ex-next div {
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
}
.calendar .week .table_overlay table td.event.ex-prev {
  padding-left: 0;
}
.calendar .week .table_overlay table td.event.ex-prev div {
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
  padding-left: 10px;
}
