
/* History opens on demand; it never occupies a row above the product table. */
#productReferenceLibrarySection .reference-sync-entry{white-space:nowrap;flex:0 0 auto;font-size:12px}
#productReferenceLibrarySection .reference-history-overlay{position:fixed;inset:0;z-index:1450;background:rgba(20,20,24,.2);display:flex;align-items:flex-start;justify-content:flex-end;padding:24px;box-sizing:border-box}
#productReferenceLibrarySection .reference-history-panel{width:600px;max-width:100%;max-height:calc(100dvh - 48px);background:#fff;border:1px solid #e5e5e9;border-radius:16px;display:flex;flex-direction:column;padding:18px;box-sizing:border-box;font-size:13px;gap:12px}
#productReferenceLibrarySection .reference-history-heading,#productReferenceLibrarySection .reference-history-tabs,#productReferenceLibrarySection .reference-history-footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex-shrink:0}
#productReferenceLibrarySection .reference-history-heading strong{font-size:17px}
#productReferenceLibrarySection .reference-history-heading button{margin-left:auto}
#productReferenceLibrarySection .reference-history-tabs button[aria-pressed="true"]{background:#202024;color:white;border-color:#202024}
#productReferenceLibrarySection .reference-history-list{min-height:0;overflow:auto;overscroll-behavior:contain}
#productReferenceLibrarySection .reference-history-row{padding:12px 0;border-bottom:1px solid #eee;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;overflow-wrap:anywhere}
#productReferenceLibrarySection .reference-history-row small{grid-column:1}
#productReferenceLibrarySection .reference-history-row button{grid-column:2;grid-row:1 / 3;align-self:center}
#productReferenceLibrarySection .reference-history-footer span{margin-right:auto}
@media(max-width:768px){
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #productReferenceLibrarySection .reference-history-overlay{padding:12px}
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #productReferenceLibrarySection .reference-history-panel{padding:12px;max-height:calc(100dvh - 24px)}
}
