.card,
.chart-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card {
  padding: 24px;
}

/* ── Buttons ────────────────────────────────────────── */

.secondary {
  background: #f3f4f6;
  color: #565d66;
}

.secondary:hover {
  background: #e5e7eb;
}

.info {
  background: var(--blue);
}

.info:hover {
  background: #3d739e;
}

.danger {
  background: #b8322d;
}

.action-button {
  padding: 9px 13px;
  font-size: 0.9rem;
}

/* ── Form elements ──────────────────────────────────── */

.check-line {
  grid-template-columns: auto 1fr;
  align-items: center;
  color: #5f6570;
}

.check-line input {
  width: 18px;
  min-height: 18px;
  box-shadow: none;
}

.form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.help-text {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}

.form-actions,
.user-actions {
  gap: 10px;
  flex-wrap: wrap;
}

#login-form .form-actions {
  justify-content: center;
}

/* ── Feedback ───────────────────────────────────────── */

.message {
  min-height: 22px;
  margin-bottom: 0;
  color: var(--purple);
  font-weight: 700;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

/* ── Section headings ───────────────────────────────── */

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading,
.list-header {
  margin-bottom: 18px;
}

.list-header {
  justify-content: space-between;
  gap: 16px;
}

.chart-head h2,
.list-header h2,
.section-heading h2 {
  margin: 0;
  color: #6a6f78;
  font-size: 1.12rem;
  letter-spacing: 0.1em;
}

/* ── Cards (usuarios / setores) ─────────────────────── */

.user-list,
.sector-list,
.placeholder-grid {
  display: grid;
  gap: 12px;
}

.user-card,
.sector-card,
.placeholder-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: #fbfbfc;
}

.user-card h3,
.sector-card h3,
.placeholder-card h3 {
  margin: 0 0 8px;
}

.user-card p,
.sector-card p,
.placeholder-card p {
  margin: 4px 0;
  color: var(--muted);
  line-height: 1.5;
}

.sector-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sector-subtitle {
  margin-top: 2px;
  font-weight: 700;
}

.sector-meta {
  display: grid;
  gap: 2px;
  margin-top: 10px;
}

.sector-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 61, 16, 0.1);
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.path-chip {
  display: inline-block;
  padding: 8px 10px;
  border: 1px dashed #d7d9de;
  border-radius: 6px;
  background: #ffffff;
  color: #4d5560;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.user-actions {
  display: flex;
  margin-top: 14px;
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 820px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .sector-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
