/* Schedule */
/* Printing css. */
@media print {
  div[data-name="activity"].schedule__cell {
    width: 25ch !important;
  }
  div[data-name="spaceIds"].schedule__cell {
    width: 15ch !important;
  }
  div[data-name="topicIds"].schedule__cell {
    width: 35ch !important;
  }
}
/* Regular css. */
.view--schedule {
  padding-top: 3em;
  display: flex;
  flex-direction: column;
}
.dialog-content custom-select,
.dialog-content schedule-file-upload {
  border: var(--border-gray);
  border-radius: 3px;
  color: var(--text-dark);
  box-sizing: content-box;
}
schedule-file-upload custom-select {
  border: 0 !important;
}
.dialog-content .field {
  /* TODO(Bodhy): Change color on program section CSS */
  background-color: white !important;
}
.schedule-row-placeholder .schedule__row {
  display: none;
}
.schedule-container {
  width: 100%;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  transition: padding 0.5s ease-in-out;
}
.schedule-container--fill-page {
  flex: 1 0 auto;
  overflow: scroll;
}
.schedule-container__extend {
  padding-bottom: 200px;
}
.schedule {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.schedule__head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
}
.schedule__head--scroll {
  position: sticky;
  top: 0;
  z-index: 9;
  background-color: var(--bg-light);
  box-shadow: 0 4px 16px 0 rgba(117, 117, 117, .3);
  -webkit-clip-path: inset(0 0 -16px 0);
          clip-path: inset(0 0 -16px 0);
}
.schedule__cell--heading {
  padding: 0 1px;
}
.schedule__row {
  display: flex;
  flex-direction: row;
  flex: 1;
  height: 40px;
}
.schedule__row--main-tab-info {
  display: flex;
}
.schedule--public-mobile-row,
.schedule--public-mobile-row--main-tab-info {
  display: none;
}
.schedule__row--main-tab-info--data {
  width: 100%;
  display: flex;
  flex-direction: row;
  height: 40px;
  background-color: var(--brand-cyan-light);
}
.schedule__row > form {
  display: contents;
}
.schedule--empty .schedule__action {
  display: none;
}
.schedule__row:hover .schedule__add-row,
.schedule__row--main-tab-info:hover .schedule__add-row {
  opacity: 1;
}
.schedule__add-row:hover,
.schedule__add-row:focus {
  opacity: 1;
}
.schedule--template .schedule__cell {
  white-space: nowrap;
}
.schedule__cell {
  position: relative;
  width: 224px;
  /*flex: 0 0 auto;*/
  min-height: 40px;
  display: flex;
  box-shadow: none !important; /* Removes the global outline box-shadow replacement. */
  align-items: stretch;
}
.schedule__cell_short {
  width: 148px;
}
.schedule__cell--main-tab-info {
  padding: .5rem;
  font-size: 0.875rem;
}
.schedule__main .schedule__cell:Not(.schedule__cell--actions) {
  background-color: white;
}
.schedule__cell > textarea[readonly="true"] {
  background-color: var(--bg-lighter-gray);
  cursor: not-allowed;
}
.schedule__cell:not(.schedule__cell--actions) {
  border-left: 1px solid var(--bg-light-gray);
  border-top: 1px solid var(--bg-light-gray);
}
div[data-name="startsAt"].schedule__cell,
div[data-name="endsAt"].schedule__cell,
div[data-name="startsAt"].schedule__cell--main-tab-info,
div[data-name="endsAt"].schedule__cell--main-tab-info {
  width: 8.5rem;
}
@media print {
  div[data-name="startsAt"].schedule__cell,
  div[data-name="endsAt"].schedule__cell,
  div[data-name="startsAt"].schedule__cell--main-tab-info,
  div[data-name="endsAt"].schedule__cell--main-tab-info {
    min-width: 9rem;
  }

  div[data-name="activity"].schedule__cell--main-tab-info {
    width: inherit;
  }

  .schedule__cell--main-tab-info {
    border-left: 1px solid var(--bg-light-gray);
    border-top: 1px solid var(--bg-light-gray);
  }

  .schedule__cell--main-tab-info:last-child {
    border-right: 1px solid var(--bg-light-gray);
  }
}
.schedule--template div[data-name="startsAt"].schedule__cell,
.schedule--template div[data-name="endsAt"].schedule__cell,
.schedule--template div[data-name="startsAt"].schedule__cell--main-tab-info,
.schedule--template div[data-name="endsAt"].schedule__cell--main-tab-info {
  width: 16rem;
}
@media screen {
  div[data-name="activity"].schedule__cell,
  div[data-name="activity"].schedule__cell--main-tab-info {
    width: 50ch;
  }
}
.schedule:not(.schedule--template).schedule--readonly .schedule__main .schedule__row .schedule__cell:last-of-type,
.schedule:not(.schedule--readonly) .schedule__main .schedule__row .schedule__cell:nth-last-child(2),
.schedule.schedule--template .schedule__main .schedule__row .schedule__cell:nth-last-child(2) {
  border-right: 1px solid var(--bg-light-gray);
  flex: 1;
  min-width: 150px;
}
.schedule__main .schedule__row:last-child .schedule__cell:not(.schedule__cell--actions),
.schedule__main .schedule__row--main-tab-info:last-child .schedule__row--main-tab-info--data .schedule__cell--main-tab-info:not(.schedule__cell--actions) {
  border-bottom: 1px solid var(--bg-light-gray);
}
.schedule__input-public {
  background-color: #ffffff !important;
}
schedule-date-input,
.schedule__input-public,
.schedule__input {
  flex: 1;
  border: none;
  outline: none;
  box-shadow: none !important; /* Removes the global outline box-shadow replacement. */
  overflow: hidden;
  padding: 0 .5rem;
  color: #333333;
  font-size: .875rem;
}
.schedule__textarea, .schedule__textarea_template {
  white-space: nowrap;
  overflow-wrap: normal;
  overflow-x: hidden;
  flex: 1;
  outline: none;
  border: none;
  box-sizing: content-box;
  z-index: 3;
  box-shadow: none !important; /* Removes the global outline box-shadow replacement. */
  resize: none;
  padding: .45rem 0 .45rem .5rem;
  border-right: .5rem solid transparent; /* Otherwise the text will overflow the padding. */
  color: #333333;
  font-size: .875rem;
  line-height: 1.5;
}
.schedule .schedule__cell > custom-select {
  border: none;
  height: 100%;
  min-width: 8rem;
  width: 100%;
  padding: 0 .625rem;
}
.schedule custom-select:focus,
.schedule schedule-file-upload:focus {
  box-shadow: none !important;
}
.schedule schedule-file-upload {
  border: none;
  height: 100%;
}
.schedule__row--showtime .schedule__input,
.schedule__row--showtime .schedule__textarea_template,
.schedule__row--showtime .schedule__relative-date {
  background-color: var(--bg-lighter-gray);
}
.schedule:not(.schedule--readonly) .schedule__row--showtime .schedule__input,
.schedule__row--showtime .schedule__textarea_template,
.schedule:not(.schedule--readonly) .schedule__row--showtime .schedule__relative-date {
  cursor: not-allowed;
}
.schedule__cell.schedule__cell--heading {
  color: var(--brand-purple-dark);
  padding: .75rem;
  font-weight: bold;
  border: none;
}
.schedule__cell--error::before,
.schedule:not(.schedule__readonly).schedule__cell--error::before,
.schedule:not(.schedule--readonly) .schedule__cell:not(.schedule__cell--actions, .schedule__cell--heading):focus-within::before {
  content: '';
  position: absolute;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  border: 2px solid var(--brand-purple-light);
  border-radius: 2px;
  left: -1px;
  top: -1px;
  z-index: 4;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.schedule__cell--error::before {
  border: 2px solid var(--action-warning);
}
.schedule__cell--actions {
  width: 40px;
  flex: 0 0 auto;
  display: flex;
}
.schedule__action {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.schedule__action:hover .schedule__add-row {
  opacity: 1;
}
.schedule__action--align-border {
  position: relative;
  top: -50%;
}
.schedule__action--button {
  width: 40px;
}
.schedule__add-row {
  opacity: 0;
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 50%;
  background-color: var(--brand-yellow);
  color: var(--brand-purple-dark)
}
.schedule__edit-row {
  font-size: .875rem;
}
.schedule__add-row:before {
  font-size: 1.2rem;
  content: '+';
}
.schedule__delete-row {
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 50%;
  background-color: var(--bg-light-gray);
  color: white;
}
.schedule__delete-row:hover {
  background-color: var(--bg-gray);
}
.schedule__delete-row:before {
  font-size: .8rem;
  content: '✕';
}
.schedule__foot {
  display: flex;
}
.schedule__relative-date {
  flex: 1;
  color: #333333;
  font-size: .875rem;
  align-items: center;
  display: flex;
  padding: 0 .5rem;
}
.schedule custom-select {
  color: #333333;
  font-size: .875rem;
}
#Schedule > .overflow-visible {
  overflow: auto;
}
.schedule__cell__showtime--grey {
  background-color: var(--bg-lighter-gray);
}
@media only screen and (max-width: 768px) {
  .schedule.schedule--public-mobile {
    width: 100%;
    max-width: 100%;
  }

  .schedule.schedule--public-mobile .schedule__head,
  .schedule.schedule--public-mobile .schedule__foot {
    display: none;
  }

  .schedule.schedule--public-mobile .schedule__main {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .schedule.schedule--public-mobile .schedule__row,
  .schedule.schedule--public-mobile .schedule__row--main-tab-info {
    display: none;
  }


  .schedule.schedule--public-mobile .schedule--public-mobile-row,
  .schedule.schedule--public-mobile .schedule--public-mobile-row--main-tab-info {
    padding: 16px;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 16px;
  }

  .schedule.schedule--public-mobile .schedule--public-mobile-row {
    border: 1px solid var(--brand-purple-dark);
  }

  .schedule.schedule--public-mobile .schedule--public-mobile-row--main-tab-info {
    background-color: var(--brand-cyan-light);
  }

  .schedule.schedule--public-mobile .schedule--public-mobile-row--time-cell,
  .schedule.schedule--public-mobile .schedule--public-mobile-row--main-tab-info--time-cell {
    font-weight: 700;
    min-width: 6em;
    width: 6em;
  }

  .schedule.schedule--public-mobile .schedule--public-mobile-row--activity-cell p {
    margin-bottom: 0 !important;
  }

  .schedule--public-mobile-row--activity-cell--subtext {
    font-size: 12px;
    color: var(--text-gray);
  }

  .schedule.schedule--public-mobile .schedule--public-mobile-row--activity-cell {
    display: flex;
    flex-direction: column;
    gap: 8px
  }
}
/* General */
.hide-in-print,
.app-sidebar,
.app-sidebar__extend-menu-link,
header.app-sidebar__container,
.view__header--record-actions,
.view__nav,
footer,
header.view__header--overview {
  display: none !important;
}
/* Guest list */
.guest-list__event-header div:nth-of-type(2),
.guest-list__select-event-box,
.guest-list__list-actions {
  display: none !important;
}
.guest-list__selected-event {
  margin-bottom: 3.5rem !important;
}
.margin--print {
  margin-bottom: 2rem !important;
}
.print {
  clear: right;
  margin-bottom: .5em;
}
.dot {
  position: relative;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 7px;
  margin-left: 0.5em;
  margin-right: 0.5em;
}
.schedule-container {
  overflow-x: hidden;
}
.production-schedule td:nth-child(4), .production-schedule td:nth-child(5) {
  padding-right: 80px
}
@media print
{
  .no-print, .no-print *
  {
    display: none !important;
  }
}
* {
  overflow: visible !important;
}
