body.users-mode .workspace { min-height: 0; overflow: hidden; }
body.users-mode #board.board {
  min-height: 0;
  padding: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.user-management-shell { min-height: 100%; height: max-content; background: var(--surface, #fff); }
.user-management-tabs { position: sticky; top: 0; z-index: 5; display: flex; border-bottom: 1px solid #ccd6e0; background: #fff; padding-left: 18px; }
.user-management-tabs button { min-width: 82px; padding: 13px 20px; border: 0; border-left: 1px solid transparent; border-right: 1px solid transparent; background: transparent; color: #24364b; cursor: pointer; }
.user-management-tabs button.active { color: #07936c; border-left-color: #ccd6e0; border-right-color: #ccd6e0; border-bottom: 2px solid #07936c; background: #fff; }
.user-directory-panel { padding: 16px 18px 24px; }
.user-directory-table { border: 1px solid #d5dee8; border-radius: 5px; overflow: hidden; }
.user-directory-table table { width: 100%; border-collapse: collapse; }
.user-directory-table th { padding: 11px 12px; color: #38506c; font-size: 12px; font-weight: 600; text-align: left; text-transform: uppercase; background: #f5f8fb; border-bottom: 1px solid #d5dee8; }
.user-directory-table td { padding: 12px; border-bottom: 1px solid #dbe3eb; vertical-align: middle; }
.user-directory-table tbody tr:last-child td { border-bottom: 0; }
.user-name-link { border: 0; padding: 0; background: transparent; color: #18ae73; font: inherit; font-weight: 600; cursor: pointer; }
.current-user-label { display: block; margin-top: 3px; color: #718096; }
.user-status { display: inline-flex; padding: 4px 9px; border-radius: 4px; background: #e1f6ec; color: #07885f; }
.user-status.inactive { background: #f3f4f6; color: #64748b; }
.user-directory-summary { padding-top: 12px; color: #64748b; font-size: 12px; }
.user-roles-panel { display: grid; gap: 18px; padding: 22px 18px 48px; }
.user-role-card { border: 1px solid #12a85e; background: #fff; }
.user-role-card-head { padding: 14px 24px 0; }
.user-role-card > p { padding: 0 24px 15px; }
.user-role-card-head { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; padding: 0; background: transparent; text-align: left; cursor: default; }
.user-role-card .user-role-card-head { padding: 14px 24px 0; cursor: pointer; }
.user-role-card-head span { display: inline-grid; flex: 0 0 20px; width: 20px; place-items: center; color: transparent; font-size: 0; line-height: 20px; }
.user-role-card-head span::before { content: "›"; color: #41576d; font-size: 30px; line-height: 20px; }
.user-role-card.expanded .user-role-card-head span::before { content: "⌄"; font-size: 22px; }
.user-role-card-head strong { font-size: 18px; }
.user-role-card p { margin: 0; padding: 7px 24px 15px 62px; line-height: 1.45; color: #263b50; }
.user-role-card > .user-role-card-head,
.user-role-card > p { background: #eafaf1; }
.user-role-matrix-wrap { padding: 12px 18px; overflow-x: auto; border-top: 1px solid #12a85e; }
.user-role-matrix { width: 100%; min-width: 720px; border-collapse: collapse; }
.user-role-matrix th { height: 38px; color: #34495e; font-size: 12px; font-weight: 500; text-align: center; text-transform: uppercase; }
.user-role-matrix th:first-child { width: 40%; text-align: left; }
.user-role-matrix th:not(:first-child),
.user-role-matrix td:not(:first-child) { width: 15%; text-align: center; }
.user-role-matrix td { height: 38px; padding: 6px 24px; border-right: 1px solid #d3dce5; border-top: 1px solid #e4e9ee; }
.user-role-matrix td:last-child { border-right: 0; }
.user-role-matrix tbody tr:nth-child(odd) { background: #f7f7f7; }
.role-permission { font-size: 25px; line-height: 1; font-weight: 600; }
.role-permission.allowed { color: #4cbb78; }
.role-permission.denied { color: #ff1744; font-weight: 400; }
.user-role-help { padding: 12px 14px; border: 1px solid #9adabb; background: #effbf5; color: #285341; }
@media (max-width: 900px) {
  .user-directory-table { overflow-x: auto; }
  .user-directory-table table { min-width: 900px; }
  .user-role-card { padding: 14px; }
  .user-role-card p { margin-left: 0; }
}
