/* components.css */

/* ── Checkbox circular pequeño (fiel al físico) ───────────── */
.cb-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 3px 0;
  font-size: 12px;
  color: var(--c-ink-2);
  line-height: 1.3;
}
.cb-box {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  border: 1.4px solid var(--c-line-strong);
  border-radius: 50%;
  background: #fff;
  position: relative;
}
.cb-box.checked { border-color: var(--c-accent); }
.cb-box.checked::after {
  content: '';
  position: absolute;
  left: 2.5px; top: 2.5px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c-accent);
}

.cb-sub-row {
  display: flex;
  gap: 14px;
  margin-left: 19px;
  margin-top: -1px;
  margin-bottom: 2px;
}
.cb-sub-row .cb-item { font-size: 11px; color: var(--c-ink-3); }
.cb-sub-row .cb-box { width: 11px; height: 11px; }
.cb-sub-row .cb-box.checked::after { width: 4px; height: 4px; left: 2.5px; top: 2.5px; }

.cb-text-input {
  border: none;
  border-bottom: 1.4px solid var(--c-input-line);
  background: transparent;
  font-size: 12px;
  padding: 3px 4px;
  outline: none;
  width: 100%;
}
.cb-text-input:focus { border-bottom-color: var(--c-accent); }

/* ── Observaciones ─────────────────────────────────────────── */
.textarea-plain {
  width: 100%;
  min-height: 90px;
  border: none;
  outline: none;
  resize: vertical;
  padding: 14px 16px;
  font-size: 13px;
  font-family: var(--ff-body);
}

/* ── Botones / acciones ────────────────────────────────────── */
.btn {
  border-radius: var(--r-sm);
  padding: 9px 18px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1.4px solid transparent;
}
.btn-ghost { background: #fff; border-color: var(--c-line-strong); color: var(--c-ink-2); }
.btn-ghost:hover { color: var(--c-accent); }
.btn-pdf {
  background: var(--c-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-pdf:hover { background: var(--c-accent-hover); }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 26px 24px;
  background: var(--c-accent-ghost);
  border-top: 1px solid var(--c-line);
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--c-ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
