calendar-md {
  display: block;
  max-height: 100%;
}

calendar-md .md-toolbar-tools h2 {
  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

calendar-md .md-toolbar-tools .moveNext {
  transform: translate3d(0%, 0%, 0) rotate(180deg);
}

calendar-md md-content>md-content {
  border: 1px solid rgba(0, 0, 0, 0.12);
}

calendar-md md-content>md-content.agenda>*>* {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

calendar-md md-content>md-content.agenda>*>*.disabled {
  color: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  cursor: auto;
}

calendar-md md-content>md-content.agenda>*>* :first-child {
  padding: 12px;
  width: 200px;
  text-align: right;
  color: rgba(0, 0, 0, 0.75);
  font-weight: 100;
  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

calendar-md md-content>md-content.agenda>*>* :not(:first-child) {
  overflow: hidden;
  text-overflow: ellipsis;
}

calendar-md md-content>md-content>*>* {
  min-width: 48px;
}

calendar-md md-content>md-content.calendar-md> :first-child {
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  margin-right: 0;
  min-height: 36px;
}

calendar-md md-content>md-content.calendar-md> :not(:first-child)>* {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

calendar-md md-content>md-content.calendar-md> :not(:first-child)>*:hover {
  background: rgba(0, 0, 0, 0.04);
}

calendar-md md-content>md-content.calendar-md> :not(:first-child)>*.disabled {
  color: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  cursor: auto;
}

calendar-md md-content>md-content.calendar-md> :not(:first-child)>*.noclick {
  cursor: auto;
}

calendar-md md-content>md-content.calendar-md> :not(:first-child)>*.active {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
}

calendar-md md-content>md-content.calendar-md> :not(:first-child)>* :first-child {
  padding: 0;
}

calendar-md md-content>md-content.calendar-md> :not(:first-child)>* :last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

/******************************************************************************/

calendar-md > md-content > md-toolbar {
  background-color: rgb(255, 255, 255) !important;
}

calendar-md .md-toolbar-tools {
  justify-content: center;
}

calendar-md .md-toolbar-tools h2 {
  text-transform: capitalize;
  font-weight: bold;
  font-size: 24px;
  overflow: hidden;
}

calendar-md .md-toolbar-tools .md-toolbar-button {
  height: 42px;
}

calendar-md .subheader-day {
  font-weight: bold;
  text-transform: capitalize;
  text-align: center;
}
@media (max-width: 959px) and (min-width: 0) and (orientation: landscape){
  calendar-md md-toolbar {
    min-height: 64px;
  }

  calendar-md md-toolbar .md-toolbar-tools {
    height: 64px;
    max-height: 64px;
  }
}

@media (max-width: 959px) and (min-width: 0) and (orientation: portrait){
  calendar-md md-toolbar {
    min-height: 64px;
  }

  calendar-md md-toolbar .md-toolbar-tools {
    height: 64px;
    max-height: 64px;
  }
}

calendar-md .interval {
  background-color: #E7E7E7;
}

calendar-md md-content>md-content.calendar-md> :not(:first-child)>*:hover{
  background-color: #E7E7E7;
}

calendar-md md-content>md-content.calendar-md> :not(:first-child)>*.active {
  box-shadow: none;
  background-color: #E7E7E7;
}

calendar-md .day-container{
  position: relative;
  padding: 0px;
}

calendar-md .day-container > .day-display{
  position: absolute;
  top: 8px;
  left: 8px;
}

calendar-md .day-container > .day-items-container{
  height: 100%;
  width: 100%;
  padding: 0px;
}

calendar-md .day-container > .day-items-container > .day-item{
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

calendar-md .day-container > .day-items-container > .day-item.top-day{
  border-top: 0;
}

calendar-md .day-container > .day-items-container > .day-item.active-yes {
  background-color: #CFDDBB;
}

calendar-md .day-container > .day-items-container > .day-item.active-no {
  background-color: #F8A4A7;
}
