@import url('./shop-backup.css');
.purchase-header-actions,.purchase-tabs,.purchase-actions,.purchase-picker,.purchase-line-head,.purchase-amounts,.purchase-detail-head,.purchase-total{display:flex;align-items:center;gap:10px}
.purchase-header-actions,.purchase-actions,.purchase-picker{flex-wrap:wrap}
.purchase-tabs{gap:4px;margin:0 0 18px;border-bottom:1px solid var(--line)}
.purchase-tabs a{padding:10px 15px;text-decoration:none;color:var(--muted);border-bottom:2px solid transparent;font-weight:650}
.purchase-tabs a[aria-current=page]{border-color:var(--accent,#e36234);color:var(--ink,#18243a)}
.purchase-filter{padding:0 18px 15px}.purchase-filter .field{max-width:340px}
.purchase-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(105px,auto);gap:16px;align-items:center;text-align:left;width:100%;padding:13px 18px;border:0;border-top:1px solid var(--line);background:transparent;color:inherit;cursor:pointer;font:inherit}
.purchase-history-row:hover,.purchase-history-row:focus-visible{background:var(--surface-alt,#f7f8fa)}
.purchase-history-row b{text-align:right;white-space:nowrap}
.purchase-history-row small,.purchase-line-head small,.purchase-detail-lines small,.purchase-detail-lines span{display:block;color:var(--muted);font-size:.83rem;overflow-wrap:anywhere}
.purchase-history-note,.purchase-more{margin:14px 18px}
.purchase-status{display:inline-block;width:max-content;max-width:100%;border-radius:20px;padding:4px 9px;font-size:.79rem;font-weight:650}
.purchase-ordered{background:#fff0d2;color:#77541a}.purchase-received{background:#dff2e7;color:#225b3b}.purchase-cancelled{background:#edf0f3;color:#565f68}
.purchase-form fieldset{display:grid;gap:15px;border:0;margin:0;padding:0;min-width:0}
.purchase-picker{align-items:flex-end;margin-bottom:10px}.purchase-picker .field{flex:1 1 160px;min-width:0}
.purchase-line{border-top:1px solid var(--line);padding:12px 0}.purchase-line-head,.purchase-total,.purchase-detail-head{justify-content:space-between}
.purchase-amounts{align-items:flex-end;margin-top:7px}.purchase-amounts .field{flex:1;min-width:0}
.purchase-subtotal{flex:1;min-width:0}.purchase-subtotal small,.purchase-subtotal strong{display:block}
.purchase-subtotal small{color:var(--muted);font-size:.78rem}
.purchase-total{border-top:1px solid var(--line);padding-top:10px}
.purchase-form .error:empty,.purchase-detail .error:empty{display:none}
.purchase-detail [hidden]{display:none}
.purchase-no-lines{margin:8px 0}
.purchase-detail h3,.purchase-form h3,.supplier-order-summary h3{margin:0 0 8px}
.purchase-detail-lines{list-style:none;margin:0;padding:0}
.purchase-detail-lines li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}
.purchase-detail-lines b{white-space:nowrap}.purchase-notes{white-space:pre-wrap;overflow-wrap:anywhere}
.supplier-order-summary .purchase-history-row{padding:9px 0}
.supplier-order-summary .purchase-history-note{margin:8px 0}
@media(max-width:640px){
  .purchase-header-actions{gap:7px}.purchase-header-actions .btn{white-space:normal}
  .purchase-history-row{grid-template-columns:minmax(0,1fr) auto;gap:4px 9px;padding:12px 14px}
  .purchase-history-row>span:first-child{grid-row:span 2}.purchase-history-row b{grid-column:2;font-size:.86rem}
  .purchase-history-row .purchase-status{justify-self:end}
  .purchase-filter{padding-inline:14px}.purchase-filter select,.purchase-form input,.purchase-form textarea,.purchase-form select{font-size:16px}
  .purchase-amounts{display:grid;grid-template-columns:minmax(80px,.65fr) minmax(120px,1fr);gap:8px}
  .purchase-subtotal{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:6px}
}
