.wd-view { align-content:start; }
.wd-view .wd-list { overflow-x:auto; }
.wd-list table { width:100%; border-collapse:collapse; font-size:13px; }
.wd-list th, .wd-list td { padding:12px 14px; border-bottom:1px solid var(--line); text-align:left; vertical-align:middle; }
.wd-list th { background:var(--surface2); color:var(--muted); font-size:11px; font-weight:550; }
.wd-list td { overflow-wrap:anywhere; }
.wd-list small { margin-top:2px; font-size:12px; }
.wd-ref, .wd-iban dd { font-family:var(--mono); }
.wd-list .wd-amount, .wd-list .wd-action-heading { text-align:right; }
.wd-amount { white-space:nowrap; font-variant-numeric:tabular-nums; }
.wd-list td.wd-amount, .wd-drawer .wd-amount dd { font-family:var(--sans); font-weight:600; }
.wd-actions > div, .wd-controls { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:6px; }
.wd-actions button { white-space:nowrap; }
.wd-status { display:inline-flex; align-items:center; gap:4px; }
.wd-drawer { position:fixed; inset:0 0 0 auto; width:min(480px,100vw); height:100dvh; max-width:100vw; max-height:100dvh; margin:0; border:0; border-left:1px solid var(--line); border-radius:0; padding:24px; }
.wd-drawer .q-dialog-head { padding-bottom:16px; border-bottom:1px solid var(--line); }
.wd-summary { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:20px 0; }
.wd-summary strong { overflow-wrap:anywhere; }
.wd-drawer .q-data { margin:12px 0 0; }
.wd-iban { grid-column:1 / -1; }
.wd-controls, .wd-error { margin-top:16px; }
.wd-signature code { display:block; overflow-wrap:anywhere; user-select:all; font:12px/1.5 var(--mono); }
.wd-signature .q-dialog-head { border:0; padding-bottom:8px; }
@media (max-width:800px) {
  .wd-list table, .wd-list tbody { display:block; }
  .wd-list thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .wd-list tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:14px; border-bottom:1px solid var(--line); }
  .wd-list td { display:block; border:0; padding:0; }
  .wd-list td[data-label]::before { display:block; content:attr(data-label); color:var(--muted); font-size:11px; }
  .wd-list .wd-amount { text-align:left; }
  .wd-actions { grid-column:1 / -1; }
  .wd-actions > div { justify-content:flex-start; }
  .wd-drawer { padding:16px; }
}
