/* Cora UI v2 — Users & roles (screen-scoped). */
.v2-us__body { padding-top: var(--v2-body-pt); }
.v2-us__body > * + * { margin-top: var(--v2-block-gap); }
.v2-us__kdot { display: inline-block; width: 7px; height: 7px; border-radius: 9999px; flex: none; }
.v2-us .v2-kpi__label { gap: 6px; }
.v2-us__badge--lime { background: var(--v2-lime) !important; color: var(--v2-forest) !important; }

.v2-us__filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.v2-us__seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9999px; background: #fff; border: 1px solid var(--v2-border-2); order: 2; }
.v2-us__seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 9999px; background: none; font-size: 12.5px; font-weight: 600; color: var(--v2-muted); cursor: pointer; }
.v2-us__seg button[aria-selected="true"] { background: var(--v2-forest); color: #fff; }
.v2-us__search { flex: 1 1 100%; order: 1; }
.v2-us__selects { display: flex; gap: 8px; flex: 1 1 100%; order: 3; }
.v2-us__selects .v2-select { flex: 1; min-width: 0; }
.v2-us__card { overflow: hidden; }

.v2-us__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.v2-us__av { flex: none; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 11.5px; font-weight: 600; }
.v2-us__av--ghost { width: 32px; height: 32px; background: var(--v2-soft); color: var(--v2-muted); }
.v2-us__whotext { min-width: 0; display: flex; flex-direction: column; }
.v2-us__name { padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--v2-text); text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-us__name--static { cursor: default; }
.v2-us__name:hover { text-decoration: underline; text-decoration-color: var(--v2-faint-2); }
.v2-us__subline { font-size: 11.5px; font-weight: 400; color: var(--v2-muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-us__tr { cursor: pointer; }
.v2-us__table td:first-child { overflow: visible; }

.v2-us__role { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.v2-us__role--owner { background: var(--v2-forest); color: var(--v2-lime); }
.v2-us__role--std { background: var(--v2-soft-2); color: var(--v2-text-2); }
.v2-us__role--custom { background: #f1eafd; color: #6d28d9; }
.v2-us__role--client { background: #e6effd; color: #1d4ed8; }
.v2-us__pill { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 9999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.v2-us__pill i { width: 6px; height: 6px; border-radius: 9999px; background: currentColor; }
.v2-us__pill--green { background: var(--v2-green-soft); color: #166534; }
.v2-us__pill--amber { background: var(--v2-amber-soft); color: var(--v2-amber-ink); }
.v2-us__pill--red { background: var(--v2-red-soft); color: #991b1b; }
.v2-us__pill--grey { background: var(--v2-soft-2); color: var(--v2-muted); }
.v2-us__addphone { height: 24px; padding: 0 9px; border: 1px dashed #d9b84a; border-radius: 9999px; background: #fffbea; color: var(--v2-amber-ink); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.v2-us__acts { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.v2-us__del { width: 28px !important; height: 28px !important; color: var(--v2-red); border-color: #f3d0d0; }
.v2-us__lock { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; background: var(--v2-soft); color: var(--v2-faint); }
.v2-us__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--v2-line); font-size: 12px; color: var(--v2-muted-2); }
.v2-us__pager { display: inline-flex; gap: 6px; }

.v2-us__hero { display: flex; align-items: center; gap: 12px; }
.v2-us__hero b { display: block; font-size: 15px; }
.v2-us__heromet { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.v2-us__static { height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: 12px; background: var(--v2-soft); font-weight: 600; }
.v2-us__err { padding: 8px 12px; border-radius: 10px; background: #fef2f2; color: #991b1b; font-size: 13px; }
.v2-us__err[hidden] { display: none; }
.v2-us__remove { align-self: flex-start; }
.v2-us__note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--v2-muted-2); }
.v2-us__note a { text-decoration: underline; }

.v2-us__matrix { overflow-x: auto; }
.v2-us__matrix table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.v2-us__matrix th, .v2-us__matrix td { padding: 8px 10px; border-bottom: 1px solid var(--v2-line); text-align: center; white-space: nowrap; }
.v2-us__matrix thead th { font-size: 11px; font-weight: 600; color: var(--v2-muted-2); background: var(--v2-hover); }
.v2-us__matrix tbody th { text-align: left; font-weight: 600; position: sticky; left: 0; background: #fff; }
.v2-us__lv { display: inline-flex; min-width: 40px; justify-content: center; height: 20px; align-items: center; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--v2-faint); }
.v2-us__lv--edit { background: var(--v2-green-soft); color: #166534; }
.v2-us__lv--view { background: #e6effd; color: #1d4ed8; }
.v2-us__att, .v2-us__roles { padding: 0 12px; }

@media (min-width: 1024px) {
  .v2-us__filters { flex-wrap: nowrap; }
  .v2-us__seg { order: 0; }
  .v2-us__search { flex: 1 1 auto; order: 0; }
  .v2-us__selects { flex: none; order: 0; }
  .v2-us__selects .v2-select { width: 168px; }
}
@media (max-width: 1023.98px) {
  .v2-us__table tr { grid-template-columns: minmax(0, 1fr) auto; padding: 9px 12px; }
  .v2-us__table td:first-child { white-space: normal; }
}
.v2-us__card.v2-card--flush { padding: 0; }

