/* Scoped to the edit control and open editor. The closed Production layout stays intact. */
.job-edit-trigger{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;min-width:40px;padding:10px;border:1px solid #d9ddd8;border-radius:50%;background:#fff;color:#40563e;cursor:pointer;margin-left:8px}
.job-edit-trigger svg{width:19px;height:19px;pointer-events:none}
.job-edit-trigger:hover{background:#eef2eb}.job-edit-trigger:focus-visible,.job-edit-dialog :focus-visible{outline:3px solid #65884b;outline-offset:3px}
.job-edited-indicator{display:block;color:#61764b;font-size:11px;font-weight:600;line-height:1.5;margin:3px 0}
.job-edit-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 32px));max-width:760px;max-height:calc(100dvh - 40px);padding:24px;border:1px solid #d8ded4;border-radius:20px;background:#fffefb;color:#263426;overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 80px #14251240}
.job-edit-dialog::backdrop{background:#14251280}.job-edit-dialog *{box-sizing:border-box}.job-edit-dialog[open]{display:block}
.job-edit-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.job-edit-header h2{font-size:24px;line-height:1.25;margin:5px 0 12px}.job-edit-header>button{flex-shrink:0;min-height:44px}
.job-edit-dialog p,.job-edit-dialog li{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.job-edit-dialog .helper{color:#5f6b5b;font-size:12px}.job-edit-dialog summary{cursor:pointer;font-weight:600;padding:10px 0;min-height:44px}.job-edit-dialog details{border-top:1px solid #e2e6dd;margin:12px 0}
.job-edit-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin:18px 0}.job-edit-field{min-width:0;margin:0;padding:14px;border:1px solid #dce2d6;border-radius:12px}.job-edit-field legend{max-width:100%;font-weight:650;font-size:14px;padding:0 5px}.job-edit-original,.job-edit-current{margin:0 0 8px;font-size:12px!important}
.job-edit-dialog input[type=text],.job-edit-dialog input[type=date]{display:block;width:100%;max-width:100%;min-width:0;min-height:44px;margin:6px 0;padding:10px 12px;border:1px solid #bac5b1;border-radius:8px;background:#fff;color:#20311e;font:inherit;font-size:16px}.job-edit-dialog input:disabled{background:#edf0e8;color:#53624c}.job-edit-dialog label{font-size:14px;font-weight:600}.job-edit-dialog .text-button{min-height:44px;text-align:left;white-space:normal}.job-edit-reset-note{color:#4b6a35;font-size:12px!important}
.job-edit-facts{margin:12px 0}.job-edit-facts>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:12px;padding:8px 0;border-bottom:1px solid #eef0e9}.job-edit-facts dt{font-size:12px;color:#5e6a59}.job-edit-facts dd{margin:0;font-size:13px;overflow-wrap:anywhere;white-space:pre-wrap}.job-edit-diff section{border:1px solid #dce2d6;border-radius:12px;padding:12px;margin:12px 0}.job-edit-diff h4{margin:0;font-size:15px}
.job-edit-confirm-label{display:flex;gap:10px;align-items:flex-start;margin:20px 0}.job-edit-confirm-label input{flex-shrink:0;width:20px;height:20px;accent-color:#596f43}.job-edit-shortcuts,.job-edit-dialog .dialog-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 0}.job-edit-dialog button{max-width:100%;white-space:normal}.job-edit-dialog .notice{margin:14px 0;padding:12px;border-radius:8px;background:#f2f4e9;font-size:14px;line-height:1.5}.job-edit-dialog .notice.error{background:#fff0eb;color:#843b2a}
@media(max-width:560px){.job-edit-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:16px;border-radius:14px}.job-edit-header h2{font-size:20px}.job-edit-fields{grid-template-columns:minmax(0,1fr)}.job-edit-facts>div{grid-template-columns:minmax(0,1fr);gap:4px}.job-edit-dialog .dialog-actions>button{flex:1 1 150px;min-height:44px}.job-edit-trigger{flex-basis:44px;width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){.job-edit-dialog{scroll-behavior:auto}}
.detail-title:has(>.job-edit-trigger){align-items:center;gap:8px}.detail-title:has(>.job-edit-trigger)>span:first-child{margin-right:auto;overflow-wrap:anywhere;min-width:0}.detail-title>.job-edit-trigger{margin-left:0}.job-edit-audit-entry{border-bottom:1px solid #dce2d6;padding:14px 0}.job-edit-audit-entry h3{font-size:16px;margin:0 0 8px}.job-edit-audit-entry h4{font-size:13px;margin:12px 0 4px}

.job-edit-trigger{width:auto;flex-basis:auto;border-radius:8px;gap:7px;padding:8px 12px;white-space:nowrap}.job-edit-trigger span{font-size:13px}.job-edit-field select{width:100%;padding:11px;border:1px solid #bac3b5;border-radius:7px;background:white;color:#20331f;font:inherit}
