.history-filter-form{padding:19px 20px;background:var(--surface);border:1px solid var(--line);border-radius:11px;margin-bottom:18px}.history-filter-grid{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.history-filter-grid label{display:grid;gap:7px;min-width:135px;flex:1;font-size:14px;font-weight:600;color:var(--muted)}.history-filter-grid .history-group-field{flex:1.5;min-width:180px}.history-filter-grid input,.history-filter-grid select{width:100%;min-width:0;min-height:45px;border:1px solid var(--control-border);border-radius:8px;font:400 16px 'Segoe UI',sans-serif;background:var(--surface);color:var(--text);padding:9px 11px}.history-filter-grid>.button{min-height:45px;padding:10px 20px}.history-draft-status,.history-group-rule{font-size:14px;line-height:1.6;color:var(--muted);margin:12px 0 0}.history-group-rule{margin-top:5px}.history-filter-error{font-size:15px;line-height:1.6;color:var(--danger);font-weight:600;margin:12px 0 0}.history-filter-error:empty{display:none}.history-filter-grid [aria-invalid=true]{border:2px solid var(--danger)}.history-context>div:first-child>small{display:block;color:var(--muted);font-size:14px;margin-bottom:7px}.history-context>div:first-child>strong{display:block}.history-scope-actions{display:flex;gap:12px;flex-wrap:wrap;flex-basis:100%}.history-scope-actions:empty{display:none}.history-scope-actions .text-button{min-height:44px;font-size:14px}.history-quantity-summary{border:1px solid var(--line);border-radius:11px;background:var(--surface);margin-bottom:24px;overflow:hidden}.history-total-heading{padding:17px 20px;display:flex;justify-content:space-between;gap:10px;align-items:center;border-bottom:1px solid var(--line)}.history-total-heading h3{font-size:18px;color:var(--foreground);margin:0}.history-total-heading>span{font-size:14px;color:var(--muted)}.history-total-types{display:flex;gap:0;flex-wrap:wrap}.history-total-type{padding:18px 20px;flex:1;min-width:240px;border-right:1px solid var(--line)}.history-total-type:last-child{border-right:0}.history-total-type h4{font-size:15px;color:var(--muted);margin:0 0 15px;font-weight:600}.history-total-type>div{display:flex;gap:16px 30px;flex-wrap:wrap}.history-unit-total>strong{display:block;font-size:29px;color:var(--module);font-weight:700;line-height:1.2}.history-unit-total>strong>small{font-size:18px;font-weight:500}.history-unit-total>span{display:block;font-size:14px;color:var(--muted);margin-top:9px}.history-total-types>p{padding:0 20px;font-size:16px;color:var(--muted)}#history-result-heading{scroll-margin-top:15px}#history-result-heading:focus-visible{outline:3px solid var(--focus);outline-offset:4px;border-radius:3px}
@media(max-width:850px){.history-filter-grid label{min-width:150px}.history-filter-grid>.button{flex:0 0 auto}.history-total-type{min-width:220px}.history-total-heading{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:550px){.history-filter-form{padding:17px}.history-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 10px}.history-filter-grid label,.history-filter-grid .history-group-field{min-width:0}.history-filter-grid .history-group-field{grid-column:1/-1}.history-filter-grid>.button{grid-column:1/-1;min-height:46px}.history-filter-grid input,.history-filter-grid select{font-size:16px;padding:9px}.history-draft-status,.history-group-rule{font-size:14px}.history-total-heading{padding:17px}.history-total-heading h3{font-size:18px}.history-total-types{display:block}.history-total-type{min-width:0;padding:18px 17px;border-right:0;border-bottom:1px solid var(--line)}.history-total-type:last-child{border:0}.history-total-type>div{gap:16px 26px}.history-unit-total>strong{font-size:27px}.history-unit-total>span{font-size:14px}.history-context>div:first-child>strong{font-size:19px}}
.history-draft-status:empty,.history-group-rule:empty{display:none}.history-notice{font-size:14px;color:var(--muted);margin:8px 0 0}
.history-filter-disclosure{border:1px solid var(--line);border-radius:10px;margin-bottom:15px;background:var(--surface);overflow:hidden}.history-filter-disclosure>summary{min-height:46px;padding:13px 18px;font-size:14px;font-weight:600;color:var(--module);cursor:pointer}.history-filter-disclosure .history-filter-form{border:0;border-top:1px solid var(--line);border-radius:0;margin:0}.history-total-type{padding:13px 17px}.history-total-type h4{margin-bottom:10px}.history-total-heading{padding:13px 17px}.history-unit-total>strong{font-size:25px}.history-unit-total>span{margin-top:5px}.history-quantity-summary{margin-bottom:20px}
