/* V1328: one reachable scroll surface and stable, safe-area-aware dialog chrome.
   Existing earth-green screens, shift colours, calendar and five-tab dock stay. */
:root{--er1328-safe-top:env(safe-area-inset-top,0px);--er1328-safe-bottom:env(safe-area-inset-bottom,0px)}
html body.er1328 #modalHost#modalHost :is(.modal-overlay,.modal-backdrop),
html body.er1328 #er1278-invoice-root#er1278-invoice-root,
html body.er1328 #er1278-invoice-root .er1278-backdrop,
html body.er1328 #er1278-invoice-root .er1278-desk,
html body.er1328 #modalHost#modalHost :is(.modal,.shift-modal,.timesheet-modal){touch-action:pan-y!important;overscroll-behavior:contain!important;animation:none!important;transition:none!important;transform:none!important}
html body.er1328 #modalHost#modalHost .modal{display:flex!important;flex-direction:column!important;overflow:hidden!important;min-height:0!important;max-height:calc(100svh - 32px)!important}
html body.er1328 #modalHost#modalHost .modal>.modal-head{position:relative!important;inset:auto!important;flex:0 0 auto!important;height:auto!important;min-height:64px!important;margin:0!important;padding:14px 17px!important;transform:none!important;animation:none!important;display:flex!important;align-items:center!important}
html body.er1328 #modalHost#modalHost .modal>.modal-head :is(h2,h3){margin:0!important;line-height:1.25!important;min-width:0!important}
html body.er1328 #modalHost#modalHost .modal>.modal-head .modal-x{position:relative!important;inset:auto!important;flex:0 0 36px!important;width:36px!important;height:36px!important;min-height:36px!important;margin-left:auto!important;pointer-events:auto!important}
html body.er1328 #modalHost#modalHost .modal>:is(.modal-body,.modal-scroll,.sft-body){position:relative!important;inset:auto!important;flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important;scroll-behavior:auto!important;overflow-anchor:none!important;transform:none!important;margin-top:0!important}
html body.er1328 #modalHost#modalHost .modal>.modal-foot{position:relative!important;inset:auto!important;flex:0 0 auto!important;height:auto!important;max-height:none!important;margin:0!important;transform:none!important;animation:none!important}
html body.er1328 :is(.rc-card,.er794-card,.er952-home-roster-card,.cv-row,.er1319-dashboard,.er1319-employee-dashboard){animation:none!important;transition:none!important;transform:none!important;content-visibility:visible!important;contain-intrinsic-size:none!important;overflow-anchor:none!important}
html body.er1328 #er1278-invoice-root .er1278-scroll{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;touch-action:pan-y!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;overflow-anchor:none!important}
html body.er1328 #er1278-invoice-root :is(.er1278-head,.er1278-foot,.er1278-feedback){flex-shrink:0!important}
html body.er1328 #er1278-invoice-root input,html body.er1328 #er1278-invoice-root textarea,html body.er1328 #er1278-invoice-root select{touch-action:manipulation!important}
html body.er1328 .er1319-settings-sheet,html body.er1328 .er1165-settings-overlay{touch-action:pan-y!important}
html body.er1328 .ww1149-notif-item:has(.er1328-notice-summary){border-left:3px solid #416b48!important}
html body.er1328 :is(.ww666-sheet,.ww669-sheet,.ww670-sheet,.ww672-sheet,.er963-sheet){display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important;touch-action:pan-y!important;transform:none!important;animation:none!important;transition:none!important}
html body.er1328 :is(.ww666-sheet,.ww669-sheet,.ww670-sheet,.ww672-sheet)>header,html body.er1328 .er963-sheet-head{position:relative!important;inset:auto!important;flex:0 0 auto!important;min-height:66px!important;height:auto!important;transform:none!important}
html body.er1328 :is(.ww666-sheet,.ww669-sheet,.ww670-sheet,.ww672-sheet)>main,html body.er1328 .er963-sheet-body{position:relative!important;inset:auto!important;flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;touch-action:pan-y!important;overscroll-behavior:contain!important;overflow-anchor:none!important;-webkit-overflow-scrolling:touch!important;transform:none!important}
html body.er1328 .er963-sheet-foot{flex:0 0 auto!important;position:relative!important;inset:auto!important;transform:none!important}
.er1328-notice-summary{display:block;color:#4b6350;font-size:11px;line-height:1.45;margin-top:5px;font-weight:550;white-space:normal;overflow-wrap:anywhere}
.er1328-notice-summary b{color:#285035;font-weight:750}
@media(min-width:1024px) and (max-width:1250px){
 html body.er1328 #app#app .er915-toolbar{display:grid!important;grid-template-columns:auto auto minmax(0,1fr)!important;gap:8px!important;align-items:center!important;width:100%!important;min-width:0!important;height:auto!important;max-height:none!important;flex-wrap:wrap!important}
 html body.er1328 #app#app .er915-weeknav{grid-column:1/-1!important;width:100%!important;max-width:100%!important;min-width:0!important;flex:none!important;justify-content:space-between!important}
 html body.er1328 #app#app .er915-weeknav strong{min-width:0!important;flex:1!important;text-align:center!important}
 html body.er1328 #app#app .er915-filterbar{width:100%!important;min-width:0!important;max-width:100%!important;display:flex!important;flex-wrap:wrap!important}
 html body.er1328 #app#app .er915-filterbar .er915-select{width:auto!important;min-width:0!important;flex:1!important}
}
@media(max-width:1023px){
 html body.er1328,html body.er1328.ww-native-form-active{touch-action:pan-y!important}
 html body.er1328 #app#app .shell .main{display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important;height:100svh!important;max-height:100svh!important;transform:none!important}
 html body.er1328 #app#app .shell .main>.topbar{position:relative!important;inset:auto!important;flex:0 0 auto!important;min-height:calc(60px + var(--er1328-safe-top))!important;height:auto!important;padding-top:calc(8px + var(--er1328-safe-top))!important;transform:none!important;animation:none!important}
 html body.er1328 #app#app .shell .main>.content{position:relative!important;inset:auto!important;flex:1 1 auto!important;height:auto!important;max-height:none!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;touch-action:pan-y!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;overflow-anchor:none!important;padding-bottom:calc(82px + var(--er1328-safe-bottom))!important;transform:none!important}
 html body.er1328 #modalHost#modalHost :is(.modal-overlay,.modal-backdrop){position:fixed!important;inset:var(--er1328-dialog-top,0px) 0 auto!important;height:var(--er1328-dialog-height,100svh)!important;max-height:var(--er1328-dialog-height,100svh)!important;display:flex!important;align-items:stretch!important;justify-content:center!important;padding:var(--er1328-safe-top) 0 var(--er1328-safe-bottom)!important;box-sizing:border-box!important}
 html body.er1328 #modalHost#modalHost .modal{position:relative!important;inset:auto!important;width:100%!important;max-width:100%!important;min-height:0!important;height:100%!important;max-height:100%!important;border-radius:0!important;margin:0!important;touch-action:pan-y!important}
 html body.er1328 #modalHost#modalHost{touch-action:pan-y!important}
 html body.er1328 #modalHost#modalHost .modal>.modal-head{display:flex!important;background:#294b34!important;color:#f4f4e8!important;border-bottom:1px solid #48664a!important}
 html body.er1328 #modalHost#modalHost .modal>.modal-head :is(h2,h3,strong){color:#f4f4e8!important;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:19px!important}
 html body.er1328 #modalHost#modalHost .modal>.modal-head .modal-x{background:#ffffff14!important;color:#f4f4e8!important;border:1px solid #ffffff30!important}
 html body.er1328 #modalHost#modalHost .modal>.modal-foot{padding:10px 12px!important}
 html body.er1328 #er1278-invoice-root#er1278-invoice-root{inset:var(--er1328-dialog-top,0px) 0 auto!important;height:var(--er1328-dialog-height,100svh)!important;max-height:var(--er1328-dialog-height,100svh)!important;touch-action:pan-y!important}
 html body.er1328 #er1278-invoice-root .er1278-backdrop{display:flex!important;padding:var(--er1328-safe-top) 0 var(--er1328-safe-bottom)!important;box-sizing:border-box!important;height:100%!important;align-items:stretch!important}
 html body.er1328 #er1278-invoice-root .er1278-desk{position:relative!important;inset:auto!important;height:100%!important;max-height:100%!important;min-height:0!important;width:100%!important;border-radius:0!important;touch-action:pan-y!important}
 html body.er1328 .er1319-settings-sheet{inset:0!important;height:100svh!important;padding-top:var(--er1328-safe-top)!important;padding-bottom:var(--er1328-safe-bottom)!important;box-sizing:border-box!important}
 html body.er1328 .er1319-settings-sheet>header{padding-top:18px!important}
 html body.er1328 .er1319-settings-sheet .er1165-settings-body{padding-bottom:14px!important}
 html body.er1328.chat-thread-open #app#app .shell .main>.content{overflow:hidden!important;padding:0!important}
 html body.er1328 #modalHost#modalHost input:not([type=checkbox]):not([type=radio]):not([type=range]),html body.er1328 #modalHost#modalHost textarea,html body.er1328 #er1278-invoice-root :is(input:not([type=checkbox]):not([type=radio]),textarea,select){font-size:16px!important}
 /* The signature canvas keeps its own drawing gesture; it is not a scroller. */
 html body.er1328 #modalHost#modalHost :is(canvas.sign-pad,#ww675Signature){touch-action:none!important}
 html body.er1328 :is(.ww666-overlay,.ww669-overlay,.ww670-overlay,.ww672-overlay,.er963-sheet-backdrop){position:fixed!important;inset:var(--er1328-dialog-top,0px) 0 auto!important;height:var(--er1328-dialog-height,100svh)!important;max-height:var(--er1328-dialog-height,100svh)!important;display:flex!important;align-items:stretch!important;padding:var(--er1328-safe-top) 0 var(--er1328-safe-bottom)!important;box-sizing:border-box!important;touch-action:pan-y!important;transform:none!important;animation:none!important}
 html body.er1328 :is(.ww666-sheet,.ww669-sheet,.ww670-sheet,.ww672-sheet,.er963-sheet){position:relative!important;inset:auto!important;width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important;margin:0!important;border-radius:0!important}
 html body.er1328 :is(.ww666-sheet,.ww669-sheet,.ww670-sheet,.ww672-sheet)>header,html body.er1328 .er963-sheet-head{padding-top:14px!important}
 html body.er1328 :is(.ww666-sheet,.ww669-sheet,.ww670-sheet,.ww672-sheet,.er963-sheet) :is(input:not([type=checkbox]):not([type=radio]),textarea,select){font-size:16px!important}
}
