.purchase-order{min-width:0}.purchase-order .po-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 8px;padding:0;border:0}.purchase-order .po-heading h2{font-size:18px;margin:0;overflow-wrap:anywhere}.purchase-order .po-heading p{font-size:11px;margin:3px 0}.po-totals{display:flex;align-items:center;gap:5px 12px;flex-wrap:wrap;background:#edf7f3;border:1px solid #d4e8df;border-radius:8px;padding:9px 10px;font-size:12px;margin-bottom:8px}.po-totals strong{font-size:14px}.po-totals span{color:#45656b}.po-add,.po-filters{display:grid;gap:5px;margin:8px 0}.po-add{grid-template-columns:repeat(3,minmax(0,1fr))}.po-add button{min-width:0;font-size:12px;padding:8px}.po-filters{grid-template-columns:repeat(5,minmax(0,1fr))}.po-filters button{min-width:0;font-size:11px;padding:7px 3px;background:#eef3f1;color:#365b61;border:1px solid #d9e3df;overflow-wrap:anywhere}.po-filters [aria-pressed=true]{background:#176961;color:white}.po-groups>details{border:1px solid #d8e5df;border-radius:9px;background:white;margin-bottom:8px;min-width:0}.po-groups>details>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px;cursor:pointer;list-style:revert;font-size:13px;font-weight:600;overflow-wrap:anywhere}.po-groups>details>summary small{font-size:11px;white-space:nowrap;font-weight:400;color:#507078}.po-group-actions{display:flex;justify-content:flex-end;padding:0 8px 5px}.po-group-actions button{font-size:11px;padding:5px 8px;min-height:32px}.po-row{padding:8px 10px;border-top:1px solid #e5ece8;min-width:0}.po-line{display:grid;grid-template-columns:minmax(0,1fr) 140px 95px;gap:8px;align-items:center}.po-check{display:flex;gap:7px;align-items:center;min-width:0}.po-check input[type=checkbox]{width:19px;height:19px;min-height:19px;flex-shrink:0;accent-color:#176961}.po-check span{min-width:0}.po-check strong{display:block;font-size:13px;line-height:1.35;overflow-wrap:anywhere}.po-check small{display:block;font-size:10px;color:#617b80;margin-top:3px;overflow-wrap:anywhere}.po-quantity{display:flex;gap:4px;min-width:0;font-size:12px;overflow-wrap:anywhere}.po-quantity input,.po-quantity select{width:50%;min-width:0;padding:6px;font-size:12px;min-height:36px}.po-price{font-size:12px;text-align:right;overflow-wrap:anywhere;min-width:0}.po-line-status{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:11px;margin-top:5px;color:#4e6b71}.po-state{border-radius:5px;padding:3px 6px;background:#f1f4f2}.po-bought{background:#e0f4e7;color:#216b45}.po-partial{background:#fff3d8;color:#8c5a15}.po-unavailable{background:#fee9e3;color:#a23820}.po-deferred{background:#e8eefb;color:#364f99}.po-line-details{margin-top:5px;font-size:12px}.po-line-details summary{cursor:pointer;color:#42666b;font-size:11px;padding:3px 0}.po-line-details p{margin:5px 0;font-size:12px;line-height:1.45}.po-line-details label{display:flex;gap:8px;align-items:center;font-size:12px}.po-line-details input{max-width:120px;min-width:0;min-height:36px;font-size:12px;padding:6px}.po-line-details .toolbar{margin:6px 0;gap:5px}.po-line-details button{font-size:11px;min-height:34px;padding:6px 8px}.po-issues{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:7px 10px;background:#fff4de;border:1px solid #f2d7a1;border-radius:8px;margin:8px 0;font-size:12px}.po-issues button{min-height:34px;font-size:11px;padding:6px 8px}.po-footer{position:sticky;bottom:0;z-index:3;display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:6px;padding:9px 0 max(9px,env(safe-area-inset-bottom));background:#f3f7f5;border-top:1px solid #d5e2db;margin-top:8px}.po-footer button{font-size:12px;min-width:0;white-space:normal;padding:9px 6px}.po-footnote{font-size:11px!important;margin:5px 0!important;line-height:1.4!important}.po-empty{font-size:12px;padding:5px 10px}.po-history{font-size:12px;margin:8px 0}.po-history p{margin:5px 0;font-size:11px;overflow-wrap:anywhere}.po-list-search{display:flex;align-items:center;gap:10px;font-size:12px;margin-bottom:8px}.po-list-search input{min-width:0;flex:1;font-size:12px}.po-order-list article{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid #dde7e1;border-radius:8px;padding:10px;margin-bottom:6px}.po-order-list article>div{min-width:0}.po-order-list strong{display:block;font-size:13px;overflow-wrap:anywhere}.po-order-list small{display:block;font-size:11px;color:#58737a;margin-top:3px}.po-order-list button{font-size:12px;min-height:36px;padding:7px 10px}.purchase-work-dialog{width:min(780px,calc(100vw - 18px));max-width:calc(100vw - 18px);padding:14px;max-height:calc(100dvh - 20px);overflow:auto}.purchase-work-dialog h2{font-size:18px;margin:0}.purchase-work-dialog p{font-size:12px;line-height:1.5}.purchase-work-dialog .panel-heading{margin:0 0 10px}.purchase-work-dialog [data-po-error]{color:#b42318}.purchase-work-dialog>button{display:block;margin:8px 0;width:100%}.purchase-work-dialog form>label{display:flex;gap:8px;align-items:center;font-size:12px;margin:8px 0;overflow-wrap:anywhere}.purchase-work-dialog input[type=checkbox]{width:18px;height:18px;min-height:18px;flex-shrink:0}.purchase-work-dialog form>details{margin:8px 0}.po-issue-item{border:1px solid #e0e8e2;border-radius:8px;padding:9px;margin:7px 0}.po-issue-item>strong{font-size:13px;overflow-wrap:anywhere}.po-issue-item label,.purchase-work-dialog details label{display:grid;gap:4px;font-size:11px;min-width:0}.po-issue-item select,.po-issue-item input,.purchase-work-dialog form>label input,.purchase-work-dialog form>label select{min-width:0;max-width:100%;font-size:12px;padding:7px}.po-issue-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:7px}.purchase-work-dialog [hidden]{display:none!important}.purchase-work-dialog form>button[type=submit]{position:sticky;bottom:0;width:100%;margin-top:10px}.purchase-order[aria-busy=true]{opacity:.75}
@media(max-width:700px){.po-line{grid-template-columns:minmax(0,1fr) 84px 62px;gap:5px}.po-row{padding:8px}.po-check strong{font-size:12px}.po-quantity input,.po-quantity select{padding:5px 3px;font-size:11px}.po-price{font-size:11px}.po-groups>details>summary{padding:10px 8px;font-size:12px}.po-groups>details>summary small{font-size:10px;white-space:normal;text-align:right}.po-filters button{font-size:10px}.purchase-order .po-heading h2{font-size:17px}.purchase-order .po-heading button{min-height:34px;font-size:11px;padding:7px 9px}.po-totals{font-size:11px;padding:8px}.po-list-search{display:block}.po-list-search input{display:block;width:100%;margin-top:4px}.po-order-list article{padding:9px}.po-line-status{font-size:10px;gap:5px}.purchase-work-dialog{padding:10px}.po-issue-item{padding:8px}.purchase-order .toolbar{gap:5px}.purchase-order .toolbar button{font-size:11px}.po-check input[type=checkbox]{width:20px;height:20px;min-height:20px}}
