/* Shared account/SaaS table behavior. Load after component styles and before viewport overrides. */

/* A row delegates to one keyboard-accessible native button; independent controls keep their actions. */
.account-workspace tr[data-workspace-row] { cursor: pointer; }
.account-workspace tr[data-workspace-row]:has([data-row-primary]:disabled) { cursor: default; }
.account-workspace .workspace-row-primary { padding: 0; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; }
/* The row supplies the focus indicator for its primary action, including keyboard focus. */
.account-workspace tr[data-workspace-row] [data-row-primary]:is(:focus, :focus-visible) { outline: none; box-shadow: none; }
.account-workspace tr[data-workspace-row]:focus-within { outline: 2px solid var(--color-blue); outline-offset: -2px; }

/* Keep every table's text at a readable size, including nested badges, hints and diff values. */
.account-workspace :is(.users-table, .support-table, .subscription-history-table, .saas-table),
.account-workspace :is(.users-table, .support-table, .subscription-history-table, .saas-table) :is(thead, tbody) :is(th, td, button, a, span, strong, small, time, em, pre) { font-size: 12px; }
.account-workspace .saas-ticket,
.account-workspace .saas-ticket :is(span, strong, small, time) { font-size: 12px; }

/* Cell backgrounds must not mask the uniform table-row hover color. */
.account-workspace table > tbody > tr:hover,
.account-workspace table > tbody > tr:hover > :is(th, td) { background-color: #edf9ff; }

/* Scroll large tables inside their panels so viewport changes do not stretch the whole page. */
.account-workspace :is(.users-team-card, .support-panel, .subscription-history, .saas-panel) { min-width: 0; max-width: 100%; }
.account-workspace :is(.users-table-scroll, .support-table-scroll, .subscription-table-scroll, .saas-table-scroll) { min-width: 0; max-width: 100%; width: 100%; overflow-x: auto; }
.account-workspace .users-table tbody th { min-width: 240px; }
.account-workspace .users-table .users-person { width: 100%; min-width: 220px; }
.account-workspace .users-table .users-person-copy { min-width: 0; }
