/* Compact workspace: presentation only. Preserve measured/frozen/virtual grids,
   data bindings, selection, permissions, routes and all operational controls.
   Desktop data stays complete on one line and scrolls inside the existing table
   container; no ellipsis, clipped medical text or nested scroll owner. */
@media screen {
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-page { gap: 12px; min-width: 0; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-panel { padding: 12px; gap: 10px; min-width: 0; border-color: var(--jt-border); border-radius: 12px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-filter-grid { grid-template-columns: minmax(210px, 1.5fr) repeat(3, minmax(140px, 1fr)) auto; gap: 10px; align-items: center; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-filter-grid > * { min-width: 0; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.office-rx-filter-heading, .office-rx-table-heading) { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--jt-text); font-size: 13px; font-weight: 700; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.office-rx-filter-heading, .office-rx-table-heading) > svg { color: var(--jt-primary); }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-filter-heading small { font-size: 11px; font-weight: 400; color: var(--jt-muted); margin-inline-start: auto; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-table-heading h2 { margin: 0; font-size: 14px; font-weight: 700; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-table-heading > span { font-size: 11px; font-weight: 400; color: var(--jt-muted); }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-actions { gap: 6px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-advanced { border-top: 1px dashed var(--jt-border); padding-top: 6px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-advanced > summary { display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--jt-primary-hover); font-size: 12px; min-height: 32px; border-radius: 6px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-advanced > summary::after { content: "+"; margin-inline-start: auto; font-size: 18px; line-height: 1; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-advanced[open] > summary::after { content: "−"; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-advanced-hint { color: var(--jt-muted); font-size: 11px; font-weight: 400; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-filter-active { padding: 2px 7px; border-radius: 5px; background: var(--jt-primary-soft); color: var(--jt-primary-hover); font-size: 11px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-advanced-fields { display: grid; grid-template-columns: repeat(2, minmax(150px, 220px)); gap: 10px; padding-block: 8px 2px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.office-rx-filter-panel, .jafam-filter-field) .mud-input-control { margin-block: 0; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.office-rx-filter-panel, .jafam-filter-field) .mud-input-outlined { border-radius: 8px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .jafam-filter-bar { gap: 6px; align-items: center; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .jafam-filter-bar--standalone { padding: 8px 10px; margin-block: 6px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .jafam-filter-bar__more { gap: 8px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .jafam-filter-field { flex-basis: 170px; min-width: 140px; gap: 3px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .jafam-filter-chip__open { padding-inline: 9px; font-size: 12px; font-weight: 500; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .jafam-filter-chip { border-radius: 7px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .outpatient-full-report__panel { padding: 12px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .outpatient-full-report__panel-title { margin: -12px -12px 10px; padding: 8px 12px; font-size: 13px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .outpatient-full-report__filters { gap: 8px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .outpatient-full-report__toolbar { padding: 8px 12px; gap: 8px; }

    /* Windows-style disclosure tree. Real buttons/links retain their keyboard
       behavior; no ARIA tree role that would promise unimplemented arrow keys. */
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-shell { --personnel-nav-width: 16.5rem; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-nav-surface { background: var(--app-background); }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-sidebar { background: var(--app-background); box-shadow: -3px 0 16px #20254e05; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-navigation-brand { height: 70px; padding-inline: 14px; border-color: var(--jt-border); }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-navigation-brand .dahs-navigation-monogram { background: linear-gradient(145deg, var(--primary), var(--link)); box-shadow: 0 4px 10px #5d4bd426; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-navigation-items { padding: 12px 10px; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-navigation-section-label { font-size: 11px; font-weight: 500; padding: 4px 10px 10px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .dahs-sidebar .dahs-nav-item { border-radius: 7px; padding: 7px 9px; gap: 8px; min-height: 38px; margin-bottom: 2px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .dahs-sidebar .dahs-nav-item > span { font-size: 13px; font-weight: 600; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .dahs-sidebar .dahs-nav-item > .dahs-nav-icon { color: #857040; width: 20px; height: 20px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .dahs-sidebar .dahs-nav-item--open { background: var(--primary-soft); color: var(--link); }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .dahs-sidebar .dahs-nav-item--open > .dahs-nav-icon { color: var(--link); }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .dahs-sidebar .dahs-nav-caret { transform: none; width: 14px; height: 14px; color: var(--text-readable-muted); }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .dahs-nav-item--open .dahs-nav-caret { transform: none; color: var(--link); }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .dahs-nav-children { padding-inline-start: 26px; gap: 1px; margin-bottom: 6px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .dahs-nav-children::before { inset-inline-start: 18px; background: var(--border-default); }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .dahs-nav-child { position: relative; gap: 8px; padding: 6px 8px; min-height: 34px; border-radius: 6px; font-size: 12px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .dahs-nav-child::before { content: ""; position: absolute; inset-inline-start: -8px; top: 50%; width: 8px; height: 1px; background: var(--border-default); }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .dahs-nav-child > .dahs-tree-leaf-icon { flex: 0 0 17px; width: 17px; height: 17px; color: var(--text-readable-muted); }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .dahs-nav-child > span { min-width: 0; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .dahs-nav-child--active { background: var(--primary-soft); color: var(--link); box-shadow: inset -3px 0 var(--primary); }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .dahs-nav-child--active > .dahs-tree-leaf-icon { color: var(--link); }

    /* Contextual header; existing account, messages, notifications, quick links
       and access-design controls are preserved, not replaced by fake actions. */
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-topbar { background: var(--surface-primary); border-bottom: 1px solid var(--jt-border); box-shadow: 0 2px 10px #20254e04; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-topbar-inner { min-height: 70px; gap: 10px; padding: 10px 20px; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-brand { flex: 1 1 190px; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-brand-text { display: block; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-context-eyebrow { display: block; color: var(--text-readable-muted); font-size: 10px; font-weight: 500; line-height: 1.5; margin-bottom: 3px; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-brand-text h1 { color: var(--text-primary); font-size: 15px; font-weight: 750; line-height: 1.6; margin: 0; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-context-trail { display: flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid var(--border-default); border-radius: 7px; background: var(--primary-soft); color: var(--link); font-size: 11px; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-topbar-actions { margin-inline-start: auto; gap: 3px; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-icon-btn { border-radius: 8px; border-color: transparent; background: transparent; width: 36px; height: 36px; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-icon-btn:hover { background: var(--primary-soft); color: var(--link); }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-user { border-inline-start: 1px solid var(--jt-border); padding-inline-start: 10px; margin-inline-start: 5px; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-user-avatar { background: var(--primary-soft); color: var(--link); }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-user-name { font-size: 12px; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-user-role { font-size: 10px; color: var(--text-readable-muted); }
}
@media screen and (min-width: 1024px) {
    /* Dense is now explicitly included by the user's compact-table request.
       Specialist/virtual owners remain excluded because their offsets depend
       on measured row heights. Mobile cards retain their existing wrapping. */
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .mud-table:not(.ep-table):not(:where(.claim-track-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]) { padding: 7px 10px !important; font-size: 11.5px !important; line-height: 1.5; white-space: nowrap !important; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .mud-table:not(.ep-table):not(:where(.claim-track-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: 6px 10px !important; font-size: 13px !important; line-height: 1.5; white-space: nowrap !important; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .mud-table:not(.ep-table):not(:where(.claim-track-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 > :is(.mud-typography, .outpatient-full-report__cell-main, .outpatient-full-report__cell-sub) { display: inline; white-space: nowrap; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .mud-table:not(.ep-table):not(:where(.claim-track-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 > .outpatient-full-report__cell-sub { margin-inline-start: 8px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .mud-table:not(.ep-table):not(:where(.claim-track-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 > .mud-typography + .mud-typography { margin-inline-start: 8px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .mud-table:not(.ep-table):not(:where(.claim-track-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-cell .mud-chip { margin-block: 0; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .jf-compact-grid .office-rx-status-cell > .mud-stack { display: inline-flex; vertical-align: middle; margin: 0 6px !important; flex-wrap: nowrap !important; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-filter-panel .mud-input-outlined .mud-input-slot { padding-block: 8px !important; font-size: 13px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-filter-panel .mud-input-control { margin-top: 4px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-filter-panel .mud-button-root { min-height: 38px; padding-block: 6px; border-radius: 8px; white-space: nowrap; }
}
@media screen and (max-width: 1399px) {
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-filter-grid { grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(130px, 1fr)); }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-filter-grid > .office-rx-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media screen and (max-width: 760px) {
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-filter-panel .mud-input-slot { font-size: 14px !important; padding-inline-start: 8px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-filter-grid > .mud-input-control:first-child { grid-column: 1 / -1; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-advanced-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-filter-panel .mud-button-root { min-height: 44px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .office-rx-advanced > summary { min-height: 44px; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-topbar-inner { padding-inline: 12px; gap: 8px; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-brand { flex-basis: 160px; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-brand-text h1 { font-size: 13px; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-context-trail { padding: 4px 7px; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-topbar-actions { width: 100%; justify-content: flex-start; }
    html[data-ui-design="personnel"][data-personnel-navigation="ready"]:not([data-theme="dark"]) .dahs-icon-btn { width: 44px; height: 44px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .dahs-sidebar :is(.dahs-nav-item, .dahs-nav-child) { min-height: 44px; }
}
