/* ============================================================
   MonTech · Casa Médica · vista configuracion
   Clases prefijadas v-configuracion-…  ·  solo var(--token), nunca hex
   ============================================================ */

.v-cfg-cards { gap: var(--s-3); }
.v-cfg-card { border: 1px solid var(--border); border-radius: var(--r); padding: var(--s-3); background: var(--bg-surface); }
.v-cfg-role { display: flex; align-items: center; gap: 8px; font-size: var(--fs-13); margin-bottom: 4px; }
.v-cfg-count { font-size: var(--fs-11); color: var(--text-muted); margin-top: 6px; font-weight: 600; }
.v-cfg-matriz td, .v-cfg-matriz th { white-space: nowrap; }
@media (max-width: 640px) {
  /* los nombres de perfil en minúscula caben sin mover la tabla de lado */
  .tbl.v-cfg-matriz thead th { text-transform: none; letter-spacing: 0; font-size: var(--fs-12); }
  .tbl.v-cfg-matriz tbody td:first-child { white-space: normal; }
  .tbl.v-cfg-matriz thead th, .tbl.v-cfg-matriz tbody td,
  .tbl.v-cfg-matriz thead th:first-child, .tbl.v-cfg-matriz tbody td:first-child,
  .tbl.v-cfg-matriz thead th:last-child, .tbl.v-cfg-matriz tbody td:last-child { padding-left: 8px; padding-right: 8px; }
  .tbl.v-cfg-matriz thead th:first-child, .tbl.v-cfg-matriz tbody td:first-child { padding-left: var(--s-3); }
}
.v-cfg-si { color: var(--ok); display: inline-flex; }
.v-cfg-no { color: var(--border-strong); display: inline-flex; }

/* ---------- Precios de venta ---------- */
.v-precio__intro { max-width: 640px; }
.v-precio__tabla { display: flex; flex-direction: column; gap: 8px; max-width: 520px; margin: 12px 0; }
.v-precio__fila { display: grid; grid-template-columns: minmax(0, 1fr) auto 30px; align-items: center; gap: 12px; font-size: var(--fs-13); }
.v-precio__fila--nivel { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
.v-precio__n { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v-precio__n .input { width: 72px; text-align: right; }
.v-precio__monto { display: flex; align-items: center; gap: 6px; }
.v-precio__monto .input { width: 110px; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .v-precio__fila { grid-template-columns: minmax(0, 1fr) 30px; }
  .v-precio__monto { grid-column: 1; grid-row: 2; }
}
