.settlement-page .account-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.settlement-page .account-heading h2{margin:0;font-size:22px}
.settlement-page .account-heading p{margin:6px 0 0;color:var(--ink-secondary)}
.settlement-page .account-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.settlement-page .account-back{margin-bottom:14px}
.settlement-page .account-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0 12px}
.settlement-page .account-summary>div{background:var(--surface-solid);border:1px solid var(--line-strong);border-radius:var(--radius);padding:18px;min-width:0}
.settlement-page .account-summary span{display:block;color:var(--ink-secondary);font-size:13px}
.settlement-page .account-summary strong{display:block;font-size:26px;margin-top:6px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.settlement-page .account-composition{display:flex;gap:8px 22px;flex-wrap:wrap;color:var(--ink-secondary);margin-bottom:18px}
.settlement-page .account-dates{display:flex;gap:10px 26px;align-items:center;flex-wrap:wrap;padding:16px;background:var(--surface-solid);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:16px}
.settlement-page .account-dates label{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0}
.settlement-page .account-dates input{width:auto;max-width:100%}
.settlement-page .account-pricing{padding:16px;background:var(--warning-soft);color:var(--ink);border:1px solid var(--warning);border-radius:var(--radius);margin:16px 0}
.settlement-page .account-pricing ul{margin:8px 0;padding-left:20px}
.settlement-page .account-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--line-strong);margin:18px 0 16px}
.settlement-page .account-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;color:var(--ink-secondary);font:inherit;padding:12px 14px;cursor:pointer}
.settlement-page .account-tabs button[aria-selected=true]{border-bottom-color:var(--accent);color:var(--accent-text);font-weight:600}
.settlement-page .account-panel{padding:20px}
.settlement-page .account-panel h3{font-size:16px;margin:0 0 12px}
.settlement-page .account-table{overflow-x:auto}
.settlement-page .account-table table{width:100%;min-width:650px}
.settlement-page .account-table .money{white-space:nowrap;font-variant-numeric:tabular-nums}
.settlement-page .account-help{margin-top:18px;padding:14px 16px;border-top:1px solid var(--line);color:var(--ink-secondary)}
.settlement-page .account-help summary{cursor:pointer}
.settlement-page .account-help p{margin:10px 0 0}
.settlement-page .account-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:18px;color:var(--ink-secondary)}
.settlement-page .account-phase-table{margin:14px 0}
.settlement-document-overlay{position:fixed;inset:0;z-index:3400;background:rgba(0,0,0,.55);display:flex;align-items:flex-start;justify-content:center;padding:22px;overflow-y:auto}
.settlement-document-dialog{background:var(--surface-solid);color:var(--ink);border:1px solid var(--line-strong);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);width:100%;max-width:1180px;min-width:0}
.settlement-document-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 22px;border-bottom:1px solid var(--line-strong);background:var(--surface-solid);border-radius:var(--radius-lg) var(--radius-lg) 0 0;position:sticky;top:0;z-index:1}
.settlement-document-header .account-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.settlement-document-header h2{margin:0;font-size:19px}
.settlement-document-header p{margin:6px 0 0;color:var(--ink-secondary)}
.settlement-document-body{padding:20px;min-width:0}
.settlement-document-body .settlement-print{overflow-x:auto;background:var(--surface-solid);padding:22px}
.settlement-document-body .settlement-print>table{min-width:900px}
.settlement-document-body .settlement-summary{margin-top:18px}
.settlement-document-body .settlement-summary .row{gap:14px;flex-wrap:wrap}
.settlement-document-revoke{padding:18px 22px;border-top:1px solid var(--line-strong)}
.settlement-document-revoke label{display:block;margin-bottom:8px}
.settlement-document-revoke .account-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.settlement-document-revoke input{flex:1;min-width:220px}
.settlement-document-empty{padding:24px;color:var(--ink-secondary)}
@media(max-width:760px){.settlement-page .account-summary{gap:9px}.settlement-page .account-summary>div{padding:14px}.settlement-page .account-summary strong{font-size:21px}.settlement-page .account-panel{padding:14px}.settlement-document-overlay{padding:8px}.settlement-document-header,.settlement-document-body{padding:14px}.settlement-document-body .settlement-print{padding:8px}}
@media(max-width:480px){.settlement-page .account-summary{grid-template-columns:1fr}.settlement-page .account-summary>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.settlement-page .account-summary strong{margin:0}.settlement-page .account-tabs button{padding:10px 8px}.settlement-page .account-actions{width:100%}.settlement-document-header .account-actions{display:flex;gap:8px;flex-wrap:wrap}.settlement-document-revoke input{min-width:0;width:100%}}

/* The settlement document is the main reading surface. */
.statement-detail{min-width:0}
.statement-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.statement-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.statement-toolbar label{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--ink-secondary);font-size:13px}
.statement-toolbar input{width:150px;max-width:100%;padding:7px 10px}
.rental-statement{background:var(--surface-solid);color:var(--ink);border:1px solid var(--line-strong);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:28px;min-width:0}
.statement-title{text-align:center;border-bottom:2px solid var(--ink);padding-bottom:18px;margin-bottom:18px}
.statement-title h2{margin:7px 0;font-size:25px;letter-spacing:1px;font-weight:650;color:var(--ink)}
.statement-eyebrow{margin:0;color:var(--ink-secondary);font-size:12px;letter-spacing:2px}
.statement-version{margin:6px 0 0;font-size:12px;color:var(--ink-secondary)}
.statement-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 20px;margin:0 0 16px}
.statement-info>div{min-width:0}
.statement-info dt{font-size:12px;color:var(--ink-secondary);margin-bottom:3px}
.statement-info dd{margin:0;overflow-wrap:anywhere;font-size:13px;color:var(--ink);font-weight:500}
.statement-info .statement-project{grid-column:span 2}
.statement-info .statement-project dd{font-size:16px;font-weight:650}
.statement-lock{margin:12px 0 16px;font-size:12px;color:var(--ink-secondary);padding-left:10px;border-left:3px solid var(--line-strong);line-height:1.6}
.statement-pricing{background:var(--warning-soft);border:1px solid var(--warning);padding:12px 14px;border-radius:6px;margin:14px 0;color:var(--ink);font-size:13px}
.statement-pricing ul{padding-left:20px;margin:7px 0 0}
.statement-table-scroll{overflow-x:auto;max-width:100%}
.rental-statement table{width:100%;border-collapse:collapse;font-size:12px;color:var(--ink);margin:0}
.rental-statement th,.rental-statement td{padding:9px 8px;border-bottom:1px solid var(--line-strong);vertical-align:top;text-align:right;line-height:1.55}
.rental-statement thead th{font-weight:600;background:var(--surface-muted);border-top:1px solid var(--line-strong);color:var(--ink);white-space:nowrap}
.rental-statement tbody th{font-weight:500;text-align:left;min-width:130px}
.rental-statement thead th:first-child{text-align:left}
.statement-material-table{min-width:850px}
.statement-material-table td:nth-child(7){min-width:125px}
.statement-loss-rent .statement-material-table{min-width:1120px}
.statement-loss-rent .statement-material-table td:nth-child(7){min-width:90px}
.statement-loss-rent .statement-material-table td:nth-child(10){min-width:125px}
.statement-loss-appendix table{min-width:980px}
.statement-model{display:block;font-size:11px;color:var(--ink-secondary);font-weight:400;white-space:normal;margin-top:3px;overflow-wrap:anywhere}
.statement-money{font-variant-numeric:tabular-nums;white-space:nowrap}
.statement-missing{display:block;color:var(--danger);white-space:normal;font-size:12px}
.statement-empty{text-align:center!important;color:var(--ink-secondary);padding:18px!important}
.statement-table-note{font-size:12px;color:var(--ink-secondary);line-height:1.7;margin:12px 0 22px}
.statement-totals-area{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);gap:26px;align-items:start}
.statement-receipt-note{color:var(--ink-secondary);font-size:12px;line-height:1.75;max-width:480px}
.statement-receipt-note strong{color:var(--ink);font-size:13px}
.statement-receipt-note p{margin:8px 0 0}
.statement-totals{margin:0;font-size:13px}
.statement-totals>div{display:flex;align-items:baseline;justify-content:space-between;gap:18px;padding:6px 0}
.statement-totals dt{color:var(--ink-secondary)}
.statement-totals dd{margin:0;font-weight:550;font-variant-numeric:tabular-nums;white-space:nowrap}
.statement-totals .statement-charge-total{border-top:1px solid var(--line-strong);margin-top:5px;padding-top:11px}
.statement-totals .statement-charge-total dt{color:var(--ink)}
.statement-totals .statement-balance{border-top:2px solid var(--ink);margin-top:9px;padding-top:12px}
.statement-totals .statement-balance dt{font-size:16px;font-weight:600;color:var(--ink)}
.statement-totals .statement-balance dd{font-size:23px;font-weight:650}
.statement-formula{font-size:12px;color:var(--ink-secondary);margin:18px 0;line-height:1.7}
.statement-appendix{padding:13px 0;border-top:1px solid var(--line-strong)}
.statement-appendix summary{font-size:13px;font-weight:500;color:var(--ink);cursor:pointer}
.statement-appendix[open] summary{margin-bottom:12px}
.statement-payment-table{min-width:660px}
.statement-phase-table{min-width:620px}
.statement-payment-table th,.statement-payment-table td,.statement-phase-table th,.statement-phase-table td{text-align:left}
.statement-legacy-note,.statement-meta{font-size:12px;color:var(--ink-secondary);margin:12px 0 0;line-height:1.6}
.statement-meta{border-top:1px solid var(--line);padding-top:13px}
.statement-secondary{margin-top:18px;color:var(--ink-secondary)}
.statement-secondary-section{border-top:1px solid var(--line-strong);padding:14px 2px;font-size:13px}
.statement-secondary-section summary{cursor:pointer;font-weight:500;color:var(--ink-secondary)}
.statement-secondary-section[open] summary{margin-bottom:12px}
.statement-secondary-section p{line-height:1.7;margin:8px 0}
.statement-secondary-links{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;border-top:1px solid var(--line-strong);padding:13px 2px;font-size:12px}
.statement-secondary-links button{padding:3px 0;background:none;border:0;color:var(--ink-secondary);font:inherit;text-decoration:underline;cursor:pointer}
.statement-secondary-links button:disabled{opacity:.5;cursor:default}
.settlement-document-body .rental-statement{box-shadow:none;border:0;border-radius:0;padding:10px}
@media(max-width:900px){.rental-statement{padding:20px}.statement-info{gap:12px 16px}.statement-totals-area{gap:18px;grid-template-columns:minmax(0,1fr) minmax(260px,330px)}}
@media(max-width:620px){.statement-toolbar{align-items:flex-start}.statement-toolbar-actions{width:100%}.statement-toolbar label{width:100%;justify-content:space-between}.rental-statement{padding:16px}.statement-title h2{font-size:20px;letter-spacing:0}.statement-info{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.statement-info .statement-project{grid-column:1/-1}.statement-totals-area{grid-template-columns:1fr;gap:18px}.statement-receipt-note{max-width:none}.statement-totals .statement-balance dd{font-size:22px}.statement-model{font-size:12px}.settlement-document-body .rental-statement{padding:0}}

/* Customer statement: the bill stays compact; each charge owns its schedule. */
.statement-customer{max-width:1050px;margin-inline:auto}
.statement-customer .statement-title{padding-bottom:15px;margin-bottom:19px}
.statement-customer .statement-title h2{font-size:26px;letter-spacing:3px}
.statement-project-name{font-weight:600;font-size:16px;margin:6px 0;overflow-wrap:anywhere}
.statement-outcome{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:16px;padding:18px;background:var(--surface-muted);border-block:1px solid var(--line-strong);margin-bottom:18px}
.statement-outcome>div{min-width:0}
.statement-outcome h3,.statement-outcome span{font:inherit;font-size:13px;margin:0}
.statement-outcome strong{display:block;font-size:21px;font-weight:600;margin:4px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.statement-outcome .statement-result strong{font-size:29px;letter-spacing:-.025em}
.statement-outcome small,.statement-outcome .statement-result span{display:block;font-size:12px;color:var(--ink-secondary)}
.statement-charge-summary h3{margin:20px 0 8px;font-size:16px}
.statement-customer .statement-compact-info{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 22px}
.statement-customer .statement-compact-info .statement-project{grid-column:span 2}
.statement-customer .statement-summary-table{min-width:0;table-layout:fixed;font-size:14px}
.statement-customer .statement-summary-table th:first-child{width:43%;min-width:0;text-align:left}
.statement-customer .statement-summary-table th:nth-child(2){width:25%}
.statement-customer .statement-summary-table th:nth-child(3){width:32%}
.statement-customer .statement-summary-table th,.statement-customer .statement-summary-table td{padding:11px 12px;vertical-align:middle}
.statement-summary-table .statement-summary-subtotal th,.statement-summary-table .statement-summary-subtotal td{background:var(--surface-muted);font-weight:600}
.statement-customer .statement-rent-label th{padding:7px 12px;font-size:11px;letter-spacing:1px;color:var(--ink-secondary);background:var(--surface-muted)}
.statement-rent-bridge>tr:not(.statement-summary-subtotal):not(.statement-rent-label)>th{padding-left:24px;font-size:12px;color:var(--ink-secondary)}
.statement-summary-table .statement-summary-balance th,.statement-summary-table .statement-summary-balance td{border-top:2px solid var(--ink);border-bottom:2px solid var(--ink);font-weight:650;font-size:18px;padding-top:15px;padding-bottom:15px}
.statement-summary-note{font-size:12px;color:var(--ink-secondary);white-space:normal}
.statement-detail-link{border:0;background:transparent;color:var(--accent-text,var(--accent));padding:3px 0;font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;white-space:normal}
.statement-detail-link:hover{color:var(--ink)}
.statement-detail-link:focus-visible,.statement-fee-section summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:2px}
.statement-calculation-guide{margin:23px 0;padding:16px 18px;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:4px;background:var(--surface-muted)}
.statement-calculation-guide h3,.statement-breakdown-heading h3{margin:0 0 8px;font-size:15px}
.statement-calculation-guide p{font-size:12px;margin:7px 0;line-height:1.75}
.statement-calculation-guide p:last-child{margin-bottom:0}
.statement-small-note{font-size:11px;color:var(--ink-secondary);line-height:1.75;margin:11px 0 0}
.statement-basis-note{padding:12px 15px;border:1px solid var(--warning);border-radius:5px;background:var(--warning-soft);font-size:12px;line-height:1.7;margin:14px 0}
.statement-basis-note p{margin:4px 0}.statement-basis-note ul{margin:5px 0 0;padding-left:18px}
.statement-breakdown-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-top:25px;padding-bottom:8px}
.statement-breakdown-heading h3{margin:0;font-size:17px}
.statement-breakdown-heading>span{color:var(--ink-secondary);font-size:12px}
.statement-fee-section{scroll-margin-top:90px}
.statement-fee-section summary,.statement-business-section summary{padding:5px 2px;font-size:14px;line-height:1.7}
.statement-fee-section summary>span,.statement-business-section summary>span{float:right;font-size:12px;color:var(--ink-secondary);font-weight:400;margin-left:10px}
.statement-fee-section[open]{padding-bottom:19px}
.statement-customer .statement-rent-table{min-width:575px}
.statement-rent-table th:nth-child(2),.statement-rent-table th:nth-child(3),.statement-rent-table td:nth-child(2),.statement-rent-table td:nth-child(3){text-align:left}
.statement-customer .statement-charge-table{min-width:610px}
.statement-customer .statement-deduction-table{min-width:720px}
.statement-customer .statement-business-table{min-width:610px}
.statement-fee-table tfoot th,.statement-fee-table tfoot td{font-weight:600;border-top:1px solid var(--ink);background:var(--surface-muted)}
.statement-fee-table .statement-calculation-cell{min-width:135px;white-space:normal;text-align:left;font-size:11px}
.statement-customer .statement-phase-list{font-size:12px;line-height:1.8;padding-left:20px;color:var(--ink-secondary)}
@media(max-width:620px){
 .settlement-page .statement-account-list table,.statement-account-list tbody{display:block;min-width:0;width:100%}
 .statement-account-list thead{display:none}
 .statement-account-list tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;border-bottom:1px solid var(--line-strong);padding:13px 0}
 .statement-account-list tbody th,.statement-account-list tbody td{display:block;border:0;padding:0;text-align:left;min-width:0;white-space:normal;overflow-wrap:anywhere}
 .statement-account-list tbody th,.statement-account-list td[data-label="试算结果"],.statement-account-list tbody td:last-child{grid-column:1/-1}
 .statement-account-list td[data-label]::before{content:attr(data-label);display:block;color:var(--ink-secondary);font-size:12px}
 .statement-account-list td:last-child button{width:100%}
 .statement-outcome{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;padding:12px}
 .statement-outcome .statement-result{grid-column:1/-1;border-bottom:1px solid var(--line);padding-bottom:8px}
 .statement-outcome strong{font-size:17px}
 .statement-customer{padding:16px 13px}
 .statement-customer .statement-compact-info{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .statement-customer .statement-compact-info .statement-project{grid-column:1/-1}
 .statement-customer .statement-summary-table{font-size:12px}
 .statement-customer .statement-summary-table th:first-child{width:40%}
 .statement-customer .statement-summary-table th:nth-child(2){width:28%}
 .statement-customer .statement-summary-table th:nth-child(3){width:32%}
 .statement-customer .statement-summary-table th,.statement-customer .statement-summary-table td{padding:10px 5px}
 .statement-summary-table .statement-summary-balance th,.statement-summary-table .statement-summary-balance td{font-size:15px}
 .statement-summary-note,.statement-detail-link{font-size:11px}
 .statement-fee-section summary>span,.statement-business-section summary>span{float:none;display:block;margin-left:0}
 .statement-calculation-guide{padding:12px;margin:18px 0}
 .statement-customer .statement-fee-table{display:block;min-width:0}
 .statement-fee-table thead{display:none}
 .statement-fee-table tbody,.statement-fee-table tbody tr,.statement-fee-table tbody th,.statement-fee-table tbody td{display:block;width:100%;text-align:left}
 .statement-fee-table tbody tr{padding:12px;border:1px solid var(--line-strong);border-radius:5px;margin-bottom:10px}
 .statement-fee-table tbody th{border:0;padding:0 0 8px;font-weight:600;min-width:0}
 .statement-fee-table tbody td{position:relative;border:0;padding:5px 0 5px 102px;white-space:normal;overflow-wrap:anywhere}
 .statement-fee-table tbody td::before{content:attr(data-label);position:absolute;left:0;top:5px;width:92px;color:var(--ink-secondary);font-size:11px}
 .statement-fee-table tbody td .statement-model{margin-left:0}
 .statement-fee-table tfoot{display:block}
 .statement-fee-table tfoot tr{display:flex;align-items:baseline;justify-content:space-between}
 .statement-fee-table tfoot th{display:block;flex:1;min-width:0;text-align:left}
 .statement-fee-table tfoot td{display:block;text-align:right}
 .statement-fee-table tfoot td:empty{display:none}
 .statement-customer .statement-fee-table tfoot th,.statement-customer .statement-fee-table tfoot td{font-size:12px;padding:10px 6px;white-space:normal}
}
@media print{
 @page{size:A4 portrait;margin:12mm}
 body:has(.statement-customer) .statement-toolbar,
 body:has(.statement-customer) .toast,
 body:has(.statement-customer) .statement-detail>.table-subtext,
 .statement-customer .statement-outcome .statement-detail-link,
 body:has(.statement-customer) .jf-context,
 body:has(.statement-customer) .account-back,
 body:has(.statement-customer) .statement-secondary,
 body:has(.statement-customer) .settlement-page>.account-heading,
 body:has(.statement-customer) .simple-subnav,
 body:has(.statement-customer) .settlement-document-header,
 body:has(.statement-customer) .settlement-document-revoke{display:none!important}
 body:has(.settlement-document-overlay) .settlement-page{display:none!important}
 .settlement-document-overlay{position:static;display:block;padding:0;background:none;overflow:visible}
 .settlement-document-dialog{border:0;box-shadow:none;max-width:none}
 .settlement-document-body{padding:0}
 .statement-customer{padding:0!important;border:0!important;border-radius:0;box-shadow:none;max-width:none;color:#000;background:#fff;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .statement-customer .statement-title{margin-bottom:12px;padding-bottom:10px}
 .statement-customer .statement-title h2{font-size:20pt}
 .statement-customer .statement-info dd{font-size:10pt}
 .statement-customer .statement-summary-table{font-size:10pt}
 .statement-customer .statement-summary-table th,.statement-customer .statement-summary-table td{padding:7px 8px}
 .statement-customer .statement-summary-balance th,.statement-customer .statement-summary-balance td{font-size:13pt}
 .statement-customer .statement-detail-link{color:#000;text-decoration:none}
 .statement-customer .statement-calculation-guide{margin:14px 0;padding:10px 12px;break-inside:avoid}
 .statement-customer .statement-breakdown-heading>span{display:none}
 .statement-customer .statement-appendix{break-inside:auto;padding-top:12px}
 .statement-customer .statement-appendix>summary{break-after:avoid;list-style:none;font-weight:650}
 .statement-customer details::details-content{content-visibility:visible!important;display:block!important}
 .statement-customer details>:not(summary){display:block!important}
 .statement-customer .statement-table-scroll{overflow:visible!important}
 .statement-customer table{min-width:0!important;font-size:8pt;width:100%;table-layout:auto}
 .statement-customer thead{display:table-header-group}
 .statement-customer tfoot{display:table-row-group}
 .statement-customer tr{break-inside:avoid}
 .statement-customer th,.statement-customer td{padding:5px 4px;min-width:0!important;overflow-wrap:anywhere}
 .statement-customer .statement-model{font-size:7.5pt}
 .statement-customer .statement-outcome{break-inside:avoid}
 .statement-customer .statement-result strong{font-size:18pt}
 .statement-customer .statement-fee-section{break-before:auto}
 .statement-customer .statement-fee-section .statement-small-note{margin:5px 0;font-size:8pt}
 .statement-customer .statement-no-fee{display:none!important}
 .statement-customer .statement-fee-section:first-of-type{break-before:auto}
 .statement-customer .statement-meta{font-size:8pt}
}
