/* ============================================================
 * 批 V18 V18-24 费用随手记（public/js/fin-notes.js）：设计稿 rv/V18-designs V18-24_费用随手记「稿_在真页面里画的.js」顶上 xn- 那一段照搬，
 * 另补页面用到的几条（缩略图去掉按钮、列宽、勾选面板、手机卡片 / 悬浮按钮的显隐）。类名都以 .xn- 开头，碰不到别的页。
 * ============================================================ */
.xn-wrap { display: flex; flex-direction: column; gap: 12px; }
.xn-sel { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--u-brand-soft); border-bottom: 1px solid var(--u-brand-line); font-size: 14px; line-height: 22px; color: var(--u-ink); }
.xn-sel b { font-variant-numeric: tabular-nums; }
.xn-sel .sp { flex: 1; }
.xn-dis-wrap { display: inline-flex; }
.xn-ck { width: 16px; height: 16px; accent-color: var(--u-brand); margin: 0; vertical-align: middle; }
.xn-amt { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.xn-clip { display: inline-flex; align-items: center; gap: 4px; color: var(--u-ink-2); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xn-clip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xn-tbl .u-tbl { table-layout: fixed; width: 100%; }
.xn-c-ck { width: 40px; }
.xn-c-date { width: 92px; }
.xn-c-amt { width: 130px; }
.xn-c-ord { width: 230px; }
.xn-c-file { width: 70px; }
.xn-c-st { width: 150px; }
.xn-tbl .u-tbl th.go, .xn-tbl .u-tbl td.go { width: 56px; text-align: right; }
.xn-done td { color: var(--u-ink-2); }
.xn-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.xn-form .full { grid-column: 1 / -1; }
.xn-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.xn-f > label { font-size: 12px; line-height: 18px; color: var(--u-ink-2); }
.xn-f > label i { font-style: normal; color: var(--u-ink-3); }
.xn-money { display: flex; gap: 8px; align-items: stretch; }
.xn-money input { flex: 1; min-width: 0; height: 48px !important; font-size: 24px !important; line-height: 28px !important; font-weight: 600; font-variant-numeric: tabular-nums; }
.xn-cur { display: inline-flex; border: 1px solid var(--u-control); border-radius: var(--u-radius-md); overflow: hidden; flex: none; }
.xn-cur button { border: 0; background: var(--u-surface); padding: 0 14px; font: inherit; font-size: 16px; font-weight: 600; color: var(--u-ink-2); cursor: pointer; min-width: 44px; }
.xn-cur button + button { border-left: 1px solid var(--u-line); }
.xn-cur button.on { background: var(--u-brand); color: #fff; }
.xn-cur button:disabled { cursor: not-allowed; opacity: .6; }
.xn-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.xn-chip { border: 1px solid var(--u-line); background: var(--u-surface); border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 12px; line-height: 18px; color: var(--u-ink-2); cursor: pointer; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.xn-chip.on { border-color: var(--u-brand); color: var(--u-brand); background: var(--u-brand-soft); }
.xn-ord-box { position: relative; min-width: 0; display: block; }
.xn-ord-box input { width: 100%; }
.xn-shots { display: flex; gap: 8px; flex-wrap: wrap; }
.xn-shot { width: 72px; height: 72px; border-radius: var(--u-radius-md); border: 1px solid var(--u-line); background: linear-gradient(160deg, #f7f8fa, #e9edf2); position: relative; overflow: hidden; }
.xn-shot::before { content: ""; position: absolute; left: 12px; right: 12px; top: 14px; height: 2px; background: #c3cad6; box-shadow: 0 8px 0 #c3cad6, 0 16px 0 #c3cad6, 0 24px 0 #d5dae3, 0 36px 0 #c3cad6; }
.xn-shot.img { background-size: cover; background-position: center; }
.xn-shot.img::before { display: none; }
.xn-shot span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1px 4px; font-size: 10px; line-height: 14px; color: #fff; background: rgba(16,24,40,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xn-shot-x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(16,24,40,.55); color: #fff; font-size: 14px; line-height: 20px; padding: 0; cursor: pointer; }
.xn-add { width: 72px; height: 72px; border-radius: var(--u-radius-md); border: 1px dashed var(--u-control); background: var(--u-surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; font-size: 12px; color: var(--u-brand); cursor: pointer; text-align: center; line-height: 14px; }
.xn-add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xn-foot { display: flex; align-items: center; gap: 8px; width: 100%; }
.xn-foot .sp { flex: 1; }
.xn-foot .u-btn { white-space: nowrap; }
.xn-dis td { color: var(--u-ink-3); }
.xn-dis .xn-amt { font-weight: 400; }
.xn-to { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border-radius: var(--u-radius-md); background: var(--u-ground); font-size: 14px; flex-wrap: wrap; }
.xn-sum { font-size: 14px; color: var(--u-ink-2); margin-right: 4px; white-space: nowrap; }
.xn-to .sp { flex: 1; }
.xn-why { font-size: 12px; line-height: 18px; color: var(--u-ink-3); white-space: nowrap; }
.xn-cnt { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px; box-sizing: border-box; border-radius: 999px; background: var(--u-brand-soft); color: var(--u-brand); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.xn-from { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--u-brand-soft); color: var(--u-brand); font-size: 12px; line-height: 18px; white-space: nowrap; }
.xn-sum b { color: var(--u-ink); font-variant-numeric: tabular-nums; }
.xn-from-hint { display: inline-block; margin-left: 6px; font-size: 12px; line-height: 18px; color: var(--u-ink-3); }
.xn-pick .u-tbl { table-layout: fixed; width: 100%; }
.xn-pick .xn-c-d { width: 72px; white-space: nowrap; }
.xn-pick .xn-c-w { width: 190px; }
.xn-pick tr.click { cursor: pointer; }
.xn-m-list, .xn-fab { display: none; }
@media (max-width: 640px) {
  .xn-form { grid-template-columns: 1fr; }
  .xn-wrap { padding-bottom: 72px; }
  .xn-tbl, .xn-sel { display: none; }
  .xn-strip .u-stat-i[data-pick="done"] { display: none; }
  .xn-list .u-toolbar .u-btn.primary { display: none; }
  .xn-m-list { display: flex; flex-direction: column; }
  .xn-m-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px; border-bottom: 1px solid var(--u-line); cursor: pointer; }
  .xn-m-row:last-child { border-bottom: 0; }
  .xn-m-row .t { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--u-ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .xn-m-row .s { font-size: 13px; line-height: 20px; color: var(--u-ink-3); min-width: 0; }
  .xn-m-row .a { text-align: right; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .xn-m-row .d { text-align: right; font-size: 13px; color: var(--u-ink-3); white-space: nowrap; }
  .xn-fab { position: fixed; right: 16px; bottom: 20px; height: 48px; padding: 0 20px; border-radius: 24px; border: 0; background: var(--u-brand); color: #fff; font: inherit; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 6px 16px rgba(16,24,40,.24); z-index: 30; }
  .xn-fab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .xn-pick .xn-c-w { width: 110px; }
  .xn-why { white-space: normal; }
}
