/* Campos, botões, chips e toggle — peças reutilizadas em todas as telas. */

.campo {
  height: 38px; width: 100%; min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); outline: none;
}
.campo:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.campo { height: auto; min-height: 64px; padding: 10px 12px; resize: vertical; }

.btn {
  height: 38px; padding: 0 16px;
  border: 0; border-radius: var(--radius-sm);
  background: var(--text); color: var(--bg);
  font-weight: 600; cursor: pointer;
}
.btn:disabled { opacity: .6; cursor: default; }
.btn-sec { background: var(--surface); color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.btn-sec:hover { border-color: var(--line-strong); }

.redondo {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); cursor: pointer;
}
.redondo:hover { color: var(--text); border-color: var(--line-strong); }
.redondo svg { width: 16px; height: 16px; }

.ico {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--muted);
  cursor: pointer; text-decoration: none;
}
.ico:hover { color: var(--text); border-color: var(--line-strong); }
.ico.feito { color: var(--ok); border-color: var(--ok); }
.ico svg { width: 15px; height: 15px; }

.chip {
  height: 32px; padding: 0 12px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted);
  font-size: 13px; white-space: nowrap; cursor: pointer;
}
.chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 500; }
.chip .c { font-size: 11px; font-weight: 500; color: var(--faint); }
.chip.on .c { color: inherit; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 13px; font-weight: 500; }
.toggle input {
  appearance: none; margin: 0; position: relative;
  width: 32px; height: 18px; border-radius: 999px;
  background: var(--line-strong); cursor: pointer; transition: .15s;
}
.toggle input::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; transition: .15s;
}
.toggle input:checked { background: var(--accent); }
.toggle input:checked::after { left: 16px; }

.avatar {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; color: #fff;
  font-size: 12px; font-weight: 600;
}
.avatar.clicavel { cursor: pointer; }
.avatar.com-foto { overflow: hidden; background: var(--line); }
/* a foto é 512×512: o navegador reduz com qualidade, sem pixelar */
.avatar.com-foto img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 50%; }
.foto-grande img { display: block; width: 100%; max-width: 512px; aspect-ratio: 1; margin: 0 auto; object-fit: cover; border-radius: 14px; }

.badge { flex: none; padding: 2px 6px; border-radius: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; }
.badge.pj { background: var(--accent-soft); color: var(--accent); }
.badge.pf { background: var(--line); color: var(--muted); }
.badge.aprox { opacity: .75; }

/* Controle segmentado (ex.: Lista | Kanban). */
.seg { display: inline-flex; margin-left: auto; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.seg button { height: 26px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.seg button.on { background: var(--text); color: var(--bg); }
