/* Scope correction controls to the existing delivery modal and keep print layouts unchanged. */
.delivery-correction-effects { margin-top:16px; border:1px solid var(--line); border-radius:9px; overflow:hidden; }
.delivery-correction-effects>header { padding:11px 13px; background:var(--hover); border-bottom:1px solid var(--line); }
.delivery-correction-effects h3 { margin:0; font-size:15px; }
.delivery-correction-effects h4 { margin:12px 0 8px; font-size:14px; }
.delivery-correction-content { padding:12px 13px; }
.delivery-correction-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin:0 0 10px; }
.delivery-correction-summary>div { padding:9px 10px; background:var(--hover); border-radius:6px; min-width:0; }
.delivery-correction-summary span { display:block; color:var(--tertiary); font-size:12px; }
.delivery-correction-summary strong { display:block; margin-top:5px; font-size:15px; overflow-wrap:anywhere; }
.delivery-correction-issues { display:grid; gap:7px; margin:10px 0; }
.delivery-correction-issue { padding:9px 11px; border:1px solid #efd0cc; border-left:3px solid var(--danger); border-radius:6px; background:var(--danger-soft); color:var(--danger); font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.delivery-correction-issue.warning { color:var(--warning); background:var(--warning-soft); border-color:#eed9ae; }
.delivery-correction-issue .button { margin-left:8px; background:#fff; }
.delivery-correction-record { border:1px solid var(--line); border-radius:7px; margin-top:9px; padding:10px 12px; }
.delivery-correction-record>summary { cursor:pointer; font-size:13px; font-weight:600; line-height:1.6; }
.delivery-correction-record>summary .field-hint { font-weight:400; margin-left:10px; }
.delivery-correction-effects .table-wrap { margin-top:9px; }
.delivery-correction-effects table { table-layout:fixed; min-width:760px; }
.delivery-correction-effects :is(td,th) { padding:9px 7px; overflow-wrap:anywhere; text-align:center; vertical-align:middle; }
.delivery-correction-effects :is(input,select) { width:100%; max-width:100%; min-width:0; padding:6px 8px; border:1px solid var(--line); border-radius:6px; background:var(--surface); color:var(--ink); font:inherit; }
.delivery-correction-effects input[type=checkbox] { width:auto; min-height:0; margin:0 7px 0 0; vertical-align:middle; }
.delivery-correction-effects input:disabled { background:var(--hover); }
.delivery-correction-effects .form-grid { margin-top:9px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.delivery-correction-reopen { display:grid; gap:9px; margin-top:9px; }
.delivery-correction-reopen label { display:block; line-height:1.6; font-size:13px; }
.delivery-correction-reopen input[type=text] { margin-top:7px; }
.delivery-correction-note { margin-top:9px; color:var(--muted); font-size:12px; line-height:1.6; }
.delivery-correction-error { margin-top:14px; }
.delivery-correction-current { margin-top:7px; font-size:12px; color:var(--tertiary); }
.delivery-correction-footer { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:12px; }
.delivery-correction-invalid { outline:2px solid var(--danger); outline-offset:1px; }
.delivery-correction-effects [hidden],.delivery-correction-error[hidden] { display:none!important; }
