@charset "UTF-8";
/* Product basics and its first intake share a compact, theme-aware form. */
#product-dialog {--initial-stock-muted:var(--theme-ui-muted);}
:root[data-theme="red"] #product-dialog {--initial-stock-muted:var(--theme-dense-text);}
#product-dialog .modal-header {padding:18px 22px 15px;}
#product-dialog .modal-body {padding:18px 22px;}
#product-dialog .modal-footer {padding:13px 22px;}
#product-dialog .form-grid {min-width:0;gap:12px 14px;}
#product-dialog .field {min-width:0;font-size:11px;gap:5px;}
#product-dialog .field input,#product-dialog .field select,#product-dialog .field textarea {width:100%;min-width:0;max-width:100%;min-height:36px;padding:8px 10px;font-size:12px;}
#product-dialog .field textarea {min-height:54px;line-height:1.7;}
#product-dialog .field small {font-size:9px;line-height:1.7;}
#product-dialog .form-grid>.field:has(>#field-name),
#product-dialog .form-grid>.field:has(>#field-min) {grid-column:auto;}
#product-dialog .image-editor {margin-top:8px;margin-bottom:14px;}
#product-dialog .upload-zone {height:82px;min-height:82px;}
.product-basics-heading {display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 12px;}
.product-basics-heading h3 {margin:0;color:var(--theme-ui-text);font-size:13px;font-weight:600;line-height:1.7;}
.product-basics-heading p {margin:0;color:var(--initial-stock-muted);font-size:10px;line-height:1.8;}
#product-initial-intake.initial-stock-panel {grid-column:1/-1;min-width:0;margin:0;padding:13px;border:1px solid var(--theme-ui-border);border-radius:13px;color:var(--theme-ui-text);background:var(--theme-ui-raised);}
.initial-stock-heading {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;min-width:0;margin:0 0 11px;}
.initial-stock-heading h3 {margin:0;color:var(--theme-ui-text);font-size:13px;font-weight:600;line-height:1.7;}
.initial-stock-heading p {margin:0;color:var(--initial-stock-muted);font-size:10px;line-height:1.8;overflow-wrap:anywhere;}
#product-dialog .initial-stock-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 13px;min-width:0;}
#product-dialog .initial-stock-grid>.field {min-width:0;margin:0;color:var(--theme-dense-text);}
#product-dialog .initial-stock-grid>.field>.optional {top:1px;left:58px;max-width:calc(100% - 58px);font-size:9px;line-height:1.6;}
#product-dialog .initial-stock-grid>.field>.required {left:42px;}
.initial-stock-note {margin:11px 0 0;padding:8px 10px;color:var(--theme-dense-text);background:var(--theme-ui-panel);border:1px solid var(--theme-ui-border);border-radius:8px;font-size:10px;line-height:1.8;overflow-wrap:anywhere;}
.initial-stock-edit-note {grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;min-width:0;margin:0;padding:11px 12px;color:var(--initial-stock-muted);background:var(--theme-ui-raised);border:1px solid var(--theme-ui-border);border-radius:11px;}
.initial-stock-edit-note p {flex:1 1 260px;min-width:0;margin:0;font-size:10px;line-height:1.9;overflow-wrap:anywhere;}
.initial-stock-edit-note>.button {flex-shrink:0;min-height:29px;padding:6px 9px;font-size:10px;}

/* Five named columns keep business operations separate from records and details. */
#inventory-view .inventory-table {width:100%;min-width:0;max-width:100%;table-layout:fixed;}
#inventory-view .inventory-table th.product-col {width:30.75%;}
#inventory-view .inventory-table th.location-col {width:20.25%;}
#inventory-view .inventory-table th.warning-col {width:14%;}
#inventory-view .inventory-table th.actions-col {width:22%;}
#inventory-view .inventory-table th.records-col {width:13%;}
#inventory-view .inventory-table td {vertical-align:middle;}
#inventory-view .inventory-table .product-cell {min-width:0;gap:12px;align-items:center;}
#inventory-view .inventory-table .product-text {min-width:0;max-width:100%;}
#inventory-view .inventory-table .product-name {font-size:13px;font-weight:600;line-height:1.65;overflow-wrap:anywhere;}
#inventory-view .inventory-table .product-text .sku {max-width:100%;font-size:10px;line-height:1.65;white-space:normal;overflow-wrap:anywhere;}
#inventory-view .inventory-table .thumbnail {width:72px;height:78px;min-width:72px;max-width:72px;flex:0 0 72px;}
#inventory-view .inventory-table .thumbnail img {object-fit:contain!important;filter:none!important;}
#inventory-view .inventory-table .product-notes {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;max-width:100%;margin-top:7px;overflow:hidden;color:var(--theme-dense-text);font-size:10px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;}

/* The stock card always puts warehouse + company above each component. */
.inventory-stock-distribution {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:6px;min-width:0;max-width:100%;}
.inventory-stock-distribution .inventory-stock-total,
.inventory-stock-distribution .warehouse-stock-secondary {display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:4px;min-width:0;max-width:100%;margin:0;padding:8px 9px;border:1px solid var(--theme-ui-border);border-radius:9px;color:var(--theme-ui-text);background:var(--theme-ui-panel);}
.inventory-stock-distribution .inventory-stock-total {background:var(--theme-ui-raised);}
.inventory-stock-distribution .inventory-stock-total>span,
.inventory-stock-distribution .warehouse-stock-secondary>span {color:var(--theme-dense-text);font-size:10px;line-height:1.6;overflow-wrap:anywhere;}
.inventory-stock-distribution .inventory-stock-total>strong {display:block;max-width:100%;margin:0;color:var(--theme-ui-text);font-size:24px;font-weight:650;line-height:1.15;letter-spacing:-.35px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
.inventory-stock-distribution .inventory-stock-total>small {display:block;max-width:100%;color:var(--theme-dense-text);font-size:8px;line-height:1.6;letter-spacing:0;overflow-wrap:anywhere;}
.inventory-stock-distribution .warehouse-stock-secondary>strong {display:block;max-width:100%;color:var(--theme-ui-text);font-size:16px;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
.inventory-stock-distribution .inventory-stock-split {display:contents;}
.inventory-stock-distribution .inventory-stock-split>span {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:3px 7px;min-width:0;max-width:100%;margin:0;padding:6px 8px;border:1px solid var(--theme-ui-border);border-radius:8px;color:var(--theme-dense-text);background:var(--theme-ui-panel);font-size:11px;line-height:1.7;overflow-wrap:anywhere;}
.inventory-stock-distribution .inventory-stock-split>span>b {max-width:100%;color:inherit;font-size:12px;font-weight:600;line-height:1.7;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
#inventory-view .inventory-table .inventory-unit-label {display:block;margin:0 0 8px;color:var(--theme-dense-text);font-size:10px;line-height:1.8;}
#inventory-view .inventory-table .inventory-unit-label b {font-size:12px;}
#inventory-view .inventory-table .minimum-label {font-size:10px;line-height:1.8;}
#inventory-view .inventory-table .minimum-label b {font-size:12px;}

/* Ordinary controls share size and paint across the two operations columns. */
#inventory-view .inventory-table .wh-product-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:6px;min-width:0;max-width:100%;}
#inventory-view .inventory-table :is(.wh-product-actions,.inventory-records-actions)>button {appearance:none;display:inline-flex;align-items:center;justify-content:center;grid-column:auto;gap:4px;min-width:0;min-height:30px;margin:0;padding:6px 7px;color:var(--theme-dense-text);background:var(--theme-ui-panel);border:1px solid var(--theme-ui-border);border-radius:8px;font:inherit;font-size:10px;font-weight:500;line-height:1.6;text-align:center;white-space:normal;overflow-wrap:anywhere;}
#inventory-view .inventory-table :is(.wh-product-actions,.inventory-records-actions)>button:hover:not(:disabled) {color:var(--theme-ui-text);background:var(--theme-ui-raised);border-color:var(--theme-ui-accent);}
#inventory-view .inventory-table :is(.wh-product-actions,.inventory-records-actions)>button:focus-visible {outline:2px solid var(--theme-ui-accent);outline-offset:2px;}
#inventory-view .inventory-table .inventory-row-tools {display:flex;justify-content:flex-end;align-items:center;min-width:0;margin-top:7px;gap:6px;}
#inventory-view .inventory-table .inventory-row-tools .row-actions {margin-left:auto;gap:4px;}
#inventory-view .inventory-table .inventory-row-tools:not(:has(button)) {margin-top:0;}
#inventory-view .inventory-table .inventory-row-tools .icon-button {width:27px;height:27px;}
[data-density="compact"] .inventory-stock-distribution {gap:5px;}
[data-density="compact"] .inventory-stock-distribution .inventory-stock-total,
[data-density="compact"] .inventory-stock-distribution .warehouse-stock-secondary {padding:6px 8px;}
[data-density="compact"] .inventory-stock-distribution .inventory-stock-split>span {padding:5px 7px;}
[data-density="compact"] #inventory-view .inventory-table .thumbnail {width:54px;height:60px;min-width:54px;max-width:54px;flex-basis:54px;}

@media(max-width:760px) {
 #inventory-view .inventory-table {display:block;table-layout:auto;}
 #inventory-view .inventory-table td[data-label="库存分布"],
 #inventory-view .inventory-table td[data-label="规格与预警"] {grid-column:1/-1;}
 #inventory-view .inventory-table .product-cell {gap:12px;}
 #inventory-view .inventory-table .thumbnail {width:68px;height:74px;min-width:68px;max-width:68px;flex-basis:68px;}
 #inventory-view .inventory-table .wh-product-actions {grid-template-columns:repeat(2,minmax(0,1fr));}
 #inventory-view .inventory-table :is(.wh-product-actions,.inventory-records-actions)>button {padding:7px 4px;font-size:10px;}
 #inventory-view .inventory-table .inventory-unit-label,
 #inventory-view .inventory-table .warning-details {display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:5px 8px;margin:0 12px 0 0;}
 #inventory-view .inventory-table .minimum-label {margin:0;}
}
@media(max-width:560px) {
 #product-dialog .modal-header {padding:17px 17px 14px;}
 #product-dialog .modal-body {padding:16px 17px;}
 #product-dialog .modal-footer {padding:12px 17px;}
 #product-dialog .form-grid,#product-dialog .initial-stock-grid {grid-template-columns:minmax(0,1fr);gap:11px;}
 #product-initial-intake.initial-stock-panel {padding:12px;}
 .initial-stock-heading {gap:4px;}
 .initial-stock-edit-note p {flex-basis:100%;}
 #product-dialog .field input,#product-dialog .field select {min-height:38px;}
}

/* Replace the old footer-style total's inherited dimming in the new stock cards. */
.inventory-stock-distribution .inventory-stock-total {opacity:1;filter:none;}
.inventory-stock-distribution .inventory-stock-total>strong {opacity:1;filter:none;color:var(--theme-ui-text);font-weight:700;}
.inventory-stock-distribution .warehouse-stock-secondary {justify-content:flex-start;gap:8px;}

/* One primary total above three equal inventory components. */
.inventory-stock-distribution {grid-template-columns:repeat(3,minmax(0,1fr));}
.inventory-stock-distribution .inventory-stock-total {grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;row-gap:3px;opacity:1;filter:none;}
.inventory-stock-distribution .inventory-stock-total>span {grid-column:1;grid-row:1;}
.inventory-stock-distribution .inventory-stock-total>strong {grid-column:2;grid-row:1/3;align-self:center;font-size:24px;}
.inventory-stock-distribution .inventory-stock-total>small {grid-column:1;grid-row:2;}
.inventory-stock-distribution .warehouse-stock-secondary,
.inventory-stock-distribution .inventory-stock-split>span {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap;gap:3px;min-height:54px;padding:6px 7px;border-radius:8px;font-size:10px;line-height:1.6;}
.inventory-stock-distribution .warehouse-stock-secondary>span {font-size:10px;line-height:1.6;}
.inventory-stock-distribution .warehouse-stock-secondary>strong,
.inventory-stock-distribution .inventory-stock-split>span>b {color:var(--theme-ui-text);font-size:16px;font-weight:600;line-height:1.4;}
[data-density="compact"] .inventory-stock-distribution .warehouse-stock-secondary,
[data-density="compact"] .inventory-stock-distribution .inventory-stock-split>span {padding:6px 7px;}

/* Records and product details have their own narrow column, with ordinary buttons. */
#inventory-view .inventory-table .inventory-records-actions {display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr;gap:6px;min-width:0;max-width:100%;}
@media(max-width:760px) {
 #inventory-view .inventory-table td[data-label="库存操作"],
 #inventory-view .inventory-table td.inventory-records-cell {grid-column:1/-1;}
}

/* Center all inventory figures without offsets or absolute positioning. */
.inventory-stock-distribution .inventory-stock-total {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:5px 8px;text-align:center;opacity:1;filter:none;}
.inventory-stock-distribution .inventory-stock-total>span {font-size:10px;line-height:1.4;}
.inventory-stock-distribution .inventory-stock-total>strong {font-size:24px;line-height:1.1;text-align:center;}
.inventory-stock-distribution .inventory-stock-total>small {font-size:8px;line-height:1.4;text-align:center;}
.inventory-stock-distribution .warehouse-stock-secondary,
.inventory-stock-distribution .inventory-stock-split>span {align-items:center;justify-content:center;gap:2px;min-height:48px;padding:5px 7px;text-align:center;font-size:10px;line-height:1.4;}
.inventory-stock-distribution .warehouse-stock-secondary>span {font-size:10px;line-height:1.4;text-align:center;}
.inventory-stock-distribution .warehouse-stock-secondary>strong,
.inventory-stock-distribution .inventory-stock-split>span>b {font-size:16px;line-height:1.25;text-align:center;}

/* Restore the familiar soft theme fills while keeping both control columns ordinary. */
#inventory-view {--inventory-action-fill:rgb(var(--paint-surface-f5eddb));--inventory-action-highlight:rgb(var(--paint-surface-f0e1bc));--inventory-action-hover:rgb(var(--paint-surface-f4ebd8));--inventory-action-line:var(--theme-ui-border);}
:root[data-theme="blue"] #inventory-view {--inventory-action-fill:#EFF5FF;--inventory-action-highlight:#E0EBFF;--inventory-action-hover:#E6EFFF;--inventory-action-line:#C8D9F5;}
#inventory-view .inventory-table :is(.wh-product-actions,.inventory-records-actions)>button {background-image:none;background-color:var(--inventory-action-fill);border-color:var(--inventory-action-line);}
#inventory-view .inventory-table .wh-product-actions>.wh-primary {background-color:var(--inventory-action-highlight);border-color:var(--inventory-action-line);}
#inventory-view .inventory-table :is(.wh-product-actions,.inventory-records-actions)>button:hover:not(:disabled) {background-color:var(--inventory-action-hover);border-color:var(--theme-ui-accent);}

/* Product-specific pending orders, isolated from the warehouse action form. */
.wh-pending-dialog.modal {
 --pending-order-muted:var(--theme-ui-muted);--pending-order-error-bg:#FFF0E9;
 width:min(740px,calc(100vw - 38px));max-width:740px;min-width:0;max-height:calc(100dvh - 38px);padding:0;
 color:var(--theme-ui-text);background:var(--theme-ui-panel);border-color:var(--theme-ui-border);border-radius:20px;box-shadow:var(--theme-ui-shadow);
}
:root[data-theme="red"] .wh-pending-dialog {--pending-order-muted:var(--theme-dense-text);}
:root[data-theme="blackgold"] .wh-pending-dialog {--pending-order-error-bg:#352221;}
.wh-pending-dialog .modal-header {align-items:flex-start;gap:10px;padding:22px 24px 18px;color:var(--theme-ui-text);background:var(--theme-ui-panel);border-color:var(--theme-ui-border);}
.wh-pending-dialog .modal-header>div:first-child {flex:1;min-width:0;}
.wh-pending-dialog .modal-header h2 {margin:3px 0 0;color:var(--theme-ui-text);font-size:21px;font-weight:650;line-height:1.45;}
.wh-pending-dialog .modal-header .eyebrow {color:var(--theme-ui-accent);font-size:9px;letter-spacing:1.8px;}
.wh-pending-dialog .modal-header>.icon-button {color:var(--theme-ui-muted);background:var(--theme-ui-raised);border-color:var(--theme-ui-border);}
.wh-pending-caption {max-width:100%;margin:7px 0 0;color:var(--pending-order-muted);font-size:11px;line-height:1.8;overflow-wrap:anywhere;}
.wh-pending-dialog .modal-body {min-width:0;padding:18px 24px 22px;background:var(--theme-ui-panel);}
.wh-pending-status {display:flex;align-items:center;gap:8px;min-width:0;margin:0 0 13px;padding:10px 12px;color:var(--pending-order-muted);background:var(--theme-ui-raised);border:1px solid var(--theme-ui-border);border-radius:10px;font-size:11px;line-height:1.9;overflow-wrap:anywhere;}
.wh-pending-status[data-state="loading"]::before {content:"";display:block;width:12px;height:12px;flex:0 0 12px;border:2px solid var(--theme-ui-border);border-top-color:var(--theme-ui-accent);border-radius:50%;animation:pending-order-spin .9s linear infinite;}
.wh-pending-status[data-state="error"],.wh-pending-dialog .form-error {color:var(--theme-ui-error);background:var(--pending-order-error-bg);border-color:var(--theme-ui-error);}
.wh-pending-status[data-state="empty"] {border-style:dashed;}
.wh-pending-dialog .form-error {font-size:10px;line-height:1.9;overflow-wrap:anywhere;}
.wh-pending-list {display:grid;gap:12px;min-width:0;max-width:100%;margin:0;}
.wh-pending-order {min-width:0;max-width:100%;margin:0;padding:14px 15px;color:var(--theme-ui-text);background:var(--theme-ui-raised);border:1px solid var(--theme-ui-border);border-radius:12px;}
.wh-pending-order>header {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;min-width:0;}
.wh-pending-order>header>strong {min-width:0;max-width:100%;color:var(--theme-ui-text);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;font-weight:600;line-height:1.8;overflow-wrap:anywhere;}
.wh-pending-order>header>span {color:var(--theme-dense-text);font-size:10px;line-height:1.8;}
.wh-pending-tracking {min-width:0;max-width:100%;margin:5px 0 0;color:var(--pending-order-muted);font-size:10px;line-height:1.9;overflow-wrap:anywhere;}
.wh-pending-quantities {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-width:0;margin-top:11px;padding-top:11px;border-top:1px solid var(--theme-ui-border);}
.wh-pending-quantities>span {display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;text-align:center;}
.wh-pending-quantities small {color:var(--pending-order-muted);font-size:10px;line-height:1.8;overflow-wrap:anywhere;}
.wh-pending-quantities b {max-width:100%;color:var(--theme-ui-text);font-size:16px;font-weight:600;line-height:1.5;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
.wh-pending-actions {display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px;min-width:0;margin-top:13px;}
.wh-pending-actions>.button {min-height:31px;padding:7px 10px;font-size:10px;line-height:1.6;}
.wh-pending-dialog .modal-footer {display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:15px 24px;color:var(--theme-ui-muted);background:var(--theme-ui-raised);border-color:var(--theme-ui-border);}
.wh-pending-dialog .modal-footer>.button {min-height:33px;padding:7px 12px;font-size:11px;}
@keyframes pending-order-spin {to {transform:rotate(360deg);}}
@media(max-width:600px) {
 .wh-pending-dialog.modal {width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:16px;}
 .wh-pending-dialog .modal-header {padding:18px 17px 16px;}
 .wh-pending-dialog .modal-header h2 {font-size:19px;}
 .wh-pending-dialog .modal-body {padding:16px 17px 18px;}
 .wh-pending-order {padding:12px;}
 .wh-pending-order>header>strong {font-size:11px;}
 .wh-pending-quantities {gap:7px;}
 .wh-pending-quantities small {font-size:9px;}
 .wh-pending-dialog .modal-footer {padding:13px 17px;}
}
@media(prefers-reduced-motion:reduce) {.wh-pending-status[data-state="loading"]::before {animation:none;}}
.inventory-stock-distribution .warehouse-stock-secondary>strong,
.inventory-stock-distribution .inventory-stock-split>span>b {margin:0;}

/* Preserve centered 16px component figures within the narrower stock column. */
#inventory-view .inventory-stock-distribution .warehouse-stock-secondary,
#inventory-view .inventory-stock-distribution .inventory-stock-split>span {padding-left:4px;padding-right:4px;}

/* Current filtered totals cover every matching product, independent of pagination. */
.inventory-filter-summary {
 display:grid;grid-template-columns:108px minmax(0,1fr);align-items:center;
 min-width:0;max-width:100%;margin:0 20px 16px;padding:10px 12px;
 color:var(--theme-ui-text);background:var(--theme-ui-raised);
 border:1px solid var(--theme-ui-border);border-radius:12px;
}
.inventory-filter-summary-heading {display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:2px 5px;min-width:0;padding-right:12px;border-right:1px solid var(--theme-ui-border);text-align:center;}
.inventory-filter-summary-heading>span {flex-basis:auto;color:var(--theme-dense-text);font-size:10px;line-height:1.6;}
.inventory-filter-summary-heading>strong {max-width:100%;color:var(--theme-ui-text);font-size:16px;font-weight:600;line-height:1.5;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
.inventory-filter-summary-heading>small {color:var(--theme-dense-text);font-size:9px;line-height:1.7;}
.inventory-filter-summary-heading>.inventory-filter-summary-note {flex-basis:100%;margin-top:3px;color:var(--theme-ui-error);font-size:8px;line-height:1.6;overflow-wrap:anywhere;}
.inventory-filter-summary-values {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;min-width:0;max-width:100%;}
.inventory-filter-summary-stat {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;padding:2px 10px;border-left:1px solid var(--theme-ui-border);text-align:center;}
.inventory-filter-summary-stat:first-child {border-left:0;}
.inventory-filter-summary-stat>span {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:1px 4px;min-width:0;max-width:100%;color:var(--theme-dense-text);font-size:10px;line-height:1.6;overflow-wrap:anywhere;}
.inventory-filter-summary-stat small {color:var(--theme-dense-text);font-size:8px;line-height:1.5;}
.inventory-filter-summary-stat>strong {max-width:100%;margin:0;color:var(--theme-ui-text);font-size:18px;font-weight:600;line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
.inventory-filter-summary-stat:first-child>strong {font-size:22px;font-weight:700;line-height:1.15;}
@media(max-width:600px) {
 .inventory-filter-summary {grid-template-columns:minmax(0,1fr);gap:8px;margin:0 13px 13px;padding:10px;}
 .inventory-filter-summary-heading {justify-content:center;gap:2px 5px;padding:0;border-right:0;}
 .inventory-filter-summary-heading>span {flex-basis:auto;}
 .inventory-filter-summary-heading>strong {font-size:14px;}
 .inventory-filter-summary-heading>.inventory-filter-summary-note {flex-basis:auto;margin-top:0;margin-left:5px;}
 .inventory-filter-summary-values {padding-top:8px;border-top:1px solid var(--theme-ui-border);}
 .inventory-filter-summary-stat {padding:0 4px;}
 .inventory-filter-summary-stat>strong {font-size:16px;}
 .inventory-filter-summary-stat:first-child>strong {font-size:20px;}
}

/* A normal arrival button sits above two compact product tools. */
#inventory-view .inventory-table .product-edit-actions {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;min-width:0;max-width:100%;}
#inventory-view .inventory-table .product-edit-actions>.icon-button {box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:27px;min-width:27px;max-width:27px;height:27px;flex:0 0 27px;margin:0;padding:5px;border:1px solid var(--theme-ui-border);border-radius:7px;color:var(--theme-dense-text);background:var(--inventory-action-fill);line-height:1;cursor:pointer;}
#inventory-view .inventory-table .product-edit-actions>.icon-button>.icon {width:14px;height:14px;flex:0 0 14px;color:inherit;stroke-width:1.7;}
#inventory-view .inventory-table .product-edit-actions>.icon-button:hover:not(:disabled) {color:var(--theme-ui-text);background:var(--inventory-action-hover);border-color:var(--theme-ui-accent);}
#inventory-view .inventory-table .product-edit-actions>.delete-button {color:var(--theme-ui-error);}
#inventory-view .inventory-table .product-edit-actions>.delete-button:hover:not(:disabled) {color:var(--theme-ui-error);border-color:var(--theme-ui-error);}
#inventory-view .inventory-table .product-edit-actions>.icon-button:focus-visible {outline:2px solid var(--theme-ui-accent);outline-offset:2px;}
#inventory-view .inventory-table .product-edit-actions>.icon-button:disabled,
#inventory-view .inventory-table .product-edit-actions>.icon-button[aria-disabled="true"] {color:var(--theme-ui-muted);background:var(--theme-ui-raised);border-color:var(--theme-ui-border);opacity:.38;cursor:not-allowed;}
