/* Scoped strictly to order entry and its product picker. */
.kp-order-form .kp-original-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none;padding:0;overflow:hidden}
.kp-order-form .line{display:grid;grid-template-columns:minmax(0,1fr) 90px 44px;gap:8px;align-items:end;margin:8px 0;padding:10px;border:1px solid #ccd7d1;border-radius:10px}
.kp-order-form .line label{min-width:0;margin:0}.kp-order-form .line label:first-child{grid-column:1}.kp-order-form .kp-choice{white-space:normal;text-align:left;width:100%;min-height:48px;padding:10px;color:#123c32;background:#fff;border:1px solid #9dafaa;font-weight:600;line-height:1.35}.kp-order-form input,.kp-order-form select,.kp-order-form textarea{font-size:16px}.kp-order-form .line input[name=qty]{text-align:center;font-weight:700;padding:10px 3px;min-height:48px}.kp-order-form .line small{grid-column:1/-1}.kp-order-form .line>button{height:48px;padding:8px}.kp-order-form .line[data-kp-family=jerky]{background:#fff5dc!important}.kp-order-form .line[data-kp-family=pate]{background:#edf5ff!important}.kp-order-form .line[data-kp-family=cake]{background:#f8efff!important}.kp-order-form .line[data-kp-size=large]{border-left:6px solid #667f97}.kp-order-form .line[data-kp-family=jerky][data-kp-size=large]{background:#ffe7aa!important;border-left-color:#aa7510}.kp-order-form .line[data-kp-family=pate][data-kp-size=large]{background:#cfe4ff!important;border-left-color:#3575b7}.kp-order-form .line[data-kp-family=cake][data-kp-size=large]{background:#e7cff7!important;border-left-color:#8858ae}
.kp-order-summary{position:sticky;top:0;z-index:2;margin:12px 0;padding:12px;background:#155b46;color:white;border-radius:9px;font-weight:700;font-size:16px;box-shadow:0 0 0 3px #fff}.kp-order-form .order-qty-total{display:none}.kp-order-form #product-tabs{display:none!important}
dialog.kp-picker{width:min(1280px,96vw);max-height:90dvh;border:0;border-radius:14px;padding:0;overflow:auto;color:#143b32;background:white}.kp-picker::backdrop{background:#112b267a}.kp-picker .kp-picker-head{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;background:#155b46;color:white;padding:12px 16px;gap:8px}.kp-picker-head button{font-size:24px;background:white;color:#155b46;width:44px;height:44px;padding:0}.kp-picker-controls{padding:12px}.kp-picker input{width:100%;padding:12px;font-size:16px;border:1px solid #aebdb6;border-radius:8px}.kp-groups,.kp-sizes{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0;align-items:center}.kp-groups button,.kp-sizes button{padding:10px 14px;min-height:44px;border:2px solid transparent;border-radius:8px;color:#153c32;font-weight:700}.kp-jerky{background:#fff0c6}.kp-pate{background:#deedff}.kp-cake{background:#efddff}.kp-other{background:#eff3ee}.kp-groups button[aria-pressed=true],.kp-sizes button[aria-pressed=true]{border-color:#155b46;box-shadow:0 0 0 1px #155b46}.kp-sizes button{background:#eef3ed}.kp-product-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 12px 16px}.kp-family{padding:10px;border-radius:10px;min-width:0}.kp-family[hidden]{display:none}.kp-family h3{margin:0 0 10px}.kp-product{display:grid;grid-template-columns:minmax(0,1fr) auto;text-align:left;width:100%;gap:7px;min-height:76px;padding:12px;border:1px solid #b8c5bf;border-radius:8px;color:#16392f;margin:7px 0;font-size:16px;line-height:1.35}.kp-product span{font-weight:600;overflow-wrap:anywhere}.kp-product small{grid-column:1/-1;color:#39534a}.kp-product.kp-large.kp-jerky{background:#ffd986;border-left:5px solid #ad7813}.kp-product.kp-large.kp-pate{background:#bddbff;border-left:5px solid #3479b9}.kp-product.kp-large.kp-cake{background:#dfbdf8;border-left:5px solid #8856ad}.kp-size-badge{padding:4px 7px;background:#ffffffb8;border-radius:6px;align-self:start;white-space:nowrap}.kp-product:focus-visible,.kp-choice:focus-visible{outline:3px solid #155b46;outline-offset:2px}.kp-empty{padding:15px}
@media(max-width:899px){.kp-product-columns{grid-template-columns:1fr}.kp-picker .kp-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.kp-groups button{padding:10px 5px}.kp-picker-controls{padding:10px}.kp-order-form .line{grid-template-columns:minmax(0,1fr) 65px 38px;padding:8px;gap:6px}.kp-order-form .line label{font-size:13px}.kp-order-form .kp-choice{font-size:14px}.kp-order-form .line>button{padding:5px}.kp-order-form .line input[name=qty]{font-size:17px}.kp-order-summary{font-size:15px}.kp-order-form{padding-bottom:env(safe-area-inset-bottom)}}

.kp-order-form .repeat-line .line-info{grid-column:1/-1;grid-row:2}.kp-order-form .repeat-line button[data-act=remove-line]{grid-column:3;grid-row:1}.kp-order-form input[name=line_qty]{text-align:center;font-weight:700;min-height:48px;padding:10px 3px}.kp-order-form .repeat-line{grid-template-rows:auto auto}

.kp-picker .kp-product:disabled{opacity:.55;cursor:default}.kp-date-hint{display:block;padding:5px 0;color:#315447}

/* SAFE027: one palette in the product picker, selected rows and dealer history. */
.sku-pate400,[data-kp-pack=sku-pate400]{--kp27-tint:#eaf2ff;--kp27-edge:#82a9dc}
.sku-pate900,[data-kp-pack=sku-pate900]{--kp27-tint:#fff0df;--kp27-edge:#dba665}
.sku-jerky50,[data-kp-pack=sku-jerky50]{--kp27-tint:#e3f4ed;--kp27-edge:#68a58b}
.sku-jerky250,[data-kp-pack=sku-jerky250]{--kp27-tint:#fff6d9;--kp27-edge:#c4a549}
.kp-picker .kp-product:is(.sku-pate400,.sku-pate900,.sku-jerky50,.sku-jerky250),.kp-order-form .line[data-kp-family][data-kp-pack]:not([data-kp-pack=""]),.kp27-order-product:is(.sku-pate400,.sku-pate900,.sku-jerky50,.sku-jerky250){background:var(--kp27-tint)!important;border-left:4px solid var(--kp27-edge);color:#173e34}
.kp27-order-product{padding:5px 9px;margin:4px 0;border-radius:5px}
