/* Dense operational workspaces. This layer never participates in print/PDF output. */
@media screen {
body.cp-shell #office-screen [data-office-panel=toolbox]>.office-form-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px!important;align-items:start}
body.cp-shell #office-screen [data-office-panel=toolbox]>.office-form-head>:is(p,h2,span){grid-column:1;margin:0!important}
body.cp-shell #office-screen [data-office-panel=toolbox]>.office-form-head>button{grid-column:2;grid-row:2/4;margin:0;align-self:start}
body.cp-shell #office-screen [data-office-panel=toolbox] .toolbox-register{padding:0!important;border-radius:4px!important;overflow:hidden}
body.cp-shell #office-screen [data-office-panel=toolbox] .toolbox-register>.clean-register-head,body.cp-shell #office-screen #toolbox-talk-list>article{grid-template-columns:minmax(150px,1.2fr) 120px minmax(130px,1fr) 150px minmax(150px,.9fr)!important;align-items:start;gap:10px!important}
body.cp-shell #office-screen [data-office-panel=toolbox] .toolbox-compose form{display:grid!important;grid-template-columns:minmax(0,1.3fr) 170px minmax(0,1.2fr) auto!important;gap:10px 12px!important;padding:12px!important;align-items:start!important}
body.cp-shell #office-screen [data-office-panel=toolbox] .toolbox-compose form>button[type=submit]{margin-top:22px!important;height:36px!important;min-height:36px!important}
body.cp-shell #office-screen [data-office-panel=toolbox] .toolbox-compose .toolbox-file input{height:auto!important;min-height:36px!important;padding:5px 6px!important}
body.cp-shell #office-screen [data-office-panel=toolbox] .toolbox-compose[hidden]{display:none!important}
body.cp-shell #office-screen [data-office-panel=toolbox] .toolbox-row-actions button{min-height:32px!important;height:auto!important;max-width:100%;white-space:normal;padding:6px 8px!important;line-height:1.3!important}
body.cp-shell #office-screen [data-office-panel=toolbox] #toolbox-talk-list>article{min-height:50px!important;padding:9px 10px!important;background:#fff;border:0;border-bottom:1px solid #e5ebee!important;margin:0!important;border-radius:0!important}
@media(max-width:1100px){body.cp-shell #office-screen [data-office-panel=toolbox] .toolbox-compose form{grid-template-columns:minmax(0,1fr) 180px!important}body.cp-shell #office-screen [data-office-panel=toolbox] .toolbox-compose .toolbox-file,body.cp-shell #office-screen [data-office-panel=toolbox] .toolbox-compose .toolbox-attendees{grid-column:1/-1!important}body.cp-shell #office-screen [data-office-panel=toolbox] .toolbox-compose form>button[type=submit]{grid-column:1/-1;justify-self:start;margin-top:0!important}body.cp-shell #office-screen [data-office-panel=toolbox] .toolbox-register>.clean-register-head{display:none!important}body.cp-shell #office-screen #toolbox-talk-list>article{grid-template-columns:minmax(0,1fr) 140px!important}}
@media(max-width:700px){body.cp-shell #office-screen [data-office-panel=toolbox]>.office-form-head{grid-template-columns:minmax(0,1fr)}body.cp-shell #office-screen [data-office-panel=toolbox]>.office-form-head>button{grid-column:1;grid-row:4;justify-self:start;margin-top:5px;min-height:44px!important}body.cp-shell #office-screen [data-office-panel=toolbox] .toolbox-compose form{grid-template-columns:minmax(0,1fr)!important;padding:10px!important}body.cp-shell #office-screen [data-office-panel=toolbox] .toolbox-compose form>*,body.cp-shell #office-screen [data-office-panel=toolbox] .toolbox-compose .toolbox-attendees{grid-column:1!important}body.cp-shell #office-screen [data-office-panel=toolbox] :is(input,select,textarea){font-size:16px!important;min-height:44px!important}body.cp-shell #office-screen [data-office-panel=toolbox] :is(.toolbox-row-actions button,.toolbox-library-toolbar>button,.toolbox-compose form>button[type=submit]){height:auto!important;min-height:44px!important}body.cp-shell #office-screen #toolbox-talk-list>article{grid-template-columns:minmax(0,1fr) 112px!important}}
}
@media screen {
/* Native record editors remain intact; only their spacing and visual weight change. */
body.cp-shell :is(.cp-operations-page,#office-screen,.workspace-panel-drawer,#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen,#programme-allocation-screen,#programme-leave-editor,#engineer-workspace-screen,.dra-record-screen,#eic-screen,#eic-register,#certificate-screen,.ladder-screen,#uniform-tools-screen,#near-miss-screen,#incident-report-screen,#safety-folder,#vehicle-incident-screen,#site-note-screen,#job-checklist-screen,#expense-screen,#vehicle-check-screen,#leave-request-screen)[id]{font-family:'DM Sans','Segoe UI',Arial,sans-serif!important}
body.cp-shell :is(.cp-operations-page,#office-screen,.workspace-panel-drawer,#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen,#programme-allocation-screen,#programme-leave-editor,#engineer-workspace-screen,.dra-record-screen,#eic-screen,#eic-register,#certificate-screen,.ladder-screen,#uniform-tools-screen,#near-miss-screen,#incident-report-screen,#safety-folder,#vehicle-incident-screen,#site-note-screen,#job-checklist-screen,#expense-screen,#vehicle-check-screen,#leave-request-screen)[id] :is(button,a,p,label,legend,span,b,strong,small,input,select,textarea,em,summary,th,td){font-family:'DM Sans','Segoe UI',Arial,sans-serif!important}
body.cp-shell :is(.cp-operations-page,#office-screen,.workspace-panel-drawer,#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen,#programme-allocation-screen,#programme-leave-editor,#engineer-workspace-screen,.dra-record-screen,#eic-screen,#eic-register,#certificate-screen,.ladder-screen,#uniform-tools-screen,#near-miss-screen,#incident-report-screen,#safety-folder,#vehicle-incident-screen,#site-note-screen,#job-checklist-screen,#expense-screen,#vehicle-check-screen,#leave-request-screen)[id] :is(h1,h2,h3,h4){font-family:'Manrope','DM Sans','Segoe UI',Arial,sans-serif!important}
body.cp-shell #office-screen.clean-office .office-tabs::before,body.cp-shell #office-screen.clean-office .office-tabs::after{font-family:'DM Sans','Segoe UI',Arial,sans-serif!important}
body.cp-shell :is(.cp-operations-page,#office-screen,.workspace-panel-drawer,#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen,#programme-allocation-screen,#programme-leave-editor,#engineer-workspace-screen,.dra-record-screen,#eic-screen,#eic-register,#certificate-screen,.ladder-screen,#uniform-tools-screen,#near-miss-screen,#incident-report-screen,#safety-folder,#vehicle-incident-screen,#site-note-screen,#job-checklist-screen,#expense-screen,#vehicle-check-screen,#leave-request-screen){font-size:12px;line-height:1.45;color:#263b44}
body.cp-shell :is(.cp-operations-page,#office-screen,.workspace-panel-drawer,#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen,#programme-allocation-screen,#programme-leave-editor,#engineer-workspace-screen,.dra-record-screen,#eic-screen,#eic-register,#certificate-screen,.ladder-screen,#uniform-tools-screen,#near-miss-screen,#incident-report-screen,#safety-folder,#vehicle-incident-screen,#site-note-screen,#job-checklist-screen,#expense-screen,#vehicle-check-screen,#leave-request-screen) :is(.office-card,.vehicle-section,.programme-board,.calendar-card,.customer-site-row,.engineer-actions,.engineer-schedule,.eicr-observation,.eicr-photo,.dra-warning,.job-upload-feedback){border:1px solid #e3e8ec!important;border-radius:5px!important;background:#fff;box-shadow:none!important;padding:10px 12px!important;margin:0 0 10px!important}
body.cp-shell :is(.cp-operations-page,#office-screen,.workspace-panel-drawer,#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen,#programme-allocation-screen,#programme-leave-editor,#engineer-workspace-screen,.dra-record-screen,#eic-screen,#eic-register,#certificate-screen,.ladder-screen,#uniform-tools-screen,#near-miss-screen,#incident-report-screen,#safety-folder,#vehicle-incident-screen,#site-note-screen,#job-checklist-screen,#expense-screen,#vehicle-check-screen,#leave-request-screen)>main{padding:16px 18px 28px!important}
body.cp-shell #office-screen>.clean-office-main{padding:16px 18px 28px!important}
body.cp-shell #office-screen>.clean-office-top{min-height:54px!important;padding:9px 18px!important}
body.cp-shell :is(.cp-operations-page,.workspace-panel-drawer,#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen,#programme-allocation-screen,#programme-leave-editor,#engineer-workspace-screen,.dra-record-screen,#eic-screen,#eic-register,#certificate-screen,.ladder-screen,#uniform-tools-screen,#near-miss-screen,#incident-report-screen,#safety-folder,#vehicle-incident-screen,#site-note-screen,#job-checklist-screen,#expense-screen,#vehicle-check-screen,#leave-request-screen)>header{min-height:48px!important;padding:7px 18px!important;box-shadow:none!important}
body.cp-shell :is(.cp-operations-page,#office-screen,.workspace-panel-drawer,#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen,#programme-allocation-screen,#programme-leave-editor,#engineer-workspace-screen,.dra-record-screen,#eic-screen,#eic-register,#certificate-screen,.ladder-screen,#uniform-tools-screen,#near-miss-screen,#incident-report-screen,#safety-folder,#vehicle-incident-screen,#site-note-screen,#job-checklist-screen,#expense-screen,#vehicle-check-screen,#leave-request-screen) :is(.certificate-title,.office-form-head){margin:0 0 12px!important}
body.cp-shell :is(.cp-operations-page,#office-screen,.workspace-panel-drawer,#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen,#programme-allocation-screen,#programme-leave-editor,#engineer-workspace-screen,.dra-record-screen,#eic-screen,#eic-register,#certificate-screen,.ladder-screen,#uniform-tools-screen,#near-miss-screen,#incident-report-screen,#safety-folder,#vehicle-incident-screen,#site-note-screen,#job-checklist-screen,#expense-screen,#vehicle-check-screen,#leave-request-screen) h1{font-size:22px!important;line-height:1.25!important;letter-spacing:-.025em!important}
body.cp-shell #office-screen h2{font-size:19px!important}
body.cp-shell :is(.cp-operations-page,#office-screen,.workspace-panel-drawer,#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen,#programme-allocation-screen,#programme-leave-editor,#engineer-workspace-screen,.dra-record-screen,#eic-screen,#eic-register,#certificate-screen,.ladder-screen,#uniform-tools-screen,#near-miss-screen,#incident-report-screen,#safety-folder,#vehicle-incident-screen,#site-note-screen,#job-checklist-screen,#expense-screen,#vehicle-check-screen,#leave-request-screen) :is(h3,h4){font-size:13px!important;line-height:1.35!important;margin:0 0 8px!important}
body.cp-shell :is(.cp-operations-page,#office-screen,.workspace-panel-drawer,#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen,#programme-allocation-screen,#programme-leave-editor,#engineer-workspace-screen,.dra-record-screen,#eic-screen,#eic-register,#certificate-screen,.ladder-screen,#uniform-tools-screen,#near-miss-screen,#incident-report-screen,#safety-folder,#vehicle-incident-screen,#site-note-screen,#job-checklist-screen,#expense-screen,#vehicle-check-screen,#leave-request-screen) :is(label,p,summary){font-size:12px!important;line-height:1.45}
body.cp-shell :is(.cp-operations-page,#office-screen,.workspace-panel-drawer,#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen,#programme-allocation-screen,#programme-leave-editor,#engineer-workspace-screen,.dra-record-screen,#eic-screen,#eic-register,#certificate-screen,.ladder-screen,#uniform-tools-screen,#near-miss-screen,#incident-report-screen,#safety-folder,#vehicle-incident-screen,#site-note-screen,#job-checklist-screen,#expense-screen,#vehicle-check-screen,#leave-request-screen) :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]):not([type=range]){min-height:32px!important;padding:6px 8px!important;border-radius:4px!important;font-size:12px!important;line-height:1.4!important;box-shadow:none!important;min-width:0}
body.cp-shell :is(.cp-operations-page,#office-screen,.workspace-panel-drawer,#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen,#programme-allocation-screen,#programme-leave-editor,#engineer-workspace-screen,.dra-record-screen,#eic-screen,#eic-register,#certificate-screen,.ladder-screen,#uniform-tools-screen,#near-miss-screen,#incident-report-screen,#safety-folder,#vehicle-incident-screen,#site-note-screen,#job-checklist-screen,#expense-screen,#vehicle-check-screen,#leave-request-screen) textarea{min-height:64px!important}
body.cp-shell :is(.cp-operations-page,#office-screen,.workspace-panel-drawer,#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen,#programme-allocation-screen,#programme-leave-editor,#engineer-workspace-screen,.dra-record-screen,#eic-screen,#eic-register,#certificate-screen,.ladder-screen,#uniform-tools-screen,#near-miss-screen,#incident-report-screen,#safety-folder,#vehicle-incident-screen,#site-note-screen,#job-checklist-screen,#expense-screen,#vehicle-check-screen,#leave-request-screen) :is(input[readonly],textarea[readonly]){color:#596d77!important;background:#f3f5f7!important;opacity:1}
body.cp-shell :is(.cp-operations-page,#office-screen,.workspace-panel-drawer,#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen,#programme-allocation-screen,#programme-leave-editor,#engineer-workspace-screen,.dra-record-screen,#eic-screen,#eic-register,#certificate-screen,.ladder-screen,#uniform-tools-screen,#near-miss-screen,#incident-report-screen,#safety-folder,#vehicle-incident-screen,#site-note-screen,#job-checklist-screen,#expense-screen,#vehicle-check-screen,#leave-request-screen) button:not([data-office-tab]):not(.workspace-panel-overlay){min-height:30px;padding:6px 9px;font-size:12px;border-radius:4px!important;box-shadow:none!important;transform:none!important}
body.cp-shell :is(.cp-operations-page,#office-screen,.workspace-panel-drawer,#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen,#programme-allocation-screen,#programme-leave-editor,#engineer-workspace-screen,.dra-record-screen,#eic-screen,#eic-register,#certificate-screen,.ladder-screen,#uniform-tools-screen,#near-miss-screen,#incident-report-screen,#safety-folder,#vehicle-incident-screen,#site-note-screen,#job-checklist-screen,#expense-screen,#vehicle-check-screen,#leave-request-screen) :is(.programme-board-head,.customer-sites-heading,.itemised-head,.upload-head){min-height:34px;margin:0 0 8px!important;padding:0 0 7px!important;border-bottom:1px solid #edf0f2;box-shadow:none!important;gap:8px}
body.cp-shell :is(.cp-operations-page,#office-screen,.workspace-panel-drawer,#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen,#programme-allocation-screen,#programme-leave-editor,#engineer-workspace-screen,.dra-record-screen,#eic-screen,#eic-register,#certificate-screen,.ladder-screen,#uniform-tools-screen,#near-miss-screen,#incident-report-screen,#safety-folder,#vehicle-incident-screen) :is(.office-actions,footer.office-actions){gap:8px;padding:10px 0!important;margin-top:10px!important;background:transparent;box-shadow:none!important}
/* One flat metrics strip, rather than a grid of large cards. */
body.cp-shell :is(#office-screen,.workspace-panel-drawer,#engineer-workspace-screen,#eic-register) :is(.job-record-summary,.invoice-summary,.certificate-summary,.leave-summary,.fleet-summary,.engineer-workspace-summary){display:grid!important;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:0!important;min-height:54px!important;padding:0!important;margin:0 0 12px!important;border:1px solid #e3e8ec!important;border-radius:4px!important;background:#fff!important;box-shadow:none!important;overflow:hidden}
body.cp-shell :is(#office-screen,.workspace-panel-drawer,#engineer-workspace-screen,#eic-register) :is(.job-record-summary,.invoice-summary,.certificate-summary,.leave-summary,.fleet-summary,.engineer-workspace-summary)>article{display:flex!important;flex-direction:column;justify-content:center;gap:2px;min-width:0;min-height:54px!important;padding:7px 11px!important;margin:0!important;border:0!important;border-right:1px solid #e8ecef!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body.cp-shell :is(#office-screen,.workspace-panel-drawer,#engineer-workspace-screen,#eic-register) :is(.job-record-summary,.invoice-summary,.certificate-summary,.leave-summary,.fleet-summary,.engineer-workspace-summary)>article:last-child{border-right:0!important}
body.cp-shell :is(#office-screen,.workspace-panel-drawer,#engineer-workspace-screen,#eic-register) :is(.job-record-summary,.invoice-summary,.certificate-summary,.leave-summary,.fleet-summary,.engineer-workspace-summary)>article>p{font-size:10px!important;letter-spacing:.04em!important;margin:0!important;line-height:1.2!important;color:#78858e!important}
body.cp-shell :is(#office-screen,.workspace-panel-drawer,#engineer-workspace-screen,#eic-register) :is(.job-record-summary,.invoice-summary,.certificate-summary,.leave-summary,.fleet-summary,.engineer-workspace-summary)>article>b{font-size:19px!important;line-height:1.15!important;font-weight:650!important;margin:0!important;letter-spacing:-.02em}
body.cp-shell :is(#office-screen,.workspace-panel-drawer,#engineer-workspace-screen,#eic-register) :is(.job-record-summary,.invoice-summary,.certificate-summary,.leave-summary,.fleet-summary,.engineer-workspace-summary)>article>span{font-size:10px!important;line-height:1.25!important;margin:0!important;color:#7c8992!important}
/* Registers retain their original actions and table semantics. */
body.cp-shell :is(#office-screen,.workspace-panel-drawer,#eic-register,#safety-folder,#engineer-workspace-screen) :is(.clean-job,.customer-list-row,.expense-row,.invoice-row,.material-invoice,.vehicle-check-row,.supply-row,.leave-request,.ladder-register-row,.minor-register-row,.future-booking,.engineer-work-row,.safety-folder-list>article){min-height:40px!important;padding:6px 10px!important;margin:0!important;border:0!important;border-bottom:1px solid #e9edf0!important;border-radius:0!important;background:#fff;box-shadow:none!important;gap:8px;transform:none!important;font-size:12px!important;line-height:1.35}
body.cp-shell #office-screen #clean-job-list>.clean-job{min-height:40px!important;padding:7px 10px!important;grid-template-columns:65px minmax(0,1fr) 80px 16px!important;gap:10px!important}
body.cp-shell #office-screen #clean-job-list>.clean-job>em{height:20px!important;min-width:0!important;padding:0 7px!important;font-size:10px!important;border-radius:3px!important}
body.cp-shell #office-screen #clean-job-list>.clean-job :is(b,span){font-size:12px!important;line-height:1.35!important}
body.cp-shell :is(#office-screen,.workspace-panel-drawer,#eic-register,#safety-folder,#engineer-workspace-screen) :is(.clean-register-head,.material-invoice-head,.cp-job-table-heading){min-height:34px!important;padding:8px 10px!important;margin:0!important;border:0!important;border-bottom:1px solid #e1e7ec!important;border-radius:3px 3px 0 0!important;background:#f5f7f9!important;color:#7b8992;font-size:10px!important;line-height:1.3!important}
body.cp-shell :is(#office-screen,.workspace-panel-drawer,#eic-register,#safety-folder,#engineer-workspace-screen) :is(.expense-row,.invoice-row,.material-invoice,.vehicle-check-row,.supply-row,.leave-request,.ladder-register-row,.minor-register-row,.engineer-work-row,.customer-list-row) :is(b,strong){font-size:12px!important;line-height:1.35!important;font-weight:600!important}
body.cp-shell :is(#office-screen,.workspace-panel-drawer,#eic-register,#safety-folder,#engineer-workspace-screen) :is(.expense-row,.invoice-row,.material-invoice,.vehicle-check-row,.supply-row,.leave-request,.ladder-register-row,.minor-register-row,.engineer-work-row,.customer-list-row) :is(small,em,time){font-size:11px!important;line-height:1.35!important}
body.cp-shell :is(#office-screen,.workspace-panel-drawer,#eic-register,#safety-folder) :is(.record-actions,.leave-decision,.leave-status,.safety-record-actions){gap:5px}
body.cp-shell :is(#office-screen,.workspace-panel-drawer,#eic-register,#safety-folder) :is(.record-actions,.leave-decision,.safety-record-actions) button{min-height:28px!important;padding:5px 8px!important;font-size:11px!important;border-radius:4px!important}
body.cp-shell :is(#office-screen,.workspace-panel-drawer) table{font-size:12px!important;box-shadow:none!important}
body.cp-shell :is(#office-screen,.workspace-panel-drawer) th{height:34px;padding:7px 9px!important;background:#f5f7f9!important;font-size:10px!important;line-height:1.3!important}
body.cp-shell :is(#office-screen,.workspace-panel-drawer) td{height:40px;padding:6px 9px!important;font-size:12px!important;line-height:1.35!important;border-bottom:1px solid #e8edf0!important}
/* Job creation, shared notes and customer editing use compact native form grids. */
body.cp-shell #office-screen .clean-office-grid{grid-template-columns:minmax(0,1.2fr) minmax(320px,1fr)!important;gap:12px!important}
body.cp-shell #office-screen #clean-job-form{gap:8px!important;padding:10px 12px!important}
body.cp-shell #office-screen #clean-job-form :is(label,fieldset){min-width:0;gap:4px!important}
body.cp-shell #office-screen #clean-job-form>h3{min-height:25px!important;margin:0 0 2px!important}
body.cp-shell #office-screen #clean-job-form .job-file-fields{gap:8px;padding:9px 0!important;border:0!important;border-top:1px solid #e8ecef!important;border-radius:0!important;background:transparent!important}
body.cp-shell #office-screen #clean-job-form .job-file-fields legend{font-size:12px;padding:0 6px 0 0}
body.cp-shell #office-screen #clean-job-form small{font-size:10px!important;line-height:1.35!important}
body.cp-shell :is(#office-screen,.workspace-panel-drawer) :is(.customer-form-grid,.job-fields,.vehicle-profile-form,.fleet-form-grid,.programme-edit-fields,.job-file-fields,.commerce-details-grid){gap:8px 12px!important}
body.cp-shell :is(#office-screen,.workspace-panel-drawer) :is(.customer-directory-toolbar,.active-job-search,.customer-tabs){gap:7px;margin-bottom:9px!important}
body.cp-shell :is(#office-screen,.workspace-panel-drawer) .customer-site-row{padding:9px 10px!important;margin-bottom:8px!important}
body.cp-shell .workspace-panel-drawer{border-radius:6px!important;box-shadow:none!important}
body.cp-shell .workspace-panel-drawer>.certificate-top{border-radius:5px 5px 0 0!important}
body.cp-shell .workspace-panel-drawer :is(h1,h2)[tabindex="-1"]:focus{outline:none!important;box-shadow:none!important}
body.cp-shell .workspace-panel-drawer .job-record-details{gap:12px!important}
body.cp-shell .workspace-panel-drawer .job-record-details dl{grid-template-columns:135px minmax(0,1fr)!important;gap:6px 12px!important;font-size:12px!important}
body.cp-shell .workspace-panel-drawer :is(.job-record-grid,.customer-profile-columns){gap:12px!important;margin-top:12px!important}
body.cp-shell .workspace-panel-drawer #job-scope-form{margin-top:10px;padding-top:10px;border-top:1px solid #e9edf0}
body.cp-shell .workspace-panel-drawer #job-scope-form textarea{min-height:80px!important}
body.cp-shell .workspace-panel-drawer :is(.job-planned-totals,.job-record-documents){margin-top:10px!important}
body.cp-shell .workspace-panel-drawer .job-planned-totals{gap:8px;padding:7px 0!important}
body.cp-shell .workspace-panel-drawer .job-planned-totals b{font-size:17px!important}
body.cp-shell .workspace-panel-drawer :is(.job-time-list,.job-cost-list){min-height:0!important}
body.cp-shell .workspace-panel-drawer :is(.job-time-list,.job-cost-list)>article{padding:7px 0!important;min-height:32px}
/* Work programme: compact toolbar, clear allocations and native calendar scrolling. */
body.cp-shell #office-screen .clean-allocate{padding:10px 12px!important}
body.cp-shell #office-screen #clean-programme-form{gap:8px!important;align-items:end!important}
body.cp-shell #office-screen #clean-programme-form>button[type=submit]{height:32px!important;min-height:32px!important;margin-top:0!important}
body.cp-shell #office-screen .programme-allocation-help{margin-top:6px!important;padding:0!important}
body.cp-shell #office-screen .programme-allocation-help summary{min-height:26px!important;line-height:26px!important;font-size:11px!important}
body.cp-shell #office-screen .programme-rates{padding:7px 12px!important}
body.cp-shell #office-screen .programme-rates>h3{margin-bottom:4px!important;font-size:12px!important}
body.cp-shell #office-screen #programme-rate-list{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;justify-content:flex-start!important;gap:4px 24px!important}
body.cp-shell #office-screen #programme-rate-list .programme-rate-form{border:0!important;border-bottom:1px solid #e9edf0!important;background:transparent!important;border-radius:0!important;padding:5px 0!important;min-height:37px!important}
body.cp-shell #office-screen #programme-rate-list input{min-height:28px!important;height:28px!important;padding:4px 6px!important}
body.cp-shell #office-screen .programme-view-controls{gap:4px!important;flex-wrap:wrap;align-items:center}
body.cp-shell #office-screen .programme-view-controls :is(input,button){min-height:30px!important;height:30px!important;padding:5px 8px!important;font-size:11px!important;border-radius:4px!important}
body.cp-shell #office-screen .programme-view-controls #programme-search{min-width:150px;flex:1}
body.cp-shell #office-screen .programme-drag-help{font-size:11px!important;margin:5px 0 8px!important}
body.cp-shell #office-screen .programme-move-feedback:has(p:empty){margin:0;padding:0}
body.cp-shell #office-screen #clean-programme-grid{border-radius:3px!important;box-shadow:none!important}
body.cp-shell #office-screen #clean-programme-grid>.programme-day{min-height:86px!important;border-color:#e5ebee!important}
body.cp-shell #office-screen #clean-programme-grid>.programme-day>header{min-height:24px!important;padding:4px 6px!important;font-size:11px!important;box-shadow:none!important}
body.cp-shell #office-screen #clean-programme-grid .programme-day-entries{padding:4px!important;max-height:230px}
body.cp-shell #office-screen #clean-programme-grid.is-day .programme-day-entries{max-height:520px}
body.cp-shell #office-screen #clean-programme-grid .programme-job{padding:4px 5px!important;margin:0 0 4px!important;border-radius:3px!important;box-shadow:none!important;gap:1px 4px!important}
body.cp-shell #office-screen #clean-programme-grid :is(.programme-person small,.programme-ref,.programme-leave-badge,.programme-job time){font-size:10px!important;line-height:1.3!important}
body.cp-shell #office-screen #clean-programme-grid .programme-initials{width:16px!important;height:16px!important;min-width:16px!important;flex-basis:16px!important;font-size:8px!important}
body.cp-shell #office-screen .programme-bank-holiday{padding:5px!important;margin-bottom:4px!important;border-radius:3px!important;font-size:11px!important}
/* Invoice and quotation editing is compact; customer PDFs keep their own renderer. */
body.cp-shell :is(#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen) :is(.checklist-details,.commerce-details-grid){gap:8px 12px!important}
body.cp-shell #manual-invoice-form label:not(.job-vat-check){gap:4px!important;margin-bottom:8px!important}
body.cp-shell #manual-invoice-form textarea[name=description]{min-height:100px!important}
body.cp-shell #manual-invoice-form .invoice-payment-details img{max-height:42px!important;width:auto!important;max-width:140px!important}
body.cp-shell #manual-invoice-form .job-vat-summary{margin:6px 0!important;padding:8px 10px!important;border-radius:4px!important;gap:16px!important}
body.cp-shell #manual-invoice-form .variation-invoice-actions{gap:7px;margin-bottom:8px}
body.cp-shell #manual-invoice-form [data-extra-line]{padding:7px 0!important;margin:0!important;border-radius:0!important;border:0!important;border-bottom:1px solid #e9edf0!important;box-shadow:none!important}
body.cp-shell #portal-quotation-form{padding:10px 12px!important;gap:8px!important}
body.cp-shell #portal-quotation-form .commerce-quote-line{display:grid;grid-template-columns:minmax(100px,.8fr) minmax(160px,2fr) 72px 145px 95px auto;gap:8px;align-items:end;padding:8px 0!important;margin:0!important;border:0!important;border-bottom:1px solid #e6ebef!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body.cp-shell #portal-quotation-form .commerce-quote-line label{margin:0!important;gap:4px!important}
body.cp-shell #portal-quotation-form .commerce-quote-line textarea{min-height:32px!important;height:32px;resize:vertical}
body.cp-shell #portal-quotation-form .commerce-quote-line [data-line-total]{grid-column:1/-1;margin:0!important;font-size:11px!important;color:#6d7d87}
body.cp-shell #portal-quotation-form :is([data-total],[data-status]){margin:5px 0!important;font-size:12px!important}
body.cp-shell #quotation-email-screen form{gap:8px!important}
body.cp-shell #quotation-email-screen iframe{height:340px!important;max-width:100%;margin:8px 0!important;border-radius:3px}
/* Fleet, engineer workspace and field forms use rows rather than icon tiles. */
body.cp-shell #office-screen .fleet-layout{gap:12px!important;align-items:start}
body.cp-shell #office-screen .fleet-reminder-head{gap:10px;margin-bottom:8px}
body.cp-shell #office-screen .fleet-reminder-list{gap:0!important}
body.cp-shell #office-screen .fleet-reminder-list>article,body.cp-shell #office-screen .fleet-reminder{padding:7px 9px!important;border-radius:0!important;box-shadow:none!important;min-height:40px}
body.cp-shell #engineer-workspace-screen .engineer-action-grid{display:block!important;margin:0!important}
body.cp-shell #engineer-workspace-screen .engineer-action-grid>button{display:grid!important;grid-template-columns:minmax(170px,1fr) minmax(0,1.4fr);align-items:center;width:100%;min-height:40px!important;padding:8px 10px!important;margin:0!important;border:0!important;border-bottom:1px solid #e9edf0!important;border-radius:0!important;background:transparent!important;color:#233c46!important;text-align:left;box-shadow:none!important;transform:none!important;font-size:12px!important}
body.cp-shell #engineer-workspace-screen .engineer-action-grid>button>small{margin:0!important;font-size:11px!important;color:#7a8993!important}
body.cp-shell #engineer-workspace-screen .engineer-job-documents{gap:5px;margin-top:6px;padding-top:6px;border-top:1px solid #edf0f2}
body.cp-shell #engineer-workspace-screen .engineer-work-row{grid-template-columns:130px minmax(0,1fr) auto;align-items:start}
body.cp-shell :is(#near-miss-screen,#incident-report-screen,#safety-folder){background:#f4f6f9!important;color:#263b44!important}
body.cp-shell :is(#near-miss-screen,#incident-report-screen,#safety-folder) :is(label,p,b,small){color:inherit}
body.cp-shell :is(#near-miss-screen,#incident-report-screen) form>section{padding:10px 12px!important;margin:0 0 10px!important;border:1px solid #e3e8ec!important;border-radius:5px!important;background:#fff!important;box-shadow:none!important}
body.cp-shell :is(#near-miss-screen,#incident-report-screen,#safety-folder) .near-miss-title{gap:9px;margin:0 0 12px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
body.cp-shell :is(#near-miss-screen,#incident-report-screen,#safety-folder) .near-miss-title>span{width:24px!important;height:24px!important;font-size:18px!important;border-radius:0!important;background:none!important}
body.cp-shell :is(#near-miss-screen,#incident-report-screen) :is(.injury-options,.incident-options){display:flex!important;flex-wrap:wrap;gap:7px!important;padding:0!important}
body.cp-shell :is(#near-miss-screen,#incident-report-screen) :is(.injury-options,.incident-options)>label{min-height:32px!important;display:flex;align-items:center;gap:6px;padding:5px 9px!important;border:1px solid #e2e8ec!important;border-radius:4px!important;background:#fff;color:#344c57!important}
body.cp-shell :is(#near-miss-screen,#incident-report-screen) footer{display:flex;gap:8px;margin-top:10px!important;padding:10px 0!important;background:transparent!important;box-shadow:none!important}
body.cp-shell .ladder-screen .ladder-details{gap:8px 12px!important}
body.cp-shell .ladder-screen .ladder-checks{padding:0!important}
body.cp-shell .ladder-screen .ladder-checks>p{min-height:34px;padding:8px 10px!important;margin:0!important;background:#f5f7f9;border-bottom:1px solid #e3e8ec;font-size:10px!important}
body.cp-shell .ladder-screen .ladder-check{min-height:40px;padding:6px 10px!important;gap:10px;grid-template-columns:minmax(0,1fr) 240px}
body.cp-shell .ladder-screen .ladder-check>b{font-size:12px!important;font-weight:500!important}
body.cp-shell .ladder-screen .ladder-check>div{gap:5px!important}
body.cp-shell .ladder-screen .ladder-check button{min-height:28px!important;padding:5px 7px!important;font-size:11px!important}
body.cp-shell .ladder-screen :is(.ladder-type-buttons,.ladder-outcome>div){gap:6px!important}
body.cp-shell :is(.ladder-screen,#vehicle-incident-screen,#expense-screen,#job-checklist-screen) :is(.isolation-photo label,.receipt-upload,.customer-signature-pad){border-radius:4px!important;min-height:44px!important;padding:9px!important}
body.cp-shell .dra-record-screen :is(.dra-editor-fields,.dra-editor-risk,.dra-extra-row,.dra-ppe){gap:8px 12px!important}
body.cp-shell .dra-record-screen .dra-editor-risk{padding:10px 0!important}
body.cp-shell .dra-record-screen .dra-extra-row{padding:7px 0!important;margin:0!important}
body.cp-shell .dra-record-screen .dra-warning{padding:9px 10px!important;font-size:12px!important}
body.cp-shell .dra-record-screen .dra-checkbox{gap:8px;margin:7px 0!important;font-size:12px!important}
/* All electrical certificate controls remain present and editable as before. */
body.cp-shell #eic-screen.certificate-compact main{max-width:1280px!important;padding:14px 18px 28px!important}
body.cp-shell #eic-screen.certificate-compact .office-card{padding:8px 10px!important;margin:0 0 8px!important;border-radius:4px!important;box-shadow:none!important}
body.cp-shell #eic-screen.certificate-compact .minor-grid{gap:8px 12px!important;grid-template-columns:repeat(3,minmax(0,1fr))}
body.cp-shell #eic-screen.certificate-compact label{font-size:12px!important;gap:4px!important;font-weight:500!important}
body.cp-shell #eic-screen.certificate-compact .certificate-section-toggle{min-height:34px!important;padding:4px 0!important;font-size:13px!important;border-radius:0!important}
body.cp-shell #eic-screen.certificate-compact .certificate-tools{padding:6px 8px!important;margin:8px 0!important;border-radius:4px!important;box-shadow:none!important;background:#fff!important}
body.cp-shell #eic-screen.certificate-compact .certificate-section-nav{gap:6px!important}
body.cp-shell #eic-screen.certificate-compact .certificate-section-nav :is(select,button){min-height:32px!important;font-size:12px!important;padding:5px 8px!important}
body.cp-shell #eic-screen.certificate-compact .certificate-inspection-group{border-radius:4px!important;margin:3px 0!important}
body.cp-shell #eic-screen.certificate-compact .certificate-inspection-group>summary{min-height:34px!important;padding:7px 9px!important;font-size:12px!important}
body.cp-shell #eic-screen.certificate-compact .certificate-inspection-items{padding:3px 8px!important}
body.cp-shell #eic-screen.certificate-compact .eicr-checklist{grid-template-columns:minmax(0,1fr)!important}
body.cp-shell #eic-screen.certificate-compact .eicr-checklist label{grid-template-columns:minmax(0,1fr) 150px;align-items:center;min-height:40px!important;padding:4px 0!important;border-bottom:1px solid #eef1f3}
body.cp-shell #eic-screen.certificate-compact .eicr-checklist label.wide{grid-template-columns:minmax(0,1fr);border:0}
body.cp-shell #eic-screen.certificate-compact .eicr-checklist h4{min-height:30px;margin:4px 0!important;padding:7px!important;background:#f5f7f9;font-size:11px!important}
body.cp-shell #eic-screen.certificate-compact :is(.minor-disclaimer,.eic-zs-status){padding:7px 9px!important;margin:6px 0!important;font-size:11px!important;border-radius:4px!important;box-shadow:none!important}
body.cp-shell #eic-screen.certificate-compact :is([data-certificate-collapsed=true]){padding-top:3px!important;padding-bottom:3px!important}
body.cp-shell #eic-screen.certificate-compact .eic-signatures{display:block}
body.cp-shell #eic-screen.certificate-compact .eic-signatures canvas{width:100%!important;max-width:900px;min-height:150px;border-radius:4px!important;box-shadow:none!important}
body.cp-shell #eic-screen.certificate-compact [data-photo-list]{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:9px}
body.cp-shell #eic-screen.certificate-compact [data-photo-list]>article{padding:8px!important;border-radius:4px!important;box-shadow:none!important}
body.cp-shell #eic-screen.certificate-compact [data-photo-list] img{max-height:160px;object-fit:contain}
body.cp-shell :is(#eic-screen,.workspace-panel-drawer,#office-screen) .portal-form-autosave{min-height:0;padding:7px 9px!important;margin:0 0 8px!important;border-radius:4px!important;background:#f8fbf9!important;box-shadow:none!important}
body.cp-shell :is(#eic-screen,.workspace-panel-drawer,#office-screen) .portal-form-autosave p{font-size:11px!important;margin:0!important}
/* Tablet reflow keeps every control available without narrow columns. */
/* Supporting job workflows use the same native, compact editor rhythm. */
body.cp-shell :is(.variation-screen,.rams-screen) :is(.variation-grid,.variation-filters,.variation-categories,.rams-grid){gap:8px 12px!important}
body.cp-shell :is(.variation-screen,.rams-screen) label{gap:4px!important;font-weight:500}
body.cp-shell :is(.variation-screen,.rams-screen) details{border:1px solid #e3e8ec!important;border-radius:4px!important;box-shadow:none!important;padding:8px 10px!important;margin:10px 0!important;background:#fff}
body.cp-shell :is(.variation-screen,.rams-screen) summary{display:flex;align-items:center;min-height:34px;gap:7px;font-weight:600}
body.cp-shell :is(.variation-screen,.rams-screen) details[open]>summary{margin-bottom:8px!important}
body.cp-shell :is(.variation-screen,.rams-screen) :is(.variation-line,.rams-job-option,.rams-review){border:1px solid #e3e8ec!important;border-radius:4px!important;padding:9px 10px!important;margin:10px 0!important;box-shadow:none!important;background:#fff}
body.cp-shell :is(.variation-screen,.rams-screen) :is(.variation-actions,.rams-actions,.rams-activities,.rams-trades){gap:8px!important;margin:10px 0!important}
body.cp-shell :is(.variation-screen,.rams-screen) :is(.variation-dashboard,.variation-job-context,.variation-device-drafts){padding:9px 11px!important;margin:10px 0!important;border-radius:4px!important;border:1px solid #e3e8ec!important;background:#fff;box-shadow:none!important}
body.cp-shell :is(.variation-screen,.rams-screen) :is(.variation-warning,.variation-recovery,.rams-guidance,.rams-recovery){padding:9px 11px!important;margin:10px 0!important;border-radius:4px!important;box-shadow:none!important;font-size:12px!important}
body.cp-shell .variation-screen .variation-autosave{padding:7px 10px!important;margin:8px 0!important;border-radius:4px!important;font-size:12px!important;box-shadow:none!important}
body.cp-shell :is(.variation-screen,.rams-screen) :is(.variation-row,.variation-job-state,.variation-evidence,.rams-document,.variation-device-drafts article){min-height:40px!important;gap:8px!important;padding:6px 9px!important;border-bottom:1px solid #e9edf0;border-radius:0!important;box-shadow:none!important}
body.cp-shell .variation-screen .variation-totals{gap:0!important;min-height:54px;border:1px solid #e3e8ec;border-radius:4px;margin:10px 0;background:#fff}
body.cp-shell .variation-screen .variation-totals>article{min-height:54px;display:flex;flex-direction:column;justify-content:center;padding:6px 10px;border:0;border-right:1px solid #e9edf0;border-radius:0;background:transparent;box-shadow:none!important}
body.cp-shell .variation-screen .variation-totals>article:last-child{border-right:0}
body.cp-shell .variation-screen .variation-totals b{font-size:19px;margin-top:2px;line-height:1.2}
body.cp-shell .variation-screen .variation-totals span{font-size:10px;line-height:1.3}
body.cp-shell :is(.variation-screen,.rams-screen) :is(.variation-save-bar,.rams-save-bar){padding:8px 0!important;margin-top:10px!important;gap:8px!important;box-shadow:none!important}
body.cp-shell #external-quotation-screen .external-quotation-form{gap:8px!important;max-width:100%}
body.cp-shell #external-quotation-screen fieldset{gap:8px!important;padding:10px!important;border-radius:4px!important;border-color:#e3e8ec!important}
body.cp-shell #external-quotation-screen .external-quote-amounts{gap:8px 12px!important}
body.cp-shell #external-quotation-screen textarea{min-height:80px!important}
body.cp-shell #eic-draft-picker .eic-draft-choice{min-height:40px;padding:7px 0!important;gap:8px;border-radius:0!important;box-shadow:none!important}
@media(max-width:1150px){
 body.cp-shell #office-screen .clean-office-grid{grid-template-columns:minmax(0,1fr)!important}
 body.cp-shell #office-screen #clean-job-form{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start}
 body.cp-shell #office-screen #clean-job-form>:is(h3,.wide,fieldset,[data-save-status],.job-upload-feedback){grid-column:1/-1}
 body.cp-shell #office-screen #clean-job-form>label:has(textarea){grid-column:1/-1}
 body.cp-shell #office-screen #clean-programme-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.cp-shell #portal-quotation-form .commerce-quote-line{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 body.cp-shell #portal-quotation-form .commerce-quote-line label:has(textarea){grid-column:2/4}
 body.cp-shell #eic-screen.certificate-compact .minor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
 body.cp-shell :is(.variation-screen,.rams-screen) summary{min-height:44px}
 body.cp-shell :is(.variation-screen,.rams-screen) :is(.variation-row,.variation-job-state,.variation-evidence,.rams-document,.variation-device-drafts article){min-height:44px!important}
 body.cp-shell #eic-draft-picker .eic-draft-choice{min-height:44px}
 body.cp-shell :is(.cp-operations-page,#office-screen,.workspace-panel-drawer,#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen,#programme-allocation-screen,#programme-leave-editor,#engineer-workspace-screen,.dra-record-screen,#eic-screen,#eic-register,#certificate-screen,.ladder-screen,#uniform-tools-screen,#near-miss-screen,#incident-report-screen,#safety-folder,#vehicle-incident-screen,#site-note-screen,#job-checklist-screen,#expense-screen,#vehicle-check-screen,#leave-request-screen)>main{padding:12px 12px 24px!important}
 body.cp-shell #office-screen>.clean-office-main{padding:12px 12px 24px!important}
 body.cp-shell :is(.cp-operations-page,#office-screen,.workspace-panel-drawer,#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen,#programme-allocation-screen,#programme-leave-editor,#engineer-workspace-screen,.dra-record-screen,#eic-screen,#eic-register,#certificate-screen,.ladder-screen,#uniform-tools-screen,#near-miss-screen,#incident-report-screen,#safety-folder,#vehicle-incident-screen,#site-note-screen,#job-checklist-screen,#expense-screen,#vehicle-check-screen,#leave-request-screen) :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]):not([type=range]){min-height:44px!important;padding:9px 10px!important;font-size:16px!important;line-height:1.35!important}
 body.cp-shell :is(.cp-operations-page,#office-screen,.workspace-panel-drawer,#manual-invoice-screen,#portal-quotation-screen,#external-quotation-screen,.variation-screen,.rams-screen,#eic-draft-picker,#eic-submission-receipt,#quotation-email-screen,#programme-allocation-screen,#programme-leave-editor,#engineer-workspace-screen,.dra-record-screen,#eic-screen,#eic-register,#certificate-screen,.ladder-screen,#uniform-tools-screen,#near-miss-screen,#incident-report-screen,#safety-folder,#vehicle-incident-screen,#site-note-screen,#job-checklist-screen,#expense-screen,#vehicle-check-screen,#leave-request-screen) button:not([data-office-tab]):not(.workspace-panel-overlay){min-height:44px!important;padding:9px 10px!important;font-size:12px!important}
 body.cp-shell :is(#office-screen,.workspace-panel-drawer,#eic-register,#safety-folder,#engineer-workspace-screen) :is(.clean-job,.customer-list-row,.expense-row,.invoice-row,.material-invoice,.vehicle-check-row,.supply-row,.leave-request,.ladder-register-row,.minor-register-row,.future-booking,.engineer-work-row,.safety-folder-list>article){min-height:44px!important;padding:7px 8px!important}
 body.cp-shell #office-screen #clean-job-list>.clean-job{min-height:44px!important;padding:7px 8px!important;grid-template-columns:52px minmax(0,1fr) 59px 12px!important;gap:7px!important}
 body.cp-shell #office-screen .cp-job-table-heading{grid-template-columns:52px minmax(0,1fr) 59px 12px!important;gap:7px!important;padding-left:8px!important;padding-right:8px!important}
 body.cp-shell #office-screen #clean-job-list>.clean-job>em{font-size:9px!important;padding:0 5px!important}
 body.cp-shell #office-screen #clean-programme-form>button[type=submit]{height:auto!important;min-height:44px!important}
 body.cp-shell #office-screen .programme-view-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:5px!important}
 body.cp-shell #office-screen .programme-view-controls #programme-search{grid-column:1/-1;min-width:0;width:100%}
 body.cp-shell #office-screen .programme-view-controls :is(input,button){height:44px!important;min-height:44px!important;font-size:12px!important;min-width:0}
 body.cp-shell #office-screen .programme-view-controls :is(#programme-month,#programme-day){grid-column:2;min-width:0;font-size:16px!important;width:100%}
 body.cp-shell #office-screen #programme-rate-list input{height:44px!important;min-height:44px!important;font-size:16px!important;width:75px}
 body.cp-shell #office-screen #clean-programme-grid .programme-job{min-height:44px!important}
 body.cp-shell #office-screen #clean-programme-grid .programme-day-entries{padding:3px!important}
 body.cp-shell #office-screen #clean-programme-grid>.programme-day{min-height:80px!important}
 body.cp-shell :is(#office-screen,.workspace-panel-drawer,#engineer-workspace-screen,#eic-register) :is(.job-record-summary,.invoice-summary,.certificate-summary,.leave-summary,.fleet-summary,.engineer-workspace-summary){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.cp-shell :is(#office-screen,.workspace-panel-drawer,#engineer-workspace-screen,#eic-register) :is(.job-record-summary,.invoice-summary,.certificate-summary,.leave-summary,.fleet-summary,.engineer-workspace-summary)>article{border-bottom:1px solid #e8ecef!important;min-height:54px!important;padding:7px 9px!important}
 body.cp-shell .workspace-panel-drawer{border-radius:5px 5px 0 0!important}
 body.cp-shell .workspace-panel-drawer .job-record-details dl{grid-template-columns:110px minmax(0,1fr)!important}
 body.cp-shell #engineer-workspace-screen .engineer-action-grid>button{min-height:44px!important;grid-template-columns:minmax(0,1fr);gap:2px!important;padding:7px 9px!important}
 body.cp-shell #engineer-workspace-screen .engineer-work-row{grid-template-columns:minmax(0,1fr)!important;gap:5px!important}
 body.cp-shell #engineer-workspace-screen .engineer-work-row>time{display:flex;gap:8px;align-items:center}
 body.cp-shell .ladder-screen .ladder-check{grid-template-columns:minmax(0,1fr)!important;gap:7px!important;padding:8px 10px!important}
 body.cp-shell .ladder-screen .ladder-check button{min-height:44px!important;font-size:12px!important}
 body.cp-shell :is(#near-miss-screen,#incident-report-screen) :is(.injury-options,.incident-options)>label{min-height:44px!important;padding:8px 10px!important}
 body.cp-shell #eic-screen.certificate-compact main{padding:12px 10px 24px!important}
 body.cp-shell #eic-screen.certificate-compact :is(.certificate-section-toggle,.certificate-inspection-group>summary){min-height:44px!important;padding-top:8px!important;padding-bottom:8px!important}
 body.cp-shell #eic-screen.certificate-compact .certificate-section-nav :is(select,button){min-height:44px!important;font-size:16px!important}
 body.cp-shell #eic-screen.certificate-compact .eicr-checklist label{grid-template-columns:minmax(0,1fr)!important;gap:5px!important;padding:7px 0!important}
 body.cp-shell #eic-screen.certificate-compact .eic-check{min-height:44px!important}
 body.cp-shell #eic-screen.certificate-compact .eic-signatures canvas{min-height:150px!important}
 body.cp-shell #eic-screen.certificate-compact [data-photo-list]{grid-template-columns:repeat(auto-fill,minmax(135px,1fr))}
}
@media(max-width:600px){
 body.cp-shell #office-screen #clean-job-form{grid-template-columns:minmax(0,1fr)!important}
 body.cp-shell #office-screen #clean-job-form>*{grid-column:1/-1}
 body.cp-shell #office-screen .fleet-layout{grid-template-columns:minmax(0,1fr)!important}
 body.cp-shell :is(.cp-operations-page,#office-screen,.workspace-panel-drawer,#manual-invoice-screen,#programme-allocation-screen,#programme-leave-editor) :is(.customer-form-grid,.job-fields,.vehicle-profile-form,.fleet-form-grid,.programme-edit-fields,.job-file-fields,.commerce-details-grid){grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
 body.cp-shell .workspace-panel-drawer .job-record-details dl{grid-template-columns:minmax(0,1fr)!important;gap:4px!important}
 body.cp-shell .workspace-panel-drawer .job-record-details dd{margin-bottom:5px}
 body.cp-shell #portal-quotation-form .commerce-quote-line{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.cp-shell #portal-quotation-form .commerce-quote-line label:has(textarea){grid-column:1/-1}
 body.cp-shell #portal-quotation-form .commerce-quote-line textarea{height:auto;min-height:64px!important}
 body.cp-shell #quotation-email-screen iframe{height:280px!important}
 body.cp-shell #eic-screen.certificate-compact .minor-grid{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
 body.cp-shell #eic-screen.certificate-compact :is(.certificate-tools,.office-card){border-radius:4px!important}
 body.cp-shell #eic-screen.certificate-compact [data-photo-list]{grid-template-columns:minmax(0,1fr)}
}
/* Supply headings and request rows share the same tracks and cell insets. */
body.cp-shell :is(#office-screen,#money-hub-screen) .supply-register{--cp-supply-columns:minmax(180px,1.1fr) minmax(140px,1fr) minmax(180px,1.2fr) minmax(160px,.8fr)}
body.cp-shell :is(#office-screen,#money-hub-screen) .supply-register>:is(.clean-register-head),body.cp-shell :is(#office-screen,#money-hub-screen) .supply-register .supply-row{display:grid!important;grid-template-columns:var(--cp-supply-columns)!important;column-gap:12px!important;padding-left:10px!important;padding-right:10px!important;align-items:center}
body.cp-shell :is(#office-screen,#money-hub-screen) .supply-register .supply-row>*{min-width:0;overflow-wrap:anywhere}
body.cp-shell :is(#office-screen,#money-hub-screen) .supply-register .supply-row>div{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-start}
body.cp-shell :is(#office-screen,#money-hub-screen) .supply-register .supply-row>em{justify-self:start;font-style:normal}
body.cp-shell :is(#office-screen,#money-hub-screen) .supply-register .supply-row>em.rejected{color:#b42318!important}
@media(max-width:1100px){
 body.cp-shell :is(#office-screen,#money-hub-screen) .supply-register>.clean-register-head{display:none!important}
 body.cp-shell :is(#office-screen,#money-hub-screen) .supply-register .supply-row{grid-template-columns:minmax(0,1fr) auto!important;gap:5px 12px!important;align-items:start}
 body.cp-shell :is(#office-screen,#money-hub-screen) .supply-register .supply-row>span:first-child{grid-column:1;grid-row:1}
 body.cp-shell :is(#office-screen,#money-hub-screen) .supply-register .supply-row>span:nth-child(2){grid-column:1;grid-row:2}
 body.cp-shell :is(#office-screen,#money-hub-screen) .supply-register .supply-row>span:nth-child(3){grid-column:1/-1;grid-row:3}
 body.cp-shell :is(#office-screen,#money-hub-screen) .supply-register .supply-row>span:nth-child(3)::before{content:'Justification';display:block;color:#73828d;font-size:10px;line-height:1.4}
 body.cp-shell :is(#office-screen,#money-hub-screen) .supply-register .supply-row>:is(div,em){grid-column:2;grid-row:1/3}
 body.cp-shell :is(#office-screen,#money-hub-screen) .supply-register .supply-row>div{flex-direction:column;max-width:120px}
 body.cp-shell :is(#office-screen,#money-hub-screen) .supply-register .supply-row button{min-height:44px!important;min-width:76px}
}
/* Native filters and permission controls always retain their hidden state. */
body.cp-shell :is(#office-screen,.cp-operations-page,.workspace-panel-drawer)[id][hidden],body.cp-shell :is(#office-screen,.cp-operations-page,.workspace-panel-drawer)[id] [hidden]{display:none!important}
/* Inline rate editors keep their original forms and private draft feedback together. */
body.cp-shell #programme-rate-list>.cp-rate-editor{flex:0 1 380px;width:380px;max-width:100%;min-width:0;display:flex;flex-direction:column;border-bottom:1px solid #e3e9ec;padding:3px 0 6px}
body.cp-shell #programme-rate-list .cp-rate-editor>.programme-rate-form{order:0;border-bottom:0!important;margin:0!important}
body.cp-shell #office-screen #programme-rate-list .programme-rate-form[data-rate-state=saved]{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:max-content!important;max-width:100%;flex-wrap:nowrap!important}
body.cp-shell #office-screen #programme-rate-list .programme-rate-form[data-rate-state=saved] .programme-rate-name{flex:0 1 auto!important;width:auto!important;max-width:28ch;min-width:0!important}
body.cp-shell #office-screen #programme-rate-list [data-rate-edit]{flex:0 0 auto!important;margin:0!important}
body.cp-shell #office-screen #programme-rate-list .programme-rate-form:not([data-rate-state=saved]){display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:6px 8px!important;width:100%!important}
body.cp-shell #office-screen #programme-rate-list .programme-rate-form:not([data-rate-state=saved]) .programme-rate-name{flex:1 1 100px!important;max-width:none;white-space:normal;overflow-wrap:anywhere}
body.cp-shell #office-screen #programme-rate-list .programme-rate-form:not([data-rate-state=saved]) .programme-rate-value{flex:0 0 auto}
body.cp-shell #office-screen #programme-rate-list .programme-rate-form [data-save-status]{flex:1 1 100%;min-width:0}
body.cp-shell #programme-rate-list .cp-rate-editor>.portal-form-autosave{order:1;margin:0!important;padding:2px 4px!important;border:0!important;border-radius:0!important;background:transparent!important;font-size:10px!important}
body.cp-shell #programme-rate-list .cp-rate-editor [data-portal-autosave-status]{height:auto;min-height:1.45em;max-height:3em;margin:0;line-height:1.45}
/* Calendar controls have explicit columns, so the next arrow cannot wrap alone. */
.programme-current-period{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
body.cp-shell #office-screen #programme-today{width:auto;min-height:34px;padding:5px 10px;margin:0;font-size:12px}
body.cp-shell #office-screen #clean-programme-grid.is-week{grid-template-columns:repeat(7,minmax(0,1fr))}
@media(max-width:700px){body.cp-shell #office-screen #clean-programme-grid.is-week{grid-template-columns:minmax(0,1fr)}body.cp-shell #office-screen #programme-today{min-height:44px}}
body.cp-shell #office-screen .clean-programme-board>.programme-board-head{display:grid!important;grid-template-columns:minmax(125px,.5fr) minmax(0,1fr);align-items:center!important;gap:10px 16px!important}
body.cp-shell #office-screen .programme-view-controls{display:grid!important;grid-template-columns:minmax(150px,1fr) repeat(3,max-content) 32px 145px 32px!important;align-items:center!important;gap:5px!important;width:100%!important;min-width:0!important;max-width:100%;margin:0!important}
body.cp-shell #office-screen .programme-view-controls> :is(input,button){box-sizing:border-box;width:100%!important;min-width:0!important;height:34px!important;min-height:34px!important;margin:0!important;padding:6px 8px!important;line-height:1.35!important;font-size:12px!important}
body.cp-shell #office-screen .programme-view-controls #programme-search{grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:100%!important}
body.cp-shell #office-screen .programme-view-controls [data-programme-view=month]{grid-column:2!important;grid-row:1!important}
body.cp-shell #office-screen .programme-view-controls [data-programme-view=week]{grid-column:3!important;grid-row:1!important}
body.cp-shell #office-screen .programme-view-controls [data-programme-view=day]{grid-column:4!important;grid-row:1!important}
body.cp-shell #office-screen .programme-view-controls #programme-prev{grid-column:5!important;grid-row:1!important;padding:0!important;font-size:20px!important}
body.cp-shell #office-screen .programme-view-controls :is(#programme-month,#programme-day){grid-column:6!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:100%!important}
body.cp-shell #office-screen .programme-view-controls #programme-next{grid-column:7!important;grid-row:1!important;padding:0!important;font-size:20px!important}
/* Keep allocation feedback below the controls. Status changes cannot move Submit. */
body.cp-shell #office-screen .clean-allocate{display:flex;flex-direction:column;gap:0!important;margin-top:10px!important}
body.cp-shell #office-screen #clean-programme-form{--cp-allocation-label-offset:calc(12px * 1.45 + 4px);order:0;width:100%;grid-template-columns:minmax(150px,1fr) 132px 88px 88px minmax(230px,1.8fr) auto!important;align-items:start!important;gap:7px 8px!important}
body.cp-shell #office-screen #clean-programme-form>label{align-content:start!important;gap:4px!important;font-size:12px!important;line-height:1.45!important}
body.cp-shell #office-screen #clean-programme-form :is(input,select){height:34px!important;min-height:34px!important;margin:0!important;font-size:12px!important}
body.cp-shell #office-screen #clean-programme-form>button[type=submit]{height:34px!important;min-height:34px!important;align-self:start!important;margin:var(--cp-allocation-label-offset) 0 0!important}
body.cp-shell #office-screen .clean-allocate>.portal-form-autosave{order:2;padding:4px 7px!important;margin:7px 0 0!important;border:0!important;border-left:2px solid #c9ddd2!important;background:transparent!important}
body.cp-shell #office-screen .clean-allocate>.portal-form-autosave [data-portal-autosave-status]{height:2.9em!important;min-height:2.9em;max-height:2.9em;margin:0!important;overflow-y:auto;font-size:11px!important;line-height:1.45!important}
body.cp-shell #office-screen .clean-allocate>.portal-form-autosave [data-portal-recovery]{display:flex;flex-wrap:wrap;align-items:center;gap:5px 9px}
body.cp-shell #office-screen .clean-allocate>.portal-form-autosave [data-portal-recovery]>p{flex:1 1 100%;margin:2px 0!important;font-size:11px!important;line-height:1.45!important}
body.cp-shell #office-screen .clean-allocate>.portal-form-autosave [data-portal-recovery]>div{display:flex;flex-wrap:wrap;align-items:center;gap:5px 7px;margin:2px 0!important}
body.cp-shell #office-screen .clean-allocate>.portal-form-autosave [data-portal-recovery]>div>span{font-size:11px!important;margin-right:2px}
body.cp-shell #office-screen .clean-allocate>.portal-form-autosave button{min-height:30px!important;padding:5px 8px!important;flex:0 0 auto;font-size:11px!important;margin:0!important}
body.cp-shell #office-screen .clean-allocate>.absence-actions{order:1;display:flex;flex-wrap:wrap;align-items:end;gap:6px!important;margin:8px 0 0!important}
body.cp-shell #office-screen .clean-allocate>.absence-actions>label{display:grid;gap:4px;margin:0!important;font-size:12px!important;min-width:150px}
body.cp-shell #office-screen .clean-allocate>.programme-allocation-help{order:3;margin:4px 0 0!important}
body.cp-shell #programme-rate-list>.cp-rate-editor:has(>.programme-rate-form[data-rate-state=saved]){flex:0 1 auto;width:max-content;padding:0!important}
body.cp-shell #programme-rate-list>.cp-rate-editor:has(>.programme-rate-form[data-rate-state=saved])>.portal-form-autosave{display:none!important}
@media(max-width:600px){body.cp-shell #office-screen #programme-rate-list{gap:3px 20px!important}body.cp-shell #office-screen #programme-rate-list .programme-rate-form:not([data-rate-state=saved]) .programme-rate-name{flex-basis:100%!important}body.cp-shell #office-screen #programme-rate-list [data-rate-edit]{height:44px!important;min-height:44px!important;min-width:44px!important}}
/* Completed assessments are a compact four-column register, including revision. */
body.cp-shell #office-screen .clean-dra-register{margin-top:10px!important;padding:0!important;overflow:visible}
body.cp-shell #office-screen .clean-dra-register>.clean-register-head,body.cp-shell #office-screen #clean-dra-list>article{display:grid;grid-template-columns:100px minmax(180px,1fr) 120px 300px!important;align-items:center;gap:8px 12px!important}
body.cp-shell #office-screen #clean-dra-list>article{min-height:44px!important;margin:0!important;padding:6px 10px!important;border:0!important;border-bottom:1px solid #e3e9ec!important;border-radius:0!important;background:transparent;box-shadow:none!important;font-size:12px!important;line-height:1.4!important}
body.cp-shell #office-screen #clean-dra-list>article>span:not(:last-child){display:flex;align-items:center;gap:7px;min-width:0}
body.cp-shell #office-screen #clean-dra-list>article>span:last-child{display:flex!important;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px 10px!important;min-width:0}
body.cp-shell #office-screen #clean-dra-list>article>span:last-child>small{margin:0!important;font-size:11px!important;line-height:1.4!important}
body.cp-shell #office-screen #clean-dra-list [data-open-dra]{height:30px!important;min-height:30px!important;margin:0!important;padding:5px 9px!important;font-size:12px!important;line-height:1.4!important;white-space:nowrap}
@media(max-width:1250px){body.cp-shell #office-screen .clean-programme-board>.programme-board-head{grid-template-columns:minmax(0,1fr)!important}body.cp-shell #office-screen #clean-programme-form{grid-template-columns:minmax(0,1fr) 132px 88px 88px!important}body.cp-shell #office-screen #clean-programme-form>label:has(#clean-job-select){grid-column:1/4!important}body.cp-shell #office-screen #clean-programme-form>button[type=submit]{grid-column:4!important}}
@media(max-width:900px){body.cp-shell #office-screen .programme-view-controls> :is(input,button){height:44px!important;min-height:44px!important;font-size:16px!important}body.cp-shell #office-screen .programme-view-controls>[data-programme-view]{font-size:12px!important}body.cp-shell #office-screen .programme-view-controls{grid-template-columns:minmax(130px,1fr) repeat(3,max-content) 44px 145px 44px!important}body.cp-shell #office-screen #clean-programme-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.cp-shell #office-screen #clean-programme-form>label:has(#clean-job-select){grid-column:1/-1!important}body.cp-shell #office-screen #clean-programme-form>button[type=submit]{grid-column:1/-1!important;justify-self:start;margin-top:0!important}body.cp-shell #office-screen #clean-programme-form :is(input,select),body.cp-shell #office-screen #clean-programme-form>button[type=submit]{height:44px!important;min-height:44px!important;font-size:16px!important}body.cp-shell #office-screen .clean-allocate>.portal-form-autosave button{min-height:44px!important}body.cp-shell #office-screen .clean-dra-register>.clean-register-head,body.cp-shell #office-screen #clean-dra-list>article{grid-template-columns:80px minmax(140px,1fr) 100px 300px!important}}
@media(max-width:700px){body.cp-shell #office-screen .programme-view-controls{grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:6px 4px!important}body.cp-shell #office-screen .programme-view-controls #programme-search{grid-column:1/-1!important;grid-row:1!important}body.cp-shell #office-screen .programme-view-controls [data-programme-view=month]{grid-column:1/5!important;grid-row:2!important}body.cp-shell #office-screen .programme-view-controls [data-programme-view=week]{grid-column:5/9!important;grid-row:2!important}body.cp-shell #office-screen .programme-view-controls [data-programme-view=day]{grid-column:9/13!important;grid-row:2!important}body.cp-shell #office-screen .programme-view-controls #programme-prev{grid-column:1/3!important;grid-row:3!important;width:44px!important;justify-self:start}body.cp-shell #office-screen .programme-view-controls :is(#programme-month,#programme-day){grid-column:3/11!important;grid-row:3!important}body.cp-shell #office-screen .programme-view-controls #programme-next{grid-column:11/13!important;grid-row:3!important;width:44px!important;justify-self:end}body.cp-shell #office-screen .clean-dra-register>.clean-register-head{display:none!important}body.cp-shell #office-screen #clean-dra-list>article{grid-template-columns:minmax(0,1fr) auto!important;gap:5px 10px!important;padding:8px 0!important}body.cp-shell #office-screen #clean-dra-list>article>b{grid-column:1;grid-row:1}body.cp-shell #office-screen #clean-dra-list>article>span:not(:last-child){grid-column:1/-1;grid-row:2}body.cp-shell #office-screen #clean-dra-list>article>time{grid-column:2;grid-row:1;font-size:12px!important}body.cp-shell #office-screen #clean-dra-list>article>span:last-child{grid-column:1/-1;grid-row:3;justify-content:space-between}body.cp-shell #office-screen #clean-dra-list [data-open-dra]{height:44px!important;min-height:44px!important}}
@media(max-width:600px){body.cp-shell #programme-rate-list .cp-rate-editor>.portal-form-autosave{font-size:11px!important}body.cp-shell #office-screen #clean-programme-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.cp-shell #office-screen #clean-programme-form>*{grid-column:1/-1!important}body.cp-shell #office-screen #clean-programme-form>label:has(>[name=time]){grid-column:1!important}body.cp-shell #office-screen #clean-programme-form>label:has(>[name=endTime]){grid-column:2!important}body.cp-shell #office-screen .clean-allocate>.portal-form-autosave{padding:5px 7px!important}body.cp-shell #office-screen .clean-allocate>.portal-form-autosave [data-portal-recovery]>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;width:100%;gap:4px 6px}body.cp-shell #office-screen .clean-allocate>.portal-form-autosave [data-portal-recovery]>div>span{overflow-wrap:anywhere}body.cp-shell #office-screen .clean-allocate>.portal-form-autosave button{flex:0 1 auto;padding:6px 8px!important;font-size:11px!important}body.cp-shell #office-screen .clean-allocate>.portal-form-autosave [data-portal-keep-current]{justify-self:start}}
}



/* Compact supplier and fleet registers: aligned records, details on demand. */
@media screen{
 #office-screen :is(.fleet-layout,.fleet-layout>.office-card,#fleet-vehicle-form,.fleet-form-grid,.fleet-form-grid>label){min-width:0}
 #office-screen .fleet-form-grid :is(input,select,textarea){min-width:0;max-width:100%}
 body.cp-shell :is(#office-screen,#money-hub-screen) :is(.material-invoice-head,.material-invoice){grid-template-columns:minmax(160px,1.5fr) minmax(80px,.5fr) minmax(90px,.55fr) minmax(115px,.8fr) 108px;gap:12px!important}
 body.cp-shell #office-screen .fleet-layout{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 body.cp-shell #office-screen .fleet-layout.is-editing{grid-template-columns:minmax(0,1fr) minmax(360px,460px)!important}
 body.cp-shell #office-screen #fleet-editor[hidden]{display:none!important}
 body.cp-shell #office-screen :is(.fleet-register-head,.fleet-vehicle){display:grid;grid-template-columns:minmax(150px,1.2fr) minmax(130px,1fr) repeat(3,minmax(100px,.8fr)) 186px;gap:12px;align-items:center;padding:7px 10px;margin:0;border:0;border-bottom:1px solid #e9edf0;border-radius:0;background:#fff;box-shadow:none;box-sizing:border-box}
 body.cp-shell #office-screen .fleet-register-head{min-height:30px;background:#f5f7f9;color:#7b8992;font-size:10px;font-weight:600;letter-spacing:.05em}
 body.cp-shell #office-screen .fleet-register-head>span:last-child{text-align:right}
 body.cp-shell #office-screen .fleet-vehicle{min-height:50px;font-size:12px;line-height:1.35}
 body.cp-shell #office-screen .fleet-vehicle.needs-attention{box-shadow:inset 3px 0 #d47b34}
 body.cp-shell #office-screen .fleet-vehicle>*{min-width:0}
 body.cp-shell #office-screen .fleet-vehicle-title b{font-size:12px;font-weight:600;line-height:1.35}
 body.cp-shell #office-screen .fleet-vehicle-title span{font-size:11px;margin-top:2px;overflow-wrap:anywhere}
 body.cp-shell #office-screen .fleet-vehicle-driver{overflow-wrap:anywhere;color:#526575;font-size:11px}
 body.cp-shell #office-screen .fleet-vehicle-driver small{display:block;color:#966314;font-size:10px}
 body.cp-shell #office-screen .fleet-date{display:block;min-height:0;padding:0;border:0;border-radius:0;background:none;color:#526575;font-size:11px;overflow-wrap:anywhere}
 body.cp-shell #office-screen .fleet-date.overdue{color:#b43f3f;font-weight:600}
 body.cp-shell #office-screen .fleet-date.due{color:#966314;font-weight:600}
 body.cp-shell #office-screen .fleet-vehicle-actions{display:flex;justify-content:flex-end;gap:5px}
 body.cp-shell #office-screen .fleet-vehicle-actions button{min-height:30px;padding:5px 8px;border-radius:4px;white-space:nowrap;font-size:11px}
 body.cp-shell #office-screen #fleet-reminders{padding:9px 12px!important;margin-bottom:10px!important}
 body.cp-shell #office-screen .fleet-reminder-head{flex-direction:row;align-items:center;gap:10px;margin:0}
 body.cp-shell #office-screen .fleet-reminder-head h3{margin:0;font-size:12px;line-height:1.35}
 body.cp-shell #office-screen .fleet-reminder-totals{gap:6px}
 body.cp-shell #office-screen .fleet-reminder-totals span{padding:3px 7px;border-radius:4px}
 body.cp-shell #office-screen .fleet-reminder-list{margin-top:8px;gap:6px!important;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
 body.cp-shell #office-screen .fleet-reminder-list button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px;padding:6px 8px;border-radius:4px}
 body.cp-shell #office-screen .fleet-form-grid{align-items:start;gap:8px 12px!important}
 body.cp-shell #office-screen .fleet-form-grid label{align-content:start;align-self:start;gap:4px}
 body.cp-shell #office-screen .fleet-form-grid :is(input,select){height:34px;min-height:34px;padding:6px 8px;border-radius:4px}
 body.cp-shell #office-screen .fleet-form-grid textarea{min-height:60px;padding:7px 8px;border-radius:4px}
 body.cp-shell #office-screen .fleet-vehicle-form .programme-board-head{margin-bottom:10px}
 body.cp-shell #office-screen .fleet-vehicle-form form>button[type=submit]{margin-top:10px}
 body.cp-shell #office-screen .vehicle-register:is(:has(#vehicle-check-list>.programme-empty),:has(#vehicle-incident-list>.programme-empty)){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;align-items:center}
 body.cp-shell #office-screen .vehicle-register:is(:has(#vehicle-check-list>.programme-empty),:has(#vehicle-incident-list>.programme-empty)) :is(.programme-board-head,.office-form-head){margin:0!important;padding:0!important;border:0!important}
 body.cp-shell #office-screen .vehicle-register:is(:has(#vehicle-check-list>.programme-empty),:has(#vehicle-incident-list>.programme-empty)) :is(.clean-register-head,.programme-board-head>div>p,.programme-board-head>div>span,.office-form-head>p,.office-form-head>span){display:none!important}
 body.cp-shell #office-screen .vehicle-register:is(:has(#vehicle-check-list>.programme-empty),:has(#vehicle-incident-list>.programme-empty)) .programme-empty{margin:0!important;padding:0!important;min-height:0!important;font-size:11px}

@media (max-width:1600px){
 body.cp-shell #office-screen .fleet-layout.is-editing{grid-template-columns:minmax(0,1fr)!important}
 body.cp-shell #office-screen .fleet-layout.is-editing #fleet-editor{grid-row:1}
}
@media (max-width:1180px){
 body.cp-shell #office-screen .fleet-register-head{display:none}
 body.cp-shell #office-screen .fleet-vehicle{grid-template-columns:minmax(150px,1.2fr) repeat(3,minmax(85px,1fr));grid-template-areas:'vehicle mot service insurance' 'driver actions actions actions';gap:5px 12px}
 body.cp-shell #office-screen .fleet-vehicle-title{grid-area:vehicle}
 body.cp-shell #office-screen .fleet-vehicle-driver{grid-area:driver}
 body.cp-shell #office-screen .fleet-date[data-label=MOT]{grid-area:mot}
 body.cp-shell #office-screen .fleet-date[data-label=Service]{grid-area:service}
 body.cp-shell #office-screen .fleet-date[data-label=Insurance]{grid-area:insurance}
 body.cp-shell #office-screen .fleet-date::before{content:attr(data-label);display:block;font-size:9px;font-weight:600;color:#7b8992;text-transform:uppercase;margin-bottom:2px}
 body.cp-shell #office-screen .fleet-vehicle-actions{grid-area:actions}
}
@media (max-width:1050px){
 body.cp-shell :is(#office-screen,#money-hub-screen) .material-invoice{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px!important}
}
@media (max-width:650px){
 #office-screen .fleet-layout{grid-template-columns:minmax(0,1fr)!important}
 body.cp-shell #office-screen .fleet-vehicle{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-areas:'vehicle vehicle vehicle driver driver driver' 'mot mot service service insurance insurance' 'actions actions actions actions actions actions';gap:8px;padding:9px 8px}
 body.cp-shell #office-screen .fleet-vehicle-actions{justify-content:flex-end}
 body.cp-shell #office-screen .fleet-vehicle-actions button{min-height:44px}
 body.cp-shell #office-screen .fleet-reminder-head{align-items:flex-start;flex-direction:column;gap:6px}
 body.cp-shell #office-screen .fleet-reminder-totals{justify-content:flex-start}
 body.cp-shell #office-screen .fleet-reminder-list button{min-height:44px}
 body.cp-shell #office-screen .fleet-form-grid :is(input,select){height:44px;min-height:44px}
 body.cp-shell #office-screen .vehicle-register:is(:has(#vehicle-check-list>.programme-empty),:has(#vehicle-incident-list>.programme-empty)){grid-template-columns:minmax(0,1fr);gap:5px}
}

}
/* Keep the shared page title and the task itself prominent. */
body.cp-shell #office-screen .office-page-intro>h2,body.cp-shell #office-screen .office-page-intro>p{display:none!important}
body.cp-shell #office-screen .office-page-intro{margin:0 0 14px!important;padding:0!important;min-height:0!important}
body.cp-shell #office-screen .office-page-intro>span{display:block;font-size:12px;line-height:1.5}
body.cp-shell #office-screen .portal-secondary{margin:14px 0!important;padding:0 14px!important}
body.cp-shell #office-screen .portal-secondary>summary{box-sizing:border-box;min-height:44px;padding:13px 0;cursor:pointer;font-size:13px;font-weight:650;color:#23463d}
body.cp-shell #office-screen .portal-secondary[open]>summary{border-bottom:1px solid #e4e9ed;margin-bottom:12px}
body.cp-shell #office-screen .portal-secondary[open]{padding-bottom:14px!important}
body.cp-shell #office-screen .programme-rates .programme-rate-help{margin:8px 0 12px}
body.cp-shell #office-screen .programme-allocation-help .programme-drag-help{margin:10px 0 0;padding:0;border:0;white-space:normal}
body.cp-shell #office-screen .meeting-minutes-card .programme-board-head{justify-content:flex-end}
