/* Phase 254: this dialog owns its scroll area without changing existing modals. */
.physical-adjustment-dialog{width:min(920px,calc(100vw - 20px));max-width:100%;max-height:calc(100dvh - 20px);padding:0;border:1px solid #cbdcd7;border-radius:14px;color:#172131;background:#fff;box-shadow:0 24px 80px rgba(15,23,42,.28)}
.physical-adjustment-dialog[open]{display:flex;flex-direction:column}
.physical-adjustment-dialog::backdrop{background:rgba(15,23,42,.58)}
.physical-adjustment-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid #dce7e3;background:#f2faf7}
.physical-adjustment-header h2{margin:0;font-size:21px}.physical-adjustment-header p{margin:0 0 4px;color:#08766b;font-size:12px;font-weight:800}
.physical-adjustment-body{min-width:0;min-height:0;padding:18px 20px;overflow-y:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y;overflow-wrap:anywhere}
.physical-adjustment-dialog button{min-height:44px;max-width:100%;border:1px solid #b9d3ca;border-radius:9px;padding:10px 14px;background:#edf7f2;color:#075f56;font:inherit;font-size:13px;font-weight:800;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.physical-adjustment-dialog button:disabled{opacity:.5;cursor:not-allowed}.physical-adjustment-dialog button:focus-visible{outline:3px solid #4caa9d;outline-offset:2px}
.physical-adjustment-dialog [hidden]{display:none!important}
.physical-adjustment-notice{padding:12px;border:1px solid #e9c992;border-radius:9px;background:#fffaf0;color:#795018;font-size:13px;line-height:1.6}
.physical-adjustment-notice p{margin:5px 0 0}.physical-adjustment-muted{color:#657486;font-size:12px;line-height:1.65}
.physical-adjustment-error{padding:11px 12px;border:1px solid #edb2a9;border-radius:9px;background:#fff3ef;color:#a12e1f;line-height:1.6;overflow-wrap:anywhere}.physical-adjustment-error[hidden]{display:none}
.physical-adjustment-item{margin:15px 0 10px}.physical-adjustment-item h3{margin:0 0 5px;font-size:18px;overflow-wrap:anywhere}.physical-adjustment-item p{margin:0;color:#657486;font-size:12px;overflow-wrap:anywhere}
.physical-adjustment-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.physical-adjustment-metrics article{display:grid;gap:6px;min-width:0;padding:12px;border:1px solid #dce8e2;border-radius:9px;background:#f7faf8}.physical-adjustment-metrics span,.physical-adjustment-metrics small{color:#657486;font-size:11px}.physical-adjustment-metrics strong{font-size:20px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.physical-adjustment-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:18px 0}.physical-adjustment-fields label,.physical-adjustment-search{display:grid;gap:7px;min-width:0;font-size:13px;font-weight:750}.physical-adjustment-fields small{color:#7d5020;font-size:12px;font-weight:500;line-height:1.6}.physical-adjustment-fields input,.physical-adjustment-fields textarea,.physical-adjustment-search input{width:100%;min-width:0;min-height:44px;border:1px solid #c9d7d1;border-radius:8px;padding:10px 12px;background:#fff;color:#172131;font:inherit}.physical-adjustment-fields textarea{min-height:85px;resize:vertical}.physical-adjustment-wide{grid-column:1/-1}
.physical-adjustment-picks{margin:18px 0;padding-top:14px;border-top:1px solid #dce7e1}.physical-adjustment-picks h3{margin:0;font-size:16px}.physical-adjustment-picks>p{font-size:12px;line-height:1.65;color:#657486}.physical-adjustment-search{margin:12px 0}
.physical-adjustment-unit-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.physical-adjustment-unit{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:start;gap:8px;min-height:44px;padding:11px;border:1px solid #d8e2de;border-radius:9px;background:#fafcfb;cursor:pointer}.physical-adjustment-unit.is-recovery{border-color:#9bcbbc;background:#eefaf3}.physical-adjustment-unit input,.physical-adjustment-confirm input{width:22px;height:22px;min-height:22px;margin:1px 0 0;padding:0;accent-color:#08766b}.physical-adjustment-unit>span{display:grid;gap:5px;min-width:0}.physical-adjustment-unit strong{font-family:ui-monospace,Consolas,monospace;font-size:12px;overflow-wrap:anywhere}.physical-adjustment-unit small{font-size:11px;color:#657486;line-height:1.5;overflow-wrap:anywhere}.physical-adjustment-unit b{font-size:11px;color:#9b4c22;line-height:1.5}.physical-adjustment-unit.is-recovery b{color:#087044}
.physical-adjustment-pagination{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center;margin:12px 0;text-align:center;font-size:12px;color:#657486}.physical-adjustment-actions{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0}.physical-adjustment-actions button{flex:1 1 190px}
.physical-adjustment-preview{margin:18px 0;padding:14px;border:1px solid #b6d6c9;border-radius:10px;background:#f5fcf8}.physical-adjustment-preview h3{margin:0 0 12px;font-size:17px}.physical-adjustment-preview p{font-size:12px;line-height:1.65}.physical-adjustment-reason{white-space:pre-wrap;overflow-wrap:anywhere}.physical-adjustment-code-summary h4{font-size:13px;margin:12px 0 7px}.physical-adjustment-code-summary ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0;padding-left:18px}.physical-adjustment-code-summary li{font-family:ui-monospace,Consolas,monospace;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.physical-adjustment-confirm{display:flex;gap:10px;align-items:flex-start;min-height:44px;padding:12px;border:1px solid #debd8b;border-radius:9px;background:#fffaf0;font-size:13px;line-height:1.7;cursor:pointer}.physical-adjustment-confirm input{flex:0 0 22px}.physical-adjustment-confirm span{min-width:0;overflow-wrap:anywhere}.physical-adjustment-dialog .physical-adjustment-apply{width:100%;margin:12px 0;background:#08766b;border-color:#08766b;color:#fff}.physical-adjustment-success{padding:14px;border:1px solid #98cdb8;border-radius:9px;background:#eefbf3;color:#075c3b}.physical-adjustment-success h3{margin-top:0;font-size:17px}.physical-adjustment-success p{font-size:13px;line-height:1.6}
@media(max-width:600px){.physical-adjustment-dialog{width:calc(100vw - 14px);max-height:calc(100dvh - 14px);border-radius:10px}.physical-adjustment-header{padding:12px}.physical-adjustment-header h2{font-size:18px}.physical-adjustment-body{padding:12px}.physical-adjustment-metrics,.physical-adjustment-fields,.physical-adjustment-unit-list,.physical-adjustment-code-summary ul{grid-template-columns:minmax(0,1fr)}.physical-adjustment-wide{grid-column:auto}.physical-adjustment-actions{display:grid;grid-template-columns:minmax(0,1fr)}.physical-adjustment-actions button{width:100%}.physical-adjustment-pagination{gap:5px}.physical-adjustment-pagination button{padding-inline:7px}}
