/* Users page (customer users, groups and Qlik roles). Builds on workbench.css and sign-in.css tokens; works from 375px up. */
.us-picker { margin: 0 0 14px; min-width: 0; max-width: 520px; }
.us-picker .wb-scope-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.us-picker .us-change { min-height: 32px; padding: 0 12px; }
.us-picker .picker-selected { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.us-picker .picker-selected-name { margin: 0; font-weight: 600; color: var(--navy); }
.us-picker .hint { margin: 6px 0 0; }

.us-toolbar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; margin: 0 0 10px; min-width: 0; }
.us-toolbar:empty { display: none; }
.us-toolbar .wb-action-bar { flex: 1 1 420px; min-width: 0; margin: 0; }
.us-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.us-panel-host:empty { display: none; }
.us-panel-host { margin: 0 0 12px; min-width: 0; }
.us-panel { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); overflow-wrap: anywhere; }
.us-panel > .wb-run-log { padding: 0; border: 0; }
.us-panel h3 { margin: 0 0 8px; color: var(--navy); font-size: 15px; }
.us-panel .field input, .us-panel .field select { width: 100%; max-width: 100%; box-sizing: border-box; }
.us-dismiss { margin-top: 10px; }

.us-checks { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.us-checks legend { padding: 0 6px; font-weight: 600; color: var(--navy); }
.us-checks .checkbox-field { margin-bottom: 6px; }
.us-warning { margin: 0 0 8px; padding: 8px 10px; border: 1px solid var(--warn); border-radius: 6px; background: var(--tint); color: var(--ink); line-height: 1.4; }
.us-catalog { margin: 0 0 10px; min-width: 0; max-width: 520px; }
.us-catalog .field select { width: 100%; max-width: 100%; box-sizing: border-box; }

.us-drawer { min-width: 0; overflow-wrap: anywhere; }
.us-drawer > .hint, .us-drawer form > .hint { margin: 0 0 10px; }
.us-drawer .field input { width: 100%; max-width: 100%; box-sizing: border-box; }
.us-drawer button { max-width: 100%; }
.us-invite-log:empty { display: none; }
.us-invite-log .us-panel { padding: 0; border: 0; }
.us-member-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.us-member { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.us-member-who { display: flex; flex-direction: column; min-width: 0; flex: 1 1 180px; }
.us-member-name { font-weight: 600; color: var(--navy); }
.us-member-who .hint { margin: 0; }
.us-member-count { margin: 8px 0 4px; color: var(--muted); font-size: 13.5px; }
.us-members input[type="search"] { width: 100%; max-width: 100%; box-sizing: border-box; }

@media (max-width: 599px) {
  .us-toolbar { flex-direction: column; align-items: stretch; }
  .us-toolbar .wb-action-bar { flex-basis: auto; }
  .us-toolbar .wb-verbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .us-toolbar .wb-verb { max-width: none; }
  .us-toolbar .wb-verb button { padding-inline: 8px; font-size: 13.5px; }
  .us-tools { justify-content: space-between; }
  .us-panel .actions { flex-direction: column; align-items: stretch; }
  .us-panel .actions button, .us-dismiss { width: 100%; }
  .us-member > button { width: 100%; }
}

/* Identity is never truncated (USR-01): an email wraps at any character and keeps room to be read; names and dates stay on one line. */
.us-email { display: inline-block; min-width: 24ch; max-width: 36ch; overflow-wrap: anywhere; }
.us-nowrap, .us-date { white-space: nowrap; }
.us-wrap { display: inline-block; min-width: 14ch; overflow-wrap: anywhere; }
.us-roles { display: grid; gap: 2px; min-width: 18ch; overflow-wrap: anywhere; }
.us-roles-plain { margin: 0; font-size: 13px; }
