/* Screen-only mobile layer. No document/print or calculation changes. */
@media screen and (max-width:900px){
 html{scroll-padding-top:64px}body{overflow-wrap:break-word}.site-header,#workspace,#content,main,.card{min-width:0;max-width:100%}#identity{overflow-wrap:anywhere}.toolbar{align-items:center}.toolbar h1{font-size:21px;overflow-wrap:anywhere}button{touch-action:manipulation;white-space:normal;min-height:44px}button:disabled{cursor:default}input:not([type=radio]):not([type=checkbox]),select,textarea{font-size:16px!important}input:is([type=radio],[type=checkbox]){width:22px;height:22px;min-height:22px;flex:0 0 22px;accent-color:#0f5444}.small{font-size:13px;line-height:1.6}.filters label{min-width:0;width:100%}.filters>.actions{width:100%}.actions{gap:8px;max-width:100%}.actions>button{min-width:0;overflow-wrap:anywhere}.card>.actions>button{flex:1 1 135px}.filters .actions button{flex:1 1 120px}fieldset{min-width:0;max-width:100%}legend{max-width:100%;white-space:normal}.check-label{align-items:flex-start;line-height:1.5}.check-label input{margin-top:1px}.notice,.reason,.meta,#message{overflow-wrap:anywhere}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric-grid .card{padding:12px}.metric{font-size:24px}.table-region{max-width:100%;overscroll-behavior-x:contain}.mobile-data-table td button{min-height:44px}
 dialog{position:fixed;inset-block-start:calc(var(--app-top,0px) + 8px);inset-block-end:auto;margin:0 auto;max-block-size:calc(var(--app-vh,100dvh) - 16px - env(safe-area-inset-bottom));max-width:calc(100vw - 16px);width:calc(100vw - 16px);padding:16px;overflow:auto;overscroll-behavior:contain;scroll-padding:16px;border-radius:12px}dialog h2{font-size:20px}dialog .actions{flex-wrap:wrap}dialog .actions button{min-height:46px;flex:1 1 120px}dialog textarea{min-height:90px}dialog input[type=file]{font-size:14px!important;overflow:hidden}dialog form>.actions{position:sticky;bottom:-16px;background:#fff;padding:12px 0 calc(12px + env(safe-area-inset-bottom));border-top:1px solid #dce8df;z-index:3}dialog form>.actions button{min-width:0}#decision-dialog .actions{margin-top:16px}
 .scan-evidence-dialog[open]{display:flex;flex-direction:column;padding:0;overflow:hidden;height:min(850px,calc(var(--app-vh,100dvh) - 16px - env(safe-area-inset-bottom)))}.scan-heading{padding:14px 16px;flex:0 0 auto;border-bottom:1px solid #dce8df;background:#fff;align-items:center}.scan-heading h2{font-size:18px}.scan-heading p{font-size:13px;margin:0}.scan-heading button{min-width:70px;flex-shrink:0}.scan-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 16px;flex:1}.scan-body>.small{margin:8px 0 12px}.scan-footer{flex-shrink:0;background:#fff;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #cbded0;max-height:52%;overflow:auto}.scan-footer .scan-selected{padding:8px 12px;margin:0 0 8px;font-size:20px}.scan-footer p{font-size:13px;line-height:1.5;margin:8px 0}.scan-footer p:empty{display:none}.scan-footer>button{width:100%;min-height:48px}.scan-footer .actions{display:grid;grid-template-columns:1fr}.scan-footer .actions button{width:100%;font-size:15px}.scan-item{padding:8px 10px;flex-wrap:wrap}.scan-item b{font-size:19px}.scan-choices{gap:12px}.scan-choices label{margin:0;min-height:46px;font-size:15px}.scan-choices input{margin:0;width:22px;height:22px;min-height:22px}.scan-list{margin:12px 0}#scan-approve-summary{font-weight:600;color:#0f5444}.scan-evidence-dialog[aria-busy=true] .scan-footer{border-top-color:#6aaf4c}
 .ps-main{padding:12px}.ps-title .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ps-title button{font-size:13px;min-height:46px}.ps-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ps-metrics span{font-size:12px}.ps-filters input,.ps-filters select{min-height:46px;font-size:16px}.ps-filters label{font-size:13px}.ps-tabs button{font-size:14px;min-height:48px}.ps-people{max-height:200px}.ps-people b{font-size:14px}.ps-people small{font-size:12px}.ps-fields dd,.ps-fields dt{font-size:14px}.ps-profile-content{padding:14px}.ps-fields>div{grid-template-columns:minmax(80px,.7fr) minmax(0,1fr)}.ps-profile-cover{padding:18px}.ps-contract-card h3{font-size:15px}.ps-contract-card p{font-size:13px}.ps-contract-card button{font-size:14px;min-height:44px}.ps-table-scroll{overflow:visible;max-height:none;border:0}.ps-table{min-width:0!important;width:100%;display:block;font-size:14px!important}.ps-table thead{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}.ps-table tbody{display:block;width:100%}.ps-table tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:1px solid #d4e4d6;border-radius:10px;margin:10px 0;padding:14px;background:#fff}.ps-table td,.ps-table td:nth-child(2){display:block;position:static;min-width:0!important;max-width:100%;border:0;white-space:normal;padding:0;font-size:14px!important;background:transparent!important;overflow-wrap:anywhere}.ps-table td:before{content:attr(data-label);display:block;font-size:12px;color:#536e64;font-weight:600;margin-bottom:4px}.ps-table td:nth-child(2),.ps-table td:last-child{grid-column:1/-1}.ps-table td:nth-child(2){order:-1;border-bottom:1px solid #e4ece4;padding-bottom:8px}.ps-table .ps-name{font-size:15px!important;min-height:44px}.ps-status{font-size:12px;white-space:normal}.ps-row-actions{flex-wrap:wrap}.ps-row-actions>button{min-height:44px;font-size:14px}.ps-row-actions details[open]{min-width:0!important;flex:1 1 100%}.ps-row-actions details>div{min-width:0;max-width:100%}.ps-row-actions details button{font-size:14px}.ps-group-table tbody>tr[data-contract-detail]{display:block;border:0;background:#f3f8f3;padding:0;margin:0 0 16px}.ps-group-table [data-contract-detail]>td{display:block;width:100%;max-width:100%}.ps-group-table [data-contract-detail]>td:before{display:none}.hr23-contract-list .actions{display:flex}.hr23-contract-list .actions>button{flex:1 1 130px}.ps-new-employee label{font-size:14px}
 .ps-contract-dialog{inset-block-start:var(--app-top,0px);height:var(--app-vh,100dvh);max-height:var(--app-vh,100dvh);width:100vw;max-width:100vw!important;margin:0;border-radius:0!important;padding:0!important}.ps-editor-top{padding:10px 12px}.ps-editor-top h2{font-size:18px}.ps-editor-top .actions button{font-size:13px;min-height:44px}.ps-editor-top .actions{max-width:160px}.ps-editor-top .eyebrow{display:none}.ps-editor-grid{min-height:0;overscroll-behavior:contain}.ps-editor-fields label{font-size:14px}.ps-editor-footer{padding-bottom:calc(12px + env(safe-area-inset-bottom));max-height:40%;overflow:auto}.ps-editor-footer .actions{display:flex;width:100%;flex-wrap:wrap}.ps-editor-footer .actions button{font-size:14px;flex:1;min-height:44px;white-space:normal}.ps-document-toolbar .actions{width:100%}.ps-document-toolbar button,.hr23-native .actions button{font-size:14px;min-height:44px;flex:1 1 120px}.hr23-native p{font-size:13px}.hr23-native iframe{height:52vh;min-height:200px}.ps-doc-help{font-size:12px}.ps-mobile-editor-tabs button{font-size:14px}.ps-preview-panel{overscroll-behavior:contain}
 .hn-week-scroll{overflow:visible;max-height:none}.hn-week-table{display:block;min-width:0!important;width:100%}.hn-week-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.hn-week-table tbody{display:block}.hn-week-table tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:1px solid #d4e4d6;border-radius:12px;padding:12px;margin-bottom:14px}.hn-week-table tbody tr>th:first-child{position:static;grid-column:1/-1;min-width:0;max-width:none;border:0;font-size:16px;padding:8px;background:#edf6e9;border-radius:6px}.hn-week-table td{min-width:0;padding:8px;border:1px solid #dce8df;border-radius:8px}.hn-week-table td:before{content:attr(data-label);display:block;font-size:13px;font-weight:600;margin-bottom:6px}.hn-week-table td:last-child{grid-column:1/-1}.hn-week-table select{min-width:0;min-height:46px;font-size:16px}.hn-week-table small{font-size:12px}.hn-calendar{gap:3px}.hn-cal-cell{min-height:88px;padding:5px 3px}.hn-cal-cell span{font-size:14px}.hn-cal-cell small{font-size:11px;line-height:1.4}.hn-calendar>strong{font-size:12px}.hn-reward-people{grid-template-columns:1fr;overscroll-behavior:contain}.hn-reward-people label{font-size:14px}.hn-permission-row label{min-height:44px;max-width:100%}.hn-bulk-panel .actions button{flex:1 1 130px}.wf-grid{grid-template-columns:1fr}.wf-record dl{grid-template-columns:1fr}.wf-record dd{font-size:14px}#mobile-payroll-actions{gap:8px;padding-left:12px;padding-right:12px}body:has(dialog[open]) #mobile-payroll-actions{visibility:hidden}
}
@media screen and (min-width:901px){.scan-evidence-dialog[open]{display:flex;flex-direction:column;padding:0;overflow:hidden;max-height:88dvh}.scan-heading{padding:20px 24px;border-bottom:1px solid #dce8df;flex-shrink:0}.scan-body{padding:16px 24px;min-height:0;overflow:auto}.scan-footer{padding:16px 24px;border-top:1px solid #dce8df;flex-shrink:0}.scan-footer p:empty{display:none}.scan-footer>button{width:100%}.scan-footer p{margin:8px 0}.scan-footer .actions button{flex:1}}

.action-feedback{position:fixed;right:16px;bottom:calc(90px + env(safe-area-inset-bottom));width:min(440px,calc(100vw - 32px));padding:14px 18px;border:1px solid #b4d2bd;border-left:5px solid #287747;border-radius:10px;background:#eff9f0;color:#174b31;font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 8px 28px #143c3425;z-index:10000;pointer-events:none;overflow-wrap:anywhere}.action-feedback.failed{background:#fff0ee;border-color:#d5a59c;border-left-color:#b24335;color:#8c3024}@media print{.action-feedback{display:none!important}}

.action-feedback.pending{background:#eef4fb;border-color:#a9c3d9;border-left-color:#3d6e96;color:#28516f}
