/* Shared readable controls and keyboard-aware layout for Resolved portals. */
html body [contenteditable]:not([contenteditable="false"]){color:#14283f!important;-webkit-text-fill-color:#14283f!important;caret-color:#075bb5!important;background:#fff!important;font-size:max(16px,1rem)!important;overflow-wrap:anywhere;}
html body :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),textarea,select){color:#14283f!important;-webkit-text-fill-color:#14283f!important;caret-color:#075bb5!important;background-color:#fff!important;box-sizing:border-box;scroll-margin:24px 0;}
:is(input,textarea)::placeholder{color:#63758a!important;-webkit-text-fill-color:#63758a!important;opacity:1;}
input:-webkit-autofill,textarea:-webkit-autofill{-webkit-text-fill-color:#14283f!important;caret-color:#075bb5!important;box-shadow:0 0 0 1000px #fff inset!important;}
input::-webkit-datetime-edit{color:#14283f!important;}
@media (pointer:coarse),(max-width:1366px){html body :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),textarea,select){font-size:max(16px,1rem)!important;max-width:100%;min-width:0;}}
html.resolved-keyboard-open,html.resolved-keyboard-open body{scroll-behavior:auto!important;}
html.resolved-keyboard-open body dialog[open]{position:fixed!important;top:calc(var(--resolved-visual-top) + 8px)!important;bottom:auto!important;margin-top:0!important;margin-bottom:0!important;max-height:calc(var(--resolved-visual-height) - 16px)!important;overflow-y:auto!important;overscroll-behavior:contain;scroll-behavior:auto!important;}
html.resolved-keyboard-open body textarea:focus{max-height:max(64px,calc(var(--resolved-visual-height) - 150px))!important;min-height:64px!important;overflow-y:auto!important;}
html.resolved-keyboard-open body :is(.bottom-nav,.ws-bottom,.employee-bottom-nav,.employee-mobile-nav,.help-toggle,.contact-us,#employee-clock-status){display:none!important;}
html.resolved-keyboard-open body .help-panel{top:calc(var(--resolved-visual-top) + 8px)!important;bottom:auto!important;max-height:calc(var(--resolved-visual-height) - 16px)!important;overflow-y:auto!important;}
html.resolved-keyboard-open body .help-log{max-height:max(64px,calc(var(--resolved-visual-height) - 190px))!important;}
/* Sticky form headers and invoice summaries must not cover the field above the keyboard. */
html.resolved-keyboard-open body :is(dialog[open],.modal,.modal-content) :is(.modal-head,.resolved-live-invoice-summary){position:static!important;top:auto!important;}
html.resolved-keyboard-open body dialog[open]{min-height:0!important;height:auto!important;box-sizing:border-box!important;}
html.resolved-keyboard-open body dialog[open] form{min-height:0!important;}
html.resolved-keyboard-open body :is(input,textarea,[contenteditable="true"]):focus{scroll-margin-block:16px!important;}
html.resolved-keyboard-open body .resolved-editing-surface{position:fixed!important;top:calc(var(--resolved-visual-top) + 8px)!important;bottom:auto!important;transform:none!important;box-sizing:border-box!important;min-height:0!important;height:calc(var(--resolved-visual-height) - 16px)!important;max-height:calc(var(--resolved-visual-height) - 16px)!important;overflow-y:auto!important;overscroll-behavior:contain;}
