.main-content { padding-top: 24px; }
.topbar h1 { font-size: 30px; letter-spacing: -.6px; }
.metrics { gap: 12px; border: 0; background: transparent; overflow: visible; }
.metric { padding: 18px 20px; border: 1px solid var(--color-line); border-radius: 12px; background: white; }
.metric:last-child { border-right: 1px solid var(--color-line); }
.metric strong { font-size: 32px; color: var(--color-primary-strong); }
.metric-pending strong { color: var(--color-warning); }
.workspace-section { border-radius: 12px; }
.section-description { color: var(--color-muted); font-size: 13px; margin: 6px 0 0; }
.user-filters { display: grid; grid-template-columns: minmax(200px, 2fr) minmax(150px, 1fr) minmax(180px, 1fr) auto; align-items: end; gap: 12px; padding: 16px; background: #f6f8f7; border: 1px solid #e6ebe8; border-radius: 8px; }
.user-filters > * { min-width: 0; }
.user-filters input, .user-filters select { min-height: 44px; }
.user-list-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px 0; color: var(--color-muted); font-size: 12px; }
#usersStatus { color: var(--color-primary-strong); }
.users-table { min-width: 0; table-layout: fixed; }
.users-table th:first-child { width: 29%; }
.users-table th:nth-child(2) { width: 18%; }
.users-table th:nth-child(3) { width: 15%; }
.users-table th:nth-child(4) { width: 14%; }
.users-table th:last-child { width: 24%; }
.users-table td { padding-block: 20px; vertical-align: top; overflow-wrap: anywhere; }
.users-table tbody tr:hover { background: #fafcfb; }
.users-table .user-identity { gap: 5px; }
.username-label { color: var(--color-primary-strong); font-size: 12px; font-weight: 600; }
.status-active { color: var(--color-primary-strong); background: var(--color-primary-soft); }
.status-inactive { color: #555f5a; background: #edf0ee; }
.status-setup { color: var(--color-warning); background: var(--color-warning-soft); }
.status-deleted { color: var(--color-danger); background: var(--color-danger-soft); }
.user-actions { min-width: 100px; max-width: 100%; }
.user-actions summary { padding: 6px 10px; min-height: 34px; border: 1px solid var(--color-line); border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 700; background: white; }
.user-actions[open] { width: 100%; }
.user-actions-list { display: grid; gap: 6px; margin-top: 8px; }
.user-actions-list .button { width: 100%; text-align: left; }
.users-table .table-actions { align-items: start; flex-wrap: wrap; }
.users-table .table-actions > .button { flex-shrink: 0; }
.users-table .user-actions[open] { flex-basis: 100%; }
.user-action-name { margin: 16px 0 8px; font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
#userActionDescription { color: var(--color-muted); }
.device-user-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; color: var(--color-muted); font-size: 13px; }
.button, .user-actions summary { transition: background .15s ease; }
button:focus-visible, summary:focus-visible { outline: 3px solid #70ad99; outline-offset: 3px; }
@media (max-width: 1200px) {
  .user-filters { grid-template-columns: 1fr 1fr; }
  .users-table th:first-child { width: 26%; }
  .users-table th:last-child { width: 27%; }
}
@media (max-width: 760px) {
  .nav-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
  .nav-item { font-size: 11px; overflow-wrap: anywhere; padding: 9px 4px; }
  .sidebar { gap: 14px; }
  .topbar h1 { font-size: 26px; }
  .topbar-actions { flex-wrap: wrap; }
  .organization-switcher { flex: 1 1 100%; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric, .metric:nth-child(2), .metric:last-child { border: 1px solid var(--color-line); padding: 14px; }
  .metric strong { font-size: 26px; }
  .toolbar-actions .button { width: auto; flex: 1; }
  .user-filters { padding: 12px; gap: 10px; }
  .user-search { grid-column: 1 / -1; }
  #clearUserFilters { grid-column: 1 / -1; }
  .users-table thead { display: none; }
  .users-table, .users-table tbody, .users-table tr, .users-table td { display: block; width: 100%; min-width: 0; }
  .users-table tr { border: 1px solid var(--color-line); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
  .users-table td { padding: 10px 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 10px; }
  .users-table td::before { content: attr(data-label); color: var(--color-muted); font-size: 11px; font-weight: 600; }
  .users-table td:first-child { display: block; padding-top: 0; }
  .users-table td:first-child::before { display: none; }
  .users-table td:last-child { border-bottom: 0; padding-bottom: 0; }
  .users-table td.empty-state { display: block; }
  .users-table .button, .users-table summary { min-height: 40px; }
  .users-table .table-actions { min-width: 0; }
  .user-actions { min-width: 0; flex: 1; }
  .user-actions-list .button { overflow-wrap: anywhere; }
  .user-list-meta { flex-direction: column; }
}
