/* Espace client et diffusion par organisation. */
.pt-client { max-width: 1120px; margin: 0 auto; }
.pt-client :is(h1,h2,p), .pt-grant h3, .pt-registry h2, .pt-shares h2 { margin: 0; }
.pt-client-head, .pt-mission-title, .pt-client-filter, .pt-doc-row, .pt-user, .pt-save { display: flex; align-items: center; gap: 1rem; }
.pt-client-head { padding: 1.65rem 0 1.9rem; }
.pt-client-head h1 { line-height: 1.2; }
.pt-client-head p { color: var(--muted); margin-top: .35rem; overflow-wrap: anywhere; }
.pt-client-symbol, .pt-empty-icon, .pt-doc-icon { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 10px; }
.pt-client-symbol { width: 3.2rem; height: 3.2rem; background: var(--midnight); color: white; }
.pt-client-symbol .icon, .pt-empty-icon .icon { width: 1.55rem; height: 1.55rem; }
.pt-client-filter { justify-content: space-between; align-items: end; margin-bottom: 1rem; }
.pt-client-filter label { width: min(100%, 32rem); }
.pt-client-filter span { white-space: nowrap; color: var(--muted); font-size: .85rem; padding: .6rem 0; }
.pt-mission-docs { margin-bottom: 1rem; }
.pt-mission-title { justify-content: space-between; padding-bottom: .95rem; border-bottom: 1px solid var(--line); }
.pt-mission-title small, .pt-doc-label small, .pt-choice small { display: block; margin-top: .25rem; color: var(--muted); font-weight: 400; }
.pt-doc-row, .pt-user { padding: .95rem 0; }
.pt-doc-row + .pt-doc-row, .pt-user + .pt-user { border-top: 1px solid var(--line); }
.pt-doc-row:last-child, .pt-user:last-child { padding-bottom: .1rem; }
.pt-doc-icon, .pt-empty-icon { background: #e8f2ef; color: #20654f; }
.pt-doc-icon { width: 2.45rem; height: 2.45rem; }
.pt-doc-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pt-doc-links, .pt-save { display: flex; flex-wrap: wrap; gap: .5rem; }
.pt-doc-links .btn { white-space: nowrap; }
.pt-empty { text-align: center; padding: 2.75rem 1.25rem; }
.pt-empty-icon { width: 3rem; height: 3rem; margin-bottom: .95rem; }
.pt-empty p { margin: .6rem auto 0; color: var(--muted); }
.pt-user-list, .pt-registry-list { list-style: none; margin: 0; padding: 0; }
.pt-hint, .pt-save span, .pt-registry-list { color: var(--muted); font-size: .86rem; }
.pt-hint { margin: .45rem 0 .7rem; }
.pt-hint a { text-decoration: underline; text-underline-offset: 2px; }
.pt-error { color: #9d302b; }
.pt-error:empty { margin: 0; }
.pt-details { margin-top: .9rem; border-top: 1px solid var(--line); }
.pt-details > summary { cursor: pointer; padding: .9rem 0 .2rem; font-weight: 650; }
.pt-registry-list { display: grid; gap: .4rem; margin: .75rem 0; }
.pt-org-form { margin-top: 1rem; max-width: 40rem; }
.pt-party-picker { min-width: 0; }
.pt-party-picker > label + label { margin-top: .6rem; }
.pt-grants { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1rem; }
.pt-grant { border: 1px solid var(--border); border-radius: 9px; padding: 1rem; min-width: 0; }
.pt-party-name { margin: .2rem 0 1rem; color: var(--muted); overflow-wrap: anywhere; }
.pt-context { padding: .65rem .8rem; border-left: 3px solid var(--gold); background: #fcf8f0; color: #5d482b; font-size: .87rem; }
.pt-report-list { border: 1px solid var(--border); border-radius: 7px; padding: .3rem .75rem .55rem; margin: .9rem 0; min-width: 0; max-height: 22rem; overflow-y: auto; }
.pt-report-list legend { padding: 0 .3rem; font-weight: 650; font-size: .86rem; }
.pt-choice { display: flex; align-items: start; gap: .65rem; padding: .55rem 0; cursor: pointer; }
.pt-choice + .pt-choice { border-top: 1px solid var(--line); }
.pt-choice input { flex: 0 0 auto; margin: .2rem 0 0; width: 1rem; height: 1rem; }
.pt-choice span { overflow-wrap: anywhere; }
.pt-grant button[data-reload] { margin-top: .5rem; }
.pt-report-list:disabled .pt-choice { opacity: .65; cursor: default; }
.pt-save { align-items: center; }
#pt-account-org[hidden], .pt-party-picker [hidden], .pt-grant [hidden], .pt-context[hidden] { display: none !important; }
@media(max-width: 740px) {
  .pt-grants { grid-template-columns: 1fr; }
  .pt-doc-row { flex-wrap: wrap; gap: .7rem; }
  .pt-doc-links { width: 100%; }
  .pt-client-filter { display: grid; gap: .4rem; }
  .pt-client-filter label, .pt-client-filter input { width: 100%; }
  .pt-client-filter span { padding: 0; }
}
.pt-shares { margin-bottom: 1rem; }
.pt-role-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; }
.pt-role-card { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.55rem; background:var(--paper); border:1px solid var(--border); border-radius:.6rem; padding:.7rem .9rem; }
.pt-role-card strong, .pt-role-card span { display:block; overflow-wrap:anywhere; }
.pt-role-card span { font-size:.82rem; color:var(--muted); }
.pt-user-actions { display:flex; flex-wrap:wrap; gap:.45rem; }
.pt-release { display:block; margin-top:1rem; color:var(--muted); font-size:.78rem; }
.pt-edit-body { padding:1.2rem; }
.pt-account-dialog .rg-modal-head { position:sticky; top:0; padding:1rem 1.2rem; background:white; z-index:1; }
.pt-account-dialog [hidden], [data-account-org][hidden] { display:none !important; }
.pt-grant h3 { scroll-margin-top:6rem; }
.pt-grant h3:focus { outline:2px solid var(--teal); outline-offset:3px; }
@media(max-width:740px) {
  .pt-role-pair { grid-template-columns:1fr; }
  .pt-user { flex-wrap:wrap; column-gap:.65rem; row-gap:.4rem; }
  .pt-user-actions { flex:0 1 100%; padding-left:3.1rem; }
}
.pt-role-card small { color:var(--muted); font-size:.8rem; }
.pt-contacts { margin-top:.7rem; }
.pt-contacts summary { cursor:pointer; font-weight:600; font-size:.87rem; }
.pt-contacts ul { padding-left:1.1rem; max-height:9rem; overflow:auto; }
.pt-contacts li { overflow-wrap:anywhere; }
