/* Notes tab (admin) - list-level styles.
 *
 * The detail UI styles live in `views/note-view.css`.
 */

#notesListPanel[hidden] {
  display: none !important;
}

.prompt-list-view {
  overflow-x: hidden;
}

.prompt-list-group {
  margin: 2px 0 8px;
}

.prompt-list-group-label {
  text-transform: none;
}

.prompt-list-row {
  width: 100%;
}

.prompt-list-row > div {
  min-width: 0;
}

/* A List View aplica o template inline; a alça de reordenação entra como primeira coluna. */

.prompt-list-head > div,
.prompt-list-item > div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prompt-list-item {
  cursor: pointer;
}

.prompt-list-item:hover {
  background: rgba(55, 53, 47, 0.06);
  border-color: rgba(55, 53, 47, 0.14);
}

.prompt-list-item:focus-visible,
.prompt-category-trigger:focus-visible {
  outline: 2px solid var(--admin-accent-focus);
  outline-offset: 2px;
}

.prompt-list-name {
  font-weight: 500;
  color: var(--admin-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prompt-category-trigger {
  width: 100%;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 0 10px;
  margin: 0;
  font: inherit;
  color: var(--admin-text);
  cursor: pointer;
}

.prompt-category-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-category-arrow {
  width: 16px;
  height: 16px;
  color: var(--admin-muted);
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .prompt-list-view .lv-row {
    grid-template-columns: 40px minmax(170px, 1.45fr) minmax(110px, 0.8fr) !important;
  }
}
