/* The Digest page (payment-digest.js). It reuses the Calendar's stat tiles,
   pills and kind chips (sales-calendar.css) and the workspace palette. */
.pd-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pd-section-head h3{margin:0}
.pd-carousel,.pd-digest{padding:20px;display:flex;flex-direction:column;gap:14px}
.pd-carousel-nav{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pd-position{font-size:12px;color:var(--quiet)}
.pd-card{padding:16px;display:flex;flex-direction:column;gap:12px;border:1px solid var(--line-soft,var(--line))}
.pd-card.confirmed{border-color:var(--good,#4b6a3b)}
.pd-card.not_received{border-color:var(--bad,#9a3b2b)}
.pd-card-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pd-card-head .cal-chip-kind{font-size:9px;letter-spacing:.06em;text-transform:uppercase;padding:2px 6px;border-radius:5px}
.pd-amount{font-size:22px;font-weight:500}
.pd-shot{display:flex;align-items:center;justify-content:center;min-height:120px;border-radius:10px;background:var(--navy-soft);overflow:hidden}
.pd-shot-img{display:block;max-width:100%;max-height:60vh;object-fit:contain}
.pd-shot-empty{padding:18px;font-size:12px;color:var(--quiet);text-align:center}
.pd-facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 14px;margin:0;font-size:13px}
.pd-facts dt{color:var(--quiet)}
.pd-facts dd{margin:0;overflow-wrap:anywhere}
.pd-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pd-note{font-size:11px}
.pd-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.pd-list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:13px}
.pd-attention h4,.pd-accounts h4,.pd-unbound h4{margin:0 0 8px}
.pd-popup-backdrop{align-items:flex-start;overflow-y:auto}
.pd-popup{width:min(560px,100%);padding:20px;gap:14px;max-height:none}
.pd-close{margin-left:auto}
@media (max-width:1180px){.pd-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){
  .pd-carousel,.pd-digest,.pd-popup{padding:16px}
  .pd-stats{grid-template-columns:1fr}
  .pd-facts{grid-template-columns:1fr}
  .pd-facts dd{margin-bottom:6px}
}
