/* 资金凭证仅使用现有主题变量，不改变收款台账和其他页面。 */
.finance-funds{min-width:0;color:var(--sy-text,#344054);font-size:var(--sy-body-size,13px)}
.ff-card{padding:18px 20px;border:1px solid var(--sy-border,#e3e8f1);border-radius:10px;background:var(--sy-surface,#fff);min-width:0}.ff-card>header{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;margin-bottom:16px}.ff-card h2{font-size:14px;font-weight:500;line-height:22px;margin:0}.ff-card>header p,.ff-explanation{margin:5px 0 14px;font-size:12px;line-height:21px;color:var(--sy-text-secondary,#647187)}
.ff-search{display:grid;grid-template-columns:1fr 1fr 1fr 1.4fr auto;gap:12px;align-items:end;margin-bottom:16px}.ff-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:13px;line-height:20px}.ff-field>span{color:var(--sy-text-secondary,#647187)}
.ff-card :is(input,select),.ff-dialog :is(input:not([type=checkbox]):not([type=file]),select,textarea){width:100%;min-width:0;min-height:34px;box-sizing:border-box;border:1px solid var(--sy-border,#dce3ed);border-radius:6px;background:var(--sy-surface,#fff);color:var(--sy-text,#344054);padding:7px 10px;font:inherit;line-height:20px}.ff-card input::placeholder,.ff-dialog :is(input,textarea)::placeholder{color:var(--sy-text-secondary,#647187);opacity:1}
.ff-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.finance-funds button,.ff-dialog button:not(.ff-close){min-height:34px;width:auto;min-width:0;padding:6px 12px;border:1px solid var(--sy-border,#dce3ed);border-radius:6px;background:var(--sy-surface,#fff);color:var(--sy-text,#344054);font:inherit;cursor:pointer;white-space:nowrap}.finance-funds .btn,.ff-dialog .btn{background:var(--sy-primary,#6175fc)!important;border-color:var(--sy-primary,#6175fc)!important;color:#fff!important}.finance-funds button:disabled,.ff-dialog button:disabled{opacity:.5;cursor:default}
.finance-funds :is(button,input,select,a):focus-visible,.ff-dialog :is(button,input,select,textarea,a):focus-visible{outline:2px solid var(--sy-primary,#6175fc);outline-offset:3px}
.ff-table-scroll{min-width:0;width:100%;overflow:auto;border-radius:6px}.ff-table{border-collapse:collapse;width:100%;min-width:850px;font-size:13px}.ff-table :is(th,td){padding:12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--sy-border,#e6ebf3);line-height:20px;overflow-wrap:anywhere}.ff-table th{background:var(--sy-surface-alt,#f7f9fc);font-size:12px;font-weight:400;color:var(--sy-text-secondary,#647187);white-space:nowrap}.ff-table small{display:block;font-size:11px;line-height:18px;color:var(--sy-text-secondary,#647187);margin-top:3px}.ff-table .ff-money{white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right}.ff-table tr:last-child td{border-bottom:0}.ff-empty{padding:26px!important;text-align:center!important;color:var(--sy-text-secondary,#647187)}.ff-status{font-size:12px}.ff-status.is-warning{color:var(--sy-warning,#996717)}
.ff-list-footer{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:14px;font-size:12px;color:var(--sy-text-secondary,#647187)}.ff-warnings{margin-top:16px;font-size:12px;line-height:21px;color:var(--sy-warning,#996717)}.ff-warnings summary,.ff-history summary{cursor:pointer}.ff-notice{margin:0 0 14px;padding:11px 14px;border:1px solid var(--sy-border,#dce4f1);border-radius:7px;background:var(--sy-surface-alt,#f6f8fc);font-size:12px;line-height:21px;overflow-wrap:anywhere}.ff-notice p{margin:5px 0 9px}.ff-notice.is-warning{color:var(--sy-warning,#996717);border-color:color-mix(in srgb,var(--sy-warning,#996717) 35%,var(--sy-border,#dce4f1))}.ff-notice.is-error,.ff-dialog-error{color:var(--sy-danger,#b7475b)}
.ff-dialog{padding:0;box-sizing:border-box;width:min(920px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;border:1px solid var(--sy-border,#dce3ed);border-radius:11px;background:var(--sy-surface,#fff);color:var(--sy-text,#344054);font:13px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}.ff-dialog::backdrop{background:#18213666}.ff-dialog>header,.ff-dialog>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px}.ff-dialog>header{border-bottom:1px solid var(--sy-border,#e4e9f2)}.ff-dialog>header h2{margin:0;font-size:15px;line-height:22px;font-weight:600}.ff-dialog>footer{border-top:1px solid var(--sy-border,#e4e9f2);flex-wrap:wrap}.ff-dialog-body{padding:18px}.ff-close{display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:5px;background:transparent;color:var(--sy-text-secondary,#647187);font-size:24px;line-height:1;cursor:pointer}
.ff-source,.ff-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;margin:0 0 18px}.ff-source{padding:14px;border:1px solid var(--sy-border,#e4e9f2);border-radius:7px;background:var(--sy-surface-alt,#f7f9fc)}.ff-source>div,.ff-history-facts>div{min-width:0}.ff-source dt,.ff-history-facts dt{font-size:12px;color:var(--sy-text-secondary,#647187);margin-bottom:4px}.ff-source dd,.ff-history-facts dd{margin:0;overflow-wrap:anywhere}.ff-source dd{font-variant-numeric:tabular-nums}.ff-file-section{padding:16px 0;border-top:1px solid var(--sy-border,#e4e9f2);border-bottom:1px solid var(--sy-border,#e4e9f2);margin:0 0 16px}.ff-file-section h3{font-size:13px;font-weight:500;margin:0}.ff-file-section>p{font-size:12px;color:var(--sy-text-secondary,#647187);margin:5px 0 12px;line-height:20px}.ff-file-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px}.ff-file-picker input{max-width:100%;font:inherit}.ff-attachments{list-style:none;padding:0;margin:0 0 12px}.ff-attachments li{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:9px 0;border-bottom:1px solid var(--sy-border,#e4e9f2)}.ff-attachment-name{min-width:0;overflow-wrap:anywhere;flex:1}.ff-attachments a{color:var(--sy-primary,#6175fc)}.ff-attachments small{font-size:11px;color:var(--sy-text-secondary,#647187)}.ff-confirm{display:flex;align-items:flex-start;gap:8px;margin-top:14px;font-size:12px;line-height:21px}.ff-confirm input{flex:none;margin-top:4px;width:16px;height:16px;accent-color:var(--sy-primary,#6175fc)}.ff-dialog textarea{resize:vertical;min-height:80px}.ff-dialog-error{font-size:12px;line-height:21px;white-space:pre-wrap}.ff-history{border-top:1px solid var(--sy-border,#e4e9f2);padding-top:16px;margin-top:18px;font-size:12px}.ff-history>ol{list-style:none;padding:0;margin:12px 0 0}.ff-history>ol>li{padding:12px 14px;margin:0 0 10px;background:var(--sy-surface-alt,#f7f9fc);border:1px solid var(--sy-border,#e4e9f2);border-radius:7px}.ff-history li header{display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between}.ff-history strong{font-weight:500}.ff-history li header>span{color:var(--sy-text-secondary,#647187)}.ff-history li p{margin:8px 0;overflow-wrap:anywhere}.ff-history-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0}.ff-history-facts dt{font-size:11px}
@media(max-width:1100px){.ff-search{grid-template-columns:repeat(2,minmax(0,1fr))}.ff-search>button{justify-self:start}}
@media(max-width:640px){.ff-card{padding:14px}.ff-search{gap:12px}.ff-search .ff-field:last-of-type{grid-column:1/-1}.ff-source,.ff-form,.ff-history-facts{grid-template-columns:1fr;gap:12px}.ff-dialog>header,.ff-dialog>footer{padding:12px 14px}.ff-dialog-body{padding:14px}.ff-source{padding:12px}.ff-attachments li{align-items:flex-start}.ff-attachment-name{flex-basis:100%}.ff-dialog>footer>.ff-actions{gap:6px}.ff-dialog .ff-actions{gap:6px}.ff-file-picker{gap:8px}.ff-history>ol>li{padding:10px}}

/* 搜索增强器的横向flex-basis不能带入纵向label，否则280px会被当成控件高度。 */
.ff-search{--ff-control-height:36px;--sy-control-height:var(--ff-control-height);grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.4fr) auto;align-items:end}
.ff-search>.ff-field{align-self:end;min-width:0;gap:7px}
.ff-search>.ff-field>span:not(.sy-query-control){display:block;min-height:20px;font-size:12px;line-height:20px;white-space:nowrap}
.ff-search>.ff-field>input:not(.sy-select-native),.ff-search>.ff-field>select:not(.sy-select-native){height:var(--ff-control-height);min-height:var(--ff-control-height);margin:0;line-height:20px;padding:7px 10px;box-sizing:border-box;flex:0 0 auto}
.sy-admin #storeBody .ff-search .ff-field>.sy-query-control{--query-height:var(--ff-control-height);flex:0 0 auto;flex-basis:auto;align-self:stretch;width:100%;min-width:0;max-width:100%;margin:0}
.ff-search>.ff-field>.sy-select-trigger{height:var(--ff-control-height);min-height:var(--ff-control-height);margin:0;flex:0 0 auto}
.ff-search>button[type=submit]{display:inline-flex;align-items:center;justify-content:center;align-self:end;box-sizing:border-box;height:var(--ff-control-height);min-height:var(--ff-control-height);margin:0;padding:7px 14px;font-size:13px;line-height:20px}
html[data-sy-font=comfortable] .ff-search{--ff-control-height:38px}

/* 原生页复用外层单据卡，资金列表自身只保留一层内容留白。 */
.sy-fin-tool-page .finance-funds{margin:0;min-width:0}
.sy-fin-tool-page .ff-card{margin:0;padding:16px 18px;border:0;border-radius:0;box-shadow:none;background:transparent}
.sy-fin-tool-page .ff-card>header{align-items:center;gap:12px;margin:0 0 16px}
.sy-fin-tool-page .ff-card>header h2{font-size:14px;font-weight:500;line-height:22px}
.sy-fin-tool-page .ff-card>header p{margin:4px 0 0;font-size:12px;line-height:20px}
.sy-fin-tool-page .ff-explanation{margin:0 0 16px;font-size:12px;line-height:20px}
.sy-fin-tool-page .finance-funds>.ff-notice{margin:16px 18px 0}
.sy-fin-tool-page .ff-card .ff-table-scroll{border-radius:0;max-width:100%}
@media(max-width:700px){.ff-search{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ff-search>.ff-field:last-of-type{grid-column:auto}.ff-search>button[type=submit]{grid-column:1/-1;justify-self:stretch;width:100%}}
@media(max-width:640px){.sy-fin-tool-page .ff-card{padding:14px}.sy-fin-tool-page .ff-card>header{margin-bottom:14px}.sy-fin-tool-page .finance-funds>.ff-notice{margin:14px 14px 0}}
@media(max-width:370px){.ff-search{grid-template-columns:minmax(0,1fr)}.ff-search>button[type=submit]{grid-column:auto}}

/* 页签已标明资金凭证，列表只保留一处查询，动态待核实事项仍直接可见。 */
.sy-fin-tool-page .ff-list .ff-search{margin-bottom:12px}
.sy-fin-tool-page .ff-list .sy-fin-help{margin:14px 0 0;padding:10px 0 0;border-top:1px solid var(--sy-border,#e4e9f2);font-size:12px;line-height:20px;color:var(--sy-text-secondary,#647187)}
.sy-fin-tool-page .ff-list .sy-fin-help>summary{font-size:12px;line-height:22px;cursor:pointer}.sy-fin-tool-page .ff-list .sy-fin-help p{margin:8px 0 0;font-size:12px;line-height:20px;color:var(--sy-text-secondary,#647187)}

/* 原账异常是当前风险，始终展开；只有静态口径使用可收起说明。 */
.ff-warnings{margin-top:14px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--sy-warning,#996717) 30%,var(--sy-border,#e4e9f2));border-radius:6px;background:color-mix(in srgb,var(--sy-warning,#996717) 4%,var(--sy-surface,#fff));color:var(--sy-warning,#996717);font-size:12px;line-height:20px}
.ff-warnings h3{margin:0;font-size:12px;line-height:20px;font-weight:500;color:inherit}.ff-warnings ul{margin:6px 0 0;padding-left:18px}.ff-warnings li+li{margin-top:3px}
