/* Load after screen styles so staff controls share the same type scale. */
:root {
  --ds-page-size: 22px;
  --ds-section-size: 17px;
  --ds-subtitle-size: 17px;
  --ds-body-size: 14px;
  --ds-control-size: 14px;
  --ds-meta-size: 13px;
}

#workspace .sidebar-content :is(h1, .qw-heading h1, .mw-header h1, .rw-header h1, .dh-header h1) {
  font-size: var(--ds-page-size);
  font-weight: 600;
}

#workspace .sidebar-content :is(h2, h3, .dh-heading h2, .dashboard-home .dh-card h3, .rw-surface h2, .mw-toolbar h2) {
  font-size: var(--ds-section-size);
  font-weight: 600;
}

#workspace #employee-sidebar .sidebar-link,
#workspace .sidebar-content :is(button, summary),
#workspace .sidebar-content :is(.mw-tabs, .rw-tabs, .dh-tabs, .rw-archive-tabs, .qw-views, .dh-card-head) button,
#workspace #shared-page-actions button {
  font-size: var(--ds-control-size);
}

#workspace .sidebar-content :is(.mw-tabs, .rw-tabs, .dh-tabs, .rw-archive-tabs, .qw-views) button[aria-pressed="true"] {
  font-weight: 600;
}

#workspace .sidebar-content :is(label, legend, .rw-register-search label, .rw-facts dt),
#workspace .sidebar-content :is(#register-table, .mw-table, .rw-table, .personnel-table) th:not(:empty) {
  font-size: var(--ds-meta-size);
}

#workspace .sidebar-content :is(.register-relations, .register-dossier, .register-documents-hub) #register-table .register-record-link,
#workspace .sidebar-content :is(.mw-document-link, .rw-table a, .personnel-identity strong),
#workspace .sidebar-content .register-relations #register-table .rw-linked-matters > summary {
  font-size: var(--ds-body-size);
  font-weight: 600;
}

@media (max-width: 900px), (any-pointer: coarse) {
  #workspace .sidebar-content :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), select, textarea) {
    font-size: 16px !important;
  }
}

.enterprise-shell:has(#workspace:not([hidden])) .pr-heading h2 {
  font-size: var(--ds-section-size) !important;
}
