.material-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.material-toolbar h2{margin-right:auto}.material-form fieldset{border:1px solid #d6e5e2;border-radius:8px;padding:16px;margin:0 0 16px;background:#f5fbf9}.material-form legend{font-weight:700;color:#18787d}.material-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 22px}.material-form label{display:flex;flex-direction:column;gap:6px}.material-form input,.material-form select{min-width:0;width:100%}.material-form small{display:block;line-height:1.65;color:#64748b}.material-result{padding:12px;background:#e5f4e8;border-radius:6px;line-height:1.7}.material-form [hidden]{display:none!important}.material-form input[readonly]{background:#edf1f5}.receipt-scroll{overflow:auto;max-height:430px;margin:14px 0}.receipt-table{min-width:1020px}.receipt-table td:first-child{min-width:220px;max-width:270px}.receipt-table td:nth-child(2){min-width:125px}.receipt-table input{min-width:70px}.receipt-table input[type=checkbox]{min-width:16px;width:16px}.receipt-table td:nth-child(6){min-width:165px}.receipt-table td:nth-child(7){min-width:75px}.receipt-table select{width:230px}.receipt-table label{display:flex;flex-direction:row;align-items:center;white-space:nowrap}.inbound-drop{border:2px dashed #82acd7;border-radius:10px;background:#f0f7ff;padding:25px;line-height:2}.inbound-drop img{display:block;max-width:100%;max-height:190px;margin:10px auto}.inbound-drop img[hidden]{display:none}#inbound-text{width:100%;min-height:150px;margin-top:16px}.material-stock .catalog-table-scroll{max-height:calc(100vh - 360px)}.catalog-edit-cell{position:sticky;left:0;background:#fff;z-index:1}.material-form details{margin-top:15px}.material-form pre{white-space:pre-wrap}.material-grid[hidden]{display:none}

.material-form label{align-items:stretch;text-align:left}.modal:has(#receipt-form){width:1320px;max-width:calc(100vw - 48px)}.modal:has(#material-form){width:1060px;max-width:calc(100vw - 48px)}
.receipt-table button{white-space:nowrap}.receipt-table td:last-child{min-width:82px}
.receipt-product-picker{display:block;position:relative;width:230px;max-width:100%}.receipt-product-picker .store-combobox{width:100%}.receipt-product-picker .store-combobox input{width:100%;max-width:none}.receipt-product-picker .store-options{z-index:60;text-align:left}
.price-correction-panel{display:grid;gap:18px;max-width:1120px;padding:20px;border:1px solid #cce3df;border-radius:10px;background:#f6fbfa}.price-correction-panel>p{margin:0;color:#475569;line-height:1.7}.price-correction-product-label{display:grid;grid-template-columns:150px minmax(0,620px);align-items:start;gap:14px;font-weight:650}.price-correction-product-picker{position:relative;width:100%}.price-correction-product-picker .store-combobox{width:100%}.price-correction-product-picker .store-combobox input{width:100%;max-width:none}.price-correction-product-picker .store-options{z-index:60;text-align:left}.price-correction-record{display:grid;gap:16px;max-width:950px}.price-correction-record>label{display:flex;flex-direction:column;gap:6px}.price-correction-record>label select{max-width:780px}.price-correction-record small{color:#64748b;line-height:1.6}.price-correction-values input[readonly]{background:#edf1f5}.price-correction-record .material-correction-reason{display:flex;flex-direction:column;gap:7px;max-width:800px}.price-correction-record textarea{width:100%;min-height:82px;resize:vertical}.price-correction-record .material-result{margin:0;line-height:1.8}.price-correction-record button{justify-self:start}.price-correction-empty{padding:18px;border-radius:8px;background:#f1f5f9;color:#64748b}.price-correction-record details{max-width:900px}
.modal.editor:has(#material-form){width:min(1760px,94vw);max-width:none;height:93vh;max-height:93vh}
.modal.editor:has(#material-form) .modal-body{display:flex;flex:1;min-height:0;overflow:hidden;padding:12px 20px}
.modal.editor #material-form{display:flex;flex:1;min-height:0;flex-direction:column;gap:10px;overflow:auto}
.modal.editor:has(#catalog-store-form) .modal-body{display:block;flex:1;min-height:0;overflow:auto}
.modal:has(#receipt-price-correction-form){width:min(1280px,calc(100vw - 48px))}
#receipt-price-correction-form .receipt-scroll{max-height:52vh}
#receipt-price-correction-form .receipt-table{min-width:850px}
#receipt-price-correction-form .receipt-table input{min-width:110px}
.material-correction-reason{display:flex;flex-direction:column;gap:7px}
.material-correction-reason textarea{min-height:80px;resize:vertical}
.receipt-correction-history{max-height:180px;overflow:auto;margin-top:14px}
.receipt-correction-history article{padding:8px 0;border-bottom:1px solid #e6ebf1}
.receipt-correction-history p{margin:4px 0}
.receipt-correction-history ul{margin:4px 0;padding-left:22px}

/* Receipt review: compact metadata and reserve the dialog height for more editable rows. */
.modal:has(#receipt-form){width:calc(100vw - 32px);max-width:calc(100vw - 32px);height:94vh;max-height:94vh}
.modal:has(#receipt-form) .modal-body{display:flex;flex:1;min-height:0;overflow:hidden;padding:10px 16px;line-height:1.35}
#receipt-form{display:flex;flex:1;min-height:0;flex-direction:column;gap:5px;overflow:hidden}
#receipt-form .receipt-meta-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 12px;flex:none}
#receipt-form .receipt-meta-grid label{gap:3px;line-height:1.2}
#receipt-form .receipt-meta-grid input,#receipt-form .receipt-meta-grid select{min-height:42px}
#receipt-form>p{margin:2px 0;line-height:1.25}
#receipt-form .receipt-scroll{flex:1;min-height:90px;max-height:none;margin:3px 0}
#receipt-form .receipt-table th,#receipt-form .receipt-table td{padding:4px 6px;line-height:1.25}
#receipt-form .receipt-table td:first-child{min-width:320px;max-width:380px}
#receipt-form .receipt-product-picker{width:100%;max-width:none}
#receipt-form .receipt-table input:not([type=checkbox]){min-height:40px;padding:6px 8px}
#receipt-form .receipt-table small{line-height:1.2;margin-top:2px}
#receipt-form .receipt-specification{display:block;line-height:1.25;color:#536b84;overflow-wrap:anywhere}
#receipt-form>details[open]{max-height:150px;overflow:auto;flex:none}
@media(max-width:900px){#receipt-form .receipt-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.receipt-product-picker .tall-picker-options,.price-correction-product-picker .tall-picker-options{position:fixed;right:auto;z-index:10000}
@media(max-width:700px){.price-correction-panel{padding:14px}.price-correction-product-label{grid-template-columns:1fr;gap:6px}.price-correction-values{grid-template-columns:1fr}}
.catalog-row-actions{display:grid;gap:5px}.catalog-action-row{display:flex;gap:5px;white-space:nowrap}.catalog-row-actions button{padding:5px 9px}.catalog-table-scroll th.catalog-edit-cell{z-index:3}.catalog-recipe-actions{display:flex;gap:6px;margin-top:6px}.catalog-recipe-table{min-width:760px;width:100%;table-layout:fixed}.catalog-recipe-table th:first-child{width:40%}.catalog-recipe-table th:nth-child(2){width:17%}.catalog-recipe-table th:nth-child(3){width:17%}.catalog-recipe-table th:nth-child(4){width:10%}.catalog-recipe-table input{width:100%;min-width:0}.catalog-recipe-table td{white-space:normal}.catalog-recipe-table .store-combobox{width:100%}
.catalog-bulk-panel{flex:none;padding:12px 14px;border:1px solid #d5e4f3;border-radius:8px;background:#f3f8ff;margin-bottom:12px}.material-form .catalog-bulk-toggle{display:flex;flex-direction:row;align-items:center;gap:8px;font-weight:700;color:#234c79}.material-form .catalog-bulk-toggle input,.material-form input.catalog-bulk-field{width:17px;min-width:17px;height:17px;min-height:17px;margin:0;vertical-align:middle;accent-color:#087ff5}.material-form input.catalog-bulk-field{margin-right:8px}.catalog-bulk-panel p{margin:8px 0;line-height:1.6;color:#536b84}.catalog-bulk-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.catalog-bulk-filters>label:first-child{flex:1;min-width:220px}.catalog-bulk-filters>label:nth-child(2){min-width:130px}.catalog-bulk-condition{display:grid;grid-template-columns:minmax(140px,1fr) 100px minmax(160px,2fr) auto;gap:10px;margin-top:10px}.catalog-bulk-results{max-height:210px;overflow:auto;margin-top:8px}.catalog-bulk-results table{width:100%;min-width:0}.catalog-bulk-results th{position:sticky;top:0;background:#f3f8ff;z-index:1}.catalog-bulk-results td{white-space:normal;overflow-wrap:anywhere}.catalog-bulk-panel details{margin-top:12px}.catalog-bulk-panel summary{cursor:pointer;font-weight:650}.catalog-bulk-pages{display:flex;align-items:center;justify-content:end;gap:10px;margin-top:8px}.catalog-bulk-summary{position:sticky;bottom:0;flex:none;z-index:4;padding:10px 14px;margin:8px 0 0;background:#e7f2ff;border:1px solid #c4ddf6;border-radius:6px;line-height:1.6}.modal.editor:has(#catalog-recipe-form) .modal-body{display:block;flex:1;min-height:0;overflow:auto}.catalog-inline-editor:has(.catalog-bulk-active){width:100%}@media(max-width:700px){.catalog-bulk-condition{grid-template-columns:1fr 100px}.catalog-bulk-pages{justify-content:start;flex-wrap:wrap}.catalog-bulk-active .material-grid,.catalog-bulk-active.material-grid{grid-template-columns:1fr}}
.catalog-bulk-field-container{position:relative}.catalog-bulk-field-container>.catalog-bulk-field{position:absolute;left:0;top:2px;z-index:1}.catalog-bulk-active .catalog-bulk-field-caption{padding-left:25px}

.catalog-bulk-filters{display:grid;grid-template-columns:minmax(240px,2fr) minmax(180px,1fr) auto;align-items:start}.catalog-bulk-picker{min-width:0;display:flex;flex-direction:column;gap:6px}.catalog-bulk-filter-actions{display:flex;gap:10px;padding-top:27px}.catalog-bulk-condition{grid-template-columns:minmax(160px,1fr) minmax(220px,3fr) auto;align-items:start}.catalog-bulk-condition>[data-bulk-value-picker]{min-width:0}.catalog-bulk-panel .store-combobox>input{padding-right:32px}.catalog-bulk-panel .tall-picker-options{position:fixed;right:auto;z-index:10000}.catalog-bulk-panel .store-dropdown-toggle{min-height:0;height:auto}.catalog-bulk-panel .store-tags{margin-top:5px}.catalog-bulk-panel .store-picker-selection{min-height:0}.catalog-bulk-panel .store-selection-details{margin-top:0}.catalog-bulk-panel .store-selected-list{right:auto;left:0}.catalog-bulk-panel .store-option small{display:inline;margin-left:auto}.catalog-bulk-panel .store-option-check{flex:none}.catalog-bulk-panel .store-options .store-option{font-size:14px}.catalog-bulk-panel .store-tags button,.catalog-bulk-panel .picker-search-tag button{min-height:0;height:auto}.catalog-bulk-panel .store-combobox .picker-search-tag{top:21px;max-width:calc(100% - 65px)}@media(max-width:850px){.catalog-bulk-filters{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}.catalog-bulk-filter-actions{grid-column:1/-1;padding-top:0}.catalog-bulk-condition{grid-template-columns:140px minmax(0,1fr) auto}}@media(max-width:550px){.catalog-bulk-filters{grid-template-columns:minmax(0,1fr)}.catalog-bulk-condition{grid-template-columns:minmax(0,1fr) auto}.catalog-bulk-condition>select{grid-column:1/-1}}
.catalog-bulk-panel .store-dropdown-toggle{display:grid;place-items:center;padding:0;font-size:20px;line-height:1}
.receipt-editor-total{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border:1px solid #c6e6cb;border-radius:6px;background:#e5f4e8;color:#217b69}
.receipt-editor-total strong{font-size:21px}
.receipt-list-summary{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:8px;padding:12px;background:#e5f4e8;border:1px solid #c6e6cb;border-radius:7px;color:#217b69}
.receipt-list-summary small{display:block;margin-top:4px}.receipt-summary-amount{margin-left:auto}.receipt-summary-amount strong{font-size:20px}.receipt-report-actions{display:flex;flex-wrap:wrap;gap:6px}
.receipt-list-actions{min-width:120px}.receipt-list-actions button{display:block;margin:3px 0;white-space:nowrap}
.material-stock:has(#receipt-list-summary) .catalog-table-scroll{max-height:calc(100vh - 450px)}
@media(max-width:900px){.receipt-summary-amount{margin-left:0}.receipt-report-actions{width:100%}.receipt-editor-total{align-items:flex-start}.receipt-editor-total strong{font-size:17px}}
.material-stock #receipt-results td[data-receipt-cell="products"]{min-width:200px;max-width:340px;white-space:normal;overflow-wrap:anywhere}
.material-stock:has(#receipt-list-summary)>.catalog-table-scroll>.data-table{min-width:1050px}
.receipt-list-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.receipt-list-controls #receipt-header-settings{margin-left:auto}#receipt-headers button{border:0;background:transparent;color:inherit;font-weight:inherit;padding:0;white-space:nowrap}#receipt-headers button:hover{color:#7242b7}.material-stock:has(#receipt-query details[open])>.catalog-table-scroll{max-height:max(180px,calc(100vh - 690px))}

.receipt-page-heading{display:flex;align-items:baseline;gap:12px;min-width:0;flex:1 1 340px}.material-stock .receipt-page-heading h2{flex:none;white-space:nowrap;margin:0}.material-stock .receipt-page-heading p{margin:0;font-size:12px;line-height:1.5;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.material-stock>.panel-tabs{margin:12px 0}.material-stock>.material-toolbar{gap:8px}.material-stock>.material-toolbar>button{flex:none}
.receipt-list-actions{white-space:nowrap;min-width:0}
.receipt-list-actions button{display:inline-block;margin:0 4px 0 0;padding:5px 9px;white-space:nowrap}
.catalog-performance-grid{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 24px}.catalog-performance-grid>.catalog-performance-wide{grid-column:1/-1}
.recipe-params{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-end;margin-bottom:8px}
.recipe-params label{flex:1 1 240px;max-width:360px;display:flex;flex-direction:row;align-items:center;gap:10px;margin:0}
.recipe-params label>span{white-space:nowrap;color:#536b84}
.recipe-params input{flex:1;min-width:80px}
.recipe-note{font-size:11px;line-height:1.6;white-space:nowrap;overflow-x:auto;margin:0 0 10px;color:#7e8ca1}
.catalog-recipe-table td{vertical-align:middle}
.catalog-recipe-table td[data-recipe-unit]{line-height:1.4;white-space:nowrap}
.catalog-recipe-table th:first-child{width:30%}
.catalog-recipe-table th:nth-child(2){width:9%}
.catalog-recipe-table th:nth-child(3){width:17%}
.catalog-recipe-table th:nth-child(4){width:14%}
.catalog-recipe-table th:nth-child(5){width:10%}
.catalog-recipe-table th:nth-child(6){width:auto}
@media(max-width:700px){.recipe-note{white-space:normal;overflow:visible}.recipe-params label{max-width:none}}
.modal.editor:has(#catalog-recipe-form){max-width:96vw;max-height:94vh}
.modal.editor:has(#catalog-recipe-form) .modal-body{display:flex;flex-direction:column;overflow:hidden}
#catalog-recipe-form{display:flex;flex-direction:column;min-height:0;height:100%}
.recipe-table-scroll{flex:1;min-height:240px;max-height:none;overflow:auto}
.catalog-recipe-table thead th{position:sticky;top:0;z-index:2;background:#eff4fb;box-shadow:inset 0 -1px 0 #e8eef5}
.catalog-recipe-table th:first-child{width:24%}
.catalog-recipe-table th:nth-child(2){width:7%}
.catalog-recipe-table th:nth-child(3){width:12%}
.catalog-recipe-table th:nth-child(4){width:10%}
.catalog-recipe-table th:nth-child(5){width:9%}
.catalog-recipe-table th:nth-child(6){width:10%}
.catalog-recipe-table th:nth-child(7){width:11%}
.catalog-recipe-table th:nth-child(8){width:8%}
.catalog-recipe-table th:nth-child(9){width:auto}
.recipe-totals{margin-right:auto;display:flex;gap:22px;align-items:center;font-size:13px;color:#536b84;flex-wrap:wrap}
.recipe-totals strong{color:#26395a;font-weight:700}
.recipe-head{display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px;margin-bottom:10px}
.recipe-head>label{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;white-space:nowrap;flex:none}
.recipe-head>label>span{white-space:nowrap;color:#536b84}
.recipe-head input{flex:none;width:4em;min-width:4em;max-width:4em}
.recipe-note{flex:1 1 300px;min-width:200px;white-space:normal;overflow:visible;font-size:11px;line-height:1.6;margin:0;color:#7e8ca1}
.recipe-head #catalog-recipe-add{flex:none;margin-left:auto}
.recipe-head input{width:6em;min-width:6em;max-width:6em}
.recipe-head #catalog-recipe-add{margin-left:0;order:-1}
.catalog-recipe-table{margin-top:0}
.recipe-table-scroll{margin:0;padding-top:0}
.recipe-table-scroll>.catalog-recipe-table{margin-top:0}