/* Team › Ruoli e permessi: i profili d'accesso (`pages/team/profili.js`). */
.tm-pf{border-top:1px solid var(--border);padding:18px 20px 20px;}
.tm-pf-h{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px;}
.tm-pf-h h3{display:flex;align-items:center;gap:8px;font-size:15px;margin:0 0 4px;}
.tm-pf-h h3 i{width:16px;height:16px;color:var(--primary-dark);}
.tm-pf-h p{margin:0;color:var(--muted);font-size:12.5px;max-width:560px;line-height:1.45;}
.tm-pf-list{list-style:none;margin:0;padding:0;border:1px solid var(--border);border-radius:var(--radius);}
.tm-pf-row{display:grid;grid-template-columns:minmax(160px,220px) 1fr auto;align-items:center;gap:12px;padding:10px 12px;}
.tm-pf-row+.tm-pf-row{border-top:1px solid var(--line-soft);}
.tm-pf-main{min-width:0;}
.tm-pf-main b{display:block;font-size:13.5px;overflow-wrap:anywhere;}
.tm-pf-main small{color:var(--muted);font-size:12px;}
.tm-pf-secs{display:flex;flex-wrap:wrap;gap:6px;font-size:12px;}
.tm-pf-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;background:var(--primary-soft);color:var(--primary-dark);font-weight:600;}
.tm-pf-chip i{width:13px;height:13px;}
.tm-pf-acts{display:flex;gap:4px;}
.tm-pf-empty{padding:14px;border:1px dashed var(--border);border-radius:var(--radius);color:var(--muted);font-size:13px;line-height:1.45;}
/* la finestra */
.tm-pf-lbl{font-size:11.5px;font-weight:600;color:var(--muted);}
.tm-pf-fig{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;margin:4px 0 14px;border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft);}
.tm-pf-fig b{display:block;font-size:13.5px;}
.tm-pf-fig small{display:block;color:var(--muted);font-size:12px;line-height:1.4;margin-top:2px;}
.tm-pf-opts{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin-top:6px;}
.tm-pf-opt{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--text);font:inherit;font-size:13px;font-weight:600;cursor:pointer;text-align:left;}
.tm-pf-opt i{width:16px;height:16px;color:var(--muted);}
.tm-pf-opt:hover:not(:disabled){background:var(--hover);}
.tm-pf-opt.on{border-color:var(--primary);background:var(--primary-tint);}
.tm-pf-opt.on i{color:var(--primary-dark);}
.tm-pf-opt:disabled{cursor:not-allowed;color:var(--muted);background:var(--field);}
.tm-pf-opt small{font-weight:500;color:var(--muted);font-size:11.5px;}
.tm-pf-opt:focus-visible{outline:2px solid var(--primary);outline-offset:2px;}
.tm-pf-err{margin:10px 0 0;padding:8px 10px;border-radius:var(--radius);background:var(--red-soft);color:var(--red-dark);font-size:12.5px;}
.tm-pf-field{margin-top:14px;}
@media (max-width:640px){
  .tm-pf{padding:16px;}
  .tm-pf-row{grid-template-columns:1fr auto;}
  .tm-pf-secs{grid-column:1/-1;grid-row:2;}
}
