.cd-schedule {
  position: relative;
}

.cd-schedule .timeline {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 60px; /* ширина временной шкалы */
  /* вниз на высоту заголовка таблицы */
  /* padding-top: 50px; */
  padding-top: 70px;
}
.cd-schedule .timeline li {
  position: relative;
  /* высота между элементами временной шкалы */
  /* height: 50px; */
  height: 70px;
}
/* this is used to create the table horizontal lines */
.cd-schedule .timeline li::after {
  /* content: ''; */
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #EAEAEA;
}
/* Подписи на временной шкале */
.cd-schedule .timeline li span {
  /*display: inline-block;
  -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);*/
}

/* область с событиями */
.cd-schedule .events {
  position: relative;
  z-index: 1;
  width: 100%;
  /* 60px is the .timeline element width */
  margin-left: 60px;
}

.cd-schedule .events .events-group {
  /* margin-bottom: 50px; */
  margin-bottom: 70px;
}

.cd-schedule .events .top-info {
  width: 100%;
  /* vertically center its content */
  display: table;
  /* height: 50px; */
  height: 70px;
  border-bottom: 1px solid #EAEAEA;
  /* reset style */
  padding: 0;
}

/* Заголовок столбца */
.cd-schedule .events .top-info > span {
  /* vertically center inside its parent */
  display: table-cell;
  vertical-align: middle;
  /* padding: 0 .5em; */
  text-align: center;
  /* reset style */
  font-weight: normal;
  font-size: 12pt;
  margin-bottom: 0;
}

.cd-schedule .events .events-group {
  /*width: 20%; */
  /* width: 200px; */
  width: 14%; /* 7 столбцов - 7 дней или 7 наименее загруженных специалистов*/
  float: left;
  border: 1px solid #EAEAEA;
  /* reset style */
  margin-bottom: 0;
}

.cd-schedule .events .events-group > ul {
  position: relative;
  /* 21 временных точек (c 10:00 до 20:00) по 50px каждая */
  /* height: 1050px; */
  height: 770px; /* 11 временных точек по 70px каждая */
  /* force its children to stay on one line (вертикальной?) */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: hidden;
}

.cd-schedule .events .events-group > ul::after {
/*  clear: both;
  content: "";
  display: block; */
  /* reset style */
  display: none;
}

.cd-schedule .events .single-event {
  position: absolute;
  z-index: 3;
  /* force them to stay on one line */
  float: left;
  /* для выравнивания по вертикали времени (.single-event a) */
  display: table;
  /* top position and height will be set using js */
  width: calc(100% + 2px);
  /* left: -1px; */
  /* reset style */
  -ms-flex-negative: 1;
      flex-shrink: 1;
  height: auto;
  max-width: none;
  margin-right: 0;
}

.cd-schedule .events .single-event a {
  display: block;
  height: 100%;
  /* CSS reset */
  text-decoration: none;
  /* выровняли вертикально */
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.cd-schedule .events .single-event.selected-event {
  /* the .selected-event class is added when an user select the event */
  /* background: #06529f; */
  background: #5DABE4;
}

.cd-schedule .events .single-event.selected-event .event-date {
  /* color: #FFFF00; */
  font-size: 14pt;
  font-style: italic;
}

.cd-schedule .event-date {
  display: block;
  color: white;
  font-weight: bold;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cd-schedule .event-date {
  /* they are not included in the the HTML but added using JavScript */
  font-size: 12pt;
  text-align: center;
}

.cd-schedule .single-event[data-event="occupied"],
.cd-schedule [data-event="occupied"] .header-bg {
  background: #E37170;
  /* background: #820000; */
}

.cd-schedule .single-event[data-event="occupied"]:hover {
  background: #E37170;
  /* background: #820000; */
}

.cd-schedule .single-event[data-event="occupied"] a {
  cursor: default;
}

.cd-schedule .single-event[data-event="free"],
.cd-schedule [data-event="free"] .header-bg {
  /* background: #069f6e; */
  background: #4BB3AA;
}

.cd-schedule .single-event[data-event="free"]:hover {
  /* background: #06529f; */
  background: #5DABE4;
}

/* Можно ввести новые типы событий*/
