/* Shared row-action contract for all index/work-queue tables. */
:root{--hpc-row-action-height:34px;--hpc-row-action-radius:9px;--hpc-row-action-gap:.35rem}
.hpc-page-container :where(.hpc-core-actions-cell,.hpc-table-actions,.as-actions-cell,td[data-actions="1"]){min-width:max-content!important;width:1%;white-space:nowrap!important;text-align:right}
.hpc-page-container :where([data-row-actions="1"],.hpc-core-row-actions,.hpc-row-actions,.hpc-table-actions,.as-actions,.ac-actions){display:inline-flex!important;align-items:center!important;justify-content:flex-end!important;flex-flow:row nowrap!important;gap:var(--hpc-row-action-gap)!important;min-width:max-content;width:max-content;max-width:none;margin-left:auto;white-space:nowrap!important}
.hpc-page-container :where([data-row-actions="1"],.hpc-core-row-actions,.hpc-row-actions,.hpc-table-actions,.as-actions,.ac-actions)>form{display:inline-flex!important;flex:0 0 auto;margin:0!important}
.hpc-page-container :where([data-row-actions="1"],.hpc-core-row-actions,.hpc-row-actions,.hpc-table-actions,.as-actions,.ac-actions) :where(a,button,.hpc-row-action){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:.32rem;flex:0 0 auto;min-width:auto;min-height:var(--hpc-row-action-height)!important;height:var(--hpc-row-action-height);border:1px solid var(--app-border,var(--tenant-border,#d8e6f0))!important;border-radius:var(--hpc-row-action-radius)!important;background:var(--tenant-surface,#fff)!important;color:var(--app-content-text,#173a56)!important;padding:.42rem .62rem!important;box-shadow:none!important;font-size:.68rem!important;font-weight:850!important;line-height:1!important;text-decoration:none!important;text-transform:none!important;letter-spacing:0!important;white-space:nowrap!important;cursor:pointer}
.hpc-page-container :where([data-row-actions="1"],.hpc-core-row-actions,.hpc-row-actions,.hpc-table-actions,.as-actions,.ac-actions) :where(a,button):hover{border-color:color-mix(in srgb,var(--tenant-primary,#1c8fbd) 46%,var(--app-border,#d8e6f0))!important;background:var(--tenant-soft-surface,#f6fafc)!important;color:var(--tenant-primary,#1c8fbd)!important}
.hpc-page-container :where([data-row-actions="1"],.hpc-core-row-actions,.hpc-row-actions,.hpc-table-actions,.as-actions,.ac-actions) :where(.is-primary,.primary,[data-action-variant="primary"]){background:var(--tenant-primary,#1c8fbd)!important;border-color:var(--tenant-primary,#1c8fbd)!important;color:var(--tenant-primary-text,#fff)!important}
.hpc-page-container :where([data-row-actions="1"],.hpc-core-row-actions,.hpc-row-actions,.hpc-table-actions,.as-actions,.ac-actions) :where(.impersonate,.is-warning,.warning,[data-action-variant="warning"]){background:#fff8e8!important;border-color:#f2c86e!important;color:#8a5400!important}
.hpc-page-container :where([data-row-actions="1"],.hpc-core-row-actions,.hpc-row-actions,.hpc-table-actions,.as-actions,.ac-actions) :where(.danger,.is-danger,[data-action-variant="danger"]){background:#fff2f4!important;border-color:#f0a6b4!important;color:#b42345!important}
.hpc-page-container :where([data-row-actions="1"],.hpc-core-row-actions,.hpc-row-actions,.hpc-table-actions,.as-actions,.ac-actions) svg{width:14px!important;height:14px!important;flex:0 0 14px}
.hpc-page-container :where([data-row-actions="1"],.hpc-core-row-actions,.hpc-row-actions,.hpc-table-actions,.as-actions,.ac-actions) :where(button:disabled,a[aria-disabled="true"]){opacity:.48;cursor:not-allowed}

@media(max-width:900px){
    .hpc-page-container :where(.hpc-core-actions-cell,.hpc-table-actions,.as-actions-cell,td[data-actions="1"]){max-width:min(78vw,34rem);overflow-x:auto;overscroll-behavior-inline:contain}
    .hpc-page-container :where([data-row-actions="1"],.hpc-core-row-actions,.hpc-row-actions,.hpc-table-actions,.as-actions,.ac-actions){justify-content:flex-start!important;margin-left:0}
}

/* Institution access screen: prototype-aligned compact filters and prioritized admins. */
.institution-access-filters{display:grid!important;grid-template-columns:minmax(15rem,1.6fr) minmax(12rem,1fr) minmax(9rem,.7fr) auto;gap:.55rem;align-items:end;min-width:min(100%,58rem)}
.institution-access-filters>label{display:flex;min-width:0;margin:0}
.institution-access-filters :where(input,select){width:100%;min-height:40px;margin:0}
.institution-access-per-page{align-items:center;gap:.4rem;white-space:nowrap;color:var(--app-muted-text,#66788e);font-size:.7rem;font-weight:800}
.institution-access-per-page select{width:5.3rem}
.institution-access-account{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}
.hpc-core-status.is-admin{background:color-mix(in srgb,var(--tenant-primary,#1c8fbd) 11%,var(--tenant-surface,#fff));border-color:color-mix(in srgb,var(--tenant-primary,#1c8fbd) 28%,var(--app-border,#d8e6f0));color:var(--tenant-primary,#1c8fbd);font-size:.58rem}
.hpc-core-table tr.is-institution-admin>td{background:color-mix(in srgb,var(--tenant-primary,#1c8fbd) 3.5%,var(--tenant-surface,#fff))}
.hpc-core-table tr.is-institution-admin>td:first-child{box-shadow:inset 3px 0 0 var(--tenant-primary,#1c8fbd)}
.hpc-core-row-actions .hpc-row-action i{display:inline-flex;width:14px;height:14px}

@media(max-width:1180px){.institution-access-filters{grid-template-columns:minmax(14rem,1.5fr) 1fr 1fr}.institution-access-per-page{grid-column:3}}
@media(max-width:760px){.institution-access-filters{grid-template-columns:1fr;min-width:0;width:100%}.institution-access-per-page{grid-column:auto;justify-content:space-between}.institution-access-per-page select{width:6rem}}
