#external-events {
  display: none;
}

.diaryPopButton {
  display: flex;
  align-content: center;
  align-items: center;
}

.fc .fc-more-popover {
  z-index: 20000 !important;
  position: absolute !important;
}

.activity-title.ng-binding {
  font-size: 17px;
  font-weight: 600;
}

#calendar-wrap {
  padding: 10px;
}

.diary-with-activities.ng-scope {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2%;
}

.title-activities-schedule {
  font-weight: 600;
  font-size: 20px;
}

md-dialog-content#dialogContent_0 {
  overflow-x: hidden;
  padding: 0 40px 0 40px;
  min-height: fit-content;
}

#external-events-list {
  display: flex;
  grid-gap: 15px;
  flex-direction: column;
}

.activities-to-drag h4.ng-binding {
  text-align: right;
  font-size: 24px;
  font-weight: 600;
}

.diary-page {
  width: 80%;
  margin: auto;
}

li.fc-event.fc-h-event.fc-daygrid-event.fc-daygrid-block-event.ng-scope {
  text-align: center;
  width: 200px;
  height: 100px;
  background-color: white;
  border-radius: 9px;
  margin: 3%;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.diary-container {
  background-color: #F5F5F5;
  margin-top: 80px;
  position: relative;
  padding-top: 5px;
}

.fc-event.fc-h-event.fc-daygrid-event.fc-daygrid-block-event.ng-scope {
  background-color: white;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0px 0px 4px rgb(0 0 0 / 25%);
  cursor: pointer;
  padding: 5px;
}

.diary-with-activities.ng-scope div#calendar {
  width: 100%;
  margin-left: 0;
  display: block !important;
}

.diary-with-activities .fc-header-toolbar.fc-toolbar.fc-toolbar-ltr {
  display: flex;
  flex-direction: row;
  margin-bottom: 25px !important;
  min-height: 50px;
}

#calendar {
  flex: 1;
  width: 100%;
  margin: 0 auto;
  display: block !important;
}

.page-body .account-page .customer-message {
  font-size: 24px;
  text-align: center;
  font-weight: bold;
  margin-top: 10%;
  width: 50%;
  margin: auto;
  margin-top: 15%;
}

.iconupdate iframe {
  border: 0 !important;
}

.diaryFilter.ng-scope {
  display: flex;
  flex-direction: column;
  margin: auto;
  align-items: center;
}

.container-column {
  display: flex;
  flex-direction: row;
  column-gap: 50px;
}

.status-title.ng-binding {
  width: 100%;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

/*.activities-to-drag {
  margin-left: 2%;
}*/

.datepicker-in-activities {
  background-color: white;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0px 0px 4px rgb(0 0 0 / 25%);
  cursor: pointer;
  padding: 5px;
  margin-bottom: 5%;
}

.md-datepicker-input-container {
  width: 70% !important;
}

.fc-toolbar-title {
  display: none !important;
}

.diary-container {
  background-color: #F5F5F5;
  margin-top: 80px;
  position: relative;
  padding-top: 5px;
}

.date-begin-and-end {
  position: absolute;
  top: 5px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 1000 !important;
  background-color: #ededed;
  border-radius: 25px;
  border: 1px solid #ccc;
  padding: 0 15px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 46px;
  cursor: pointer;
  box-shadow: none;
  min-width: 250px;
}

.date-begin-and-end md-datepicker {
  background: transparent !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

.date-begin-and-end .md-button.md-icon-button,
.date-begin-and-end .md-datepicker-button {
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  flex: none;
}

.date-begin-and-end .md-datepicker-button::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 100;
  cursor: pointer;
}

.date-begin-and-end .md-datepicker-input-container {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  width: auto !important;
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.date-begin-and-end .md-datepicker-triangle-button {
  display: none !important;
}

.date-begin-and-end .md-datepicker-input {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: transparent !important;
  text-shadow: none !important;
  text-align: center !important;
  pointer-events: none !important;
  cursor: pointer;
  width: 100%;
  min-width: 130px;
  border: none !important;
  padding: 0 !important;
}

.date-range-display {
  position: absolute;
  pointer-events: none;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
  font-size: 18px;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}

.date-begin-and-end::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: rotate(45deg);
  margin-right: 10px;
  margin-left: 5px;
  pointer-events: none;
}

.fc-v-event .fc-event-title {
    font-size: 18px;
}

@media (max-width: 768px) {
  .diary-page {
    width: 100%;
    margin: auto;
    padding: 0 5px;
  }

  .activities-to-drag {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .diary-with-activities.ng-scope div#calendar, #calendar {
    min-height: 550px;
    height: auto !important; /* Changed from 75vh to allow full content height or better scrolling */
    width: 100% !important;
    margin-top: 20px;
    display: block !important;
  }

  /* Hide navigation options that switch views (only keep nav/today) */
  .fc-timeGridDay-button,
  .fc-timeGridWeek-button,
  .fc-resourceTimeGridWeek-button,
  .fc-dayGridMonth-button,
  .fc-listDay-button,
  .fc-listWeek-button,
  .fc-listMonth-button,
  .fc-timelineDay-button,
  .fc-resourceTimeGridDay-button {
    display: none !important;
  }

  /* Prevent right side group from displaying completely completely empty empty */
  .fc-toolbar-chunk:last-child {
      display: none !important;
  }

  .diary-with-activities.ng-scope {
    display: flex;
    flex-direction: column;
  }

  .container-column {
    display: flex;
    flex-direction: column;
    column-gap: 20px;
    width: 100%;
  }

  .first-filter-column {
    width: 100%;
  }

  .title-in-columndiary.ng-binding, .Date-container, .dropdown-multiselect {
    width: 100% !important;
    margin: auto;
    text-align: right;
  }

  .title-in-columndiary {
    width: 100%;
  }

  .first-filter-column, .first-filter-column:first-child {
    width: 95% !important;
    margin: auto;
    margin-top: 3%;
  }

  .date-begin-and-end {
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    left: auto !important;
    margin: 10px auto 20px auto !important;
    max-width: 90%;
  }

  /* Hide the duplicate copy of the datepicker that sits below the calendar */
  #calendar ~ .date-begin-and-end,
  #calendar + .date-begin-and-end {
    display: none !important;
  }

  .diary-with-activities .fc-header-toolbar.fc-toolbar.fc-toolbar-ltr {
    display: flex;
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px !important;
  }
  
  .fc-toolbar-chunk {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
  }

  .diaryFilter .container-column .title-column {
    text-align: right;
    margin-top: 5%;
  }

  .diary-container {
    margin-top: 20px;
  }
  
  /* Force momentum scrolling on mobile devices so you can smoothly scroll down the times */
  .fc .fc-scroller {
    -webkit-overflow-scrolling: touch !important;
    overflow-y: auto !important;
  }

  .fc .fc-button {
      padding: 0.5em 0.8em !important;
      font-size: 14px !important;
      height: auto !important;
  }
}
