/* The toolbar: a title, a row of groups, each a row of acts, a rule between one group and the next, and a group pushed
   to the end of the row. Shared tokens and layout words only, on the root of the toolbar
   (packages/components/src/styles.ts); logical properties only, so that the row, its groups and their rules follow
   the direction of the page. */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nw-space-8) var(--nw-space-16);
  margin-block: 0 var(--nw-space-16);
}

.toolbar > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nw-space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

.toolbar > ul + ul {
  padding-inline-start: var(--nw-space-16);
  border-style: solid;
  border-width: 0;
  border-inline-start-width: var(--nw-border-width-1);
  border-color: var(--nw-color-border);
}

.toolbar > .title {
  font-weight: var(--nw-font-weight-semibold);
  color: var(--nw-color-text-strong);
}

/* What is hidden stays hidden, though its row or its group is laid out: a group of acts the person may not use now,
   and each act of it (browser/data-table.js). */
.toolbar[hidden],
.toolbar > ul[hidden],
.toolbar > ul > li[hidden] {
  display: none;
}

.toolbar > ul.end {
  margin-inline: auto 0;
  padding-inline-start: 0;
  border-inline-start-width: 0;
}

.toolbar > ul > li > a,
.toolbar > ul > li > button,
.toolbar > ul > li > form > button {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--nw-size-control-compact);
  padding-inline: var(--nw-space-12);
  font: inherit;
  font-weight: var(--nw-font-weight-medium);
  color: var(--nw-color-accent-text);
  background: var(--nw-color-surface);
  border: var(--nw-border-width-1) solid var(--nw-color-border-strong);
  border-radius: var(--nw-radius-m);
  text-decoration: inherit;
  cursor: pointer;
}

.toolbar > ul > li > a:hover,
.toolbar > ul > li > button:hover,
.toolbar > ul > li > form > button:hover {
  background: var(--nw-color-surface-hover);
}

.toolbar > ul > li > button:disabled {
  color: var(--nw-color-text-muted);
  background: var(--nw-color-surface);
  border-color: var(--nw-color-border);
  cursor: default;
}

.toolbar > ul > li > form {
  margin: 0;
}
