.sales-history{max-width:1500px;margin:auto;color:#291e23}.history-heading,.history-filter-bar,.history-pagination{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.history-heading h1{margin-bottom:6px}.history-heading p,.history-panel>p,.history-criteria,.history-updated{color:#675c61}.history-controls,.history-panel{background:#fff;border:1px solid #e6e0dd;border-radius:18px;padding:20px;margin:18px 0}.history-presets{display:flex;gap:8px;flex-wrap:wrap}.sales-history button,.sales-history input,.sales-history select,.sales-history summary{min-height:44px}.history-presets [aria-pressed=true]{background:#612d40;color:#fff}.history-filter-bar{margin-top:16px;justify-content:flex-start}.history-dates{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-end;margin-top:16px}.history-dates[hidden]{display:none}.history-dates label{display:grid;gap:6px;min-width:170px}.history-dates input,.history-dates select{max-width:100%;padding:10px;border:1px solid #d9d1d4;border-radius:10px;background:white;color:inherit}.history-totals{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.history-total{padding:20px;border-radius:18px;background:#fff;border:1px solid #e6e0dd;display:flex;flex-direction:column;gap:8px}.history-total:first-child{background:#612d40;color:#fff}.history-total h2{font-size:14px;margin:0}.history-total strong{font-size:clamp(23px,2.2vw,34px);line-height:1.15}.history-total small{font-size:12px}.history-panel h2{font-size:20px;margin:0 0 12px}.history-payments{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}.history-payments>div{padding:14px;background:#f5f1ed;border-radius:12px;display:grid;gap:8px}.history-payments strong{font-size:23px}.history-table-wrap{max-width:100%;overflow:auto}.history-panel table{width:100%;border-collapse:collapse;font-size:14px}.history-panel th,.history-panel td{padding:8px;text-align:right;border-bottom:1px solid #eee8e5;white-space:nowrap}.history-panel th:first-child{text-align:left}.history-panel th button{max-width:250px;white-space:normal;text-align:left}.history-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.history-groups>.history-panel:first-child{grid-column:1/-1}.history-groups>.history-panel{margin:0}.history-sales details{border-bottom:1px solid #e6e0dd;padding:10px 0}.history-sales summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer}.history-sales small,.history-receipts small{display:block;color:#675c61;margin-top:5px}.history-sales li{padding:7px 0;overflow-wrap:anywhere}.history-receipts{list-style:none;padding:0}.history-receipts li{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #eee8e5;padding:12px 0}.history-pagination{justify-content:center;margin-top:16px}.history-empty{padding:18px;background:#f5f1ed;border-radius:12px}.history-criteria,.history-updated{font-size:13px;line-height:1.6}.history-updated{text-align:right}.sales-history summary:focus-visible{outline:3px solid #a8844a;outline-offset:3px}
@media(max-width:1200px){.history-totals{grid-template-columns:repeat(3,minmax(0,1fr))}.history-groups{grid-template-columns:1fr}}
@media(max-width:600px){.history-controls,.history-panel{padding:14px}.history-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.history-total{padding:15px}.history-total:first-child{grid-column:1/-1}.history-total:first-child strong{font-size:34px}.history-payments{grid-template-columns:1fr}.history-payments>div{display:flex;justify-content:space-between;align-items:center}.history-dates label{min-width:0;flex:1 1 130px}.history-dates button{width:100%}.history-sales summary{align-items:flex-start}.history-panel th,.history-panel td{padding:7px 4px;font-size:12px}.history-panel th button{padding:8px 4px;font-size:12px}.history-heading h1{font-size:28px}.history-receipts li{font-size:13px}.history-presets button{flex:1 1 auto}.history-panel table{table-layout:auto}.history-sales small{max-width:200px}}

.history-dates select,.history-dates input{width:100%;min-width:0;box-sizing:border-box}@media(max-width:600px){.history-heading{gap:8px}.history-heading p{font-size:13px;margin:4px 0}.history-heading>button{margin-left:auto}.history-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.history-presets button{padding:8px;font-size:13px}.history-controls{margin:12px 0}.history-filter-bar{font-size:13px;margin-top:10px}}

.history-export-actions{display:flex;gap:8px;flex-wrap:wrap}
