/*
 * Copyright (C) 2013 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/*
 * Copyright (C) 2014 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/*
 * Copyright (C) 2014 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/*
 * Copyright (C) 2014 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/* Legacy variables. Discontinue to use these: */
/*
 * Copyright (C) 2015 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/**
 * Convert font-size from px to rem with px fallback
 * @param $size - the value in pixel you want to convert
 * e.g. p {@include fontSize(12px);}
 * courtesy of https://github.com/stubbornella/oocss/blob/master/oocss/src/components/utils/_fontSize.scss
 */
/*
 * Copyright (C) 2017 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/*
 * Copyright (C) 2015 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/*
 * Copyright (C) 2014 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/*
 * Copyright (C) 2014 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/*
 * Copyright (C) 2014 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/* Legacy variables. Discontinue to use these: */
/*
 * Copyright (C) 2015 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/*
 * Copyright (C) 2012 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/*
 * Copyright (C) 2015 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/*
 * Copyright (C) 2015 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/**
 * Convert font-size from px to rem with px fallback
 * @param $size - the value in pixel you want to convert
 * e.g. p {@include fontSize(12px);}
 * courtesy of https://github.com/stubbornella/oocss/blob/master/oocss/src/components/utils/_fontSize.scss
 */
#calendar-app {
  position: relative;
}

.calendar .fc-view-container, #calendar-drag-and-drop-container .fc-view-container {
  background-color: white;
}
.calendar .fc-month-view .fc-widget-header, #calendar-drag-and-drop-container .fc-month-view .fc-widget-header {
  font-size: 14px;
  font-size: 0.875rem;
  background-color: #f6f7f9;
  line-height: 35px;
  color: var(--ic-brand-font-color-dark-lightened-15);
  font-weight: bold;
}
.calendar .fc-row .fc-content-skeleton td, .calendar .fc-row .fc-helper-skeleton td, #calendar-drag-and-drop-container .fc-row .fc-content-skeleton td, #calendar-drag-and-drop-container .fc-row .fc-helper-skeleton td {
  border-color: #E8EAEC;
}
.calendar .fc-head thead .fc-widget-header, #calendar-drag-and-drop-container .fc-head thead .fc-widget-header {
  color: var(--ic-brand-font-color-dark-lightened-15);
  padding: 10px 0;
  text-transform: uppercase;
}

.fc-event.grayed {
  opacity: 0.5;
}

.fc-event.assignment .fc-event-inner div, .fc-event.assignment_override .fc-event-inner div {
  display: inline;
}
.fc-event.assignment, .fc-event.assignment_override {
  background-color: white;
}

.event-details h3, .event-details .h3 {
  margin-bottom: 0;
}
.event-details h3 a:focus, .event-details .h3 a:focus {
  outline: 0;
}
.event-details.carat-bottom .ui-menu-carat span {
  border-color: white transparent;
}
.event-details {
  position: absolute;
  z-index: 1000;
  border: 1px solid #b0afaf;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
  background-color: white;
  min-width: 320px;
  max-width: 500px;
}
.event-details th {
  padding-bottom: 3px;
  padding-right: 8px;
  min-width: 150px;
  text-align: left;
}
.event-details td, .event-details th {
  vertical-align: top;
}
.event-details .event-details-content {
  overflow: auto;
}

.event-details-timestring {
  margin: 5px 0 10px;
  color: #666666;
  font-size: 14px;
  font-size: 0.875rem;
}

.event-details-links a {
  padding-right: 6px;
  line-height: 28px;
  border-right: 1px solid #333333;
}
.event-details-links a:last-child {
  border-right: none;
}

.event-details-header:before, .event-details-header:after,
.event-details-content:before,
.event-details-content:after,
.event-details-footer:before,
.event-details-footer:after {
  display: table;
  content: "";
  line-height: 0;
}
.event-details-header:after,
.event-details-content:after,
.event-details-footer:after {
  clear: both;
}
.event-details-header,
.event-details-content,
.event-details-footer {
  padding: 10px;
  border-bottom: 1px solid #eeeeee;
  word-wrap: normal;
}
.event-details-header:last-child,
.event-details-content:last-child,
.event-details-footer:last-child {
  border-bottom: none;
}

.event-details-header {
  max-width: 460px;
  overflow: auto;
}
.event-details-header .event-type {
  font-size: 16px;
  font-weight: 700;
}
.event-details-header .title {
  margin: 0;
}

.event-details-content table th[scope=row] {
  width: 55px;
}

.event-details-actual-context {
  font-size: 0.8em;
  font-style: italic;
  color: #666666;
}

.event-detail-overflow {
  min-height: 30px;
  min-width: 160px;
  max-width: 395px;
  max-height: 495px;
  margin-bottom: 6px;
}

#edit_appointment_group_form_holder .scheduler-event-details-footer {
  display: inline;
}

.x-close-link {
  padding-right: 5px;
  opacity: 0.5;
}

#attendees {
  margin: 0;
}
#attendees li {
  list-style: none;
  margin: 2px;
}
#attendees li div {
  padding: 8px;
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
}
#attendees li span {
  color: var(--ic-brand-font-color-dark);
  vertical-align: middle;
  display: inline-block;
}
#attendees li a, #attendees li button {
  color: var(--ic-brand-font-color-dark);
  padding-right: 8px;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid transparent;
}
#attendees li a:hover, #attendees li button:hover {
  border: 1px solid var(--ic-brand-font-color-dark);
}
#attendees li {
  white-space: nowrap;
  float: left;
  color: var(--ic-brand-font-color-dark);
  background-color: #F2F4F4;
  border: 1px solid #E8EAEC;
  border-radius: 4px;
  cursor: default;
  position: relative;
}
#attendees li.cannot_remove div, #attendees li.cannot_remove:hover div {
  padding-right: 8px;
}

.calendar .fc-button {
  -webkit-user-select: none;
          user-select: none;
  padding: 4px 10px;
  font-size: 12px;
  font-size: 0.75rem;
  border: 1px solid #ccc;
  color: #333;
  font-weight: normal;
  background-image: linear-gradient(white, white 25%, #e6e6e6);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  border-bottom-color: #bbbbbb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}
.calendar .fc-button ~ .fc-button {
  border-left: 0;
  margin-left: 0;
}
.calendar .fc-button.fc-state-hover {
  background-image: linear-gradient(to bottom, white, #dfdfdf);
}
.calendar .fc-button.fc-state-down {
  background-image: linear-gradient(to bottom, #a8a8a8, #c6c6c6);
}
.calendar .fc-button.fc-state-disabled {
  opacity: 0.7;
}
.calendar .fc-button .fc-button-content {
  color: var(--ic-brand-font-color-dark);
  text-shadow: white 0 1px 1px;
}
.calendar .fc-button.fc-corner-left {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.calendar .fc-button.fc-corner-right {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

#edit_appt_calendar_event_form p {
  margin-bottom: 0.5em;
}
#edit_appt_calendar_event_form textarea {
  width: 500px;
  height: 100px;
}
#edit_appt_calendar_event_form .max-participants {
  width: 40px;
}

.event_button {
  margin-left: 3px;
}

.Button.ui-button {
  font-weight: 300;
}

.fc-month-view .fc-widget-content .fc-day-number {
  text-align: left;
}

.fc-event-title {
  line-height: 1.3;
}

.calendar__event--completed {
  text-decoration: line-through;
  opacity: 0.7;
}

.fc-time-grid .fc-slats td {
  border-top: 0;
}

.fc-agendaWeek-view .fc-event {
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left-width: 3px;
}

.fc-day-header__week-number {
  font-size: 36px;
  font-size: 2.25rem;
  font-weight: 200;
}

.fc-day-header__week-day {
  font-size: 16px;
  font-size: 1rem;
  font-weight: 500;
}

.fc-agendaWeek-view .fc-event-container a[class*=group_] .fc-content .fc-time {
  color: var(--ic-brand-font-color-dark);
}

#edit_calendar_event_form, #edit_assignment_form {
  width: 270px;
}
#edit_calendar_event_form td, #edit_assignment_form td {
  display: block;
}
#edit_calendar_event_form td label, #edit_assignment_form td label {
  margin-bottom: 0;
}
@media only screen and (min-width: 500px) {
  #edit_calendar_event_form, #edit_assignment_form {
    width: 400px;
  }
  #edit_calendar_event_form td, #edit_assignment_form td {
    display: table-cell;
  }
  #edit_calendar_event_form td label, #edit_assignment_form td label {
    margin-bottom: 5px;
  }
}