.central-purchase{padding:16px;font-size:14px;line-height:1.45;color:#1e3a32}
.central-purchase h2{font-size:24px;line-height:1.3;margin:0 0 6px}
.central-purchase h3{font-size:17px;line-height:1.4;margin:0 0 10px}
.central-purchase p{font-size:14px;line-height:1.5;margin:8px 0}
.central-purchase-heading{margin-bottom:16px}
.central-purchase-heading p{margin:0;color:#596f66}
.central-purchase-heading,.central-purchase aside>header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.central-purchase-grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px;align-items:start}
.central-purchase fieldset{border:0;padding:0;margin:0;min-width:0}
.central-purchase-grid>div{min-width:0}
.central-purchase-fields{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
.central-purchase label{display:grid;gap:5px;flex:1 1 170px;min-width:0;font-size:14px;line-height:1.4}
.central-purchase input,.central-purchase select,.central-purchase textarea{box-sizing:border-box;min-height:36px;width:100%;min-width:0;font:inherit;line-height:1.4;border:1px solid #c8d9d0;border-radius:6px;padding:7px 9px;background:#fff;color:inherit}
.central-purchase button{font:inherit;line-height:1.4;min-height:36px;border:1px solid #bbd0c5;border-radius:6px;padding:7px 11px;background:#f4f9f6;color:#1e4f3e;cursor:pointer}
.central-purchase button:disabled{opacity:.5;cursor:default}
.central-purchase .primary{background:#236348;color:white}
.central-purchase-add,.central-purchase-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:end;margin:12px 0}
.central-purchase-table{overflow:auto;margin:12px 0}
.central-purchase table{width:100%;min-width:600px;border-collapse:collapse;text-align:left}
.central-purchase td,.central-purchase th{padding:8px;border-bottom:1px solid #dce7e0}
.central-purchase td input{min-width:82px;max-width:130px}
.central-purchase td small{display:block;color:#596f66;margin-top:4px}
.central-purchase .central-purchase-total{text-align:right;font-size:15px}
.central-purchase-total strong{font-size:21px}
.central-purchase-message{padding:10px 12px;background:#edf6ef;border-radius:10px}
.central-purchase-record{display:grid;gap:4px;text-align:left;width:100%;margin-bottom:8px;overflow-wrap:anywhere}
.central-purchase .selected{border-color:#39775c;background:#e9f4ed}
.central-purchase aside{border-left:1px solid #dce7e0;padding-left:16px}
.central-purchase-progress{background:#f2f7f4;padding:12px;border-radius:8px;margin-top:12px}
@media(max-width:1000px){.central-purchase-grid{grid-template-columns:1fr}
.central-purchase aside{border-left:0;border-top:1px solid #dce7e0;padding:14px 0}
.central-purchase{padding:12px}
.central-purchase-heading{align-items:start;flex-wrap:wrap}
}

.central-source-entry{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;margin:8px 0 14px}
.central-source-entry span{font-size:12px;color:#596f66}
.central-source-picker{padding:12px;background:#f3f8f5;border:1px solid #bbd0c5;border-radius:8px;margin-bottom:14px}
.central-source-picker header{display:flex;justify-content:space-between;gap:12px;align-items:start}
.central-source-picker article{background:white;border:1px solid #d4e2da;border-radius:8px;padding:10px;margin:10px 0}
.central-purchase .central-source-check{display:flex;align-items:center;gap:8px;flex:1 1 auto}
.central-purchase .central-source-check input{width:18px;min-height:18px;height:18px;flex:0 0 18px;accent-color:#236348}
.central-source-check span{display:grid;gap:3px}
.central-source-check small,.central-source-item>small{display:block;color:#596f66;font-size:12px}
.central-source-item{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px solid #e0e9e3;margin:10px 0 0;padding:10px 0 0}
.central-source-item>label:not(.central-source-check){flex:0 1 130px}
.central-source-item>small{flex-basis:100%}
.central-source-allocation{padding:8px;background:#f3f8f5;border-radius:8px;margin-top:6px;min-width:150px}
.central-source-allocation label{margin-top:6px;font-size:12px}
.central-source-allocation a{color:#236348;text-decoration:underline;overflow-wrap:anywhere}


.central-purchase textarea{min-height:64px;resize:vertical}
.central-purchase-fields>div{flex-basis:100%;font-size:12px}
.central-purchase aside>header h3{margin:0}
.central-purchase aside>header button{white-space:nowrap}
.central-purchase aside p{font-size:13px}
.central-purchase-table th{white-space:nowrap}


@media(min-width:1440px){.central-purchase-fields label{flex-basis:140px}
.central-purchase-fields label:first-child{flex-basis:160px}
.central-purchase-fields label:nth-of-type(2){flex-grow:1.25}
}

@media(max-width:600px){.central-purchase h2{font-size:21px}
.central-purchase-fields{gap:10px 8px}
.central-purchase-fields label{flex-basis:100%}
.central-purchase-add>label{flex-basis:100%}
.central-purchase-heading>button{width:100%}
.central-source-picker header{flex-wrap:wrap}
.central-source-check span{min-width:0;overflow-wrap:anywhere}
}

.central-purchase .central-purchase-supplier-code{flex:0 1 150px}.central-purchase .central-purchase-supplier-code input{background:#f3f7f4;color:#596f66}
@media(max-width:600px){.central-purchase .central-purchase-supplier-code{flex-basis:100%}}

.central-product-search{margin:12px 0;padding:12px;border:1px solid #dce7e0;border-radius:8px;background:#f8fbf9}.central-product-search>.central-purchase-add{margin:0 0 8px}.central-product-search .central-purchase-actions{margin:8px 0}.central-product-search .central-purchase-actions small{flex:1 1 220px;color:#596f66;font-size:12px}.central-product-code-entry{font-size:12px;color:#596f66;margin-top:8px}.central-product-code-entry summary{cursor:pointer}.central-product-code-entry .central-purchase-add{margin:8px 0 0}.central-product-search select{min-width:0;max-width:100%}

.central-product-search-hint{display:block;font-size:12px;color:#596f66}.central-product-candidates{margin-top:10px;border:1px solid #dce7e0;border-radius:6px;overflow:hidden;background:#fff}.central-product-candidates>header{padding:8px 10px;font-size:12px;color:#596f66;background:#f1f6f3}.central-purchase .central-product-candidate{display:flex;justify-content:space-between;gap:16px;width:100%;text-align:left;border:0;border-bottom:1px solid #e5ece7;border-radius:0;background:#fff;padding:10px 12px}.central-product-candidate>span{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}.central-product-candidate>span:last-child{text-align:right;flex:0 0 34%}.central-product-candidate small{font-size:12px;color:#596f66}.central-product-candidate:hover:enabled{background:#edf6ef}
@media(max-width:600px){.central-purchase .central-product-candidate{gap:8px;padding:9px}.central-product-candidate>span:last-child{flex-basis:38%}}

.central-supplier-results{width:100%;padding:8px 0}.central-supplier-results>small{display:block;color:#596f66;margin-bottom:6px}.central-purchase .central-supplier-candidate{display:flex;justify-content:space-between;gap:12px;width:100%;text-align:left;border-radius:0;background:white;border:0;border-bottom:1px solid #dce7e0}.central-supplier-candidate span{color:#596f66;font-size:12px;overflow-wrap:anywhere}.central-supplier-candidate:hover:enabled{background:#edf6ef}

.central-supplier-registry{padding:14px;border:1px solid #c8d9d0;background:#f5f9f6;border-radius:8px;margin:12px 0}.central-supplier-records{display:grid;gap:6px;max-height:240px;overflow:auto}.central-supplier-records button{text-align:left}
.central-bundle-preview{display:grid;gap:8px;padding:12px;border:1px solid #cbded5;border-radius:8px;background:#f6faf8}.central-bundle-preview label{max-width:220px}.central-bundle-preview p{margin:0;font-size:13px}.central-bundle-preview small{color:#60766b}
