#fullcalendar-app {
  position: relative;
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  padding: 0 2vw;
}
.fc .fc-scrollgrid-section .fc-timegrid-cols table {
  height: 100%;
}

#fullcalendar-app tr,
#fullcalendar-app .draggable-table.tabledrag-disabled tr {
  background: none !important;
}
#fullcalendar-app table {
  margin-top: 0 !important;
  position: relative;
}
#fullcalendar-app th.fc-col-header-cell {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* PDF BUTTON STYLES */
.download-pdf-button {
  background-color: unset;
  color: #000000;
  padding: 10px 10px;
  font-size: 14px;
  font-weight: normal;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin: 0;
  box-shadow: none;
  transition: background-color 0.2s;
  gap: 10px;
}
.download-pdf-button:hover,
.download-pdf-button:focus {
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
}
.download-pdf-button i {
  font-size: 14px;
}

.fc-header-toolbar .fc-toolbar-chunk:nth-child(2) {
  margin-left: auto;
  margin-right: 30px;
}
.day-header {
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  display: inline-block;
}

.day-header span {
  background-color: #000;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  padding: 1px 6px;
  border-radius: 10px;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}
.fc-timegrid-event .fc-event-main {
  line-height: 1.2;
}

/*** Styles applied to the FullCalendar clone used for PDF generation ***/

#fullcalendar-app.clone {
  padding: 0;
  margin-top: 10px;
  margin-left: 25px;
  margin-right: 25px;
}

/* Show the calendar title even if it's hidden for page display */
#fullcalendar-app.clone .hide-title {
  display: block;
}
/* Ensures that the cloned calendar harness has fixed height to prevent excessive height in the PDF */
.fc-view-harness.fc-view-harness-active.clone {
  min-height: 1000px;
  max-height: 1020px;
}
/* Standardizes the width of tables in the cloned week view to fit the PDF layout */
.fc-timeGridWeek-view table.clone {
  min-width: 1488px;
  max-width: 1488px;
}
/* Adjusts the header cells of the cloned calendar for a compact appearance in the PDF */
#fullcalendar-app th.fc-col-header-cell.clone,
#fullcalendar-app th.clone {
  padding: 0;
  height: 1rem;
}
/* Removes margin from the cloned table headers for a consistent layout in the PDF */
table.fc-col-header.clone {
  margin: 0;
}
/* Positions the cloned calendar header in the top-right corner, ensuring it doesn't overlap with the calendar events */
#fullcalendar-app .fc-header-toolbar.clone {
  position: absolute;
  top: 0;
  right: 0;
  margin: 15px 0 0;
}
/* Fixes the layout of the listDay view in the cloned calendar for a standardized look in the PDF */
.fc-listDay-view.clone {
  position: relative;
  margin-bottom: 0;
}
/* Ensures a consistent height for the cells in the listDay view, leading to a neater presentation in the PDF */
.fc-listDay-view tbody td.clone {
  height: 3rem;
}
/* Hides additional headers and controls in the cloned calendar for a cleaner PDF output */
#fullcalendar-app .fullcalendar--header.clone,
.fc-header-toolbar .fc-toolbar-chunk.clone,
.calendar-branch-info h4.clone {
  display: none;
}
/* Reset now indicator styles */
#fullcalendar-app.clone .fc-timegrid-now-indicator-line,
#fullcalendar-app.clone .fc-timegrid-now-indicator-arrow {
  display: none;
}
#fullcalendar-app.clone .fc-timegrid-col.fc-day-today,
#fullcalendar-app.clone .fc-highlight {
  background-color: unset;
}
