/* Controls screen styles: custom fields, approvals, roles and permissions. Logical properties only, tokens from app.css. */
.pf-help { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; }
.pf-help > .icon { color: var(--accent-t); flex: none; margin-top: 2px; }
.pf-help p { margin: 3px 0 0; font-size: 13.5px; }
.pf-ents { max-width: 100%; }
.pf-ents small, .seg button small { opacity: .7; }
.pf-list .pf-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background .12s, opacity .15s; }
.pf-list .pf-row:last-child { border-bottom: 0; }
.pf-list .pf-row:hover { background: var(--surface2); }
.pf-row.off { opacity: .6; }
.pf-row.over { box-shadow: inset 0 2px 0 var(--accent-t); }
.pf-row[draggable=true] { cursor: grab; }
.pf-grip { color: var(--ink3); letter-spacing: -3px; font-size: 16px; user-select: none; width: 14px; flex: none; }
.pf-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pf-act { display: flex; align-items: center; gap: 2px; flex: none; }
.pf-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent-t); flex: none; }
.pf-req { color: var(--bad); margin-inline-start: 3px; }
.warn-t { color: var(--warn); font-weight: 600; }
.pf-dlg { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.pf-dlg-foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.pf-preview { position: sticky; top: 0; display: grid; gap: 10px; }
.pf-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 6px; }
.pf-type { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; text-align: start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); transition: all .15s; }
.pf-type .icon { grid-row: span 2; color: var(--ink3); }
.pf-type b { font-size: 13px; } .pf-type small { color: var(--ink3); font-size: 11.5px; line-height: 1.3; }
.pf-type:hover { border-color: var(--line-strong); }
.pf-type.on { border-color: var(--accent-t); background: var(--grad-soft); box-shadow: 0 0 0 1px var(--accent-t) inset; }
.pf-type.on .icon { color: var(--accent-t); }
.pf-type:disabled { opacity: .45; }
.pf-opt { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); }
.pf-opt small { display: block; font-size: 12.5px; }
.pf-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-chips .chip.on { background: var(--grad-soft); border-color: var(--accent-t); color: var(--accent-t); }
.pf-yn { width: max-content; }
.pf-file { cursor: pointer; }
.pf-fb { gap: 6px; }
.pf-cf { display: grid; gap: 12px; }
.pf-cf h4 { margin: 0; }
/* approvals */
.pf-req-card { display: grid; gap: 12px; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pf-details { padding: 12px 14px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); font-size: 13.5px; }
.pf-sentence { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; padding: 18px; border-radius: 16px; background: var(--surface2); border: 1px solid var(--line); font-size: 15px; line-height: 2.1; }
.pf-sentence select, .pf-sentence .pf-in { width: auto; min-width: 120px; max-width: 100%; height: 38px; font-weight: 600; border-radius: 10px; }
.pf-sentence .pf-in { width: 130px; min-width: 90px; }
.pf-say { display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.pf-say .icon { color: var(--accent-t); flex: none; }
/* matrix */
.pf-mh, .pf-mr { display: grid; grid-template-columns: minmax(0, 1fr) 90px 130px 130px; align-items: center; gap: 8px; padding: 10px 18px; }
.pf-mh { background: var(--surface2); border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); position: sticky; top: 0; z-index: 2; }
.pf-mh span:not(:first-child), .pf-mr > span:not(:first-child) { display: flex; justify-content: center; }
.pf-mod { border-bottom: 1px solid var(--line); }
.pf-mod:last-child { border-bottom: 0; }
.pf-mr { border-top: 1px solid var(--line); font-size: 14px; }
.pf-mr.head { border-top: 0; background: var(--bg-tint); padding-block: 12px; }
.pf-mn { display: flex; align-items: center; gap: 10px; text-align: start; min-width: 0; }
.pf-mn small { margin-inline-start: 2px; }
.pf-cn { display: grid; padding-inline-start: 26px; min-width: 0; }
.pf-cn small { font-size: 11.5px; direction: ltr; text-align: start; }
.pf-ok { color: var(--good); }
.pf-na { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink3); }
.pf-fixed ul { margin: 8px 0 0; padding-inline-start: 20px; color: var(--ink2); font-size: 13.5px; }
.pf-fixed b { font-size: 13.5px; }
@media (max-width: 760px) {
  .pf-dlg { grid-template-columns: minmax(0, 1fr); }
  .pf-preview { position: static; order: -1; }
  .pf-list .pf-row { flex-wrap: wrap; }
  .pf-tags { justify-content: flex-start; }
  .pf-mh, .pf-mr { grid-template-columns: minmax(0, 1fr) 64px 64px; padding-inline: 12px; gap: 4px; }
  .pf-mh span:nth-child(2), .pf-mr > span.pf-ok { display: none; }
  .pf-mn { flex-wrap: wrap; row-gap: 2px; }
  .pf-na { font-size: 0; } .pf-na .icon { font-size: 14px; }
}
