.modal-card.inventory-details-modal{width:min(980px,calc(100vw - 40px));height:min(760px,calc(100dvh - 40px));min-width:0;display:flex;flex-direction:column;overflow:hidden}
.inventory-details-modal>.modal-head{flex:none}
.inventory-details-modal> :is(#modal-body,.modal-body){display:flex;flex:1;min-height:0;max-height:none;padding:0;overflow:hidden}
.inventory-details-panel{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0}
.inventory-details-content{flex:1;min-height:0;overflow:auto;padding:16px 20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}
.inventory-details-content>section{min-width:0;padding:12px 14px;border:1px solid #dbe4f0;border-radius:6px;background:#f7faff}
.inventory-details-content h3{margin:0 0 9px;font-size:14px;color:#192940}
.inventory-details-content dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;margin:0}
.inventory-details-content dt{font-size:12px;color:#4b5d76}
.inventory-details-content dd{margin:1px 0 0;color:#15273d;white-space:pre-wrap;overflow-wrap:anywhere}
.inventory-details-note{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#27394e}
.inventory-details-images{display:flex;gap:8px;flex-wrap:wrap}
.inventory-details-images img{width:86px;height:74px;object-fit:contain;background:#fff;border:1px solid #dbe4f0;border-radius:4px}
.inventory-details-links{padding:0;margin:0;list-style:none}
.inventory-details-links li{display:flex;flex-wrap:wrap;gap:4px 12px;overflow-wrap:anywhere}
.inventory-details-links li+li{margin-top:6px}
.inventory-details-panel>footer{flex:none;margin:0;padding:10px 20px;border-top:1px solid #dbe4f0}
@media(max-width:720px){.inventory-details-content{grid-template-columns:minmax(0,1fr);padding:12px}}

.inventory-details-content>.inventory-details-history{grid-column:1/-1}
.inventory-details-history .inventory-price-history-table{overflow:auto;min-height:0;max-height:320px;background:#fff}
.inventory-price-history-table table{min-width:510px;table-layout:auto;font-variant-numeric:tabular-nums}
.inventory-price-history-table :is(th,td){padding:5px 8px;text-align:left;white-space:nowrap}
.inventory-price-history-table :is(th,td):nth-last-child(-n+2){text-align:right}
.inventory-price-history-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:8px}
