/* Money and sharing on templates (task-money.js, task-share.js; docs/TASK-TEMPLATES.md §11, §12, §16, §22).
   Flat, as the rest: hairlines between rows, a 2px rule on the left for a state, no boxes. Classes pm- and sh-. */
.pm-page .chips, .sh-page .chips { margin-bottom: 14px; }
.pm-sec { margin: 0 0 26px; padding-top: 4px; }
.pm-small { font-size: 12.5px; margin: 4px 0 10px; max-width: 760px; }
.pm-dl { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 6px 18px; margin: 8px 0 12px; font-size: 13.5px; }
.pm-dl dt { color: var(--text-3); }
.pm-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pm-wrap { overflow-wrap: anywhere; word-break: break-word; }
.pm-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pm-big { font-size: 18px; }
.pm-line { margin: 6px 0; font-size: 13.5px; overflow-wrap: anywhere; }
.pm-line.warn, .pm-num.warn { color: var(--warn); }
.pm-h3 { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin: 16px 0 6px; }
.pm-acts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px; }
.pm-acts .linkbtn, .sh-sec .linkbtn, .pm-sub .linkbtn { color: var(--canopy-2); padding: 0; }
.pm-box { margin-top: 10px; }
.pm-form { display: flex; flex-direction: column; gap: 10px; max-width: 620px; padding-left: 12px; border-left: 2px solid var(--line-2); }
.pm-note { margin: 0; font-size: 12.5px; color: var(--text-2); }
.pm-err { margin: 0; color: var(--bad); font-size: 12.5px; }
.pm-copy { display: flex; gap: 8px; min-width: 0; }
.pm-copy input { flex: 1 1 auto; min-width: 0; background: var(--ink-2); border: 1px solid var(--control); border-radius: 4px; padding: 7px 9px; color: var(--text); font-size: 12px; }
table.pm-t { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0; }
table.pm-t th { text-align: left; font-weight: 500; color: var(--text-3); border-bottom: var(--hair); }
table.pm-t td { border-bottom: var(--hair); vertical-align: top; overflow-wrap: anywhere; }
table.pm-t tr.pm-tot td { border-bottom: 0; }
table.pm-cat tr[data-item] { cursor: pointer; }
table.pm-cat tr[data-item]:hover td { background: var(--ink-2); }
tr.pm-off td, tr.pm-old td { color: var(--text-3); }
tr.pm-now td:first-child { box-shadow: inset 2px 0 0 var(--ok); padding-left: 8px; }
.pm-go { text-align: right; }
.pm-rows { border-top: var(--hair); }
.pm-row, .pm-q, .sh-row { padding: 10px 0 10px 12px; border-bottom: var(--hair); border-left: 2px solid var(--line-2); }
.pm-q.accepted { border-left-color: var(--ok); } .pm-q.open { border-left-color: var(--warn); } .pm-q.superseded, .pm-q.expired { opacity: .75; }
.pm-row.pm-void { opacity: .6; }
.pm-row-t { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 13.5px; }
.pm-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
.pm-sub a { color: var(--canopy-2); }
.pm-quotes { border-top: var(--hair); margin-top: 8px; }
.pm-stmt { margin-top: 6px; font-size: 12.5px; }
.pm-stmt summary { cursor: pointer; color: var(--text-2); }
.pm-steps { list-style: none; margin: 6px 0; padding: 0; border-left: 1px solid var(--line-2); }
.pm-steps li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 5px 0 5px 14px; position: relative; color: var(--text-3); font-size: 13.5px; }
.pm-steps li.on { color: var(--text); }
.pm-steps li.cur { font-weight: 600; }
.pm-steps .pm-dot { position: absolute; left: -4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); border: 1px solid var(--line-2); }
.pm-steps li.on .pm-dot { background: var(--ok); border-color: var(--ok); }
.pm-steps li.cur .pm-dot { background: var(--canopy); border-color: var(--canopy); }
.pm-steps .pm-acts { margin: 0; }
.pm-locks { margin: 8px 0; padding: 0 0 0 12px; list-style: none; border-left: 2px solid var(--warn); font-size: 13px; }
.pm-locks li { margin: 3px 0; overflow-wrap: anywhere; }
.pm-sum { grid-template-columns: repeat(2, max-content 1fr); }
.sh-row { border-left-color: var(--sky, var(--line-2)); }
.sh-row + .sh-row { border-top: 0; }
.sh-map { height: 260px; margin-top: 10px; }
.sh-map-big { height: 380px; }
.sh-once { border-left-color: var(--ok); }
.tk-lock { font-size: 12.5px; color: var(--warn); margin: 6px 0 0; padding-left: 10px; border-left: 2px solid var(--warn); }
.tk-parties { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.tk-parties li { padding: 4px 0; border-bottom: var(--hair); display: flex; flex-wrap: wrap; gap: 2px 12px; }
.tk-parties a { color: var(--canopy-2); }
.tk-pay-room { margin-top: 18px; }
@media (max-width: 780px) {
  .pm-dl, .pm-sum { grid-template-columns: 1fr; gap: 2px 0; }
  .pm-dl dd { margin-bottom: 6px; }
  table.pm-t thead { display: none; }
  table.pm-t, table.pm-t tbody, table.pm-t tr, table.pm-t td { display: block; width: 100%; }
  table.pm-t tr { border-bottom: var(--hair); padding: 6px 0; }
  table.pm-t td { border: 0; padding: 2px 0; }
  table.pm-t td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--text-3); }
  .pm-go { text-align: left; }
  .sh-map { height: 220px; }
  .sh-map-big { height: 300px; }
}
/* templates.js: an owner's review of what a version shows outside; holders; the fence; parties in the defaults */
.te-review { margin: 0 0 16px; }
.te-rev { padding-left: 12px; border-left: 2px solid var(--warn); max-width: 760px; }
.te-rev-part { padding: 8px 0; border-bottom: var(--hair); font-size: 13.5px; overflow-wrap: anywhere; }
.te-rev-part p { margin: 4px 0 0; }
.te-rev-part .te-chip { margin-right: 4px; display: inline-block; }
.te-rev-form { margin-top: 10px; }
.te-holders { padding-top: 6px; }
.te-fence { margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--line-2); display: flex; flex-direction: column; gap: 6px; }
.te-parties { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.tt-money { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* the fixes: why a task is blocked; task-invoices.js: a held draft beside our figure */
.tt-why { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 3px; max-width: 260px; white-space: normal; overflow-wrap: anywhere; }
.in-top .tt-why { display: inline; margin: 0; }
.iv-doc.iv-held, .iv-doc.iv-asked, .iv-doc.iv-failed { border-left-color: var(--warn); }
.iv-doc.iv-final { border-left-color: var(--ok); }
.iv-held { margin-top: 6px; }
.te-inv { padding-top: 6px; }
