/* RC7.1.33 - device safe areas and a more comfortable workspace. Presentation only. */
:root{--ag-safe-top:env(safe-area-inset-top,0px);--ag-safe-right:env(safe-area-inset-right,0px);--ag-safe-bottom:env(safe-area-inset-bottom,0px);--ag-safe-left:env(safe-area-inset-left,0px);--ag-visible-height:100dvh;--ag-visual-top:0px;--ag-dialog-gap:18px}
html{scroll-padding-top:calc(90px + var(--ag-safe-top))}
body.signature-workspace .workspace-hero-content,body.signature-workspace .workspace-content{width:100%;max-width:1580px;margin-inline:auto;box-sizing:border-box}
body.signature-workspace .workspace-hero-content{padding:34px 40px 54px!important;gap:30px}
body.signature-workspace .workspace-content{padding:0 40px 64px!important}
body.signature-workspace .workspace-hero h1{line-height:1.12!important;overflow-wrap:anywhere}
body.signature-workspace .hero-context{flex-wrap:wrap;gap:12px 24px;line-height:1.65}
body.signature-workspace .hero-context>span{min-width:0;max-width:100%;overflow-wrap:anywhere}
body.signature-workspace .workspace-actions{gap:12px!important}
body.signature-workspace .experience-metrics{margin-bottom:34px}
body.signature-workspace :is(.experience-command-deck,.signature-grid,.records-customers.cards,.experience-vehicles.cards){gap:24px}
body.signature-workspace .experience-command-deck{margin-bottom:40px}
body.signature-workspace .experience-section-head{gap:24px;flex-wrap:wrap;margin-bottom:26px}
body.signature-workspace .experience-heading-actions{gap:12px;min-width:0}
body.signature-workspace :is(.experience-directory-tools,.records-tools){gap:18px;padding:20px}
body.signature-workspace :is(.records-page,.experience-vehicle-directory,.experience-section){padding-top:32px}
body.signature-workspace .experience-panel{padding:26px}
body.signature-workspace :is(.records-customer,.records-document-card){overflow-wrap:anywhere}
body.signature-workspace :is(.records-page,.experience-section,.experience-vehicle-directory) h2{line-height:1.22}
body.signature-workspace :is(input,select,textarea){min-width:0}
/* Every overlay is bounded by the visible area, rather than a fixed top offset. */
body.signature-workspace #modal.show{display:flex!important;align-items:center;justify-content:center;top:var(--ag-visual-top)!important;bottom:auto!important;left:0!important;right:0!important;height:var(--ag-visible-height)!important;padding:calc(var(--ag-safe-top) + var(--ag-dialog-gap)) calc(var(--ag-safe-right) + var(--ag-dialog-gap)) calc(var(--ag-safe-bottom) + var(--ag-dialog-gap)) calc(var(--ag-safe-left) + var(--ag-dialog-gap));box-sizing:border-box}
body.signature-workspace #modal.show .modal-panel{position:relative!important;inset:auto!important;transform:none!important;width:min(1100px,100%)!important;height:auto!important;max-height:calc(var(--ag-visible-height) - var(--ag-safe-top) - var(--ag-safe-bottom) - 2 * var(--ag-dialog-gap))!important;margin:0!important;display:flex!important;flex-direction:column;overflow:hidden!important;border-radius:22px!important;z-index:1;min-height:0;box-sizing:border-box;padding-bottom:0!important}
body.signature-workspace #modal .modal-header{flex:0 0 auto;padding:28px 76px 24px 30px!important;min-width:0}
body.signature-workspace #modal .modal-header :is(h2,p){overflow-wrap:anywhere}
body.signature-workspace #modal .modal-header h2{line-height:1.2}
body.signature-workspace #modal .modal-stepper{flex:0 0 auto;min-height:0}
body.signature-workspace #modalForm{flex:1 1 auto;min-height:0;overflow-y:auto!important;overscroll-behavior:contain;padding:26px 30px 28px!important;scroll-padding-bottom:90px;box-sizing:border-box}
body.signature-workspace #modalForm :is(.form-grid,.wizard-grid){gap:22px}
body.signature-workspace #modalForm .field{gap:9px}
body.signature-workspace #modalForm :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){min-height:47px;max-width:100%;box-sizing:border-box}
body.signature-workspace #modalForm .wizard-controls{bottom:0!important;left:auto!important;right:auto!important;margin:25px 0 0!important;padding:17px 0 6px!important;gap:12px;position:sticky!important;background:linear-gradient(#ffffffed,#fff 28%);z-index:4;flex-wrap:wrap}
body.signature-workspace #modalForm .wizard-controls button{min-height:46px;white-space:normal;line-height:1.4}
body.signature-workspace #recordDrawer.open .record-panel,body.signature-workspace #notificationDrawer.open .notification-panel{position:fixed!important;left:calc(var(--ag-safe-left) + 50% - (var(--ag-safe-left) + var(--ag-safe-right)) / 2)!important;right:auto!important;top:calc(var(--ag-visual-top) + var(--ag-safe-top) + var(--ag-dialog-gap))!important;bottom:auto!important;transform:translateX(-50%)!important;width:min(1320px,calc(100% - var(--ag-safe-left) - var(--ag-safe-right) - 2 * var(--ag-dialog-gap)))!important;height:calc(var(--ag-visible-height) - var(--ag-safe-top) - var(--ag-safe-bottom) - 2 * var(--ag-dialog-gap))!important;max-height:calc(var(--ag-visible-height) - var(--ag-safe-top) - var(--ag-safe-bottom) - 2 * var(--ag-dialog-gap))!important;border:1px solid #d2e1ea!important;border-radius:22px!important;overflow:hidden!important;padding:0!important;box-sizing:border-box}
body.signature-workspace #notificationDrawer.open .notification-panel{width:min(980px,calc(100% - var(--ag-safe-left) - var(--ag-safe-right) - 2 * var(--ag-dialog-gap)))!important;display:flex;flex-direction:column}
body.signature-workspace #recordDrawerContent{padding-top:0!important;min-height:0}
body.signature-workspace #notificationDrawer .side-panel-head{padding:28px 76px 24px 28px;flex:0 0 auto}
body.signature-workspace #notificationDrawerContent{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:23px 27px 28px}
body.signature-workspace :is(#recordDrawer,#notificationDrawer) .panel-close{top:17px!important;right:17px!important;width:44px;height:44px;z-index:8}
body.signature-workspace .record-head{overflow-wrap:anywhere}
body.signature-workspace .record-scroll{overscroll-behavior:contain}
/* Account and public pages remain usable when opened from the installed app. */
.access-page .access-header{padding-top:var(--ag-safe-top);min-height:calc(100px + var(--ag-safe-top))}
.access-page .access-footer{padding-bottom:calc(25px + var(--ag-safe-bottom))}
.access-page .access-layout,.access-page .access-header,.access-page .access-footer{max-width:calc(100% - var(--ag-safe-left) - var(--ag-safe-right) - 40px)}
.site-header .header-inner{padding-top:var(--ag-safe-top);min-height:calc(88px + var(--ag-safe-top))}
body:is(.access-page,.legal-page):before,.site-header:before{content:'';position:fixed;inset:0 0 auto;height:var(--ag-safe-top);background:#203743;z-index:999;pointer-events:none}
body.signature-admin .topbar{padding-top:calc(16px + var(--ag-safe-top));height:auto}
body.signature-admin .dialog{max-height:calc(var(--ag-visible-height) - var(--ag-safe-top) - var(--ag-safe-bottom) - 24px)}
@media(min-width:721px) and (max-width:1200px){
 body.signature-workspace .topbar{height:auto!important;min-height:0!important;flex-wrap:wrap!important;padding-top:var(--ag-safe-top);padding-left:var(--ag-safe-left);padding-right:var(--ag-safe-right);align-items:center!important}
 body.signature-workspace .topbar-brand{height:70px!important;flex:0 0 230px;width:230px;padding:0 20px!important}
 body.signature-workspace .topbar-tools{height:70px!important;flex:1;min-width:0;margin:0 0 0 auto;justify-content:flex-end;gap:10px}
 body.signature-workspace .user-menu>span:not(.user-avatar){display:none}
 body.signature-workspace .global-search{flex:0 1 245px;min-width:145px;width:auto}
 body.signature-workspace .topnav{order:3;display:flex!important;flex:1 1 100%;width:100%;height:54px;min-width:0;overflow-x:auto;justify-content:center;border-top:1px solid #ffffff0c;padding-inline:12px;scrollbar-width:thin}
 body.signature-workspace .topnav button{flex:0 0 auto;padding:12px 15px;font-size:12px;min-height:50px}
 body.signature-workspace .workspace-content{padding-inline:26px!important}
 body.signature-workspace .experience-command-deck{grid-template-columns:1fr 1fr}
 body.signature-workspace .experience-command-deck>.experience-panel:last-child{grid-column:1/-1}
}
@media(max-width:960px){
 body.signature-workspace :is(.records-customers.cards,.signature-grid,.experience-vehicles.cards){grid-template-columns:repeat(2,minmax(0,1fr))}
 body.signature-workspace :is(.experience-directory-tools,.records-tools){flex-wrap:wrap;gap:16px}
 body.signature-workspace .records-tools .experience-directory-search{flex-basis:100%;min-width:0}
}
@media(max-width:760px){
 :root{--ag-dialog-gap:10px}
 body.signature-workspace .workspace-hero,body.signature-workspace[data-workspace-view=workshop] .workspace-hero{min-height:0!important}
 body.signature-workspace .workspace-hero-content{padding:25px max(18px,var(--ag-safe-right)) 45px max(18px,var(--ag-safe-left))!important;display:block;gap:0}
 body.signature-workspace[data-workspace-view=workshop] .workspace-hero-content{padding-bottom:25px!important}
 body.signature-workspace .workspace-hero h1{font-size:clamp(27px,7vw,35px)!important;letter-spacing:-1px;line-height:1.15!important}
 body.signature-workspace .hero-greeting{font-size:12px;margin-bottom:15px}
 body.signature-workspace .hero-context{font-size:11px;gap:8px 15px;margin-top:16px}
 body.signature-workspace .hero-context .hero-location{white-space:normal;min-width:0;max-width:100%}
 body.signature-workspace .workspace-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin-top:22px}
 body.signature-workspace .workspace-actions .btn,body.signature-workspace .workspace-actions .btn:last-child{display:flex!important;justify-content:center;align-items:center;min-width:0!important;min-height:48px;font-size:11px!important;white-space:normal;line-height:1.4;padding:11px 8px!important;margin:0!important}
 body.signature-workspace .workspace-content{padding:0 max(16px,var(--ag-safe-right)) 45px max(16px,var(--ag-safe-left))!important}
 body.signature-workspace .experience-metrics{margin-top:-22px;margin-bottom:27px}
 body.signature-workspace .experience-metrics>button{min-height:87px;padding:18px 13px;gap:11px}
 body.signature-workspace .experience-command-deck{grid-template-columns:minmax(0,1fr);gap:22px;margin-bottom:32px}
 body.signature-workspace .experience-command-deck>.experience-panel:last-child{grid-column:auto}
 body.signature-workspace .experience-panel{padding:22px}
 body.signature-workspace .experience-section-head{gap:18px;margin-bottom:24px}
 body.signature-workspace .experience-section-head h2{font-size:23px;line-height:1.22}
 body.signature-workspace .experience-heading-actions{width:100%;gap:12px}
 body.signature-workspace :is(.experience-section,.experience-vehicle-directory,.records-page){padding-top:27px}
 body.signature-workspace :is(.experience-directory-tools,.records-tools){padding:16px;gap:16px}
 body.signature-workspace .experience-view-switch{min-width:0;max-width:100%;gap:4px}
 body.signature-workspace .experience-view-switch button{min-height:44px}
 body.signature-workspace :is(.signature-grid,.records-customers.cards,.experience-vehicles.cards){grid-template-columns:minmax(0,1fr);gap:22px}
 body.signature-workspace #modal .modal-header{padding:23px 70px 20px 22px!important}
 body.signature-workspace #modal .modal-header h2{font-size:24px!important;line-height:1.22}
 body.signature-workspace #modal .modal-header p:not(.eyebrow){font-size:12px;line-height:1.6;max-height:5em;overflow-y:auto}
 body.signature-workspace #modalForm{padding:23px 21px 26px!important}
 body.signature-workspace #modalForm :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px!important;min-height:48px}
 body.signature-workspace #modalForm .form-grid{gap:22px}
 body.signature-workspace #modalForm .wizard-controls .btn{flex:1 1 115px}
 body.signature-workspace #recordDrawerContent{display:block!important;height:100%;overflow-y:auto!important;overscroll-behavior:contain;scroll-padding-top:16px;padding-bottom:20px!important}
 body.signature-workspace #recordDrawerContent .record-scroll{overflow:visible!important;height:auto!important;min-height:0!important;max-height:none!important;padding-bottom:30px!important}
 body.signature-workspace #recordDrawerContent .record-head{padding:26px 70px 23px 22px!important;flex:none}
 body.signature-workspace #recordDrawerContent .job-context-summary{padding:18px 20px!important;gap:16px}
 body.signature-workspace #recordDrawerContent .job-tabbar{top:0!important;z-index:4;padding-block:9px;background:#f6fafd}
 body.signature-workspace #notificationDrawer .side-panel-head{padding:24px 68px 20px 22px}
 body.signature-workspace #notificationDrawer .side-panel-head h2{font-size:26px}
 body.signature-workspace #notificationDrawerContent{padding:21px 20px 26px}
 body.signature-workspace :is(.mobile-sheet-panel,.mobile-search-panel){left:calc(var(--ag-safe-left) + 10px)!important;right:calc(var(--ag-safe-right) + 10px)!important;bottom:calc(var(--ag-safe-bottom) + 10px)!important;max-height:calc(var(--ag-visible-height) - var(--ag-safe-top) - var(--ag-safe-bottom) - 20px)!important;padding-bottom:22px!important;border-radius:21px!important}
 body.signature-workspace :is(.mobile-sheet,.mobile-search-sheet){top:var(--ag-visual-top)!important;bottom:auto!important;height:var(--ag-visible-height)!important}
 .access-page .access-header{min-height:calc(85px + var(--ag-safe-top))}
 .site-header .header-inner{min-height:calc(76px + var(--ag-safe-top))}
}
@media(max-width:720px){
 body.signature-workspace .topbar{height:calc(68px + var(--ag-safe-top))!important;min-height:calc(68px + var(--ag-safe-top))!important;padding-top:var(--ag-safe-top)!important;padding-left:var(--ag-safe-left)!important;padding-right:var(--ag-safe-right)!important;box-sizing:border-box;align-items:flex-end!important}
 body.signature-workspace :is(.topbar-brand,.topbar-tools){height:68px!important;min-height:68px!important;align-self:flex-end!important}
 body.signature-workspace .topbar-brand{padding-inline:16px!important;min-width:0}
 body.signature-workspace .topbar-brand-mobile-copy strong{font-size:12px;line-height:1.15}
 body.signature-workspace .topbar-brand-mobile-copy small{font-size:6px;line-height:1.3;letter-spacing:.12em}
 body.signature-workspace .topbar-tools{gap:8px!important;padding-right:14px!important;padding-left:0!important}
 body.signature-workspace :is(.mobile-search-button,.notification-button){width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
 body.signature-workspace .mobile-nav{left:calc(var(--ag-safe-left) + 12px);right:calc(var(--ag-safe-right) + 12px);bottom:calc(var(--ag-safe-bottom) + 10px);height:66px;padding:6px;border-radius:19px}
 body.signature-workspace .mobile-nav button{min-width:0;font-size:10px;line-height:1.2;gap:4px}
 body.signature-workspace .app-main{padding-bottom:calc(96px + var(--ag-safe-bottom));min-height:calc(100dvh - 68px - var(--ag-safe-top))}
 body.signature-workspace .toast{bottom:calc(88px + var(--ag-safe-bottom))!important;max-width:calc(100% - var(--ag-safe-left) - var(--ag-safe-right) - 30px);white-space:normal;overflow-wrap:anywhere}
 html[data-ag-keyboard=true] body.signature-workspace .mobile-nav{visibility:hidden;pointer-events:none}
}
@media(max-height:640px){
 body.signature-workspace #recordDrawerContent{display:block!important;overflow-y:auto!important}
 body.signature-workspace #recordDrawerContent .record-scroll{height:auto!important;overflow:visible!important;max-height:none!important}
 body.signature-workspace #modal .modal-header{padding-top:18px!important;padding-bottom:16px!important}
 body.signature-workspace #modalForm .wizard-controls{position:static!important}
}
@media(max-width:600px){.access-page .access-header{min-height:calc(78px + var(--ag-safe-top))}.access-page .access-footer{padding-bottom:calc(18px + var(--ag-safe-bottom))}}
@media(max-width:360px){body.signature-workspace .topbar-brand{padding-left:12px!important;padding-right:6px!important}body.signature-workspace .topbar-brand-mobile-copy strong{font-size:10px}body.signature-workspace .topbar-brand-mobile-copy small{font-size:5px}body.signature-workspace .topbar-brand-mobile{gap:6px}body.signature-workspace .topbar-brand-mobile>img{width:30px!important;height:30px!important;flex-basis:30px}body.signature-workspace .topbar-tools{gap:5px!important;padding-right:9px!important}}
@media(max-width:760px){body.signature-workspace .experience-hub{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body.signature-workspace .experience-hub .experience-action{flex-direction:row;justify-content:flex-start;min-height:66px;padding:14px 13px;font-size:12px;text-align:left;gap:11px}body.signature-workspace .experience-hub .experience-action .ui-svg{width:21px;height:21px;flex:0 0 21px}}
/* Avoid doubled label margins, and keep the footer flush with its scroll area. */
body.signature-workspace #modalForm{--ag-form-pad:30px}
body.signature-workspace #modalForm .form-grid{margin-bottom:22px}
body.signature-workspace #modalForm .form-grid .field{margin:0!important}
body.signature-workspace #modalForm:has(.wizard-controls){padding-bottom:0!important}
body.signature-workspace #modalForm .wizard-controls{margin:25px calc(-1 * var(--ag-form-pad)) 0!important;padding:16px var(--ag-form-pad) 24px!important;background:#f9fcfe;border-top:1px solid #dce7ed}
@media(max-width:760px){body.signature-workspace #modalForm{--ag-form-pad:21px}}
.access-page .password-field button{min-height:44px}
@media(max-width:1240px){body.signature-workspace .calendar-shell{scrollbar-width:thin;scrollbar-color:#9eb5c3 #edf3f7;overscroll-behavior-x:contain}body.signature-workspace .calendar-shell:has(.week-calendar):before{content:'Swipe or scroll across the week. Choose Day for a focused view.';display:block;position:sticky;left:0;padding:13px 17px;font-size:11px;line-height:1.6;color:#627f91;background:#f4f8fb;border-bottom:1px solid #dce6ed}}
