/* ============================================================
   TOOLBAR ACTIONS BAR (Submit an event / List)
   Sits above the calendar, in the slot the active-filter chips
   used to occupy.
   ============================================================ */
#toolbar-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid #d0d3d4;
}

/* size/line-height match the Month/Week/Day view buttons
   (.fc-footer-toolbar .fc-button) so both button rows read as one style.
   font-family comes from the shared button rule in base.css. */
.toolbar-btn {
  background: #e75d2a;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  cursor: pointer;
}

.toolbar-btn:hover {
  background: #c1441d;
}

/* Calendar keyword search (js/calendarSearch.js) -- fills the space between
   the two buttons; hidden in list mode, which has its own search box. */
#calendar-search {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-width: 0;
  margin: 0 16px;
}

#calendar-search-input {
  width: 280px;
  max-width: 100%;
  padding: 6px 40px 6px 12px; /* right side clears the × button */
  border: 1px solid #d0d3d4;
  border-radius: 4px;
  font-size: 15px;
  line-height: 22px;
  font-family: inherit;
}

#calendar-search-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  color: #4f5964;
  font-size: 14px;
}

#calendar-search-status[hidden] {
  display: none;
}

#calendar-search-status button {
  background: none;
  border: none;
  padding: 0;
  color: #0077ca;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
}

#calendar-search-status button:hover {
  color: #003c71;
}


/* ============================================================
   MOBILE (max-width: 1000px)
   ============================================================ */
@media (max-width: 1000px) {
  /* Drop to its own full-width row under the two buttons */
  #calendar-search {
    order: 3;
    flex-basis: 100%;
    margin: 0;
  }

  #calendar-search .search-field {
    flex-basis: 100%;
  }

  #calendar-search-input {
    width: 100%;
  }
}
