.history-view{--history-gold:#bc8b23;min-width:0}
.finance-sections{display:flex;gap:5px;padding:5px;border:1px solid #e6e1d3;background:linear-gradient(120deg,#eeeede,#faf7ec);border-radius:13px;width:fit-content;margin:0 0 22px}.finance-sections button{border:0;background:transparent;padding:10px 24px;border-radius:9px;font-size:14px;color:#78816f}.finance-sections button.active{color:#5f542b;font-weight:600;background:linear-gradient(125deg,#fffef7,#fff1c8);box-shadow:0 3px 10px #6f5d2414}.history-heading-embedded h2{font-size:20px}.history-archive-pill{background:#eeeee6;color:#6c735d;border:1px solid #dddccd;margin:3px 0}.history-archive-source{margin-top:20px;background:linear-gradient(130deg,#fffdf8,#f3f5ec)}.history-archive-source>p{margin:7px 0}.history-archive-names{display:grid;gap:8px;margin:15px 0}.history-archive-names>div{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;font-size:13px}.history-archive-names span{color:#7a8371;font-size:12px}
.history-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 22px}.history-heading h1{margin:4px 0;font-size:27px}.history-heading h2{margin:4px 0;font-size:23px}.history-heading p{margin:4px 0 0;color:#69766b;font-size:13px}
.history-source{border:1px solid #e8dfc9;border-radius:16px;padding:18px 22px;background:radial-gradient(ellipse at 100% 0,#fff0c2 0,transparent 60%),linear-gradient(115deg,#fffdf6,#f4f5eb);margin-bottom:18px}.history-source>div{display:flex;align-items:center;gap:13px;flex-wrap:wrap}.history-source p{margin:8px 0 0;font-size:12px;color:#6e7667}.history-source strong{font-size:15px}.history-source>div>span:last-child{font-variant-numeric:tabular-nums;color:#665b44}
.history-date-filter{margin:0 0 20px;padding:16px 20px;border:1px solid #e3e5d8;border-radius:14px;background:linear-gradient(115deg,#fffefb,#f7f8f1)}.history-date-fields{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px}.history-date-fields label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#67745f}.history-date-fields input{min-width:160px;min-height:40px}.history-date-separator{padding:0 0 10px;color:#929b87;font-size:12px}.history-date-actions{display:flex;gap:8px;margin-left:4px}.history-date-actions .btn{min-height:40px}.history-date-actions [data-action="history-apply-dates"]{background:linear-gradient(125deg,#f6d577,#f9e6aa);border-color:#e9cc7b;color:#66501f}.history-date-current{font-size:12px;color:#7b8371;margin:12px 0 0}.history-date-current strong{font-weight:500;color:#526448}.history-date-error{font-size:13px;color:#a6503c;margin:10px 0 0}.history-date-error[hidden]{display:none}
.history-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.history-metric{padding:22px 20px 18px;border:1px solid #e5e6db;border-radius:16px;background:linear-gradient(135deg,#fff,#fcfbf7);box-shadow:0 5px 20px #3f4d2910}.history-metric>span{font-size:13px;color:#687563}.history-metric>strong{display:block;margin-top:8px;font-size:29px;letter-spacing:-.8px;line-height:1.4;font-variant-numeric:tabular-nums}.history-metric small{font-size:12px;margin-left:6px;font-weight:400;letter-spacing:0;color:#6f786e}.history-metric p{margin:8px 0 0;color:#798274;font-size:12px}.history-metric.primary{background:linear-gradient(130deg,#eaf2e9,#fffef7);border-color:#d4e1cf}.history-metric.primary>strong{color:#386547}.history-metric.cancelled>strong{color:#ab6049}.history-metric.classes{background:linear-gradient(130deg,#f8f1dc,#fffdfa)}
.history-counts{margin:15px 2px 22px;font-size:12px;color:#697369;line-height:1.9}.history-counts>span{margin:0 7px;color:#b6baa9}.history-counts>strong{font-weight:500;display:block;color:#786c4d}.history-periods,.history-accounts,.history-records{margin-top:20px;min-width:0}.history-view .section-head p{font-size:12px;margin:4px 0 0;color:#78816f}.history-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.history-controls [aria-pressed=true]{background:#fff1c2;border-color:#e5c86b;color:#70561b}.history-view select,.history-view input{border:1px solid #dfe3d7;border-radius:9px;background:#fff;padding:9px 12px;color:var(--ink);min-width:0;font-size:13px}.history-view select:focus,.history-view input:focus{outline:2px solid #b7cdb5;outline-offset:1px}.history-filters{display:flex;align-items:end;gap:12px;margin:18px 0}.history-filters label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#6e776c}.history-filters label:first-child{flex:1;max-width:400px}.history-filters input{width:100%}
.history-table-scroll{overflow-x:auto}.history-table{width:100%;border-collapse:collapse;font-size:13px}.history-table th{white-space:nowrap}.history-table td,.history-table th{padding:13px 12px;text-align:left}.history-table tbody>tr>th{background:transparent;font-weight:500;color:#58654f}.history-table td{vertical-align:middle}.history-table td small{display:block;color:#7b8378;font-size:12px;margin-top:3px}.history-table td strong{font-variant-numeric:tabular-nums}.history-name{padding:0;border:0;background:none;color:#3a6247;font-size:14px;font-weight:600;text-align:left;text-decoration:underline;text-decoration-color:#bbcbb4;text-underline-offset:4px}.history-name:hover{color:#a47921}.history-table .history-empty{text-align:center;padding:32px;color:#7c8477}.history-bar-value{min-width:110px;position:relative;padding-bottom:9px;font-variant-numeric:tabular-nums}.history-bar-value i{display:block;position:absolute;left:0;bottom:0;width:var(--history-width);height:4px;background:linear-gradient(90deg,#80a584,#c7d6aa);border-radius:4px;max-width:180px}.history-paging{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px;font-size:12px;color:#727c6b}.history-paging>div{display:flex;gap:7px}.history-message{padding:36px 20px;text-align:center;color:#727e6b;background:#fffdf7;border:1px solid #e8e5d7;border-radius:12px}.history-message strong{display:block;color:#59664d;font-size:16px}.history-message p{font-size:13px}
.history-group-table .history-group-row>td{background:linear-gradient(130deg,#f4f5ec,#fffdf3);border-top:1px solid #e3e5d7;padding-top:16px;padding-bottom:16px}.history-group-table .history-group-row.is-expanded>td{background:#f2f4e8;border-bottom-color:#dce3cf}.history-group-toggle{display:flex;gap:9px;align-items:center;border:0;padding:0;background:transparent;text-align:left;color:#365e42;font-size:15px;max-width:310px}.history-group-toggle strong{overflow-wrap:anywhere}.history-group-chevron{font-size:25px;line-height:1;width:13px;flex-shrink:0;transform-origin:center;transition:transform .15s}.history-group-toggle[aria-expanded=true] .history-group-chevron{transform:rotate(90deg)}.history-group-hint{display:block;font-size:11px;color:#8a8167;margin:4px 0 0 22px}.history-group-row>td:first-child>small{margin-left:22px}.history-group-table .history-source-row>td{background:#fffefa;padding-top:12px;padding-bottom:12px;color:#687060}.history-group-table .history-source-row>td:first-child{padding-left:33px;border-left:3px solid #dfe6d0}.history-source-name{display:flex;gap:7px;align-items:baseline;max-width:310px}.history-source-name>span{font-size:10px;color:#969b86;flex-shrink:0}.history-source-name .history-name{font-size:13px;overflow-wrap:anywhere}.history-source-row .history-source-detail-label{font-size:12px;color:#8a927d}.history-group-row>td:nth-child(3)>strong,.history-group-row>td:nth-child(4)>strong{font-size:16px;color:#46633d}
.history-detail-head{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.history-detail-head>div{flex:1}.history-detail-head h2{margin:0}.history-detail-head p{font-size:12px;color:#73806d;margin:5px 0 0}.history-detail-metrics{display:flex;gap:24px;padding:17px 0;margin-top:10px;border-bottom:1px solid #e9e9df;flex-wrap:wrap;color:#7a816f;font-size:13px}.history-detail-metrics strong{color:#466445;font-size:18px;margin-left:8px}.history-record-filter{display:flex;gap:12px;align-items:center;margin:18px 0;font-size:12px;color:#717c6a}.history-notes{padding:17px 21px;border:1px solid #e5e7dc;border-radius:12px;margin:20px 0;background:#f3f3ea;font-size:12px;color:#6f7867}.history-notes summary{cursor:pointer;font-weight:500;color:#5d6855}.history-notes li{margin:7px 0}.history-notes p{overflow-wrap:anywhere;margin-bottom:0}
@media(max-width:1100px){.history-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.history-view .section-head{flex-wrap:wrap;gap:14px}}
@media(max-width:700px){.history-heading{align-items:flex-start}.history-heading h1{font-size:24px}.history-metric{padding:16px 12px}.history-metric>strong{font-size:23px}.history-metric p{font-size:11px}.history-source{padding:16px}.history-source>div{gap:8px}.history-source>div>span:last-child{width:100%;font-size:12px}.history-filters{align-items:stretch;flex-direction:column}.history-filters label:first-child{max-width:none}.history-table{min-width:650px}.history-paging{flex-wrap:wrap}.history-detail-metrics{gap:12px}.history-detail-head>div{min-width:160px}.history-view .panel{padding:17px 13px}}
@media(max-width:700px){.history-date-filter{padding:15px 12px}.history-date-fields{gap:10px}.history-date-fields label{flex:1;min-width:120px}.history-date-fields input{min-width:0;width:100%}.history-date-separator{display:none}.history-date-actions{margin:0;width:100%}.history-date-actions .btn{flex:1}.history-date-current{line-height:1.9}}
