/* Shared screen typography and control sizes, including SPA-mounted modules.
   Print documents keep their document-branding typography. */
@media screen {
 :root { --ui-font:Inter,"Segoe UI",Arial,sans-serif;--ui-body-size:14px;--ui-button-height:36px; }
 body { font-family:var(--ui-font)!important;font-size:var(--ui-body-size)!important;line-height:1.5; }
 body :is(main,dialog,.modal-card,.modal-overlay,.panel__inner) { font-family:var(--ui-font)!important;font-size:14px!important; }
 body :is(main,dialog,.modal-card,.modal-overlay,.panel__inner) :where(div,p,span,label,li,td,th,dt,dd,legend,a,strong,b,em,input,select,textarea,button) { font-family:var(--ui-font)!important;font-size:14px!important; }
 body :is(h1,h1 span,h1 a),body :is(main,dialog,.modal-card,.modal-overlay,.panel__inner) :is(h1,h1 span,h1 a) { font-family:var(--ui-font)!important;font-size:24px!important;line-height:1.3!important;font-weight:600; }
 body :is(h2,h2 span,h2 a),body :is(main,dialog,.modal-card,.modal-overlay,.panel__inner) :is(h2,h2 span,h2 a) { font-family:var(--ui-font)!important;font-size:20px!important;line-height:1.35!important;font-weight:600; }
 body :is(h3,h3 span,h3 a),body :is(main,dialog,.modal-card,.modal-overlay,.panel__inner) :is(h3,h3 span,h3 a) { font-family:var(--ui-font)!important;font-size:17px!important;line-height:1.4!important;font-weight:600; }
 body :is(h4,h4 span,h4 a,h5,h6),body :is(main,dialog,.modal-card,.modal-overlay,.panel__inner) :is(h4,h4 span,h4 a,h5,h6) { font-family:var(--ui-font)!important;font-size:15px!important;line-height:1.4!important;font-weight:600; }
 body :is(small,.fin-muted,.dash__note,.sales-note,.hrx-note,.field__hint) { font-size:12px!important;line-height:1.5!important; }
 body :is(.fin-metric>strong,.dv2-kpi-value,.approval-stat>strong,.health-status) { font-family:var(--ui-font)!important; }
 body :is(.fin-metric>strong,.dv2-kpi-value,.approval-stat>strong) { font-size:24px!important;line-height:1.3!important; }
 body :is(button,input[type=submit],input[type=button],a[class*="btn"],a.fin-button,a.payroll-tab,a[role=button]) {
  box-sizing:border-box!important;min-height:var(--ui-button-height)!important;height:var(--ui-button-height)!important;
  padding:8px 14px!important;font-family:var(--ui-font)!important;font-size:14px!important;line-height:18px!important;border-radius:7px!important;
  vertical-align:middle;font-weight:500;cursor:pointer;
 }
 body :is(.icon-btn,.crm-workspace-close,.modal-close,button[aria-label^="Close"],button[data-close-detail]) {
  width:36px!important;min-width:36px!important;padding:0!important;display:inline-flex;align-items:center;justify-content:center;
 }
 body :is(.payroll-tab,.hrx-tabs button,#owner-main-tabs button,.attendance-section-nav a) { border-radius:0!important; }
 body :is(.hrx-checklist-card,.hrx-card,.dv2-card,button.dropdown-menu__item,.crm-workspace-link,button.hrx-link,.notif-toolbar button) { height:auto!important;min-height:36px!important; }
 body :is(.hrx-checklist-card,.hrx-card) { padding:16px!important; }
 body :is(.crm-workspace-link,button.hrx-link) { padding:0!important; }
 body .dropdown-menu__item { white-space:normal;overflow-wrap:anywhere; }
 body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select) { min-height:36px;box-sizing:border-box;font-family:var(--ui-font)!important;font-size:14px!important; }
 .notif-toolbar { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid var(--theme-border); }
 .notif-item { display:flex!important;gap:9px;align-items:flex-start;text-align:left; }
 .notif-item.is-unread { background:var(--theme-soft);font-weight:600; }
 .notif-unread-dot { width:7px;height:7px;flex:0 0 7px;border-radius:50%;margin-top:6px;background:var(--selection-gold); }
 #notif-menu { max-height:min(70vh,560px);overflow-y:auto; }
 .approval-detail { margin-top:24px;padding:24px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface);scroll-margin-top:90px; }
 .approval-detail>header { display:flex;align-items:flex-start;justify-content:space-between;gap:18px; }
 .approval-detail dl>div { display:grid;grid-template-columns:minmax(120px,1fr) 3fr;gap:16px;padding:10px 0;border-bottom:1px solid var(--theme-border); }
 .approval-detail dt { font-weight:600; }.approval-detail dd { margin:0;overflow-wrap:anywhere;white-space:pre-wrap; }
 .approval-detail label { display:grid;gap:8px; }.approval-detail textarea { width:100%;box-sizing:border-box;min-height:80px; }
 .approval-detail-actions { display:flex;flex-wrap:wrap;gap:12px;margin-top:16px; }
 .approvals-page .approvals-summary { grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); }
 .approvals-page .approval-row { grid-template-columns:minmax(150px,1.2fr) minmax(100px,.8fr) minmax(170px,1.5fr) minmax(120px,.8fr) auto; }
 .approvals-page .approval-review-btn { width:auto!important;white-space:nowrap; }
 @media(max-width:1000px){.approvals-page .approval-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
 @media(max-width:640px){.approval-detail dl>div{grid-template-columns:1fr;gap:4px}.approval-detail{padding:16px}.notif-toolbar{flex-wrap:wrap}.approvals-page .approval-row{grid-template-columns:1fr}}
}
