.history-filters{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr 1fr;gap:12px;align-items:end;margin-bottom:22px}.history-filters label{min-width:0;font-size:13px}.history-filters>.actions{grid-column:1/-1;justify-content:flex-end}.history-record{display:flex;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--line);min-width:0}.history-record strong{font-size:15px;overflow-wrap:anywhere}.history-record p{font-size:13px;color:var(--muted);margin:5px 0 0;overflow-wrap:anywhere}.history-record-action{display:flex;align-items:center;gap:14px;flex-shrink:0;font-size:13px;color:#45556a}.history-pagination{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-top:18px;font-size:13px;color:var(--muted)}.history-item{padding:18px 0;border-bottom:1px solid var(--line);min-width:0}.history-item header{display:flex;flex-wrap:wrap;gap:8px 18px}.history-item p{font-size:13px;overflow-wrap:anywhere}.history-detail{min-width:0}.history-detail pre{max-height:350px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.history-image img{display:block;max-width:100%;height:auto;margin-top:14px}.history-price-note{display:block;font-size:12px;line-height:1.65;color:#765416;max-width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere}.history-price-note.increased{color:#a52222;font-weight:600}.queue-row.price-increased{border-color:#c53535!important;outline:1px solid #c53535;outline-offset:-1px}.queue-amount .packaging-info{justify-content:flex-end;max-width:100%;text-align:right}.queue-row{transition:border-color .18s ease,outline-color .18s ease}.history-record{animation:history-appear .16s ease both}@keyframes history-appear{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}@media(max-width:1100px){.history-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:640px){.history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.history-filters label:first-child{grid-column:1/-1}.history-record{display:block;padding:15px 0}.history-record-action{justify-content:space-between;margin-top:12px}.history-pagination{flex-wrap:wrap}.history-price-note{font-size:12px}.queue-row:has(.history-price-note)>summary{grid-template-areas:"index product product expand" ". sku amount ."}.queue-amount .packaging-info{display:flex;flex-wrap:wrap}.history-detail .clean-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){.history-record{animation:none}.queue-row{transition:none}}
.history-readonly{display:inline-flex;align-items:center;gap:6px;color:var(--blue);background:var(--blue-soft);border-radius:7px;padding:4px 9px;font-size:11px}.history-fields{display:grid;grid-template-columns:1.1fr .8fr 1fr 1fr;gap:14px;padding-bottom:18px}.history-fields label{font-size:12px;min-width:0}.history-fields input{background:#f8fafc;cursor:default}.history-meta{display:flex;flex-wrap:wrap;gap:8px 24px;padding-bottom:18px;font-size:12px;color:var(--muted)}.history-meta strong{color:var(--ink);font-weight:500}.history-queue-note{font-size:11px;color:var(--muted);margin-top:10px}.history-workbench .queue-content{height:calc(100dvh - 442px);min-height:420px}.history-workbench .queue-content>.preview-panel,.history-workbench .queue-content>.details-panel{display:flex;flex-direction:column;height:100%;min-width:0}.history-workbench .image-viewport,.history-workbench .queue-goods{flex:1;min-height:0;height:auto}.history-workbench .image-viewport{display:block;padding:14px}.history-original-image{display:block;max-width:none;height:auto;transform-origin:top left;border:1px solid var(--line)}.history-missing-image{padding:45px 18px;text-align:center;color:var(--muted);font-size:12px}.history-sku{display:block;color:var(--blue);font-weight:650;overflow-wrap:anywhere}.history-snapshot-row>summary{min-height:72px}.history-snapshot-row .queue-row-body{padding-top:8px}.history-detail-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:14px;margin-top:18px;font-size:12px;color:var(--muted)}.history-detail-footer>span{min-width:0;overflow-wrap:anywhere}.history-workbench .history-pagination{padding:8px 0;flex-shrink:0;font-size:12px}.history-workbench .history-pagination button{min-height:30px;padding:4px 9px}.history-workbench .queue-doc-copy>small{font-size:11px}
.history-record-action{flex-wrap:wrap;justify-content:flex-end;max-width:45%}.history-delete{border-radius:9px;color:#354a65;background:#fff;transition:background .16s ease,transform .16s ease}.history-delete:hover{background:#edf3fc}.history-delete:active{transform:scale(.98)}.history-delete:focus-visible{outline:2px solid var(--blue);outline-offset:3px}.history-delete-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:0}.history-delete-summary>div{min-width:0}.history-delete-summary dt{color:var(--muted);font-size:12px}.history-delete-summary dd{margin:4px 0;overflow-wrap:anywhere}.history-notice{padding:12px 14px;border:1px solid #cdddf4;background:#f1f6fd;border-radius:10px;color:#304c72;font-size:13px;overflow-wrap:anywhere}.history-notice p{margin:5px 0}.history-filters select{width:100%;min-width:0}@media(max-width:640px){.history-record-action{max-width:none;justify-content:flex-start;gap:10px}.history-record-action>span{flex:1 0 100%}.history-delete-summary{grid-template-columns:minmax(0,1fr)}}@media(prefers-reduced-motion:reduce){.history-delete{transition:none}.history-delete:active{transform:none}}
@media(max-width:1100px){.history-workbench .queue-content{grid-template-columns:minmax(0,1fr);height:auto}.history-workbench .queue-content>.preview-panel{height:420px}.history-workbench .queue-content>.details-panel{height:560px}.history-fields{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.history-workbench{grid-template-columns:minmax(0,1fr)}.history-workbench .document-queue{border:0;padding:0}.history-workbench .queue-documents{display:flex;gap:8px;max-height:none;padding:3px 3px 8px;overflow-x:auto}.history-workbench .queue-document{flex:0 0 185px;margin:0}.history-workbench .queue-content>.preview-panel{height:380px}.history-fields{gap:10px}.history-meta{gap:5px 14px}.history-detail-footer{align-items:flex-start}.history-detail-footer>span{max-width:75%}.history-workbench .queue-doc-copy>small{white-space:normal;overflow-wrap:anywhere}}

.queue-history-price{grid-column:2/-2;min-width:0;text-align:left}.queue-history-price:empty{display:none}.queue-history-price .history-price-note{display:flex;flex-direction:column;gap:6px;padding:10px 14px;border:1px solid #edcfd3;border-radius:10px;background:#fff8f8;color:#a52222;font-weight:400;line-height:1.6}.queue-history-price .history-price-heading{font-size:12px;font-weight:650}.history-price-values{display:flex;flex-wrap:wrap;gap:10px 32px;font-variant-numeric:tabular-nums}.history-price-values>span{display:flex;align-items:baseline;gap:8px;font-size:11px;color:#7c6670}.history-price-values b{font-size:13px;color:#a52222;font-weight:650}.queue-row .history-price-values small{font-size:11px;margin:0;color:#7c6670;font-weight:400}.history-price-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;font-size:11px;color:#7c6670;overflow-wrap:anywhere}.history-price-footer button{border-radius:8px;border-color:#e8c6cb;background:#fff;min-height:29px;padding:5px 10px;color:#a52222;white-space:normal}.history-price-approved{color:#536b82}@media(max-width:640px){.queue-history-price{grid-column:1/-1}.queue-history-price .history-price-note{padding:10px}.history-price-values{gap:8px 18px}}

#history-supplier[hidden]{display:none}.history-filters .supplier-picker{margin-top:6px}.history-filters .supplier-pick-menu{min-width:0}.history-filters>.actions{flex-wrap:wrap}

.history-selection{display:flex;align-items:center;flex-wrap:wrap;gap:16px;font-size:13px;color:var(--muted);padding-bottom:8px}.history-selection label{display:flex;align-items:center;gap:8px;cursor:pointer}.history-record-select{display:flex;align-items:center;padding-top:3px}.history-record-select input,.history-selection input{width:16px;height:16px;margin:0;accent-color:var(--blue)}

.history-list .history-record{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:start;gap:12px}.history-list .history-record-select{grid-column:1;grid-row:1 / span 2;align-self:start}.history-list .history-record>div:not(.history-record-action){grid-column:2;min-width:0}.history-list .history-record-action{grid-column:3;max-width:none}@media(max-width:640px){.history-list .history-record{grid-template-columns:22px minmax(0,1fr)}.history-list .history-record-action{grid-column:2}}
