/* The search box of the list pages (owner 2026-11-09): Projects, Run History, the Audit log, the Blueprint
   Templates tab and Settings > People. Owner 2026-11-09 (second ask): the same box as the saved-blueprints search,
   same size, same colours, at the left of its row. So no colour or height is set here: the box keeps the app's
   own input look (white, light border, 42px), exactly as #blueprintSearchInput does; only width and place. */
.list-search {
  flex: 1 1 16.25rem;
  min-width: 0;
  max-width: 26.25rem;
  margin: 0;
}

.list-search input {
  width: 100%;
}

/* Projects: the box leads the head row (sort, Icons / List and Create Project stay on the right); the count line
   drops to its own line under them. */
#projectListPanel > .panel-head .project-search {
  order: 0;
}

#projectListPanel > .panel-head .project-list-tools {
  order: 1;
  margin-left: auto;
}

#projectListPanel > .panel-head .project-list-summary {
  order: 2;
  flex: 1 1 100%;
}

/* Run History: the box first, the Project filter and the count after it on the right. */
.run-list-toolbar .list-search {
  flex: 1 1 16.25rem;
  max-width: 26.25rem;
}

.run-list-toolbar .list-search + .field-label {
  margin-left: auto;
}

/* Audit log: the box on its own row under the heading, at the left, like the Blueprints search. */
#auditPanel .audit-search {
  margin: 0 0 0.75rem;
}

.bp-template-tools {
  margin: 0 0 0.75rem;
}

.bp-template-tools[hidden] {
  display: none;
}

/* Template cards carry no select box, so the List view's first column stays empty, like a built-in row. */
.bp-template-list .blueprint-catalog-card {
  grid-template-columns: none;
}

.bp-template-list .blueprint-catalog-card .blueprint-purpose b,
.bp-template-list .blueprint-catalog-card .blueprint-meta-line b {
  font-weight: 600;
}

.list-search-empty .empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Settings > People: the box sits between the create form and the Users table. */
#users .user-search {
  margin: 0.75rem 0 0.5rem;
}

@media (max-width: 720px) {
  .list-search,
  .run-list-toolbar .list-search {
    flex-basis: 100%;
    max-width: none;
  }

  .run-list-toolbar .list-search + .field-label {
    margin-left: 0;
  }

  /* The Projects head stacks on a phone (align-items: flex-start), so the box takes the width itself. */
  #projectListPanel > .panel-head .project-search {
    width: 100%;
  }
}
