.sc-lines table{min-width:1080px}.sc-lines th:first-child{width:23%}.sc-lines th:nth-child(2){width:16%}.sc-lines select{font:inherit;font-size:13px}.sc-lines .so-item-cell small{white-space:normal}.sc-source-tools{display:flex;gap:12px;align-items:center;margin-bottom:8px}.sc-source-tools small{color:var(--muted)}.so-header-fields .sc-conditions{grid-column:1/-1}.sc-conditions textarea{min-height:54px;max-height:120px;resize:vertical;background:var(--bg-soft);color:var(--text);border:1px solid var(--line);border-radius:7px;padding:8px;font:inherit}.sc-source-picker{width:min(1150px,96vw)}.sc-source-scroll{max-height:52dvh;overflow:auto;margin:12px 0}.sc-source-scroll table{border-collapse:collapse;width:100%;min-width:900px}.sc-source-scroll :is(th,td){padding:10px 8px;text-align:start;border-bottom:1px solid var(--line);font:inherit;font-size:13px;vertical-align:top}.sc-source-scroll small{display:block;color:var(--muted);margin-top:5px}.sc-source-scroll td input:not([type="checkbox"]){width:90px}.sc-source-scroll th{position:sticky;top:0;background:var(--panel-strong)}.sc-source-picker footer{display:flex;gap:10px;justify-content:flex-end}.sc-source-picker input{color:var(--text);background:var(--bg-soft);border:1px solid var(--line);border-radius:6px;padding:7px}.sc-source-picker input[type="checkbox"]{width:18px;height:18px}
@media(max-width:1100px){.sc-lines table{min-width:0}.sc-lines td:has(select){grid-column:span 2}}@media(max-width:780px){.sc-source-tools{align-items:flex-start;flex-direction:column}}

.inventory-item-form .inv-commitments{grid-column:1/-1;grid-row:5}

@media(min-width:1101px){
 .sc-lines table{min-width:0}
 .sc-lines :is(th,td){padding:6px 4px}
 .sc-lines th:first-child{width:22%}
 .sc-lines th:nth-child(2){width:8%}
 .sc-lines th:nth-child(3){width:16%}
 .sc-lines th:nth-child(4){width:8%}
 .sc-lines th:nth-child(5){width:8%}
 .sc-lines th:nth-child(6){width:11%}
 .sc-lines th:nth-child(7){width:8%}
 .sc-lines th:nth-child(8){width:13%}
 .sc-lines th:last-child{width:40px}
}
.inv-commitment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.inv-commitment-grid>div{display:grid;gap:4px;border-inline-start:2px solid var(--cyan);padding-inline-start:8px;min-width:0}.inv-commitment-grid span{font-size:12px;color:var(--muted)}.inv-commitment-grid output{font-size:16px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
@media(max-width:1100px){.sc-lines table{min-width:0}.sc-lines th:first-child,.sc-lines th:nth-child(2){width:auto}.inventory-item-form .inv-commitments{grid-column:1;grid-row:auto}}
@media(max-width:650px){.inv-commitment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sc-source-tools{align-items:stretch;flex-direction:column}}

/* Keep the complete Item editor visible on shorter desktop screens. */
@media(min-width:1101px) and (max-height:820px){
 .inventory-page--items .inventory-item-form{gap:6px}
 .inventory-item-form .inv-field-grid{gap:6px 10px}
 .inventory-item-form .inv-field-grid :is(input,select){min-height:32px;height:32px;padding:4px 8px}
 .inventory-item-form .inv-section{padding:8px 10px}
 .inventory-item-form .inv-section-note{margin-top:5px}
 .inventory-item-form .inv-section--image{grid-column:1;grid-row:4}
 .inventory-item-form .inv-commitments{grid-column:2;grid-row:4}
 .inventory-item-form .inv-commitment-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
}
