.pi-dialog{box-sizing:border-box;width:min(940px,calc(100vw - 2rem));max-height:90dvh;overflow:auto;padding:clamp(1rem,3vw,2rem);border:1px solid #c5d0db;border-radius:12px;background:#fff;color:#15283f;box-shadow:0 16px 70px #08182f33}
.pi-dialog::backdrop{background:#10243980}
.pi-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.pi-dialog h3,.pi-dialog h4,.pi-dialog p{margin:.45rem 0}
.pi-dialog h4{margin-top:1.2rem}
.pi-field{display:grid;gap:.35rem;margin:.4rem 0;font-size:.9rem;font-weight:600}
.pi-field input,.pi-field select{font:inherit;min-width:0;width:100%;box-sizing:border-box;border:1px solid #b9c7d7;border-radius:5px;background:#fff;padding:.45rem;color:inherit}
.pi-mapping{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:.25rem 1rem;margin:.5rem 0 1rem}
.pi-scroll{overflow:auto;max-height:19rem;border:1px solid #c8d2dd;border-radius:6px;scrollbar-width:thin}
.pi-dialog table{border-collapse:separate;border-spacing:0;font-size:.87rem;width:100%;line-height:1.4}
.pi-dialog th,.pi-dialog td{padding:.45rem .6rem;text-align:left;vertical-align:top;border-bottom:1px solid #dbe3eb}
.pi-dialog th{position:sticky;top:0;background:#eef2f7;white-space:nowrap}
.pi-dialog td:nth-child(3),.pi-dialog td:nth-child(4){min-width:5.4rem}
.pi-approval{display:flex;align-items:center;gap:.6rem;margin:.85rem 0}
.pi-approval input{width:1.1rem;height:1.1rem}
.pi-counts{font-weight:600}
.pi-primary{border:1px solid #192e47;border-radius:6px;background:#192e47;color:white;padding:.6rem .9rem;font:inherit;font-weight:650;cursor:pointer}
.pi-primary:disabled{opacity:.5;cursor:default}
.pi-history{padding-top:.8rem;margin-top:1rem;border-top:1px solid #d2dbe5}
.pi-history details{margin:.5rem 0 .5rem .4rem}
.pi-history summary{cursor:pointer;font-weight:600;padding:.35rem 0}
@media(max-width:600px){.pi-dialog{width:calc(100vw - 1rem)}.pi-head{align-items:flex-start}.pi-scroll{max-height:18rem}}
