.inventory-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0}.inventory-counts>div{padding:12px;border:1px solid var(--line);border-radius:8px}.inventory-counts strong,.inventory-counts small{display:block}.inventory-counts strong{font-size:22px}.inventory-search{display:grid;gap:6px;margin:12px 0;max-width:520px}.inventory-row{padding:12px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.inventory-row>small{display:block}.inventory-row p{margin:6px 0}.inventory-row .signature-actions{flex-wrap:wrap}.inventory-shortage{color:#ae4926;font-weight:700}.inventory-dialog{width:min(820px,95vw);max-height:90vh;padding:20px;color:var(--ink);background:var(--surface,#f1f2eb);border:1px solid var(--line);border-radius:12px;overflow:auto}.inventory-dialog::backdrop{background:#0008}.inventory-dialog :is(input,select,textarea){min-width:0;max-width:100%}.inventory-dialog .feature-form>p{margin:0}.inventory-picker{min-width:0;border:1px solid var(--line);border-radius:8px;padding:10px}.inventory-picker-list{max-height:320px;overflow:auto}.inventory-pick-line{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}.inventory-pick-line[hidden]{display:none}.inventory-pick-line label{min-width:0;overflow-wrap:anywhere}.inventory-pick-line .check-label{display:flex;align-items:center}.inventory-pick-line .check-label input{width:auto}.inventory-dialog .check-label{display:flex;align-items:center;gap:8px}.inventory-dialog .check-label input{width:auto}:root[data-theme=dark] .inventory-dialog{background:#192f3a;color:#e4eeee}:root[data-theme=dark] .inventory-shortage{color:#ffbd9c}@media(max-width:650px){.inventory-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-dialog{padding:12px}.inventory-dialog .feature-form{grid-template-columns:minmax(0,1fr)}.inventory-pick-line{grid-template-columns:minmax(0,1fr) 90px}#view-inventory .signature-actions{flex-wrap:wrap}#view-inventory button{white-space:normal}}
.inventory-table-wrap{max-width:100%;max-height:64vh;overflow:auto;border:1px solid var(--line);overscroll-behavior-y:auto;overscroll-behavior-x:contain;margin:8px 0}
.inventory-table{border-collapse:separate;border-spacing:0;min-width:100%;width:max-content;table-layout:auto;font-size:12px;line-height:1.25}
.inventory-table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#view-inventory .inventory-table :is(th,td){padding:5px 8px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);white-space:nowrap;text-align:left;vertical-align:middle;max-width:280px;overflow:hidden;text-overflow:ellipsis;height:32px}
#view-inventory .inventory-table thead th{position:sticky;top:0;z-index:3;background:#dce7df;color:#24433e;font-size:11px;font-weight:800;letter-spacing:.02em;text-transform:uppercase}
#view-inventory .inventory-table tbody th{font-weight:650;position:sticky;left:0;z-index:1;background:#eaf0e7;max-width:250px}
#view-inventory .inventory-table tbody td{background:#f1f3ed}
#view-inventory .inventory-table tbody tr:nth-child(even) td{background:#e8eee7}
#view-inventory .inventory-table tbody tr:hover :is(th,td){background:#dbe9df}
#view-inventory .inventory-table .inventory-number{text-align:right;font-variant-numeric:tabular-nums}
#view-inventory .inventory-table button,#view-inventory .inventory-row-actions{min-height:26px;height:26px;padding:3px 8px;margin:0;font-size:11px;line-height:1.2;white-space:nowrap;border-radius:3px}
#view-inventory .inventory-row-actions{width:156px;max-width:156px;background:var(--surface);color:var(--ink)}
.inventory-cell-actions{display:flex;gap:4px;align-items:center}
#view-inventory #inventory-tabs{display:flex;flex-wrap:wrap;gap:4px;margin:8px 0}
#view-inventory :is(#inventory-actions,#inventory-tabs)>button{min-height:30px;padding:5px 10px;font-size:12px;border-radius:4px}
#view-inventory #inventory-actions{gap:5px;margin:8px 0}
#view-inventory .inventory-counts{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
#view-inventory .inventory-counts>div{display:flex;gap:8px;align-items:center;padding:5px 9px;border-radius:3px}
#view-inventory .inventory-counts strong{font-size:14px}
#view-inventory .inventory-counts small{font-size:11px}
#view-inventory .inventory-search{gap:3px;margin:8px 0;font-size:12px;max-width:420px}
#view-inventory .inventory-search input{min-height:34px;height:34px;padding:5px 9px}
#view-inventory .inventory-picker-list .inventory-table-wrap{max-height:300px;margin:0}
#view-inventory .inventory-table .inventory-pick-line{display:table-row}
#view-inventory .inventory-table .inventory-pick-line[hidden]{display:none}
#view-inventory .inventory-table .inventory-pick-line :is(label,input){font-size:12px}
#view-inventory .inventory-table .inventory-pick-line input[type=number]{min-height:28px;height:28px;width:90px;padding:3px 6px}
#view-inventory .inventory-table .inventory-pick-line label:has(input[type=number]){display:flex;align-items:center;gap:8px}
#view-inventory .inventory-table .inventory-pick-line label{margin:0;gap:6px}
#view-inventory .inventory-table .inventory-pick-line td:first-child label{white-space:normal;min-width:180px;max-width:450px}
:root[data-theme=dark] #view-inventory .inventory-table thead th{background:#29414b;color:#dbece8}
:root[data-theme=dark] #view-inventory .inventory-table tbody th{background:#1b323e}
:root[data-theme=dark] #view-inventory .inventory-table tbody td{background:#192f3a}
:root[data-theme=dark] #view-inventory .inventory-table tbody tr:nth-child(even) td{background:#203844}
:root[data-theme=dark] #view-inventory .inventory-table tbody tr:hover :is(th,td){background:#2b4953}
@media(max-width:650px){#view-inventory .inventory-table :is(th,td){height:36px}#view-inventory .inventory-table button,#view-inventory .inventory-row-actions{min-height:30px;height:30px}#view-inventory .inventory-table .inventory-pick-line input[type=number]{font-size:16px}#view-inventory .inventory-table-wrap{max-height:65vh}}
.inventory-cell-editor{position:absolute;inset:0;z-index:5;display:flex;background:var(--surface)}
#view-inventory .inventory-cell-editor :is(input,select){width:100%;height:100%;min-height:0;min-width:0;max-width:none;padding:3px 6px;border:2px solid #168577;border-radius:0;font-size:12px;line-height:1.2;background:var(--surface);color:var(--ink)}
#view-inventory .inventory-table .inventory-value{display:block;width:100%;height:100%;min-height:22px;max-width:100%;padding:0;background:transparent;border:0;border-radius:0;color:inherit;font:inherit;text-align:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:none}
#view-inventory .inventory-table .inventory-value[hidden]{display:none}
#view-inventory .inventory-table .inventory-value:hover{outline:1px solid #7ab6a3;outline-offset:2px}
#view-inventory .inventory-table td{position:relative}
#view-inventory .inventory-catalog-table tbody th{width:42px;min-width:42px;text-align:right;font-variant-numeric:tabular-nums}
#view-inventory .inventory-catalog-table tbody td:nth-child(2){position:sticky;left:42px;z-index:2;font-weight:650;background:#eaf0e7;min-width:180px}
#view-inventory .inventory-catalog-table :is(th,td):nth-child(n+11):nth-child(-n+15){text-align:right;font-variant-numeric:tabular-nums}
#view-inventory .inventory-catalog-table :is(th,td):nth-child(n+3):nth-child(-n+8){min-width:112px}
#view-inventory .inventory-catalog-table td:nth-child(9){min-width:120px}
#view-inventory .inventory-catalog-table.inventory-can-manage :is(th,td):last-child{position:sticky;right:0;z-index:2;border-left:1px solid var(--line)}
#view-inventory .inventory-catalog-table.inventory-can-manage thead th:last-child{z-index:4}
#view-inventory #inventory-adjustment-tools{max-width:520px}
:root[data-theme=dark] #view-inventory .inventory-catalog-table tbody td:nth-child(2){background:#1b323e}
@media(max-width:650px){#view-inventory .inventory-cell-editor :is(input,select){font-size:16px}#view-inventory .inventory-catalog-table tbody td:nth-child(2){position:relative;left:auto}}
#view-inventory [hidden]{display:none!important}
#view-inventory #inventory-tabs>button,#view-inventory #inventory-actions>button{width:auto;flex:0 0 auto}
.inventory-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
#view-inventory .inventory-filters>.inventory-search{flex:1 1 230px;margin:6px 0}
