/* block-list — Block Management page layout and table */

.block-list__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wa-space-m);
  padding-bottom: var(--wa-space-l);
}

.block-list__breadcrumb {
  color: var(--wa-color-text-quiet);
  font-size: var(--wa-font-size-s);
}

.block-list__event {
  color: var(--wa-color-text-quiet);
  font-size: var(--wa-font-size-s);
}

.block-list__title-group {
  display: flex;
  align-items: baseline;
  gap: var(--wa-space-s);
}

.block-list__title {
  font-family: var(--wa-font-family-heading);
  font-weight: var(--wa-font-weight-heading);
  font-size: var(--wa-font-size-2xl);
}

.block-list__table-wrap {
  overflow-x: auto;
}

.block-list__table {
  width: 100%;
  border-collapse: collapse;
}

.block-list__table th,
.block-list__table td {
  text-align: left;
  padding: var(--wa-space-s);
  border-bottom: 1px solid var(--wa-color-surface-border);
}

.block-list__nights {
  color: var(--wa-color-text-quiet);
  font-size: var(--wa-font-size-s);
}

.block-list__empty {
  text-align: center;
  padding: var(--wa-space-xl) var(--wa-space-l);
  border: 1px solid var(--wa-color-neutral-border-quiet);
  border-radius: var(--wa-border-radius-m);
  background: var(--wa-color-surface-lowered);
}

/* The actions cell — Bulk adjust link plus the lifecycle button_to controls.
   button_to's <form> is display:block by default, which lets the button's box
   escape the cell and sit under a neighbouring td at narrow widths — Playwright
   reported "subtree intercepts pointer events". `display: contents` removes
   the form's box so the button flows inline and stays clickable. */
.block-list__table td:last-child {
  white-space: nowrap;
}

.block-list__table td:last-child .button_to {
  display: contents;
}

.block-list__transition {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin-inline-start: var(--wa-space-s);
  color: var(--wa-color-text-link);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
