.history-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}
.history-filters>label{min-width:0}
.history-filters.order-history-filters{display:flex;flex-direction:column;align-items:stretch}
.history-filter-actions{display:flex;gap:8px;grid-column:1/-1;flex-wrap:wrap}
.history-filter-error{margin:14px 0 0;padding:11px 13px;border:1px solid #efd5d3;border-radius:7px;background:#fff3f1;font-size:13px;line-height:1.7;color:#9b4642}
.history-table table{min-width:1050px}
.history-table td{vertical-align:top}
.history-table td strong{display:block;font-size:13px;line-height:1.6;color:#365168}
.history-table td small{display:block;max-width:260px;font-size:13px;line-height:1.7;color:#7c8b97;overflow-wrap:anywhere}
.history-table td code{font-size:13px;overflow-wrap:anywhere}
.history-time{white-space:nowrap;font-variant-numeric:tabular-nums}
.history-subject{margin-top:8px}
.history-outcome{display:inline-flex;align-items:center;padding:4px 8px;border-radius:5px;white-space:nowrap;font-size:13px;font-weight:600}
.history-outcome-success{background:#e9f5ee;color:#367453}
.history-outcome-failure{background:#fbeceb;color:#9d4c47}
.history-outcome-info{background:#eaf1f8;color:#4c718e}
.history-outcome-legacy{background:#eff1f3;color:#74818d}
.history-event-details{max-width:360px;min-width:160px}
.history-event-details>summary{font-size:13px;color:#376783;font-weight:600;cursor:pointer;padding:3px 0}
.history-event-details dl{display:grid;gap:4px;margin:10px 0;font-size:13px;line-height:1.7}
.history-event-details dt{font-weight:600;color:#62798a}
.history-event-details dd{margin:0 0 7px;color:#344f65;overflow-wrap:anywhere}
.history-event-details pre{max-width:360px;max-height:300px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px;border:1px solid #e4eaf0;border-radius:6px;background:#f6f9fb;color:#4a6478;font:13px/1.7 var(--site-font)}
.history-geonote{margin:15px 0 0;font-size:13px;line-height:1.8;color:#87949e}
.history-geonote a{color:#4e7792;text-decoration:underline}
.history-pagination{display:flex;align-items:center;gap:18px;margin-top:18px;flex-wrap:wrap;font-size:13px;color:#748693}
.history-summarygrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px}
.history-summarygrid>article,.history-summarygrid>.history-summary{padding:15px;border:1px solid #e0e7ed;border-radius:8px;background:#f8fafc;min-width:0}
.history-summarygrid span,.history-summarygrid small{display:block;font-size:13px;line-height:1.8;color:#7c8b97}
.history-summarygrid strong{display:block;margin:7px 0;font-size:18px;line-height:1.5;color:#2d4e67;overflow-wrap:anywhere}
.history-money{font-variant-numeric:tabular-nums;white-space:nowrap}
.history-money-positive{color:#327950}
.history-money-negative{color:#a34f48}
.history-muted{font-size:13px;line-height:1.8;color:#86949f}
.history-order-link{font-weight:700;color:#315f7f}
.history-warning{padding:12px 14px;border:1px solid #e7dfc5;border-radius:7px;background:#fffaf0;color:#8a7543;font-size:13px;line-height:1.8}
@media(max-width:1050px){.history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.history-summarygrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.history-filters,.history-summarygrid{grid-template-columns:1fr}.history-filter-actions>.button{flex:1}.history-table td small{max-width:210px}.history-summarygrid strong{font-size:16px}}
@media(max-width:600px){.order-history-filters .form-row{grid-template-columns:1fr}}
