/* Approved typography-only release. Dashboard and global office shell excluded.
 * Reference: exact published payroll-spatial-release-20261016 snapshot.
 * Opt in: <html data-pride-typography="dashboard">.
 * Standalone pages also require data-typography-page="driver" or "hub".
 * Generic portalled dialogs require data-typography-surface="section" on
 * their OWN dialog root, and only when opened from a non-dashboard section.
 * Never mark body, a shell/navigation/header, or an ancestor of #view-dash.
 * No @font-face, office shell rule, layout, color, behavior, or print changes.
 * Existing IBM Plex Sans loading is reused. True code/icon fonts are exempt.
 */

html[data-pride-typography="dashboard"] :is(#view-reports, #view-people, #view-accounting, #view-drivers, #view-calendar, #view-margin, #view-calview, #view-attend, #view-hours, #view-expenses, #view-waiting, #view-messages, .pa-dialog, .py-dialog, .pw-dialog, .pc-dialog, .ps-dialog, .pa-setup, [data-typography-surface="section"]),
html[data-pride-typography="dashboard"][data-typography-page="driver"] body,
html[data-pride-typography="dashboard"][data-typography-page="hub"] .wrap {
  --tp-heading: 26px;
  --tp-data: 15px;
  --tp-control: 15px;
  --tp-column: 13px;
  --tp-badge: 14.5px;
  --tp-metric: clamp(22px, 1.56vw, 30px);
  --tp-metric-label: clamp(11px, .78vw, 15px);
  font-family: 'IBM Plex Sans', sans-serif !important;
  font-size: 13px;
  font-weight: 400;
}

html[data-pride-typography="dashboard"] :is(#view-reports, #view-people, #view-accounting, #view-drivers, #view-calendar, #view-margin, #view-calview, #view-attend, #view-hours, #view-expenses, #view-waiting, #view-messages, .pa-dialog, .py-dialog, .pw-dialog, .pc-dialog, .ps-dialog, .pa-setup, [data-typography-surface="section"]) :not(code, pre, code *, pre *, [data-font-role="icon"], [data-font-role="icon"] *),
html[data-pride-typography="dashboard"][data-typography-page="driver"] body :not(code, pre, code *, pre *, [data-font-role="icon"], [data-font-role="icon"] *),
html[data-pride-typography="dashboard"][data-typography-page="hub"] .wrap :not(code, pre, code *, pre *, [data-font-role="icon"], [data-font-role="icon"] *) {
  font-family: 'IBM Plex Sans', sans-serif !important;
}

/* Main content heading = dashboard Trip sheets; no global page title rule. */

html[data-pride-typography="dashboard"] :is(#view-reports, #view-people, #view-accounting, #view-drivers, #view-calendar, #view-margin, #view-calview, #view-attend, #view-hours, #view-expenses, #view-waiting, #view-messages, .pa-dialog, .py-dialog, .pw-dialog, .pc-dialog, .ps-dialog, .pa-setup, [data-typography-surface="section"]) :is(h1, h2, .sec-lbl, .fr-ttl, .zn-hero-t, .exp-h),
html[data-pride-typography="dashboard"][data-typography-page="driver"] body :is(h1, h2, .sec-lbl, .fr-ttl, .zn-hero-t, .exp-h),
html[data-pride-typography="dashboard"][data-typography-page="hub"] .wrap :is(h1, h2, .sec-lbl, .fr-ttl, .zn-hero-t, .exp-h) {
  font-size: var(--tp-heading) !important;
  font-weight: 700 !important;
}

/* Smaller card headings = dashboard .pst-ttl chart heading. */

html[data-pride-typography="dashboard"] :is(#view-reports, #view-people, #view-accounting, #view-drivers, #view-calendar, #view-margin, #view-calview, #view-attend, #view-hours, #view-expenses, #view-waiting, #view-messages, .pa-dialog, .py-dialog, .pw-dialog, .pc-dialog, .ps-dialog, .pa-setup, [data-typography-surface="section"]) :is(h3, .py-section-title, .pa-master-heading, .mf-card-title, .pw-section > summary),
html[data-pride-typography="dashboard"][data-typography-page="driver"] body :is(h3, .py-section-title, .pa-master-heading, .mf-card-title, .pw-section > summary),
html[data-pride-typography="dashboard"][data-typography-page="hub"] .wrap :is(h3, .py-section-title, .pa-master-heading, .mf-card-title, .pw-section > summary) {
  font-size: 12.5px !important;
  font-weight: 700 !important;
}

/* Dialog title = dashboard page-title; no title on the dashboard is selected. */

html[data-pride-typography="dashboard"] :is(#view-reports, #view-people, #view-accounting, #view-drivers, #view-calendar, #view-margin, #view-calview, #view-attend, #view-hours, #view-expenses, #view-waiting, #view-messages, .pa-dialog, .py-dialog, .pw-dialog, .pc-dialog, .ps-dialog, .pa-setup, [data-typography-surface="section"]) :is(.pa-dialog-header h2, .py-dialog-head h2, .pc-header h2, .adlg-t, .modal-title) {
  font-size: 22px !important;
  font-weight: 700 !important;
}

html[data-pride-typography="dashboard"] .pa-setup #pa-setup-title { font-size: 22px !important; font-weight: 700 !important; }

/* Exact dashboard table/body hierarchy; footer emphasis remains explicit. */

html[data-pride-typography="dashboard"] :is(#view-reports, #view-people, #view-accounting, #view-drivers, #view-calendar, #view-margin, #view-calview, #view-attend, #view-hours, #view-expenses, #view-waiting, #view-messages, .pa-dialog, .py-dialog, .pw-dialog, .pc-dialog, .ps-dialog, .pa-setup, [data-typography-surface="section"]) :is(table, td, [role="cell"], .pa-person strong, .py-person strong, .fr-name),
html[data-pride-typography="dashboard"][data-typography-page="driver"] body :is(table, td, [role="cell"], .pa-person strong, .py-person strong, .fr-name),
html[data-pride-typography="dashboard"][data-typography-page="hub"] .wrap :is(table, td, [role="cell"], .pa-person strong, .py-person strong, .fr-name) {
  font-size: var(--tp-data) !important;
  font-weight: 400 !important;
  font-variant-numeric: tabular-nums;
}

html[data-pride-typography="dashboard"] :is(#view-reports, #view-people, #view-accounting, #view-drivers, #view-calendar, #view-margin, #view-calview, #view-attend, #view-hours, #view-expenses, #view-waiting, #view-messages, .pa-dialog, .py-dialog, .pw-dialog, .pc-dialog, .ps-dialog, .pa-setup, [data-typography-surface="section"]) :is(th, th button, [role="columnheader"]),
html[data-pride-typography="dashboard"][data-typography-page="driver"] body :is(th, th button, [role="columnheader"]),
html[data-pride-typography="dashboard"][data-typography-page="hub"] .wrap :is(th, th button, [role="columnheader"]) {
  font-size: var(--tp-column) !important;
  font-weight: 500 !important;
}

html[data-pride-typography="dashboard"] :is(#view-reports, #view-people, #view-accounting, #view-drivers, #view-calendar, #view-margin, #view-calview, #view-attend, #view-hours, #view-expenses, #view-waiting, #view-messages, .pa-dialog, .py-dialog, .pw-dialog, .pc-dialog, .ps-dialog, .pa-setup, [data-typography-surface="section"]) :is(tfoot td, tfoot th),
html[data-pride-typography="dashboard"][data-typography-page="driver"] body :is(tfoot td, tfoot th),
html[data-pride-typography="dashboard"][data-typography-page="hub"] .wrap :is(tfoot td, tfoot th) {
  font-weight: 600 !important;
}

/* Text controls = dashboard filter chips; the shared calendar popup retains its own standard sizes. Icon-only buttons are not resized. */

html[data-pride-typography="dashboard"] :is(#view-reports, #view-people, #view-accounting, #view-drivers, #view-calendar, #view-margin, #view-calview, #view-attend, #view-hours, #view-expenses, #view-waiting, #view-messages, .pa-dialog, .py-dialog, .pw-dialog, .pc-dialog, .ps-dialog, .pa-setup, [data-typography-surface="section"]) :is(.act-btn, .chip, .kpi-seg-btn, .fr-btn, .pa-button, .pa-text-button, .py-button, .py-link, .rpt-controls > button, .rpt-controls select, .cal-sel, .mf-scope button, .mf-export, .mf-flow-label, .ps-card-head select, .pa-tools select, .ps-period) {
  font-size: var(--tp-control) !important;
  font-weight: 500 !important;
}

html[data-pride-typography="dashboard"] :is(#view-reports, #view-people, #view-accounting, #view-drivers, #view-calendar, #view-margin, #view-calview, #view-attend, #view-hours, #view-expenses, #view-waiting, #view-messages, .pa-dialog, .py-dialog, .pw-dialog, .pc-dialog, .ps-dialog, .pa-setup, [data-typography-surface="section"]) :is(.chip.on, .kpi-seg-btn.on, .mf-scope button.on, .pa-primary, .py-primary) {
  font-weight: 600 !important;
}

html[data-pride-typography="dashboard"] :is(#view-reports, #view-people, #view-accounting, #view-drivers, #view-calendar, #view-margin, #view-calview, #view-attend, #view-hours, #view-expenses, #view-waiting, #view-messages, .pa-dialog, .py-dialog, .pw-dialog, .pc-dialog, .ps-dialog, .pa-setup, [data-typography-surface="section"]) :is(.pa-search input, .fr-search input, .search input) {
  font-size: 16px !important;
  font-weight: 400 !important;
}

/* Form-field and supporting labels = dashboard secondary table text. Controls with 16px mobile accessibility sizing retain it. */

html[data-pride-typography="dashboard"] :is(#view-reports, #view-people, #view-accounting, #view-drivers, #view-calendar, #view-margin, #view-calview, #view-attend, #view-hours, #view-expenses, #view-waiting, #view-messages, .pa-dialog, .py-dialog, .pw-dialog, .pc-dialog, .ps-dialog, .pa-setup, [data-typography-surface="section"]) :is(.rpt-note, .rpt-state, .rpt-controls > label, .rpt-calendar-field > span, .pa-muted, .pa-person small, .py-person small, .pa-directory-note, .pa-access-note, .py-note, .py-help, .pw-help, .pc-total-note, .pc-row-explanation, .pc-table small, .ps-note, .ps-person p, .ps-card-head small, .mf-subtitle, .fr-note, .pa-field label, .pa-owner label, .pa-credential label, .pw-field > span, .py-field > span, .iclbl, .fuel-lbl, .popup-field-lbl),
html[data-pride-typography="dashboard"][data-typography-page="driver"] body :is(.rpt-note, .rpt-state, .rpt-controls > label, .rpt-calendar-field > span, .pa-muted, .pa-person small, .py-person small, .pa-directory-note, .pa-access-note, .py-note, .py-help, .pw-help, .pc-total-note, .pc-row-explanation, .pc-table small, .ps-note, .ps-person p, .ps-card-head small, .mf-subtitle, .fr-note, .pa-field label, .pa-owner label, .pa-credential label, .pw-field > span, .py-field > span, .iclbl, .fuel-lbl, .popup-field-lbl),
html[data-pride-typography="dashboard"][data-typography-page="hub"] .wrap :is(.rpt-note, .rpt-state, .rpt-controls > label, .rpt-calendar-field > span, .pa-muted, .pa-person small, .py-person small, .pa-directory-note, .pa-access-note, .py-note, .py-help, .pw-help, .pc-total-note, .pc-row-explanation, .pc-table small, .ps-note, .ps-person p, .ps-card-head small, .mf-subtitle, .fr-note, .pa-field label, .pa-owner label, .pa-credential label, .pw-field > span, .py-field > span, .iclbl, .fuel-lbl, .popup-field-lbl) {
  font-size: 12px !important;
  font-weight: 400 !important;
}

html[data-pride-typography="dashboard"] :is(#view-reports, #view-people, #view-accounting, #view-drivers, #view-calendar, #view-margin, #view-calview, #view-attend, #view-hours, #view-expenses, #view-waiting, #view-messages, .pa-dialog, .py-dialog, .pw-dialog, .pc-dialog, .ps-dialog, .pa-setup, [data-typography-surface="section"]) :is(.badge, .pa-status, .pc-state, .py-state, .pa-role-tag) {
  font-size: var(--tp-badge) !important;
  font-weight: 500 !important;
}

/* KPI values and captions = #statCards.bdg; identifiers use the same family with tabular digits. */

html[data-pride-typography="dashboard"] :is(#view-reports, #view-people, #view-accounting, #view-drivers, #view-calendar, #view-margin, #view-calview, #view-attend, #view-hours, #view-expenses, #view-waiting, #view-messages, .pa-dialog, .py-dialog, .pw-dialog, .pc-dialog, .ps-dialog, .pa-setup, [data-typography-surface="section"]) :is(.stat-num, .kpi-val, .kpi-num, .kpi-big, .fr-stat-num, .pa-hero-count, .py-statement-total strong, .pc-metrics strong, .pw-net > strong, .ps-summary > .ps-value, .ps-summary .ps-net, .ps-summary .ps-hero > strong, .ps-change-total, .ps-work-value, .mf-metric-value, .mf-flow-total, .mf-card-value, .mf-cost-metric strong, .mf-flow-label strong, .hos-sval, .grand-val),
html[data-pride-typography="dashboard"][data-typography-page="driver"] body :is(.stat-num, .kpi-val, .kpi-num, .kpi-big, .fr-stat-num, .pa-hero-count, .py-statement-total strong, .pc-metrics strong, .pw-net > strong, .ps-summary > .ps-value, .ps-summary .ps-net, .ps-summary .ps-hero > strong, .ps-change-total, .ps-work-value, .mf-metric-value, .mf-flow-total, .mf-card-value, .mf-cost-metric strong, .mf-flow-label strong, .hos-sval, .grand-val),
html[data-pride-typography="dashboard"][data-typography-page="hub"] .wrap :is(.stat-num, .kpi-val, .kpi-num, .kpi-big, .fr-stat-num, .pa-hero-count, .py-statement-total strong, .pc-metrics strong, .pw-net > strong, .ps-summary > .ps-value, .ps-summary .ps-net, .ps-summary .ps-hero > strong, .ps-change-total, .ps-work-value, .mf-metric-value, .mf-flow-total, .mf-card-value, .mf-cost-metric strong, .mf-flow-label strong, .hos-sval, .grand-val) {
  font-size: var(--tp-metric) !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
}

html[data-pride-typography="dashboard"] :is(#view-reports, #view-people, #view-accounting, #view-drivers, #view-calendar, #view-margin, #view-calview, #view-attend, #view-hours, #view-expenses, #view-waiting, #view-messages, .pa-dialog, .py-dialog, .pw-dialog, .pc-dialog, .ps-dialog, .pa-setup, [data-typography-surface="section"]) :is(.stat-lbl, .kpi-lbl, .mf-card-label, .mf-cost-label, .pa-hero-count small, .pc-metrics span, .ps-summary-label, .ps-summary-label > span),
html[data-pride-typography="dashboard"][data-typography-page="driver"] body :is(.stat-lbl, .kpi-lbl, .mf-card-label, .mf-cost-label, .pa-hero-count small, .pc-metrics span, .ps-summary-label, .ps-summary-label > span),
html[data-pride-typography="dashboard"][data-typography-page="hub"] .wrap :is(.stat-lbl, .kpi-lbl, .mf-card-label, .mf-cost-label, .pa-hero-count small, .pc-metrics span, .ps-summary-label, .ps-summary-label > span) {
  font-size: var(--tp-metric-label) !important;
  font-weight: 600 !important;
}

html[data-pride-typography="dashboard"] :is(#view-reports, #view-people, #view-accounting, #view-drivers, #view-calendar, #view-margin, #view-calview, #view-attend, #view-hours, #view-expenses, #view-waiting, #view-messages, .pa-dialog, .py-dialog, .pw-dialog, .pc-dialog, .ps-dialog, .pa-setup, [data-typography-surface="section"]) :is(.pa-login, .mono, .money, .pc-money, .pw-totals dd, .ps-chart text, .ps-chart-label),
html[data-pride-typography="dashboard"][data-typography-page="driver"] body :is(.pa-login, .mono, .money, .pc-money, .pw-totals dd, .ps-chart text, .ps-chart-label),
html[data-pride-typography="dashboard"][data-typography-page="hub"] .wrap :is(.pa-login, .mono, .money, .pc-money, .pw-totals dd, .ps-chart text, .ps-chart-label) {
  font-variant-numeric: tabular-nums;
}

/* SVG labels can be styled; canvas chart text cannot be changed by a stylesheet. */

html[data-pride-typography="dashboard"] :is(#view-reports, #view-people, #view-accounting, #view-drivers, #view-calendar, #view-margin, #view-calview, #view-attend, #view-hours, #view-expenses, #view-waiting, #view-messages, .pa-dialog, .py-dialog, .pw-dialog, .pc-dialog, .ps-dialog, .pa-setup, [data-typography-surface="section"]) :is(.ps-chart text, .mf-flow-svg text) {
  font-size: 13.5px !important;
  font-weight: 500 !important;
}

/* Standalone driver/broker document, including its own login, header and navigation. Page attribute prevents any office/dashboard match. */

html[data-pride-typography="dashboard"][data-typography-page="driver"] body :is(.clk-h, .hist-date) {
  font-size: 22px !important;
  font-weight: 700 !important;
}

html[data-pride-typography="dashboard"][data-typography-page="driver"] body :is(.ci, .icin, .fuel-in) {
  font-weight: 400 !important;
  font-variant-numeric: tabular-nums;
}

html[data-pride-typography="dashboard"][data-typography-page="driver"] body :is(.btn, .fuel-btn, .exp-btn, .popup-btn) {
  font-size: var(--tp-control) !important;
  font-weight: 500 !important;
}

/* Hub is a standalone content document; no admin shell selector is involved. */

html[data-pride-typography="dashboard"][data-typography-page="hub"] .wrap .htxt .t1 {
  font-size: 22px !important;
  font-weight: 700 !important;
}

html[data-pride-typography="dashboard"][data-typography-page="hub"] .wrap .tt .n {
  font-size: var(--tp-data) !important;
  font-weight: 500 !important;
}

html[data-pride-typography="dashboard"][data-typography-page="hub"] .wrap :is(.tt .d, .htxt .t2) {
  font-size: 12px !important;
  font-weight: 400 !important;
}

html[data-pride-typography="dashboard"][data-typography-page="hub"] .wrap .fsc .pct {
  font-size: var(--tp-metric) !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
}

/* Match the dashboard's actual 1500px breakpoint, not module-specific guesses. */
@media (max-width: 1500px) {

html[data-pride-typography="dashboard"] :is(#view-reports, #view-people, #view-accounting, #view-drivers, #view-calendar, #view-margin, #view-calview, #view-attend, #view-hours, #view-expenses, #view-waiting, #view-messages, .pa-dialog, .py-dialog, .pw-dialog, .pc-dialog, .ps-dialog, .pa-setup, [data-typography-surface="section"]),
html[data-pride-typography="dashboard"][data-typography-page="driver"] body,
html[data-pride-typography="dashboard"][data-typography-page="hub"] .wrap {
  --tp-data: 14px;
  --tp-control: 14px;
  --tp-column: 12px;
  --tp-badge: 13.5px;
}

}
/* Match the dashboard's actual 760px mobile type sizes. */
@media (max-width: 760px) {

html[data-pride-typography="dashboard"] :is(#view-reports, #view-people, #view-accounting, #view-drivers, #view-calendar, #view-margin, #view-calview, #view-attend, #view-hours, #view-expenses, #view-waiting, #view-messages, .pa-dialog, .py-dialog, .pw-dialog, .pc-dialog, .ps-dialog, .pa-setup, [data-typography-surface="section"]),
html[data-pride-typography="dashboard"][data-typography-page="driver"] body,
html[data-pride-typography="dashboard"][data-typography-page="hub"] .wrap {
  --tp-heading: 21px;
  --tp-metric: 20px;
  --tp-metric-label: 10.5px;
}

html[data-pride-typography="dashboard"] :is(#view-reports, #view-people, #view-accounting, #view-drivers, #view-calendar, #view-margin, #view-calview, #view-attend, #view-hours, #view-expenses, #view-waiting, #view-messages, .pa-dialog, .py-dialog, .pw-dialog, .pc-dialog, .ps-dialog, .pa-setup, [data-typography-surface="section"]) :is(.pa-search input, .fr-search input, .search input) {
  font-size: 15px !important;
}

}

/* Driver-only shell counterparts. The office shell remains wholly untouched. */
html[data-pride-typography="dashboard"][data-typography-page="driver"] body :is(.page-title, .login-title, .popup-title) { font-size: 22px !important; font-weight: 700 !important; }
html[data-pride-typography="dashboard"][data-typography-page="driver"] .nav-btn { font-size: 12px !important; font-weight: 500 !important; }
html[data-pride-typography="dashboard"][data-typography-page="driver"] .s-co { font-size: 12px !important; font-weight: 600 !important; }
html[data-pride-typography="dashboard"][data-typography-page="driver"] :is(.login-sub, .login-lbl, .page-meta) { font-size: 12px !important; font-weight: 400 !important; }
html[data-pride-typography="dashboard"][data-typography-page="driver"] :is(.login-btn, .sub-btn) { font-size: var(--tp-control) !important; font-weight: 600 !important; }
html[data-pride-typography="dashboard"][data-typography-page="driver"] :is(.tot-grand-val, .clock-val) { font-variant-numeric: tabular-nums; }
