/* 「发信被跳过」抽屉（components/skipped-mail.js）：概览待办和「BD 数据」共用 */
.sheet.lg.sm-sheet { width: min(900px, 100vw); }
.sm-sheet .toolbar select.input { width: auto; min-width: 9rem; }
.sm-sheet .mono { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sm-sheet .sm-sub { color: var(--muted-foreground); font-size: 12px; }
.sm-sheet td.wrap { max-width: 18rem; }
.sm-sheet .sm-who { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.sm-sheet .sm-moved { margin-top: 4px; }
.sm-sheet .sm-vars { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.sm-sheet .col-actions { white-space: nowrap; }
.sm-sheet #sm-edit-view { max-width: 560px; }
.sm-sheet .sm-back { margin: -4px 0 12px -8px; }
.sm-sheet .sm-edit-who { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.sm-sheet .field { margin-bottom: 14px; }
.sm-sheet .sm-gap { margin-top: 14px; }
.sm-sheet .sm-preview { padding: 10px 12px; border-radius: var(--radius); background: var(--muted); font-size: 13px; }
.sm-sheet .sm-preview b { color: var(--foreground); }
.sm-sheet .sm-sources { display: grid; gap: 6px; font-size: 13px; margin-top: 4px; }
.sm-sheet .sm-sources div { display: flex; justify-content: space-between; gap: 12px; }
.sm-sheet .sm-error { margin: 10px 0 0; color: var(--destructive); font-size: 13px; }
@media (max-width: 640px) {
  .sm-sheet .toolbar select.input { flex: 1 1 8rem; }
  .sm-sheet .toolbar .end { width: 100%; margin-left: 0; }
  /* 窄屏：每位收件人一块，原因不被固定的操作列挡住 */
  .sm-sheet table, .sm-sheet tbody, .sm-sheet tr, .sm-sheet td { display: block; width: auto; }
  .sm-sheet thead { display: none; }
  .sm-sheet tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who time" "tpl tpl" "reason reason" "act act";
                       gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .sm-sheet tbody td { padding: 0; border: 0; max-width: none; }
  .sm-sheet td.sm-c-who { grid-area: who; min-width: 0; overflow-wrap: anywhere; }
  .sm-sheet td.sm-c-time { grid-area: time; text-align: right; }
  .sm-sheet td.sm-c-tpl { grid-area: tpl; font-size: 12px; color: var(--muted-foreground); }
  .sm-sheet td.sm-c-reason { grid-area: reason; margin-top: 2px; }
  .sm-sheet .table-wrap td.col-actions { grid-area: act; display: flex; gap: 8px; width: auto; margin-top: 6px;
                                         position: static; background: transparent; box-shadow: none; text-align: left; }
  .sm-sheet .table-wrap tbody tr:hover td.col-actions { background: transparent; }
}
