.suzhou-voucher-editor-page .erp-document-design{overflow-y:auto;overflow-x:hidden}
.suzhou-voucher-editor-page .ed-toolbar{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden}
.suzhou-voucher-editor-page .ed-toolbar>*{flex:none}
.suzhou-voucher-editor-page .ed-toolbar .ed-btn:disabled{opacity:.36}
.suzhou-voucher-editor-page .ed-header .ed-field[hidden]{display:none}
.suzhou-voucher-editor-page .ed-sections{flex:none;min-height:0;overflow:visible}
.suzhou-voucher-editor-page .ed-section{flex:none;height:auto;min-height:190px}
.suzhou-voucher-editor-page .ed-table-scroll{flex:none;height:430px;max-height:55vh;overflow:auto}
.suzhou-voucher-editor-page .ed-table thead th{position:sticky;top:0;z-index:3}
.suzhou-voucher-editor-page .ed-table tfoot td{position:sticky;bottom:0;z-index:2;background:#f5f4f8;font-weight:600}
.suzhou-voucher-editor-page .ed-document-info{flex:none}
.suzhou-voucher-editor-page .ed-input:not([readonly]),.suzhou-voucher-editor-page .sv-line-input{background:#fff;color:#1d2129}
.suzhou-voucher-editor-page .ed-input[readonly]{background:#f7f8fa;color:#667085}
.suzhou-voucher-editor-page .sv-lookup,.suzhou-voucher-editor-page .sv-cell-lookup{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0;height:30px;padding:0 8px;border:1px solid #c9cdd4;border-radius:4px;background:#fff;color:#1d2129;text-align:left;font:14px "Microsoft YaHei","PingFang SC",微软雅黑,Arial,sans-serif;cursor:pointer}
.suzhou-voucher-editor-page .sv-lookup:hover,.suzhou-voucher-editor-page .sv-cell-lookup:hover{border-color:#165dff;background:#f7fbff}
.suzhou-voucher-editor-page .sv-lookup span:first-child,.suzhou-voucher-editor-page .sv-cell-lookup{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.suzhou-voucher-editor-page .sv-lookup span:last-child{font-size:18px;color:#667085}
.suzhou-voucher-editor-page .sv-cell-lookup{height:30px}
.suzhou-voucher-editor-page .sv-line-input{display:block;width:100%;min-width:0;height:30px;padding:0 6px;border:1px solid #c9cdd4;border-radius:4px;font:14px "Microsoft YaHei","PingFang SC",微软雅黑,Arial,sans-serif}
.suzhou-voucher-editor-page .sv-line-input:focus,.suzhou-voucher-editor-page .sv-lookup:focus-visible,.suzhou-voucher-editor-page .sv-cell-lookup:focus-visible{outline:2px solid #9ac2fb;outline-offset:0}
.suzhou-voucher-editor-page .ed-table td:has(.sv-line-input),.suzhou-voucher-editor-page .ed-table td:has(.sv-cell-lookup){padding:3px 5px}
/* 收付款明细沿用报价单的紧凑单元格输入和同行增删操作。 */
.suzhou-voucher-editor-page .ed-section[data-section-key="funds"] .ed-table td:has(.sv-line-input),
.suzhou-voucher-editor-page .ed-section[data-section-key="funds"] .ed-table td:has(.sv-cell-lookup){padding:0 2px}
.suzhou-voucher-editor-page .ed-section[data-section-key="funds"] .sv-line-input,
.suzhou-voucher-editor-page .ed-section[data-section-key="funds"] .sv-cell-lookup{box-sizing:border-box;height:30px;padding:0 4px;border-color:transparent;border-radius:2px;font:inherit}
.suzhou-voucher-editor-page .ed-section[data-section-key="funds"] .sv-line-input:hover,
.suzhou-voucher-editor-page .ed-section[data-section-key="funds"] .sv-cell-lookup:hover{border-color:#c9cdd4}
.suzhou-voucher-editor-page .ed-section[data-section-key="funds"] .ed-row-operation{display:inline-flex;align-items:center;justify-content:center;gap:4px}
.suzhou-voucher-editor-page .ed-section[data-section-key="funds"] .ed-row-operation button{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:0;border-radius:3px;background:transparent;color:#86909c;font-size:16px;line-height:20px;cursor:pointer}
.suzhou-voucher-editor-page .ed-section[data-section-key="funds"] .ed-row-delete:hover,
.suzhou-voucher-editor-page .ed-section[data-section-key="funds"] .ed-row-delete:focus-visible{background:#ffece8;color:#f53f3f;outline:none}
.suzhou-voucher-editor-page .ed-section[data-section-key="funds"] .ed-row-add:hover,
.suzhou-voucher-editor-page .ed-section[data-section-key="funds"] .ed-row-add:focus-visible{background:#e8f3ff;color:#165dff;outline:none}
.suzhou-voucher-editor-page .sv-remove-line,.suzhou-voucher-editor-page .sv-section-add{padding:4px 8px;border:1px solid #c9cdd4;border-radius:4px;background:#fff;color:#4e5969;font:12px 'Microsoft YaHei',sans-serif;cursor:pointer}
.suzhou-voucher-editor-page .sv-remove-line:hover{border-color:#f53f3f;color:#d92d20;background:#fff2f0}
.suzhou-voucher-editor-page .sv-section-add{min-width:22px;height:22px;margin-left:4px;padding:0 3px;color:#165dff;border-color:#b6d4fe;font-weight:700;line-height:18px}
.suzhou-voucher-editor-page .sv-section-add:hover{background:#e8f3ff}
.suzhou-voucher-editor-page .ed-table th[data-column-key=operation]{padding-right:4px;white-space:nowrap}
.suzhou-voucher-editor-page .ed-table tfoot td:nth-child(2){text-align:center}
.suzhou-voucher-editor-page .sv-source-control{display:flex;align-items:center;gap:6px;min-width:0;flex:1}
.suzhou-voucher-editor-page .sv-source-clear{flex:none;padding:5px 7px;border:1px solid #c9cdd4;border-radius:4px;background:#fff;color:#667085;font:12px 'Microsoft YaHei',sans-serif;cursor:pointer}
.suzhou-voucher-editor-page .sv-source-clear:hover{color:#b42318;border-color:#f53f3f}
.sv-action-menu{position:fixed;z-index:30001;min-width:190px;padding:5px;border:1px solid #c9cdd4;border-radius:6px;background:#fff;box-shadow:0 8px 24px #1d212929}
.sv-menu-item{display:block;width:100%;min-height:34px;padding:6px 10px;border:0;border-radius:4px;background:#fff;color:#b42318;text-align:left;font:13px 'Microsoft YaHei',sans-serif;cursor:pointer}
.sv-menu-item:hover{background:#fff2f0}
.sv-picker,.sv-workflows{position:fixed;inset:0;width:min(700px,calc(100vw - 24px));max-height:min(80vh,720px);margin:auto;padding:18px;border:1px solid #d8dce3;border-radius:10px;background:#fff;color:#1d2129;font:14px 'Microsoft YaHei',sans-serif;box-shadow:0 18px 48px #1d212933}
.sv-picker::backdrop,.sv-workflows::backdrop{background:#15233b80}
.sv-picker h3,.sv-workflows h3{margin:0 0 12px;font-size:17px}
.sv-picker>input,.sv-workflows>select{width:100%;height:36px;padding:6px 10px;border:1px solid #c9cdd4;border-radius:5px;background:#fff;font:inherit}
.sv-picker-feedback{min-height:21px;margin:8px 0;color:#667085;font-size:13px}
.sv-picker-list,.sv-workflow-list{display:flex;flex-direction:column;gap:5px;max-height:400px;overflow:auto}
.sv-picker-option,.sv-workflow-row{display:flex;justify-content:space-between;align-items:center;gap:15px;width:100%;min-height:38px;padding:7px 10px;border:1px solid #e5e6eb;border-radius:5px;background:#fff;color:#1d2129;text-align:left;font:inherit;cursor:pointer}
.sv-picker-option:hover,.sv-workflow-row:hover{border-color:#165dff;background:#f7fbff}
.sv-picker-option small,.sv-workflow-row small{color:#86909c;overflow:hidden;text-overflow:ellipsis}
.sv-workflow-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(115px,1fr) minmax(100px,1.5fr)}
.sv-picker-pager{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:10px 0}
.sv-picker>button:last-child,.sv-workflows>button:last-child{display:block;margin-left:auto}
.sv-settlements .sv-picker-list{max-height:220px}
.sv-settlement-filters{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0 0 10px;color:#4e5969;font-size:13px}
.sv-settlement-filters span:first-child{flex-basis:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sv-settlement-filters input[type=date]{box-sizing:border-box;width:145px;height:32px;padding:0 6px;border:1px solid #c9cdd4;border-radius:4px;background:#fff;color:#1d2129;font:inherit}
.sv-settlement-filters .sv-date-shortcut{box-sizing:border-box;height:32px;min-width:48px;padding:0 8px;border:1px solid #c9cdd4;border-radius:4px;background:#fff;color:#4e5969;font:inherit;cursor:pointer}
.sv-settlement-filters .sv-date-shortcut:hover,.sv-settlement-filters .sv-date-shortcut:focus-visible{border-color:#165dff;background:#e8f3ff;color:#165dff}
.sv-settlement-chosen{max-height:230px;overflow:auto;border-top:1px solid #e5e6eb;padding-top:8px}
.sv-settlement-row{display:grid;grid-template-columns:minmax(0,1fr) 140px 60px;align-items:center;gap:8px;padding:4px 0}
.sv-settlement-row>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sv-settlement-row input{box-sizing:border-box;width:100%;height:34px;padding:5px 8px;text-align:right;border:1px solid #c9cdd4;border-radius:4px;font:inherit}
.sv-settlement-row input[readonly]{background:#f7f8fa}
.sv-settlement-total{text-align:right;font-weight:600}
@media(max-width:768px){.sv-workflow-row{grid-template-columns:1fr}.suzhou-voucher-editor-page .ed-table-scroll{height:auto;max-height:50vh}}
.sv-recovery-dialog { width: min(760px, calc(100vw - 32px)); max-height: 85vh; overflow: auto; border: 1px solid #cbd5e1; border-radius: 10px; padding: 24px; color: #1e293b; }
.sv-recovery-dialog::backdrop { background: rgb(15 23 42 / 35%); }
.sv-recovery-dialog p { overflow-wrap: anywhere; line-height: 1.6; }
.sv-recovery-dialog textarea { box-sizing: border-box; width: 100%; margin: 12px 0; }
/* Sale editing keeps the shared compact document geometry. */
.sales-workflow-shell .sales-document-table td:has(.sv-line-input),
.sales-workflow-shell .sales-document-table td:has(.sv-cell-lookup){padding:0 3px}
.sales-workflow-shell .sales-document-table .sv-line-input,
.sales-workflow-shell .sales-document-table .sv-cell-lookup{height:26px;font:inherit;border-color:transparent;border-radius:2px}
.sales-workflow-shell .sales-document-table .sv-line-input{background:#fff;text-align:inherit}
.sales-workflow-shell .sales-document-table .sv-line-input.cell-input{border-width:1px;border-style:solid}
.sales-workflow-shell .sales-document-table .sv-line-input:hover{border-color:#c9cdd4}
.sales-workflow-shell .sales-document-table .sv-line-input:disabled{background:transparent}
.sales-workflow-shell .sv-lookup{font:inherit;height:30px}
.sales-workflow-shell .quotation-form-control:not([readonly]){background:#fff;color:#1d2129}
.sales-workflow-shell .sv-remove-line{padding:0 5px;height:23px;line-height:20px}
.sales-workflow-shell .sv-section-add{margin:0 2px}

/* 收付款单的资金行和已选核销行共用明细区域，展开时各占一半。 */
.suzhou-voucher-editor-page .sv-funds-split .ed-sections{display:flex;flex-direction:column;gap:8px;height:clamp(350px,calc(100dvh - 315px),860px);min-height:0;overflow:visible}
.suzhou-voucher-editor-page .sv-funds-split[data-document-kind="payment"] .ed-sections{height:clamp(310px,calc(100dvh - 355px),820px)}
.suzhou-voucher-editor-page .sv-funds-split .ed-sections.has-multiple>.ed-section{display:flex;flex:1 1 0;height:auto;min-height:0;margin:0;overflow:hidden}
.suzhou-voucher-editor-page .sv-funds-split .ed-section .ed-table-scroll{display:block;flex:1 1 auto;height:auto;max-height:none;min-height:0;overflow:auto}
.suzhou-voucher-editor-page .sv-funds-split .ed-sections.has-multiple>.ed-section[data-section-key="settlements"].is-collapsed{flex:0 0 16px;min-height:16px}
.suzhou-voucher-editor-page .sv-funds-split .ed-section[data-section-key="settlements"].is-collapsed .ed-table-scroll{display:none}
.suzhou-voucher-editor-page .sv-funds-split .ed-section[data-section-key="settlements"].is-collapsed .sv-pane-footer{display:none}
.suzhou-voucher-editor-page .sv-funds-split .ed-section .ed-table thead th,
.suzhou-voucher-editor-page .sv-funds-split .ed-section .ed-table tbody td,
.suzhou-voucher-editor-page .sv-funds-split .ed-section .ed-table tfoot td{height:34px;min-height:34px;max-height:34px;padding-top:0;padding-bottom:0}
.suzhou-voucher-editor-page .sv-funds-split .ed-section[data-section-key="settlements"] .ed-table th,
.suzhou-voucher-editor-page .sv-funds-split .ed-section[data-section-key="settlements"] .ed-table td{padding-right:6px;padding-left:6px}
.suzhou-voucher-editor-page .sv-funds-split .ed-section[data-section-key="settlements"] .ed-table td:has(.sv-line-input){padding:0 2px}
.suzhou-voucher-editor-page .sv-funds-split .ed-section[data-section-key="settlements"] .sv-line-input{box-sizing:border-box;height:30px;padding:0 4px;border-color:transparent;border-radius:2px;font:inherit}
.suzhou-voucher-editor-page .sv-funds-split .ed-section[data-section-key="settlements"] .sv-line-input:hover{border-color:#c9cdd4}
.suzhou-voucher-editor-page .sv-funds-split .sv-pane-footer{flex:none;width:100%;height:34px;margin-bottom:8px;overflow:hidden;background:#ddd7e6}
.suzhou-voucher-editor-page .sv-funds-split .sv-pane-footer-viewport{height:34px;max-width:100%;overflow:hidden}
.suzhou-voucher-editor-page .sv-funds-split .sv-pane-footer-table{table-layout:fixed;min-width:0;max-width:none;border-spacing:0}
.suzhou-voucher-editor-page .sv-funds-split .sv-pane-footer-table tfoot td{position:static;bottom:auto;z-index:auto;background:#ddd7e6;border-top:1px solid #c9cdd4;font-weight:600}
.suzhou-voucher-editor-page .sv-funds-split .sv-settlement-heading{display:flex;align-items:center;justify-content:center;flex:0 0 16px;height:16px;min-height:16px;padding:0;cursor:pointer;user-select:none;background:var(--business-soft,#f7f9fc);color:var(--business-accent,#4e5969)}
.suzhou-voucher-editor-page .sv-funds-split .sv-settlement-heading:hover{background:var(--business-border,#edf3ff)}
.suzhou-voucher-editor-page .sv-funds-split .sv-settlement-heading:focus-visible{outline:2px solid var(--business-accent,#165dff);outline-offset:-2px}
.suzhou-voucher-editor-page .sv-settlement-handle{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;width:76px;height:10px;color:inherit;pointer-events:none}
.suzhou-voucher-editor-page .sv-settlement-handle-line{display:block;flex:0 0 20px;width:20px;height:2px;border-radius:1px;background:currentColor}
.suzhou-voucher-editor-page .sv-settlement-chevron{display:block;flex:0 0 28px;width:28px;height:8px;background:currentColor;clip-path:polygon(0 0,50% 65%,100% 0,100% 35%,50% 100%,0 35%)}
.suzhou-voucher-editor-page .sv-settlement-chevron[data-direction=up]{transform:rotate(180deg)}
@media(max-width:768px){.suzhou-voucher-editor-page .sv-funds-split .ed-sections{height:clamp(350px,calc(100dvh - 380px),700px)}.suzhou-voucher-editor-page .sv-funds-split[data-document-kind="payment"] .ed-sections{height:clamp(310px,calc(100dvh - 420px),660px)}}

/* Keep the line picker accessible by keyboard without showing every icon at rest. */
.sv-master-lookup-control:not(:hover) > .sv-master-lookup-trigger:not(:focus-visible){opacity:0;pointer-events:none}
