/* Add only the requested inventory controls to the existing compact UI. */
.hub-tabs{gap:9px;margin:10px 0 12px}
.hub-tabs>.btn{margin:0;display:flex;align-items:center;justify-content:center;gap:7px}
.hub-query-line{margin-top:9px}
.hub-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 5px;border-radius:20px;background:#d83741;color:#fff;font-size:13px;font-weight:800;line-height:1;vertical-align:middle}
.hub-badge[hidden]{display:none}
.hub-home-entry{position:relative}
.hub-home-entry>.hub-badge{position:absolute;right:10px;top:8px;box-shadow:0 0 0 2px var(--ui-surface,#fff)}
.hub-small{font-size:12px!important;min-height:32px!important;width:auto!important;padding:5px 9px!important;margin:4px 0!important}
.hub-products th[scope=row]{vertical-align:top}
.hub-products th[scope=row]>.hub-small{display:block}
.hub-products td{vertical-align:top}
.hub-scoped-value{margin-bottom:7px}
.hub-scoped-value>small{display:block;color:var(--ui-text-secondary);font-size:10px;white-space:normal}
.hub-scoped-value>span{display:block}
.hub-scoped-value .tag{white-space:normal}
.hub-actions{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.hub-actions>.btn{min-width:44px!important;width:auto;min-height:38px!important;padding:7px 8px!important;margin:0!important;font-size:13px!important}
.hub-warehouse-table td,.hub-warehouse-table th[scope=row]{vertical-align:top}
.hub-warehouse-table th[scope=row]>small{display:block;color:var(--ui-text-secondary);font-weight:400;margin-top:5px}
.hub-warehouse-table .stock-num{white-space:normal}
.hub-warehouse-table thead th:nth-child(2){padding-left:8px;padding-right:16px}
.hub-warehouse-table [data-hub-form] td{white-space:normal;overflow:visible}
.hub-inline-fields{display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:9px;margin-bottom:8px;position:sticky;left:10px;width:min(310px,calc(100vw - 92px));max-width:100%}
.hub-inline-fields>label{min-width:0;font-size:12px;color:var(--ui-text-secondary)}
.hub-inline-fields .input{width:100%;margin-top:5px;padding:9px;font-size:14px}
.hub-notice-row{display:flex;gap:8px;align-items:center;min-height:40px;border-bottom:1px solid var(--ui-line)}
.hub-notice-row:last-child{border-bottom:0}
.hub-notice-row>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.hub-notice-row>.btn{flex:none;margin:0!important}
.hub-import-actions{align-items:stretch}
.hub-import-actions>.btn{display:flex;align-items:center;justify-content:center;min-height:44px;margin:0;text-align:center;box-sizing:border-box;cursor:pointer}
.hub-refusals .row{margin-bottom:9px}

/* The sales picker hosts the same transfer form under its selected warehouse row. */
.hub-transfer-inline>td{white-space:normal;overflow:visible}
.hub-inline-content{position:sticky;left:10px;width:min(310px,calc(100vw - 92px));max-width:100%;padding:8px 0}
.hub-inline-content .hub-inline-fields{position:static;width:100%}
.hub-inline-content .hub-actions{margin-top:10px}

.move-bill-reference{overflow-wrap:anywhere;word-break:break-word}
