/* CALENDAR */
/* today bg color in calendar */
.fc-unthemed td.fc-today {
  background: var(--mhpc-primary-lighter);
}

/* calendar widget in /calendario-lezioni */
body main .js-drupal-fullcalendar {
  .fc-list-table {
    .fc-list-item:hover,
    .fc-list-item:hover td {
      background-color: var(--mhpc-text-inverse);
    }
  }


  .fc-view,
  .fc-list-heading{
    border: 0px solid transparent;
  }

  /* popup when there is more event in calendar  */
  .fc-popover.fc-more-popover {
    .fc-widget-header.fc-widget-header {
      background-color: var(--mhpc-bg-subtle);
      color: var(--mhpc-text-heading-1);

      a,
      span {
        color: var(--mhpc-text-heading-1);
      }
    }
  }

  .fc-list-table {
    .fc-list-table {
      td {
        border: 0px solid var(--mhpc-primary);
      }
    }
    .fc-list-item:nth-child(odd),
    .fc-list-item:nth-child(odd) td {
      background-color: var(--mhpc-bg-calendar);
      border-radius: 40px;
    }
  }

  /* header — same gray as projects thesis completed band */
  .fc-widget-header {
    border-radius: 40px;
    background-color: var(--mhpc-bg-subtle);
    color: var(--mhpc-text-heading-1);

    a,
    span {
      color: var(--mhpc-text-heading-1);
    }
  }

  /* calendar view */
  .fc-dayGridMonth-view {
    .fc-widget-header {
      span {
        color: var(--mhpc-text-heading-1);
      }
    }
  }
}

@media (min-width: 992px) {
  body main .js-drupal-fullcalendar {
    .fc-list-table {
      .fc-list-item:hover,
      .fc-list-item:hover td {
        background-color: var(--mhpc-text-inverse);
      }
    }

    & .fc-list-table {
      .fc-list-item:nth-child(odd):hover,
      .fc-list-item:nth-child(odd):hover td .fc-list-item:nth-child(odd),
      .fc-list-item:nth-child(odd) td {
        background-color: var(--mhpc-bg-calendar);
      }
    }

    .fc-widget-header {
      border-radius: 40px;
     }
  }
}
