.stock-case .panel-head{gap:16px;flex-wrap:wrap}.stock-reservations{display:grid;gap:12px}.stock-reservation{border:1px solid var(--border);border-radius:7px;padding:16px}.stock-reservation small{display:block;color:var(--muted);margin-top:4px}.stock-reservation dl{display:flex;flex-wrap:wrap;gap:14px 28px;margin:16px 0}.stock-reservation dt{font-size:11px;color:var(--muted)}.stock-reservation dd{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;margin:4px 0 0}.stock-availability{border-top:1px solid var(--border)}.stock-availability-search{display:flex;gap:12px;align-items:end;max-width:650px}.stock-availability-search .field{flex:1}.stock-material-pages{padding:16px 24px;display:flex;gap:14px;align-items:center;font-size:12px}.asset-reference-registry .panel-head{min-height:70px}.asset-reference-registry .tabs{min-height:49px}.asset-reference-registry .filterbar{min-height:99px;align-items:end}.asset-reference-registry table{font-size:13px;table-layout:auto}.asset-reference-registry th{font-size:11px;font-weight:550;padding-top:14px;padding-bottom:14px}.asset-reference-registry td{font-size:13px;vertical-align:middle;height:63px}.asset-reference-registry td strong{font-weight:600}.asset-reference-registry .filterbar .field.wide{min-width:240px;max-width:520px}.asset-reference-registry td .btn{min-height:32px}@media(max-width:600px){.stock-availability-search{align-items:stretch;flex-direction:column}.stock-reservation dl{gap:12px 20px}.stock-material-pages{flex-wrap:wrap}.asset-reference-registry .filterbar{min-height:0}.asset-reference-registry .filterbar .field.wide{min-width:100%}}
.stock-selected-balance{display:block;margin:0 0 20px;padding:13px 16px;border:1px solid var(--border);border-radius:6px;background:var(--surface-soft,#f7f9fc);font-size:13px;line-height:1.65;font-variant-numeric:tabular-nums}
/* v2.5: compact rows and operations on the case card. */
.stock-reserve-body{padding-bottom:12px}.stock-reservations{gap:0}.stock-reservation{display:flex;align-items:center;gap:16px;border:0;border-bottom:1px solid var(--border);border-radius:0;padding:12px 0}.stock-reservation:last-child{border-bottom:0}.stock-reservation-name{flex:1;min-width:150px}.stock-reservation-quantity,.stock-reservation-free{min-width:120px;font-variant-numeric:tabular-nums}.stock-reservation small{font-size:11px}.stock-reservation .actions{flex-wrap:wrap}.stock-availability{padding-top:14px;padding-bottom:12px}.stock-availability-search{max-width:none}.stock-search-input{position:relative}.stock-availability-search input{width:100%}.stock-inline-results{position:absolute;z-index:10;top:calc(100% + 4px);left:0;right:0;background:var(--surface,#fff);border:1px solid var(--border);border-radius:6px;box-shadow:0 10px 25px #17294b20;max-height:310px;overflow:auto}.stock-inline-result{display:block;text-align:left;width:100%;background:none;color:inherit;border:0;border-bottom:1px solid var(--border);padding:10px 12px;cursor:pointer}.stock-inline-result:hover,.stock-inline-result:focus-visible{background:var(--surface-soft,#edf3fc)}.stock-inline-result strong,.stock-inline-result small{display:block}.stock-inline-result small{margin-top:3px;color:var(--muted)}.stock-history{border-top:1px solid var(--border)}.stock-history>summary{cursor:pointer;padding:16px 24px;font-size:13px;font-weight:600}.stock-history>summary span{color:var(--muted);font-weight:400}.stock-history>p{padding:0 24px;margin:0 0 12px}.stock-history td{padding-top:10px;padding-bottom:10px}.stock-dialog,.stock-catalog{color:var(--text,#17294b);background:var(--surface,#fff);border:1px solid var(--border);border-radius:10px;box-shadow:0 24px 100px #14213d35;max-height:90vh;max-height:90dvh;overflow:auto;width:min(820px,calc(100vw - 32px));padding:0}.stock-dialog::backdrop,.stock-catalog::backdrop{background:#14213d66}.stock-dialog-close{position:absolute;right:15px;top:12px;border:0;background:transparent;font-size:26px;line-height:32px;width:36px;height:36px;cursor:pointer;color:var(--muted)}.stock-dialog-heading{padding:24px 58px 0 24px}.stock-dialog-heading h2{font-size:20px;margin:0 0 8px}.stock-dialog-body>.panel-body{padding-top:16px}.stock-dialog .formgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.stock-dialog .formfield:has(textarea){grid-column:1/-1}.stock-dialog .form-actions{margin-top:20px}.stock-dialog .stock-notice{font-size:12px;line-height:1.6}.stock-dialog .errorlist{color:#b42318}.stock-notification{color:var(--text,#17294b);padding:12px 16px;border:1px solid var(--border);background:var(--surface-soft,#f3f8ff);border-radius:6px}.stock-catalog{width:min(1050px,calc(100vw - 32px));padding:24px}.stock-catalog-head{padding-right:40px}.stock-catalog-head h2{margin-top:0}.stock-catalog>.field{display:block;max-width:600px}.stock-catalog>.field input{display:block;width:100%;margin-top:8px}.stock-catalog table{width:100%;font-size:12px}.stock-catalog td,.stock-catalog th{padding:10px 8px}.stock-catalog td:last-child{white-space:nowrap}.stock-catalog td .btn+.btn{margin-left:6px}.stock-catalog .stock-material-pages{padding:16px 0 0}.stock-search-input [hidden]{display:none}@media(max-width:650px){.stock-reservation{flex-wrap:wrap;gap:10px}.stock-reservation-name{flex-basis:100%}.stock-reservation-quantity,.stock-reservation-free{min-width:110px}.stock-reservation .actions{margin-left:auto}.stock-dialog .formgrid{grid-template-columns:1fr}.stock-dialog-heading{padding-left:16px}.stock-dialog .panel-body{padding:16px}.stock-catalog{padding:16px}.stock-dialog-close{right:8px;top:8px}.stock-availability-search{align-items:stretch;flex-direction:column}}
