/* bulk-dates.css — "edit dates" bulk tools (js/calendar/cal/modules/calendar/bulkDates.js) */

#bulk-dates-bar {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 2px solid #b4d7f3;
  border-radius: 10px;
  background: #f3f9fe;
  font-size: 14px;
  color: #333;
}
#bulk-dates-bar[hidden] { display: none; }
/* Calendar collapsed via the title while editing → hide the tools with it */
#bulk-dates-bar:has(+ #date-grid[style*="display: none"]) { display: none; }

.bulk-dates-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bulk-dates-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: #2196f3;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.bulk-dates-btn:hover { background: #1976d2; }

.bulk-dates-btn--ghost {
  background: #fff;
  color: #2196f3;
  box-shadow: inset 0 0 0 2px #2196f3;
}
.bulk-dates-btn--ghost:hover,
.bulk-dates-btn--ghost[aria-expanded="true"] { background: #e3f2fd; }

.bulk-dates-btn--danger { background: #ff5a5f; }
.bulk-dates-btn--danger:hover { background: #e0474c; }

.bulk-dates-repeat {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #b4d7f3;
  display: grid;
  gap: 10px;
}
.bulk-dates-repeat[hidden] { display: none; }

.bulk-dates-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.bulk-dates-weekday {
  padding: 7px 0;
  border: 2px solid #b4d7f3;
  border-radius: 8px;
  background: #fff;
  color: #555;
  font: inherit;
  cursor: pointer;
}
.bulk-dates-weekday.is-on {
  background: #111;
  border-color: #111;
  color: #fff;
}

.bulk-dates-range {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.bulk-dates-range label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.bulk-dates-range input[type="date"] {
  padding: 6px 8px;
  border: 2px solid #b4d7f3;
  border-radius: 8px;
  font: inherit;
}

.bulk-dates-hint {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: #6b7a88;
}
.bulk-dates-status {
  margin: 6px 0 0;
  min-height: 1em;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.bulk-dates-status:empty { display: none; }
.bulk-dates-status.is-unsaved { color: #e0474c; }

/* Weekday names become toggles in edit mode */
.date-grid div.weekday-label.weekday-toggle {
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.date-grid div.weekday-label.weekday-toggle:hover,
.date-grid div.weekday-label.weekday-toggle:focus-visible {
  background: #2196f3;
  outline: none;
}

@media (max-width: 480px) {
  .bulk-dates-btn { flex: 1 1 auto; }
  .bulk-dates-weekday { font-size: 12px; }
}
