/* V2.6.0 — cadastro de contas e resumo dos perfis de acesso. */
.users-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.users-layout > .painel { min-width: 0; }
.user-create-card h2 { margin: 2px 0 5px; }
.user-create-card > p { margin: 0 0 12px; font-size: 12px; line-height: 1.5; }
.user-form { gap: 11px; margin-top: 12px; }
.user-form > button { width: 100%; min-height: 44px; }
.users-permission-note { line-height: 1.55; }
.users-empty-link { margin-bottom: 0; line-height: 1.5; }
.users-list { padding: 0; overflow: visible; }
.users-list-head { padding: 14px 16px; border-bottom: 1px solid var(--linha); }
.users-list-head h2 { margin: 0; }
.users-list-head p { margin: 4px 0 0; font-size: 12px; }
.users-table-wrap { padding: 0 12px 12px; overflow: visible; }
.users-table { min-width: 0 !important; }
.users-table th, .users-table td { padding: 11px 9px; }
.users-table td:first-child b { font-size: 13px; }
.status-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}
.status-active { background: #e8f8f1; color: #107b55; }
.status-inactive { background: #fff0f2; color: #b52e3a; }

@media (max-width: 900px) {
  .users-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .users-list .users-table-wrap { display: block !important; padding: 0 10px 10px; }
  .users-table { display: block; width: 100%; }
  .users-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .users-table tbody { display: grid; gap: 9px; }
  .users-table tr[data-user] {
    display: grid;
    padding: 5px 10px;
    border: 1px solid var(--linha);
    border-radius: 10px;
    background: #fff;
  }
  .users-table tr[data-user] td {
    display: grid;
    grid-template-columns: minmax(100px, 31%) minmax(0, 1fr);
    gap: 8px;
    padding: 8px 2px;
    border-bottom: 1px solid #edf1f6;
    font-size: 13px;
  }
  .users-table tr[data-user] td:last-child { border-bottom: 0; }
  .users-table tr[data-user] td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
  }
  .users-table tr:not([data-user]) td { display: block; min-width: 0; }
  .users-list-head { padding: 12px; }
}
