/* KATS Development (test) extras on top of DMS app.css */
.kd-ph{width:64px;height:64px;border-radius:10px;object-fit:cover;border:1px solid var(--line);background:#F8FAFC;cursor:zoom-in;display:block}
.kd-noph{width:64px;height:64px;border-radius:10px;border:1px dashed var(--line);display:grid;place-items:center;color:var(--muted);font-size:11px}
.kd-st{display:inline-block;font-size:12px;font-weight:700;border-radius:20px;padding:3px 10px;white-space:nowrap}
.kd-g{background:#DCFCE7;color:#166534}.kd-r{background:#FEE2E2;color:#991B1B}.kd-o{background:#FFEDD5;color:#9A3412}.kd-b{background:#DBEAFE;color:#1E40AF}.kd-v{background:#EDE9FE;color:#5B21B6}.kd-t{background:#CCFBF1;color:#115E59}.kd-x{background:#F1F5F9;color:#475569}
.kd-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:14px}
.kd-bar input,.kd-bar select{min-height:38px;border-radius:10px;border:1px solid var(--line);padding:0 12px;font:inherit;background:var(--surface);color:var(--ink)}
.kd-bar input{flex:1 1 220px}
table.t td.kd-up{max-width:340px;white-space:normal;font-size:13px}
table.t tr.kd-row{cursor:pointer}
.kd-cnt{margin-left:auto;font-size:12px;font-weight:700;background:var(--chip);border-radius:20px;padding:1px 8px;color:var(--muted)}
.kd-lb{position:fixed;inset:0;background:rgba(15,23,42,.85);z-index:90;display:grid;place-items:center;padding:12px;cursor:zoom-out}
.kd-lb img{max-width:100%;max-height:92vh;border-radius:12px}
.kd-dt{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:60;display:flex;justify-content:flex-end}
.kd-dt .panel{width:min(620px,100%);height:100%;overflow:auto;margin:0;border-radius:0;padding:20px}
.kd-phs{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.kd-phs img{width:120px;height:120px;object-fit:cover;border-radius:10px;cursor:zoom-in;border:1px solid var(--line)}
.kd-kv{display:grid;grid-template-columns:120px 1fr;gap:6px 12px;font-size:14px;margin:12px 0}
.kd-kv b{color:var(--muted);font-weight:600}
.kd-hist{border-left:3px solid var(--line);padding-left:12px;margin-top:8px}
.kd-hist div{margin-bottom:10px;font-size:13.5px}
.kd-hist small{color:var(--muted);display:block}
.kd-cat td:first-child{font-weight:700}
@media (max-width:760px){.kd-ph,.kd-noph{width:52px;height:52px}.kd-kv{grid-template-columns:96px 1fr}}
@media (max-width:760px){#asof{display:none}}
.kd-phrow{display:flex;gap:6px;overflow-x:auto;max-width:280px;padding-bottom:2px;-webkit-overflow-scrolling:touch}
.kd-phrow .kd-ph{flex:0 0 auto}
@media (max-width:760px){.kd-phrow{max-width:180px}}
/* edit features 04-12 */
.kd-md{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:80;display:flex;align-items:center;justify-content:center;padding:12px}
.kd-mp{width:min(640px,100%);max-height:94vh;overflow:auto;margin:0}
.kd-mf{display:flex;gap:10px;justify-content:flex-end;margin-top:14px;flex-wrap:wrap}
.kd-me{min-height:0;margin:8px 0 0}
.kd-fg{display:flex;flex-wrap:wrap;gap:12px}
.kd-fg .field input,.kd-fg .field select,.kd-fg .field textarea{width:100%;box-sizing:border-box;font:inherit;font-size:16px;min-height:40px;border-radius:10px;border:1px solid var(--line);padding:8px 12px;background:var(--surface);color:var(--ink)}
.kd-pv{background:#FFF7ED;border:1px solid #FED7AA;border-radius:10px;padding:10px 14px;margin:0}
.kd-pv p{margin:6px 0}
.kd-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:#14263F;color:#fff;padding:10px 18px;border-radius:10px;z-index:99;opacity:0;pointer-events:none;transition:.2s;font-weight:600;max-width:92vw}
.kd-toast.show{opacity:1;transform:translate(-50%,0)}.kd-toast.bad{background:#B91C1C}
.kd-pw{position:relative;display:inline-block}
.kd-px{position:absolute;top:4px;right:4px;width:28px;height:28px;border-radius:50%;border:0;background:rgba(15,23,42,.75);color:#fff;font-size:18px;line-height:1;cursor:pointer}
.kd-acts2{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:6px 0 12px}
.kd-acts2 label.btn{display:inline-flex;align-items:center}
.kd-up2{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:8px}
.kd-up2 .btn{margin-top:12px}
.kd-dt h3{display:flex;align-items:center;gap:10px;margin:18px 0 6px}
.kd-acts{white-space:nowrap}
.pagehead .sp{flex:1}
@media (max-width:760px){.kd-dt .panel{padding:14px}.kd-md{align-items:flex-end;padding:0}.kd-mp{border-radius:16px 16px 0 0;max-height:92vh}}
#nav .kd-sub .nr{padding-left:30px;font-size:13px;min-height:34px}  /* 04-12 Pending ke neeche categories */
