/* V0.14.1 成果回報：行程卡三種狀態、摘要（2 行＋展開）、更新草稿差異審查。沿用 V0.14 色彩 token 與深色模式。 */
.v14-item.v141-has-summary { flex-wrap: wrap; }
.v141-summary { flex: 1 0 100%; min-width: 0; margin: 0 0 6px; padding: 6px 10px; border-left: 3px solid var(--ok-ink); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; background: var(--surface-2); }
.v141-summary > summary { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; list-style: none; min-height: 32px; }
.v141-summary > summary::-webkit-details-marker { display: none; }
.v141-summary > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.v141-excerpt { flex: 1 1 auto; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; color: var(--ink-2); font-size: .88rem; }
.v141-more { flex: 0 0 auto; color: var(--brand); font-size: .8rem; white-space: nowrap; }
.v141-summary[open] .v141-excerpt { display: none; }
.v141-summary[open] .v141-more { margin-left: auto; }
.v141-summary[open] .v141-more::after { content: "（收合）"; }
.v141-summary .detail-text, .v141-current .detail-text, .v141-compare .detail-text, .v141-diff-line .detail-text { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.v141-states { margin: 4px 0 8px; }
.v141-choice { margin: 8px 0 12px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: var(--r-ctl); display: grid; gap: 6px; justify-items: start; }
.v141-current { margin: 6px 0; }
.v141-mode { display: grid; gap: 4px; border: 0; padding: 0; margin: 0; }
.v141-meta { display: grid; gap: 4px; margin: 8px 0; }
.v141-meta > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; }
.v141-meta dt { color: var(--muted); }
.v141-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.v141-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.v141-compare section { min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-ctl); max-height: 40vh; overflow: auto; }
.v141-compare section:last-child { border-color: var(--ok-ink); }
.v141-compare h3 { margin: 0 0 4px; font-size: .85rem; color: var(--muted); }
.v141-draft h3 { overflow-wrap: anywhere; }
.v141-row td:nth-child(2) strong { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .v14-item-meta { flex-wrap: wrap; gap: 6px; }
  .v141-compare { grid-template-columns: minmax(0, 1fr); }
  .v141-meta > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .v141-summary, .v141-summary * { transition: none !important; animation: none !important; }
}

/* V0.16.2: 行程成果更新草稿一眼可辨、按鈕可按（逐筆審查規則不變）。 */
.v141-row td:first-child { white-space: nowrap; }
.v162-review-hint { display: block; margin-top: 4px; font-size: 11px; color: var(--muted, #5B6B7F); }
.batch-table .v162-review-btn { min-height: 44px; padding: 0 14px; white-space: nowrap; }
.v162-report-pill { background: var(--brand-soft, #EAF3FC); color: var(--brand, #1F3A5F); }
.v162-has-report > summary { border-left: 4px solid var(--brand, #1F3A5F); }
@media (max-width: 760px) {
  /* Phone card layout: the checkbox cell is overlaid on the title, so the hint lives in the batch pill instead. */
  .v162-review-hint { display: none; }
  .batch-table .v162-review-btn { min-height: 44px; }
}
