.po-change-dialog{width:min(1180px,96vw);max-width:96vw;max-height:92vh;overflow:auto;border:1px solid #d9e1e8;border-radius:12px;padding:24px;background:#fff;color:#182838;box-shadow:0 20px 80px #10203045}
.po-change-dialog::backdrop,.po-exit-dialog::backdrop{background:#14283e80}
.po-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.po-dialog-heading h2{margin:4px 0 16px}
.po-compare{width:100%;table-layout:fixed;border-collapse:collapse}
.po-compare th:first-child{width:22%}.po-compare th,.po-compare td{white-space:normal;vertical-align:top;overflow-wrap:anywhere;padding:10px 12px}
.po-compare input:not([type=checkbox]),.po-compare select,.po-compare textarea{width:100%;max-width:100%;min-width:0}
.po-compare textarea{min-height:72px}
.po-compare .errorlist{color:#a32525;margin:6px 0;padding-left:18px}
.po-compare tr.po-changed{background:#eaf5fc}.po-compare .tag{margin-left:8px}
.po-change-line{border:1px solid #d8e2e9;border-radius:8px;margin:16px 0;padding:12px}
.po-change-line legend{padding:0 8px;font-weight:600}
.po-change-line.po-line-removed .po-compare{opacity:.45}
.po-exit-dialog{width:min(520px,92vw);border:0;border-radius:12px;padding:24px;box-shadow:0 20px 80px #10203045}
.po-exit-dialog .form-actions{display:flex;flex-wrap:wrap;gap:10px}
.po-exit-error{color:#a32525}
@media(max-width:650px){
 .po-change-dialog{padding:12px}.po-change-line{padding:8px}
 .po-compare,.po-compare tbody{display:block;width:100%}.po-compare{font-size:.88rem}
 .po-compare thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .po-compare tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-bottom:1px solid #d8e2e9;padding:6px 0}
 .po-compare tbody th:first-child{grid-column:1/-1;width:auto;padding:6px;overflow-wrap:normal}
 .po-compare tbody td{padding:6px;min-width:0;border-bottom:0;overflow-wrap:break-word}
 .po-compare tbody td::before{display:block;color:#536579;font-size:.75rem;font-weight:600;margin-bottom:6px}
 .po-compare tbody td:nth-child(2)::before{content:'Current order'}
 .po-compare tbody td:nth-child(3)::before{content:'Requested change'}
 .po-review-compare tbody td:nth-child(2)::before{content:'Order at request'}
}
@media print{.po-change-dialog{position:static;max-height:none;overflow:visible;box-shadow:none;width:100%;max-width:none}.po-exit-dialog{display:none}}
