/* Only the GSE/KWE route-duty editor opts in. No generic dialog overrides. */
html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers){--ux-dialog-width:1120px;--wd-dialog-width:1120px}
html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) .wd-dialog-body{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:22px;padding:24px;background:var(--ux-paper,#fff)}
html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) .wd-dialog-body>.popup-section{grid-column:1/-1!important;box-sizing:border-box;width:100%;min-width:0;margin:0!important;padding:20px!important;border:1px solid var(--ux-line,#b8cad8)!important;border-radius:9px!important;background:var(--ux-soft,#f1f5f8)}
html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) .popup-section>legend{width:auto;max-width:100%;padding:0 8px!important;margin:0 0 12px!important;border:0!important;font-size:17px!important;line-height:1.4;font-weight:700}
html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) :is(.formgrid,#route-duty-drivers){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px 20px;align-items:start}
html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) label{display:grid;gap:7px;min-width:0;line-height:1.4;white-space:normal;overflow-wrap:normal;word-break:normal}
html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) :is(select,input:not([type=checkbox])){width:100%;max-width:100%;min-height:46px;padding:10px 12px;font-size:15px;text-overflow:ellipsis}
html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) .route-duty-driver{display:grid;align-content:start;gap:14px;min-width:0;padding:18px;border:1px solid var(--ux-line,#b8cad8);border-top:4px solid var(--ux-primary,#245e89);border-radius:7px;background:var(--ux-paper,#fff)}
html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) .route-duty-driver h4{margin:0;font-size:16px;line-height:1.4}
html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) .route-duty-driver p{margin:0;font-size:13px;line-height:1.5}
html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) .route-duty-extra-positions{display:grid;gap:14px;padding-top:14px;border-top:1px solid var(--ux-line,#b8cad8)}
html #dialog.wd-unified-dialog[data-own-planning="true"] #route-duty-advanced-status{padding:12px 14px;margin:0 0 18px;border:1px solid #dcc184;border-left:4px solid #b28222;border-radius:5px;background:#fff6df;color:#644a16;line-height:1.55;font-size:13px;overflow-wrap:normal}
html #dialog.wd-unified-dialog[data-own-planning="true"] #route-duty-advanced-fields section{margin:0;padding:0;border:0;background:transparent}
html #dialog.wd-unified-dialog[data-own-planning="true"] #route-duty-advanced-fields h4{margin:0 0 14px;font-size:15px}
html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) label:has([data-standard-reserve-hint]:not([hidden])){grid-column:1/-1!important;grid-template-columns:minmax(0,1fr)}
html #dialog.wd-unified-dialog[data-own-planning="true"] [data-standard-reserve-hint]{display:block;max-width:none;white-space:normal;overflow-wrap:normal;word-break:normal;font-size:13px;line-height:1.55;padding:10px 12px;border-radius:5px;background:var(--ux-paper,#fff)}
html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) #duty-planning-options{margin:0 0 18px}
html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) .wd-dialog-header{align-items:flex-start;gap:18px}
html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) .wd-dialog-header h2{flex:1 1 280px;min-width:180px;font-size:22px}
html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) .wd-dialog-actions{gap:10px;padding:16px 24px!important}
html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) [hidden]{display:none!important}
@media(max-width:720px){html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) .wd-dialog-body{padding:16px;gap:20px}html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) :is(.formgrid,#route-duty-drivers){grid-template-columns:minmax(0,1fr)!important}html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) .route-duty-driver{padding:14px}html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) .wd-dialog-header{flex-wrap:wrap}html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) .wd-dialog-header h2{min-width:0;flex-basis:calc(100% - 70px)}html #dialog.wd-unified-dialog[data-own-planning="true"]:has(#route-duty-drivers) .wd-dialog-actions button{flex:1 1 180px!important}}
