/* ================================================================
   Project Zeratul — modules/firm-users.css
   Firm Users & Settings page styles.
   ================================================================ */

.fu-wrap {
  padding: var(--sp-8);
  max-width: 900px;
}

.fu-header {
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}

.fu-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--cream);
  margin-bottom: var(--sp-1);
}

.fu-sub {
  font-size: var(--text-sm);
  color: var(--stone-light);
}

.fu-loading {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-8) 0;
  font-size: var(--text-sm);
  color: var(--stone-light);
}

.fu-section {
  margin-top: var(--sp-6);
}

.fu-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.fu-section-title {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stone-light);
}

.fu-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--stone-light);
  padding: 0 6px;
  margin-left: var(--sp-2);
  min-width: 20px;
  height: 18px;
}

.fu-notes {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--stone-light);
  font-size: var(--text-xs);
}

.fu-actions {
  display: flex;
  gap: var(--sp-3);
  white-space: nowrap;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--gold);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: color var(--t-fast);
}

.btn-link:hover { color: var(--gold-light); }

/* Module access grid */
.fu-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-2);
}

.fu-module-check {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--stone);
  cursor: pointer;
  user-select: none;
}

.fu-module-check input[type="checkbox"] {
  accent-color: var(--gold);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.btn-sm {
  padding: 6px 14px;
  font-size: var(--text-xs);
}

.fu-row-disabled td {
  opacity: 0.45;
}

.fu-row-disabled td strong {
  text-decoration: line-through;
}
