.header-actions{display:flex;align-items:center;gap:10px}
.button-history{background:var(--brown);color:#fff;border:1px solid var(--brown)}
.button-history span{min-width:23px;height:23px;padding:0 6px;border-radius:20px;background:var(--rose-light);color:var(--brown);display:grid;place-items:center;font-size:11px}
.result-actions .save-pricing{margin-right:auto}
.history-modal{max-width:760px}
.history-list{display:grid;gap:12px;max-height:min(60vh,590px);overflow:auto;padding:2px}
.history-card{border:1px solid var(--border);border-radius:15px;padding:17px;background:#fff;display:grid;grid-template-columns:1.35fr repeat(2,.7fr) auto;gap:16px;align-items:center}
.history-card h3{font:21px var(--serif);color:var(--brown);margin:0 0 4px}
.history-card p{font-size:12px;margin:0;color:var(--muted)}
.history-metric span{display:block;color:var(--muted);font-size:11px}
.history-metric strong{display:block;margin-top:3px;font-size:16px}
.history-actions{display:flex;align-items:center;gap:8px}
.history-actions .button{min-height:42px;padding:9px 12px;font-size:13px}
.history-delete{width:42px;height:42px;border:1px solid #efd3d3;border-radius:11px;background:#fff5f5;color:var(--red);font-size:19px}
.history-empty{text-align:center;padding:38px 20px;border:1px dashed var(--border);border-radius:16px;background:var(--cream)}
.history-empty>span{font-size:34px;color:var(--rose)}
.history-empty h3{margin:6px 0 4px}
.history-empty p{margin:0;color:var(--muted)}
.history-note{font-size:12px;color:var(--muted);background:var(--beige);border-radius:11px;padding:11px 13px;margin:16px 0 0!important}
@media(max-width:820px){.history-card{grid-template-columns:1fr 1fr}.history-card>div:first-child{grid-column:1/-1}.history-actions{grid-column:1/-1}.history-actions .button{flex:1}}
@media(max-width:650px){.topbar{height:auto;min-height:68px;gap:8px}.header-actions{gap:6px}.header-actions .button{padding:8px 10px;font-size:12px}.button-history{font-size:0!important}.button-history:before{content:"Salvas";font-size:12px}.result-actions .save-pricing{margin-right:0}}
@media(max-width:420px){.header-actions #newPricingTop{font-size:0}.header-actions #newPricingTop:before{content:"Nova";font-size:12px}.history-card{grid-template-columns:1fr}.history-card>div:first-child,.history-actions{grid-column:auto}.history-actions{flex-wrap:wrap}.history-actions .button{flex-basis:calc(100% - 50px)}}
