#fullCalendar {

  h1 {
    margin: 0;
    width: 100%;
    font-size: 3.5rem;
    font-weight: 600;
    color: #519d34;
    text-align: center;
  }

  .header-fullcalendar {
    padding: 0;
    padding-top: 15px;

    #legendaCaixa {
      display: flex;
      flex-direction: row;
      align-items: start;
      justify-content: center;
      gap: 10px;
      padding-top: 12px;

      h2 {
        font-size: 2.25rem;
        margin: 0;
      }

      ul {
        all: unset;
        list-style: none;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;

        li {
          display: flex;
          flex-direction: row;
          align-items: center;
          justify-content: center;
          padding: 5px;
          gap: 7px;
          font-weight: 600;

          span {
            display: block;
            width: 15px;
            height: 15px;
            border-radius: 3px;
            border: 1px solid #d8d8d8;
          }

          #caixaCorLegendaVermelho {
            background-color: #DC3545;
          }

          #caixaCorLegendaLaranja {
            background-color: #F39C12;
          }

          #caixaCorLegendaAmarelo {
            background-color: #FFC107;
          }

          #caixaCorLegendaVerde {
            background-color: #29A746;
          }
        }
      }
    }
  }

  .box:has(#calendar) {
    border: none;

    .box-body:has(#calendar) {
      border: 1px solid #e5e5e5;
      border-radius: 10px;
      padding: 0px;
    }
  }
}

#calendar div.fc-toolbar.fc-header-toolbar {
  padding: 20px;
  margin-bottom: 5px;

  div.fc-center>h2 {
    font-size: 2.2rem;

    &::first-letter {
      text-transform: uppercase;
    }
  }

  div.fc-left {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;

    &>button {
      margin: 0;
    }
  }
}

.fc-day-grid-event>div>span {
  max-width: 300px;
  display: block;
  text-align: center;
  cursor: pointer;
  transition: 400ms cubic-bezier(0.075, 0.82, 0.165, 1);
  filter: drop-shadow(0px 0px 2px #ffffffa9);
  color: #000;
  font-weight: 600;
  line-height: 1.4rem;
}

.fc-day-grid-event {
  position: relative;
  overflow: hidden;
  border: none;
  transform: translateX(0px);
  transition: 400ms cubic-bezier(0.075, 0.82, 0.165, 1);
  box-shadow: 0px 0px 1px 1px #000000b0;
  padding: 0px 2px;
  margin-bottom: 2px;

  &:hover,
  &:focus {
    transform: translateX(4px);
  }

  .calendario-barra-progresso {
    position: absolute;
    z-index: -1;
    left: 0px;
    top: 0px;
    height: 100%;
    box-shadow: 0px 0px 2px 0px #000;
  }
}

@media (min-width: 828px) {
  #fullCalendar {
    & .header-fullcalendar {
      #legendaCaixa {
        h2::after {
          content: ":";
        }
      }
    }
  }
}

@media (max-width:828px) {
  .fc-toolbar.fc-header-toolbar {

    div.fc-left {
      margin-bottom: 10px;
    }
  }

  #fullCalendar {
    h1 {
      font-size: 2rem;
    }

    & .header-fullcalendar {
      #legendaCaixa {
        align-items: center;
        flex-direction: column;
        justify-content: center;

        h2 {
          font-size: 1.75rem;
          font-weight: 600;
        }

        ul {
          align-items: center;
          justify-content: center;

          li {
            font-size: 1.25rem;
          }
        }
      }
    }
  }
}

@media (max-width:674px) {
  #legendaCaixa {
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width:350px) {
  div.fc-left>button {
    max-width: 246px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #calendar div.fc-toolbar.fc-header-toolbar {
    padding: 10px;
    margin: 0px;
  }
}