.heat-record-actions{flex-wrap:wrap;gap:4px}
.history-record-actions{flex-wrap:wrap;gap:4px}
.history-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 22px;padding:18px;background:#f5f8fb;border:1px solid #d9e3ed;border-radius:8px}
.history-filter-grid .field{font-size:14px;min-width:0}
.history-filter-grid .field input,.history-filter-grid .field select{width:100%;min-width:0;font-size:14px}
.history-search{grid-column:span 2}
.history-filter-actions{grid-column:span 2;display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.history-result-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;font-size:14px;color:#516b80}
.history-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:20px;font-size:14px}
.history-module-tag{display:inline-block;vertical-align:middle;margin-left:8px;padding:3px 8px;background:#e5eef5;color:#365e7a;border-radius:4px;font-size:12px;font-weight:500}
.history-event-heading .history-record-title{font-size:14px;font-weight:600;color:#294962}
.history-source{padding:12px 16px;background:#f8fafc;color:#587086;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.history-event-footer{padding:0 10px 10px;background:#f8fafc}
.history-event-footer .btn{white-space:normal;text-align:left}
.history-help{font-size:13px;line-height:1.65;color:var(--muted);margin:0 0 18px}
.history-notice{font-size:14px;line-height:1.65;background:#f1f6fb;border:1px solid #d4e2ef;border-radius:7px;padding:12px 15px;margin-bottom:18px;color:#334f69}
.heat-history-list{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.history-event{border:1px solid #d7e1eb;border-radius:8px;background:#fff;overflow:hidden}
.history-event>summary{display:flex;justify-content:space-between;align-items:center;gap:20px;cursor:pointer;list-style:none;background:#f6f9fc;padding:16px 18px;border-left:3px solid #e97425}
.history-event>summary::-webkit-details-marker{display:none}
.history-event>summary:after{content:'+';font-size:22px;color:#43617d}
.history-event[open]>summary:after{content:'−'}
.history-event-heading{display:grid;gap:7px;min-width:0;flex:1;overflow-wrap:anywhere}
.history-event-heading strong{font-size:16px;color:#17364f}
.history-event-heading>span{font-size:14px;color:#425c73}
.history-event-meta{display:grid;gap:8px;text-align:right;font-size:12px;color:#64768a;flex-shrink:0}
.history-event-meta time{font-size:14px;color:#344b63}
.history-changes table{width:100%;table-layout:fixed;border-collapse:collapse;text-align:left}
.history-changes th,.history-changes td{padding:13px 16px;vertical-align:top;font-size:14px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap;border-bottom:1px solid #e7edf3}
.history-changes thead th{font-size:12px;font-weight:650;color:#61758b;background:#fff}
.history-changes th:first-child{width:27%}
.history-changes tbody th{font-weight:600;color:#365069;background:#fafbfd}
.history-changes tbody td{color:#5a6c7b}
.history-changes tbody td:last-child{background:#f3faf6;color:#204c36}
.history-changes tr:last-child>*{border-bottom:0}
.history-values{margin:0;padding-left:17px;white-space:normal}
.history-values li+li{margin-top:7px}
.history-values small{font-size:12px;color:#64768a}
.history-blank{color:#8998a6}
.history-empty{text-align:center;padding:28px 18px;border:1px dashed #cdd9e5;border-radius:8px;font-size:16px;color:#37526d}
.history-empty p{margin-top:10px;font-size:14px;line-height:1.6;color:#667b8f}
.heat-history-inline{margin-top:24px;border-top:1px solid #d7e1eb;padding-top:18px}
.heat-history-inline>summary{cursor:pointer;font-size:16px;font-weight:650;color:#244763;padding-bottom:16px}
.heat-history-inline>summary span{display:inline-block;margin-left:12px;font-size:12px;font-weight:500;background:#edf3f8;padding:3px 9px;border-radius:12px}
.heat-history-dialog .dialog-body{max-height:65vh;overflow-y:auto}
.history-changes .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:700px){
 .history-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:12px}
 .history-search,.history-filter-actions{grid-column:span 2}
 .history-filter-actions .btn{flex:1;padding-inline:8px}
 .history-event>summary{padding:13px 12px;gap:10px;flex-wrap:wrap}
 .history-event-heading{flex-basis:65%}
 .history-event-meta{flex-basis:100%;text-align:left;order:2;gap:5px}
 .history-event>summary:after{order:1}
 .history-changes table,.history-changes tbody,.history-changes tr,.history-changes tbody th,.history-changes td{display:block;width:100%;box-sizing:border-box}
 .history-changes thead{display:none}
 .history-changes tbody th:first-child{width:100%;padding:10px 12px;background:#eef3f7}
 .history-changes td{padding:10px 12px;border-bottom:0}
 .history-changes td:before{content:attr(data-label);display:block;font-size:12px;font-weight:600;margin-bottom:5px;color:#61758b}
 .history-changes tr+tr{border-top:1px solid #d7e1eb}
 .heat-history-dialog .dialog-body{padding:16px;max-height:64vh}
}
