/* Finance history extends the existing Operate workspace. */
.fh-overview{margin-top:20px}.fh-overview>.card-body{padding-top:23px}.fh-summary{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(250px,1fr);gap:34px}.fh-summary h2{font-size:16px;margin-bottom:13px}.fh-money-list{margin:0}.fh-money-list>div{display:flex;gap:14px;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line)}.fh-money-list dt{font-size:13px;min-width:0}.fh-money-list dt small{display:block;color:#596b82;margin-top:4px;line-height:1.6;font-size:12px}.fh-money-list dd{margin:0;font-size:16px;white-space:nowrap;font-variant-numeric:tabular-nums;text-align:right}.fh-money-list .fh-total dt,.fh-money-list .fh-total dd{font-weight:600}.fh-reconcile p{line-height:1.8}.fh-reconcile .notice{margin:18px 0}.fh-section{margin:20px 0;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}.fh-section>summary{padding:17px 23px;font-weight:600;cursor:pointer;min-height:52px;font-size:15px}.fh-section>summary:hover{background:#f8faff}.fh-section>summary:focus-visible,.fh-detail summary:focus-visible{outline:3px solid #89a3ff;outline-offset:-4px}.fh-batches,.fh-issues{padding:0 23px}.fh-batches article,.fh-issues article{padding:17px 0;border-top:1px solid var(--line)}.fh-batches article{display:flex;justify-content:space-between;align-items:center;gap:16px}.fh-batches p,.fh-issues p{margin-top:6px;line-height:1.7;font-size:13px;overflow-wrap:anywhere}.fh-batches h3,.fh-issues h3{font-size:14px}.fh-issue-head{display:flex;gap:15px;justify-content:space-between;align-items:flex-start}.fh-issue-head strong{font-size:14px}.fh-records .wrap-cell{max-width:260px;white-space:normal;overflow-wrap:anywhere}.fh-records .card-head{flex-wrap:wrap}.fh-records .card-head p{margin-top:6px;line-height:1.7}.fh-mobile-records{display:none}.fh-upload{margin-bottom:20px}.fh-upload .field{margin:18px 0 12px;max-width:620px}.fh-upload p{line-height:1.8}.fh-upload input[type=file]{padding:8px;max-width:100%}.fh-upload .notice{margin-top:16px}.fh-upload ul{padding-left:22px;font-size:13px;line-height:1.8}.fh-preview{margin-top:22px}.fh-preview>.fh-summary{margin:22px 0;border-top:1px solid var(--line);padding-top:20px}.fh-preview>.button-row{margin-top:18px}.fh-preview>.small{margin-top:14px}.fh-detail dl{margin:0 0 22px}.fh-detail dl>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:14px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}.fh-detail dt{color:#596b82}.fh-detail dd{margin:0;overflow-wrap:anywhere}.fh-detail h3,.fh-detail details{margin-top:22px}.fh-detail .button-row{margin-top:12px}.fh-detail summary{cursor:pointer;padding:10px 0}.fh-detail pre{background:#f5f7fb;border:1px solid var(--line);border-radius:5px;padding:14px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:400px;overflow:auto}.fh-detail .button-row .btn{white-space:normal;text-align:left}.fh-controls input:invalid{border-color:var(--red)}
@media(max-width:1100px){.fh-summary{grid-template-columns:1fr;gap:25px}.fh-reconcile{padding-top:20px;border-top:1px solid var(--line)}.fh-batches article{align-items:flex-start;flex-direction:column}}
@media(max-width:760px){.fh-overview>.card-body{padding:18px 15px}.fh-money-list>div{gap:10px}.fh-money-list dt{font-size:13px}.fh-money-list dd{font-size:16px}.fh-money-list dt small{font-size:12px}.fh-summary h2{font-size:16px}.fh-section>summary{padding:16px 15px}.fh-batches,.fh-issues{padding:0 15px}.fh-issue-head{display:block}.fh-issue-head strong{display:block;margin-top:8px}.fh-records>.table-wrap{display:none}.fh-mobile-records{display:block}.fh-mobile-records article{padding:16px 15px;border-top:1px solid var(--line);overflow-wrap:anywhere}.fh-record-head{display:flex;gap:12px;justify-content:space-between;align-items:center;font-size:13px}.fh-record-head strong{font-size:18px}.fh-mobile-records h3{font-size:14px;margin-top:10px}.fh-mobile-records p{font-size:13px;line-height:1.7;margin-top:6px}.fh-mobile-records .btn{margin-top:12px;min-height:44px}.fh-records .pagination{flex-wrap:wrap}.fh-records .pagination .btn,.fh-batches .btn,.fh-upload .btn{min-height:44px}.fh-upload .card-head{flex-wrap:wrap}.fh-upload input[type=file]{font-size:14px}.fh-preview>.button-row{align-items:stretch}.fh-preview>.button-row .btn{flex:1 1 100%}.fh-detail dl>div{grid-template-columns:1fr;gap:4px}.fh-detail .btn{min-height:44px}.fh-toolbar .finance-filter{flex-basis:160px}.fh-money-list dd{max-width:58%}.fh-summary .notice{font-size:13px}}

.fh-filter-more{flex:1 1 100%;min-width:0}.fh-filter-more>summary{cursor:pointer;font-size:13px;padding:8px 0;color:#53647a;min-height:40px}.fh-extra-filters{display:flex;padding-top:12px}.fh-filter-more>summary:focus-visible{outline:3px solid #89a3ff;outline-offset:2px}@media(max-width:760px){.finance-controls .section-tabs{padding:0 12px;gap:10px}.finance-controls .section-tabs button{font-size:12px}.fh-toolbar .finance-filter{flex-basis:130px}.fh-filter-more>summary{font-size:14px;min-height:44px;line-height:1.7}.fh-extra-filters{gap:12px}.fh-extra-filters .finance-search{flex-basis:100%}}
