/* TRK-860: a group block's rows, columns and items in the editor's right panel (page-group-editor.js) */
.pg { display: grid; gap: 10px; min-width: 0; }
.pg-fold { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); min-width: 0; }
.pg-fold.pg-col { border-radius: 8px; background: var(--sunken); border-color: transparent; }
.pg-fold.pg-inner { background: var(--surface); }
.pg-fold-head { display: flex; align-items: center; gap: 4px; padding: 2px 4px 2px 2px; min-width: 0; }
.pg-fold-name { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1; text-align: left; cursor: pointer; }
.pg-fold-name .pe-icon { width: 16px; height: 16px; color: var(--muted); transition: transform 150ms cubic-bezier(0.23, 1, 0.32, 1); }
.pg-fold-name[aria-expanded="true"] .pe-icon { transform: rotate(90deg); }
.pg-fold-name:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pg-note { color: var(--muted); font-weight: 400; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-tools { display: flex; gap: 0; flex-shrink: 0; }
.pg-tool.pe-icon-button { width: 28px; height: 28px; border-radius: 6px; }
.pg-tool .pe-icon { width: 16px; height: 16px; }
.pg-fold-body { display: grid; gap: 10px; padding: 4px 10px 10px; min-width: 0; }
.pg-row-settings { display: grid; gap: 10px; padding-bottom: 4px; }
.pg-item { display: grid; gap: 8px; padding: 8px 10px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.pg-item-head { display: flex; align-items: center; gap: 6px; min-width: 0; margin: -2px -4px -2px 0; }
.pg-item-name { flex: 1 1 auto; display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; font-weight: 600; color: var(--text); }
.pg-item-name .pe-icon { width: 15px; height: 15px; color: var(--muted); }
.pg-item .funnel-field input, .pg-item .funnel-field textarea, .pg-item .funnel-field select { width: 100%; font-size: 13px; }
.pg-sub { min-width: 0; }
.pg-add { display: flex; flex-wrap: wrap; align-items: center; gap: 0; padding-top: 2px; }
.pg-add-label { font-size: 12px; color: var(--muted); margin-right: 4px; }
.pg-add-row { justify-self: start; }
.pg-empty { margin: 0; }
/* The panel's tooltips open leftwards near its right edge, so they aren't cut off */
.pe .pg-tools [data-tip]::after { left: auto; right: 0; transform: translate(0, -2px); }
.pe .pg-tools [data-tip]:hover::after, .pe .pg-tools [data-tip]:focus-visible::after { transform: none; }
@media (prefers-reduced-motion: reduce) { .pg-fold-name .pe-icon { transition: none; } }
@media (max-width: 640px) {
  .pg-item .funnel-field input, .pg-item .funnel-field textarea, .pg-item .funnel-field select { font-size: 16px; }
  .pg-tool.pe-icon-button { width: 36px; height: 36px; }
}
