/* Purchase-order workspace and compact purchasing status in product lists. */
.owner-po-placement{font-size:14px;line-height:1.5;color:#285b3e;margin:0 0 16px}.owner-po-placement.unplaced{color:#7c622f}.owner-po-actions button:disabled{opacity:.7;cursor:default}.owner-po-line .owner-po-unavailable{justify-self:start;min-height:40px;padding:7px 12px;border:1px solid #dfbc8a;border-radius:8px;background:#fff8ec;color:#855019;font-size:13px;font-weight:600;cursor:pointer}.owner-po-line .owner-po-unavailable:disabled{opacity:.6;cursor:wait}.owner-product-purchasing{display:grid;gap:5px;margin-top:9px;font-size:13px;line-height:1.45;white-space:normal;overflow-wrap:anywhere}.owner-product-purchasing>span{display:block;padding:5px 8px;border-radius:6px;font-weight:600}.owner-product-ordered{color:#225738;background:#e8f4eb}.owner-product-prepared{color:#6d5b2d;background:#f7f2e3}.owner-product-unavailable{color:#89511a;background:#fff1dd}.owner-product-purchasing>small{font-size:12px!important;color:#5a685f}.owner-product-purchasing details{font-size:12px;color:#675a47}.owner-product-purchasing summary{cursor:pointer;padding:5px 0}.owner-product-purchasing p{margin:5px 0}.owner-inventory-row .owner-product-purchasing{min-width:0}
#inventory-panel-purchase-orders .owner-purchase-order-list { display:grid; gap:24px; padding:22px; background:#f5f7f4; border:0; }
.owner-po-card { min-width:0; padding:24px; border:1px solid #d9e0d8; border-radius:16px; background:#fff; color:#252e27; box-shadow:0 2px 5px #17231a06; }
.owner-po-heading,.owner-po-toolbar { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.owner-po-heading { background:transparent; color:#252e27; padding:0; }
.owner-po-heading h3 { color:#252e27; }
.owner-po-heading h3 { margin:0 0 7px; font-size:24px; font-weight:700; line-height:1.25; overflow-wrap:anywhere; }
.owner-po-heading p { margin:0; color:#647067; font-size:14px; line-height:1.45; }
.owner-po-status { border-radius:30px; padding:8px 12px; background:#eaf3e8; color:#375739; font-size:13px; font-weight:650; }
.owner-po-status.partial { background:#fff1d6; color:#79551f; }
.owner-po-toolbar { margin:20px 0; }
.owner-po-actions { display:flex; flex-wrap:wrap; gap:10px; }
.owner-po-actions button,.owner-po-actions a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 18px; border:1px solid #c5d0c5; border-radius:9px; background:#fff; color:#2c4934; font-family:inherit; line-height:1.2; font-size:15px; font-weight:600; text-decoration:none; cursor:pointer; }
.owner-po-actions .owner-po-receive { background:#285b3e; color:#fff; border-color:#285b3e; }
.owner-po-card .owner-purchase-merge-check { margin:0; font-size:14px; color:#5c665e; }
.owner-po-totals { display:flex; flex-wrap:wrap; gap:12px 22px; padding:15px 0; border-top:1px solid #e7ebe5; font-size:14px; color:#5b685f; }
.owner-po-totals b { color:#263c2d; font-size:17px; }
.owner-po-notes { display:flex; flex-wrap:wrap; gap:10px 22px; margin:0 0 18px; font-size:14px; color:#5c665e; }
.owner-po-notes p { flex-basis:100%; margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.owner-po-lines { border:1px solid #dce3da; border-radius:10px; overflow:hidden; }
.owner-po-line { display:grid; grid-template-columns:minmax(0,1fr) repeat(3,85px); gap:16px; padding:17px 18px; align-items:center; border-top:1px solid #e5eae2; }
.owner-po-line:nth-child(odd) { background:#fafbf9; }
.owner-po-line-head { border:0; background:#eef3ed!important; color:#56645a; font-size:13px; font-weight:650; }
.owner-po-line>div { display:grid; gap:7px; min-width:0; }
.owner-po-line strong { font-size:18px; font-weight:650; line-height:1.4; overflow-wrap:anywhere; }
.owner-po-line small { color:#68746c; font-size:13px; line-height:1.4; overflow-wrap:anywhere; }
.owner-po-line>span:not(:first-child) { text-align:center; font-variant-numeric:tabular-nums; }
.owner-po-line:not(.owner-po-line-head)>span { font-size:19px; }
.owner-po-line .owner-po-pending { color:#285b3e; font-weight:700; }
.owner-po-line .owner-po-extra { color:#8a551a; }
.owner-po-history { margin-top:18px; color:#69746b; font-size:13px; }
.owner-po-history summary { cursor:pointer; min-height:30px; }
.owner-po-history p { margin:8px 0; }
.owner-po-close-short { margin-top:16px; padding:10px 0; border:0; background:none; color:#835d2c; text-decoration:underline; cursor:pointer; font-size:14px; }
#inventory-panel-purchase-orders .owner-purchase-order-builder>summary strong { font-size:18px; }
#inventory-panel-purchase-orders .owner-purchase-order-builder>summary span { font-size:14px; }
#inventory-panel-purchase-orders .owner-purchase-order-fields label,#inventory-panel-purchase-orders .owner-purchase-order-note { font-size:13px; text-transform:none; letter-spacing:0; }
#inventory-panel-purchase-orders .owner-purchase-order-fields input,#inventory-panel-purchase-orders .owner-purchase-order-fields select,#inventory-panel-purchase-orders .owner-purchase-order-note textarea { font-size:16px; }
#inventory-panel-purchase-orders .owner-purchase-order-products { max-height:560px; min-width:0; grid-auto-rows:max-content; align-content:start; }
#inventory-panel-purchase-orders .owner-purchase-order-product { padding:16px; min-height:82px; height:auto; grid-template-columns:22px minmax(0,1fr) 100px 90px 95px; }
#inventory-panel-purchase-orders .owner-purchase-order-product > span { align-content:start; }
#inventory-panel-purchase-orders .owner-purchase-order-product strong { font-size:17px; white-space:normal; overflow-wrap:anywhere; line-height:1.4; }
#inventory-panel-purchase-orders .owner-purchase-order-product small { font-size:13px; white-space:normal; line-height:1.5; }
#inventory-panel-purchase-orders .owner-purchase-order-product>b { font-size:14px; }
#inventory-panel-purchase-orders .owner-purchase-order-product input { font-size:16px; }
#inventory-panel-purchase-orders .owner-purchase-merge { margin:18px 22px; background:#fff; }
#inventory-panel-purchase-orders .owner-purchase-merge p,#inventory-panel-purchase-orders .owner-purchase-merge small { font-size:14px; line-height:1.5; }
#inventory-panel-purchase-orders .owner-purchase-merge label { font-size:14px; }
#inventory-panel-purchase-orders .owner-purchase-order-list-filter strong,#inventory-panel-purchase-orders .owner-purchase-order-list-filter button { font-size:14px; }
.owner-po-editor { width:min(900px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); box-sizing:border-box; padding:0; border:1px solid #d6dfd4; border-radius:16px; color:#26352b; background:#fff; }
.owner-po-editor::backdrop { background:#15231b66; }
.owner-po-editor form { display:flex; flex-direction:column; max-height:calc(100dvh - 28px); }
.owner-po-editor header,.owner-po-editor footer { display:flex; flex-shrink:0; justify-content:space-between; align-items:center; gap:16px; padding:18px 24px; background:#fff; }
.owner-po-editor header { border-bottom:1px solid #dfe5dc; }
.owner-po-editor header h2 { margin:5px 0 0; font-size:24px; color:#26352b; }
.owner-po-editor header small { font-size:13px; color:#6a776d; }
.owner-po-editor footer { border-top:1px solid #dfe5dc; justify-content:flex-end; }
.owner-po-editor-body { padding:24px; overflow-y:auto; min-height:0; }
.owner-po-editor label { display:grid; gap:7px; font-size:14px; color:#465a4b; }
.owner-po-editor input,.owner-po-editor select,.owner-po-editor textarea { min-width:0; width:100%; box-sizing:border-box; min-height:44px; padding:10px; border:1px solid #bfcbbf; border-radius:8px; font-family:inherit; line-height:1.4; font-size:16px; background:#fff; color:#25392c; }
.owner-po-editor button { min-height:44px; border:1px solid #becabd; border-radius:8px; padding:10px 15px; font-size:15px; font-weight:600; color:#2c4e37; background:#fff; cursor:pointer; }
.owner-po-editor button[type=submit] { background:#285b3e; color:#fff; border-color:#285b3e; }
.owner-po-editor button:disabled { opacity:.6; cursor:wait; }
.owner-po-edit-fields { display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; }
.owner-po-editor h3 { margin:26px 0 8px; font-size:19px; }
.owner-po-edit-hint { margin:0 0 16px; color:#6a776d; font-size:14px; line-height:1.5; }
.owner-po-edit-line { display:grid; grid-template-columns:minmax(0,1fr) 115px 145px; align-items:center; gap:16px; padding:16px 0; border-bottom:1px solid #e4e9e0; }
.owner-po-edit-line>div { display:grid; gap:6px; }
.owner-po-edit-line strong { font-size:17px; line-height:1.4; overflow-wrap:anywhere; }
.owner-po-edit-line small,.owner-po-retained { color:#6b776d; font-size:13px; line-height:1.4; }
.owner-po-add { margin:20px 0; padding:16px; border:1px solid #ced9cc; border-radius:10px; }
.owner-po-add summary { cursor:pointer; color:#2e603d; font-size:16px; font-weight:600; }
.owner-po-add label { margin:14px 0; }
[data-po-search-results] { max-height:300px; overflow:auto; }
[data-po-search-results]>button { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; width:100%; text-align:left; margin:6px 0; }
[data-po-search-results]>button strong,[data-po-search-results]>button small { grid-column:1; overflow-wrap:anywhere; }
[data-po-search-results]>button small { font-weight:400; }
[data-po-search-results]>button b { grid-column:2; grid-row:1/3; align-self:center; }
.owner-po-edit-error { color:#8b3328; background:#fff0eb; padding:14px; border:1px solid #e1ada4; border-radius:8px; font-size:15px; line-height:1.5; }
@media(max-width:700px) {
  #inventory-panel-purchase-orders .owner-purchase-order-product { grid-template-columns:22px minmax(0,1fr) 72px; gap:8px; padding:14px 10px; }
  #inventory-panel-purchase-orders .owner-purchase-order-product > b { display:none; }
  #inventory-panel-purchase-orders .owner-purchase-order-list { padding:12px; gap:16px; }
  .owner-po-card { padding:16px; }
  .owner-po-heading h3 { font-size:21px; }
  .owner-po-line { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:16px 12px; }
  .owner-po-line-head { display:none; }
  .owner-po-line>div { grid-column:1/-1; }
  .owner-po-line>span::before { content:attr(data-label); display:block; font-size:12px; font-weight:400; color:#68746c; margin-bottom:4px; }
  .owner-po-line>span { text-align:center; }
  .owner-po-edit-fields { grid-template-columns:1fr; }
  .owner-po-editor header,.owner-po-editor footer,.owner-po-editor-body { padding:16px; }
  .owner-po-edit-line { grid-template-columns:1fr 1fr; }
  .owner-po-edit-line>div { grid-column:1/-1; }
  .owner-po-editor header h2 { font-size:21px; }
  #inventory-panel-purchase-orders .owner-purchase-merge { margin:14px 12px; }
}
