/* Send a document to the customer: buttons on document rows, the dialog, and the "Sent by" history. Logic: js/send.js */
.vr-docs li { flex-wrap: wrap; }
.vr-doc-acts { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.snd-hist { flex: 1 0 100%; font-size: 12.5px; color: var(--muted); line-height: 1.5; padding-top: 2px; }
.snd-hist[hidden] { display: none; }
.snd-hist b { color: var(--ink-2); font-weight: 600; }
.snd-hist .dot { opacity: .6; }
.snd-hist .mono { font-family: var(--mono); font-size: 12px; }
.snd-open.seen { color: var(--good); font-weight: 600; }
.vr-prev-bar .btn svg, .snd-acts .btn svg { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.vr-prev-bar > span { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* dialog */
.snd { display: grid; gap: 14px; }
.snd-modal .modal-form footer .btn.primary { display: none; }
.snd-modal .modal-form footer { justify-content: flex-end; }
.snd-docs { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 12px 10px; margin: 0; min-width: 0; }
.snd-docs legend { padding: 0 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.snd-doc { display: flex; align-items: center; gap: 10px; padding: 8px 0; min-height: 44px; cursor: pointer; }
.snd-doc input { width: 20px; height: 20px; flex: none; }
.snd-doc span { display: flex; flex-direction: column; min-width: 0; }
.snd-doc small { color: var(--muted); font-size: 12.5px; }
.snd textarea { min-height: 96px; }
.snd-note { margin: -4px 0 0; font-size: 12.5px; }
.snd-status { margin: 0; min-height: 20px; font-size: 13px; color: var(--muted); }
.snd-status.ok { color: var(--good); font-weight: 600; }
.snd-status.bad { color: var(--bad); font-weight: 600; }
.snd-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.snd-acts .btn { flex: 1 1 140px; justify-content: center; min-height: 44px; }
.snd .busy .btn[data-snd] { opacity: .6; }
@media (max-width: 600px) {
  .vr-docs li { align-items: flex-start; }
  .vr-docs .tx { flex: 1 1 100%; }
  .vr-doc-acts { width: 100%; justify-content: flex-start; }
  .vr-doc-acts .btn { flex: 1 1 auto; min-height: 40px; }
  .snd-acts .btn { flex-basis: 100%; }
  .snd .f2 { grid-template-columns: 1fr; }
}
