.users-page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px 20px;
}

.users-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.users-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.users-subtitle {
  margin: 0;
  color: #6b7280;
  font-weight: 600;
}

.users-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.users-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(241, 245, 249, 0.7);
}

.users-badge.active {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.users-badge.inactive {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
}

.users-table th,
.users-table td {
  vertical-align: middle;
}

.access-section-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 10px;
}

.access-flag {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.access-flag .form-check-input {
  margin-top: 4px;
}

.access-flag-hint {
  display: block;
  color: #6b7280;
  font-weight: 600;
  font-size: 12px;
}

.access-branch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.access-branch-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.access-branch-toolbar .form-control {
  max-width: 320px;
}

.access-branch-groups {
  display: grid;
  gap: 14px;
}

.access-branch-groups.is-disabled {
  opacity: 0.55;
}

.access-branch-group {
  border: 1px solid rgba(147, 165, 255, 0.22);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(248, 250, 255, 0.7);
}

.access-branch-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.access-store-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 12px;
  max-height: 420px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 4px 2px 2px;
}

.access-store {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 4px 4px 0;
  min-width: 0;
}

.access-store .form-check-input {
  position: static;
  float: none;
  margin: 0;
  flex-shrink: 0;
}

.access-store-name {
  display: block;
  font-weight: 700;
}

.access-store-meta {
  display: block;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
}

