.workspace-panel-overlay{position:fixed!important;inset:var(--portal-topbar-height,64px) 0 0 var(--portal-sidebar-width,232px)!important;z-index:20990!important;background:rgba(16,37,38,.22)!important;backdrop-filter:blur(2px);border:0!important;border-radius:0!important;padding:0!important;cursor:default!important;animation:workspace-panel-fade .18s ease-out}
#job-record-screen.workspace-panel-drawer,#customer-profile-screen.workspace-panel-drawer,#eic-register.workspace-panel-drawer,#eic-screen.workspace-panel-drawer,#workspace-approval-panel.workspace-panel-drawer{z-index:21000!important}
.workspace-panel-drawer{position:fixed!important;inset:calc(var(--portal-topbar-height,64px) + 12px) 12px 12px auto!important;width:min(940px,calc(100vw - var(--portal-sidebar-width,232px) - 36px))!important;max-width:none!important;height:auto!important;z-index:21000!important;display:block!important;margin:0!important;padding:0!important;border:1px solid #dee7e8!important;border-radius:18px!important;background:#f4f6f9!important;color:#102526;box-shadow:0 24px 80px rgba(16,37,38,.2)!important;overflow:auto!important;overscroll-behavior:contain;animation:workspace-panel-enter .2s ease-out;scrollbar-gutter:stable}
.workspace-panel-drawer>.certificate-top{position:sticky!important;inset:0 0 auto!important;z-index:3;display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;min-height:65px;gap:8px;background:rgba(255,255,255,.98)!important;border-bottom:1px solid #e3e9ed;padding:12px 22px!important;border-radius:17px 17px 0 0}
.workspace-panel-drawer>.certificate-top>p{margin:0;color:#698080;font-size:10px;letter-spacing:.12em;font-weight:800}.workspace-panel-drawer>.certificate-top>button{min-height:38px;padding:8px 12px;border:1px solid #dbe5e6;border-radius:9px;color:#007f50;background:#fff;font-weight:700}
.workspace-panel-drawer>main{display:block!important;max-width:none!important;width:auto!important;margin:0!important;padding:22px!important;min-width:0}.workspace-panel-drawer .certificate-title{margin:0 0 20px!important}.workspace-panel-drawer .certificate-title h1,.workspace-panel-drawer>main>h1{font-size:25px;line-height:1.25;color:#102526;margin:0 0 9px}.workspace-panel-drawer .certificate-title>span{font-size:13px;line-height:1.55;color:#6a7c82}
.workspace-panel-drawer .office-card{border-color:#e0e7eb;border-radius:13px;padding:18px;box-shadow:none}.workspace-panel-drawer .job-record-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.workspace-panel-drawer .customer-profile-columns,.workspace-panel-drawer .job-record-details{grid-template-columns:minmax(0,1fr)!important}.workspace-panel-drawer form,.workspace-panel-drawer form>*{min-width:0}.workspace-panel-drawer input,.workspace-panel-drawer select,.workspace-panel-drawer textarea{max-width:100%;box-sizing:border-box}.workspace-panel-drawer [data-workspace-panel-status]{width:100%;margin:0;font-size:12px;color:#8b5614}.workspace-panel-drawer [data-office-panel]{display:block!important}.workspace-panel-context{background:transparent!important;pointer-events:none!important}.workspace-panel-context>:not(.workspace-panel-drawer):not(.workspace-panel-overlay){visibility:hidden!important}.workspace-panel-context .workspace-panel-drawer,.workspace-panel-context .workspace-panel-overlay{visibility:visible!important;pointer-events:auto!important}
.workspace-panel-drawer :focus-visible{outline:3px solid rgba(0,159,97,.35);outline-offset:3px}.workspace-panel-drawer .portal-form-autosave{margin-bottom:14px}.workspace-panel-drawer .job-record-summary article{padding:15px}.workspace-panel-drawer .job-record-summary b{font-size:22px}.workspace-panel-drawer .customer-form-grid{gap:13px}.workspace-panel-drawer .customer-form-grid label{font-size:12px}.workspace-panel-drawer .customer-site-editor{margin-bottom:14px}
.workspace-panel-drawer h1[tabindex="-1"]:focus,.workspace-panel-drawer h2[tabindex="-1"]:focus{outline:none}
@keyframes workspace-panel-enter{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:translateX(0)}}@keyframes workspace-panel-fade{from{opacity:0}to{opacity:1}}
@media(max-width:900px){.workspace-panel-overlay{left:0!important}.workspace-panel-drawer{inset:var(--portal-topbar-height,64px) 0 0!important;width:100%!important;border-radius:16px 16px 0 0!important}.workspace-panel-drawer>main{padding:17px!important}.workspace-panel-drawer>.certificate-top{padding:10px 16px!important}.workspace-panel-drawer .job-record-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-panel-drawer .customer-form-grid,.workspace-panel-drawer .job-time-form{grid-template-columns:minmax(0,1fr)!important}.workspace-panel-drawer .customer-form-grid .wide{grid-column:auto}.workspace-panel-drawer .certificate-title h1{font-size:23px}.workspace-panel-drawer .office-card{padding:15px}.workspace-panel-drawer button{min-height:42px}}
@media(prefers-reduced-motion:reduce){.workspace-panel-drawer,.workspace-panel-overlay{animation:none}}
.workspace-panel-drawer.workspace-panel-suspended,.workspace-panel-overlay.workspace-panel-suspended{display:none!important;pointer-events:none!important}

/* A job is a workspace page. Customers and approvals retain their drawers. */
body #job-record-screen.job-full-page{position:fixed!important;inset:var(--portal-topbar-height,64px) 0 0 var(--portal-sidebar-width,232px)!important;width:auto!important;max-width:none!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;animation:none!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;background:#f4f6f9!important}
body:not(.cp-shell) #job-record-screen.job-full-page{inset:0!important}
.workspace-panel-overlay.workspace-job-overlay{display:none!important}
body #job-record-screen.job-full-page>.certificate-top{border-radius:0!important;min-height:54px;padding:10px 28px!important}
body #job-record-screen.job-full-page>main{box-sizing:border-box;width:100%!important;max-width:none!important;margin:0!important;padding:24px 28px 36px!important;height:auto!important;max-height:none!important;overflow:visible!important;min-width:0}
body #job-record-screen.job-full-page .certificate-title{margin-bottom:16px!important}
body #job-record-screen.job-full-page .job-record-details{display:flex!important;align-items:center;flex-wrap:wrap;gap:14px 28px!important;margin:0 0 18px!important}
body #job-record-screen.job-full-page .job-record-details>div{min-width:0}
body #job-record-screen.job-full-page .job-record-details h3{font-size:13px;margin:0 0 8px!important}
body #job-record-screen.job-full-page .job-record-details dl{display:grid;grid-template-columns:auto minmax(0,1fr)!important;gap:4px 12px!important}
body #job-record-screen.job-full-page .job-site-notes[hidden]{display:none!important}
body #job-record-screen.job-full-page .job-operational-summary{margin-left:auto;color:#647582;font-size:12px}
body #job-record-screen.job-full-page .job-operational-summary b{font-size:20px;color:#18282e;margin-left:8px}
body #job-record-screen.job-full-page .job-operational-summary small{display:block;margin-top:3px}
body #job-record-screen.job-full-page [data-operational-hours-warning]:empty{display:none}
body #job-record-screen[data-job-view=review] .job-operational-summary,body #job-record-screen[data-job-view=operational] #job-programme-information{display:none!important}
body #job-record-screen.job-full-page .job-scope-editor{margin:12px 0}
body #job-record-screen.job-full-page summary{cursor:pointer;font-weight:650;min-height:44px;box-sizing:border-box;padding:12px 0;color:#193a36;font-size:14px}
body #job-record-screen.job-full-page .job-scope-editor[open] #job-scope-form{margin-top:10px}
body #job-record-screen.job-full-page .jp-heading h3{display:none}
body #job-record-screen.job-full-page .jp-heading{padding:0!important;height:auto!important;min-height:0!important;border:0!important;margin:6px 0 0!important}
body #job-record-screen.job-full-page .jp-work>[data-jp-status]{font-size:12px;margin:8px 0 12px;color:#647787}
body #job-record-screen.job-full-page .jp-work progress{margin:8px 0;height:6px}
body #job-record-screen.job-full-page [data-operational-hours-warning]{color:#8b5618;letter-spacing:normal;font-weight:500;margin:5px 0 0}
body #job-record-screen.job-full-page .jp-work{margin:0 0 18px!important}
body #job-record-screen.job-full-page :is(.job-billing-details,.job-history-details){margin:18px 0!important;padding:4px 18px!important}
body #job-record-screen.job-full-page [data-job-billing-content]{padding:12px 0}
body #job-record-screen.job-full-page .job-billing-details .job-record-grid{margin-top:14px}
body #job-record-screen.job-full-page .job-billing-details #job-record-summary{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body #job-record-screen.job-full-page .job-record-documents{margin:18px 0!important}
body #job-record-screen.job-full-page .job-record-documents>h2,body #job-record-screen.job-full-page [data-job-rams]>h2{font-size:18px;margin:0 0 12px}
body #job-record-screen.job-full-page #job-document-list{padding:0;list-style:none;margin-bottom:0}
body #job-record-screen.job-full-page .job-quotation-actions{display:flex;align-items:start;flex-wrap:wrap;gap:8px;margin:0 0 16px}
body #job-record-screen.job-full-page .job-quotation-options{position:relative}
body #job-record-screen.job-full-page .job-quotation-options>summary{padding:8px 12px;min-height:36px;font-size:12px}
body #job-record-screen.job-full-page .job-quotation-options>div{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0}
body #job-record-screen.job-full-page .job-customer-brand{border:0;background:transparent;padding:0;margin:10px 0 0;min-height:0}
body #job-record-screen.job-full-page .job-customer-brand img{max-height:46px;max-width:180px;width:auto;object-fit:contain}
body #job-record-screen.job-full-page .job-more-actions{margin:16px 0}
body #job-record-screen.job-full-page .job-more-actions:not(:has(button)),body #job-record-screen.job-full-page .job-quotation-options:not(:has(button)){display:none}
body #job-record-screen.job-full-page :is(.job-finish-action,.variation-invoice-launch){margin:8px 8px 8px 0}
body #job-record-screen.job-full-page .job-history-details .property-history{border:0;box-shadow:none;padding:8px 0;margin:0}
body #job-record-screen.job-full-page [data-variation-cost-status]:empty{display:none}
@media(max-width:900px){body #job-record-screen.job-full-page{left:0!important}body #job-record-screen.job-full-page>main{padding:18px 16px 30px!important}body #job-record-screen.job-full-page>.certificate-top{padding:10px 16px!important}body #job-record-screen.job-full-page .job-billing-details #job-record-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){body #job-record-screen.job-full-page .job-operational-summary{margin-left:0}body #job-record-screen.job-full-page .job-record-details{align-items:start;gap:16px!important}body #job-record-screen.job-full-page .job-record-grid{grid-template-columns:minmax(0,1fr)!important}body #job-record-screen.job-full-page .job-quotation-options{width:100%}body #job-record-screen.job-full-page .job-entry-form{grid-template-columns:minmax(0,1fr)!important}body #job-record-screen.job-full-page .job-entry-form>*{grid-column:auto!important;min-width:0}body #job-record-screen.job-full-page button{min-height:44px}body #job-record-screen.job-full-page :is(input,textarea,select){font-size:16px;max-width:100%}}

/* Compact office scope rows; expanded forms retain their full usable width. */
body #job-record-screen.job-full-page .jp-work .jp-toolbar>label{display:flex;align-items:center;gap:8px}
body #job-record-screen.job-full-page .jp-work .jp-toolbar select{margin:0}
@media(min-width:901px){
  body #job-record-screen.job-full-page>main{padding:16px 24px 28px!important}
  body #job-record-screen.job-full-page .jp-work{padding:14px}
  body #job-record-screen.job-full-page .jp-work>[data-jp-status]{margin:4px 0 6px}
  body #job-record-screen.job-full-page .job-scope-editor{margin:6px 0}
  body #job-record-screen.job-full-page .jp-work progress{display:block;margin:6px 0;height:5px}
  body #job-record-screen.job-full-page .jp-toolbar{gap:8px;margin:8px 0}
  body #job-record-screen.job-full-page .jp-heading>button{min-height:32px;padding:5px 10px}
  body #job-record-screen.job-full-page .jp-items>article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 16px;padding:8px 0}
  body #job-record-screen.job-full-page .jp-item-heading{grid-column:1/-1;gap:8px}
  body #job-record-screen.job-full-page .jp-work .jp-state{display:flex;align-items:center;gap:8px;min-width:0;font-size:12px}
  body #job-record-screen.job-full-page .jp-work .jp-state select{width:132px;min-height:32px;margin:0;padding:5px 8px;font-size:13px}
  body #job-record-screen.job-full-page .jp-items>article>small{align-self:center;margin:0;line-height:1.4;overflow-wrap:anywhere}
  body #job-record-screen.job-full-page .jp-items>article>details{grid-column:2;grid-row:2;min-width:0}
  body #job-record-screen.job-full-page .jp-items>article>details>summary{min-height:32px;padding:5px 0;font-size:12px}
  body #job-record-screen.job-full-page .jp-items>article>details[open]{grid-column:1/-1;grid-row:auto}
  body #job-record-screen.job-full-page .jp-items>article>.jp-extra-action{grid-column:1/-1;padding:4px 0}
  body #job-record-screen.job-full-page .jp-items>article[data-engineer-added=true]{padding-left:12px;padding-right:12px}
}
@media(max-width:600px){
  body #job-record-screen.job-full-page .jp-work .jp-toolbar>label{flex-wrap:wrap}
  body #job-record-screen.job-full-page .jp-work .jp-state select{min-height:44px!important;height:auto!important}
}
