/* Inventory design tokens. Modern semantic roles come first; compatibility values preserve existing screens. */
:root {
    --inventory-button-disabled-text: #687787;
    --inventory-button-disabled-border: #d7e0e8;
    --inventory-button-disabled-surface: #f5f7f9;
    --inventory-button-danger-hover-text: #851b1b;
    --inventory-button-danger-hover-surface: #fff1f1;
    --inventory-button-danger-border: #cdaaaa;
    --inventory-button-danger-text: #a02525;
    --inventory-button-hover-surface: #eaf2fa;
    --inventory-button-border: #a9bed4;
    --inventory-action: #134889;
    --inventory-action-hover: #103c73;
    --inventory-text: #17384c;
    --inventory-text-muted: #526779;
    --inventory-border: #cfdee7;
    --inventory-canvas: #f3f7fa;
    --inventory-surface: #ffffff;
    --inventory-field-border: #aebfcb;
    --inventory-table-heading: #e8effa;
    --inventory-table-stripe: #f5f9fc;
    --inventory-table-hover: #edf4fa;
    --inventory-selection: #bfdef7;
    --inventory-scrollbar-thumb: #91aec3;
    --inventory-scrollbar-track: #edf3f7;
    --inventory-error-surface: #fff0ed;
    --inventory-error-text: #8b281c;
    --inventory-error-border: #b75c4a;
    --inventory-success-surface: #e9f6ed;
    --inventory-success-text: #176635;
    --inventory-warning-surface: #fff3e4;
    --inventory-warning-text: #93480c;
    --inventory-surface-muted: #edf4f7;
    --inventory-action-bright: #087dc1;
    --inventory-action-bright-hover: #06669e;
    --inventory-text-secondary: #607684;
    --inventory-border-soft: #d5e1e8;
    --inventory-surface-soft: #f3f8fb;
    --inventory-table-heading-text: #355466;
    --inventory-control-border: #aebfc9;
    --inventory-error-strong: #a12c19;
    --inventory-surface-hover: #f8fbfd;
    --inventory-heading: #12364c;
    --inventory-badge-surface: #e7f2f8;
    --inventory-badge-text: #27566f;
    --inventory-helper-text: #526c7b;
    --inventory-custody-muted: #536775;
    --inventory-custody-text: #294b5e;
    --inventory-custody-warning: #8c4418;
    --inventory-custody-row-hover: #f5f9fb;
    --inventory-print-border: #ccd9e0;
    --inventory-print-muted: #617783;
    --inventory-operations-border: #d6e2e9;
    --inventory-operations-field-border: #adc0cb;
    --inventory-option-hover: #e8f3fa;
    --inventory-option-scrollbar: #bdced8;
    --inventory-selected-surface: #cce8f7;
    --inventory-checkin-hover: #edf7fc;
    --inventory-checkin-disabled: #f4f6f8;
    --inventory-checkin-selected-border: #a9cfe3;
    --inventory-checkout-selected-border: #c8e1ef;
    --inventory-checkout-selected-surface: #e8f3f9;
    --inventory-checkout-selected-text: #285a73;
    --inventory-checkout-job-surface: #eef0fa;
    --inventory-checkout-job-text: #48588b;
    --inventory-checkout-job-border: #d7dced;
    --inventory-checkout-disabled-border: #e5edf1;
    --inventory-checkout-error-border: #f0c7bd;
    --inventory-checkout-focus-surface: #d7eefa;
    --inventory-destructive-action: #b53520;
    --inventory-overview-muted: #526b7b;
    --inventory-overview-warning: #8a3d09;
    --inventory-navigation-text: #36566a;
    --inventory-navigation-border: #bccfdb;
    --inventory-navigation-hover: #e4eef6;
    --inventory-danger-surface: #fff1ed;
    --inventory-danger-border: #c64b32;
    --inventory-danger-text: #8e321f;
    --inventory-success-border: #b9ddc4;
    --inventory-operations-error-border: #edc4bc;
    --inventory-operations-selected-border: #c5dce9;
    --inventory-operations-card-surface: #f9fbfc;
    --inventory-operations-disabled-surface: #f7fafc;
    --inventory-operations-warning: #a34227;
    --inventory-purchase-muted: #59677b;
    --inventory-purchase-field-border: #adc1d9;
    --inventory-purchase-danger-text: #9d2424;
    --inventory-purchase-danger-surface: #fff0f0;
    --inventory-purchase-warning-surface: #fff4d6;
    --inventory-purchase-warning-text: #805300;
    --inventory-purchase-success-surface: #edf7f0;
    --inventory-purchase-success-text: #22643b;
    --inventory-inactive-surface: #f0f2f3;
    --inventory-inactive-text: #657681;
    --inventory-toolbar-surface: #e7f3fa;
    --inventory-toolbar-border: #9ec9df;
    --inventory-sort-indicator: #78909e;
    --inventory-audit-control-border: #aabac4;
    --inventory-audit-secondary: #405d6d;
    --inventory-history-action-hover: #0b366c;
    --inventory-history-text: #203b50;
    --inventory-history-border: #d4dfe7;
    --inventory-history-placeholder: #607382;
    --inventory-history-selection: #c7dff4;
    --inventory-history-selection-text: #12365c;
    --inventory-history-filter-text: #465e72;
    --inventory-history-filter-border: #e3edf6;
    --inventory-history-filter-active: #dfeefa;
    --inventory-history-filter-active-border: #b5cee2;
    --inventory-history-filter-active-text: #124c7d;
    --inventory-history-summary-label: #355c7b;
    --inventory-history-table-heading: #fafcfd;
    --inventory-history-row-hover: #f1f7fc;
    --inventory-history-shadow: #00000044;
    --inventory-history-backdrop: #0f26347a;
    --inventory-history-error-border: #edc1b7;
    --inventory-legacy-required: #ffffcc;
    --inventory-legacy-disabled: #eeeeee;
    --inventory-legacy-surface: #f4f4f4;
    --inventory-legacy-muted: #777777;
    --inventory-legacy-heading: #31516f;
    --inventory-legacy-link: #1b89f4;
    --inventory-legacy-neutral-border: #c1c1c1;
    --inventory-legacy-panel-border: #91b9d8;
    --inventory-legacy-table-border: #4c7db1;
    --inventory-legacy-panel-surface: #c6ebff;
    --inventory-legacy-table-heading: #8bd3ff;
    --inventory-legacy-title: #015289;
    --inventory-legacy-divider: #487aae;
    --inventory-legacy-cancel: #f37c7c;
    --inventory-legacy-accent: #3eb1ff;
    --inventory-legacy-text: #013c63;
    --inventory-legacy-red: #ff0000;
    --inventory-autocomplete-shadow: rgba(23,56,76,.18);
    --inventory-focus-shadow: rgba(8,125,193,.13);
    --inventory-dialog-shadow: rgba(19,51,70,.27);
    --inventory-dialog-backdrop: rgba(15,38,52,.48);
    --inventory-operations-focus-shadow: rgba(8,125,193,.12);
    --inventory-toolbar-shadow: rgba(23,56,76,.2);

    /* Shared spacing primitives, including legacy layout compatibility sizes. */
    --inventory-space-1: 1px;
    --inventory-space-2: 2px;
    --inventory-space-3: 3px;
    --inventory-space-4: 4px;
    --inventory-space-5: 5px;
    --inventory-space-6: 6px;
    --inventory-space-7: 7px;
    --inventory-space-8: 8px;
    --inventory-space-9: 9px;
    --inventory-space-10: 10px;
    --inventory-space-11: 11px;
    --inventory-space-12: 12px;
    --inventory-space-13: 13px;
    --inventory-space-14: 14px;
    --inventory-space-15: 15px;
    --inventory-space-16: 16px;
    --inventory-space-18: 18px;
    --inventory-space-20: 20px;
    --inventory-space-22: 22px;
    --inventory-space-24: 24px;
    --inventory-space-25: 25px;
    --inventory-space-26: 26px;
    --inventory-space-28: 28px;
    --inventory-space-30: 30px;
    --inventory-space-32: 32px;
    --inventory-space-40: 40px;
    --inventory-space-46: 46px;
    --inventory-space-48: 48px;
    --inventory-space-50: 50px;
    --inventory-space-52: 52px;
    --inventory-space-65: 65px;
    --inventory-space-100: 100px;
    --inventory-space-180: 180px;

    --inventory-label-gap: var(--inventory-space-6);
    --inventory-action-gap: var(--inventory-space-8);
    --inventory-gap: var(--inventory-space-16);
    --inventory-dialog-padding: var(--inventory-space-20);
    --inventory-section-gap: var(--inventory-space-24);
}

/* Shared buttons keep their defaults elsewhere; inventory consumes this palette. */
.inventory-interface, .inventory-nav {
    --sf-button-border: var(--inventory-button-border);
    --sf-button-surface: var(--inventory-surface);
    --sf-button-color: var(--inventory-action);
    --sf-button-hover-surface: var(--inventory-button-hover-surface);
    --sf-button-primary-hover: var(--inventory-action-hover);
    --sf-button-danger-color: var(--inventory-button-danger-text);
    --sf-button-danger-border: var(--inventory-button-danger-border);
    --sf-button-danger-hover-surface: var(--inventory-button-danger-hover-surface);
    --sf-button-danger-hover-color: var(--inventory-button-danger-hover-text);
    --sf-button-disabled-surface: var(--inventory-button-disabled-surface);
    --sf-button-disabled-border: var(--inventory-button-disabled-border);
    --sf-button-disabled-color: var(--inventory-button-disabled-text);
    --sf-button-gap: var(--inventory-space-7);
    --sf-button-padding: var(--inventory-space-7) var(--inventory-space-13);
    --sf-button-icon-padding: var(--inventory-space-7);
    --sf-button-group-gap: var(--inventory-action-gap);
    --sf-button-group-padding: var(--inventory-space-8) 0;
    --sf-button-focus-offset: var(--inventory-space-3);
}
