/* A quote's commissions (static/ui/commissions.js): one box per person — who, on what and the percentage in its header, the
   components and services in its body — the same box as a facilitator's (people.css) */
#commList .lf-cards { display: grid; gap: 12px; margin: 8px 0; }
#commList .lf-card { border: 1px solid var(--border, #d9dfdc); border-radius: 10px; background: var(--surface, var(--bg)); overflow: hidden; }
#commList .lf-card-head { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding: 10px 12px;
  background: var(--surface-2, #f2f5f3); border-bottom: 1px solid var(--border, #d9dfdc); }
#commList .lf-card-cell { display: grid; gap: 2px; min-width: 160px; }
#commList .lf-cell-who { flex: 2 1 240px; }
#commList .lf-cell-who input { font-weight: 600; }
#commList .lf-cell-base { flex: 2 1 240px; }
#commList .lf-cell-pct { flex: 0 0 110px; min-width: 110px; }
#commList .lf-card-del { color: var(--bad, #b42318); }
#commList .lf-card-body { padding: 8px 12px 12px; }
.comm-targets { border: 0; padding: 0; margin: 0 0 6px; }
.comm-targets legend { padding: 0; margin-bottom: 6px; }
.comm-group { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding: 6px 0; border-top: 1px dashed var(--border, #d9dfdc); }
.comm-group:first-of-type { border-top: 0; }
.comm-group > span:first-child { flex: 0 0 76px; font-weight: 600; }
.comm-target { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; cursor: pointer; }
@media (max-width: 640px) {
  #commList .lf-card-cell, #commList .lf-cell-pct { flex: 1 1 100%; min-width: 0; }
  .comm-group > span:first-child { flex-basis: 100%; }
  .comm-target { white-space: normal; }
}
