
/**
 * Customize SC Date Time calendar
 */

.standish-google-calendar .time-date.date-only > .control > .slider > .date-control {
  padding-left:0!important;
}

.standish-google-calendar .time-date > .control > .slider > .date-control > .days .day-cell {
  min-width: 0;
}

.standish-google-calendar .time-date > .control > .slider > .date-control > .days .day-cell:hover,
  .standish-google-calendar .time-date > .control > .slider > .date-control > .days .day-cell:active {
  background-color: #67AE3D; /*#00baa9*/
}

.standish-google-calendar .time-date > .control > .slider > .date-control > .days .day-cell.selected,
  .standish-google-calendar .time-date > .display > .content {
  background-color: #67AE3D; /*#009688*/
}

.standish-google-calendar .time-date > .display > .title {
  background-color: #5D9E37; /*#00796b*/
}

.standish-google-calendar .time-date button, .standish-google-calendar .time-date .button,
  .standish-google-calendar .time-date > .control > .slider > .date-control > .days .day-cell.today{
  color: #67AE3D; /*#009688*/
}

.standish-google-calendar .time-date > .control > .slider > .date-control > .days .day-cell.selected,
  .standish-google-calendar .time-date > .control > .slider > .date-control > .days .day-cell:hover,
  .standish-google-calendar .time-date > .control > .slider > .date-control > .days .day-cell:active {
   color: #ffffff;
}

.standish-google-calendar .time-date > .control > .slider > .date-control > .title {
  line-height: 1.4rem;
}
.standish-google-calendar .time-date > .control > .slider > .date-control > .title > input {
  margin-top: .5rem;
}

.standish-google-calendar .time-date > .control > .slider > .date-control > .headers > .day-cell {
  height: 1.6rem;
}

.standish-google-calendar .time-date.vertical {
  max-width:100%;
}

.standish-google-calendar .time-date.vertical > .display > .content {
  height:9.5rem;
}

.standish-google-calendar .time-date > .control > .slider > .date-control > .title > span.month-part:hover {
  text-decoration: none;
}

.standish-google-calendar .time-date > .control > .slider > .date-control > .title > span.month-part > select {
  cursor: pointer;
}

.standish-google-calendar .day-cell.has-event {
  border:1px solid black;
}

.standish-google-calendar .mdl-menu .mdl-checkbox__label {
  /*white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;*/
  font-size: 14px;
  white-space: normal;
  line-height: 16px;
}

.sgc-calendar-header > button {
  display:none;
}

.is-small-screen .sgc-calendar-header > button {
  display:block;
}

/**
 * CSS for events on right (100% custom)
 */

.sgc-event-list .sgc-single-event {
  display: block;
  border-radius: 2px;
  padding: 5px 10px;
  margin-bottom: 8px;
  cursor: pointer;
}

.sgc-event-list-wrapper {
  position: relative;
}

.sgc-event-list-loader {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  display:none;
}

.standish-google-calendar {
  display: -ms-flexbox;
  -ms-flex-pack: justify;
  display: -webkit-box;
  display: -moz-box;
  display: -webkit-flex;
  display: flex;
  justify-content: space-between;
}

.sgc-calendar-holder {
  margin-right:16px;
  position:relative;
  max-width:100%;
  -webkit-flex-shrink: 0;
  -ms-flex-shrink: 0;
  flex-shrink: 0;
}

.standish-google-calendar .standish-google-calendar-choose-button {
  position: absolute;
  top:0;
  right: 0;
  z-index: 1;
}

.standish-google-calendar .mdl-menu {
  width:240px;
}

.standish-google-calendar .mdl-menu__item {
  display: -ms-flexbox;
  -ms-flex-align: center;
  display: -webkit-box;
  display: -moz-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.standish-google-calendar .mdl-checkbox {
  display: -ms-flexbox;
  display: -webkit-box;
  display: -moz-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.standish-google-calendar .sgc-event-list-wrapper {
  -ms-flex: 1;
  flex-grow: 1;
  margin-right:16px;
  width: 100%;
}

.standish-google-calendar .sgc-event-list {
  padding: 16px;
  max-height: 580px;
  overflow-y: auto;
  width:auto;
}

.standish-google-calendar .sgc-event-list-loading {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  display: none;
}

/*.standish-google-calendar .sgc-event-list-month {
  padding: 16px;
  max-height: 548px;
  overflow-y: auto;
}*/

.standish-google-calendar .sgc-event-details {
  -ms-flex: 1;
  flex-grow: 1;
  width: 100%;
}

.standish-google-calendar .sgc-event-details .mdl-button {
  margin-bottom: 16px;
}

.sgc-event-details .mdl-card__title {
  min-height:180px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  text-shadow: 0px 0px 8px white;
  margin-top:32px;
}

.sgc-event-details .mdl-button .material-icons {
  text-shadow: 0px 0px 8px white;
}

.sgc-event-details .mdl-menu__item a {
  display: block;
  width: 100%;
}

.sgc-event-list-month {
  -webkit-flex-shrink: 0;
  -ms-flex-shrink: 0;
  flex-shrink: 0;
}

.sgc-event-list-month:before {
  content: attr(data-month) " " attr(data-year);
  font-weight: bold;
  font-size: 18px;
  margin-left: 48px;
  margin-bottom: 8px;
  display: block;
}
.sgc-event-list-month:last-child {
  padding-bottom:580px;
}

.sgc-event-list .sgc-event-list-month > div {
  display: none;
  margin-bottom: 24px;
}

.sgc-single-events {
  -ms-flex: 1;
  flex-grow: 1;
}

.event-date {
  margin-right: 8px;
  min-width: 40px;
}

.event-details-attachments {
  margin: 8px 0;
}
.event-details-attachments a {
  margin-right: 8px;
}

.sgc-google-map {
  width:100%;
  height:200px;
  border:0;
}

.sgc-button-open-calendar-mobile, .mdl-button.sgc-close-flyout {
  display:none;
}

.mdl-button.sgc-close-event-details {
  position: absolute;
  top: 1px;
  left: 1px;
}

.sgc-details-date-container {
  height: 32px;
  display: flex;
  width: 100%;
  top: 0;
  position: absolute;
  left: 0;
  text-align: right;
}

.sgc-details-the-date {
  display: block;
  width: 100%;
  text-align: right;
  background: rgba(0,0,0,0.1);
  line-height: 32px;
  padding-right: 16px;
}

.standish-event-title-year-month-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.standish-event-title-year-month-wrapper > span {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.magog-card--event .standish-event-title-year-month-wrapper > span > span {
  padding-right: 8px;
}

/**
 * Media Queries
 */
@media (max-width: 1024px) {
  .sgc-calendar-holder {
    margin-left: -343px;
    position: absolute;
    background: white;
    left: 0;
    z-index: 1000;
    transition:all 300ms;
  }
  .sgc-calendar-holder.flyout {
    margin-left: 0;
  }
  .mdl-button.sgc-close-flyout {
    display: block;
    position: absolute;
    top: 2px;
    z-index: 1;
    left: 2px;
  }
  .sgc-button-open-calendar-mobile {
    display:block;
  }
}

@media (max-width: 720px) {
  .standish-google-calendar .sgc-event-list-wrapper {
    margin-right:0;
  }
  .standish-google-calendar .sgc-event-details {
    position: absolute;
    left: 16px;
    right: 0;
    width: calc(100% - 32px);
    display:none;
    height: 580px;
  }
  .standish-google-calendar .sgc-event-details.open {
    display:block;
  }
}


@media screen and (max-height: 700px) {
  .standish-google-calendar .time-date.vertical > .display > .content {
    height: 1rem;
  }

  .standish-google-calendar .time-date.vertical > .display > .content > div {
    display: inline-block;
    font-size: 20px;
    margin: 0;
    padding: 0;
    position: relative;
    top: 0;
    left: 0;
    float: none;
    line-height: 0;
    padding: 0 4px;
  }
}
