.warehouse-inventory { color: #202124; }
.warehouse-inventory h3 { margin: 28px 0 16px; font-size: 22px; }
.warehouse-inventory h4 { margin: 12px 0; font-size: 20px; overflow-wrap: anywhere; }
.warehouse-inventory h2 { overflow-wrap: anywhere; }
.wi-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.wi-creation { max-width: 640px; }
.wi-creation .wi-form-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 24px 0; }
.warehouse-inventory p-table { display: block; margin: 24px 0; }
.wi-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.wi-form-grid > *, .wi-scan > *, .wi-import > *, .wi-filters > * { min-width: 0; }
.wi-quantity-stepper { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: end; gap: 8px; min-width: 0; }
.wi-quantity-stepper p-button { width: 56px; min-height: 54px; }
.wi-quantity-stepper p-text-field-wrapper { min-width: 0; }
.warehouse-inventory label { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.warehouse-inventory [data-wi-tabs] { display: block; min-width: 0; }
.wi-tab-content { padding-top: 24px; min-width: 0; }
.wi-tab-content > h3:first-child { margin-top: 0; }
.wi-filters p-select-wrapper { flex: 0 1 190px; }
.warehouse-inventory .wi-checkbox { flex-direction: row; align-items: center; min-height: 48px; }
.wi-checkbox input { width: 20px; height: 20px; flex-shrink: 0; }
.wi-stats, .wi-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 20px 0; }
.wi-stats { padding: 16px 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.wi-import, .wi-filters { display: flex; align-items: flex-end; gap: 16px; margin: 20px 0; }
.wi-scan { display: grid; grid-template-columns: minmax(0, 1fr) 54px; align-items: end; gap: 8px; margin: 20px 0; }
.wi-scan-submit { width: 54px; height: 54px; }
.wi-scan p-text-field-wrapper, .wi-import p-text-field-wrapper, .wi-filters p-text-field-wrapper { flex: 1; }
.wi-import .wi-file-field { flex: 1; }
.wi-file-field input { min-height: 48px; width: 100%; font: inherit; box-sizing: border-box; padding: 8px; border: 1px solid #767676; border-radius: 4px; }
.wi-file-field input::file-selector-button { padding: 8px; margin-right: 8px; background: #f3f4f5; color: #202124; border: 1px solid #767676; border-radius: 4px; cursor: pointer; }
.wi-file-field input:disabled { background: #f3f4f5; color: #767676; cursor: not-allowed; }
.wi-file-field input:disabled::file-selector-button { color: #767676; border-color: #bbb; cursor: not-allowed; }
.wi-feedback { min-height: 28px; margin: 12px 0; color: #186b43; overflow-wrap: anywhere; }
.wi-notice { padding: 12px 16px; background: #edf5ef; border-left: 3px solid #287a4c; margin: 16px 0; overflow-wrap: anywhere; }
.wi-error { color: #b11928; }
.wi-notice.wi-error { background: #fff0f0; border-color: #b11928; }
.wi-table-scroll { overflow-x: auto; margin: 20px 0; }
.wi-table { border-collapse: collapse; width: 100%; font-size: 16px; }
.wi-table th, .wi-table td { padding: 12px 10px; border-bottom: 1px solid #ddd; text-align: left; vertical-align: middle; }
.wi-table th { background: #f3f4f5; font-size: 14px; white-space: nowrap; }
.wi-table td:first-child { overflow-wrap: anywhere; min-width: 140px; }
.wi-ref-button { background: transparent; border: 0; color: #0065a9; cursor: pointer; font: inherit; padding: 6px 0; text-align: left; overflow-wrap: anywhere; }
.wi-ref-button:hover { text-decoration: underline; }
.wi-detail > .pds-grid > .pds-grid__basic > p:first-child { margin: 0 0 8px; }
.wi-context h2 { font-size: 20px; line-height: 26px; margin: 0; }
.wi-context p { font-size: 12px; line-height: 18px; margin: 2px 0 0; }
.wi-detail .wi-stats { border: 0; padding: 0; margin: 8px 0; gap: 12px; font-size: 12px; line-height: 18px; }
.wi-pointage { padding-top: 10px; max-width: 480px; }
.wi-sync { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 26px; padding: 2px 8px; box-sizing: border-box; background: #e3fcec; color: #186b43; border-radius: 4px; font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.wi-sync.wi-pending { background: #fff4d6; color: #735500; }
.wi-sync.wi-error { background: #fff0f0; color: #b11928; }
.wi-sync p-button { flex-shrink: 0; }
.wi-pointage .wi-scan { margin: 8px 0; }
.wi-pointage .wi-feedback { min-height: 0; margin: 8px 0; font-size: 14px; }
.wi-pointage .wi-feedback:empty { display: none; }
.wi-part { background: #e4e4e7; padding: 8px 12px; border-radius: 4px; text-align: center; }
.wi-part h4 { margin: 0; font-size: 18px; line-height: 24px; }
.wi-part p { margin: 2px 0 0; font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
.wi-editor .wi-form-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 8px 0 0; }
.wi-editor .wi-quantity-stepper input { text-align: center; }
.wi-save-row { display: grid; grid-template-columns: minmax(0, 1fr) 54px; align-items: end; gap: 8px; min-width: 0; }
.wi-save-row > * { min-width: 0; }
.wi-editor-save { width: 54px; height: 54px; }
.warehouse-inventory [hidden] { display: none !important; }
@media (max-width: 640px) {
    .wi-form-grid { grid-template-columns: minmax(0, 1fr); }
    .wi-import, .wi-filters { flex-direction: column; align-items: stretch; }
    .wi-import p-text-field-wrapper, .wi-filters p-text-field-wrapper { width: 100%; }
    .wi-filters p-select-wrapper { flex: none; width: 100%; }
    .wi-stats { gap: 12px; font-size: 14px; }
    .wi-table th, .wi-table td { padding: 10px 8px; }
}
