/* NKF 05/11/2026: neutral grey/white, small controls and modal. */
.purchase-edit-panel .nkf-pc-rate-split{display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:4px;min-width:0;align-items:center;width:100%}
body.app-body .purchase-edit-panel .nkf-pc-rate-split input[type=number]{min-width:0!important;width:100%!important;max-width:none!important;box-sizing:border-box!important;text-align:right!important;padding:5px 4px!important}
.purchase-edit-panel .nkf-pc-open{display:block;box-sizing:border-box;width:46px;max-width:46px;min-height:34px;padding:4px 2px;background:#f1f3f5;border:1px solid #b9c4ce;border-radius:5px;color:#344054;font-size:10px;line-height:1.12;font-weight:700;white-space:normal;cursor:pointer}
.purchase-edit-panel .nkf-pc-open:hover,.purchase-edit-panel .nkf-pc-open:focus-visible{background:#e1e7ec;outline:1px solid #8799aa}
.purchase-edit-panel .nkf-pc-below{display:block;margin:3px 0 0;color:#526477;font-size:10px;font-weight:650;text-align:right;white-space:nowrap}
.purchase-edit-panel .nkf-pc-below.nkf-pc-above{color:#a73a35}
.purchase-edit-panel .nkf-pc-helper{margin:0 0 9px;padding:7px 10px;border:1px solid #e2e6eb;border-radius:6px;background:#fafbfc;color:#536171;font-size:11px;line-height:1.5}
.nkf-pc-overlay{position:fixed;inset:0;z-index:2147482900;background:rgba(17,24,39,.49);padding:18px;display:flex;align-items:center;justify-content:center;overflow:auto}
.nkf-pc-overlay[hidden]{display:none!important}
.nkf-pc-dialog{width:min(420px,100%);max-height:calc(100vh - 30px);overflow:auto;box-sizing:border-box;background:white;color:#273543;border-radius:12px;box-shadow:0 22px 70px #0004;padding:20px;font:13px/1.5 Arial,sans-serif}
.nkf-pc-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-bottom:10px;border-bottom:1px solid #e3e7ed}
.nkf-pc-dialog>header strong{font-size:16px}
.nkf-pc-dialog>header button{font-size:21px;border:0;background:transparent;color:#4b5563;cursor:pointer}
.nkf-pc-dialog .nkf-pc-caption{margin:9px 0 15px;color:#697586;font-size:12px;overflow-wrap:anywhere}
.nkf-pc-dialog label{display:block;margin:9px 0 5px;font-size:12px;font-weight:700}
.nkf-pc-dialog input[type=number]{display:block;width:100%;min-height:40px;box-sizing:border-box;border:1px solid #b6c2cf;border-radius:7px;padding:8px 10px;font-size:17px;text-align:right;background:white;color:#1e293b}
.nkf-pc-dialog .nkf-pc-quick{display:flex;gap:7px;flex-wrap:wrap;margin:9px 0 14px}
.nkf-pc-dialog .nkf-pc-quick button{background:#f3f4f6;border:1px solid #cbd5df;color:#374151;border-radius:6px;min-height:33px;padding:6px 12px;cursor:pointer}
.nkf-pc-dialog .nkf-pc-result{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px;background:#f6f7f9;border:1px solid #dde2e8;border-radius:8px}
.nkf-pc-dialog .nkf-pc-result strong{font-size:17px;white-space:nowrap;font-variant-numeric:tabular-nums}
.nkf-pc-dialog .nkf-pc-note{display:block;margin:10px 0;color:#667488;font-size:10px;line-height:1.55}
.nkf-pc-dialog .nkf-pc-error{min-height:15px;color:#a62b2b;font-size:11px}
.nkf-pc-dialog>footer{display:flex;justify-content:flex-end;gap:9px;margin-top:12px}
.nkf-pc-dialog>footer button{border:1px solid #b7c2ce;border-radius:6px;min-height:36px;background:white;color:#344054;padding:7px 13px;cursor:pointer}
.nkf-pc-dialog>footer .nkf-pc-apply{background:#374151;border-color:#374151;color:white;font-weight:700}
.nkf-pc-dialog>footer .nkf-pc-apply:disabled{opacity:.45;cursor:not-allowed}
#item-photo-form .nkf-online-price{margin-top:15px;padding:13px;background:#fff;border:1px solid #dce2e8;border-radius:9px;color:#334155}
#item-photo-form .nkf-online-price>strong{display:block;font-size:13px;color:#25394e;margin-bottom:4px}
#item-photo-form .nkf-online-price p{font-size:11px;margin:0 0 10px;color:#627185;line-height:1.45}
#item-photo-form .nkf-online-links{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
#item-photo-form .nkf-online-links a{background:#f6f7f9;color:#334155;border:1px solid #c9d3dd;border-radius:6px;padding:7px 9px;font-size:11px;font-weight:650;text-decoration:none}
#item-photo-form .nkf-online-links a:hover{background:#e7edf3}
#item-photo-form .nkf-online-price label{display:block;margin-bottom:5px;font-size:11px;font-weight:650}
#item-photo-form .nkf-online-price-entry{display:grid;grid-template-columns:minmax(0,1fr) 95px;gap:7px}
#item-photo-form .nkf-online-price-entry input{min-width:0;box-sizing:border-box}
#item-photo-form .nkf-online-price-entry button{border:1px solid #c0cbd6;border-radius:6px;color:#334155;background:#edf1f5;font-weight:700;cursor:pointer;font-size:11px}
#item-photo-form #nkf-online-price-status{display:block;margin-top:8px;font-size:10px;color:#697586;line-height:1.5}
@media(max-width:680px){.purchase-edit-panel .nkf-pc-open{width:42px}.purchase-edit-panel .nkf-pc-rate-split{grid-template-columns:minmax(0,1fr) 42px}.nkf-pc-dialog{padding:15px}}
@media print{.purchase-edit-panel .nkf-pc-open,.purchase-edit-panel .nkf-pc-helper,.purchase-edit-panel .nkf-pc-below{display:none!important}}

/* 05-11-2026: the percentage itself is the clickable inline control. */
.purchase-edit-panel .nkf-pc-open.nkf-pc-above {color:#a63b35!important;border-color:#d5a9a9!important}
.purchase-edit-panel .nkf-pc-rate-split{grid-template-columns:minmax(0,1fr) 50px}
.purchase-edit-panel .nkf-pc-open{width:50px;max-width:50px;height:35px;min-height:35px;white-space:nowrap}
.purchase-edit-panel .nkf-pc-below{display:none!important}
@media(max-width:680px){.purchase-edit-panel .nkf-pc-rate-split{grid-template-columns:minmax(0,1fr) 50px}.purchase-edit-panel .nkf-pc-open{width:50px;max-width:50px}}
