.inventory-document-filters{display:flex;align-items:end;gap:16px;flex-wrap:wrap}.inventory-document-filters label{flex:1;min-width:180px}.inventory-document-filters input,.inventory-document-filters select{width:100%}.inventory-documents-table{min-width:880px}.inventory-document-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.inventory-document-status{display:inline-block;padding:5px 10px;border-radius:7px;font-weight:700}.inventory-document-status.created{background:#fff0cf;color:#765314}.inventory-document-status.applied{background:#c7f1e8;color:#145949}.inventory-document-history{margin-top:20px}.inventory-document-history summary{cursor:pointer;font-weight:700}.inventory-document-history .btn{margin:4px}.editor.inventory-document-editor{width:min(1220px,calc(100vw - 32px));max-width:1220px;padding:26px}.inventory-document-editor fieldset{border:0;margin:0;padding:0;min-width:0}.inventory-document-editor h2{margin-top:0}.inventory-document-editor textarea{min-height:65px}.inventory-document-add{display:grid;grid-template-columns:minmax(240px,1fr) 120px auto;gap:12px;align-items:end;margin:20px 0}.inventory-document-add label{min-width:0}.inventory-document-add input{width:100%}.inventory-document-lines-wrap{overflow:auto;max-height:48vh;min-height:200px;border:1px solid #d5e2ec;border-radius:10px}.inventory-document-lines{width:100%;min-width:890px}.inventory-document-lines thead{position:sticky;top:0;z-index:1}.inventory-document-lines th{background:#e8f1f8}.inventory-document-lines td{vertical-align:top;padding:12px}.inventory-document-lines td:nth-child(2){min-width:240px;width:29%}.inventory-document-lines td:nth-child(4){min-width:140px;max-width:200px}.inventory-document-lines td:nth-child(5){min-width:200px}.inventory-document-lines .inventory-document-quantity{width:95px;min-width:75px}.inventory-document-lines select{max-width:230px}.inventory-document-entry-fields{display:grid;gap:10px;padding-top:10px}.inventory-document-entry-fields input{width:100%}.inventory-document-shortage{color:#a33a16;font-weight:600}.inventory-document-footer{position:sticky;bottom:-26px;background:#fff;border-top:1px solid #dce5ed;padding:14px 0;margin-top:16px;z-index:2;flex-wrap:wrap}.inventory-document-footer .disabled{pointer-events:none;opacity:.5}.inventory-document-editor #inventory-document-save-note{margin-bottom:0}.inventory-document-editor fieldset:disabled input,.inventory-document-editor fieldset:disabled select{color:#38516a;opacity:1}.inventory-document-add[hidden]{display:none}
@media(max-width:700px){.editor.inventory-document-editor{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);padding:16px;margin:6px;border-radius:12px}.inventory-document-add{grid-template-columns:1fr 100px}.inventory-document-add>label:first-child{grid-column:1/-1}.inventory-document-add>button{grid-column:1;grid-row:2}.inventory-document-add>label:nth-child(2){grid-column:2;grid-row:2}.inventory-document-lines-wrap{max-height:55dvh;min-height:300px}.inventory-document-footer{bottom:-16px;gap:8px}.inventory-document-footer .btn{padding:10px 12px}.inventory-document-filters{align-items:stretch}.inventory-document-filters label{min-width:100%}}
