/* ─── Norm set selector ─────────────────────────────────────── */
.norm-label {
  font-size: 12px;
  color: var(--text-secondary);
}
.norm-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}
.norm-select:hover { border-color: var(--accent); }

/* ─── Vital group (label + card + last) ─────────────────────── */
.vital-group-label {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vital-calc-tag {
  font-size: 10px;
  color: var(--text-callado);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 5px;
}
.vital-last {
  font-size: 11px;
  color: var(--text-callado);
  margin-top: 5px;
}

/* ─── Vital card ────────────────────────────────────────────── */
.vital-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: border-color 0.15s;
}
.vital-card:focus-within {
  border-color: var(--accent);
  background: #1a2235;
}
.vital-card-readonly {
  cursor: default;
  opacity: 0.7;
}

.vital-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  width: 100%;
  -moz-appearance: textfield;
}
.vital-input::-webkit-outer-spin-button,
.vital-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vital-input::placeholder { color: var(--text-callado); font-size: 18px; font-weight: 400; }

.vital-readonly-value {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-callado);
  text-align: center;
  width: 100%;
  display: block;
  text-align: center;
}

.vital-unit {
  font-size: 11px;
  color: var(--text-callado);
  text-align: center;
}

/* ─── Blood pressure row ────────────────────────────────────── */
.bp-slash {
  font-size: 24px;
  color: var(--text-callado);
  flex-shrink: 0;
  padding-bottom: 14px; /* align with card content, above the unit */
}

/* ─── 3-column grid for standard vitals ─────────────────────── */
.vitals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ─── More measurements ─────────────────────────────────────── */
.more-measurements-wrap {
  border-top: 1px solid var(--border);
  padding-top: 4px;
}

.more-measurements-toggle {
  background: none;
  border: none;
  padding: 10px 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.more-measurements-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}
.more-chevron {
  font-size: 13px;
  color: var(--text-callado);
  transition: transform 0.2s ease;
}
.more-measurements-toggle.open .more-chevron {
  transform: rotate(180deg);
}

/* collapsed by default */
.more-measurements-body {
  display: none;
  padding-bottom: 8px;
}
.more-measurements-body.open {
  display: block;
}

/* ─── Notes textarea ────────────────────────────────────────── */
.vital-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  padding: 10px 14px;
  resize: vertical;
  outline: none;
  font-family: var(--font);
  min-height: 80px;
}
.vital-textarea:focus { border-color: var(--accent); background: #1a2235; }
.vital-textarea::placeholder { color: var(--text-callado); }

/* ─── Bottom action buttons ─────────────────────────────────── */
.btn-action-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 12.5px;
  padding: 7px 18px;
  border-radius: 8px;
  transition: background 0.12s;
}
.btn-action-ghost:hover { background: var(--bg-hover); }
.btn-action-ghost.text-callado { color: var(--text-callado); }
