/* R213 approved layouts; shared operations and immutable document rules stay server-owned. */
.r213-page,.r213-sheet{--r213-accent:var(--gw-accent,#1762f5);font:14px/1.55 system-ui,-apple-system,Segoe UI,sans-serif;color:#18324e;min-width:0}.r213-page{max-width:1540px;margin:auto;padding:8px 8px 28px}.r213-title{display:flex!important;justify-content:space-between;gap:18px;align-items:flex-start;margin:0 0 24px;padding:0!important;border:0!important;background:transparent!important;position:static!important}.r213-title h1{font:750 clamp(25px,3vw,34px)/1.2 system-ui;margin:0 0 9px;color:#142e47}.r213-title h1 small{display:inline-block;background:#edf1f7;color:#52667c;font:600 12px/1.5 system-ui;padding:4px 10px;border-radius:20px;vertical-align:middle}.r213-title p,.r213-muted{color:#64788e;margin:8px 0;font-size:13px}.r213-page h2,.r213-sheet h2{font:700 20px/1.3 system-ui;color:#142e47;margin:0 0 20px}.r213-page h3,.r213-sheet h3{font:700 16px/1.4 system-ui;color:#18324e;margin:0 0 16px}.r213-card{background:#fff;border:1px solid #dde5ee;border-radius:13px;padding:22px;margin:0 0 18px;box-shadow:0 2px 4px #18324e05;min-width:0}.r213-page button,.r213-sheet button,.r213-page .button{border:1px solid #d0dcea;border-radius:9px;background:#fff;color:#18324e;padding:10px 15px;min-height:44px;font:600 13px/1.4 system-ui;cursor:pointer;text-transform:none;letter-spacing:0;box-shadow:none}.r213-page button:hover,.r213-sheet button:hover{border-color:var(--r213-accent)}.r213-page .primary,.r213-sheet .primary{background:var(--r213-accent)!important;border-color:var(--r213-accent)!important;color:#fff!important}.r213-page button:disabled,.r213-sheet button:disabled{opacity:.55;cursor:wait}.r213-page .r213-link,.r213-sheet .r213-link{border:0;background:transparent;padding:4px 0;color:var(--r213-accent);text-align:left}.r213-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}.r213-summary{position:sticky;top:14px}.r213-summary dl{margin:0}.r213-summary dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:15px;margin:18px 0}.r213-summary dt{font-size:13px}.r213-summary dd{margin:0;white-space:nowrap;font-weight:650}.r213-summary .r213-grand{border-top:1px solid #dce5ef;padding-top:18px;font-size:19px}.r213-summary .r213-grand dt{font-size:17px;font-weight:750}.r213-check{background:#edf4ff;border-radius:10px;padding:16px;margin-top:22px}.r213-check p{font-size:13px;margin-bottom:0;color:#526a82}.r213-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.r213-address{display:grid;grid-template-columns:180px minmax(0,1fr);gap:16px}.r213-field{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;margin:0 0 15px!important;min-width:0;font-size:12px!important;font-weight:550!important;text-transform:none!important;letter-spacing:0!important;color:#233f5d!important}.r213-field input,.r213-field select,.r213-field textarea,.r213-position-kind select{display:block!important;width:100%!important;min-width:0;min-height:44px;padding:9px 12px;background:#fff;border:1px solid #ccdaeb!important;border-radius:8px;font:400 14px/1.4 system-ui;color:#18324e;box-sizing:border-box}.r213-field input:focus,.r213-field textarea:focus,.r213-field select:focus{outline:2px solid color-mix(in srgb,var(--r213-accent) 65%,white);outline-offset:1px}.r213-field input[readonly]{background:#f6f8fb}.r213-field textarea{resize:vertical}.r213-short{max-width:340px}.r213-section{padding:22px 0 12px;border-bottom:1px solid #e4ebf2}.r213-section:last-of-type{border-bottom:0}.r213-kind{display:flex;border:1px solid #cbd8e7;border-radius:9px;overflow:hidden;margin-top:22px}.r213-kind label{flex:1;text-align:center;padding:14px;cursor:pointer;margin:0}.r213-kind label:has(input:checked){background:var(--r213-accent);color:#fff}.r213-kind input{position:absolute;opacity:0}.r213-kind label:focus-within{outline:2px solid #142e47;outline-offset:-3px}.r213-extra{border:1px solid #dce5ef;border-radius:10px;background:#fff;margin:12px 0;padding:0 18px}.r213-extra>summary{cursor:pointer;padding:13px 0;font-size:14px;font-weight:650;color:#1a3653}.r213-extra small{font-size:11px;font-weight:400;border-radius:12px;background:#f0f3f8;color:#64778b;padding:3px 9px;margin-left:8px}.r213-extra[open]>summary{margin-bottom:15px}.r213-extra p{font-size:13px}.r213-pre{white-space:pre-wrap}.r213-positions{display:grid;gap:0;margin:18px 0}.r213-position{min-width:0;border:0;border-top:1px solid #e0e8f1;border-radius:0;margin:0;padding:18px 0;display:grid;grid-template-columns:minmax(160px,1fr) 80px 80px 110px 110px;gap:12px;align-items:start}.r213-position>legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.r213-position .r213-field{margin:0!important}.r213-label{min-width:0}.r213-position-kind{display:grid;gap:4px;margin:8px 0 0;font-size:11px;color:#627990}.r213-position-kind select{font-size:11px;min-height:36px;padding:6px}.r213-line-total{display:grid;text-align:right;gap:6px}.r213-line-total small{font-size:11px;color:#63788e}.r213-line-total strong{white-space:nowrap;margin-top:8px;font-size:14px}.r213-line-total button{padding:0;border:0;color:#62768b;min-height:32px;font-size:11px}.r213-line-extra{grid-column:1/-1;font-size:11px;color:#61778f}.r213-line-extra>summary{cursor:pointer}.r213-line-extra .r213-field{max-width:180px}.r213-alternative{background:#fffbf2;border-left:3px solid #d6a744;padding-left:12px}.r213-results{border:1px solid #ccd9e8;border-radius:9px;background:#fff;margin:-6px 0 18px;max-height:280px;overflow:auto}.r213-results[hidden]{display:none}.r213-results button{display:block;width:100%;border:0;border-radius:0;text-align:left;border-bottom:1px solid #e8edf4}.r213-results button:hover,.r213-results button:focus{background:#edf4ff}.r213-results strong,.r213-results small{display:block}.r213-results small{font-size:12px;font-weight:400;color:#64788f}.r213-results p{padding:12px;color:#64788f}.r213-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.r213-section-head h2{margin:0}.r213-actions{display:flex!important;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;padding:18px 0 0;margin-top:18px;border-top:1px solid #dce5ee;background:#fff;position:static;box-shadow:none}.r213-actions>small{margin-right:auto;color:#667d95;max-width:400px;font-size:12px}.r213-sticky{position:sticky;bottom:0;z-index:10;border:1px solid #dce5ef;border-radius:11px;padding:14px;margin-top:24px}.r213-actions button{white-space:nowrap}.r213-sheet{width:min(1080px,calc(100vw - 32px));max-width:1080px;max-height:calc(100dvh - 32px);border:1px solid #d8e2ee;border-radius:15px;padding:28px;box-sizing:border-box;overflow:auto;box-shadow:0 18px 70px #182c3b33}.r213-sheet::backdrop{background:#152b3d55}.r213-sheet-head{position:static!important;display:flex!important;align-items:flex-start;justify-content:space-between;padding:0!important;margin:0!important;border:0!important;background:#fff!important;gap:20px}.r213-sheet-head h2{margin:0}.r213-sheet-head button{font-size:24px;border:0;min-width:40px;padding:0;color:#71839a}.r213-sheet .r213-page{padding:0}.r213-sheet .r213-editor-layout{grid-template-columns:minmax(0,1fr) 250px}.r213-sheet label:not(.r213-field){font-size:13px}.r213-sheet input[type=checkbox]{width:18px;height:18px;vertical-align:middle;accent-color:var(--r213-accent);margin:8px 8px 8px 0}.r213-template-position{display:flex!important;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #e3ebf4}.r213-template-position small{display:block;color:#687e94}.r213-pdf{display:block;width:100%;height:auto;border:1px solid #dce5ee}.r213-page [data-r213-error]:not([hidden]),.r213-sheet [data-r213-error]:not([hidden]){padding:13px 16px;margin-top:18px;border:1px solid #e3ad5c;background:#fffaf0;border-radius:9px;color:#7d4e14;white-space:pre-wrap;font-size:13px}.r213-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0}.r213-tiles>a{display:flex;gap:20px;align-items:center;justify-content:space-between;text-decoration:none;padding:27px 25px;border:1px solid #dce5ef;border-radius:13px;background:#fff;color:#173452;box-shadow:0 2px 5px #19314905;min-height:110px}.r213-tiles strong{font-size:23px;display:block;margin-bottom:8px}.r213-tiles small{font-size:14px;color:#64788d}.r213-tiles>a>span:last-child{font-size:28px;color:var(--r213-accent)}.r213-tiles>a:hover{border-color:var(--r213-accent)}.r213-recent{display:flex;justify-content:space-between;gap:15px;color:#193b5b;text-decoration:none;padding:15px 0;border-top:1px solid #e2e9f1}.r213-recent>span{color:var(--r213-accent)}.r213-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:6px 0 22px}.r213-metrics span,.r213-metrics strong{display:block}.r213-metrics span{font-size:12px;color:#64788c}.r213-metrics strong{margin-top:9px;font-size:22px}.r213-draft-list{display:grid;gap:12px;margin-top:22px}
@media(max-width:1200px){.r213-editor-layout{grid-template-columns:minmax(0,1fr) 260px}.r213-position{grid-template-columns:minmax(140px,1fr) 66px 65px 85px 90px;gap:8px}.r213-card{padding:17px}}
@media(max-width:1000px){.r213-editor-layout,.r213-sheet .r213-editor-layout{grid-template-columns:minmax(0,1fr)}.r213-summary{position:static}.r213-summary dl{display:flex;flex-wrap:wrap;gap:25px}.r213-summary dl>div{display:block}.r213-summary .r213-grand{border:0;padding:0}.r213-check{display:none}.r213-title{flex-wrap:wrap}.r213-sheet{padding:20px}.r213-sticky{padding-bottom:60px}}
@media(max-width:600px){.r213-page{padding:4px 0 20px}.r213-title h1{font-size:25px}.r213-grid{grid-template-columns:1fr}.r213-address{grid-template-columns:100px minmax(0,1fr)}.r213-position{grid-template-columns:repeat(3,minmax(0,1fr));padding:18px 0;gap:12px}.r213-label{grid-column:1/-1}.r213-line-total{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;text-align:left}.r213-line-total strong{margin:0}.r213-line-total small{display:none}.r213-line-extra{grid-column:1/-1}.r213-actions{gap:8px}.r213-actions>small{flex-basis:100%}.r213-actions button{flex:1;min-width:115px}.r213-card{padding:17px 13px}.r213-tiles{gap:12px}.r213-tiles>a{padding:19px 15px;min-height:135px}.r213-tiles strong{font-size:20px}.r213-tiles small{font-size:12px}.r213-tiles>a>span:last-child{font-size:20px}.r213-title>button{font-size:12px}.r213-section-head{align-items:flex-start;flex-wrap:wrap}.r213-section-head h2{font-size:19px}.r213-metrics{grid-template-columns:1fr}.r213-extra{padding:0 13px}.r213-extra small{display:inline-block}.r213-sheet{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:18px}.r213-sticky{bottom:0;padding-bottom:70px}}

/* This release-specific asset also repairs cached R209 primary navigation colours. */
body.design-app-r132:not([data-motoriqo-program]) .program-rail .q209-nav .q209-mainlink,
body.design-app-r132:not([data-motoriqo-program]) .program-rail .q209-nav>.q209-more>summary,
body.worknav-ready-r164 #nav.q209-nav .q209-mainlink,
body.worknav-ready-r164 #nav.q209-nav>.q209-more>summary{color:#18324e!important}
body.design-app-r132:not([data-motoriqo-program]) .program-rail .q209-nav .q209-mainlink[aria-current=page],body.worknav-ready-r164 #nav.q209-nav .q209-mainlink[aria-current=page]{color:var(--gw-accent,var(--primary,#1762f5))!important}
/* Existing optional assistance stays available in its original sections; these approved editors use their own controls. */
#main:has(.r213-page) .d210-helper:not(:has([role=alert]:not([hidden]),.error:not(:empty),.warning:not(:empty))),
#main:has(.r213-page) .r187-search,
:is(.r213-page,.r213-sheet) [data-workday-picker-r182],
:is(.r213-page,.r213-sheet) [data-r186-material],
:is([data-r213-document],[data-r213-customer]) [data-workplace-required-r183],
:is([data-r213-document],[data-r213-customer]) .clarity-label-r184:empty{display:none!important}
.r213-page button:not(.primary),.r213-sheet button:not(.primary){background:#fff!important;color:#18324e!important;border-color:#cbd9e9!important;box-shadow:none!important}
.r213-page .r213-link,.r213-sheet .r213-link{background:transparent!important;color:var(--r213-accent)!important;border:0!important;box-shadow:none!important}
body.design-app-r132:not([data-motoriqo-program]) .program-rail .q209-nav .q209-mainlink,
body.worknav-ready-r164 #nav.q209-nav .q209-mainlink{display:flex!important;align-items:center;gap:11px;line-height:1.45}
.q209-mainlink .worknav-icon-r164{display:inline-flex;width:18px;height:18px;flex:0 0 18px}

/* R220 customer layout: two compact cards, one inner scroll area, visible actions. */
.r213-sheet.r220-customer-sheet{width:min(980px,calc(100vw - 32px))!important;max-width:980px!important;max-height:calc(100dvh - 32px)!important;padding:0!important;overflow:hidden!important;background:#f5f8fc!important;min-width:0!important}
.r213-sheet.r220-customer-sheet[open]{display:flex!important;flex-direction:column!important}
.r220-customer-sheet,.r220-customer-sheet *{box-sizing:border-box}
.r220-customer-sheet>.r213-sheet-head{flex:0 0 auto!important;padding:19px 24px!important;border-bottom:1px solid #dde6ef!important;align-items:center!important;gap:12px!important;min-height:0!important}
.r220-customer-sheet>.r213-sheet-head h2{font-size:23px!important;margin:0!important;line-height:1.25!important}
.r220-customer-sheet>.r213-sheet-head button{width:40px!important;height:40px!important;flex:0 0 40px!important}
.r220-customer-sheet>form{display:flex!important;flex-direction:column!important;min-height:0!important;min-width:0!important;width:100%!important;margin:0!important;gap:0!important;overflow:hidden!important}
.r220-customer-body{padding:19px 24px 10px;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;min-width:0;min-height:0}
.r220-customer-intro{margin:0 0 14px!important;color:#60758c;font-size:13px;line-height:1.5}
.r220-customer-sheet .r213-kind{margin:0 0 18px!important;max-width:380px!important;background:white}
.r220-customer-sheet .r213-kind label{padding:10px 16px!important;font-weight:650!important;min-width:0!important;line-height:1.5!important}
.r220-customer-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:18px;min-width:0}
.r220-customer-card{min-width:0;padding:18px;background:#fff;border:1px solid #dce5ef;border-radius:12px}
.r220-customer-card h3{font-size:15px!important;margin:0 0 19px!important;display:flex;align-items:center;gap:9px}
.r220-customer-card h3>span{font-size:11px;background:color-mix(in srgb,var(--r213-accent) 10%,white);color:var(--r213-accent);padding:5px 7px;border-radius:6px}
.r220-customer-sheet .r213-field{width:auto!important;max-width:100%!important;min-width:0!important;margin-bottom:13px!important;line-height:1.45!important;overflow-wrap:anywhere}
.r220-customer-sheet .r213-field input,.r220-customer-sheet .r213-field select,.r220-customer-sheet .r213-field textarea{max-width:100%!important;min-width:0!important;width:100%!important;font-size:14px!important;min-height:42px!important}
.r220-customer-sheet .r213-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;min-width:0!important}
.r220-customer-sheet .r213-address{grid-template-columns:105px minmax(0,1fr)!important;gap:12px!important;min-width:0!important}
.r220-customer-sheet .r213-short{max-width:260px!important}
.r220-customer-sheet [hidden]{display:none!important}
.r220-customer-note,.r220-address-hint{font-size:12px;line-height:1.5;color:#667b92;margin:2px 0 0}
.r220-address-hint{background:#f2f6fc;border-radius:8px;padding:11px;margin:2px 0 15px}
.r220-customer-sheet .r213-extra{margin:15px 0 0;padding:0 12px;min-width:0;overflow-wrap:anywhere}
.r220-customer-sheet .r213-extra summary{font-size:12px;line-height:1.6;white-space:normal}
.r220-customer-sheet .r213-extra small{white-space:nowrap}
.r220-customer-sheet .r220-customer-extra{margin:16px 0 10px!important;background:transparent}
.r220-customer-extra h3{font-size:14px!important;margin:0 0 12px!important}
.r220-customer-sheet .r220-customer-actions{position:static!important;flex:0 0 auto!important;margin:0!important;padding:13px 24px!important;border:0!important;border-top:1px solid #dde6ef!important;border-radius:0!important;background:#fff!important;gap:10px!important;min-width:0!important;box-shadow:0 -4px 14px #19314b04!important}
.r220-customer-actions>small{font-size:12px!important}
.r220-customer-actions button{min-width:120px!important;min-height:42px!important}
@media(max-width:720px){.r220-customer-grid{grid-template-columns:minmax(0,1fr)}.r213-sheet.r220-customer-sheet{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important}.r220-customer-sheet>.r213-sheet-head{padding:13px 16px!important}.r220-customer-sheet>.r213-sheet-head h2{font-size:21px!important}.r220-customer-body{padding:15px 16px 10px}.r220-customer-sheet .r220-customer-actions{padding:12px 16px!important}.r220-customer-actions>small{flex-basis:auto!important}.r220-customer-actions button{flex:0 1 auto!important;min-width:100px!important}.r220-customer-card{padding:15px}}
@media(max-width:380px){.r220-customer-sheet .r213-grid{grid-template-columns:minmax(0,1fr)!important}.r220-customer-sheet .r213-address{grid-template-columns:85px minmax(0,1fr)!important}.r220-customer-actions>small{flex-basis:100%!important}.r220-customer-actions button{flex:1!important}}

.r220-customer-sheet .r213-kind label{position:relative}
.r220-customer-sheet .r213-kind input[type=radio]{position:absolute!important;left:0!important;top:0!important;width:1px!important;height:1px!important;min-height:0!important;margin:0!important;padding:0!important;clip-path:inset(50%);overflow:hidden}

.r220-customer-sheet>.r213-sheet-head button{font-size:22px!important;line-height:1!important}
.r220-customer-sheet .required-note-r176,.r220-customer-sheet [data-workplace-required-r183]{display:none!important}
