/**
 * NCDU (item 17): top action toolbar for the activity list.
 *
 * A custom bar surfaced at the top of the activity list (built by
 * Drupal.behaviors.cplTopActionToolbar in cpl_alter.js) mirroring the core
 * VBO bulk-action buttons plus an always-available "Add New Activity" link.
 * Styled to match the familiar dark action bar the users already know.
 */
.cpl-top-action-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  background-color: #231f20;
}

.cpl-top-action-toolbar__status {
  margin-right: 0.5rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
  white-space: nowrap;
}

/* Standalone "Add New Activity" -- always enabled; give it a distinct
   look so it reads as the primary, always-available action. Two-class
   specificity so it wins over Claro's single-class .button styling. */
.cpl-top-action-toolbar .cpl-top-action-toolbar__add {
  background-color: #1259a5;
  color: #fff;
}

.cpl-top-action-toolbar .cpl-top-action-toolbar__add:hover,
.cpl-top-action-toolbar .cpl-top-action-toolbar__add:focus {
  background-color: #0e4680;
  color: #fff;
}

/* Bulk-action mirrors -- greyed out until rows are selected (their
   disabled state is synced from core's real buttons). */
.cpl-top-action-toolbar__action[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Item 17 (option 3): the bulk-action buttons now live in the top toolbar
   above the table. Hide the now-duplicate buttons in the original bottom
   VBO bar, but keep the bar itself so its "Select / deselect all results
   (all pages)" cross-page selection control (a separate element, not part
   of .form-actions) stays available. The real buttons remain in the DOM
   (display:none), so the top toolbar's mirrors can still forward clicks to
   them. Scoped to the activity list so the frontpage/shows VBO bar is
   unaffected. */
.path-activity-list #vbo-action-form-wrapper .form-actions {
  display: none;
}
