.m-entry-intro{color:var(--muted,#706a77);margin:0 0 20px;line-height:1.7}
.m-entry-section{padding:22px 0;border-top:1px solid var(--line,#e8e7ea);min-width:0}
.m-entry-section:first-child{border-top:0;padding-top:0}
.m-entry-heading{display:flex;align-items:baseline;gap:12px;margin-bottom:17px}
.m-entry-heading>span{font-size:11px;letter-spacing:.14em;color:var(--accent,#81021f)}
.m-entry-heading h3{margin:0!important;font-weight:500;font-size:18px}
.m-entry-heading p{margin:0 0 0 auto;color:var(--muted,#706a77);font-size:13px}
.m-entry-basic{grid-template-columns:170px minmax(200px,1fr) minmax(180px,1fr)}
.m-material-picker{border:1px solid var(--line,#e8e7ea);padding:14px 16px;margin:12px 0 20px;min-width:0;background:#fff}
.m-picker-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:12px}
.m-picker-heading strong{font-weight:500}.m-picker-heading span{font-size:13px;color:var(--accent,#81021f);margin-left:auto}
.m-picker-filters{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-bottom:12px}
.m-picker-filters label{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted,#706a77)}
.m-picker-filters select{min-width:115px!important;max-width:190px;min-height:32px!important;height:32px;padding:3px 8px!important}
.m-picker-filters .m-picker-only{margin-left:auto;align-self:center;white-space:nowrap}
.m-material-picker .table-suite-scroll{height:248px!important;max-height:248px!important;min-height:160px}
.m-material-picker .table-suite-footer{padding:8px 0 0;font-size:12px}
.m-material-picker .table-suite-footer>span:last-child{display:none}
.m-material-picker .table-suite-main-tools{margin-bottom:8px!important}
.m-material-picker .table-suite-query .search-box{max-width:330px}
.m-material-picker .table-suite-query .search-box input{width:250px!important;max-width:100%;border:0!important;padding-left:7px!important}
.m-picker-row-selected{background:var(--accent-soft,#faf5f6)!important}
.m-picker-add{min-width:56px;text-align:center}.m-picker-add:disabled{color:var(--muted,#706a77);cursor:default}
.m-picker-feedback{min-height:20px;margin:10px 0 0;font-size:12px;color:var(--muted,#706a77);line-height:1.5}
.m-purchase-selected-empty{padding:26px;border:1px dashed var(--line,#e8e7ea);color:var(--muted,#706a77);text-align:center}
.m-purchase-linebar{display:flex;gap:16px;justify-content:space-between;align-items:center;margin:18px 0 8px}
.m-purchase-linebar h4{margin:0;font-size:15px;font-weight:500}
.m-purchase-fees{display:grid;grid-template-columns:minmax(140px,1fr) minmax(140px,1fr) minmax(220px,1.5fr);gap:20px;max-width:900px}
.m-purchase-totalbar{display:flex;align-items:baseline;justify-content:space-between;gap:20px;padding:16px 0;border-top:1px solid var(--line,#e8e7ea);margin-top:20px}
.m-purchase-totalbar strong{font-size:23px;font-weight:500;color:var(--accent,#81021f);font-variant-numeric:tabular-nums}
.m-purchase-totalbar .m-muted{max-width:72%}
.m-entry-section:has(> .m-purchase-optional) .m-entry-heading{display:none}
.m-purchase-optional{margin:0;border-top:0;padding:0}
.m-purchase-optional summary{color:var(--muted,#706a77);font-weight:500;font-size:13px;line-height:1.5}
.m-purchase-optional summary span{font-weight:400;margin-left:8px}
.m-purchase-optional[open] summary{color:var(--accent,#81021f);margin-bottom:18px}
.m-purchase-optional .m-fields{margin-top:14px}
.m-purchase-cost-hint{margin:6px 0 0;min-height:21px;color:var(--muted,#706a77);font-size:13px;line-height:1.6}
.m-purchase-cost-hint[data-invalid=true]{color:var(--accent,#81021f)}
.m-purchase-page .m-table input[type=number]{font-variant-numeric:tabular-nums;text-align:right}
.m-purchase-lines .table-suite-scroll{max-height:360px}
.m-receipt-toolbar{display:flex;gap:12px;align-items:center;margin:20px 0 12px}.m-receipt-toolbar .m-muted{margin-left:auto}
.m-receipt-exceptions{margin:16px 0}.m-receipt-exception{border:1px solid var(--line,#e8e7ea);padding:16px 18px;margin-top:10px}
.m-receipt-exception-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.m-receipt-exception-title h4{margin:0;font-size:15px;font-weight:500}
.m-receipt-exception .m-fields{grid-template-columns:1.3fr 1fr;gap:12px 20px}
.m-receipt-exception .m-switch{border:0;padding:5px 0}
.m-receipt-summary{padding:12px 0;color:var(--accent,#81021f);font-size:14px;line-height:1.7}
.m-receipt-summary:empty{display:none}
.m-entry-section [data-m-files]{margin-top:16px}
@media(max-width:1450px){.m-entry-basic{grid-template-columns:160px minmax(180px,1fr) minmax(180px,1fr)}.m-picker-filters{gap:9px}.m-picker-filters select{min-width:90px!important;max-width:145px}.m-picker-filters .m-picker-only{margin-left:0}}
.m-cart-quantity{display:flex;align-items:center;gap:5px}.m-cart-quantity input{width:90px;min-width:76px}.m-window-bulk{position:relative}.m-window-bulk summary{cursor:pointer;padding:7px}.m-purchase-status{display:flex;align-items:center;gap:8px;margin:10px 0}.m-purchase-status[hidden]{display:none}
[data-m-table-key="manual-stock-lines"]{min-width:1020px!important}[data-m-table-key="manual-stock-lines"] [data-stock-field="quantity"]{min-width:96px}[data-m-table-key="manual-stock-lines"] [data-stock-field="amount"]{min-width:120px}[data-m-purchase-lines] [data-key="quantity"]{min-width:96px}[data-m-purchase-lines] [data-key="goods_amount"]{min-width:120px}
.m-receipt-exception-floating{position:fixed;z-index:90;width:560px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow:auto;box-shadow:0 16px 50px #23181c33;background:var(--panel,#fff);border:1px solid var(--line,#ddd);border-radius:12px;padding:18px}.m-receipt-exception-floating[hidden]{display:none}[data-issue-shortages]:not(:empty){border-inline-start:3px solid var(--accent,#81021f);padding:8px 14px;margin:10px 0}[data-issue-shortages] ul{margin:7px 0}

.m-receipt-exception-row>td{white-space:normal!important;padding:0!important}.m-receipt-exception-row .m-receipt-exception{position:static;width:auto;max-width:none;max-height:none;margin:8px 12px;border-color:var(--border,#ded5db);box-shadow:none}.m-receipt-exception-row[hidden]{display:none!important}

[data-m-table-key="receipt.create-v015"],[data-m-table-key="refund.create-v015"],[data-m-table-key="supplier_return.create-v015"]{min-width:1050px!important}[data-m-table-key$="-v015"] input[name^="quantity-"]{min-width:96px}[data-m-table-key$="-v015"] input[name^="refund-"]{min-width:120px}

#drawer [data-m-table-key$="-v015"] td:has(>input[type=number]){padding-right:12px!important}


