/* Screen-only ledger language from Claim/Checking. Table engines and column contracts remain page-owned. */
@media screen {
    .jf-brand-mark { display:block; flex:0 0 auto; object-fit:contain; background:var(--surface-primary); border:1px solid var(--border-default); border-radius:6px; padding:3px; }
    .dahs-brand { gap:10px; }
    .jf-brand-mark--login { margin-inline-end:4px; }
    .jf-brand-mark--dashboard { border-color:var(--navigation-bg-hover); padding:5px; }
    .jf-money { display:inline-flex; flex-direction:column; align-items:flex-start; gap:2px; min-width:0; max-width:100%; text-align:start; vertical-align:middle; }
    .jf-money > .jf-money__number { display:block; direction:ltr; unicode-bidi:isolate; white-space:nowrap; font-variant-numeric:tabular-nums; font-weight:inherit; color:inherit; }
    .jf-money > .jf-money__words { display:block; width:max-content; max-width:32ch; white-space:normal; overflow-wrap:anywhere; text-align:right; direction:rtl; color:var(--text-secondary); font-size:10px; font-weight:400; line-height:1.6; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .dahs-main { min-width:0; padding:16px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .dahs-main > :is(.mud-container,.jafam-personnel-reference,.admin-dashboard) { width:100%; max-width:none; margin-inline:0 !important; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .dahs-main > .jafam-personnel-reference { padding:16px; }

    /* Shared borders and header ink, without moving sticky/frozen/virtual columns. */
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.mud-table:not(.ep-table),.mud-simple-table,.jafam-grid-shell):not(.claim-track-grid) { border-radius:8px !important; border-color:var(--border-default); box-shadow:var(--shadow-card) !important; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.mud-table,.mud-simple-table) .mud-table-cell { border-inline-end:1px solid var(--border-light); border-bottom-color:var(--border-light); }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.mud-table,.mud-simple-table) .mud-table-head .mud-table-cell:not([style*="background" i]) { background:var(--table-header) !important; color:var(--text-body) !important; border-color:var(--border-strong); font-weight:700 !important; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.mud-table,.mud-simple-table) :is(.mud-table-toolbar,.mud-table-pagination) { background:var(--surface-secondary); border-color:var(--border-default); }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .ledger-page { --lg-ink:var(--text-primary); --lg-line:var(--border-default); --lg-accent:var(--link); --lg-zebra:var(--table-alternate); --lg-toolbar:var(--surface-secondary); background:var(--app-background); }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .ledger-toolbar .mud-button-filled-primary { background:var(--primary) !important; color:var(--primary-ink) !important; }
}
@media screen and (min-width:761px) {
    /* Native measured/frozen/virtual grids retain their geometry and scroll owners. */
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .mud-table:not(.ep-table):not(:where(.claim-track-grid,.ledger-grid,.person-excel-grid,.lightstyle-data-grid,.policy-member-grid,.center-grid,.provider-grid,.drug-grid,.pcd-table,.mud-table-sticky-header,.mud-table-sticky-footer,.mud-virtualize,.jafam-table-geometry-owned,[data-personnel-density="preserve"])):not(:has(.mud-virtualize,.mud-table-body > tr[style*="height" i][style*="flex-shrink" i])) .mud-table-head .mud-table-cell:not(.filter-header-cell):not([style*="padding" i]) { height:38px; padding:6px 8px !important; font-size:12px !important; line-height:1.35; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .mud-table:not(.ep-table):not(:where(.claim-track-grid,.ledger-grid,.person-excel-grid,.lightstyle-data-grid,.policy-member-grid,.center-grid,.provider-grid,.drug-grid,.pcd-table,.mud-table-sticky-header,.mud-table-sticky-footer,.mud-virtualize,.jafam-table-geometry-owned,[data-personnel-density="preserve"])):not(:has(.mud-virtualize,.mud-table-body > tr[style*="height" i][style*="flex-shrink" i])) .mud-table-body .mud-table-cell:not([colspan]):not([style*="padding" i]) { padding:5px 8px !important; font-size:12.5px !important; line-height:1.45; vertical-align:middle; }
}
@media screen and (max-width:760px) {
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .dahs-main { padding:10px; }
    .dahs-brand .jf-brand-mark { width:36px; height:36px; }
    .jf-money > .jf-money__words { max-width:26ch; }
}
@media print {
    .jf-money__words { display:none !important; }
    .jf-money { display:contents; }
}
