/* Loaded after the existing theme. Scope changes to StaffDesk only. */
html[data-hr-surface="staffdesk-prod"] .staffdesk-network-status {
 position:fixed;right:16px;top:64px;z-index:7;pointer-events:none;
 padding:8px 12px;border:1px solid var(--line);border-radius:12px;
 background:var(--card);color:var(--ink);font-size:14px;
}
@media screen and (max-width:760px) {
 html[data-hr-surface="staffdesk-prod"] #workspace>.sidebar {height:calc(84px + env(safe-area-inset-bottom));padding-bottom:calc(6px + env(safe-area-inset-bottom));}
 html[data-hr-surface="staffdesk-prod"] #workspace>.sidebar #navigation>button {padding-top:6px;padding-bottom:6px;line-height:1.3;}
 html[data-hr-surface="staffdesk-prod"] body.authenticated #access-shell {
  height:auto;min-height:56px;padding:8px 12px;
 }
 html[data-hr-surface="staffdesk-prod"] #account,
 html[data-hr-surface="staffdesk-prod"] #account .topright {flex-wrap:wrap;gap:8px;min-width:0;}
 html[data-hr-surface="staffdesk-prod"] #account .breadcrumb {min-width:0;overflow-wrap:anywhere;}
 html[data-hr-surface="staffdesk-prod"] .work-main {min-width:0;padding-bottom:calc(112px + env(safe-area-inset-bottom));}
 html[data-hr-surface="staffdesk-prod"] :is(.records,.hr-panel,.cost-panel,.personal-content,.cost-form,.cost-review-layout)>* {min-width:0;}
 html[data-hr-surface="staffdesk-prod"] body.authenticated :is(select,input:not([type=checkbox]):not([type=radio]),textarea) {font-size:16px!important;}
 html[data-hr-surface="staffdesk-prod"] body.authenticated :is(.form-actions,.hr-controls,.cost-form,.cost-filters,.staffdesk-document-tools,.staffdesk-payroll-filters,dialog:not(.hubhr-loading)) :is(button,select,input:not([type=checkbox]):not([type=radio])) {min-height:44px;}
 html[data-hr-surface="staffdesk-prod"] body.authenticated :is(label,.cost-note,.staffdesk-payroll-import-content label) {font-size:14px;line-height:1.5;}
 html[data-hr-surface="staffdesk-prod"] #workspace>.sidebar #navigation>button {font-size:11px;flex-basis:82px;min-width:82px;}
 html[data-hr-surface="staffdesk-prod"] body.authenticated #navigation .personal-navigation,
 html[data-hr-surface="staffdesk-prod"] body.authenticated #navigation .personal-navigation.has-roster {
  display:flex;overflow-x:auto;overscroll-behavior-inline:contain;gap:4px;
 }
 html[data-hr-surface="staffdesk-prod"] body.authenticated #navigation .personal-navigation button {
  flex:0 0 76px;min-width:76px;height:auto;min-height:56px;font-size:12px!important;padding:6px 4px;
 }
 html[data-hr-surface="staffdesk-prod"] dialog:not(.hubhr-loading) {
  box-sizing:border-box;width:calc(100% - 16px);max-width:calc(100vw - 16px);
  max-height:calc(100dvh - 24px);padding:16px;overflow:auto;overscroll-behavior:contain;
 }
 html[data-hr-surface="staffdesk-prod"] .cost-review-layout,
 html[data-hr-surface="staffdesk-prod"] .cost-form {grid-template-columns:minmax(0,1fr);}
 html[data-hr-surface="staffdesk-prod"] .cost-document-pane {position:static;}
 html[data-hr-surface="staffdesk-prod"] .cost-preview {max-height:38dvh;overflow:auto;}
 html[data-hr-surface="staffdesk-prod"] .cost-preview canvas {max-width:100%;height:auto;}
 html[data-hr-surface="staffdesk-prod"] :is(.hr-controls,.form-actions,.staffdesk-document-tools) {flex-wrap:wrap;gap:8px;}
 html[data-hr-surface="staffdesk-prod"] .staffdesk-payroll-filters>.staffdesk-payroll-control {flex:1 1 140px;}
 html[data-hr-surface="staffdesk-prod"] :is(.payroll-page,.cost-bulk-item,.staffdesk-payroll-card-title) {overflow-wrap:anywhere;}
 html[data-hr-surface="staffdesk-prod"] .staffdesk-payroll-grid {grid-template-columns:minmax(0,1fr);}
 html[data-hr-surface="staffdesk-prod"] .staffdesk-network-status {top:auto;bottom:calc(96px + env(safe-area-inset-bottom));max-width:calc(100vw - 32px);}
}
@media screen and (max-width:480px) {
 html[data-hr-surface="staffdesk-prod"] .cost-filters {display:grid;grid-template-columns:minmax(0,1fr);width:100%;}
 html[data-hr-surface="staffdesk-prod"] .cost-filters :is(input,select) {min-width:0;max-width:100%;}
}
