/* 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}}
