/* Table v5 presentation adapter, based on the user-supplied jafam-unified-tables-v5.html.
   No demo JavaScript, fake records, font download or table engine replacement.
   Existing status colors, density, sticky offsets, virtual row heights, selection,
   sort/filter/export handlers and responsive table/card layouts remain page-owned.
   The previously approved ep-table retains its dedicated reference sheet. */
@media screen {
    html[data-ui-design="personnel"]:not([data-theme="dark"])  {
        --jt-card: var(--surface-primary); --jt-text: var(--text-primary); --jt-muted: var(--text-secondary);
        --jt-border: var(--border-default); --jt-header: var(--table-header); --jt-zebra: var(--surface-secondary);
        --jt-primary: var(--primary); --jt-primary-hover: var(--link); --jt-primary-soft: var(--primary-soft);
        --jt-hover: var(--table-hover); --jt-selected: var(--table-selected); --jt-shadow: 0 3px 16px #20254e05;
        --jt-org-bg: #eef2fc; --jt-org-alt: #e8eefb; --jt-org-head: #dfe7f8;
        --jt-org-hover: #e8e8f8; --jt-org-selected: #dedaf4; --jt-org-border: #cfdaf0;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.mud-table:not(.ep-table), .mud-simple-table:not(.ep-table)):not(.claim-track-grid) {
        border-radius: 12px !important; border-color: var(--jt-border) !important;
        background-color: var(--jt-card); box-shadow: var(--jt-shadow) !important;
        --mud-palette-table-lines: var(--jt-border);
        --mud-palette-table-hover: var(--jt-hover);
        --mud-palette-table-striped: var(--jt-zebra);
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.mud-table:not(.ep-table), .mud-simple-table:not(.ep-table)) .mud-table-head {
        background-color: var(--jt-header) !important;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.mud-table:not(.ep-table), .mud-simple-table:not(.ep-table)) .mud-table-head .mud-table-cell:not([style*="background" i]) {
        background-color: var(--jt-header) !important; border-bottom-color: var(--jt-border) !important;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.mud-table:not(.ep-table), .mud-simple-table:not(.ep-table)) .mud-table-head .mud-table-cell:not([style*="color" i]) {
        color: var(--jt-muted) !important; font-weight: 600 !important;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .mud-table:not(.ep-table):not(:where(.mud-table-dense, .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 {
        font-size: 11px !important; font-weight: 600 !important; line-height: 1.5;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .mud-table:not(.ep-table):not(:where(.mud-table-dense, .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([style*="color" i]) {
        color: var(--jt-muted) !important;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .mud-table:not(.ep-table):not(:where(.mud-table-dense, .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 {
        font-size: 13px !important; border-bottom-color: var(--jt-border) !important;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .mud-table:not(.ep-table):not(:where(.mud-table-dense, .mud-xs-table, .mud-sm-table, .mud-md-table, .mud-lg-table, .mud-xl-table, .mud-xxl-table, .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: 10px 12px !important;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .mud-table:not(.ep-table):not(:where(.mud-table-dense, .mud-xs-table, .mud-sm-table, .mud-md-table, .mud-lg-table, .mud-xl-table, .mud-xxl-table, .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: 12px !important;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .mud-table:not(.ep-table):not(.mud-table-striped) .mud-table-body > tr:is([class="mud-table-row"], [class="mud-table-row "]):not([style]:not([style=""])):not([aria-selected="true"]):hover {
        background: var(--jt-hover) !important;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.mud-table:not(.ep-table), .mud-simple-table:not(.ep-table)) .mud-table-body > tr[aria-selected="true"]:not([style*="background" i]) {
        background-color: var(--jt-selected);
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.mud-table:not(.ep-table), .mud-simple-table:not(.ep-table)) :is(.mud-table-toolbar, .mud-table-pagination, .mud-data-grid-pager) {
        border-color: var(--jt-border); background-color: var(--jt-card);
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.mud-table:not(.ep-table), .mud-simple-table:not(.ep-table)) :is(.mud-table-pagination, .mud-data-grid-pager) {
        color: var(--jt-muted); font-size: 11px;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.mud-table:not(.ep-table), .mud-simple-table:not(.ep-table)) .mud-table-pagination .mud-toolbar {
        flex-wrap: wrap; height: auto; min-height: 56px; gap: 8px;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.mud-table:not(.ep-table), .mud-simple-table:not(.ep-table)) .mud-table-container {
        scrollbar-width: thin; scrollbar-color: #bac1d2 transparent;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.mud-table:not(.ep-table), .mud-simple-table:not(.ep-table)) :is(button, a, input, select, [tabindex]):focus-visible {
        outline: 3px solid var(--jt-primary); outline-offset: 3px;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.mud-table:not(.ep-table), .mud-simple-table:not(.ep-table)) .mud-table-foot .mud-table-cell:not([style*="background" i]) {
        background-color: var(--jt-header); border-color: var(--jt-border);
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .jafam-filter-chip {
        border-radius: 7px; border-color: var(--jt-border);
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .jafam-filter-chip.is-active {
        background: var(--jt-primary-soft); border-color: var(--border-default); color: var(--jt-primary-hover);
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .jafam-filter-bar__label {
        color: var(--jt-muted);
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .jafam-grid-shell {
        border-color: var(--jt-border); border-radius: 12px; background-color: var(--jt-card); box-shadow: var(--jt-shadow);
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .jafam-grid-shell .jafam-grid-header {
        background: var(--jt-header); color: var(--jt-muted); font-weight: 600;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .jafam-grid-shell .jafam-grid-row:hover {
        background: var(--jt-hover);
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.dahs-main, .mud-dialog) table[class]:not(.mud-table-root):not([role="presentation"]) {
        border-color: var(--jt-border); color: var(--jt-text);
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.dahs-main, .mud-dialog) table[class]:not(.mud-table-root):not([role="presentation"]) thead > tr > :is(th, td):not([style*="background" i]):not([style*="color" i]) {
        background: var(--jt-header); color: var(--jt-muted); font-weight: 600;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .outpatient-full-report__metrics {
        gap: 14px; border: 0; background: transparent; overflow: visible;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .outpatient-full-report__metric {
        min-width: 0; border: 1px solid var(--jt-border); border-radius: 11px;
        padding: 15px 17px 12px; background: var(--jt-card); box-shadow: var(--jt-shadow);
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .outpatient-full-report__metric:last-child {
        border-left: 1px solid var(--jt-border);
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .outpatient-full-report__metric-label {
        color: var(--jt-muted); font-size: 12px; font-weight: 500; white-space: normal;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .outpatient-full-report__metric-value {
        font-size: clamp(16px, 1.3vw, 23px); font-weight: 700; font-variant-numeric: tabular-nums; white-space: normal; overflow-wrap: anywhere;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .outpatient-full-report__panel {
        border-color: var(--jt-border); border-radius: 12px; box-shadow: var(--jt-shadow);
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .outpatient-full-report__panel-title {
        background: var(--jt-header); color: var(--jt-text); font-weight: 700; border-color: var(--jt-border);
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .outpatient-full-report__cell-main {
        font-size: 13px; font-weight: 600; color: var(--jt-text);
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .outpatient-full-report__cell-sub {
        font-size: 11px; font-weight: 400; color: var(--jt-muted);
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .mud-table-root .mud-table-cell.jf-org-share {
        background-color: var(--jt-org-bg) !important; color: var(--jt-text) !important;
        border-inline: 0; box-shadow: inset 1px 0 var(--jt-org-border), inset -1px 0 var(--jt-org-border);
        font-weight: 800 !important; font-variant-numeric: tabular-nums;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .mud-table-root tbody tr:nth-child(even) .mud-table-cell.jf-org-share {
        background-color: var(--jt-org-alt) !important;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .mud-table-root tbody tr:hover .mud-table-cell.jf-org-share {
        background-color: var(--jt-org-hover) !important;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .mud-table-root tbody tr[aria-selected="true"] .mud-table-cell.jf-org-share {
        background-color: var(--jt-org-selected) !important;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.mud-table:not(.ep-table), .mud-simple-table:not(.ep-table)) :is(.mud-table-head, .mud-table-foot) .mud-table-cell.jf-org-share:not([style*="background" i]) {
        background-color: var(--jt-org-head) !important; color: var(--jt-text) !important; font-weight: 800 !important;
    }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.mud-table:not(.ep-table), .mud-simple-table:not(.ep-table)) .mud-table-cell.jf-org-share :is(.column-header, .outpatient-full-report__cell-main) {
        font-weight: 800 !important; color: var(--jt-text);
    }
}
@media screen and (max-width: 760px) {
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .outpatient-full-report__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .outpatient-full-report__metric { padding: 11px 12px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) .outpatient-full-report__toolbar { gap: 11px; }
    html[data-ui-design="personnel"]:not([data-theme="dark"]) :is(.mud-table:not(.ep-table), .mud-simple-table:not(.ep-table)) .mud-table-pagination .mud-toolbar { justify-content: center; padding-inline: 12px; }
}
