/*
  The list editor ("Lista miesięczna"). It reuses the board builder's page heading,
  layout, preview and phone bar (builder.css) and adds a small menu of tasks for each group.
*/
.nz-list-label {
  max-width: 420px;
  padding-top: var(--nz-space-5);
}

.nz-menu-groups {
  display: flex;
  flex-direction: column;
  gap: var(--nz-space-5);
  padding: var(--nz-space-5) 0 var(--nz-space-3);
}

/* One group: its name (you can change it), how many spaces are taken, the chips and your own idea. */
.nz-menu-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nz-menu-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nz-group-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: var(--nz-color-reward-step-bg);
  font-family: var(--nz-font-display);
  font-size: 1.125rem;
}

.nz-group-input::placeholder {
  color: var(--nz-color-text);
}

.nz-menu-count {
  flex: none;
  font-size: var(--nz-text-caption);
  font-weight: var(--nz-weight-bold);
}

.nz-menu-chips {
  gap: 8px;
}

.nz-task-chip {
  gap: 6px;
  padding: 0 14px 0 10px;
  background: var(--nz-color-surface);
  cursor: pointer;
}

.nz-task-chip svg {
  flex: none;
  color: var(--nz-color-accent);
}

/* A task on the list: dark, with a tick (or a cross for your own idea). */
.nz-task-chip.is-on {
  border-color: var(--nz-color-text);
  background: var(--nz-color-text);
  color: var(--nz-cream-on-dark);
}

.nz-task-chip.is-on svg {
  color: var(--nz-cream-on-dark);
}

.nz-task-chip:disabled {
  opacity: 0.4;
  cursor: default;
}

.nz-task-chip:disabled:hover {
  background: var(--nz-color-surface);
}

.nz-own-row {
  display: flex;
  gap: 8px;
  max-width: 420px;
}

.nz-own-row .nz-input {
  flex: 1;
  min-width: 0;
  height: var(--nz-target-min);
}

.nz-own-row .nz-button {
  flex: none;
}

.nz-menu-full:empty {
  display: none;
}

.nz-list-empty-hint {
  padding-bottom: var(--nz-space-6);
  border-bottom: 1px solid var(--nz-color-rule);
}

/* The A4 next to the editor is a little smaller than in the board builder. */
.nz-list-preview {
  flex-basis: var(--nz-sheet-width-list);
  width: var(--nz-sheet-width-list);
}

.nz-list-editor .nz-builder-action {
  padding-left: 0;
}
